	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftr_get_detect
_ftr_get_detect:                        ## @ftr_get_detect
	.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
	addl	$-128, %esi
	cmpl	$3, %esi
	jae	LBB0_1
## %bb.3:
	movslq	%esi, %rax
	leaq	l_switch.table.ftr_get_detect(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	movl	(%rcx), %edx
	cmpl	$-1, %edx
	je	LBB0_4
## %bb.5:
	leaq	l_switch.table.ftr_get_detect.1(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %ebx
	movq	_PMAC_FTR_READ_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_pmac_call_feature
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	shrl	%eax
	andl	$1, %eax
	xorl	%ecx, %ecx
	cmpl	%ebx, %eax
	sete	%cl
	movl	%ecx, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_headphone_detect_gpio,4,2      ## @headphone_detect_gpio
	.comm	_headphone_detect_gpio_activestate,4,2 ## @headphone_detect_gpio_activestate
	.comm	_linein_detect_gpio,4,2         ## @linein_detect_gpio
	.comm	_linein_detect_gpio_activestate,4,2 ## @linein_detect_gpio_activestate
	.comm	_lineout_detect_gpio,4,2        ## @lineout_detect_gpio
	.comm	_lineout_detect_gpio_activestate,4,2 ## @lineout_detect_gpio_activestate
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PMAC_FTR_READ_GPIO,4,2         ## @PMAC_FTR_READ_GPIO
	.no_dead_strip	_ftr_get_detect
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.ftr_get_detect
l_switch.table.ftr_get_detect:
	.quad	_lineout_detect_gpio
	.quad	_linein_detect_gpio
	.quad	_headphone_detect_gpio

	.p2align	3                               ## @switch.table.ftr_get_detect.1
l_switch.table.ftr_get_detect.1:
	.quad	_lineout_detect_gpio_activestate
	.quad	_linein_detect_gpio_activestate
	.quad	_headphone_detect_gpio_activestate

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftr_get_detect
_ftr_get_detect:                        ; @ftr_get_detect
	.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
	sub	w8, w1, #128
	cmp	w8, #3
	b.hs	LBB0_3
; %bb.1:
	sbfiz	x8, x8, #3, #32
Lloh0:
	adrp	x9, l_switch.table.ftr_get_detect@PAGE
Lloh1:
	add	x9, x9, l_switch.table.ftr_get_detect@PAGEOFF
	ldr	x9, [x9, x8]
	ldr	w2, [x9]
	cmn	w2, #1
	b.eq	LBB0_4
; %bb.2:
Lloh2:
	adrp	x9, l_switch.table.ftr_get_detect.1@PAGE
Lloh3:
	add	x9, x9, l_switch.table.ftr_get_detect.1@PAGEOFF
	ldr	x8, [x9, x8]
	ldr	w19, [x8]
Lloh4:
	adrp	x8, _PMAC_FTR_READ_GPIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PMAC_FTR_READ_GPIO@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, #0
	mov	w3, #0
	bl	_pmac_call_feature
	ubfx	w8, w0, #1, #1
	cmp	w8, w19
	cset	w8, eq
	tst	w0, #0x80000000
	csel	w0, w0, w8, ne
	b	LBB0_6
LBB0_3:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_headphone_detect_gpio,4,2      ; @headphone_detect_gpio
	.comm	_headphone_detect_gpio_activestate,4,2 ; @headphone_detect_gpio_activestate
	.comm	_linein_detect_gpio,4,2         ; @linein_detect_gpio
	.comm	_linein_detect_gpio_activestate,4,2 ; @linein_detect_gpio_activestate
	.comm	_lineout_detect_gpio,4,2        ; @lineout_detect_gpio
	.comm	_lineout_detect_gpio_activestate,4,2 ; @lineout_detect_gpio_activestate
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PMAC_FTR_READ_GPIO,4,2         ; @PMAC_FTR_READ_GPIO
	.no_dead_strip	_ftr_get_detect
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ftr_get_detect
l_switch.table.ftr_get_detect:
	.quad	_lineout_detect_gpio
	.quad	_linein_detect_gpio
	.quad	_headphone_detect_gpio

	.p2align	3                               ; @switch.table.ftr_get_detect.1
l_switch.table.ftr_get_detect.1:
	.quad	_lineout_detect_gpio_activestate
	.quad	_linein_detect_gpio_activestate
	.quad	_headphone_detect_gpio_activestate

.subsections_via_symbols
