	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_complete_pm_rq             ## -- Begin function ide_complete_pm_rq
	.p2align	4, 0x90
_ide_complete_pm_rq:                    ## @ide_complete_pm_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
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	16(%rdi), %r15
	movq	8(%rsi), %rbx
	callq	_ide_complete_power_step
	movq	(%rbx), %rax
	movq	_IDE_PM_COMPLETED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movl	(%r15), %edi
	callq	_spin_lock_irqsave
	movq	(%r14), %rax
	movq	_REQ_TYPE_PM_SUSPEND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_blk_stop_queue
	jmp	LBB0_4
LBB0_3:
	movq	_IDE_DFLAG_BLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r12)
LBB0_4:
	movl	(%r15), %edi
	callq	_spin_unlock_irqrestore
	movq	(%r12), %rax
	movq	$0, (%rax)
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_blk_end_request
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BUG                            ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDE_PM_COMPLETED,8,3           ## @IDE_PM_COMPLETED
	.comm	_REQ_TYPE_PM_SUSPEND,8,3        ## @REQ_TYPE_PM_SUSPEND
	.comm	_IDE_DFLAG_BLOCKED,4,2          ## @IDE_DFLAG_BLOCKED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_complete_pm_rq             ; -- Begin function ide_complete_pm_rq
	.p2align	2
_ide_complete_pm_rq:                    ; @ide_complete_pm_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	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #16]
	ldr	x22, [x1, #8]
	bl	_ide_complete_power_step
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _IDE_PM_COMPLETED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IDE_PM_COMPLETED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	ldr	w0, [x21]
	bl	_spin_lock_irqsave
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _REQ_TYPE_PM_SUSPEND@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REQ_TYPE_PM_SUSPEND@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_blk_stop_queue
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _IDE_DFLAG_BLOCKED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IDE_DFLAG_BLOCKED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	bic	w8, w9, w8
	str	w8, [x20, #8]
LBB0_4:
	ldr	w0, [x21]
	bl	_spin_unlock_irqrestore
	ldr	x8, [x20]
	str	xzr, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_blk_end_request
	cbz	x0, LBB0_6
; %bb.5:
	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	_BUG
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_IDE_PM_COMPLETED,8,3           ; @IDE_PM_COMPLETED
	.comm	_REQ_TYPE_PM_SUSPEND,8,3        ; @REQ_TYPE_PM_SUSPEND
	.comm	_IDE_DFLAG_BLOCKED,4,2          ; @IDE_DFLAG_BLOCKED
.subsections_via_symbols
