	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LoadUpvalues
_LoadUpvalues:                          ## @LoadUpvalues
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_LoadInt
	movl	%eax, %r15d
	movl	(%r12), %edi
	movq	_Upvaldesc@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %esi
	callq	_luaM_newvector
	movq	%rax, 8(%r14)
	movl	%r15d, (%r14)
	testl	%r15d, %r15d
	jle	LBB0_10
## %bb.1:
	movl	%r15d, %r15d
	leaq	-1(%r15), %rdx
	movl	%r15d, %ecx
	andl	$3, %ecx
	cmpq	$3, %rdx
	jae	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_5
LBB0_3:
	movl	%r15d, %esi
	andl	$-4, %esi
	leaq	88(%rax), %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -72(%rdi)
	movq	$0, -48(%rdi)
	movq	$0, -24(%rdi)
	movq	$0, (%rdi)
	addq	$4, %rdx
	addq	$96, %rdi
	cmpq	%rdx, %rsi
	jne	LBB0_4
LBB0_5:
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.6:
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rax,%rdx,8), %rax
	addq	$16, %rax
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rax,%rdx)
	addq	$24, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_7
LBB0_8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_LoadByte
	movq	8(%r14), %rcx
	movq	%rax, 8(%rcx,%rbx)
	movq	%r12, %rdi
	callq	_LoadByte
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%rbx)
	addq	$24, %rbx
	decq	%r15
	jne	LBB0_9
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Upvaldesc,4,2                  ## @Upvaldesc
	.no_dead_strip	_LoadUpvalues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LoadUpvalues
_LoadUpvalues:                          ; @LoadUpvalues
	.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	x19, x1
	mov	x20, x0
	bl	_LoadInt
	mov	x21, x0
	ldr	w0, [x20]
Lloh0:
	adrp	x8, _Upvaldesc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Upvaldesc@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_luaM_newvector
	str	x0, [x19, #8]
	str	w21, [x19]
	cmp	w21, #1
	b.lt	LBB0_10
; %bb.1:
	mov	w22, w21
	cmp	w21, #4
	b.hs	LBB0_3
; %bb.2:
	mov	x8, #0
	b	LBB0_6
LBB0_3:
	and	x8, x22, #0xfffffffc
	add	x9, x0, #64
	mov	x10, x8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	stur	xzr, [x9, #-48]
	stur	xzr, [x9, #-24]
	str	xzr, [x9]
	str	xzr, [x9, #24]
	add	x9, x9, #96
	subs	x10, x10, #4
	b.ne	LBB0_4
; %bb.5:
	cmp	x8, x22
	b.eq	LBB0_8
LBB0_6:
	mov	w9, #24
	madd	x9, x8, x9, x0
	add	x9, x9, #16
	sub	x8, x22, x8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x9], #24
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	mov	x21, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_LoadByte
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	str	x0, [x8, #8]
	mov	x0, x20
	bl	_LoadByte
	ldr	x8, [x19, #8]
	str	x0, [x8, x21]
	add	x21, x21, #24
	subs	x22, x22, #1
	b.ne	LBB0_9
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_Upvaldesc,4,2                  ; @Upvaldesc
	.no_dead_strip	_LoadUpvalues
.subsections_via_symbols
