	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function costatus
_costatus:                              ## @costatus
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpq	%rsi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_lua_status
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_8
LBB0_3:
	movq	_CO_SUS@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	movq	_CO_RUN@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_lua_getstack
	testl	%eax, %eax
	jle	LBB0_7
## %bb.6:
	movq	_CO_NOR@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	%rbx, %rdi
	callq	_lua_gettop
	testl	%eax, %eax
	jne	LBB0_3
LBB0_8:
	movq	_CO_DEAD@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CO_RUN,4,2                     ## @CO_RUN
	.comm	_CO_SUS,4,2                     ## @CO_SUS
	.comm	_CO_NOR,4,2                     ## @CO_NOR
	.comm	_CO_DEAD,4,2                    ## @CO_DEAD
	.no_dead_strip	_costatus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function costatus
_costatus:                              ; @costatus
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cmp	x0, x1
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x0, x1
	bl	_lua_status
	cbz	w0, LBB0_5
; %bb.2:
	cmp	w0, #128
	b.ne	LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _CO_SUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CO_SUS@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
Lloh2:
	adrp	x8, _CO_RUN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CO_RUN@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #0
	bl	_lua_getstack
	cmp	w0, #0
	b.le	LBB0_8
; %bb.6:
Lloh4:
	adrp	x8, _CO_NOR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CO_NOR@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x8, _CO_DEAD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CO_DEAD@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_lua_gettop
Lloh8:
	adrp	x8, _CO_SUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CO_SUS@GOTPAGEOFF]
Lloh10:
	adrp	x9, _CO_DEAD@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CO_DEAD@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CO_RUN,4,2                     ; @CO_RUN
	.comm	_CO_SUS,4,2                     ; @CO_SUS
	.comm	_CO_NOR,4,2                     ; @CO_NOR
	.comm	_CO_DEAD,4,2                    ; @CO_DEAD
	.no_dead_strip	_costatus
.subsections_via_symbols
