	.file	"extr_nau8540.c_adc_power_control.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	adc_power_control, @function
adc_power_control:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR [rdi]
	call	snd_soc_dapm_to_component@PLT
	mov	rdi, rax
	call	snd_soc_component_get_drvdata@PLT
	mov	edi, ebp
	mov	rbx, rax
	call	SND_SOC_DAPM_EVENT_ON@PLT
	test	rax, rax
	je	.L2
	mov	edi, 300
	call	msleep@PLT
	mov	edx, DWORD PTR NAU8540_I2S_DO12_TRI[rip]
	mov	edi, DWORD PTR [rbx]
	xor	ecx, ecx
	mov	esi, DWORD PTR NAU8540_REG_PCM_CTRL1[rip]
	call	regmap_update_bits@PLT
	mov	edx, DWORD PTR NAU8540_I2S_DO34_TRI[rip]
	mov	edi, DWORD PTR [rbx]
	xor	ecx, ecx
	mov	esi, DWORD PTR NAU8540_REG_PCM_CTRL2[rip]
	call	regmap_update_bits@PLT
.L3:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, ebp
	call	SND_SOC_DAPM_EVENT_OFF@PLT
	test	rax, rax
	je	.L3
	mov	edx, DWORD PTR NAU8540_I2S_DO12_TRI[rip]
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR NAU8540_REG_PCM_CTRL1[rip]
	mov	ecx, edx
	call	regmap_update_bits@PLT
	mov	edx, DWORD PTR NAU8540_I2S_DO34_TRI[rip]
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR NAU8540_REG_PCM_CTRL2[rip]
	mov	ecx, edx
	call	regmap_update_bits@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	adc_power_control, .-adc_power_control
	.comm	NAU8540_REG_PCM_CTRL2,4,4
	.comm	NAU8540_REG_PCM_CTRL1,4,4
	.comm	NAU8540_I2S_DO34_TRI,4,4
	.comm	NAU8540_I2S_DO12_TRI,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_nau8540.c_adc_power_control.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	adc_power_control, %function
adc_power_control:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r0, [r0]
	mov	r4, r2
	bl	snd_soc_dapm_to_component
	bl	snd_soc_component_get_drvdata
	mov	r5, r0
	mov	r0, r4
	bl	SND_SOC_DAPM_EVENT_ON
	cmp	r0, #0
	beq	.L2
	mov	r0, #300
	bl	msleep
	ldr	r3, .L9
	ldr	r2, .L9+4
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r3, #0
	ldr	r0, [r5]
	bl	regmap_update_bits
	ldr	r3, .L9+8
	ldr	r2, .L9+12
	ldr	r1, [r3]
	ldr	r0, [r5]
	mov	r3, #0
	ldr	r2, [r2]
	bl	regmap_update_bits
.L3:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	mov	r0, r4
	bl	SND_SOC_DAPM_EVENT_OFF
	cmp	r0, #0
	beq	.L3
	ldr	r3, .L9+4
	ldr	r2, .L9
	ldr	r3, [r3]
	ldr	r1, [r2]
	ldr	r0, [r5]
	mov	r2, r3
	bl	regmap_update_bits
	ldr	r3, .L9+12
	ldr	r1, .L9+8
	ldr	r3, [r3]
	ldr	r0, [r5]
	mov	r2, r3
	ldr	r1, [r1]
	bl	regmap_update_bits
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	NAU8540_REG_PCM_CTRL1
	.word	NAU8540_I2S_DO12_TRI
	.word	NAU8540_REG_PCM_CTRL2
	.word	NAU8540_I2S_DO34_TRI
	.size	adc_power_control, .-adc_power_control
	.comm	NAU8540_REG_PCM_CTRL2,4,4
	.comm	NAU8540_REG_PCM_CTRL1,4,4
	.comm	NAU8540_I2S_DO34_TRI,4,4
	.comm	NAU8540_I2S_DO12_TRI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
