	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aureon_set_headphone_amp
_aureon_set_headphone_amp:              ## @aureon_set_headphone_amp
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_snd_ice1712_gpio_read
	movq	(%r14), %rcx
	movq	_VT1724_SUBDEVICE_PRODIGY71LT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	sete	%dl
	movq	_VT1724_SUBDEVICE_PRODIGY71XT@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	sete	%cl
	orb	%dl, %cl
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	testb	%cl, %cl
	je	LBB0_2
## %bb.4:
	movq	_PRODIGY_HP_SEL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_5:
	testb	%cl, %cl
	je	LBB0_6
## %bb.7:
	movq	_PRODIGY_HP_SEL@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_2:
	movq	_AUREON_HP_SEL@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %esi
	orl	%eax, %esi
	jmp	LBB0_9
LBB0_6:
	movq	_AUREON_HP_SEL@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
LBB0_9:
	xorl	%ecx, %ecx
	cmpl	%eax, %esi
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_snd_ice1712_gpio_write
	movl	$1, %ecx
LBB0_11:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VT1724_SUBDEVICE_PRODIGY71LT,8,3 ## @VT1724_SUBDEVICE_PRODIGY71LT
	.comm	_VT1724_SUBDEVICE_PRODIGY71XT,8,3 ## @VT1724_SUBDEVICE_PRODIGY71XT
	.comm	_AUREON_HP_SEL,4,2              ## @AUREON_HP_SEL
	.comm	_PRODIGY_HP_SEL,4,2             ## @PRODIGY_HP_SEL
	.no_dead_strip	_aureon_set_headphone_amp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aureon_set_headphone_amp
_aureon_set_headphone_amp:              ; @aureon_set_headphone_amp
	.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	x20, x1
	mov	x19, x0
	bl	_snd_ice1712_gpio_read
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _VT1724_SUBDEVICE_PRODIGY71LT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VT1724_SUBDEVICE_PRODIGY71LT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _VT1724_SUBDEVICE_PRODIGY71XT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VT1724_SUBDEVICE_PRODIGY71XT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w8, eq
	cbz	w20, LBB0_3
; %bb.1:
	tbz	w8, #0, LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _PRODIGY_HP_SEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PRODIGY_HP_SEL@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	tbz	w8, #0, LBB0_8
; %bb.4:
Lloh8:
	adrp	x8, _PRODIGY_HP_SEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PRODIGY_HP_SEL@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh10:
	adrp	x8, _AUREON_HP_SEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AUREON_HP_SEL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	orr	w1, w8, w0
	cmp	w1, w0
	b.ne	LBB0_10
LBB0_7:
	mov	w0, #0
	b	LBB0_11
LBB0_8:
Lloh12:
	adrp	x8, _AUREON_HP_SEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AUREON_HP_SEL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	bic	w1, w0, w8
	cmp	w1, w0
	b.eq	LBB0_7
LBB0_10:
	mov	x0, x19
	bl	_snd_ice1712_gpio_write
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_VT1724_SUBDEVICE_PRODIGY71LT,8,3 ; @VT1724_SUBDEVICE_PRODIGY71LT
	.comm	_VT1724_SUBDEVICE_PRODIGY71XT,8,3 ; @VT1724_SUBDEVICE_PRODIGY71XT
	.comm	_AUREON_HP_SEL,4,2              ; @AUREON_HP_SEL
	.comm	_PRODIGY_HP_SEL,4,2             ; @PRODIGY_HP_SEL
	.no_dead_strip	_aureon_set_headphone_amp
.subsections_via_symbols
