	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8961_spk_event
_wm8961_spk_event:                      ## @wm8961_spk_event
	.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
	movl	%edx, %r15d
	movq	(%rdi), %r14
	movq	_WM8961_PWR_MGMT_2@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_snd_soc_read
	movl	%eax, %r12d
	movq	_WM8961_CLASS_D_CONTROL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_snd_soc_read
	movl	%eax, %ebx
	movq	_SND_SOC_DAPM_POST_PMU@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_WM8961_SPKL_PGA@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_WM8961_SPKR_PGA@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_snd_soc_write
	movq	_WM8961_SPKL_ENA@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_WM8961_SPKR_ENA@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_WM8961_CLASS_D_CONTROL_1@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_snd_soc_write
	movq	%r13, %rdx
	jmp	LBB0_3
LBB0_1:
	movq	_WM8961_CLASS_D_CONTROL_1@GOTPCREL(%rip), %rdx
LBB0_3:
	movq	_SND_SOC_DAPM_PRE_PMD@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_WM8961_SPKL_ENA@GOTPCREL(%rip), %rax
	movq	_WM8961_SPKR_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %ebx
	movl	(%rdx), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_snd_soc_write
	movq	_WM8961_SPKL_PGA@GOTPCREL(%rip), %rax
	movq	_WM8961_SPKR_PGA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r12d
	movq	_WM8961_PWR_MGMT_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_snd_soc_write
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8961_PWR_MGMT_2,4,2          ## @WM8961_PWR_MGMT_2
	.comm	_WM8961_CLASS_D_CONTROL_1,4,2   ## @WM8961_CLASS_D_CONTROL_1
	.comm	_SND_SOC_DAPM_POST_PMU,4,2      ## @SND_SOC_DAPM_POST_PMU
	.comm	_WM8961_SPKL_PGA,4,2            ## @WM8961_SPKL_PGA
	.comm	_WM8961_SPKR_PGA,4,2            ## @WM8961_SPKR_PGA
	.comm	_WM8961_SPKL_ENA,4,2            ## @WM8961_SPKL_ENA
	.comm	_WM8961_SPKR_ENA,4,2            ## @WM8961_SPKR_ENA
	.comm	_SND_SOC_DAPM_PRE_PMD,4,2       ## @SND_SOC_DAPM_PRE_PMD
	.no_dead_strip	_wm8961_spk_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8961_spk_event
_wm8961_spk_event:                      ; @wm8961_spk_event
	.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	x21, x2
	ldr	x19, [x0]
Lloh0:
	adrp	x23, _WM8961_PWR_MGMT_2@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WM8961_PWR_MGMT_2@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_snd_soc_read
	mov	x20, x0
Lloh2:
	adrp	x24, _WM8961_CLASS_D_CONTROL_1@GOTPAGE
Lloh3:
	ldr	x24, [x24, _WM8961_CLASS_D_CONTROL_1@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_snd_soc_read
	mov	x22, x0
Lloh4:
	adrp	x8, _SND_SOC_DAPM_POST_PMU@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SND_SOC_DAPM_POST_PMU@GOTPAGEOFF]
Lloh6:
	adrp	x27, _WM8961_SPKL_ENA@GOTPAGE
Lloh7:
	ldr	x27, [x27, _WM8961_SPKL_ENA@GOTPAGEOFF]
Lloh8:
	adrp	x28, _WM8961_SPKR_ENA@GOTPAGE
Lloh9:
	ldr	x28, [x28, _WM8961_SPKR_ENA@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x25, _WM8961_SPKL_PGA@GOTPAGE
Lloh12:
	ldr	x25, [x25, _WM8961_SPKL_PGA@GOTPAGEOFF]
Lloh13:
	adrp	x26, _WM8961_SPKR_PGA@GOTPAGE
Lloh14:
	ldr	x26, [x26, _WM8961_SPKR_PGA@GOTPAGEOFF]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w8, w8, w20
	orr	w20, w8, w9
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x20
	bl	_snd_soc_write
	ldr	w8, [x27]
	ldr	w9, [x28]
	orr	w8, w8, w22
	orr	w22, w8, w9
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x22
	bl	_snd_soc_write
LBB0_2:
Lloh15:
	adrp	x8, _SND_SOC_DAPM_PRE_PMD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SND_SOC_DAPM_PRE_PMD@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x27]
	ldr	w9, [x28]
	orr	w8, w9, w8
	bic	w2, w22, w8
	ldr	w1, [x24]
	mov	x0, x19
	bl	_snd_soc_write
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w8, w9, w8
	bic	w2, w20, w8
	ldr	w1, [x23]
	mov	x0, x19
	bl	_snd_soc_write
LBB0_4:
	mov	w0, #0
	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	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh10
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8961_PWR_MGMT_2,4,2          ; @WM8961_PWR_MGMT_2
	.comm	_WM8961_CLASS_D_CONTROL_1,4,2   ; @WM8961_CLASS_D_CONTROL_1
	.comm	_SND_SOC_DAPM_POST_PMU,4,2      ; @SND_SOC_DAPM_POST_PMU
	.comm	_WM8961_SPKL_PGA,4,2            ; @WM8961_SPKL_PGA
	.comm	_WM8961_SPKR_PGA,4,2            ; @WM8961_SPKR_PGA
	.comm	_WM8961_SPKL_ENA,4,2            ; @WM8961_SPKL_ENA
	.comm	_WM8961_SPKR_ENA,4,2            ; @WM8961_SPKR_ENA
	.comm	_SND_SOC_DAPM_PRE_PMD,4,2       ; @SND_SOC_DAPM_PRE_PMD
	.no_dead_strip	_wm8961_spk_event
.subsections_via_symbols
