	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_power_regs
_update_power_regs:                     ## @update_power_regs
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_PWIDX_FRONT@GOTPCREL(%rip), %rax
	movb	(%rax), %dil
	movq	_PWIDX_ADC@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %r14d
	movl	$1, %r15d
	shll	%cl, %r15d
	movl	(%rbx), %eax
	movq	_AC97_SCAP_SURROUND_DAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_PWIDX_SURR@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %r13d
	shll	%cl, %r13d
	andl	%eax, %edx
	testl	%edx, %edx
	cmovel	%edx, %r13d
	movq	_AC97_SCAP_CENTER_LFE_DAC@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_PWIDX_CLFE@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r14d
	movq	_PWIDX_MIC@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	cmovel	%eax, %r14d
	movb	(%rcx), %dl
	movq	8(%rbx), %rax
	movq	_AC97_POWERDOWN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	_AC97_PD_PR2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax,%rsi,4)
	je	LBB0_2
## %bb.1:
	movq	_AC97_PD_PR3@GOTPCREL(%rip), %rax
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	(%rax), %edx
	movl	%edi, %r12d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_snd_ac97_update_bits
	movl	$1, %edi
	callq	_msleep
	movq	_AC97_POWERDOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_AC97_PD_PR2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_snd_ac97_update_bits
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %edi
LBB0_2:
	movq	_PWIDX_SIZE@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_5
## %bb.3:
	movq	%rbx, %r12
	btsl	%edi, %r15d
	btsl	%edx, %r15d
	orl	%r13d, %r15d
	orl	%r14d, %r15d
	movl	$8, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	btl	%ebx, %r15d
	movq	_power_regs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-8(%rax,%r13), %edx
	movq	%rcx, %r14
	movl	$0, %ecx
	cmovael	%edx, %ecx
	movq	(%rax,%r13), %rsi
	movq	%r12, %rdi
	callq	_snd_ac97_update_bits
	movq	%r14, %rcx
	incq	%rbx
	movslq	(%r14), %rax
	addq	$16, %r13
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PWIDX_FRONT,4,2                ## @PWIDX_FRONT
	.comm	_PWIDX_ADC,4,2                  ## @PWIDX_ADC
	.comm	_PWIDX_MIC,4,2                  ## @PWIDX_MIC
	.comm	_AC97_SCAP_SURROUND_DAC,4,2     ## @AC97_SCAP_SURROUND_DAC
	.comm	_PWIDX_SURR,4,2                 ## @PWIDX_SURR
	.comm	_AC97_SCAP_CENTER_LFE_DAC,4,2   ## @AC97_SCAP_CENTER_LFE_DAC
	.comm	_PWIDX_CLFE,4,2                 ## @PWIDX_CLFE
	.comm	_AC97_POWERDOWN,8,3             ## @AC97_POWERDOWN
	.comm	_AC97_PD_PR2,4,2                ## @AC97_PD_PR2
	.comm	_AC97_PD_PR3,4,2                ## @AC97_PD_PR3
	.comm	_PWIDX_SIZE,4,2                 ## @PWIDX_SIZE
	.comm	_power_regs,8,3                 ## @power_regs
	.no_dead_strip	_update_power_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_power_regs
_update_power_regs:                     ; @update_power_regs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _PWIDX_FRONT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PWIDX_FRONT@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	w20, #1
Lloh3:
	adrp	x8, _PWIDX_ADC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PWIDX_ADC@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x8, _PWIDX_MIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PWIDX_MIC@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	ldr	w8, [x0]
Lloh9:
	adrp	x9, _AC97_SCAP_SURROUND_DAC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AC97_SCAP_SURROUND_DAC@GOTPAGEOFF]
Lloh11:
	adrp	x10, _PWIDX_SURR@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PWIDX_SURR@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	ldr	w10, [x10]
	lsl	w10, w20, w10
	tst	w9, w8
Lloh15:
	adrp	x9, _AC97_SCAP_CENTER_LFE_DAC@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AC97_SCAP_CENTER_LFE_DAC@GOTPAGEOFF]
	csel	w24, wzr, w10, eq
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _PWIDX_CLFE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _PWIDX_CLFE@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	lsl	w10, w20, w10
	tst	w9, w8
	csel	w25, wzr, w10, eq
	ldr	x8, [x0, #8]
Lloh21:
	adrp	x26, _AC97_POWERDOWN@GOTPAGE
Lloh22:
	ldr	x26, [x26, _AC97_POWERDOWN@GOTPAGEOFF]
	ldr	x1, [x26]
	ldr	w8, [x8, x1, lsl #2]
Lloh23:
	adrp	x27, _AC97_PD_PR2@GOTPAGE
Lloh24:
	ldr	x27, [x27, _AC97_PD_PR2@GOTPAGEOFF]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh25:
	adrp	x8, _AC97_PD_PR3@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AC97_PD_PR3@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_snd_ac97_update_bits
	mov	w0, #1
	bl	_msleep
	ldr	x1, [x26]
	ldr	w2, [x27]
	mov	x0, x19
	mov	w3, #0
	bl	_snd_ac97_update_bits
LBB0_2:
Lloh28:
	adrp	x26, _PWIDX_SIZE@GOTPAGE
Lloh29:
	ldr	x26, [x26, _PWIDX_SIZE@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x27, #0
	mov	x28, #0
	lsl	w8, w20, w21
	lsl	w9, w20, w23
	orr	w8, w9, w8
	lsl	w9, w20, w22
	orr	w8, w8, w9
	orr	w8, w8, w24
	orr	w20, w8, w25
Lloh30:
	adrp	x21, _power_regs@GOTPAGE
Lloh31:
	ldr	x21, [x21, _power_regs@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x8, x8, x27
	ldr	w2, [x8]
	lsr	w9, w20, w28
	tst	w9, #0x1
	csel	w3, w2, wzr, eq
	ldr	x1, [x8, #8]
	mov	x0, x19
	bl	_snd_ac97_update_bits
	add	x28, x28, #1
	ldrsw	x8, [x26]
	add	x27, x27, #16
	cmp	x28, x8
	b.lt	LBB0_4
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_PWIDX_FRONT,4,2                ; @PWIDX_FRONT
	.comm	_PWIDX_ADC,4,2                  ; @PWIDX_ADC
	.comm	_PWIDX_MIC,4,2                  ; @PWIDX_MIC
	.comm	_AC97_SCAP_SURROUND_DAC,4,2     ; @AC97_SCAP_SURROUND_DAC
	.comm	_PWIDX_SURR,4,2                 ; @PWIDX_SURR
	.comm	_AC97_SCAP_CENTER_LFE_DAC,4,2   ; @AC97_SCAP_CENTER_LFE_DAC
	.comm	_PWIDX_CLFE,4,2                 ; @PWIDX_CLFE
	.comm	_AC97_POWERDOWN,8,3             ; @AC97_POWERDOWN
	.comm	_AC97_PD_PR2,4,2                ; @AC97_PD_PR2
	.comm	_AC97_PD_PR3,4,2                ; @AC97_PD_PR3
	.comm	_PWIDX_SIZE,4,2                 ; @PWIDX_SIZE
	.comm	_power_regs,8,3                 ; @power_regs
	.no_dead_strip	_update_power_regs
.subsections_via_symbols
