	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_ide_get_pair_dev
	movq	%rax, %r12
	movq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_ide_port_acpi
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	testb	$1, (%r15)
	je	LBB0_3
## %bb.2:
	testq	%r12, %r12
	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	%r15, %rdi
	callq	_ide_acpi_exec_tfs
LBB0_5:
	leaq	-40(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	4(%r15), %edi
	movq	_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	___GFP_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_blk_get_request
	movq	%rax, %rbx
	movq	_REQ_TYPE_PM_RESUME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_REQ_PREEMPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	movq	%r12, (%rbx)
	movq	_IDE_PM_START_RESUME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_PM_EVENT_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	4(%r15), %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movl	$1, %ecx
	callq	_blk_execute_rq
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_blk_put_request
	testl	%r12d, %r12d
	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	%r15, %rdi
	callq	*%rax
LBB0_9:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_READ,4,2                       ## @READ
	.comm	___GFP_WAIT,4,2                 ## @__GFP_WAIT
	.comm	_REQ_TYPE_PM_RESUME,4,2         ## @REQ_TYPE_PM_RESUME
	.comm	_REQ_PREEMPT,4,2                ## @REQ_PREEMPT
	.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, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	bl	_dev_get_drvdata
	mov	x19, x0
	bl	_ide_get_pair_dev
	mov	x22, x0
	ldr	x21, [x19, #8]
	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, _READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, ___GFP_WAIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___GFP_WAIT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_blk_get_request
	mov	x22, x0
Lloh6:
	adrp	x8, _REQ_PREEMPT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REQ_PREEMPT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x0, #8]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _REQ_TYPE_PM_RESUME@GOTPAGE
Lloh10:
	ldr	x9, [x9, _REQ_TYPE_PM_RESUME@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w8, w9, [x0, #8]
	str	x21, [x0]
Lloh12:
	adrp	x8, _IDE_PM_START_RESUME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IDE_PM_START_RESUME@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _PM_EVENT_ON@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PM_EVENT_ON@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
	ldr	w0, [x19, #4]
	mov	x1, #0
	mov	x2, x22
	mov	w3, #1
	bl	_blk_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, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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	_READ,4,2                       ; @READ
	.comm	___GFP_WAIT,4,2                 ; @__GFP_WAIT
	.comm	_REQ_TYPE_PM_RESUME,4,2         ; @REQ_TYPE_PM_RESUME
	.comm	_REQ_PREEMPT,4,2                ; @REQ_PREEMPT
	.comm	_IDE_PM_START_RESUME,4,2        ; @IDE_PM_START_RESUME
	.comm	_PM_EVENT_ON,4,2                ; @PM_EVENT_ON
.subsections_via_symbols
