	.file	"extr_lstate.c_luaE_setdebt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	luaE_setdebt
	.type	luaE_setdebt, @function
luaE_setdebt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	gettotalbytes@PLT
	xor	edi, edi
	test	rax, rax
	mov	rbx, rax
	setg	dil
	call	lua_assert@PLT
	mov	rsi, rbx
	sub	rsi, QWORD PTR MAX_LMEM[rip]
	cmp	rsi, r12
	cmovl	rsi, r12
	sub	rbx, rsi
	mov	QWORD PTR 0[rbp], rsi
	mov	QWORD PTR 8[rbp], rbx
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	luaE_setdebt, .-luaE_setdebt
	.comm	MAX_LMEM,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_lstate.c_luaE_setdebt.c"
	.text
	.align	2
	.global	luaE_setdebt
	.syntax unified
	.arm
	.fpu softvfp
	.type	luaE_setdebt, %function
luaE_setdebt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r1
	mov	r5, r0
	bl	gettotalbytes
	mov	r4, r0
	cmp	r0, #0
	movle	r0, #0
	movgt	r0, #1
	bl	lua_assert
	ldr	r3, .L4
	ldr	r3, [r3]
	sub	r3, r4, r3
	cmp	r3, r6
	movge	r1, r3
	movlt	r1, r6
	sub	r4, r4, r1
	stm	r5, {r1, r4}
	pop	{r4, r5, r6, pc}
.L5:
	.align	2
.L4:
	.word	MAX_LMEM
	.size	luaE_setdebt, .-luaE_setdebt
	.comm	MAX_LMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
