	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hp_event
_hp_event:                              ## @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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	(%rdi), %r14
	movq	_WM8993_ANALOGUE_HP_0@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_snd_soc_read
	movl	%eax, %r15d
	cmpl	$128, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_4
## %bb.2:
	movq	_WM8993_CHARGE_PUMP_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM8993_CP_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ecx, %edx
	callq	_snd_soc_update_bits
	movl	$5, %edi
	callq	_msleep
	movq	_WM8993_POWER_MANAGEMENT_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM8993_HPOUT1L_ENA@GOTPCREL(%rip), %rax
	movq	_WM8993_HPOUT1R_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ecx, %edx
	callq	_snd_soc_update_bits
	movq	_WM8993_HPOUT1L_DLY@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_WM8993_HPOUT1R_DLY@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_snd_soc_write
	movq	_WM8993_DCS_ENA_CHAN_0@GOTPCREL(%rip), %rax
	movq	_WM8993_DCS_ENA_CHAN_1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_WM8993_DC_SERVO_0@GOTPCREL(%rip), %rax
	movq	_WM8993_DCS_TRIG_STARTUP_1@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	(%rax), %esi
	movq	_WM8993_DCS_TRIG_STARTUP_0@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_snd_soc_update_bits
	movq	%r14, %rdi
	callq	_wait_for_dc_servo
	movq	_WM8993_HPOUT1R_OUTP@GOTPCREL(%rip), %rax
	movq	_WM8993_HPOUT1R_RMV_SHORT@GOTPCREL(%rip), %rcx
	movq	_WM8993_HPOUT1L_OUTP@GOTPCREL(%rip), %rdx
	orl	(%rax), %r15d
	orl	(%rcx), %r15d
	orl	(%rdx), %r15d
	movq	_WM8993_HPOUT1L_RMV_SHORT@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_snd_soc_write
	jmp	LBB0_4
LBB0_3:
	movq	_WM8993_HPOUT1L_RMV_SHORT@GOTPCREL(%rip), %rax
	movq	_WM8993_HPOUT1L_DLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_WM8993_HPOUT1L_OUTP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_WM8993_HPOUT1R_RMV_SHORT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_WM8993_HPOUT1R_DLY@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_WM8993_HPOUT1R_OUTP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r15d
	movq	_WM8993_DC_SERVO_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	xorl	%ecx, %ecx
	callq	_snd_soc_update_bits
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_snd_soc_write
	movq	_WM8993_POWER_MANAGEMENT_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM8993_HPOUT1L_ENA@GOTPCREL(%rip), %rax
	movq	_WM8993_HPOUT1R_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_snd_soc_update_bits
	movq	_WM8993_CHARGE_PUMP_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM8993_CP_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_snd_soc_update_bits
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8993_ANALOGUE_HP_0,4,2       ## @WM8993_ANALOGUE_HP_0
	.comm	_WM8993_CHARGE_PUMP_1,4,2       ## @WM8993_CHARGE_PUMP_1
	.comm	_WM8993_CP_ENA,4,2              ## @WM8993_CP_ENA
	.comm	_WM8993_POWER_MANAGEMENT_1,4,2  ## @WM8993_POWER_MANAGEMENT_1
	.comm	_WM8993_HPOUT1L_ENA,4,2         ## @WM8993_HPOUT1L_ENA
	.comm	_WM8993_HPOUT1R_ENA,4,2         ## @WM8993_HPOUT1R_ENA
	.comm	_WM8993_HPOUT1L_DLY,4,2         ## @WM8993_HPOUT1L_DLY
	.comm	_WM8993_HPOUT1R_DLY,4,2         ## @WM8993_HPOUT1R_DLY
	.comm	_WM8993_DC_SERVO_0,4,2          ## @WM8993_DC_SERVO_0
	.comm	_WM8993_DCS_ENA_CHAN_0,4,2      ## @WM8993_DCS_ENA_CHAN_0
	.comm	_WM8993_DCS_ENA_CHAN_1,4,2      ## @WM8993_DCS_ENA_CHAN_1
	.comm	_WM8993_DCS_TRIG_STARTUP_1,4,2  ## @WM8993_DCS_TRIG_STARTUP_1
	.comm	_WM8993_DCS_TRIG_STARTUP_0,4,2  ## @WM8993_DCS_TRIG_STARTUP_0
	.comm	_WM8993_HPOUT1R_OUTP,4,2        ## @WM8993_HPOUT1R_OUTP
	.comm	_WM8993_HPOUT1R_RMV_SHORT,4,2   ## @WM8993_HPOUT1R_RMV_SHORT
	.comm	_WM8993_HPOUT1L_OUTP,4,2        ## @WM8993_HPOUT1L_OUTP
	.comm	_WM8993_HPOUT1L_RMV_SHORT,4,2   ## @WM8993_HPOUT1L_RMV_SHORT
	.no_dead_strip	_hp_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hp_event
