	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_get_conn_index         ## -- Begin function snd_hda_get_conn_index
	.p2align	4, 0x90
_snd_hda_get_conn_index:                ## @snd_hda_get_conn_index
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rdi, %r12
	leaq	-48(%rbp), %rdx
	callq	_snd_hda_get_conn_list
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	movq	-48(%rbp), %rcx
	movl	%eax, %edx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, (%rcx,%rbx,4)
	je	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %rdx
	jne	LBB0_2
LBB0_4:
	movl	$-1, %ebx
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.5:
	cmpl	$11, %r15d
	jl	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_snd_printd
	jmp	LBB0_14
LBB0_7:
	testl	%eax, %eax
	jle	LBB0_14
## %bb.8:
	incl	%r15d
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movl	%eax, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r13
	cmpq	%r13, %r15
	je	LBB0_14
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax
	movl	(%rax,%r13,4), %esi
	movq	%r12, %rdi
	callq	_get_wcaps
	movl	%eax, %edi
	callq	_get_wcaps_type
	movq	_AC_WID_PIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_AC_WID_AUD_OUT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %rax
	movl	(%rax,%r13,4), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_snd_hda_get_conn_index
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	movl	%r13d, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hda_codec: too deep connection for 0x%x\n"

	.comm	_AC_WID_PIN,4,2                 ## @AC_WID_PIN
	.comm	_AC_WID_AUD_OUT,4,2             ## @AC_WID_AUD_OUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_get_conn_index         ; -- Begin function snd_hda_get_conn_index
	.p2align	2
_snd_hda_get_conn_index:                ; @snd_hda_get_conn_index
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x19, x2
	mov	x20, x0
	add	x2, sp, #8
	bl	_snd_hda_get_conn_list
	mov	x8, x0
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x0, #0
	ldr	x9, [sp, #8]
	mov	w10, w8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9, x0, lsl #2]
	cmp	w11, w19
	b.eq	LBB0_14
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x0, #1
	cmp	x10, x0
	b.ne	LBB0_2
LBB0_4:
	cbz	w21, LBB0_13
; %bb.5:
	cmp	w21, #11
	b.lt	LBB0_7
; %bb.6:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_snd_printd
	b	LBB0_13
LBB0_7:
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.8:
	mov	x22, #0
	add	w21, w21, #1
Lloh2:
	adrp	x23, _AC_WID_PIN@GOTPAGE
Lloh3:
	ldr	x23, [x23, _AC_WID_PIN@GOTPAGEOFF]
Lloh4:
	adrp	x24, _AC_WID_AUD_OUT@GOTPAGE
Lloh5:
	ldr	x24, [x24, _AC_WID_AUD_OUT@GOTPAGEOFF]
	mov	w25, w8
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #1
	cmp	x25, x22
	b.eq	LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldr	w1, [x8, x22, lsl #2]
	mov	x0, x20
	bl	_get_wcaps
	bl	_get_wcaps_type
	ldr	w8, [x23]
	ldr	w9, [x24]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp, #8]
	ldr	w1, [x8, x22, lsl #2]
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	bl	_snd_hda_get_conn_index
	tbnz	w0, #31, LBB0_9
; %bb.12:
	mov	x0, x22
	b	LBB0_14
LBB0_13:
	mov	w0, #-1
LBB0_14:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hda_codec: too deep connection for 0x%x\n"

	.comm	_AC_WID_PIN,4,2                 ; @AC_WID_PIN
	.comm	_AC_WID_AUD_OUT,4,2             ; @AC_WID_AUD_OUT
.subsections_via_symbols
