	.file	"extr_lj_bcread.c_bcread_ktab.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bcread_ktab, @function
bcread_ktab:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	bcread_uleb128@PLT
	mov	rdi, rbx
	mov	r14, rax
	call	bcread_uleb128@PLT
	mov	rdi, rax
	mov	r12, rax
	call	hsize2hbits@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rsi, r14
	mov	edx, eax
	call	lj_tab_new@PLT
	mov	r13, rax
	test	r14, r14
	jne	.L14
.L2:
	test	r12, r12
	jle	.L1
	xor	r14d, r14d
	lea	rbp, 4[rsp]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, rbp
	mov	rdi, rbx
	call	bcread_ktabk@PLT
	mov	rdi, rbp
	call	tvisnil@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	add	r14, 1
	call	lua_assert@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rdx, rbp
	mov	rsi, r13
	call	lj_tab_set@PLT
	mov	rdi, rbx
	mov	rsi, rax
	call	bcread_ktabk@PLT
	cmp	r12, r14
	jne	.L5
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r13
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	edi, DWORD PTR [rax]
	call	tvref@PLT
	mov	rbp, rax
	test	r14, r14
	jle	.L2
	xor	r15d, r15d
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, rbp
	mov	rdi, rbx
	add	r15, 1
	add	rbp, 4
	call	bcread_ktabk@PLT
	cmp	r14, r15
	jne	.L3
	jmp	.L2
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bcread_ktab, .-bcread_ktab
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_lj_bcread.c_bcread_ktab.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bcread_ktab, %function
bcread_ktab:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L16
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r4, r0
	bl	bcread_uleb128
	mov	r9, r0
	mov	r0, r4
	bl	bcread_uleb128
	ldr	r5, [r4]
	mov	r8, r0
	bl	hsize2hbits
	mov	r1, r9
	mov	r2, r0
	mov	r0, r5
	bl	lj_tab_new
	cmp	r9, #0
	mov	r6, r0
	bne	.L14
.L2:
	cmp	r8, #0
	ble	.L1
	mov	r5, #0
.L5:
	mov	r1, sp
	mov	r0, r4
	bl	bcread_ktabk
	mov	r0, sp
	bl	tvisnil
	clz	r0, r0
	lsr	r0, r0, #5
	bl	lua_assert
	mov	r2, sp
	mov	r1, r6
	ldr	r0, [r4]
	bl	lj_tab_set
	add	r5, r5, #1
	mov	r1, r0
	mov	r0, r4
	bl	bcread_ktabk
	cmp	r8, r5
	bne	.L5
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L14:
	ldr	r0, [r0]
	bl	tvref
	cmp	r9, #0
	mov	r5, r0
	ble	.L2
	mov	r7, #0
.L3:
	mov	r1, r5
	mov	r0, r4
	add	r7, r7, #1
	bl	bcread_ktabk
	cmp	r9, r7
	add	r5, r5, #4
	bne	.L3
	b	.L2
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.size	bcread_ktab, .-bcread_ktab
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
