	.file	"extr_wm8995.c_hp_event.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hp_event, @function
hp_event:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	edi, DWORD PTR [rdi]
	mov	ebx, edx
	call	snd_soc_dapm_to_component@PLT
	mov	esi, DWORD PTR WM8995_ANALOGUE_HP_1[rip]
	mov	rdi, rax
	mov	rbp, rax
	call	snd_soc_component_read32@PLT
	cmp	ebx, 128
	je	.L2
	cmp	ebx, 129
	jne	.L3
	mov	ecx, DWORD PTR WM8995_CP_ENA[rip]
	mov	edx, DWORD PTR WM8995_CP_ENA_MASK[rip]
	mov	rdi, rbp
	mov	r12d, eax
	mov	esi, DWORD PTR WM8995_CHARGE_PUMP_1[rip]
	call	snd_soc_component_update_bits@PLT
	mov	edi, 5
	call	msleep@PLT
	mov	esi, DWORD PTR WM8995_POWER_MANAGEMENT_1[rip]
	mov	ecx, DWORD PTR WM8995_HPOUT1L_ENA[rip]
	mov	rdi, rbp
	or	ecx, DWORD PTR WM8995_HPOUT1R_ENA[rip]
	mov	edx, DWORD PTR WM8995_HPOUT1L_ENA_MASK[rip]
	or	edx, DWORD PTR WM8995_HPOUT1R_ENA_MASK[rip]
	call	snd_soc_component_update_bits@PLT
	mov	edi, 20
	call	udelay@PLT
	mov	edx, DWORD PTR WM8995_HPOUT1L_DLY[rip]
	or	edx, DWORD PTR WM8995_HPOUT1R_DLY[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR WM8995_ANALOGUE_HP_1[rip]
	or	r12d, edx
	mov	edx, r12d
	call	snd_soc_component_write@PLT
	mov	esi, DWORD PTR WM8995_DC_SERVO_1[rip]
	mov	edx, DWORD PTR WM8995_DCS_ENA_CHAN_0[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR WM8995_DCS_ENA_CHAN_1[rip]
	call	snd_soc_component_write@PLT
	mov	esi, DWORD PTR WM8995_DC_SERVO_2[rip]
	mov	ecx, DWORD PTR WM8995_DCS_TRIG_DAC_WR_0[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR WM8995_DCS_TRIG_STARTUP_0[rip]
	or	ecx, DWORD PTR WM8995_DCS_TRIG_DAC_WR_1[rip]
	or	edx, DWORD PTR WM8995_DCS_TRIG_STARTUP_1[rip]
	call	dc_servo_cmd@PLT
	mov	edx, DWORD PTR WM8995_HPOUT1R_OUTP[rip]
	mov	esi, DWORD PTR WM8995_ANALOGUE_HP_1[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR WM8995_HPOUT1R_RMV_SHORT[rip]
	or	edx, DWORD PTR WM8995_HPOUT1L_OUTP[rip]
	or	edx, DWORD PTR WM8995_HPOUT1L_RMV_SHORT[rip]
	or	edx, r12d
	call	snd_soc_component_write@PLT
.L3:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR WM8995_ANALOGUE_HP_1[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR WM8995_HPOUT1L_OUTP_MASK[rip]
	xor	ecx, ecx
	or	edx, DWORD PTR WM8995_HPOUT1R_OUTP_MASK[rip]
	or	edx, DWORD PTR WM8995_HPOUT1L_RMV_SHORT_MASK[rip]
	or	edx, DWORD PTR WM8995_HPOUT1R_RMV_SHORT_MASK[rip]
	call	snd_soc_component_update_bits@PLT
	mov	esi, DWORD PTR WM8995_ANALOGUE_HP_1[rip]
	xor	ecx, ecx
	mov	rdi, rbp
	mov	edx, DWORD PTR WM8995_HPOUT1L_DLY_MASK[rip]
	or	edx, DWORD PTR WM8995_HPOUT1R_DLY_MASK[rip]
	call	snd_soc_component_update_bits@PLT
	mov	esi, DWORD PTR WM8995_DC_SERVO_1[rip]
	mov	rdi, rbp
	xor	edx, edx
	call	snd_soc_component_write@PLT
	mov	esi, DWORD PTR WM8995_POWER_MANAGEMENT_1[rip]
	mov	rdi, rbp
	xor	ecx, ecx
	mov	edx, DWORD PTR WM8995_HPOUT1L_ENA_MASK[rip]
	or	edx, DWORD PTR WM8995_HPOUT1R_ENA_MASK[rip]
	call	snd_soc_component_update_bits@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	hp_event, .-hp_event
	.comm	WM8995_POWER_MANAGEMENT_1,4,4
	.comm	WM8995_HPOUT1R_RMV_SHORT_MASK,4,4
	.comm	WM8995_HPOUT1R_RMV_SHORT,4,4
	.comm	WM8995_HPOUT1R_OUTP_MASK,4,4
	.comm	WM8995_HPOUT1R_OUTP,4,4
	.comm	WM8995_HPOUT1R_ENA_MASK,4,4
	.comm	WM8995_HPOUT1R_ENA,4,4
	.comm	WM8995_HPOUT1R_DLY_MASK,4,4
	.comm	WM8995_HPOUT1R_DLY,4,4
	.comm	WM8995_HPOUT1L_RMV_SHORT_MASK,4,4
	.comm	WM8995_HPOUT1L_RMV_SHORT,4,4
	.comm	WM8995_HPOUT1L_OUTP_MASK,4,4
	.comm	WM8995_HPOUT1L_OUTP,4,4
	.comm	WM8995_HPOUT1L_ENA_MASK,4,4
	.comm	WM8995_HPOUT1L_ENA,4,4
	.comm	WM8995_HPOUT1L_DLY_MASK,4,4
	.comm	WM8995_HPOUT1L_DLY,4,4
	.comm	WM8995_DC_SERVO_2,4,4
	.comm	WM8995_DC_SERVO_1,4,4
	.comm	WM8995_DCS_TRIG_STARTUP_1,4,4
	.comm	WM8995_DCS_TRIG_STARTUP_0,4,4
	.comm	WM8995_DCS_TRIG_DAC_WR_1,4,4
	.comm	WM8995_DCS_TRIG_DAC_WR_0,4,4
	.comm	WM8995_DCS_ENA_CHAN_1,4,4
	.comm	WM8995_DCS_ENA_CHAN_0,4,4
	.comm	WM8995_CP_ENA_MASK,4,4
	.comm	WM8995_CP_ENA,4,4
	.comm	WM8995_CHARGE_PUMP_1,4,4
	.comm	WM8995_ANALOGUE_HP_1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_wm8995.c_hp_event.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hp_event, %function
hp_event:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r0, [r0]
	mov	r5, r2
	bl	snd_soc_dapm_to_component
	ldr	r6, .L6
	mov	r4, r0
	ldr	r1, [r6]
	bl	snd_soc_component_read32
	cmp	r5, #128
	beq	.L2
	cmp	r5, #129
	bne	.L3
	mov	r7, r0
	ldr	r3, .L6+4
	ldr	r2, .L6+8
	ldr	r1, .L6+12
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	mov	r0, r4
	bl	snd_soc_component_update_bits
	mov	r0, #5
	bl	msleep
	ldr	r0, .L6+16
	ldr	r1, .L6+20
	ldr	r3, .L6+24
	ldr	r2, .L6+28
	ldr	ip, [r0]
	ldr	r3, [r3]
	ldr	r0, [r1]
	ldr	r2, [r2]
	ldr	r1, .L6+32
	orr	r3, ip, r3
	orr	r2, r0, r2
	ldr	r1, [r1]
	mov	r0, r4
	bl	snd_soc_component_update_bits
	mov	r0, #20
	bl	udelay
	ldr	r2, .L6+36
	ldr	r3, .L6+40
	ldr	r0, [r2]
	ldr	r3, [r3]
	ldr	r1, [r6]
	orr	r0, r0, r3
	orr	r7, r0, r7
	mov	r2, r7
	mov	r0, r4
	bl	snd_soc_component_write
	ldr	r2, .L6+44
	ldr	r3, .L6+48
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L6+52
	orr	r2, r1, r2
	mov	r0, r4
	ldr	r1, [r3]
	bl	snd_soc_component_write
	ldr	r0, .L6+56
	ldr	r1, .L6+60
	ldr	r3, .L6+64
	ldr	r2, .L6+68
	ldr	ip, [r0]
	ldr	r3, [r3]
	ldr	r0, [r1]
	ldr	r2, [r2]
	ldr	r1, .L6+72
	orr	r2, r0, r2
	ldr	r1, [r1]
	orr	r3, ip, r3
	mov	r0, r4
	bl	dc_servo_cmd
	ldr	r3, .L6+76
	ldr	r2, .L6+80
	ldr	r1, .L6+84
	ldr	r0, [r3]
	ldr	r2, [r2]
	ldr	r3, .L6+88
	ldr	r1, [r1]
	orr	r2, r2, r0
	ldr	r3, [r3]
	orr	r2, r2, r1
	orr	r2, r2, r3
	mov	r0, r4
	ldr	r1, [r6]
	orr	r2, r2, r7
	bl	snd_soc_component_write
.L3:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L6+92
	ldr	r2, .L6+96
	ldr	r1, .L6+100
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, .L6+104
	ldr	r1, [r1]
	orr	r3, r3, r2
	ldr	r2, [r0]
	orr	r3, r3, r1
	orr	r2, r3, r2
	ldr	r1, [r6]
	mov	r3, #0
	mov	r0, r4
	bl	snd_soc_component_update_bits
	ldr	r2, .L6+108
	ldr	r3, .L6+112
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r6]
	orr	r2, r2, r3
	mov	r0, r4
	mov	r3, #0
	bl	snd_soc_component_update_bits
	ldr	r3, .L6+52
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	snd_soc_component_write
	ldr	r2, .L6+20
	ldr	r3, .L6+28
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L6+32
	orr	r2, r1, r2
	mov	r0, r4
	ldr	r1, [r3]
	mov	r3, #0
	bl	snd_soc_component_update_bits
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	.align	2
.L6:
	.word	WM8995_ANALOGUE_HP_1
	.word	WM8995_CP_ENA
	.word	WM8995_CP_ENA_MASK
	.word	WM8995_CHARGE_PUMP_1
	.word	WM8995_HPOUT1L_ENA
	.word	WM8995_HPOUT1L_ENA_MASK
	.word	WM8995_HPOUT1R_ENA
	.word	WM8995_HPOUT1R_ENA_MASK
	.word	WM8995_POWER_MANAGEMENT_1
	.word	WM8995_HPOUT1L_DLY
	.word	WM8995_HPOUT1R_DLY
	.word	WM8995_DCS_ENA_CHAN_0
	.word	WM8995_DCS_ENA_CHAN_1
	.word	WM8995_DC_SERVO_1
	.word	WM8995_DCS_TRIG_DAC_WR_0
	.word	WM8995_DCS_TRIG_STARTUP_0
	.word	WM8995_DCS_TRIG_DAC_WR_1
	.word	WM8995_DCS_TRIG_STARTUP_1
	.word	WM8995_DC_SERVO_2
	.word	WM8995_HPOUT1R_RMV_SHORT
	.word	WM8995_HPOUT1R_OUTP
	.word	WM8995_HPOUT1L_OUTP
	.word	WM8995_HPOUT1L_RMV_SHORT
	.word	WM8995_HPOUT1L_OUTP_MASK
	.word	WM8995_HPOUT1R_OUTP_MASK
	.word	WM8995_HPOUT1L_RMV_SHORT_MASK
	.word	WM8995_HPOUT1R_RMV_SHORT_MASK
	.word	WM8995_HPOUT1L_DLY_MASK
	.word	WM8995_HPOUT1R_DLY_MASK
	.size	hp_event, .-hp_event
	.comm	WM8995_POWER_MANAGEMENT_1,4,4
	.comm	WM8995_HPOUT1R_RMV_SHORT_MASK,4,4
	.comm	WM8995_HPOUT1R_RMV_SHORT,4,4
	.comm	WM8995_HPOUT1R_OUTP_MASK,4,4
	.comm	WM8995_HPOUT1R_OUTP,4,4
	.comm	WM8995_HPOUT1R_ENA_MASK,4,4
	.comm	WM8995_HPOUT1R_ENA,4,4
	.comm	WM8995_HPOUT1R_DLY_MASK,4,4
	.comm	WM8995_HPOUT1R_DLY,4,4
	.comm	WM8995_HPOUT1L_RMV_SHORT_MASK,4,4
	.comm	WM8995_HPOUT1L_RMV_SHORT,4,4
	.comm	WM8995_HPOUT1L_OUTP_MASK,4,4
	.comm	WM8995_HPOUT1L_OUTP,4,4
	.comm	WM8995_HPOUT1L_ENA_MASK,4,4
	.comm	WM8995_HPOUT1L_ENA,4,4
	.comm	WM8995_HPOUT1L_DLY_MASK,4,4
	.comm	WM8995_HPOUT1L_DLY,4,4
	.comm	WM8995_DC_SERVO_2,4,4
	.comm	WM8995_DC_SERVO_1,4,4
	.comm	WM8995_DCS_TRIG_STARTUP_1,4,4
	.comm	WM8995_DCS_TRIG_STARTUP_0,4,4
	.comm	WM8995_DCS_TRIG_DAC_WR_1,4,4
	.comm	WM8995_DCS_TRIG_DAC_WR_0,4,4
	.comm	WM8995_DCS_ENA_CHAN_1,4,4
	.comm	WM8995_DCS_ENA_CHAN_0,4,4
	.comm	WM8995_CP_ENA_MASK,4,4
	.comm	WM8995_CP_ENA,4,4
	.comm	WM8995_CHARGE_PUMP_1,4,4
	.comm	WM8995_ANALOGUE_HP_1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
