	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmi9880_build_controls
_cmi9880_build_controls:                ## @cmi9880_build_controls
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movq	_cmi9880_basic_mixer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_snd_hda_add_new_ctls
	testl	%eax, %eax
	js	LBB0_15
## %bb.1:
	cmpq	$0, 32(%r12)
	je	LBB0_3
## %bb.2:
	movq	_cmi9880_ch_mode_mixer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_snd_hda_add_new_ctls
	testl	%eax, %eax
	js	LBB0_15
LBB0_3:
	movq	24(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.4:
	movq	%r14, %rdi
	movq	%rdx, %rsi
	callq	_snd_hda_create_spdif_out_ctls
	testl	%eax, %eax
	js	LBB0_15
## %bb.5:
	leaq	16(%r12), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_snd_hda_create_spdif_share_sw
	testl	%eax, %eax
	js	LBB0_15
## %bb.6:
	movl	$1, (%rbx)
LBB0_7:
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_snd_hda_create_spdif_in_ctls
	testl	%eax, %eax
	js	LBB0_15
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_snd_hda_find_mixer_ctl
	movq	%rax, %r15
	xorl	%eax, %eax
	testq	%r15, %r15
	je	LBB0_15
## %bb.10:
	cmpl	$0, (%r15)
	jle	LBB0_15
## %bb.11:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_snd_hda_add_nid
	testl	%eax, %eax
	js	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_12
## %bb.14:
	xorl	%eax, %eax
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cmi9880_basic_mixer,4,2        ## @cmi9880_basic_mixer
	.comm	_cmi9880_ch_mode_mixer,4,2      ## @cmi9880_ch_mode_mixer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Capture Source"

	.no_dead_strip	_cmi9880_build_controls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmi9880_build_controls
_cmi9880_build_controls:                ; @cmi9880_build_controls
	.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
	mov	x19, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _cmi9880_basic_mixer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cmi9880_basic_mixer@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_snd_hda_add_new_ctls
	tbnz	w0, #31, LBB0_15
; %bb.1:
	ldr	x8, [x22, #32]
	cbz	x8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _cmi9880_ch_mode_mixer@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cmi9880_ch_mode_mixer@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_hda_add_new_ctls
	tbnz	w0, #31, LBB0_15
LBB0_3:
	ldr	x1, [x22, #24]
	cbz	x1, LBB0_7
; %bb.4:
	mov	x0, x19
	mov	x2, x1
	bl	_snd_hda_create_spdif_out_ctls
	tbnz	w0, #31, LBB0_15
; %bb.5:
	add	x20, x22, #16
	mov	x0, x19
	mov	x1, x20
	bl	_snd_hda_create_spdif_share_sw
	tbnz	w0, #31, LBB0_15
; %bb.6:
	mov	w8, #1
	str	w8, [x20]
LBB0_7:
	ldr	x1, [x22, #8]
	cbz	x1, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_snd_hda_create_spdif_in_ctls
	tbnz	w0, #31, LBB0_15
LBB0_9:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_snd_hda_find_mixer_ctl
	cbz	x0, LBB0_15
; %bb.10:
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.11:
	mov	x21, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w3, [x8, x21, lsl #2]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_snd_hda_add_nid
	tbnz	w0, #31, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_12
LBB0_14:
	mov	w0, #0
LBB0_15:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_cmi9880_basic_mixer,4,2        ; @cmi9880_basic_mixer
	.comm	_cmi9880_ch_mode_mixer,4,2      ; @cmi9880_ch_mode_mixer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Capture Source"

	.no_dead_strip	_cmi9880_build_controls
.subsections_via_symbols
