	.file	"extr_poodle.c_poodle_ext_control.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Headphone Jack"
.LC1:
	.string	"Ext Spk"
	.text
	.p2align 4
	.type	poodle_ext_control, @function
poodle_ext_control:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR POODLE_HP[rip]
	cmp	QWORD PTR poodle_jack_func[rip], rax
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	esi, DWORD PTR POODLE_LOCOMO_GPIO_MUTE_L[rip]
	je	.L8
	xor	edx, edx
	lea	rdi, poodle_locomo_device[rip]
	call	locomo_gpio_write@PLT
	mov	esi, DWORD PTR POODLE_LOCOMO_GPIO_MUTE_R[rip]
	lea	rdi, poodle_locomo_device[rip]
	xor	edx, edx
	call	locomo_gpio_write@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	snd_soc_dapm_disable_pin@PLT
.L3:
	mov	rax, QWORD PTR POODLE_SPK_ON[rip]
	cmp	QWORD PTR poodle_spk_func[rip], rax
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	je	.L9
	call	snd_soc_dapm_disable_pin@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	snd_soc_dapm_sync@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edx, 1
	lea	rdi, poodle_locomo_device[rip]
	call	locomo_gpio_write@PLT
	mov	esi, DWORD PTR POODLE_LOCOMO_GPIO_MUTE_R[rip]
	mov	edx, 1
	lea	rdi, poodle_locomo_device[rip]
	call	locomo_gpio_write@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	snd_soc_dapm_enable_pin@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	call	snd_soc_dapm_enable_pin@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	snd_soc_dapm_sync@PLT
	.cfi_endproc
.LFE0:
	.size	poodle_ext_control, .-poodle_ext_control
	.comm	poodle_spk_func,8,8
	.comm	poodle_locomo_device,4,4
	.comm	poodle_jack_func,8,8
	.comm	POODLE_SPK_ON,8,8
	.comm	POODLE_LOCOMO_GPIO_MUTE_R,4,4
	.comm	POODLE_LOCOMO_GPIO_MUTE_L,4,4
	.comm	POODLE_HP,8,8
	.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_poodle.c_poodle_ext_control.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Headphone Jack\000"
	.align	2
.LC1:
	.ascii	"Ext Spk\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	poodle_ext_control, %function
poodle_ext_control:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L10
	ldr	r3, .L10+4
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L10+8
	cmp	r1, r2
	push	{r4, lr}
	ldr	r1, [r3]
	mov	r4, r0
	beq	.L8
	mov	r2, #0
	ldr	r0, .L10+12
	bl	locomo_gpio_write
	ldr	r3, .L10+16
	mov	r2, #0
	ldr	r1, [r3]
	ldr	r0, .L10+12
	bl	locomo_gpio_write
	mov	r0, r4
	ldr	r1, .L10+20
	bl	snd_soc_dapm_disable_pin
.L3:
	ldr	r2, .L10+24
	ldr	r3, .L10+28
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r0, r4
	cmp	r2, r3
	ldr	r1, .L10+32
	beq	.L9
	bl	snd_soc_dapm_disable_pin
	mov	r0, r4
	pop	{r4, lr}
	b	snd_soc_dapm_sync
.L8:
	mov	r2, #1
	ldr	r0, .L10+12
	bl	locomo_gpio_write
	ldr	r3, .L10+16
	mov	r2, #1
	ldr	r1, [r3]
	ldr	r0, .L10+12
	bl	locomo_gpio_write
	mov	r0, r4
	ldr	r1, .L10+20
	bl	snd_soc_dapm_enable_pin
	b	.L3
.L9:
	bl	snd_soc_dapm_enable_pin
	mov	r0, r4
	pop	{r4, lr}
	b	snd_soc_dapm_sync
.L11:
	.align	2
.L10:
	.word	poodle_jack_func
	.word	POODLE_HP
	.word	POODLE_LOCOMO_GPIO_MUTE_L
	.word	poodle_locomo_device
	.word	POODLE_LOCOMO_GPIO_MUTE_R
	.word	.LC0
	.word	poodle_spk_func
	.word	POODLE_SPK_ON
	.word	.LC1
	.size	poodle_ext_control, .-poodle_ext_control
	.comm	poodle_spk_func,4,4
	.comm	poodle_locomo_device,4,4
	.comm	poodle_jack_func,4,4
	.comm	POODLE_SPK_ON,4,4
	.comm	POODLE_LOCOMO_GPIO_MUTE_R,4,4
	.comm	POODLE_LOCOMO_GPIO_MUTE_L,4,4
	.comm	POODLE_HP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
