	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function speaker_event
_speaker_event:                         ## @speaker_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	(%rdi), %r14
	movq	_WM9081_POWER_MANAGEMENT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_snd_soc_read
	cmpl	$128, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_4
## %bb.2:
	movq	_WM9081_SPK_ENA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_4
LBB0_3:
	movq	_WM9081_SPK_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
LBB0_4:
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_snd_soc_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM9081_POWER_MANAGEMENT,4,2    ## @WM9081_POWER_MANAGEMENT
	.comm	_WM9081_SPK_ENA,4,2             ## @WM9081_SPK_ENA
	.no_dead_strip	_speaker_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function speaker_event
_speaker_event:                         ; @speaker_event
	.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	x20, x2
	ldr	x19, [x0]
Lloh0:
	adrp	x21, _WM9081_POWER_MANAGEMENT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WM9081_POWER_MANAGEMENT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_snd_soc_read
	mov	x2, x0
	cmp	w20, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #129
	b.ne	LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _WM9081_SPK_ENA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WM9081_SPK_ENA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w2, w8, w2
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _WM9081_SPK_ENA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WM9081_SPK_ENA@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	bic	w2, w2, w8
LBB0_4:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_snd_soc_write
	mov	w0, #0
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_WM9081_POWER_MANAGEMENT,4,2    ; @WM9081_POWER_MANAGEMENT
	.comm	_WM9081_SPK_ENA,4,2             ; @WM9081_SPK_ENA
	.no_dead_strip	_speaker_event
.subsections_via_symbols
