	.file	"extr_lj_gc.c_gc_traverse_tab.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gc_traverse_tab, @function
gc_traverse_tab:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	edi, DWORD PTR 32[rsi]
	call	tabref@PLT
	mov	r12, rax
	test	rax, rax
	je	.L2
	mov	rsi, rax
	mov	rdi, rbp
	call	gc_markobj@PLT
.L2:
	mov	edx, DWORD PTR MM_mode[rip]
	mov	rsi, r12
	mov	rdi, rbp
	call	lj_meta_fastg@PLT
	mov	r12, rax
	test	rax, rax
	je	.L3
	mov	rdi, rax
	call	tvisstr@PLT
	test	rax, rax
	jne	.L37
.L3:
	mov	eax, DWORD PTR LJ_GC_WEAK[rip]
	test	eax, eax
	jne	.L21
.L10:
	mov	r12d, 1
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	mov	edx, DWORD PTR LJ_GC_WEAK[rip]
	test	edx, edx
	je	.L10
	.p2align 4,,10
	.p2align 3
.L21:
	xor	r12d, r12d
.L11:
	mov	r14, QWORD PTR 8[r13]
	test	r14, r14
	jle	.L14
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rsi, rbx
	mov	rdi, r13
	add	rbx, 1
	call	arrayslot@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	gc_marktv@PLT
	cmp	r14, rbx
	jne	.L15
.L14:
	cmp	QWORD PTR 16[r13], 0
	jle	.L1
	mov	edi, DWORD PTR 24[r13]
	call	noderef@PLT
	mov	rdx, QWORD PTR 16[r13]
	test	rdx, rdx
	js	.L1
	mov	rbx, rax
	lea	r13, 8[rax+rdx*8]
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L17:
	add	rbx, 8
	cmp	r13, rbx
	je	.L1
.L20:
	mov	rdi, rbx
	call	tvisnil@PLT
	test	eax, eax
	jne	.L17
	lea	r14, 4[rbx]
	mov	rdi, r14
	call	tvisnil@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	lua_assert@PLT
	test	DWORD PTR LJ_GC_WEAKKEY[rip], r12d
	je	.L38
.L18:
	test	DWORD PTR LJ_GC_WEAKVAL[rip], r12d
	jne	.L17
	mov	rsi, rbx
	mov	rdi, rbp
	call	gc_marktv@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L38:
	mov	rsi, r14
	mov	rdi, rbp
	call	gc_marktv@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rdi, r12
	call	strVdata@PLT
	lea	rdx, 1[rax]
	movsx	eax, BYTE PTR [rax]
	test	eax, eax
	je	.L4
	mov	edi, DWORD PTR LJ_GC_WEAKVAL[rip]
	mov	esi, DWORD PTR LJ_GC_WEAKKEY[rip]
	xor	r12d, r12d
	mov	ecx, edi
	not	ecx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	eax, 118
	je	.L39
	cmp	eax, 75
	cmove	r12d, ecx
.L6:
	movsx	eax, BYTE PTR [rdx]
	add	rdx, 1
	test	eax, eax
	je	.L40
.L8:
	cmp	eax, 107
	jne	.L5
	movsx	eax, BYTE PTR [rdx]
	add	rdx, 1
	or	r12d, esi
	test	eax, eax
	jne	.L8
.L40:
	mov	eax, DWORD PTR LJ_GC_WEAK[rip]
	test	r12d, r12d
	jle	.L13
	not	eax
	and	eax, DWORD PTR 0[r13]
	mov	esi, DWORD PTR 0[rbp]
	or	eax, r12d
	mov	edi, DWORD PTR 28[r13]
	mov	DWORD PTR 0[r13], eax
	call	setgcrefr@PLT
	mov	rdi, r13
	call	obj2gco@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, eax
	call	setgcref@PLT
	mov	eax, DWORD PTR LJ_GC_WEAK[rip]
.L13:
	cmp	r12d, eax
	je	.L10
	test	DWORD PTR LJ_GC_WEAKVAL[rip], r12d
	jne	.L14
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L39:
	or	r12d, edi
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	gc_traverse_tab, .-gc_traverse_tab
	.comm	MM_mode,4,4
	.comm	LJ_GC_WEAKVAL,4,4
	.comm	LJ_GC_WEAKKEY,4,4
	.comm	LJ_GC_WEAK,4,4
	.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_gc.c_gc_traverse_tab.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gc_traverse_tab, %function
