	.file	"extr_adau1761.c_adau1761_setup_headphone_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	adau1761_setup_headphone_mode, @function
adau1761_setup_headphone_mode:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	snd_soc_component_get_dapm@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	snd_soc_component_get_drvdata@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR [rax]
	cmp	eax, 129
	je	.L3
	cmp	eax, 130
	je	.L2
	cmp	eax, 128
	je	.L5
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	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	edx, DWORD PTR ADAU1761_PLAY_HP_RIGHT_VOL_MODE_HP[rip]
	mov	esi, DWORD PTR ADAU1761_PLAY_HP_RIGHT_VOL[rip]
	mov	edi, DWORD PTR [rbx]
	mov	ecx, edx
	call	regmap_update_bits@PLT
.L5:
	mov	edi, DWORD PTR adau1761_mono_controls[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR adau1761_mono_controls[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	snd_soc_add_component_controls@PLT
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR adau1761_mono_dapm_widgets[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR adau1761_mono_dapm_widgets[rip]
	mov	rdi, r12
	mov	edx, eax
	call	snd_soc_dapm_new_controls@PLT
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR adau1761_mono_dapm_routes[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR adau1761_mono_dapm_routes[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	edx, eax
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	snd_soc_dapm_add_routes@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edx, DWORD PTR ADAU1761_PLAY_MONO_OUTPUT_VOL_MODE_HP[rip]
	mov	esi, DWORD PTR ADAU1761_PLAY_MONO_OUTPUT_VOL[rip]
	or	edx, DWORD PTR ADAU1761_PLAY_MONO_OUTPUT_VOL_UNMUTE[rip]
	mov	edi, DWORD PTR [rbx]
	mov	ecx, edx
	call	regmap_update_bits@PLT
	mov	edx, DWORD PTR ADAU1761_PLAY_HP_RIGHT_VOL_MODE_HP[rip]
	mov	esi, DWORD PTR ADAU1761_PLAY_HP_RIGHT_VOL[rip]
	mov	edi, DWORD PTR [rbx]
	mov	ecx, edx
	call	regmap_update_bits@PLT
	mov	edi, DWORD PTR adau1761_capless_dapm_widgets[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR adau1761_capless_dapm_widgets[rip]
	mov	rdi, r12
	mov	edx, eax
	call	snd_soc_dapm_new_controls@PLT
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR adau1761_capless_dapm_routes[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR adau1761_capless_dapm_routes[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	edx, eax
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	snd_soc_dapm_add_routes@PLT
	.cfi_endproc
.LFE0:
	.size	adau1761_setup_headphone_mode, .-adau1761_setup_headphone_mode
	.comm	adau1761_mono_dapm_widgets,4,4
	.comm	adau1761_mono_dapm_routes,4,4
	.comm	adau1761_mono_controls,4,4
	.comm	adau1761_capless_dapm_widgets,4,4
	.comm	adau1761_capless_dapm_routes,4,4
	.comm	EINVAL,4,4
	.comm	ADAU1761_PLAY_MONO_OUTPUT_VOL_UNMUTE,4,4
	.comm	ADAU1761_PLAY_MONO_OUTPUT_VOL_MODE_HP,4,4
	.comm	ADAU1761_PLAY_MONO_OUTPUT_VOL,4,4
	.comm	ADAU1761_PLAY_HP_RIGHT_VOL_MODE_HP,4,4
	.comm	ADAU1761_PLAY_HP_RIGHT_VOL,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_adau1761.c_adau1761_setup_headphone_mode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	adau1761_setup_headphone_mode, %function
adau1761_setup_headphone_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	snd_soc_component_get_dapm
	mov	r5, r0
	mov	r0, r4
	bl	snd_soc_component_get_drvdata
	ldr	r3, [r4]
	mov	r6, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [r3]
	cmp	r3, #129
	beq	.L3
	cmp	r3, #130
	beq	.L2
	cmp	r3, #128
	beq	.L5
	ldr	r3, .L17
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L17+4
	ldr	r1, .L17+8
	ldr	r3, [r3]
	ldr	r0, [r6]
	mov	r2, r3
	ldr	r1, [r1]
	bl	regmap_update_bits
.L5:
	ldr	r3, .L17+12
	ldr	r6, [r3]
	mov	r0, r6
	bl	ARRAY_SIZE
	mov	r1, r6
	mov	r2, r0
	mov	r0, r4
	bl	snd_soc_add_component_controls
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, .L17+16
	ldr	r4, [r3]
	mov	r0, r4
	bl	ARRAY_SIZE
	mov	r1, r4
	mov	r2, r0
	mov	r0, r5
	bl	snd_soc_dapm_new_controls
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, .L17+20
	b	.L15
.L3:
	ldr	r3, .L17+24
	ldr	r2, .L17+28
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L17+32
	orr	r3, r3, r2
	mov	r2, r3
	ldr	r1, [r1]
	ldr	r0, [r0]
	bl	regmap_update_bits
	ldr	r3, .L17+4
	ldr	r1, .L17+8
	ldr	r3, [r3]
	ldr	r1, [r1]
	mov	r2, r3
	ldr	r0, [r6]
	bl	regmap_update_bits
	ldr	r3, .L17+36
	ldr	r4, [r3]
	mov	r0, r4
	bl	ARRAY_SIZE
	mov	r1, r4
	mov	r2, r0
	mov	r0, r5
	bl	snd_soc_dapm_new_controls
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, .L17+40
.L15:
	ldr	r4, [r3]
	mov	r0, r4
	bl	ARRAY_SIZE
	mov	r1, r4
	mov	r2, r0
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	snd_soc_dapm_add_routes
.L18:
	.align	2
.L17:
	.word	EINVAL
	.word	ADAU1761_PLAY_HP_RIGHT_VOL_MODE_HP
	.word	ADAU1761_PLAY_HP_RIGHT_VOL
	.word	adau1761_mono_controls
	.word	adau1761_mono_dapm_widgets
	.word	adau1761_mono_dapm_routes
	.word	ADAU1761_PLAY_MONO_OUTPUT_VOL_MODE_HP
	.word	ADAU1761_PLAY_MONO_OUTPUT_VOL_UNMUTE
	.word	ADAU1761_PLAY_MONO_OUTPUT_VOL
	.word	adau1761_capless_dapm_widgets
	.word	adau1761_capless_dapm_routes
	.size	adau1761_setup_headphone_mode, .-adau1761_setup_headphone_mode
	.comm	adau1761_mono_dapm_widgets,4,4
	.comm	adau1761_mono_dapm_routes,4,4
	.comm	adau1761_mono_controls,4,4
	.comm	adau1761_capless_dapm_widgets,4,4
	.comm	adau1761_capless_dapm_routes,4,4
	.comm	EINVAL,4,4
	.comm	ADAU1761_PLAY_MONO_OUTPUT_VOL_UNMUTE,4,4
	.comm	ADAU1761_PLAY_MONO_OUTPUT_VOL_MODE_HP,4,4
	.comm	ADAU1761_PLAY_MONO_OUTPUT_VOL,4,4
	.comm	ADAU1761_PLAY_HP_RIGHT_VOL_MODE_HP,4,4
	.comm	ADAU1761_PLAY_HP_RIGHT_VOL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
