	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lastlistfield
_lastlistfield:                         ## @lastlistfield
	.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
	cmpl	$0, (%rsi)
	je	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	16(%rsi), %r15
	movq	16(%rsi), %rdi
	callq	_hasmultret
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_luaK_setmultret
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	movl	$-1, %ecx
	callq	_luaK_setlist
	decl	4(%rbx)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%r15), %rax
	movq	_VVOID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_luaK_exp2nextreg
LBB0_6:
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_luaK_setlist                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VVOID,8,3                      ## @VVOID
	.no_dead_strip	_lastlistfield
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lastlistfield
_lastlistfield:                         ; @lastlistfield
	.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
	ldr	w8, [x1]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x21, x1
	ldr	x0, [x21, #16]!
	bl	_hasmultret
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x1, x21
	bl	_luaK_setmultret
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	mov	x0, x20
	mov	w3, #-1
	bl	_luaK_setlist
	ldr	w8, [x19, #4]
	sub	w8, w8, #1
	str	w8, [x19, #4]
LBB0_3:
	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
LBB0_4:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _VVOID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VVOID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x21
	bl	_luaK_exp2nextreg
LBB0_6:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	ldp	w3, w2, [x19]
	mov	x0, x20
	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
	b	_luaK_setlist
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VVOID,8,3                      ; @VVOID
	.no_dead_strip	_lastlistfield
.subsections_via_symbols
