	.file	"extr_lgc.c_luaC_step.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	luaC_step
	.type	luaC_step, @function
luaC_step:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	G@PLT
	mov	rbp, rax
	mov	rdi, rax
	call	getdebt@PLT
	mov	edx, DWORD PTR 12[rbp]
	mov	ebx, eax
	test	edx, edx
	jne	.L2
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L12:
	cmp	QWORD PTR 0[rbp], rax
	je	.L4
.L2:
	mov	rdi, r12
	call	singlestep@PLT
	mov	ecx, DWORD PTR GCSTEPSIZE[rip]
	sub	ebx, eax
	mov	rax, QWORD PTR GCSpause[rip]
	neg	ecx
	cmp	ecx, ebx
	jl	.L12
	cmp	QWORD PTR 0[rbp], rax
	je	.L4
	mov	eax, ebx
	mov	rdi, rbp
	cdq
	idiv	DWORD PTR 8[rbp]
	imul	eax, DWORD PTR STEPMULADJ[rip]
	mov	esi, eax
	call	luaE_setdebt@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	runafewfinalizers@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	setpause@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	imul	esi, DWORD PTR GCSTEPSIZE[rip], -10
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	luaE_setdebt@PLT
	.cfi_endproc
.LFE0:
	.size	luaC_step, .-luaC_step
	.comm	STEPMULADJ,4,4
	.comm	GCSpause,8,8
	.comm	GCSTEPSIZE,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_lgc.c_luaC_step.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.global	luaC_step
	.syntax unified
	.arm
	.fpu softvfp
	.type	luaC_step, %function
luaC_step:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	bl	G
	mov	r5, r0
	bl	getdebt
	ldr	r3, [r5, #8]
	cmp	r3, #0
	beq	.L8
	mov	r4, r0
	ldr	r8, .L12
	ldr	r7, .L12+4
	b	.L2
.L11:
	ldr	r2, [r5]
	ldr	r3, [r7]
	cmp	r2, r3
	beq	.L4
.L2:
	mov	r0, r6
	bl	singlestep
	ldr	r3, [r8]
	sub	r4, r4, r0
	rsb	r3, r3, #0
	cmp	r3, r4
	blt	.L11
	ldr	r3, [r7]
	ldr	r2, [r5]
	cmp	r2, r3
	beq	.L4
	ldr	r1, [r5, #4]
	mov	r0, r4
	bl	__aeabi_idiv
	mov	r3, r0
	ldr	r2, .L12+8
	mov	r0, r5
	ldr	r1, [r2]
	mul	r1, r3, r1
	bl	luaE_setdebt
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	runafewfinalizers
.L4:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	setpause
.L8:
	ldr	r3, .L12
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r3]
	rsb	r3, r1, r1, lsl #29
	rsb	r1, r1, r3, lsl #2
	lsl	r1, r1, #1
	b	luaE_setdebt
.L13:
	.align	2
.L12:
	.word	GCSTEPSIZE
	.word	GCSpause
	.word	STEPMULADJ
	.size	luaC_step, .-luaC_step
	.comm	STEPMULADJ,4,4
	.comm	GCSpause,4,4
	.comm	GCSTEPSIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
