	.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, %r12
	movq	%rdi, %r14
	callq	_costatus
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_lua_checkstack
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_luaL_error
LBB0_2:
	movq	_CO_SUS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_lua_xmove
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_lua_setlevel
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_lua_resume
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_LUA_YIELD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.9:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_lua_xmove
	jmp	LBB0_10
LBB0_3:
	movq	_statnames@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_lua_pushfstring
LBB0_10:
	movl	$-1, %r15d
	jmp	LBB0_11
LBB0_6:
	movq	%r12, %rdi
	callq	_lua_gettop
	movl	%eax, %r15d
	leal	1(%r15), %esi
	movq	%r14, %rdi
	callq	_lua_checkstack
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_luaL_error
LBB0_8:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_lua_xmove
LBB0_11:
	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	_CO_SUS,4,2                     ## @CO_SUS
L_.str.1:                               ## @.str.1
	.asciz	"cannot resume %s coroutine"

	.comm	_statnames,8,3                  ## @statnames
	.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
	bl	_costatus
	mov	x22, x0
	mov	x0, x20
	mov	x1, x21
	bl	_lua_checkstack
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_luaL_error
LBB0_2:
Lloh2:
	adrp	x8, _CO_SUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CO_SUS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_lua_xmove
	mov	x0, x19
	mov	x1, x20
	bl	_lua_setlevel
	mov	x0, x20
	mov	x1, x21
	bl	_lua_resume
	cbz	w0, LBB0_8
; %bb.4:
Lloh5:
	adrp	x8, _LUA_YIELD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LUA_YIELD@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_lua_xmove
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _statnames@GOTPAGE
Lloh9:
	ldr	x8, [x8, _statnames@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w2, [x8, w22, sxtw #2]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_lua_pushfstring
LBB0_7:
	mov	w21, #-1
	b	LBB0_11
LBB0_8:
	mov	x0, x20
	bl	_lua_gettop
	mov	x21, x0
	add	w1, w0, #1
	mov	x0, x19
	bl	_lua_checkstack
	cbnz	w0, LBB0_10
; %bb.9:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_luaL_error
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_lua_xmove
LBB0_11:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many arguments to resume"

	.comm	_CO_SUS,4,2                     ; @CO_SUS
l_.str.1:                               ; @.str.1
	.asciz	"cannot resume %s coroutine"

	.comm	_statnames,8,3                  ; @statnames
	.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
