	.file	"extr_lj_asm.c_asm_snap_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	asm_snap_alloc, @function
asm_snap_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdx, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR [rdi]
	sal	rax, 4
	add	rax, QWORD PTR 8[rdx]
	mov	rcx, QWORD PTR [rdx]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L15
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	lea	r12, [rcx+rdx*4]
	add	rdx, rax
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	lea	r13, [rcx+rdx*4]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	add	r12, 4
	cmp	r12, r13
	je	.L19
.L6:
	mov	ebp, DWORD PTR [r12]
	mov	edi, ebp
	call	snap_ref@PLT
	mov	rdi, rax
	mov	rbx, rax
	call	irref_isk@PLT
	test	eax, eax
	jne	.L4
	mov	rsi, rbx
	mov	rdi, r14
	call	asm_snap_alloc1@PLT
	cmp	QWORD PTR LJ_SOFTFP[rip], 0
	je	.L4
	test	DWORD PTR SNAP_SOFTFPNUM[rip], ebp
	je	.L4
	lea	rbp, 1[rbx]
	mov	rdi, rbp
	call	IR@PLT
	mov	edi, DWORD PTR [rax]
	call	irt_type@PLT
	xor	edi, edi
	cmp	QWORD PTR IRT_SOFTFP[rip], rax
	sete	dil
	add	r12, 4
	call	lua_assert@PLT
	mov	rsi, rbp
	mov	rdi, r14
	call	asm_snap_alloc1@PLT
	cmp	r12, r13
	jne	.L6
.L19:
	pop	rbx
	.cfi_def_cfa_offset 40
	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
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	ret
	.cfi_endproc
.LFE0:
	.size	asm_snap_alloc, .-asm_snap_alloc
	.comm	SNAP_SOFTFPNUM,4,4
	.comm	LJ_SOFTFP,8,8
	.comm	IRT_SOFTFP,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_asm.c_asm_snap_alloc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	asm_snap_alloc, %function
asm_snap_alloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r1, [r0, #4]
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r2, [r0]
	ldr	r3, [r1, #4]
	ldr	r5, [r1]
	add	r1, r3, r2, lsl #3
	ldr	r7, [r1, #4]
	ldr	r3, [r3, r2, lsl #3]
	cmp	r7, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	add	r7, r3, r7
	add	r7, r5, r7, lsl #2
	mov	r8, r0
	ldr	r9, .L19
	ldr	r10, .L19+4
	ldr	fp, .L19+8
	add	r5, r5, r3, lsl #2
	b	.L6
.L4:
	cmp	r5, r7
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	ldr	r6, [r5], #4
	mov	r0, r6
	bl	snap_ref
	mov	r4, r0
	bl	irref_isk
	cmp	r0, #0
	bne	.L4
	mov	r1, r4
	mov	r0, r8
	bl	asm_snap_alloc1
	ldr	r3, [r9]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [r10]
	tst	r6, r3
	beq	.L4
	add	r4, r4, #1
	mov	r0, r4
	bl	IR
	ldr	r0, [r0]
	bl	irt_type
	ldr	r3, [fp]
	sub	r0, r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	lua_assert
	mov	r1, r4
	mov	r0, r8
	bl	asm_snap_alloc1
	cmp	r5, r7
	bne	.L6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	.align	2
.L19:
	.word	LJ_SOFTFP
	.word	SNAP_SOFTFPNUM
	.word	IRT_SOFTFP
	.size	asm_snap_alloc, .-asm_snap_alloc
	.comm	SNAP_SOFTFPNUM,4,4
	.comm	LJ_SOFTFP,4,4
	.comm	IRT_SOFTFP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
