	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8900_hp_event
_wm8900_hp_event:                       ## @wm8900_hp_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	(%rdi), %r14
	movq	_WM8900_REG_HPCTL1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_snd_soc_read
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_3
## %bb.1:
	movl	%eax, %r15d
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_WM8900_REG_HPCTL1_HP_CLAMP_IP@GOTPCREL(%rip), %rax
	movq	_WM8900_REG_HPCTL1_HP_CLAMP_OP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	jmp	LBB0_6
LBB0_3:
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_9
LBB0_4:
	movq	_WM8900_REG_HPCTL1_HP_SHORT@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_snd_soc_write
	movq	_WM8900_REG_HPCTL1_HP_OPSTAGE_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	andl	%r15d, %ebx
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_snd_soc_write
	movq	_WM8900_REG_HPCTL1_HP_CLAMP_IP@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_WM8900_REG_HPCTL1_HP_CLAMP_OP@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_WM8900_REG_HPCTL1_HP_IPSTAGE_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	%ebx, %edx
	jmp	LBB0_6
LBB0_5:
	movq	_WM8900_REG_HPCTL1_HP_CLAMP_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
	movq	_WM8900_REG_HPCTL1_HP_SHORT@GOTPCREL(%rip), %rax
	movq	_WM8900_REG_HPCTL1_HP_SHORT2@GOTPCREL(%rip), %r13
	orl	(%rax), %r15d
	orl	(%r13), %r15d
	movq	_WM8900_REG_HPCTL1_HP_IPSTAGE_ENA@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_snd_soc_write
	movl	$400, %edi                      ## imm = 0x190
	callq	_msleep
	movq	_WM8900_REG_HPCTL1_HP_CLAMP_OP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	andl	%r15d, %ebx
	movq	_WM8900_REG_HPCTL1_HP_OPSTAGE_ENA@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_snd_soc_write
	movl	(%r13), %r15d
	notl	%r15d
	andl	%ebx, %r15d
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_snd_soc_write
	movq	_WM8900_REG_HPCTL1_HP_SHORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	%r15d, %edx
LBB0_6:
	movl	(%r12), %esi
	movq	%r14, %rdi
	jmp	LBB0_8
LBB0_7:
	movl	(%r12), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
LBB0_8:
	callq	_snd_soc_write
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_WM8900_REG_HPCTL1,4,2          ## @WM8900_REG_HPCTL1
	.comm	_WM8900_REG_HPCTL1_HP_CLAMP_IP,4,2 ## @WM8900_REG_HPCTL1_HP_CLAMP_IP
	.comm	_WM8900_REG_HPCTL1_HP_CLAMP_OP,4,2 ## @WM8900_REG_HPCTL1_HP_CLAMP_OP
	.comm	_WM8900_REG_HPCTL1_HP_SHORT,4,2 ## @WM8900_REG_HPCTL1_HP_SHORT
	.comm	_WM8900_REG_HPCTL1_HP_SHORT2,4,2 ## @WM8900_REG_HPCTL1_HP_SHORT2
	.comm	_WM8900_REG_HPCTL1_HP_IPSTAGE_ENA,4,2 ## @WM8900_REG_HPCTL1_HP_IPSTAGE_ENA
	.comm	_WM8900_REG_HPCTL1_HP_OPSTAGE_ENA,4,2 ## @WM8900_REG_HPCTL1_HP_OPSTAGE_ENA
	.no_dead_strip	_wm8900_hp_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8900_hp_event
_wm8900_hp_event:                       ; @wm8900_hp_event
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	ldr	x19, [x0]
Lloh0:
	adrp	x21, _WM8900_REG_HPCTL1@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WM8900_REG_HPCTL1@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_snd_soc_read
	sub	w8, w20, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh4:
	adrp	x8, _WM8900_REG_HPCTL1_HP_CLAMP_IP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WM8900_REG_HPCTL1_HP_CLAMP_IP@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _WM8900_REG_HPCTL1_HP_CLAMP_OP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _WM8900_REG_HPCTL1_HP_CLAMP_OP@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w2, w9, w8
	b	LBB0_6
LBB0_3:
	bl	_BUG
	b	LBB0_9
