	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaK_setlist                   ## -- Begin function luaK_setlist
	.p2align	4, 0x90
_luaK_setlist:                          ## @luaK_setlist
	.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
                                        ## kill: def $edx killed $edx def $rdx
	movl	%esi, %r12d
	movq	%rdi, %r14
	leal	-1(%rdx), %eax
	movq	_LFIELDS_PER_FLUSH@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	movl	%eax, %r13d
	movq	_LUA_MULTRET@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	%ecx, (%rax)
	cmovnel	%ecx, %ebx
	leal	1(%r13), %r15d
	xorl	%edi, %edi
	testl	%ecx, %ecx
	setne	%dil
	callq	_lua_assert
	movq	_MAXARG_C@GOTPCREL(%rip), %rax
	movq	_OP_SETLIST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpl	(%rax), %r13d
	jge	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	callq	_luaK_codeABC
	jmp	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_luaK_codeABC
	movq	_Instruction@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_cast
	movq	8(%r14), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_luaK_code
LBB0_3:
	incl	%r12d
	movl	%r12d, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LFIELDS_PER_FLUSH,4,2          ## @LFIELDS_PER_FLUSH
	.comm	_LUA_MULTRET,4,2                ## @LUA_MULTRET
	.comm	_MAXARG_C,4,2                   ## @MAXARG_C
	.comm	_OP_SETLIST,4,2                 ## @OP_SETLIST
	.comm	_Instruction,4,2                ## @Instruction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaK_setlist                   ; -- Begin function luaK_setlist
	.p2align	2
_luaK_setlist:                          ; @luaK_setlist
	.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, x1
	mov	x19, x0
	sub	w8, w2, #1
Lloh0:
	adrp	x9, _LFIELDS_PER_FLUSH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LFIELDS_PER_FLUSH@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w23, w8, w9
Lloh3:
	adrp	x8, _LUA_MULTRET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LUA_MULTRET@GOTPAGEOFF]
	add	w21, w23, #1
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w3
	csel	w22, wzr, w3, eq
	cmp	w3, #0
	cset	w0, ne
	bl	_lua_assert
Lloh6:
	adrp	x8, _MAXARG_C@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAXARG_C@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _OP_SETLIST@GOTPAGE
Lloh10:
	ldr	x9, [x9, _OP_SETLIST@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x22
	cmp	w23, w8
	b.ge	LBB0_2
; %bb.1:
	mov	x4, x21
	bl	_luaK_codeABC
	b	LBB0_3
LBB0_2:
	mov	w4, #0
	bl	_luaK_codeABC
Lloh12:
	adrp	x8, _Instruction@GOTPAGE
Lloh13:
	ldr	x8, [x8, _Instruction@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_cast
	mov	x1, x0
	ldr	x8, [x19, #8]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_luaK_code
LBB0_3:
	add	w8, w20, #1
	str	w8, [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
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LFIELDS_PER_FLUSH,4,2          ; @LFIELDS_PER_FLUSH
	.comm	_LUA_MULTRET,4,2                ; @LUA_MULTRET
	.comm	_MAXARG_C,4,2                   ; @MAXARG_C
	.comm	_OP_SETLIST,4,2                 ; @OP_SETLIST
	.comm	_Instruction,4,2                ; @Instruction
.subsections_via_symbols
