	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_ASYNC_WAIT_CTX_get_all_fds
_test_ASYNC_WAIT_CTX_get_all_fds:       ## @test_ASYNC_WAIT_CTX_get_all_fds
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -80(%rbp)
	movq	_OSSL_BAD_ASYNC_FD@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, -72(%rbp)
	movq	%rax, -88(%rbp)
	xorl	%r14d, %r14d
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_ASYNC_init_thread
	testl	%eax, %eax
	je	LBB0_35
## %bb.1:
	xorl	%eax, %eax
	callq	_ASYNC_WAIT_CTX_new
	testq	%rax, %rax
	je	LBB0_35
## %bb.2:
	movq	%rax, %rbx
	movq	_waitfd@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	leaq	-80(%rbp), %rdi
	leaq	-60(%rbp), %rdx
	movq	%rax, %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ASYNC_start_job
	movq	_ASYNC_PAUSE@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_36
## %bb.3:
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ASYNC_WAIT_CTX_get_all_fds
	testl	%eax, %eax
	je	LBB0_36
## %bb.4:
	cmpq	$0, -48(%rbp)
	jne	LBB0_36
## %bb.5:
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_ASYNC_WAIT_CTX_get_changed_fds
	testl	%eax, %eax
	je	LBB0_36
## %bb.6:
	cmpq	$0, -48(%rbp)
	jne	LBB0_36
## %bb.7:
	cmpq	$0, -56(%rbp)
	jne	LBB0_36
## %bb.8:
	movl	(%r15), %ecx
	leaq	-80(%rbp), %rdi
	leaq	-60(%rbp), %rdx
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ASYNC_start_job
	cmpq	(%r12), %rax
	jne	LBB0_36
## %bb.9:
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ASYNC_WAIT_CTX_get_all_fds
	testl	%eax, %eax
	je	LBB0_36
## %bb.10:
	cmpq	$1, -48(%rbp)
	jne	LBB0_36
