	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_end_io
_do_end_io:                             ## @do_end_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	movq	_DM_ENDIO_REQUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%edx, %edx
	jne	LBB0_3
## %bb.1:
	cmpl	$0, (%rsi)
	je	LBB0_2
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_14
## %bb.4:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_14
## %bb.5:
	movq	_EILSEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_14
## %bb.6:
	movq	(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_fail_path
LBB0_8:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, 8(%r14)
	jne	LBB0_13
## %bb.9:
	cmpl	$0, 4(%r14)
	je	LBB0_10
## %bb.12:
	movq	_EBADE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	cmovel	%ebx, %r15d
	jmp	LBB0_13
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_10:
	movq	%r14, %rdi
	callq	___must_push_back
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_13:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r15d, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_ENDIO_REQUEUE,4,2           ## @DM_ENDIO_REQUEUE
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EBADE,4,2                      ## @EBADE
	.no_dead_strip	_do_end_io
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_end_io
_do_end_io:                             ; @do_end_io
	.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, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _DM_ENDIO_REQUEUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DM_ENDIO_REQUEUE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	cbnz	w2, LBB0_2
; %bb.1:
	ldr	w8, [x1]
	cbz	w8, LBB0_10
LBB0_2:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w8, w20
	b.eq	LBB0_14
; %bb.3:
Lloh6:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w8, w20
	b.eq	LBB0_14
; %bb.4:
Lloh9:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w8, w20
	b.eq	LBB0_14
; %bb.5:
	ldr	x0, [x3]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_fail_path
LBB0_7:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_13
; %bb.8:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_11
; %bb.9:
Lloh12:
	adrp	x8, _EBADE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBADE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmn	w8, w20
	csel	w21, w20, w21, eq
	b	LBB0_13
LBB0_10:
	mov	w20, #0
	b	LBB0_14
LBB0_11:
	mov	x0, x19
	bl	___must_push_back
	cbnz	w0, LBB0_13
; %bb.12:
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_13:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x20, x21
LBB0_14:
	mov	x0, x20
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_ENDIO_REQUEUE,4,2           ; @DM_ENDIO_REQUEUE
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EBADE,4,2                      ; @EBADE
	.no_dead_strip	_do_end_io
.subsections_via_symbols
