	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generic_ide_resume             ## -- Begin function generic_ide_resume
	.p2align	4, 0x90
_generic_ide_resume:                    ## @generic_ide_resume
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_to_ide_device
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_ide_get_pair_dev
	movq	%rax, %r15
	movq	8(%r12), %rbx
	movl	4(%r12), %edi
	movl	$1, %esi
	callq	_blk_mq_start_stopped_hw_queues
	movq	%rbx, %rdi
	callq	_ide_port_acpi
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	testb	$1, (%r12)
	je	LBB0_3
## %bb.2:
	testq	%r15, %r15
	jne	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ide_acpi_set_state
	movq	%rbx, %rdi
	callq	_ide_acpi_push_timing
LBB0_4:
	movq	%r12, %rdi
	callq	_ide_acpi_exec_tfs
LBB0_5:
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	4(%r12), %edi
	movq	_REQ_OP_DRV_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BLK_MQ_REQ_PREEMPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_blk_get_request
	movq	%rax, %rbx
	movq	_ATA_PRIV_PM_RESUME@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_ide_req
	movl	%r13d, 8(%rax)
	movq	%rbx, %rdi
	callq	_ide_req
	movq	%r15, (%rax)
	movq	_IDE_PM_START_RESUME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_PM_EVENT_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	%rbx, %rdi
	callq	_ide_pm_execute_rq
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_blk_put_request
	testl	%r15d, %r15d
	jne	LBB0_9
## %bb.6:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.7:
	callq	_to_ide_driver
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	*%rax
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REQ_OP_DRV_IN,4,2              ## @REQ_OP_DRV_IN
	.comm	_BLK_MQ_REQ_PREEMPT,4,2         ## @BLK_MQ_REQ_PREEMPT
	.comm	_ATA_PRIV_PM_RESUME,4,2         ## @ATA_PRIV_PM_RESUME
	.comm	_IDE_PM_START_RESUME,4,2        ## @IDE_PM_START_RESUME
	.comm	_PM_EVENT_ON,4,2                ## @PM_EVENT_ON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generic_ide_resume             ; -- Begin function generic_ide_resume
	.p2align	2
_generic_ide_resume:                    ; @generic_ide_resume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_to_ide_device
	mov	x19, x0
	bl	_ide_get_pair_dev
	mov	x22, x0
	ldr	x21, [x19, #8]
	ldr	w0, [x19, #4]
	mov	w1, #1
	bl	_blk_mq_start_stopped_hw_queues
	mov	x0, x21
	bl	_ide_port_acpi
	cbz	x0, LBB0_5
; %bb.1:
	ldrb	w8, [x19]
	tbz	w8, #0, LBB0_3
; %bb.2:
	cbnz	x22, LBB0_4
LBB0_3:
	mov	x0, x21
	mov	w1, #1
	bl	_ide_acpi_set_state
	mov	x0, x21
	bl	_ide_acpi_push_timing
LBB0_4:
	mov	x0, x19
	bl	_ide_acpi_exec_tfs
LBB0_5:
	add	x21, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, _REQ_OP_DRV_IN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REQ_OP_DRV_IN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _BLK_MQ_REQ_PREEMPT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BLK_MQ_REQ_PREEMPT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_blk_get_request
	mov	x22, x0
Lloh6:
	adrp	x8, _ATA_PRIV_PM_RESUME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATA_PRIV_PM_RESUME@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	bl	_ide_req
	str	w23, [x0, #8]
	mov	x0, x22
	bl	_ide_req
	str	x21, [x0]
Lloh9:
	adrp	x8, _IDE_PM_START_RESUME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IDE_PM_START_RESUME@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _PM_EVENT_ON@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PM_EVENT_ON@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
	mov	x0, x22
	bl	_ide_pm_execute_rq
	mov	x21, x0
	mov	x0, x22
	bl	_blk_put_request
	cbnz	w21, LBB0_9
; %bb.6:
	ldr	x0, [x20]
	cbz	x0, LBB0_9
; %bb.7:
	bl	_to_ide_driver
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	blr	x8
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REQ_OP_DRV_IN,4,2              ; @REQ_OP_DRV_IN
	.comm	_BLK_MQ_REQ_PREEMPT,4,2         ; @BLK_MQ_REQ_PREEMPT
	.comm	_ATA_PRIV_PM_RESUME,4,2         ; @ATA_PRIV_PM_RESUME
	.comm	_IDE_PM_START_RESUME,4,2        ; @IDE_PM_START_RESUME
	.comm	_PM_EVENT_ON,4,2                ; @PM_EVENT_ON
.subsections_via_symbols
