	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_error                      ## -- Begin function ide_error
	.p2align	4, 0x90
_ide_error:                             ## @ide_error
	.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	%edx, %r12d
	movq	%rdi, %r14
	callq	_ide_dump_status
	movl	%eax, %r15d
	movq	(%r14), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.1:
	movq	%rbx, %rdi
	callq	_blk_rq_is_passthrough
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%rbx, %rdi
	callq	_ata_taskfile_request
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	callq	_ide_req
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_ide_complete_cmd
	jmp	LBB0_5
LBB0_12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___ide_error                    ## TAILCALL
LBB0_7:
	callq	_ata_pm_request
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movq	%rbx, %rdi
	callq	_scsi_req
	movl	$1, (%rax)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ide_complete_pm_rq
	jmp	LBB0_11
LBB0_5:
	movq	%rbx, %rdi
	callq	_scsi_req
	movl	%r15d, (%rax)
	testl	%r15d, %r15d
	jne	LBB0_6
## %bb.9:
	movq	_BLK_STS_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	_BLK_STS_IOERR@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_blk_rq_bytes
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_ide_complete_rq
LBB0_11:
	movq	_ide_stopped@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ide_stopped,4,2                ## @ide_stopped
	.comm	_BLK_STS_IOERR,4,2              ## @BLK_STS_IOERR
	.comm	_BLK_STS_OK,4,2                 ## @BLK_STS_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_error                      ; -- Begin function ide_error
	.p2align	2
_ide_error:                             ; @ide_error
	.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, x2
	mov	x19, x0
	bl	_ide_dump_status
	ldr	x8, [x19]
	ldr	x20, [x8]
	cbz	x20, LBB0_9
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	bl	_blk_rq_is_passthrough
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_ata_taskfile_request
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_ide_req
	ldr	x1, [x0]
	cbz	x1, LBB0_8
; %bb.4:
	mov	x0, x19
	mov	x2, x22
	mov	x3, x21
	bl	_ide_complete_cmd
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	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
	b	___ide_error
LBB0_6:
	mov	x0, x20
	bl	_ata_pm_request
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_scsi_req
	mov	w8, #1
	str	w8, [x0]
	mov	x0, x19
	mov	x1, x20
	bl	_ide_complete_pm_rq
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_scsi_req
Lloh0:
	adrp	x8, _BLK_STS_IOERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLK_STS_IOERR@GOTPAGEOFF]
	str	w21, [x0]
Lloh2:
	adrp	x9, _BLK_STS_OK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BLK_STS_OK@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w21, [x8]
	mov	x0, x20
	bl	_blk_rq_bytes
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_ide_complete_rq
LBB0_9:
Lloh4:
	adrp	x8, _ide_stopped@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ide_stopped@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ide_stopped,4,2                ; @ide_stopped
	.comm	_BLK_STS_IOERR,4,2              ; @BLK_STS_IOERR
	.comm	_BLK_STS_OK,4,2                 ; @BLK_STS_OK
.subsections_via_symbols
