	.file	"extr_lj_gc.c_gc_traverse_thread.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gc_traverse_thread, @function
gc_traverse_thread:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	edi, DWORD PTR 8[rsi]
	mov	rbp, QWORD PTR 16[rsi]
	call	tvref@PLT
	movsx	rdx, DWORD PTR LJ_FR2[rip]
	lea	r13, 4[rax+rdx*4]
	cmp	rbp, r13
	jbe	.L2
	mov	rbx, r13
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, rbx
	mov	rdi, r12
	add	rbx, 4
	call	gc_marktv@PLT
	cmp	rbp, rbx
	ja	.L3
	sub	rbp, 1
	sub	rbp, r13
	shr	rbp, 2
	lea	r13, 4[r13+rbp*4]
.L2:
	mov	rax, QWORD PTR GCSatomic[rip]
	cmp	QWORD PTR [r12], rax
	je	.L10
.L4:
	mov	edi, DWORD PTR 4[r14]
	call	tabref@PLT
	mov	rdi, r12
	mov	esi, eax
	call	gc_markobj@PLT
	mov	rsi, r14
	mov	rdi, r12
	call	gc_traverse_frames@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r14
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	esi, eax
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	lj_state_shrinkstack@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[r14]
	call	tvref@PLT
	movsx	rdx, DWORD PTR [r14]
	lea	rbx, [rax+rdx*4]
	cmp	rbx, r13
	jbe	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, r13
	add	r13, 4
	call	setnilV@PLT
	cmp	rbx, r13
	ja	.L5
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	gc_traverse_thread, .-gc_traverse_thread
	.comm	LJ_FR2,4,4
	.comm	GCSatomic,8,8
	.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_thread.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gc_traverse_thread, %function
gc_traverse_thread:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	ldr	r0, [r1, #8]
	ldr	r5, [r1, #12]
	mov	r8, r1
	bl	tvref
	ldr	r3, .L11
	ldr	r3, [r3]
	add	r3, r3, #1
	add	r6, r0, r3, lsl #2
	cmp	r5, r6
	bls	.L2
	mov	r4, r6
.L3:
	mov	r1, r4
	mov	r0, r7
	add	r4, r4, #4
	bl	gc_marktv
	cmp	r5, r4
	bhi	.L3
	sub	r3, r5, #1
	sub	r3, r3, r6
	bic	r3, r3, #3
	add	r3, r3, #4
	add	r6, r6, r3
.L2:
	ldr	r3, .L11+4
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L10
.L4:
	ldr	r0, [r8, #4]
	bl	tabref
	mov	r1, r0
	mov	r0, r7
	bl	gc_markobj
	mov	r1, r8
	mov	r0, r7
	bl	gc_traverse_frames
	mov	r1, r0
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, lr}
	b	lj_state_shrinkstack
.L10:
	ldr	r0, [r8, #8]
	bl	tvref
	ldr	r4, [r8]
	add	r4, r0, r4, lsl #2
	cmp	r4, r6
	bls	.L4
.L5:
	mov	r0, r6
	add	r6, r6, #4
	bl	setnilV
	cmp	r4, r6
	bhi	.L5
	b	.L4
.L12:
	.align	2
.L11:
	.word	LJ_FR2
	.word	GCSatomic
	.size	gc_traverse_thread, .-gc_traverse_thread
	.comm	LJ_FR2,4,4
	.comm	GCSatomic,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
