	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function luaK_setlist
_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %eax
                                        ## kill: def $edx killed $edx def $rdx
	movl	%esi, %ebx
	movq	%rdi, %r14
	leal	-1(%rdx), %ecx
	movslq	%ecx, %rcx
	imulq	$1374389535, %rcx, %rsi         ## imm = 0x51EB851F
	movq	%rsi, %rdi
	sarq	$36, %rdi
	shrq	$63, %rsi
	xorl	%ecx, %ecx
	cmpl	$-1, %eax
	cmovnel	%eax, %ecx
	leal	1(%rdi,%rsi), %r15d
	movq	_OP_SETLIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	cmpl	$25550, %edx                    ## imm = 0x63CE
	jg	LBB0_2
## %bb.1:
	movl	%ebx, %edx
	movl	%r15d, %r8d
	callq	_luaK_codeABC
	jmp	LBB0_3
LBB0_2:
	movl	%ebx, %edx
	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	%ebx
	movl	%ebx, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OP_SETLIST,4,2                 ## @OP_SETLIST
	.comm	_Instruction,4,2                ## @Instruction
	.no_dead_strip	_luaK_setlist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function luaK_setlist
_luaK_setlist:                          ; @luaK_setlist
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	sub	w8, w2, #1
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #36
	add	w8, w8, w9
	add	w21, w8, #1
	cmn	w3, #1
	csel	w3, wzr, w3, eq
Lloh0:
	adrp	x8, _OP_SETLIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OP_SETLIST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w8, #25550
	cmp	w2, w8
	b.gt	LBB0_2
; %bb.1:
	mov	x2, x20
	mov	x4, x21
	bl	_luaK_codeABC
	b	LBB0_3
LBB0_2:
	mov	x2, x20
	mov	w4, #0
	bl	_luaK_codeABC
Lloh3:
	adrp	x8, _Instruction@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Instruction@GOTPAGEOFF]
Lloh5:
	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, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_OP_SETLIST,4,2                 ; @OP_SETLIST
	.comm	_Instruction,4,2                ; @Instruction
	.no_dead_strip	_luaK_setlist
.subsections_via_symbols