_hp_event:                              ; @hp_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	x21, x2
	ldr	x19, [x0]
Lloh0:
	adrp	x22, _WM8993_ANALOGUE_HP_0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WM8993_ANALOGUE_HP_0@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_snd_soc_read
	mov	x20, x0
	cmp	w21, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w21, #129
	b.ne	LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _WM8993_CHARGE_PUMP_1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WM8993_CHARGE_PUMP_1@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _WM8993_CP_ENA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WM8993_CP_ENA@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
	bl	_snd_soc_update_bits
	mov	w0, #5
	bl	_msleep
Lloh8:
	adrp	x8, _WM8993_POWER_MANAGEMENT_1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WM8993_POWER_MANAGEMENT_1@GOTPAGEOFF]
Lloh10:
	adrp	x9, _WM8993_HPOUT1L_ENA@GOTPAGE
Lloh11:
	ldr	x9, [x9, _WM8993_HPOUT1L_ENA@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	ldr	w8, [x9]
Lloh14:
	adrp	x9, _WM8993_HPOUT1R_ENA@GOTPAGE
Lloh15:
	ldr	x9, [x9, _WM8993_HPOUT1R_ENA@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	mov	x3, x2
	bl	_snd_soc_update_bits
Lloh17:
	adrp	x8, _WM8993_HPOUT1L_DLY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WM8993_HPOUT1L_DLY@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _WM8993_HPOUT1R_DLY@GOTPAGE
Lloh21:
	ldr	x9, [x9, _WM8993_HPOUT1R_DLY@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w20
	orr	w20, w8, w9
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_snd_soc_write
Lloh23:
	adrp	x8, _WM8993_DC_SERVO_0@GOTPAGE
Lloh24:
	ldr	x8, [x8, _WM8993_DC_SERVO_0@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _WM8993_DCS_ENA_CHAN_0@GOTPAGE
Lloh27:
	ldr	x8, [x8, _WM8993_DCS_ENA_CHAN_0@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _WM8993_DCS_ENA_CHAN_1@GOTPAGE
Lloh30:
	ldr	x9, [x9, _WM8993_DCS_ENA_CHAN_1@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh32:
	adrp	x9, _WM8993_DCS_TRIG_STARTUP_1@GOTPAGE
Lloh33:
	ldr	x9, [x9, _WM8993_DCS_TRIG_STARTUP_1@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh35:
	adrp	x9, _WM8993_DCS_TRIG_STARTUP_0@GOTPAGE
Lloh36:
	ldr	x9, [x9, _WM8993_DCS_TRIG_STARTUP_0@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w3, w8, w9
	mov	x0, x19
	mov	w2, #65535
	bl	_snd_soc_update_bits
	mov	x0, x19
	bl	_wait_for_dc_servo
Lloh38:
	adrp	x8, _WM8993_HPOUT1R_OUTP@GOTPAGE
Lloh39:
	ldr	x8, [x8, _WM8993_HPOUT1R_OUTP@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	adrp	x9, _WM8993_HPOUT1R_RMV_SHORT@GOTPAGE
Lloh42:
	ldr	x9, [x9, _WM8993_HPOUT1R_RMV_SHORT@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
Lloh44:
	adrp	x10, _WM8993_HPOUT1L_OUTP@GOTPAGE
Lloh45:
	ldr	x10, [x10, _WM8993_HPOUT1L_OUTP@GOTPAGEOFF]
Lloh46:
	ldr	w10, [x10]
Lloh47:
	adrp	x11, _WM8993_HPOUT1L_RMV_SHORT@GOTPAGE
Lloh48:
	ldr	x11, [x11, _WM8993_HPOUT1L_RMV_SHORT@GOTPAGEOFF]
Lloh49:
	ldr	w11, [x11]
	orr	w8, w8, w20
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w2, w8, w11
	ldr	w1, [x22]
	mov	x0, x19
	bl	_snd_soc_write
	b	LBB0_4
LBB0_3:
Lloh50:
	adrp	x8, _WM8993_HPOUT1L_RMV_SHORT@GOTPAGE
Lloh51:
	ldr	x8, [x8, _WM8993_HPOUT1L_RMV_SHORT@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
Lloh53:
	adrp	x9, _WM8993_HPOUT1L_DLY@GOTPAGE
Lloh54:
	ldr	x9, [x9, _WM8993_HPOUT1L_DLY@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh56:
	adrp	x9, _WM8993_HPOUT1L_OUTP@GOTPAGE
Lloh57:
	ldr	x9, [x9, _WM8993_HPOUT1L_OUTP@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh59:
	adrp	x9, _WM8993_HPOUT1R_RMV_SHORT@GOTPAGE
Lloh60:
	ldr	x9, [x9, _WM8993_HPOUT1R_RMV_SHORT@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh62:
	adrp	x9, _WM8993_HPOUT1R_DLY@GOTPAGE
Lloh63:
	ldr	x9, [x9, _WM8993_HPOUT1R_DLY@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh65:
	adrp	x9, _WM8993_HPOUT1R_OUTP@GOTPAGE
Lloh66:
	ldr	x9, [x9, _WM8993_HPOUT1R_OUTP@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w20, w20, w8
Lloh68:
	adrp	x8, _WM8993_DC_SERVO_0@GOTPAGE
Lloh69:
	ldr	x8, [x8, _WM8993_DC_SERVO_0@GOTPAGEOFF]
Lloh70:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65535
	mov	w3, #0
	bl	_snd_soc_update_bits
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_snd_soc_write
Lloh71:
	adrp	x8, _WM8993_POWER_MANAGEMENT_1@GOTPAGE
Lloh72:
	ldr	x8, [x8, _WM8993_POWER_MANAGEMENT_1@GOTPAGEOFF]
Lloh73:
	adrp	x9, _WM8993_HPOUT1L_ENA@GOTPAGE
Lloh74:
	ldr	x9, [x9, _WM8993_HPOUT1L_ENA@GOTPAGEOFF]
Lloh75:
	ldr	w1, [x8]
Lloh76:
	ldr	w8, [x9]
Lloh77:
	adrp	x9, _WM8993_HPOUT1R_ENA@GOTPAGE
Lloh78:
	ldr	x9, [x9, _WM8993_HPOUT1R_ENA@GOTPAGEOFF]
Lloh79:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	mov	w3, #0
	bl	_snd_soc_update_bits
Lloh80:
	adrp	x8, _WM8993_CHARGE_PUMP_1@GOTPAGE
Lloh81:
	ldr	x8, [x8, _WM8993_CHARGE_PUMP_1@GOTPAGEOFF]
Lloh82:
	ldr	w1, [x8]
Lloh83:
	adrp	x8, _WM8993_CP_ENA@GOTPAGE
Lloh84:
	ldr	x8, [x8, _WM8993_CP_ENA@GOTPAGEOFF]
Lloh85:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_snd_soc_update_bits
LBB0_4:
	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	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh75
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8993_ANALOGUE_HP_0,4,2       ; @WM8993_ANALOGUE_HP_0
	.comm	_WM8993_CHARGE_PUMP_1,4,2       ; @WM8993_CHARGE_PUMP_1
	.comm	_WM8993_CP_ENA,4,2              ; @WM8993_CP_ENA
	.comm	_WM8993_POWER_MANAGEMENT_1,4,2  ; @WM8993_POWER_MANAGEMENT_1
	.comm	_WM8993_HPOUT1L_ENA,4,2         ; @WM8993_HPOUT1L_ENA
	.comm	_WM8993_HPOUT1R_ENA,4,2         ; @WM8993_HPOUT1R_ENA
	.comm	_WM8993_HPOUT1L_DLY,4,2         ; @WM8993_HPOUT1L_DLY
	.comm	_WM8993_HPOUT1R_DLY,4,2         ; @WM8993_HPOUT1R_DLY
	.comm	_WM8993_DC_SERVO_0,4,2          ; @WM8993_DC_SERVO_0
	.comm	_WM8993_DCS_ENA_CHAN_0,4,2      ; @WM8993_DCS_ENA_CHAN_0
	.comm	_WM8993_DCS_ENA_CHAN_1,4,2      ; @WM8993_DCS_ENA_CHAN_1
	.comm	_WM8993_DCS_TRIG_STARTUP_1,4,2  ; @WM8993_DCS_TRIG_STARTUP_1
	.comm	_WM8993_DCS_TRIG_STARTUP_0,4,2  ; @WM8993_DCS_TRIG_STARTUP_0
	.comm	_WM8993_HPOUT1R_OUTP,4,2        ; @WM8993_HPOUT1R_OUTP
	.comm	_WM8993_HPOUT1R_RMV_SHORT,4,2   ; @WM8993_HPOUT1R_RMV_SHORT
	.comm	_WM8993_HPOUT1L_OUTP,4,2        ; @WM8993_HPOUT1L_OUTP
	.comm	_WM8993_HPOUT1L_RMV_SHORT,4,2   ; @WM8993_HPOUT1L_RMV_SHORT
	.no_dead_strip	_hp_event
.subsections_via_symbols
