	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function magician_ext_control
_magician_ext_control:                  ## @magician_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	_magician_spk_switch@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_snd_soc_dapm_enable_pin
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_snd_soc_dapm_disable_pin
LBB0_3:
	movq	_magician_hp_switch@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	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	_magician_in_sel@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$129, %eax
	je	LBB0_7
## %bb.8:
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.9:
	leaq	L_.str.2(%rip), %r14
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str.3(%rip), %r14
	leaq	L_.str.2(%rip), %rsi
LBB0_10:
	movq	%rbx, %rdi
	callq	_snd_soc_dapm_disable_pin
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_snd_soc_dapm_enable_pin
LBB0_11:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_snd_soc_dapm_sync              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_magician_spk_switch,8,3        ## @magician_spk_switch
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Speaker"

	.comm	_magician_hp_switch,8,3         ## @magician_hp_switch
L_.str.1:                               ## @.str.1
	.asciz	"Headphone Jack"

	.comm	_magician_in_sel,4,2            ## @magician_in_sel
L_.str.2:                               ## @.str.2
	.asciz	"Headset Mic"

L_.str.3:                               ## @.str.3
	.asciz	"Call Mic"

	.no_dead_strip	_magician_ext_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function magician_ext_control
_magician_ext_control:                  ; @magician_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, _magician_spk_switch@GOTPAGE
Lloh1:
	ldr	x8, [x8, _magician_spk_switch@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_snd_soc_dapm_enable_pin
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_snd_soc_dapm_disable_pin
LBB0_3:
Lloh7:
	adrp	x8, _magician_hp_switch@GOTPAGE
Lloh8:
	ldr	x8, [x8, _magician_hp_switch@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_snd_soc_dapm_enable_pin
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_snd_soc_dapm_disable_pin
LBB0_6:
Lloh14:
	adrp	x8, _magician_in_sel@GOTPAGE
Lloh15:
	ldr	x8, [x8, _magician_in_sel@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.7:
	cmp	w8, #128
	b.ne	LBB0_11
; %bb.8:
Lloh17:
	adrp	x20, l_.str.2@PAGE
Lloh18:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh21:
	adrp	x20, l_.str.3@PAGE
Lloh22:
	add	x20, x20, l_.str.3@PAGEOFF
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_snd_soc_dapm_disable_pin
	mov	x0, x19
	mov	x1, x20
	bl	_snd_soc_dapm_enable_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	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_magician_spk_switch,8,3        ; @magician_spk_switch
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Speaker"

	.comm	_magician_hp_switch,8,3         ; @magician_hp_switch
l_.str.1:                               ; @.str.1
	.asciz	"Headphone Jack"

	.comm	_magician_in_sel,4,2            ; @magician_in_sel
l_.str.2:                               ; @.str.2
	.asciz	"Headset Mic"

l_.str.3:                               ; @.str.3
	.asciz	"Call Mic"

	.no_dead_strip	_magician_ext_control
.subsections_via_symbols
