	.file	"extr_service_snlua.c_lalloc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Memory warning %.2f M"
	.text
	.p2align 4
	.type	lalloc, @function
lalloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rcx, QWORD PTR [rdi]
	mov	rbp, rsi
	lea	rax, [rcx+r12]
	test	rsi, rsi
	je	.L19
	sub	rax, rdx
.L19:
	mov	rdx, QWORD PTR 8[rdi]
	mov	QWORD PTR [rdi], rax
	test	rdx, rdx
	jne	.L21
.L4:
	mov	rdx, QWORD PTR 16[rdi]
	cmp	rdx, rax
	jb	.L22
.L7:
	mov	rdx, r12
	mov	rsi, r13
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	skynet_lalloc@PLT
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	cmp	rdx, rax
	jnb	.L4
	test	rbp, rbp
	je	.L10
	cmp	r12, r13
	jbe	.L4
.L10:
	mov	QWORD PTR [rdi], rcx
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	add	rdx, rdx
	mov	QWORD PTR 16[rdi], rdx
	test	rax, rax
	js	.L8
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
.L9:
	mulss	xmm0, DWORD PTR .LC0[rip]
	mov	edi, DWORD PTR 24[rdi]
	lea	rsi, .LC1[rip]
	call	skynet_error@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdx, rax
	and	eax, 1
	pxor	xmm0, xmm0
	shr	rdx
	or	rdx, rax
	cvtsi2ss	xmm0, rdx
	addss	xmm0, xmm0
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	lalloc, .-lalloc
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	897581056
	.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_service_snlua.c_lalloc.c"
	.text
	.global	__aeabi_ui2f
	.global	__aeabi_fmul
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Memory warning %.2f M\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lalloc, %function
lalloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	ip, [r0]
	mov	r7, r3
	add	r0, ip, r3
	ldr	r3, [r4, #4]
	subs	r6, r1, #0
	subne	r0, r0, r2
	cmp	r3, #0
	mov	r5, r2
	str	r0, [r4]
	beq	.L4
	cmp	r3, r0
	bcc	.L18
.L4:
	ldr	r3, [r4, #8]
	cmp	r3, r0
	bcc	.L19
.L6:
	mov	r2, r7
	mov	r1, r5
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	skynet_lalloc
.L18:
	cmp	r7, r2
	movls	r3, #0
	movhi	r3, #1
	cmp	r6, #0
	moveq	r3, #1
	cmp	r3, #0
	beq	.L4
	mov	r0, #0
	str	ip, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	lsl	r3, r3, #1
	str	r3, [r4, #8]
	bl	__aeabi_ui2f
	mov	r1, #897581056
	bl	__aeabi_fmul
	ldr	r1, .L20
	mov	r2, r0
	ldr	r0, [r4, #12]
	bl	skynet_error
	b	.L6
.L21:
	.align	2
.L20:
	.word	.LC0
	.size	lalloc, .-lalloc
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
