	.file	"extr_lvm.c_pushclosure.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pushclosure, @function
pushclosure:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r15d, DWORD PTR [rsi]
	mov	r14, QWORD PTR 16[rsi]
	mov	QWORD PTR 24[rsp], rsi
	mov	esi, r15d
	mov	QWORD PTR 16[rsp], rcx
	call	luaF_newLclosure@PLT
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, r13
	mov	rdx, rax
	mov	rbp, rax
	mov	QWORD PTR 8[rax], rsi
	mov	rsi, rbx
	call	setclLvalue@PLT
	test	r15d, r15d
	jle	.L8
	lea	eax, -1[r15]
	mov	rdi, QWORD PTR 0[rbp]
	xor	ebx, ebx
	lea	r15, 8[0+rax*8]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR [r12+rsi*8]
	add	rbx, 8
	mov	QWORD PTR [rdx], rax
	add	DWORD PTR [rax], 1
	cmp	r15, rbx
	je	.L8
.L7:
	cmp	QWORD PTR 8[r14+rbx*2], 0
	mov	rsi, QWORD PTR [r14+rbx*2]
	lea	rdx, [rdi+rbx]
	je	.L5
	mov	rdi, r13
	add	rsi, QWORD PTR 16[rsp]
	mov	QWORD PTR 8[rsp], rdx
	call	luaF_findupval@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR 8[rsp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR [rdi+rbx]
	add	rbx, 8
	add	DWORD PTR [rax], 1
	cmp	r15, rbx
	jne	.L7
.L8:
	mov	rdi, QWORD PTR 24[rsp]
	call	isblack@PLT
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR 24[rsp]
	mov	QWORD PTR 8[rax], rbp
.L1:
	add	rsp, 40
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pushclosure, .-pushclosure
	.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_lvm.c_pushclosure.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pushclosure, %function
pushclosure:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r1
	mov	r10, r3
	ldr	r3, [r1]
	sub	sp, sp, #12
	mov	r1, r3
	str	r3, [sp, #4]
	mov	r7, r2
	mov	r9, r0
	ldr	r4, [r8, #8]
	str	r10, [sp]
	bl	luaF_newLclosure
	mov	r6, r0
	ldr	r1, [sp, #48]
	mov	r0, r9
	mov	r2, r6
	str	r8, [r6, #4]
	bl	setclLvalue
	ldr	r3, [sp, #4]
	cmp	r3, #0
	ble	.L8
	mov	r5, #0
	ldr	fp, [r6]
	add	r10, r4, r3, lsl #3
	b	.L7
.L5:
	ldr	r2, [r7, r1, lsl #2]
	str	r2, [fp, r5]
.L6:
	ldr	ip, [r2]
	add	r4, r4, #8
	add	ip, ip, #1
	cmp	r10, r4
	add	r5, r5, #4
	str	ip, [r2]
	beq	.L8
.L7:
	ldm	r4, {r1, r2}
	cmp	r2, #0
	beq	.L5
	ldr	r3, [sp]
	mov	r0, r9
	add	r1, r3, r1
	bl	luaF_findupval
	str	r0, [fp, r5]
	ldr	fp, [r6]
	ldr	r2, [fp, r5]
	b	.L6
.L8:
	mov	r0, r8
	bl	isblack
	cmp	r0, #0
	streq	r6, [r8, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	pushclosure, .-pushclosure
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
