	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aio_sigev_alloc
_aio_sigev_alloc:                       ## @aio_sigev_alloc
	.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	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	___sigev_check_init
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %r12d
	jmp	LBB0_6
LBB0_3:
	movq	_SI_ASYNCIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r12d, %r12d
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	___sigev_alloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%rbx), %ecx
	movl	%ecx, (%r13)
	movl	%r15d, 4(%rax)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	___sigev_get_sigevent
	movq	_aio_dispatch@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	___sigev_list_lock
	movq	(%r14), %rdi
	callq	___sigev_register
	xorl	%eax, %eax
	callq	___sigev_list_unlock
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_SI_ASYNCIO,4,2                 ## @SI_ASYNCIO
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_aio_dispatch,4,2               ## @aio_dispatch
	.no_dead_strip	_aio_sigev_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aio_sigev_alloc
_aio_sigev_alloc:                       ; @aio_sigev_alloc
	.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	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	___sigev_check_init
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _errno@GOTPAGE
Lloh3:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh4:
	str	w8, [x9]
	mov	w0, #-1
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _SI_ASYNCIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SI_ASYNCIO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x21
	mov	x2, #0
	mov	w3, #1
	bl	___sigev_alloc
	str	x0, [x19]
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w8, [x21]
	str	w8, [x22]
	str	w20, [x0, #4]
	mov	x1, x21
	mov	x2, x20
	bl	___sigev_get_sigevent
Lloh8:
	adrp	x8, _aio_dispatch@GOTPAGE
Lloh9:
	ldr	x8, [x8, _aio_dispatch@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9]
	bl	___sigev_list_lock
	ldr	x0, [x19]
	bl	___sigev_register
	bl	___sigev_list_unlock
	mov	w0, #0
LBB0_5:
	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
LBB0_6:
Lloh11:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_SI_ASYNCIO,4,2                 ; @SI_ASYNCIO
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_aio_dispatch,4,2               ; @aio_dispatch
	.no_dead_strip	_aio_sigev_alloc
.subsections_via_symbols
