	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sync_io
_sync_io:                               ## @sync_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	$40, %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	%r8d, %r13d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r14
	cmpl	$2, %esi
	jb	LBB0_3
## %bb.1:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_op_is_write
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	leaq	-64(%rbp), %rdi
	callq	_init_completion
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mempool_alloc
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %r15
	movq	$0, 40(%rax)
	leaq	32(%rax), %rdi
	movl	$1, %esi
	callq	_atomic_set
	movq	%r14, 24(%r15)
	movq	_sync_io_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	leaq	-72(%rbp), %rax
	movq	%rax, 8(%r15)
	movl	4(%rbx), %eax
	movl	%eax, 4(%r15)
	movl	(%rbx), %eax
	movl	%eax, (%r15)
	movl	$1, (%rsp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	movl	%r12d, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %r8
	movq	%r15, %r9
	callq	_dispatch_io
	leaq	-64(%rbp), %rdi
	callq	_wait_for_completion_io
	movq	16(%rbp), %rax
	movq	-72(%rbp), %rcx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rcx, (%rax)
LBB0_5:
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	xorl	%edx, %edx
	testq	%rcx, %rcx
	cmovel	%edx, %eax
	jmp	LBB0_6
LBB0_2:
	movl	$1, %edi
	callq	_WARN_ON
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
	.comm	_sync_io_complete,4,2           ## @sync_io_complete
	.no_dead_strip	_sync_io
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sync_io
_sync_io:                               ; @sync_io
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	mov	x20, x5
	mov	x22, x4
	mov	x24, x3
	mov	x21, x2
	mov	x23, x1
	mov	x25, x0
	cmp	w1, #2
	b.lo	LBB0_2
; %bb.1:
	mov	x0, x24
	bl	_op_is_write
	cbz	w0, LBB0_5
LBB0_2:
	mov	x28, sp
	add	x26, x28, #8
	mov	x0, x26
	bl	_init_completion
Lloh0:
	adrp	x8, _GFP_NOIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_NOIO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_mempool_alloc
	mov	x27, x0
	str	xzr, [x0, #40]
	add	x0, x0, #32
	mov	w1, #1
	bl	_atomic_set
Lloh3:
	adrp	x8, _sync_io_complete@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sync_io_complete@GOTPAGEOFF]
	str	x25, [x27, #24]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x27, #16]
	str	x28, [x27, #8]
	ldr	d0, [x20]
	str	d0, [x27]
	mov	x0, x24
	mov	x1, x22
	mov	x2, x23
	mov	x3, x21
	mov	x4, x20
	mov	x5, x27
	mov	w6, #1
	bl	_dispatch_io
	mov	x0, x26
	bl	_wait_for_completion_io
	ldr	x8, [sp]
	cbz	x19, LBB0_4
; %bb.3:
	str	x8, [x19]
LBB0_4:
Lloh6:
	adrp	x9, _EIO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	x8, #0
	csneg	w0, wzr, w9, eq
	b	LBB0_6
LBB0_5:
	mov	w0, #1
	bl	_WARN_ON
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	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	_EIO,4,2                        ; @EIO
	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
	.comm	_sync_io_complete,4,2           ; @sync_io_complete
	.no_dead_strip	_sync_io
.subsections_via_symbols