gc_traverse_tab:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	ldr	r0, [r1, #20]
	mov	r5, r1
	bl	tabref
	subs	r4, r0, #0
	beq	.L2
	mov	r1, r4
	mov	r0, r6
	bl	gc_markobj
.L2:
	ldr	r3, .L45
	mov	r1, r4
	mov	r0, r6
	ldr	r2, [r3]
	bl	lj_meta_fastg
	subs	r4, r0, #0
	beq	.L3
	bl	tvisstr
	cmp	r0, #0
	bne	.L43
.L3:
	ldr	r3, .L45+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L21
.L10:
	mov	r7, #1
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	ldr	r3, .L45+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L10
.L21:
	mov	r7, #0
.L11:
	ldr	r8, [r5, #4]
	cmp	r8, #0
	ble	.L14
	mov	r4, #0
.L15:
	mov	r1, r4
	mov	r0, r5
	bl	arrayslot
	add	r4, r4, #1
	mov	r1, r0
	mov	r0, r6
	bl	gc_marktv
	cmp	r8, r4
	bne	.L15
.L14:
	ldr	r3, [r5, #8]
	cmp	r3, #0
	ble	.L1
	ldr	r0, [r5, #12]
	bl	noderef
	ldr	r5, [r5, #8]
	cmp	r5, #0
	blt	.L1
	add	r5, r5, #1
	mov	r4, r0
	ldr	r10, .L45+8
	ldr	r9, .L45+12
	add	r5, r0, r5, lsl #3
	b	.L20
.L17:
	add	r4, r4, #8
	cmp	r5, r4
	beq	.L1
.L20:
	mov	r0, r4
	bl	tvisnil
	cmp	r0, #0
	bne	.L17
	add	r8, r4, #4
	mov	r0, r8
	bl	tvisnil
	clz	r0, r0
	lsr	r0, r0, #5
	bl	lua_assert
	ldr	r3, [r10]
	tst	r7, r3
	beq	.L44
.L18:
	ldr	r3, [r9]
	tst	r7, r3
	bne	.L17
	mov	r1, r4
	mov	r0, r6
	bl	gc_marktv
	b	.L17
.L44:
	mov	r1, r8
	mov	r0, r6
	bl	gc_marktv
	b	.L18
.L43:
	mov	r0, r4
	bl	strVdata
	ldrb	r3, [r0], #1	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L4
	ldr	r4, .L45+12
	mov	r7, #0
	ldr	ip, [r4]
	ldr	r1, .L45+8
	mvn	r2, ip
	ldr	r1, [r1]
.L8:
	cmp	r3, #107
	orreq	r7, r7, r1
	beq	.L6
	cmp	r3, #118
	orreq	r7, r7, ip
	beq	.L6
	cmp	r3, #75
	moveq	r7, r2
.L6:
	ldrb	r3, [r0], #1	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L8
	ldr	r8, .L45+4
	cmp	r7, #0
	ldr	r3, [r8]
	ble	.L13
	ldr	r2, [r5]
	ldr	r1, [r6]
	bic	r3, r2, r3
	orr	r3, r3, r7
	str	r3, [r5]
	ldr	r0, [r5, #16]
	bl	setgcrefr
	mov	r0, r5
	ldr	r9, [r6]
	bl	obj2gco
	mov	r1, r0
	mov	r0, r9
	bl	setgcref
	ldr	r3, [r8]
.L13:
	cmp	r7, r3
	beq	.L10
	ldr	r3, [r4]
	tst	r7, r3
	bne	.L14
	b	.L11
.L46:
	.align	2
.L45:
	.word	MM_mode
	.word	LJ_GC_WEAK
	.word	LJ_GC_WEAKKEY
	.word	LJ_GC_WEAKVAL
	.size	gc_traverse_tab, .-gc_traverse_tab
	.comm	MM_mode,4,4
	.comm	LJ_GC_WEAKVAL,4,4
	.comm	LJ_GC_WEAKKEY,4,4
	.comm	LJ_GC_WEAK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
