	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hda_get_autocfg_input_label    ## -- Begin function hda_get_autocfg_input_label
	.p2align	4, 0x90
_hda_get_autocfg_input_label:           ## @hda_get_autocfg_input_label
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rsi), %rax
	movslq	%edx, %rbx
	movl	(%rax,%rbx,8), %esi
	testl	%ebx, %ebx
	jle	LBB0_2
## %bb.1:
	leal	-1(%rdx), %ecx
	cmpl	%esi, (%rax,%rcx,8)
	je	LBB0_4
LBB0_2:
	movl	(%r15), %edi
	decl	%edi
	xorl	%ecx, %ecx
	cmpl	%edx, %edi
	jle	LBB0_6
## %bb.3:
	cmpl	%esi, 8(%rax,%rbx,8)
	jne	LBB0_6
LBB0_4:
	movq	_AUTO_PIN_MIC@GOTPCREL(%rip), %rdi
	movl	$1, %ecx
	cmpl	(%rdi), %esi
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movq	%r15, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_check_mic_location_need
	movl	%eax, %ecx
	andl	$1, %ecx
	movq	8(%r15), %rax
LBB0_6:
	leaq	(%rax,%rbx,8), %rsi
	movl	4(%rax,%rbx,8), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hda_get_input_pin_label        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTO_PIN_MIC,4,2               ## @AUTO_PIN_MIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hda_get_autocfg_input_label    ; -- Begin function hda_get_autocfg_input_label
	.p2align	2
_hda_get_autocfg_input_label:           ; @hda_get_autocfg_input_label
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #8]
	sxtw	x21, w2
	sbfiz	x9, x2, #3, #32
	ldr	w9, [x8, x9]
	subs	w10, w2, #1
	b.lt	LBB0_2
; %bb.1:
	lsl	x10, x10, #3
	ldr	w10, [x8, x10]
	cmp	w10, w9
	b.eq	LBB0_4
LBB0_2:
	ldr	w10, [x20]
	sub	w10, w10, #1
	cmp	w10, w2
	b.le	LBB0_6
; %bb.3:
	add	x10, x8, x21, lsl #3
	ldr	w10, [x10, #8]
	cmp	w10, w9
	b.ne	LBB0_6
LBB0_4:
Lloh0:
	adrp	x10, _AUTO_PIN_MIC@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AUTO_PIN_MIC@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x19
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_check_mic_location_need
	and	w3, w0, #0x1
	ldr	x8, [x20, #8]
	b	LBB0_8
LBB0_6:
	mov	w3, #0
	b	LBB0_8
LBB0_7:
	mov	w3, #1
LBB0_8:
	add	x1, x8, x21, lsl #3
	ldr	w2, [x1, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_hda_get_input_pin_label
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTO_PIN_MIC,4,2               ; @AUTO_PIN_MIC
.subsections_via_symbols
