	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_aio_completion           ## -- Begin function check_aio_completion
	.p2align	4, 0x90
_check_aio_completion:                  ## @check_aio_completion
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_verbosity@GOTPCREL(%rip), %rbx
	cmpl	$2, (%rbx)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r15), %rcx
	movl	48(%r15), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	8(%r15), %rdi
	callq	_aio_error
	movl	%eax, %r12d
	movq	_EINPROGRESS@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_14
## %bb.3:
	cmpl	$2, (%rbx)
	jl	LBB0_5
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_5:
	xorl	%r14d, %r14d
	cmpq	%r15, 16(%r15)
	jne	LBB0_23
## %bb.6:
	cmpl	$0, (%rbx)
	jle	LBB0_8
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_8:
	movl	(%r15), %edi
	movq	8(%r15), %rsi
	callq	_aio_cancel
	movq	_AIO_NOTCANCELED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.9:
	cmpl	$0, (%rbx)
	jle	LBB0_23
## %bb.10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	movq	8(%r15), %rcx
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_23
LBB0_11:
	movq	8(%r15), %rdi
	callq	_aio_error
	movl	%eax, %r12d
	cmpl	(%r13), %eax
	jne	LBB0_14
## %bb.12:
	cmpl	$0, (%rbx)
	jle	LBB0_23
## %bb.13:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_23
LBB0_14:
	movq	8(%r15), %rdi
	callq	_aio_return
	movl	%eax, %r13d
	cmpl	$1, (%rbx)
	jg	LBB0_17
## %bb.15:
	movq	_aio_errors_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.16:
	testl	%r12d, %r12d
	je	LBB0_18
LBB0_17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r12d, %edi
	callq	_strerror
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_fprintf
LBB0_18:
	movq	40(%r15), %rax
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	*(%rax)
	movq	24(%r15), %rax
	movq	32(%r15), %rcx
	movq	%rcx, (%rax)
	movq	%rax, (%rcx)
	movq	16(%r15), %rdi
	cmpq	%r15, %rdi
	je	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	xorl	%ecx, %ecx
	testl	%r13d, %r13d
	setns	%cl
	movq	(%rdi), %rax
	movq	8(%rdi), %rbx
	callq	*(%rax,%rcx,8)
	movq	%rbx, %rdi
	cmpq	%r15, %rbx
	jne	LBB0_19
LBB0_20:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jl	LBB0_22
## %bb.21:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_22:
	movq	8(%r15), %rdi
	movl	$4, %esi
	callq	_zfree
	movq	%r15, %rdi
	movl	$56, %esi
	callq	_zfree
	movl	$1, %r14d
LBB0_23:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in check_aio_completion(%p [first_query=%p, last_query=%p])\n"

	.comm	_errno,8,3                      ## @errno
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
L_.str.1:                               ## @.str.1
	.asciz	"aio_query %p in progress...\n"

L_.str.2:                               ## @.str.2
	.asciz	"aio_query %p in progress, but all conn_queries are dead, canceling aio.\n"

	.comm	_AIO_NOTCANCELED,8,3            ## @AIO_NOTCANCELED
L_.str.3:                               ## @.str.3
	.asciz	"aio_cancel(%d,%p) returns AIO_NOTCANCELED\n"

L_.str.4:                               ## @.str.4
	.asciz	"aio_query %p still in progress.\n"

	.comm	_aio_errors_verbosity,8,3       ## @aio_errors_verbosity
L_.str.5:                               ## @.str.5
	.asciz	"aio_return() returns %d, errno=%d (%s)\n"

L_.str.6:                               ## @.str.6
	.asciz	"freeing aio_connection at %p\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_aio_completion           ; -- Begin function check_aio_completion
	.p2align	2
