	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pushclosure
_pushclosure:                           ## @pushclosure
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	movl	(%rsi), %r14d
	movq	16(%rsi), %r12
	movl	%r14d, %esi
	callq	_luaF_newLclosure
	movq	%rax, %rbx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, 8(%rax)
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, %rdx
	callq	_setclLvalue
	testl	%r14d, %r14d
	jle	LBB0_6
## %bb.1:
	shlq	$3, %r14
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rsi,8), %rax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rcx
	movq	%rax, (%rcx,%r15)
	movq	(%rbx), %rax
	movq	(%rax,%r15), %rax
	incl	(%rax)
	addq	$8, %r15
	cmpq	%r15, %r14
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%r12,%r15,2)
	movq	(%r12,%r15,2), %rsi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	-72(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	%r13, %rdi
	callq	_luaF_findupval
	jmp	LBB0_5
LBB0_6:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_isblack
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, 8(%r14)
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pushclosure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pushclosure
_pushclosure:                           ; @pushclosure
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x25, x4
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
	ldr	w24, [x1]
	ldr	x26, [x1, #16]
	mov	x1, x24
	bl	_luaF_newLclosure
	mov	x22, x0
	str	x19, [x0, #8]
	mov	x0, x23
	mov	x1, x25
	mov	x2, x22
	bl	_setclLvalue
	cmp	w24, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x25, #0
	add	x26, x26, #8
	lsl	x24, x24, #3
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x21, x8, lsl #3]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	str	x0, [x8, x25]
	ldr	x8, [x22]
	ldr	x8, [x8, x25]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	add	x26, x26, #16
	add	x25, x25, #8
	cmp	x24, x25
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x26, #-8]
	cbz	x9, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x8, x20
	mov	x0, x23
	bl	_luaF_findupval
	b	LBB0_3
LBB0_6:
	mov	x0, x19
	bl	_isblack
	cbnz	w0, LBB0_8
; %bb.7:
	str	x22, [x19, #8]
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pushclosure
.subsections_via_symbols
