	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmac_ide_do_suspend
_pmac_ide_do_suspend:                   ## @pmac_ide_do_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movl	24(%rdi), %edi
	callq	_disable_irq
	cmpq	$0, 16(%rbx)
	jne	LBB0_4
## %bb.1:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_readl
	movq	_KAUAI_FCR_UATA_RESET_N@GOTPCREL(%rip), %rcx
	movq	_KAUAI_FCR_UATA_ENABLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	8(%rbx), %rsi
	callq	_writel
LBB0_3:
	movq	_ppc_md@GOTPCREL(%rip), %rax
	movq	_PMAC_FTR_IDE_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	xorl	%ecx, %ecx
	callq	*(%rax)
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KAUAI_FCR_UATA_RESET_N,4,2     ## @KAUAI_FCR_UATA_RESET_N
	.comm	_KAUAI_FCR_UATA_ENABLE,4,2      ## @KAUAI_FCR_UATA_ENABLE
	.comm	_ppc_md,8,3                     ## @ppc_md
	.comm	_PMAC_FTR_IDE_ENABLE,4,2        ## @PMAC_FTR_IDE_ENABLE
	.no_dead_strip	_pmac_ide_do_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmac_ide_do_suspend
_pmac_ide_do_suspend:                   ; @pmac_ide_do_suspend
	.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	x19, x0
	ldr	x8, [x0, #32]
	stp	xzr, xzr, [x8]
	ldr	w0, [x0, #24]
	bl	_disable_irq
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_4
; %bb.1:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_readl
Lloh0:
	adrp	x8, _KAUAI_FCR_UATA_RESET_N@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KAUAI_FCR_UATA_RESET_N@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _KAUAI_FCR_UATA_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _KAUAI_FCR_UATA_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w0, w0, w8
	ldr	x1, [x19, #8]
	bl	_writel
LBB0_3:
Lloh6:
	adrp	x8, _ppc_md@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ppc_md@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _PMAC_FTR_IDE_ENABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PMAC_FTR_IDE_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x9]
	ldp	w2, w1, [x19]
	mov	w3, #0
	blr	x8
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_KAUAI_FCR_UATA_RESET_N,4,2     ; @KAUAI_FCR_UATA_RESET_N
	.comm	_KAUAI_FCR_UATA_ENABLE,4,2      ; @KAUAI_FCR_UATA_ENABLE
	.comm	_ppc_md,8,3                     ; @ppc_md
	.comm	_PMAC_FTR_IDE_ENABLE,4,2        ; @PMAC_FTR_IDE_ENABLE
	.no_dead_strip	_pmac_ide_do_suspend
.subsections_via_symbols