_check_aio_completion:                  ; @check_aio_completion
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x24, _verbosity@GOTPAGE
Lloh1:
	ldr	x24, [x24, _verbosity@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x23, _stderr@GOTPAGE
Lloh3:
	ldr	x23, [x23, _stderr@GOTPAGEOFF]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	w0, [x23]
	ldr	x8, [x19, #16]
	ldr	w9, [x19, #48]
	stp	x8, x9, [sp, #8]
	str	x19, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	str	xzr, [x8]
	ldr	x0, [x19, #8]
	bl	_aio_error
	mov	x21, x0
Lloh9:
	adrp	x20, _EINPROGRESS@GOTPAGE
Lloh10:
	ldr	x20, [x20, _EINPROGRESS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.3:
	ldr	w8, [x24]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.4:
	ldr	w0, [x23]
	str	x19, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_5:
	ldr	x8, [x19, #16]
	cmp	x8, x19
	b.eq	LBB0_7
LBB0_6:
	mov	w0, #0
	b	LBB0_24
LBB0_7:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.8:
	ldr	w0, [x23]
	str	x19, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
LBB0_9:
	ldr	w0, [x19]
	ldr	x1, [x19, #8]
	bl	_aio_cancel
Lloh15:
	adrp	x8, _AIO_NOTCANCELED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AIO_NOTCANCELED@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.10:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.11:
	ldr	w0, [x23]
	ldr	x8, [x19, #8]
	ldr	w9, [x19]
	stp	x9, x8, [sp]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_12:
	ldr	x0, [x19, #8]
	bl	_aio_error
	mov	x21, x0
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.13:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.14:
	ldr	w0, [x23]
	str	x19, [sp]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_15:
	bl	_fprintf
	mov	w0, #0
	b	LBB0_24
LBB0_16:
	ldr	x0, [x19, #8]
	bl	_aio_return
	mov	x20, x0
	ldr	w8, [x24]
	cmp	w8, #1
	b.gt	LBB0_18
; %bb.17:
Lloh22:
	adrp	x8, _aio_errors_verbosity@GOTPAGE
Lloh23:
	ldr	x8, [x8, _aio_errors_verbosity@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x8, #0
	ccmp	w21, #0, #4, ne
	b.eq	LBB0_19
LBB0_18:
	ldr	w22, [x23]
	mov	x0, x21
	bl	_strerror
	stp	x21, x0, [sp, #8]
	str	x20, [sp]
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_fprintf
LBB0_19:
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldp	x9, x8, [x19, #24]
	ldr	x0, [x19, #16]
	str	x8, [x9]
	str	x9, [x8]
	cmp	x0, x19
	b.eq	LBB0_21
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldp	x8, x21, [x0]
	mvn	w9, w20
	lsr	w9, w9, #31
	ldr	x8, [x8, w9, uxtw #3]
	blr	x8
	mov	x0, x21
	cmp	x21, x19
	b.ne	LBB0_20
LBB0_21:
	ldr	w8, [x24]
	cmp	w8, #3
	b.lt	LBB0_23
; %bb.22:
	ldr	w0, [x23]
	str	x19, [sp]
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
LBB0_23:
	ldr	x0, [x19, #8]
	mov	w1, #4
	bl	_zfree
	mov	x0, x19
	mov	w1, #56
	bl	_zfree
	mov	w0, #1
LBB0_24:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in check_aio_completion(%p [first_query=%p, last_query=%p])\n"

	.comm	_errno,8,3                      ; @errno
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
l_.str.1:                               ; @.str.1
	.asciz	"aio_query %p in progress...\n"

l_.str.2:                               ; @.str.2
	.asciz	"aio_query %p in progress, but all conn_queries are dead, canceling aio.\n"

	.comm	_AIO_NOTCANCELED,8,3            ; @AIO_NOTCANCELED
l_.str.3:                               ; @.str.3
	.asciz	"aio_cancel(%d,%p) returns AIO_NOTCANCELED\n"

l_.str.4:                               ; @.str.4
	.asciz	"aio_query %p still in progress.\n"

	.comm	_aio_errors_verbosity,8,3       ; @aio_errors_verbosity
l_.str.5:                               ; @.str.5
	.asciz	"aio_return() returns %d, errno=%d (%s)\n"

l_.str.6:                               ; @.str.6
	.asciz	"freeing aio_connection at %p\n"

.subsections_via_symbols
