	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_digital
_parse_digital:                         ## @parse_digital
	.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	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rbx
	cmpl	$0, 16(%rbx)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_11
## %bb.1:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	16(%rbx), %rax
	cmpq	%rax, %r14
	jge	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%rbx), %rax
	movq	(%rax,%r14,8), %r13
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_look_for_dac
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_snd_hda_add_new_path
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_print_nid_path
	movl	$1, (%rbx)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_snd_hda_get_path_idx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	80(%rbx), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	_PIN_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	callq	_set_pin_target
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%rbx), %rdi
	movq	%rdi, 56(%rbx)
	callq	_ARRAY_SIZE
	decl	%eax
	cmpl	%eax, %r15d
	jge	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%rbx), %rax
	movslq	%r15d, %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, -8(%rax,%rcx,8)
	jmp	LBB0_9
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 64(%rbx)
	movq	32(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	jmp	LBB0_10
LBB0_11:
	movq	24(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_18
## %bb.12:
	cmpl	$0, (%r15)
	jle	LBB0_18
## %bb.13:
	movq	8(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%r14
	cmpl	(%r15), %r14d
	jge	LBB0_18
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_get_wcaps
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_get_wcaps_type
	movq	_AC_WID_AUD_IN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_AC_WCAP_DIGITAL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_snd_hda_add_new_path
	testq	%rax, %rax
	je	LBB0_17
## %bb.19:
	movq	%rax, %r12
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_print_nid_path
	movl	$1, (%r12)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r13, 8(%rbx)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_snd_hda_get_path_idx
	movq	%rax, (%rbx)
	movq	_PIN_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_pin_target                 ## TAILCALL
LBB0_18:
	addq	$40, %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	"digout"

	.comm	_PIN_OUT,4,2                    ## @PIN_OUT
	.comm	_AC_WID_AUD_IN,8,3              ## @AC_WID_AUD_IN
	.comm	_AC_WCAP_DIGITAL,4,2            ## @AC_WCAP_DIGITAL
L_.str.1:                               ## @.str.1
	.asciz	"digin"

	.comm	_PIN_IN,4,2                     ## @PIN_IN
	.no_dead_strip	_parse_digital
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_digital
_parse_digital:                         ; @parse_digital
	.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	x19, x0
	ldr	x24, [x0, #16]
	ldr	w8, [x24, #16]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x25, #0
	mov	w26, #0
	mov	w27, #1
Lloh0:
	adrp	x28, _PIN_OUT@GOTPAGE
Lloh1:
	ldr	x28, [x28, _PIN_OUT@GOTPAGEOFF]
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x21, [x24, #64]
	ldr	x8, [x24, #32]
	ldr	w8, [x8]
	str	w8, [x24, #72]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w26, w26, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x24, #16]
	cmp	x25, x8
	b.ge	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #40]
	ldr	x22, [x8, x25, lsl #3]
	mov	x0, x19
	mov	x1, x22
	mov	w2, #1
	bl	_look_for_dac
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	w3, #0
	bl	_snd_hda_add_new_path
	cbz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, x0
	mov	x0, x20
	mov	x1, x23
	bl	_print_nid_path
	str	w27, [x23]
	mov	x0, x19
	mov	x1, x23
	bl	_snd_hda_get_path_idx
	ldr	x8, [x24, #80]
	str	x0, [x8, x25, lsl #3]
	ldr	w2, [x28]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	bl	_set_pin_target
	cbz	w26, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x24, #48]
	str	x0, [x24, #56]
	bl	_ARRAY_SIZE
	sub	w8, w0, #1
	cmp	w26, w8
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24, #48]
	sub	w9, w26, #1
	str	x21, [x8, w9, sxtw #3]
	b	LBB0_3
LBB0_10:
	ldr	x20, [x24, #24]
	cbz	x20, LBB0_18
; %bb.11:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.12:
	mov	x23, #0
	ldr	x25, [x19, #8]
Lloh4:
	adrp	x26, _AC_WID_AUD_IN@GOTPAGE
Lloh5:
	ldr	x26, [x26, _AC_WID_AUD_IN@GOTPAGEOFF]
Lloh6:
	adrp	x27, _AC_WCAP_DIGITAL@GOTPAGE
Lloh7:
	ldr	x27, [x27, _AC_WCAP_DIGITAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x19]
	add	x23, x23, #1
	cmp	w23, w8
	b.ge	LBB0_18
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x21, x25, x23
	mov	x0, x19
	mov	x1, x21
	bl	_get_wcaps
	mov	x22, x0
	bl	_get_wcaps_type
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x27]
	tst	w8, w22
	b.eq	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w3, #0
	bl	_snd_hda_add_new_path
	cbz	x0, LBB0_13
; %bb.17:
	mov	x21, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_print_nid_path
	mov	w8, #1
	str	w8, [x21]
	add	x8, x25, x23
	str	x8, [x24, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_snd_hda_get_path_idx
Lloh10:
	adrp	x8, _PIN_IN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PIN_IN@GOTPAGEOFF]
	str	x0, [x24]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	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	_set_pin_target
LBB0_18:
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"digout"

	.comm	_PIN_OUT,4,2                    ; @PIN_OUT
	.comm	_AC_WID_AUD_IN,8,3              ; @AC_WID_AUD_IN
	.comm	_AC_WCAP_DIGITAL,4,2            ; @AC_WCAP_DIGITAL
l_.str.1:                               ; @.str.1
	.asciz	"digin"

	.comm	_PIN_IN,4,2                     ; @PIN_IN
	.no_dead_strip	_parse_digital
.subsections_via_symbols