LBB0_4:
Lloh10:
	adrp	x8, _WM8900_REG_HPCTL1_HP_SHORT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WM8900_REG_HPCTL1_HP_SHORT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w20, w8, w0
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_snd_soc_write
Lloh13:
	adrp	x8, _WM8900_REG_HPCTL1_HP_OPSTAGE_ENA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WM8900_REG_HPCTL1_HP_OPSTAGE_ENA@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	bic	w20, w20, w8
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_snd_soc_write
Lloh16:
	adrp	x8, _WM8900_REG_HPCTL1_HP_CLAMP_IP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WM8900_REG_HPCTL1_HP_CLAMP_IP@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _WM8900_REG_HPCTL1_HP_CLAMP_OP@GOTPAGE
Lloh20:
	ldr	x9, [x9, _WM8900_REG_HPCTL1_HP_CLAMP_OP@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w20
	orr	w8, w8, w9
Lloh22:
	adrp	x9, _WM8900_REG_HPCTL1_HP_IPSTAGE_ENA@GOTPAGE
Lloh23:
	ldr	x9, [x9, _WM8900_REG_HPCTL1_HP_IPSTAGE_ENA@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	bic	w2, w8, w9
	b	LBB0_6
LBB0_5:
Lloh25:
	adrp	x8, _WM8900_REG_HPCTL1_HP_CLAMP_IP@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WM8900_REG_HPCTL1_HP_CLAMP_IP@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x22, _WM8900_REG_HPCTL1_HP_SHORT@GOTPAGE
Lloh29:
	ldr	x22, [x22, _WM8900_REG_HPCTL1_HP_SHORT@GOTPAGEOFF]
	bic	w8, w0, w8
	ldr	w9, [x22]
Lloh30:
	adrp	x23, _WM8900_REG_HPCTL1_HP_SHORT2@GOTPAGE
Lloh31:
	ldr	x23, [x23, _WM8900_REG_HPCTL1_HP_SHORT2@GOTPAGEOFF]
Lloh32:
	adrp	x10, _WM8900_REG_HPCTL1_HP_IPSTAGE_ENA@GOTPAGE
Lloh33:
	ldr	x10, [x10, _WM8900_REG_HPCTL1_HP_IPSTAGE_ENA@GOTPAGEOFF]
	ldr	w11, [x23]
Lloh34:
	ldr	w10, [x10]
	orr	w8, w8, w9
	orr	w8, w8, w11
	orr	w20, w8, w10
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_snd_soc_write
	mov	w0, #400
	bl	_msleep
Lloh35:
	adrp	x8, _WM8900_REG_HPCTL1_HP_CLAMP_OP@GOTPAGE
Lloh36:
	ldr	x8, [x8, _WM8900_REG_HPCTL1_HP_CLAMP_OP@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	bic	w8, w20, w8
Lloh38:
	adrp	x9, _WM8900_REG_HPCTL1_HP_OPSTAGE_ENA@GOTPAGE
Lloh39:
	ldr	x9, [x9, _WM8900_REG_HPCTL1_HP_OPSTAGE_ENA@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w20, w8, w9
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_snd_soc_write
	ldr	w8, [x23]
	bic	w20, w20, w8
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_snd_soc_write
	ldr	w8, [x22]
	bic	w2, w20, w8
LBB0_6:
	ldr	w1, [x21]
	mov	x0, x19
	b	LBB0_8
LBB0_7:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
LBB0_8:
	bl	_snd_soc_write
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_WM8900_REG_HPCTL1,4,2          ; @WM8900_REG_HPCTL1
	.comm	_WM8900_REG_HPCTL1_HP_CLAMP_IP,4,2 ; @WM8900_REG_HPCTL1_HP_CLAMP_IP
	.comm	_WM8900_REG_HPCTL1_HP_CLAMP_OP,4,2 ; @WM8900_REG_HPCTL1_HP_CLAMP_OP
	.comm	_WM8900_REG_HPCTL1_HP_SHORT,4,2 ; @WM8900_REG_HPCTL1_HP_SHORT
	.comm	_WM8900_REG_HPCTL1_HP_SHORT2,4,2 ; @WM8900_REG_HPCTL1_HP_SHORT2
	.comm	_WM8900_REG_HPCTL1_HP_IPSTAGE_ENA,4,2 ; @WM8900_REG_HPCTL1_HP_IPSTAGE_ENA
	.comm	_WM8900_REG_HPCTL1_HP_OPSTAGE_ENA,4,2 ; @WM8900_REG_HPCTL1_HP_OPSTAGE_ENA
	.no_dead_strip	_wm8900_hp_event
.subsections_via_symbols
