	.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_8
## %bb.1:
	movq	(%rbx), %rax
	movq	_REQ_TYPE_FS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.9:
	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_2:
	movq	_REQ_TYPE_ATA_TASKFILE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movq	16(%rbx), %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_6:
	movq	%rbx, %rdi
	callq	_blk_pm_request
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movl	$1, 8(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ide_complete_pm_rq
	jmp	LBB0_8
LBB0_5:
	movl	%r15d, 8(%rbx)
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	testl	%r15d, %r15d
	cmovel	%r15d, %r12d
	movq	%rbx, %rdi
	callq	_blk_rq_bytes
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_ide_complete_rq
LBB0_8:
	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	_REQ_TYPE_FS,8,3                ## @REQ_TYPE_FS
	.comm	_REQ_TYPE_ATA_TASKFILE,8,3      ## @REQ_TYPE_ATA_TASKFILE
	.comm	_EIO,4,2                        ## @EIO
.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
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _REQ_TYPE_FS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REQ_TYPE_FS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	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_3:
Lloh3:
	adrp	x9, _REQ_TYPE_ATA_TASKFILE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REQ_TYPE_ATA_TASKFILE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	x1, [x20, #16]
	cbz	x1, LBB0_8
; %bb.5:
	mov	x0, x19
	mov	x2, x22
	mov	x3, x21
	bl	_ide_complete_cmd
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	bl	_blk_pm_request
	cbz	x0, LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [x20, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_ide_complete_pm_rq
	b	LBB0_9
LBB0_8:
	str	w21, [x20, #8]
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w21, #0
	csneg	w21, wzr, w8, eq
	mov	x0, x20
	bl	_blk_rq_bytes
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_ide_complete_rq
LBB0_9:
Lloh9:
	adrp	x8, _ide_stopped@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ide_stopped@GOTPAGEOFF]
Lloh11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ide_stopped,4,2                ; @ide_stopped
	.comm	_REQ_TYPE_FS,8,3                ; @REQ_TYPE_FS
	.comm	_REQ_TYPE_ATA_TASKFILE,8,3      ; @REQ_TYPE_ATA_TASKFILE
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
