	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_ASYNC_callback_status
_test_ASYNC_callback_status:            ## @test_ASYNC_callback_status
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$100, -28(%rbp)
	xorl	%r14d, %r14d
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_ASYNC_init_thread
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	xorl	%eax, %eax
	callq	_ASYNC_WAIT_CTX_new
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %rbx
	movq	_test_callback@GOTPCREL(%rip), %rsi
	leaq	-28(%rbp), %r15
	movq	%rax, %rdi
	movq	%r15, %rdx
	callq	_ASYNC_WAIT_CTX_set_callback
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.3:
	leaq	-48(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_ASYNC_WAIT_CTX_get_callback
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.4:
	movq	-48(%rbp), %rax
	cmpq	_test_callback@GOTPCREL(%rip), %rax
	jne	LBB0_12
## %bb.5:
	cmpq	%r15, -40(%rbp)
	jne	LBB0_12
## %bb.6:
	leaq	-28(%rbp), %rdi
	callq	_test_callback
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.7:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ASYNC_WAIT_CTX_set_status
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.8:
	movq	%rbx, %rdi
	callq	_ASYNC_WAIT_CTX_get_status
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.9:
	movq	%rbx, %rdi
	callq	_ASYNC_WAIT_CTX_free
	movl	$1, %r14d
	jmp	LBB0_13
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movq	%rbx, %rdi
	callq	_ASYNC_WAIT_CTX_free
LBB0_13:
	xorl	%eax, %eax
	callq	_ASYNC_cleanup_thread
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"test_ASYNC_callback_status() failed\n"

	.no_dead_strip	_test_ASYNC_callback_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_ASYNC_callback_status
_test_ASYNC_callback_status:            ; @test_ASYNC_callback_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	w8, #100
	stur	w8, [x29, #-20]
	mov	w0, #1
	mov	w1, #0
	bl	_ASYNC_init_thread
	cbz	w0, LBB0_10
; %bb.1:
	bl	_ASYNC_WAIT_CTX_new
	mov	x19, x0
	cbz	x0, LBB0_11
; %bb.2:
Lloh0:
	adrp	x20, _test_callback@GOTPAGE
Lloh1:
	ldr	x20, [x20, _test_callback@GOTPAGEOFF]
	sub	x2, x29, #20
	mov	x0, x19
	mov	x1, x20
	bl	_ASYNC_WAIT_CTX_set_callback
	cmp	w0, #1
	b.ne	LBB0_11
; %bb.3:
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x0, x19
	bl	_ASYNC_WAIT_CTX_get_callback
	cmp	w0, #1
	b.ne	LBB0_11
; %bb.4:
	ldr	x8, [sp, #16]
	cmp	x8, x20
	b.ne	LBB0_11
; %bb.5:
	ldr	x8, [sp, #8]
	sub	x9, x29, #20
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.6:
	sub	x0, x29, #20
	bl	_test_callback
	cmp	w0, #1
	b.ne	LBB0_11
; %bb.7:
	mov	x0, x19
	mov	w1, #1
	bl	_ASYNC_WAIT_CTX_set_status
	cmp	w0, #1
	b.ne	LBB0_11
; %bb.8:
	mov	x0, x19
	bl	_ASYNC_WAIT_CTX_get_status
	cmp	w0, #1
	b.ne	LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_ASYNC_WAIT_CTX_free
	mov	w19, #1
	b	LBB0_12
LBB0_10:
	mov	x19, #0
LBB0_11:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	x0, x19
	bl	_ASYNC_WAIT_CTX_free
	mov	w19, #0
LBB0_12:
	bl	_ASYNC_cleanup_thread
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test_ASYNC_callback_status() failed\n"

	.no_dead_strip	_test_ASYNC_callback_status
.subsections_via_symbols
