	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generic_ide_suspend            ## -- Begin function generic_ide_suspend
	.p2align	4, 0x90
_generic_ide_suspend:                   ## @generic_ide_suspend
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_ide_get_pair_dev
	movq	%rax, %rbx
	movq	8(%r13), %r14
	movq	%r14, %rdi
	callq	_ide_port_acpi
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	testb	$1, (%r13)
	je	LBB0_3
## %bb.2:
	testq	%rbx, %rbx
	jne	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	callq	_ide_acpi_get_timing
LBB0_4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	4(%r13), %edi
	movq	_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	___GFP_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_blk_get_request
	movq	%rax, %r15
	movq	_REQ_TYPE_PM_SUSPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%rbx, (%r15)
	movq	_IDE_PM_START_SUSPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_PM_EVENT_PRETHAW@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_PM_EVENT_FREEZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_6:
	movq	%r12, -64(%rbp)
	movl	4(%r13), %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_blk_execute_rq
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_blk_put_request
	testl	%ebx, %ebx
	je	LBB0_7
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	callq	_ide_port_acpi
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	testb	$1, (%r13)
	jne	LBB0_10
## %bb.9:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_11
LBB0_10:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ide_acpi_set_state
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_READ,4,2                       ## @READ
	.comm	___GFP_WAIT,4,2                 ## @__GFP_WAIT
	.comm	_REQ_TYPE_PM_SUSPEND,4,2        ## @REQ_TYPE_PM_SUSPEND
	.comm	_IDE_PM_START_SUSPEND,4,2       ## @IDE_PM_START_SUSPEND
	.comm	_PM_EVENT_PRETHAW,8,3           ## @PM_EVENT_PRETHAW
	.comm	_PM_EVENT_FREEZE,8,3            ## @PM_EVENT_FREEZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_generic_ide_suspend            ; -- Begin function generic_ide_suspend
	.p2align	2
_generic_ide_suspend:                   ; @generic_ide_suspend
	.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	x22, x1
	bl	_dev_get_drvdata
	mov	x20, x0
	bl	_ide_get_pair_dev
	mov	x21, x0
	ldr	x19, [x20, #8]
	mov	x0, x19
	bl	_ide_port_acpi
	cbz	x0, LBB0_4
; %bb.1:
	ldrb	w8, [x20]
	tbz	w8, #0, LBB0_3
; %bb.2:
	cbnz	x21, LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_ide_acpi_get_timing
LBB0_4:
	mov	x24, sp
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w0, [x20, #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	x23, x0
Lloh6:
	adrp	x8, _REQ_TYPE_PM_SUSPEND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REQ_TYPE_PM_SUSPEND@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	str	x24, [x0]
Lloh9:
	adrp	x8, _IDE_PM_START_SUSPEND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IDE_PM_START_SUSPEND@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh12:
	adrp	x8, _PM_EVENT_PRETHAW@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PM_EVENT_PRETHAW@GOTPAGEOFF]
Lloh14:
	adrp	x9, _PM_EVENT_FREEZE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PM_EVENT_FREEZE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x22
	csel	x8, x9, x22, eq
	str	x8, [sp]
	ldr	w0, [x20, #4]
	mov	x1, #0
	mov	x2, x23
	mov	w3, #0
	bl	_blk_execute_rq
	mov	x22, x0
	mov	x0, x23
	bl	_blk_put_request
	cbz	w22, LBB0_6
LBB0_5:
	mov	x0, x22
	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
LBB0_6:
	mov	x0, x19
	bl	_ide_port_acpi
	cbz	x0, LBB0_5
; %bb.7:
	ldrb	w8, [x20]
	tbnz	w8, #0, LBB0_9
; %bb.8:
	cbnz	x21, LBB0_5
LBB0_9:
	mov	x0, x19
	mov	w1, #0
	bl	_ide_acpi_set_state
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.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_SUSPEND,4,2        ; @REQ_TYPE_PM_SUSPEND
	.comm	_IDE_PM_START_SUSPEND,4,2       ; @IDE_PM_START_SUSPEND
	.comm	_PM_EVENT_PRETHAW,8,3           ; @PM_EVENT_PRETHAW
	.comm	_PM_EVENT_FREEZE,8,3            ; @PM_EVENT_FREEZE
.subsections_via_symbols
