	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function auxresume
_auxresume:                             ## @auxresume
	.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
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movl	%edx, %esi
	callq	_lua_checkstack
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	callq	_lua_status
	movq	_LUA_OK@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_lua_gettop
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_lua_xmove
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_lua_resume
	cmpl	(%r12), %eax
	je	LBB0_8
## %bb.7:
	movq	_LUA_YIELD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
## %bb.11:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_lua_xmove
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_8:
	movq	%rbx, %rdi
	callq	_lua_gettop
	movl	%eax, %r15d
	leal	1(%r15), %esi
	movq	%r14, %rdi
	callq	_lua_checkstack
	movq	%rbx, %rdi
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_lua_xmove
	jmp	LBB0_13
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_9:
	movl	%r15d, %esi
	callq	_lua_pop
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	callq	_lua_pushliteral
LBB0_12:
	movl	$-1, %r15d
LBB0_13:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many arguments to resume"

	.comm	_LUA_OK,4,2                     ## @LUA_OK
L_.str.1:                               ## @.str.1
	.asciz	"cannot resume dead coroutine"

	.comm	_LUA_YIELD,4,2                  ## @LUA_YIELD
L_.str.2:                               ## @.str.2
	.asciz	"too many results to resume"

	.no_dead_strip	_auxresume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function auxresume
_auxresume:                             ; @auxresume
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	mov	x1, x2
	bl	_lua_checkstack
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x20
	bl	_lua_status
Lloh0:
	adrp	x22, _LUA_OK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LUA_OK@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_lua_gettop
	cbz	w0, LBB0_8
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_lua_xmove
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_lua_resume
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _LUA_YIELD@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LUA_YIELD@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x20
	bl	_lua_gettop
	mov	x21, x0
	add	w1, w0, #1
	mov	x0, x19
	bl	_lua_checkstack
	cbz	w0, LBB0_9
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_lua_xmove
	b	LBB0_12
LBB0_6:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_lua_xmove
	b	LBB0_11
LBB0_8:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
	mov	x0, x20
	mov	x1, x21
	bl	_lua_pop
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_lua_pushliteral
LBB0_11:
	mov	w21, #-1
LBB0_12:
	mov	x0, x21
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many arguments to resume"

	.comm	_LUA_OK,4,2                     ; @LUA_OK
l_.str.1:                               ; @.str.1
	.asciz	"cannot resume dead coroutine"

	.comm	_LUA_YIELD,4,2                  ; @LUA_YIELD
l_.str.2:                               ; @.str.2
	.asciz	"too many results to resume"

	.no_dead_strip	_auxresume
.subsections_via_symbols
