	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lua_pushcclosure
_lua_pushcclosure:                      ## @lua_pushcclosure
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_luaC_checkGC
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_api_checknelems
	movq	%r14, %rdi
	callq	_getcurrenv
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_luaF_newCclosure
	movq	%rax, %r15
	movl	%r12d, 8(%rax)
	movslq	%r13d, %r12
	movq	(%r14), %rdx
	subq	%r12, %rdx
	movq	%rdx, (%r14)
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.1:
	leaq	-4(,%r12,4), %rbx
	decq	%r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	addq	%rbx, %rsi
	addq	%r12, %rdx
	movq	%r14, %rdi
	callq	_setobj
	movq	(%r14), %rdx
	addq	$-4, %rbx
	decq	%r12
	decl	%r13d
	jne	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	movq	%rdx, %rsi
	movq	%r15, %rdx
	callq	_setclvalue
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_api_incr_top                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lua_pushcclosure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lua_pushcclosure
_lua_pushcclosure:                      ; @lua_pushcclosure
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	bl	_luaC_checkGC
	mov	x0, x19
	mov	x1, x20
	bl	_api_checknelems
	mov	x0, x19
	bl	_getcurrenv
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_luaF_newCclosure
	mov	x21, x0
	str	w22, [x0, #8]
	sxtw	x8, w20
	ldr	x9, [x19]
	sub	x1, x9, x8
	str	x1, [x19]
	cbz	w20, LBB0_3
; %bb.1:
	lsl	x9, x8, #2
	sub	x22, x9, #4
	sub	x23, x8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x8, x8, x22
	add	x2, x1, x23
	mov	x0, x19
	mov	x1, x8
	bl	_setobj
	ldr	x1, [x19]
	sub	x22, x22, #4
	sub	x23, x23, #1
	sub	w20, w20, #1
	cbnz	w20, LBB0_2
LBB0_3:
	mov	x0, x19
	mov	x2, x21
	bl	_setclvalue
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_api_incr_top
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lua_pushcclosure
.subsections_via_symbols
