	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ide_complete_drive_reset
_ide_complete_drive_reset:              ## @ide_complete_drive_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	(%rdi), %rax
	movq	_REQ_TYPE_SPECIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.2:
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	_REQ_DRIVE_RESET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movl	%esi, %r14d
	testl	%esi, %esi
	jg	LBB0_6
## %bb.4:
	cmpl	$0, 16(%rdi)
	jne	LBB0_6
## %bb.5:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 16(%rdi)
LBB0_6:
	callq	_blk_rq_bytes
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ide_complete_rq                ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REQ_TYPE_SPECIAL,8,3           ## @REQ_TYPE_SPECIAL
	.comm	_REQ_DRIVE_RESET,8,3            ## @REQ_DRIVE_RESET
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ide_complete_drive_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ide_complete_drive_reset
_ide_complete_drive_reset:              ; @ide_complete_drive_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x0, [x8]
	cbz	x0, LBB0_7
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _REQ_TYPE_SPECIAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REQ_TYPE_SPECIAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _REQ_DRIVE_RESET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REQ_DRIVE_RESET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	mov	x19, x1
	cmp	w1, #0
	b.gt	LBB0_6
; %bb.4:
	ldr	w8, [x0, #16]
	cbnz	w8, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x0, #16]
LBB0_6:
	bl	_blk_rq_bytes
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ide_complete_rq
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_REQ_TYPE_SPECIAL,8,3           ; @REQ_TYPE_SPECIAL
	.comm	_REQ_DRIVE_RESET,8,3            ; @REQ_DRIVE_RESET
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ide_complete_drive_reset
.subsections_via_symbols
