	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___aio_waitcomplete             ## -- Begin function __aio_waitcomplete
	.p2align	4, 0x90
___aio_waitcomplete:                    ## @__aio_waitcomplete
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	___sys_aio_waitcomplete
	movl	%eax, %r14d
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rax), %rax
	movq	_SIGEV_THREAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %r15
	movl	(%r15), %r12d
	xorl	%eax, %eax
	callq	___sigev_list_lock
	movq	_SI_ASYNCIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	___sigev_delete
	xorl	%eax, %eax
	callq	___sigev_list_unlock
	movl	%r12d, (%r15)
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGEV_THREAD,8,3               ## @SIGEV_THREAD
	.comm	_errno,4,2                      ## @errno
	.comm	_SI_ASYNCIO,4,2                 ## @SI_ASYNCIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___aio_waitcomplete             ; -- Begin function __aio_waitcomplete
	.p2align	2
___aio_waitcomplete:                    ; @__aio_waitcomplete
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	bl	___sys_aio_waitcomplete
	mov	x19, x0
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _SIGEV_THREAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SIGEV_THREAD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x21, _errno@GOTPAGE
Lloh4:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	ldr	w22, [x21]
	bl	___sigev_list_lock
Lloh5:
	adrp	x8, _SI_ASYNCIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SI_ASYNCIO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	___sigev_delete
	bl	___sigev_list_unlock
	str	w22, [x21]
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGEV_THREAD,8,3               ; @SIGEV_THREAD
	.comm	_errno,4,2                      ; @errno
	.comm	_SI_ASYNCIO,4,2                 ; @SI_ASYNCIO
.subsections_via_symbols
