	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function poodle_ext_control
_poodle_ext_control:                    ## @poodle_ext_control
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_poodle_jack_func@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_POODLE_HP@GOTPCREL(%rip), %rcx
	movq	_POODLE_LOCOMO_GPIO_MUTE_L@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_poodle_locomo_device@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_locomo_gpio_write
	movq	_POODLE_LOCOMO_GPIO_MUTE_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_locomo_gpio_write
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_snd_soc_dapm_enable_pin
	jmp	LBB0_3
LBB0_2:
	movq	_poodle_locomo_device@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_locomo_gpio_write
	movq	_POODLE_LOCOMO_GPIO_MUTE_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_locomo_gpio_write
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_snd_soc_dapm_disable_pin
LBB0_3:
	movq	_poodle_spk_func@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_POODLE_SPK_ON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_snd_soc_dapm_enable_pin
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_snd_soc_dapm_disable_pin
LBB0_6:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_snd_soc_dapm_sync              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_poodle_jack_func,8,3           ## @poodle_jack_func
	.comm	_POODLE_HP,8,3                  ## @POODLE_HP
	.comm	_poodle_locomo_device,4,2       ## @poodle_locomo_device
	.comm	_POODLE_LOCOMO_GPIO_MUTE_L,4,2  ## @POODLE_LOCOMO_GPIO_MUTE_L
	.comm	_POODLE_LOCOMO_GPIO_MUTE_R,4,2  ## @POODLE_LOCOMO_GPIO_MUTE_R
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Headphone Jack"

	.comm	_poodle_spk_func,8,3            ## @poodle_spk_func
	.comm	_POODLE_SPK_ON,8,3              ## @POODLE_SPK_ON
L_.str.1:                               ## @.str.1
	.asciz	"Ext Spk"

	.no_dead_strip	_poodle_ext_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function poodle_ext_control
_poodle_ext_control:                    ; @poodle_ext_control
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _poodle_jack_func@GOTPAGE
Lloh1:
	ldr	x8, [x8, _poodle_jack_func@GOTPAGEOFF]
Lloh2:
	adrp	x9, _POODLE_HP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _POODLE_HP@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _POODLE_LOCOMO_GPIO_MUTE_L@GOTPAGE
Lloh7:
	ldr	x10, [x10, _POODLE_LOCOMO_GPIO_MUTE_L@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x10]
Lloh9:
	adrp	x20, _poodle_locomo_device@GOTPAGE
Lloh10:
	ldr	x20, [x20, _poodle_locomo_device@GOTPAGEOFF]
	mov	x0, x20
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w2, #1
	bl	_locomo_gpio_write
Lloh11:
	adrp	x8, _POODLE_LOCOMO_GPIO_MUTE_R@GOTPAGE
Lloh12:
	ldr	x8, [x8, _POODLE_LOCOMO_GPIO_MUTE_R@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	bl	_locomo_gpio_write
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_snd_soc_dapm_enable_pin
	b	LBB0_3
LBB0_2:
	mov	w2, #0
	bl	_locomo_gpio_write
Lloh16:
	adrp	x8, _POODLE_LOCOMO_GPIO_MUTE_R@GOTPAGE
Lloh17:
	ldr	x8, [x8, _POODLE_LOCOMO_GPIO_MUTE_R@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_locomo_gpio_write
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_snd_soc_dapm_disable_pin
LBB0_3:
Lloh21:
	adrp	x8, _poodle_spk_func@GOTPAGE
Lloh22:
	ldr	x8, [x8, _poodle_spk_func@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x9, _POODLE_SPK_ON@GOTPAGE
Lloh25:
	ldr	x9, [x9, _POODLE_SPK_ON@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	bl	_snd_soc_dapm_enable_pin
	b	LBB0_6
LBB0_5:
	bl	_snd_soc_dapm_disable_pin
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_snd_soc_dapm_sync
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_poodle_jack_func,8,3           ; @poodle_jack_func
	.comm	_POODLE_HP,8,3                  ; @POODLE_HP
	.comm	_poodle_locomo_device,4,2       ; @poodle_locomo_device
	.comm	_POODLE_LOCOMO_GPIO_MUTE_L,4,2  ; @POODLE_LOCOMO_GPIO_MUTE_L
	.comm	_POODLE_LOCOMO_GPIO_MUTE_R,4,2  ; @POODLE_LOCOMO_GPIO_MUTE_R
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Headphone Jack"

	.comm	_poodle_spk_func,8,3            ; @poodle_spk_func
	.comm	_POODLE_SPK_ON,8,3              ; @POODLE_SPK_ON
l_.str.1:                               ; @.str.1
	.asciz	"Ext Spk"

	.no_dead_strip	_poodle_ext_control
.subsections_via_symbols
