	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_get_pin_label          ## -- Begin function snd_hda_get_pin_label
	.p2align	4, 0x90
_snd_hda_get_pin_label:                 ## @snd_hda_get_pin_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	callq	_snd_hda_codec_get_pincfg
	movl	%eax, %ebx
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movl	$0, (%r14)
LBB0_2:
	movl	%ebx, %edi
	callq	_get_defcfg_connect
	movq	_AC_JACK_PORT_NONE@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	je	LBB0_27
## %bb.3:
	movl	%ebx, %edi
	callq	_get_defcfg_device
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_17
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movl	%r15d, %r12d
	jmpq	*%rax
LBB0_9:
	movl	%ebx, %edi
	callq	_is_hdmi_cfg
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %r15
	cmoveq	%rax, %r15
	testq	%r13, %r13
	je	LBB0_26
## %bb.10:
	testq	%r14, %r14
	je	LBB0_26
## %bb.11:
	cmpl	$0, (%r13)
	jle	LBB0_26
## %bb.12:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_26
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	cmpl	%r12d, %esi
	je	LBB0_26
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_snd_hda_codec_get_pincfg
	movl	%eax, %edi
	callq	_is_hdmi_cfg
	cmpl	%eax, -68(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	incl	(%r14)
	jmp	LBB0_16
LBB0_17:
	testq	%r13, %r13
	movl	%r15d, %r14d
	je	LBB0_25
## %bb.18:
	movl	4(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_25
## %bb.19:
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_25
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rcx
	cmpl	%r14d, (%rcx,%rbx,4)
	jne	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_hda_get_autocfg_input_label
	testq	%rax, %rax
	jne	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	4(%r13), %eax
	jmp	LBB0_24
LBB0_7:
	movq	%r14, (%rsp)
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_6
LBB0_5:
	movq	%r14, (%rsp)
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_6
LBB0_8:
	movq	%r14, (%rsp)
	leaq	L_.str.2(%rip), %rcx
LBB0_6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movq	%r13, %rdx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_fill_audio_out_name
	jmp	LBB0_28
LBB0_25:
	movl	%r14d, %edx
	xorl	%r12d, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	$1, %ecx
	callq	_hda_get_input_pin_label
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_27
LBB0_26:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_strlcpy
	movl	$1, %r12d
LBB0_27:
	movl	%r12d, %eax
LBB0_28:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	%rax, %r15
	jmp	LBB0_26
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_AC_JACK_PORT_NONE,8,3          ## @AC_JACK_PORT_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Line Out"

L_.str.1:                               ## @.str.1
	.asciz	"Speaker"

L_.str.2:                               ## @.str.2
	.asciz	"Headphone"

L_.str.3:                               ## @.str.3
	.asciz	"HDMI"

L_.str.4:                               ## @.str.4
	.asciz	"SPDIF"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_get_pin_label          ; -- Begin function snd_hda_get_pin_label
	.p2align	2
_snd_hda_get_pin_label:                 ; @snd_hda_get_pin_label
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x5
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	bl	_snd_hda_codec_get_pincfg
	mov	x25, x0
	cbz	x24, LBB0_2
; %bb.1:
	str	wzr, [x24]
LBB0_2:
	mov	x0, x25
	bl	_get_defcfg_connect
Lloh0:
	adrp	x8, _AC_JACK_PORT_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC_JACK_PORT_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_27
LBB0_4:
	mov	x0, x25
	bl	_get_defcfg_device
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_14
; %bb.5:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	mov	x0, x25
	bl	_is_hdmi_cfg
Lloh5:
	adrp	x8, l_.str.3@PAGE
Lloh6:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh7:
	adrp	x9, l_.str.4@PAGE
Lloh8:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	w0, #0
	csel	x25, x9, x8, eq
	cbz	x22, LBB0_26
; %bb.7:
	cbz	x24, LBB0_26
; %bb.8:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.9:
	mov	x26, x0
	mov	x27, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x22]
	cmp	x27, x8
	b.ge	LBB0_26
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #16]
	ldr	w1, [x8, x27, lsl #2]
	cmp	w1, w21
	b.eq	LBB0_26
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x23
	bl	_snd_hda_codec_get_pincfg
	bl	_is_hdmi_cfg
	cmp	w26, w0
	b.ne	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
	b	LBB0_10
LBB0_14:
	cbz	x22, LBB0_25
; %bb.15:
	ldr	w8, [x22, #4]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.16:
	mov	x24, #0
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x24, x24, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_25
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, #8]
	ldr	w9, [x9, x24, lsl #2]
	cmp	w9, w21
	b.ne	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	bl	_hda_get_autocfg_input_label
	cbnz	x0, LBB0_28
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w8, [x22, #4]
	b	LBB0_17
LBB0_21:
Lloh9:
	adrp	x3, l_.str.1@PAGE
Lloh10:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_24
LBB0_22:
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_24
LBB0_23:
Lloh13:
	adrp	x3, l_.str.2@PAGE
Lloh14:
	add	x3, x3, l_.str.2@PAGEOFF
LBB0_24:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	mov	x4, x20
	mov	x5, x19
	mov	x6, x24
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_fill_audio_out_name
LBB0_25:
	mov	x0, x23
	mov	x1, #0
	mov	x2, x21
	mov	w3, #1
	bl	_hda_get_input_pin_label
	mov	x25, x0
	cbz	x0, LBB0_27
LBB0_26:
	mov	x0, x20
	mov	x1, x25
	mov	x2, x19
	bl	_strlcpy
	mov	w0, #1
LBB0_27:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_28:
	mov	x25, x0
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_21-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_22-LBB0_6)>>2
	.byte	(LBB0_23-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
                                        ; -- End function
	.comm	_AC_JACK_PORT_NONE,8,3          ; @AC_JACK_PORT_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Line Out"

l_.str.1:                               ; @.str.1
	.asciz	"Speaker"

l_.str.2:                               ; @.str.2
	.asciz	"Headphone"

l_.str.3:                               ; @.str.3
	.asciz	"HDMI"

l_.str.4:                               ; @.str.4
	.asciz	"SPDIF"

.subsections_via_symbols
