	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function async_io
_async_io:                              ## @async_io
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movl	%ecx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	16(%rbp), %r13
	cmpl	$2, %esi
	jb	LBB0_3
## %bb.1:
	movq	_RW_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	movq	_WRITE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
LBB0_3:
	movl	(%r14), %edi
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	callq	_mempool_alloc
	movq	%rax, %r13
	movq	$0, 40(%rax)
	leaq	32(%rax), %rdi
	movl	$1, %esi
	callq	_atomic_set
	movq	$0, 24(%r13)
	movq	%r14, 16(%r13)
	movq	%rbx, 8(%r13)
	movq	16(%rbp), %rax
	movq	%rax, (%r13)
	xorl	%ebx, %ebx
	movl	%r12d, %edi
	movl	%r15d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	xorl	%r9d, %r9d
	callq	_dispatch_io
	jmp	LBB0_4
LBB0_2:
	movl	$1, %edi
	callq	_WARN_ON
	movl	$1, %edi
	movq	%r13, %rsi
	callq	*%rbx
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RW_MASK,4,2                    ## @RW_MASK
	.comm	_WRITE,4,2                      ## @WRITE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
	.no_dead_strip	_async_io
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function async_io
_async_io:                              ; @async_io
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x6
	mov	x20, x5
	mov	x21, x4
	mov	x23, x3
	mov	x22, x2
	mov	x24, x1
	mov	x25, x0
	cmp	w1, #2
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _RW_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RW_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w23
Lloh3:
	adrp	x9, _WRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
LBB0_2:
	ldr	w0, [x25]
Lloh6:
	adrp	x8, _GFP_NOIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_NOIO@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_mempool_alloc
	mov	x26, x0
	str	xzr, [x0, #40]
	add	x0, x0, #32
	mov	w1, #1
	bl	_atomic_set
	stp	x25, xzr, [x26, #16]
	stp	x19, x20, [x26]
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
	mov	x3, x21
	mov	x4, x26
	mov	w5, #0
	bl	_dispatch_io
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	mov	w0, #1
	bl	_WARN_ON
	mov	w0, #1
	mov	x1, x19
	blr	x20
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RW_MASK,4,2                    ; @RW_MASK
	.comm	_WRITE,4,2                      ; @WRITE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
	.no_dead_strip	_async_io
.subsections_via_symbols