## %bb.11:
	leaq	-72(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_ASYNC_WAIT_CTX_get_all_fds
	testl	%eax, %eax
	je	LBB0_36
## %bb.12:
	movq	-72(%rbp), %rax
	movq	_MAGIC_WAIT_FD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_36
## %bb.13:
	movq	(%r13), %rax
	movq	%rax, -72(%rbp)
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_ASYNC_WAIT_CTX_get_changed_fds
	testl	%eax, %eax
	je	LBB0_36
## %bb.14:
	cmpq	$1, -48(%rbp)
	jne	LBB0_36
## %bb.15:
	cmpq	$0, -56(%rbp)
	jne	LBB0_36
## %bb.16:
	leaq	-72(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_ASYNC_WAIT_CTX_get_changed_fds
	testl	%eax, %eax
	je	LBB0_36
## %bb.17:
	movq	-72(%rbp), %rax
	movq	_MAGIC_WAIT_FD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_36
## %bb.18:
	movl	(%r15), %ecx
	leaq	-80(%rbp), %rdi
	leaq	-60(%rbp), %rdx
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ASYNC_start_job
	cmpq	(%r12), %rax
	jne	LBB0_36
## %bb.19:
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ASYNC_WAIT_CTX_get_all_fds
	testl	%eax, %eax
	je	LBB0_36
## %bb.20:
	cmpq	$0, -48(%rbp)
	jne	LBB0_36
## %bb.21:
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_ASYNC_WAIT_CTX_get_changed_fds
	testl	%eax, %eax
	je	LBB0_36
## %bb.22:
	cmpq	$0, -48(%rbp)
	jne	LBB0_36
## %bb.23:
	cmpq	$1, -56(%rbp)
	jne	LBB0_36
## %bb.24:
	leaq	-48(%rbp), %rdx
	leaq	-88(%rbp), %rcx
	leaq	-56(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ASYNC_WAIT_CTX_get_changed_fds
	testl	%eax, %eax
	je	LBB0_36
## %bb.25:
	movq	-88(%rbp), %rax
	movq	_MAGIC_WAIT_FD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_36
## %bb.26:
	movl	(%r15), %ecx
	leaq	-80(%rbp), %rdi
	leaq	-60(%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_36
## %bb.27:
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ASYNC_WAIT_CTX_get_all_fds
	testl	%eax, %eax
	je	LBB0_36
## %bb.28:
	cmpq	$0, -48(%rbp)
	jne	LBB0_36
## %bb.29:
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_ASYNC_WAIT_CTX_get_changed_fds
	testl	%eax, %eax
	je	LBB0_36
## %bb.30:
	cmpq	$0, -48(%rbp)
	jne	LBB0_36
## %bb.31:
	cmpq	$0, -56(%rbp)
	jne	LBB0_36
## %bb.32:
	cmpl	$1, -60(%rbp)
	jne	LBB0_36
## %bb.33:
	movq	%rbx, %rdi
	callq	_ASYNC_WAIT_CTX_free
	movl	$1, %r14d
	jmp	LBB0_37
LBB0_35:
	xorl	%ebx, %ebx
LBB0_36:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movq	%rbx, %rdi
	callq	_ASYNC_WAIT_CTX_free
LBB0_37:
	xorl	%eax, %eax
	callq	_ASYNC_cleanup_thread
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OSSL_BAD_ASYNC_FD,8,3          ## @OSSL_BAD_ASYNC_FD
	.comm	_waitfd,4,2                     ## @waitfd
	.comm	_ASYNC_PAUSE,8,3                ## @ASYNC_PAUSE
	.comm	_MAGIC_WAIT_FD,8,3              ## @MAGIC_WAIT_FD
	.comm	_ASYNC_FINISH,8,3               ## @ASYNC_FINISH
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"test_ASYNC_get_wait_fd() failed\n"

	.no_dead_strip	_test_ASYNC_WAIT_CTX_get_all_fds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_ASYNC_WAIT_CTX_get_all_fds
_test_ASYNC_WAIT_CTX_get_all_fds:       ; @test_ASYNC_WAIT_CTX_get_all_fds
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	str	xzr, [sp, #40]
Lloh0:
	adrp	x22, _OSSL_BAD_ASYNC_FD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _OSSL_BAD_ASYNC_FD@GOTPAGEOFF]
	ldr	x8, [x22]
	stp	x8, x8, [sp, #16]
	mov	w0, #1
	mov	w1, #0
	bl	_ASYNC_init_thread
	cbz	w0, LBB0_34
; %bb.1:
	bl	_ASYNC_WAIT_CTX_new
	mov	x19, x0
	cbz	x0, LBB0_35
; %bb.2:
Lloh2:
	adrp	x20, _waitfd@GOTPAGE
Lloh3:
	ldr	x20, [x20, _waitfd@GOTPAGEOFF]
	ldr	w3, [x20]
	add	x0, sp, #40
	add	x2, sp, #36
	mov	x1, x19
	mov	x4, #0
	mov	w5, #0
	bl	_ASYNC_start_job
Lloh4:
	adrp	x21, _ASYNC_PAUSE@GOTPAGE
Lloh5:
	ldr	x21, [x21, _ASYNC_PAUSE@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_35
; %bb.3:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, #0
	bl	_ASYNC_WAIT_CTX_get_all_fds
	cbz	w0, LBB0_35
; %bb.4:
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_35
; %bb.5:
	add	x2, sp, #8
	mov	x4, sp
	mov	x0, x19
	mov	x1, #0
	mov	x3, #0
	bl	_ASYNC_WAIT_CTX_get_changed_fds
	cbz	w0, LBB0_35
; %bb.6:
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_35
; %bb.7:
	ldr	x8, [sp]
	cbnz	x8, LBB0_35
; %bb.8:
	ldr	w3, [x20]
	add	x0, sp, #40
	add	x2, sp, #36
	mov	x1, x19
	mov	x4, #0
	mov	w5, #0
	bl	_ASYNC_start_job
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_35
; %bb.9:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, #0
	bl	_ASYNC_WAIT_CTX_get_all_fds
	cbz	w0, LBB0_35
; %bb.10:
	ldr	x8, [sp, #8]
	cmp	x8, #1
	b.ne	LBB0_35
; %bb.11:
	add	x1, sp, #24
	add	x2, sp, #8
	mov	x0, x19
	bl	_ASYNC_WAIT_CTX_get_all_fds
	cbz	w0, LBB0_35
; %bb.12:
	ldr	x8, [sp, #24]
Lloh6:
	adrp	x23, _MAGIC_WAIT_FD@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MAGIC_WAIT_FD@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_35
; %bb.13:
	ldr	x8, [x22]
	str	x8, [sp, #24]
	add	x2, sp, #8
	mov	x4, sp
	mov	x0, x19
	mov	x1, #0
	mov	x3, #0
	bl	_ASYNC_WAIT_CTX_get_changed_fds
	cbz	w0, LBB0_35
; %bb.14:
	ldr	x8, [sp, #8]
	cmp	x8, #1
	b.ne	LBB0_35
; %bb.15:
	ldr	x8, [sp]
	cbnz	x8, LBB0_35
; %bb.16:
	add	x1, sp, #24
	add	x2, sp, #8
	mov	x4, sp
	mov	x0, x19
	mov	x3, #0
	bl	_ASYNC_WAIT_CTX_get_changed_fds
	cbz	w0, LBB0_35
; %bb.17:
	ldr	x8, [sp, #24]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_35
; %bb.18:
	ldr	w3, [x20]
	add	x0, sp, #40
	add	x2, sp, #36
	mov	x1, x19
	mov	x4, #0
	mov	w5, #0
	bl	_ASYNC_start_job
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_35
; %bb.19:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, #0
	bl	_ASYNC_WAIT_CTX_get_all_fds
	cbz	w0, LBB0_35
; %bb.20:
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_35
; %bb.21:
	add	x2, sp, #8
	mov	x4, sp
	mov	x0, x19
	mov	x1, #0
	mov	x3, #0
	bl	_ASYNC_WAIT_CTX_get_changed_fds
	cbz	w0, LBB0_35
; %bb.22:
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_35
; %bb.23:
	ldr	x8, [sp]
	cmp	x8, #1
	b.ne	LBB0_35
; %bb.24:
	add	x2, sp, #8
	add	x3, sp, #16
	mov	x4, sp
	mov	x0, x19
	mov	x1, #0
	bl	_ASYNC_WAIT_CTX_get_changed_fds
	cbz	w0, LBB0_35
; %bb.25:
	ldr	x8, [sp, #16]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_35
; %bb.26:
	ldr	w3, [x20]
	add	x0, sp, #40
	add	x2, sp, #36
	mov	x1, x19
	mov	x4, #0
	mov	w5, #0
	bl	_ASYNC_start_job
Lloh8:
	adrp	x8, _ASYNC_FINISH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ASYNC_FINISH@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_35
; %bb.27:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, #0
	bl	_ASYNC_WAIT_CTX_get_all_fds
	cbz	w0, LBB0_35
; %bb.28:
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_35
; %bb.29:
	add	x2, sp, #8
	mov	x4, sp
	mov	x0, x19
	mov	x1, #0
	mov	x3, #0
	bl	_ASYNC_WAIT_CTX_get_changed_fds
	cbz	w0, LBB0_35
; %bb.30:
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_35
; %bb.31:
	ldr	x8, [sp]
	cbnz	x8, LBB0_35
; %bb.32:
	ldr	w8, [sp, #36]
	cmp	w8, #1
	b.ne	LBB0_35
; %bb.33:
	mov	x0, x19
	bl	_ASYNC_WAIT_CTX_free
	mov	w19, #1
	b	LBB0_36
LBB0_34:
	mov	x19, #0
LBB0_35:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	x0, x19
	bl	_ASYNC_WAIT_CTX_free
	mov	w19, #0
LBB0_36:
	bl	_ASYNC_cleanup_thread
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_OSSL_BAD_ASYNC_FD,8,3          ; @OSSL_BAD_ASYNC_FD
	.comm	_waitfd,4,2                     ; @waitfd
	.comm	_ASYNC_PAUSE,8,3                ; @ASYNC_PAUSE
	.comm	_MAGIC_WAIT_FD,8,3              ; @MAGIC_WAIT_FD
	.comm	_ASYNC_FINISH,8,3               ; @ASYNC_FINISH
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test_ASYNC_get_wait_fd() failed\n"

	.no_dead_strip	_test_ASYNC_WAIT_CTX_get_all_fds
.subsections_via_symbols
