	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function corgi_ext_control
_corgi_ext_control:                     ## @corgi_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_corgi_jack_func@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movq	_CORGI_GPIO_MUTE_L@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_gpio_set_value
	movq	_CORGI_GPIO_MUTE_R@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_gpio_set_value
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_snd_soc_dapm_enable_pin
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_snd_soc_dapm_disable_pin
	jmp	LBB0_4
LBB0_6:
	movq	_CORGI_GPIO_MUTE_L@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_gpio_set_value
	movq	_CORGI_GPIO_MUTE_R@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_gpio_set_value
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_snd_soc_dapm_disable_pin
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_snd_soc_dapm_enable_pin
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_snd_soc_dapm_disable_pin
	jmp	LBB0_5
LBB0_2:
	movq	_CORGI_GPIO_MUTE_L@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_gpio_set_value
	movq	_CORGI_GPIO_MUTE_R@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_gpio_set_value
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_snd_soc_dapm_disable_pin
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_snd_soc_dapm_disable_pin
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_snd_soc_dapm_enable_pin
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_snd_soc_dapm_disable_pin
	jmp	LBB0_8
LBB0_7:
	movq	_CORGI_GPIO_MUTE_L@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_gpio_set_value
	movq	_CORGI_GPIO_MUTE_R@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_gpio_set_value
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_snd_soc_dapm_enable_pin
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_snd_soc_dapm_disable_pin
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_snd_soc_dapm_disable_pin
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_snd_soc_dapm_enable_pin
LBB0_8:
	movq	_corgi_spk_func@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CORGI_SPK_ON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_snd_soc_dapm_enable_pin
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_snd_soc_dapm_disable_pin
LBB0_11:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_snd_soc_dapm_sync              ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_corgi_jack_func,4,2            ## @corgi_jack_func
	.comm	_CORGI_GPIO_MUTE_L,4,2          ## @CORGI_GPIO_MUTE_L
	.comm	_CORGI_GPIO_MUTE_R,4,2          ## @CORGI_GPIO_MUTE_R
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mic Jack"

L_.str.1:                               ## @.str.1
	.asciz	"Line Jack"

L_.str.2:                               ## @.str.2
	.asciz	"Headphone Jack"

L_.str.3:                               ## @.str.3
	.asciz	"Headset Jack"

	.comm	_corgi_spk_func,8,3             ## @corgi_spk_func
	.comm	_CORGI_SPK_ON,8,3               ## @CORGI_SPK_ON
L_.str.4:                               ## @.str.4
	.asciz	"Ext Spk"

	.no_dead_strip	_corgi_ext_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function corgi_ext_control
_corgi_ext_control:                     ; @corgi_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, _corgi_jack_func@GOTPAGE
Lloh1:
	ldr	x8, [x8, _corgi_jack_func@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.1:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh5:
	adrp	x8, _CORGI_GPIO_MUTE_L@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CORGI_GPIO_MUTE_L@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_gpio_set_value
Lloh8:
	adrp	x8, _CORGI_GPIO_MUTE_R@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CORGI_GPIO_MUTE_R@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_gpio_set_value
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_snd_soc_dapm_enable_pin
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_snd_soc_dapm_disable_pin
	b	LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _CORGI_GPIO_MUTE_L@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CORGI_GPIO_MUTE_L@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_gpio_set_value
Lloh18:
	adrp	x8, _CORGI_GPIO_MUTE_R@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CORGI_GPIO_MUTE_R@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_gpio_set_value
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_snd_soc_dapm_disable_pin
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_snd_soc_dapm_enable_pin
LBB0_4:
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_snd_soc_dapm_disable_pin
	b	LBB0_6
LBB0_5:
Lloh27:
	adrp	x8, _CORGI_GPIO_MUTE_L@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CORGI_GPIO_MUTE_L@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_gpio_set_value
Lloh30:
	adrp	x8, _CORGI_GPIO_MUTE_R@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CORGI_GPIO_MUTE_R@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_gpio_set_value
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_snd_soc_dapm_disable_pin
Lloh35:
	adrp	x1, l_.str.1@PAGE
Lloh36:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_snd_soc_dapm_disable_pin
Lloh37:
	adrp	x1, l_.str.2@PAGE
Lloh38:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_snd_soc_dapm_enable_pin
LBB0_6:
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_snd_soc_dapm_disable_pin
	b	LBB0_8
LBB0_7:
Lloh41:
	adrp	x8, _CORGI_GPIO_MUTE_L@GOTPAGE
Lloh42:
	ldr	x8, [x8, _CORGI_GPIO_MUTE_L@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_gpio_set_value
Lloh44:
	adrp	x8, _CORGI_GPIO_MUTE_R@GOTPAGE
Lloh45:
	ldr	x8, [x8, _CORGI_GPIO_MUTE_R@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_gpio_set_value
Lloh47:
	adrp	x1, l_.str@PAGE
Lloh48:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_snd_soc_dapm_enable_pin
Lloh49:
	adrp	x1, l_.str.1@PAGE
Lloh50:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_snd_soc_dapm_disable_pin
Lloh51:
	adrp	x1, l_.str.2@PAGE
Lloh52:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_snd_soc_dapm_disable_pin
Lloh53:
	adrp	x1, l_.str.3@PAGE
Lloh54:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_snd_soc_dapm_enable_pin
LBB0_8:
Lloh55:
	adrp	x8, _corgi_spk_func@GOTPAGE
Lloh56:
	ldr	x8, [x8, _corgi_spk_func@GOTPAGEOFF]
Lloh57:
	ldr	x8, [x8]
Lloh58:
	adrp	x9, _CORGI_SPK_ON@GOTPAGE
Lloh59:
	ldr	x9, [x9, _CORGI_SPK_ON@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
Lloh61:
	adrp	x1, l_.str.4@PAGE
Lloh62:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	bl	_snd_soc_dapm_enable_pin
	b	LBB0_11
LBB0_10:
	bl	_snd_soc_dapm_disable_pin
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_corgi_jack_func,4,2            ; @corgi_jack_func
	.comm	_CORGI_GPIO_MUTE_L,4,2          ; @CORGI_GPIO_MUTE_L
	.comm	_CORGI_GPIO_MUTE_R,4,2          ; @CORGI_GPIO_MUTE_R
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mic Jack"

l_.str.1:                               ; @.str.1
	.asciz	"Line Jack"

l_.str.2:                               ; @.str.2
	.asciz	"Headphone Jack"

l_.str.3:                               ; @.str.3
	.asciz	"Headset Jack"

	.comm	_corgi_spk_func,8,3             ; @corgi_spk_func
	.comm	_CORGI_SPK_ON,8,3               ; @CORGI_SPK_ON
l_.str.4:                               ; @.str.4
	.asciz	"Ext Spk"

	.no_dead_strip	_corgi_ext_control
.subsections_via_symbols
