	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_ASYNC_start_job
_test_ASYNC_start_job:                  ## @test_ASYNC_start_job
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -48(%rbp)
	movq	_ctr@GOTPCREL(%rip), %r15
	movl	$0, (%r15)
	xorl	%r14d, %r14d
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_ASYNC_init_thread
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	xorl	%eax, %eax
	callq	_ASYNC_WAIT_CTX_new
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rax, %rbx
	movq	_add_two@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	-48(%rbp), %rdi
	leaq	-36(%rbp), %rdx
	movq	%rax, %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ASYNC_start_job
	movq	_ASYNC_PAUSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.3:
	cmpl	$1, (%r15)
	jne	LBB0_10
## %bb.4:
	movl	(%r12), %ecx
	leaq	-48(%rbp), %rdi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ASYNC_start_job
	movq	_ASYNC_FINISH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.5:
	cmpl	$2, (%r15)
	jne	LBB0_10
## %bb.6:
	cmpl	$2, -36(%rbp)
	jne	LBB0_10
## %bb.7:
	movq	%rbx, %rdi
	callq	_ASYNC_WAIT_CTX_free
	movl	$1, %r14d
	jmp	LBB0_11
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movq	%rbx, %rdi
	callq	_ASYNC_WAIT_CTX_free
LBB0_11:
	xorl	%eax, %eax
	callq	_ASYNC_cleanup_thread
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ctr,4,2                        ## @ctr
	.comm	_add_two,4,2                    ## @add_two
	.comm	_ASYNC_PAUSE,8,3                ## @ASYNC_PAUSE
	.comm	_ASYNC_FINISH,8,3               ## @ASYNC_FINISH
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"test_ASYNC_start_job() failed\n"

	.no_dead_strip	_test_ASYNC_start_job
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_ASYNC_start_job
_test_ASYNC_start_job:                  ; @test_ASYNC_start_job
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	str	xzr, [sp, #8]
Lloh0:
	adrp	x20, _ctr@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ctr@GOTPAGEOFF]
	str	wzr, [x20]
	mov	w0, #1
	mov	w1, #0
	bl	_ASYNC_init_thread
	cbz	w0, LBB0_5
; %bb.1:
	bl	_ASYNC_WAIT_CTX_new
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.2:
Lloh2:
	adrp	x21, _add_two@GOTPAGE
Lloh3:
	ldr	x21, [x21, _add_two@GOTPAGEOFF]
	ldr	w3, [x21]
	add	x0, sp, #8
	add	x2, sp, #4
	mov	x1, x19
	mov	x4, #0
	mov	w5, #0
	bl	_ASYNC_start_job
Lloh4:
	adrp	x8, _ASYNC_PAUSE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ASYNC_PAUSE@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	w9, [x20]
	cmp	x0, x8
	ccmp	w9, #1, #0, eq
	b.ne	LBB0_6
; %bb.3:
	ldr	w3, [x21]
	add	x0, sp, #8
	add	x2, sp, #4
	mov	x1, x19
	mov	x4, #0
	mov	w5, #0
	bl	_ASYNC_start_job
Lloh7:
	adrp	x8, _ASYNC_FINISH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ASYNC_FINISH@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	w9, [x20]
	ldr	w10, [sp, #4]
	cmp	x0, x8
	ccmp	w9, #2, #0, eq
	ccmp	w10, #2, #0, eq
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_ASYNC_WAIT_CTX_free
	mov	w19, #1
	b	LBB0_7
LBB0_5:
	mov	x19, #0
LBB0_6:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	x0, x19
	bl	_ASYNC_WAIT_CTX_free
	mov	w19, #0
LBB0_7:
	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
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ctr,4,2                        ; @ctr
	.comm	_add_two,4,2                    ; @add_two
	.comm	_ASYNC_PAUSE,8,3                ; @ASYNC_PAUSE
	.comm	_ASYNC_FINISH,8,3               ; @ASYNC_FINISH
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test_ASYNC_start_job() failed\n"

	.no_dead_strip	_test_ASYNC_start_job
.subsections_via_symbols
