	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8903_output_event
_wm8903_output_event:                   ## @wm8903_output_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, %ebx
	movq	8(%rdi), %r14
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_14
## %bb.2:
	movl	4(%rdi), %r13d
	movq	_WM8903_ANALOGUE_HP_0@GOTPCREL(%rip), %rax
	movl	%r13d, %ecx
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_4
LBB0_3:
	movl	4(%rdi), %r13d
	leal	2(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_WM8903_ANALOGUE_LINEOUT_0@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r15d
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.5:
	cmpl	$1, %r13d
	jne	LBB0_14
## %bb.6:
	movl	$4, %r13d
LBB0_7:
	movq	_SND_SOC_DAPM_PRE_PMU@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_snd_soc_read
	movq	_WM8903_OUTPUT_SHORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%r13d, %ecx
	shll	%cl, %edx
	notl	%edx
	andl	%eax, %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_snd_soc_write
LBB0_9:
	movq	_SND_SOC_DAPM_POST_PMU@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_snd_soc_read
	movq	_WM8903_OUTPUT_IN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movl	%r13d, %ecx
	shll	%cl, %r12d
	orl	%eax, %r12d
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_snd_soc_write
	movq	_WM8903_OUTPUT_INT@GOTPCREL(%rip), %rax
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	(%rax), %ebx
	movl	%r13d, %ecx
	shll	%cl, %ebx
	orl	%r12d, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_snd_soc_write
	movq	_WM8903_OUTPUT_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r13d, %ecx
	shll	%cl, %r12d
	orl	%ebx, %r12d
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_snd_soc_write
	movq	_WM8903_DC_SERVO_0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_snd_soc_read
	orl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movl	(%rbx), %esi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_snd_soc_write
	movq	_WM8903_OUTPUT_SHORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %ecx
	shll	%cl, %edx
	orl	%r12d, %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_snd_soc_write
LBB0_11:
	movq	_SND_SOC_DAPM_PRE_PMD@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	testl	%ebx, (%rax)
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_snd_soc_read
	movq	_WM8903_OUTPUT_SHORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%r13d, %ecx
	shll	%cl, %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_snd_soc_write
	movq	_WM8903_DC_SERVO_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_snd_soc_read
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	notl	%edx
	andl	%eax, %edx
	movq	_WM8903_DC_SERVO_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_snd_soc_write
	movq	_WM8903_OUTPUT_OUT@GOTPCREL(%rip), %rax
	movq	_WM8903_OUTPUT_INT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_WM8903_OUTPUT_IN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%r13d, %ecx
	shll	%cl, %edx
	notl	%edx
	andl	%ebx, %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_snd_soc_write
	jmp	LBB0_13
LBB0_14:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_BUG
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_13:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8903_ANALOGUE_HP_0,4,2       ## @WM8903_ANALOGUE_HP_0
	.comm	_WM8903_ANALOGUE_LINEOUT_0,4,2  ## @WM8903_ANALOGUE_LINEOUT_0
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SND_SOC_DAPM_PRE_PMU,4,2       ## @SND_SOC_DAPM_PRE_PMU
	.comm	_WM8903_OUTPUT_SHORT,4,2        ## @WM8903_OUTPUT_SHORT
	.comm	_SND_SOC_DAPM_POST_PMU,4,2      ## @SND_SOC_DAPM_POST_PMU
	.comm	_WM8903_OUTPUT_IN,4,2           ## @WM8903_OUTPUT_IN
	.comm	_WM8903_OUTPUT_INT,4,2          ## @WM8903_OUTPUT_INT
	.comm	_WM8903_OUTPUT_OUT,4,2          ## @WM8903_OUTPUT_OUT
	.comm	_WM8903_DC_SERVO_0,4,2          ## @WM8903_DC_SERVO_0
	.comm	_SND_SOC_DAPM_PRE_PMD,4,2       ## @SND_SOC_DAPM_PRE_PMD
	.no_dead_strip	_wm8903_output_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8903_output_event
_wm8903_output_event:                   ; @wm8903_output_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, #8]
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_13
; %bb.2:
	ldr	w23, [x0, #4]
Lloh0:
	adrp	x8, _WM8903_ANALOGUE_HP_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM8903_ANALOGUE_HP_0@GOTPAGEOFF]
	mov	x24, x23
Lloh2:
	ldr	w20, [x8]
	cbnz	w23, LBB0_4
	b	LBB0_6
LBB0_3:
	ldr	w23, [x0, #4]
	add	w24, w23, #2
Lloh3:
	adrp	x8, _WM8903_ANALOGUE_LINEOUT_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WM8903_ANALOGUE_LINEOUT_0@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	cbz	w23, LBB0_6
LBB0_4:
	cmp	w23, #1
	b.ne	LBB0_13
; %bb.5:
	mov	w23, #4
LBB0_6:
Lloh6:
	adrp	x8, _SND_SOC_DAPM_PRE_PMU@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SND_SOC_DAPM_PRE_PMU@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x26, _WM8903_OUTPUT_SHORT@GOTPAGE
Lloh10:
	ldr	x26, [x26, _WM8903_OUTPUT_SHORT@GOTPAGEOFF]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	bl	_snd_soc_read
	ldr	w8, [x26]
	lsl	w8, w8, w23
	bic	w2, w0, w8
	mov	x0, x19
	mov	x1, x20
	bl	_snd_soc_write
LBB0_8:
Lloh11:
	adrp	x8, _SND_SOC_DAPM_POST_PMU@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SND_SOC_DAPM_POST_PMU@GOTPAGEOFF]
Lloh13:
	adrp	x25, _WM8903_DC_SERVO_0@GOTPAGE
Lloh14:
	ldr	x25, [x25, _WM8903_DC_SERVO_0@GOTPAGEOFF]
Lloh15:
	adrp	x28, _WM8903_OUTPUT_OUT@GOTPAGE
Lloh16:
	ldr	x28, [x28, _WM8903_OUTPUT_OUT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x27, _WM8903_OUTPUT_INT@GOTPAGE
Lloh19:
	ldr	x27, [x27, _WM8903_OUTPUT_INT@GOTPAGEOFF]
Lloh20:
	adrp	x22, _WM8903_OUTPUT_IN@GOTPAGE
Lloh21:
	ldr	x22, [x22, _WM8903_OUTPUT_IN@GOTPAGEOFF]
	tst	w8, w21
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	bl	_snd_soc_read
	ldr	w8, [x22]
	lsl	w8, w8, w23
	orr	w22, w8, w0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_snd_soc_write
	ldr	w8, [x27]
	lsl	w8, w8, w23
	orr	w22, w8, w22
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_snd_soc_write
	ldr	w8, [x28]
	lsl	w8, w8, w23
	orr	w22, w8, w22
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_snd_soc_write
	ldr	w1, [x25]
	mov	x0, x19
	bl	_snd_soc_read
	orr	w2, w0, w24
	ldr	w1, [x25]
	mov	x0, x19
	bl	_snd_soc_write
	ldr	w8, [x26]
	lsl	w8, w8, w23
	orr	w2, w8, w22
Lloh22:
	adrp	x22, _WM8903_OUTPUT_IN@GOTPAGE
Lloh23:
	ldr	x22, [x22, _WM8903_OUTPUT_IN@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	bl	_snd_soc_write
LBB0_10:
Lloh24:
	adrp	x8, _SND_SOC_DAPM_PRE_PMD@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SND_SOC_DAPM_PRE_PMD@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x20
	bl	_snd_soc_read
	ldr	w8, [x26]
	lsl	w8, w8, w23
	bic	w21, w0, w8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_snd_soc_write
	ldr	w1, [x25]
	mov	x0, x19
	bl	_snd_soc_read
	bic	w2, w0, w24
	ldr	w1, [x25]
	mov	x0, x19
	bl	_snd_soc_write
	ldr	w8, [x28]
	ldr	w9, [x27]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w8, w8, w9
	lsl	w8, w8, w23
	bic	w2, w21, w8
	mov	x0, x19
	mov	x1, x20
	bl	_snd_soc_write
LBB0_12:
	mov	w0, #0
	b	LBB0_14
LBB0_13:
	bl	_BUG
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8903_ANALOGUE_HP_0,4,2       ; @WM8903_ANALOGUE_HP_0
	.comm	_WM8903_ANALOGUE_LINEOUT_0,4,2  ; @WM8903_ANALOGUE_LINEOUT_0
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SND_SOC_DAPM_PRE_PMU,4,2       ; @SND_SOC_DAPM_PRE_PMU
	.comm	_WM8903_OUTPUT_SHORT,4,2        ; @WM8903_OUTPUT_SHORT
	.comm	_SND_SOC_DAPM_POST_PMU,4,2      ; @SND_SOC_DAPM_POST_PMU
	.comm	_WM8903_OUTPUT_IN,4,2           ; @WM8903_OUTPUT_IN
	.comm	_WM8903_OUTPUT_INT,4,2          ; @WM8903_OUTPUT_INT
	.comm	_WM8903_OUTPUT_OUT,4,2          ; @WM8903_OUTPUT_OUT
	.comm	_WM8903_DC_SERVO_0,4,2          ; @WM8903_DC_SERVO_0
	.comm	_SND_SOC_DAPM_PRE_PMD,4,2       ; @SND_SOC_DAPM_PRE_PMD
	.no_dead_strip	_wm8903_output_event
.subsections_via_symbols
