	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pxa2xx_ac97_hw_remove          ## -- Begin function pxa2xx_ac97_hw_remove
	.p2align	4, 0x90
_pxa2xx_ac97_hw_remove:                 ## @pxa2xx_ac97_hw_remove
	.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	_GCR_ACLINK_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_GCR@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	movq	_IRQ_AC97@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_free_irq
	movq	_ac97conf_clk@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_clk_put
	movq	$0, (%rbx)
LBB0_2:
	movq	_ac97_clk@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_clk_disable
	movq	(%rbx), %rdi
	callq	_clk_put
	movq	$0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GCR_ACLINK_OFF,4,2             ## @GCR_ACLINK_OFF
	.comm	_GCR,4,2                        ## @GCR
	.comm	_IRQ_AC97,4,2                   ## @IRQ_AC97
	.comm	_ac97conf_clk,8,3               ## @ac97conf_clk
	.comm	_ac97_clk,8,3                   ## @ac97_clk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pxa2xx_ac97_hw_remove          ; -- Begin function pxa2xx_ac97_hw_remove
	.p2align	2
_pxa2xx_ac97_hw_remove:                 ; @pxa2xx_ac97_hw_remove
	.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
Lloh0:
	adrp	x8, _GCR_ACLINK_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GCR_ACLINK_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _GCR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GCR@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
Lloh5:
	adrp	x8, _IRQ_AC97@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_AC97@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_free_irq
Lloh8:
	adrp	x19, _ac97conf_clk@GOTPAGE
Lloh9:
	ldr	x19, [x19, _ac97conf_clk@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_clk_put
	str	xzr, [x19]
LBB0_2:
Lloh10:
	adrp	x19, _ac97_clk@GOTPAGE
Lloh11:
	ldr	x19, [x19, _ac97_clk@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_clk_disable
	ldr	x0, [x19]
	bl	_clk_put
	str	xzr, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GCR_ACLINK_OFF,4,2             ; @GCR_ACLINK_OFF
	.comm	_GCR,4,2                        ; @GCR
	.comm	_IRQ_AC97,4,2                   ; @IRQ_AC97
	.comm	_ac97conf_clk,8,3               ; @ac97conf_clk
	.comm	_ac97_clk,8,3                   ; @ac97_clk
.subsections_via_symbols
