	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ac97_powerdown
_snd_ac97_powerdown:                    ## @snd_ac97_powerdown
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_ac97_is_audio
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_AC97_MASTER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$40863, %edx                    ## imm = 0x9F9F
	callq	_snd_ac97_write
	movq	_AC97_HEADPHONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$40863, %edx                    ## imm = 0x9F9F
	callq	_snd_ac97_write
LBB0_2:
	movq	(%r14), %rcx
	movq	_AC97_EXTENDED_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	8(%r14), %eax
	movq	_AC97_SCAP_SURROUND_DAC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	je	LBB0_3
## %bb.4:
	movq	_AC97_EA_PRJ@GOTPCREL(%rip), %rdx
	movzwl	(%rdx), %ebx
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	orw	(%rcx,%rsi,2), %bx
	movq	_AC97_SCAP_CENTER_LFE_DAC@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_AC97_EA_PRI@GOTPCREL(%rip), %rcx
	movq	_AC97_EA_PRK@GOTPCREL(%rip), %rdx
	movzwl	(%rdx), %edx
	orw	(%rcx), %dx
	testl	%eax, %eax
	cmovel	%eax, %edx
	movq	_AC97_EA_PRL@GOTPCREL(%rip), %rax
	orw	(%rax), %bx
	orl	%edx, %ebx
	movzwl	%bx, %edx
	movq	%r14, %rdi
	callq	_snd_ac97_write
	movl	8(%r14), %eax
	movq	_AC97_SCAP_INV_EAPD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	(%r14), %rax
	movq	_AC97_POWERDOWN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	_AC97_PD_EAPD@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ebx
	notl	%ebx
	andw	(%rax,%rsi,2), %bx
	jmp	LBB0_10
LBB0_7:
	movq	_AC97_SCAP_EAPD_LED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	_AC97_POWERDOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	jmp	LBB0_10
LBB0_9:
	movq	(%r14), %rax
	movq	_AC97_POWERDOWN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	_AC97_PD_EAPD@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ebx
	orw	(%rax,%rsi,2), %bx
LBB0_10:
	movq	_AC97_PD_PR6@GOTPCREL(%rip), %rax
	movq	_AC97_PD_PR0@GOTPCREL(%rip), %rcx
	orw	(%rax), %bx
	orw	(%rcx), %bx
	movq	_AC97_PD_PR1@GOTPCREL(%rip), %rax
	orw	(%rax), %bx
	movzwl	%bx, %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_snd_ac97_write
	movl	$100, %edi
	callq	_udelay
	movq	_AC97_PD_PR2@GOTPCREL(%rip), %rax
	orw	(%rax), %bx
	movq	_AC97_POWERDOWN@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movzwl	%bx, %edx
	movq	%r14, %rdi
	callq	_snd_ac97_write
	movq	%r14, %rdi
	callq	_ac97_is_power_save_mode
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	_AC97_PD_PR3@GOTPCREL(%rip), %rax
	orw	(%rax), %bx
	movq	(%r15), %rsi
	movzwl	%bx, %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_snd_ac97_write
	movl	$100, %edi
	callq	_udelay
	movq	_AC97_PD_PR4@GOTPCREL(%rip), %rax
	movq	_AC97_PD_PR5@GOTPCREL(%rip), %rcx
	orw	(%rax), %bx
	orw	(%rcx), %bx
	movq	(%r15), %rsi
	movzwl	%bx, %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_ac97_write                 ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC97_MASTER,8,3                ## @AC97_MASTER
	.comm	_AC97_HEADPHONE,8,3             ## @AC97_HEADPHONE
	.comm	_AC97_EXTENDED_STATUS,8,3       ## @AC97_EXTENDED_STATUS
	.comm	_AC97_SCAP_SURROUND_DAC,4,2     ## @AC97_SCAP_SURROUND_DAC
	.comm	_AC97_EA_PRJ,2,1                ## @AC97_EA_PRJ
	.comm	_AC97_SCAP_CENTER_LFE_DAC,4,2   ## @AC97_SCAP_CENTER_LFE_DAC
	.comm	_AC97_EA_PRI,2,1                ## @AC97_EA_PRI
	.comm	_AC97_EA_PRK,2,1                ## @AC97_EA_PRK
	.comm	_AC97_EA_PRL,2,1                ## @AC97_EA_PRL
	.comm	_AC97_SCAP_INV_EAPD,4,2         ## @AC97_SCAP_INV_EAPD
	.comm	_AC97_POWERDOWN,8,3             ## @AC97_POWERDOWN
	.comm	_AC97_PD_EAPD,2,1               ## @AC97_PD_EAPD
	.comm	_AC97_SCAP_EAPD_LED,4,2         ## @AC97_SCAP_EAPD_LED
	.comm	_AC97_PD_PR6,2,1                ## @AC97_PD_PR6
	.comm	_AC97_PD_PR0,2,1                ## @AC97_PD_PR0
	.comm	_AC97_PD_PR1,2,1                ## @AC97_PD_PR1
	.comm	_AC97_PD_PR2,2,1                ## @AC97_PD_PR2
	.comm	_AC97_PD_PR3,2,1                ## @AC97_PD_PR3
	.comm	_AC97_PD_PR4,2,1                ## @AC97_PD_PR4
	.comm	_AC97_PD_PR5,2,1                ## @AC97_PD_PR5
	.no_dead_strip	_snd_ac97_powerdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ac97_powerdown
