	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_end_rq                     ## -- Begin function ide_end_rq
	.p2align	4, 0x90
_ide_end_rq:                            ## @ide_end_rq
	.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
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movq	_IDE_DFLAG_DMA_PIO_RETRY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_3
## %bb.1:
	cmpl	$3, 4(%rbx)
	jg	LBB0_3
## %bb.2:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_ide_dma_on
LBB0_3:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_blk_update_request
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.4:
	cmpq	%r15, 16(%rbx)
	jne	LBB0_6
## %bb.5:
	movq	$0, 16(%rbx)
	movl	$0, 8(%rbx)
LBB0_6:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	___blk_mq_end_request
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDE_DFLAG_DMA_PIO_RETRY,4,2    ## @IDE_DFLAG_DMA_PIO_RETRY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_end_rq                     ; -- Begin function ide_end_rq
	.p2align	2
_ide_end_rq:                            ; @ide_end_rq
	.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	x20, x1
	mov	x21, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IDE_DFLAG_DMA_PIO_RETRY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IDE_DFLAG_DMA_PIO_RETRY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	w10, [x21, #4]
	cmp	w10, #3
	b.gt	LBB0_3
; %bb.2:
	bic	w8, w8, w9
	str	w8, [x21]
	mov	x0, x21
	bl	_ide_dma_on
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_blk_update_request
	cbz	w0, LBB0_5
; %bb.4:
	mov	w0, #1
	b	LBB0_8
LBB0_5:
	ldr	x8, [x21, #16]
	cmp	x8, x20
	b.ne	LBB0_7
; %bb.6:
	str	xzr, [x21, #16]
	str	wzr, [x21, #8]
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	bl	___blk_mq_end_request
	mov	w0, #0
LBB0_8:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_IDE_DFLAG_DMA_PIO_RETRY,4,2    ; @IDE_DFLAG_DMA_PIO_RETRY
.subsections_via_symbols