_snd_ac97_powerdown:                    ; @snd_ac97_powerdown
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	bl	_ac97_is_audio
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AC97_MASTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC97_MASTER@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #40863
	bl	_snd_ac97_write
Lloh3:
	adrp	x8, _AC97_HEADPHONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AC97_HEADPHONE@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #40863
	bl	_snd_ac97_write
LBB0_2:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _AC97_EXTENDED_STATUS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AC97_EXTENDED_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x9]
	ldrh	w8, [x8, x1, lsl #1]
	ldr	w9, [x19, #8]
Lloh9:
	adrp	x10, _AC97_SCAP_SURROUND_DAC@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AC97_SCAP_SURROUND_DAC@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _AC97_EA_PRJ@GOTPAGE
Lloh13:
	ldr	x11, [x11, _AC97_EA_PRJ@GOTPAGEOFF]
	ldrh	w11, [x11]
	tst	w10, w9
	csel	w10, wzr, w11, eq
	orr	w8, w10, w8
Lloh14:
	adrp	x10, _AC97_SCAP_CENTER_LFE_DAC@GOTPAGE
Lloh15:
	ldr	x10, [x10, _AC97_SCAP_CENTER_LFE_DAC@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, _AC97_EA_PRI@GOTPAGE
Lloh18:
	ldr	x11, [x11, _AC97_EA_PRI@GOTPAGEOFF]
	ldrh	w11, [x11]
Lloh19:
	adrp	x12, _AC97_EA_PRK@GOTPAGE
Lloh20:
	ldr	x12, [x12, _AC97_EA_PRK@GOTPAGEOFF]
	ldrh	w12, [x12]
	orr	w11, w12, w11
	tst	w10, w9
	csel	w9, wzr, w11, eq
Lloh21:
	adrp	x10, _AC97_EA_PRL@GOTPAGE
Lloh22:
	ldr	x10, [x10, _AC97_EA_PRL@GOTPAGEOFF]
	ldrh	w10, [x10]
	orr	w8, w8, w10
	orr	w21, w8, w9
	and	w2, w21, #0xffff
	mov	x0, x19
	bl	_snd_ac97_write
	ldr	w8, [x19, #8]
Lloh23:
	adrp	x9, _AC97_SCAP_INV_EAPD@GOTPAGE
Lloh24:
	ldr	x9, [x9, _AC97_SCAP_INV_EAPD@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
Lloh26:
	adrp	x20, _AC97_POWERDOWN@GOTPAGE
Lloh27:
	ldr	x20, [x20, _AC97_POWERDOWN@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x19]
	ldr	x1, [x20]
	ldrh	w8, [x8, x1, lsl #1]
Lloh28:
	adrp	x9, _AC97_PD_EAPD@GOTPAGE
Lloh29:
	ldr	x9, [x9, _AC97_PD_EAPD@GOTPAGEOFF]
	ldrh	w9, [x9]
	bic	w21, w8, w9
	b	LBB0_7
LBB0_4:
Lloh30:
	adrp	x9, _AC97_SCAP_EAPD_LED@GOTPAGE
Lloh31:
	ldr	x9, [x9, _AC97_SCAP_EAPD_LED@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	x1, [x20]
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19]
	ldr	x1, [x20]
	ldrh	w8, [x8, x1, lsl #1]
Lloh33:
	adrp	x9, _AC97_PD_EAPD@GOTPAGE
Lloh34:
	ldr	x9, [x9, _AC97_PD_EAPD@GOTPAGEOFF]
	ldrh	w9, [x9]
	orr	w21, w9, w8
LBB0_7:
Lloh35:
	adrp	x8, _AC97_PD_PR6@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AC97_PD_PR6@GOTPAGEOFF]
	ldrh	w8, [x8]
Lloh37:
	adrp	x9, _AC97_PD_PR0@GOTPAGE
Lloh38:
	ldr	x9, [x9, _AC97_PD_PR0@GOTPAGEOFF]
Lloh39:
	adrp	x10, _AC97_PD_PR1@GOTPAGE
Lloh40:
	ldr	x10, [x10, _AC97_PD_PR1@GOTPAGEOFF]
	ldrh	w9, [x9]
	ldrh	w10, [x10]
	orr	w8, w8, w21
	orr	w8, w8, w9
	orr	w21, w8, w10
	and	w2, w21, #0xffff
	mov	x0, x19
	bl	_snd_ac97_write
	mov	w0, #100
	bl	_udelay
Lloh41:
	adrp	x8, _AC97_PD_PR2@GOTPAGE
Lloh42:
	ldr	x8, [x8, _AC97_PD_PR2@GOTPAGEOFF]
	ldrh	w8, [x8]
	orr	w21, w8, w21
	ldr	x1, [x20]
	and	w2, w21, #0xffff
	mov	x0, x19
	bl	_snd_ac97_write
	mov	x0, x19
	bl	_ac97_is_power_save_mode
	cbz	x0, LBB0_9
; %bb.8:
Lloh43:
	adrp	x8, _AC97_PD_PR3@GOTPAGE
Lloh44:
	ldr	x8, [x8, _AC97_PD_PR3@GOTPAGEOFF]
	ldrh	w8, [x8]
	orr	w21, w8, w21
	ldr	x1, [x20]
	and	w2, w21, #0xffff
	mov	x0, x19
	bl	_snd_ac97_write
	mov	w0, #100
	bl	_udelay
Lloh45:
	adrp	x8, _AC97_PD_PR4@GOTPAGE
Lloh46:
	ldr	x8, [x8, _AC97_PD_PR4@GOTPAGEOFF]
	ldrh	w8, [x8]
Lloh47:
	adrp	x9, _AC97_PD_PR5@GOTPAGE
Lloh48:
	ldr	x9, [x9, _AC97_PD_PR5@GOTPAGEOFF]
	ldrh	w9, [x9]
	orr	w8, w8, w21
	orr	w8, w8, w9
	ldr	x1, [x20]
	and	w2, w8, #0xffff
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_snd_ac97_write
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_AC97_MASTER,8,3                ; @AC97_MASTER
	.comm	_AC97_HEADPHONE,8,3             ; @AC97_HEADPHONE
	.comm	_AC97_EXTENDED_STATUS,8,3       ; @AC97_EXTENDED_STATUS
	.comm	_AC97_SCAP_SURROUND_DAC,4,2     ; @AC97_SCAP_SURROUND_DAC
	.comm	_AC97_EA_PRJ,2,1                ; @AC97_EA_PRJ
	.comm	_AC97_SCAP_CENTER_LFE_DAC,4,2   ; @AC97_SCAP_CENTER_LFE_DAC
	.comm	_AC97_EA_PRI,2,1                ; @AC97_EA_PRI
	.comm	_AC97_EA_PRK,2,1                ; @AC97_EA_PRK
	.comm	_AC97_EA_PRL,2,1                ; @AC97_EA_PRL
	.comm	_AC97_SCAP_INV_EAPD,4,2         ; @AC97_SCAP_INV_EAPD
	.comm	_AC97_POWERDOWN,8,3             ; @AC97_POWERDOWN
	.comm	_AC97_PD_EAPD,2,1               ; @AC97_PD_EAPD
	.comm	_AC97_SCAP_EAPD_LED,4,2         ; @AC97_SCAP_EAPD_LED
	.comm	_AC97_PD_PR6,2,1                ; @AC97_PD_PR6
	.comm	_AC97_PD_PR0,2,1                ; @AC97_PD_PR0
	.comm	_AC97_PD_PR1,2,1                ; @AC97_PD_PR1
	.comm	_AC97_PD_PR2,2,1                ; @AC97_PD_PR2
	.comm	_AC97_PD_PR3,2,1                ; @AC97_PD_PR3
	.comm	_AC97_PD_PR4,2,1                ; @AC97_PD_PR4
	.comm	_AC97_PD_PR5,2,1                ; @AC97_PD_PR5
	.no_dead_strip	_snd_ac97_powerdown
.subsections_via_symbols
