	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ca0132_build_controls
_ca0132_build_controls:                 ## @ca0132_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	cmpl	$0, (%r15)
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_snd_hda_add_new_ctls
	testl	%eax, %eax
	js	LBB0_17
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	movq	_OUT_EFFECTS_COUNT@GOTPCREL(%rip), %rcx
	movq	_IN_EFFECTS_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.5:
	movl	%eax, %r12d
	shlq	$4, %r12
	xorl	%ebx, %ebx
	movq	_ca0132_effects@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	12(%rax,%rbx), %esi
	movq	(%rax,%rbx), %rdx
	movl	8(%rax,%rbx), %ecx
	movq	%r14, %rdi
	callq	_add_fx_switch
	testl	%eax, %eax
	js	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	$16, %rbx
	cmpq	%rbx, %r12
	jne	LBB0_7
LBB0_8:
	movq	_PLAY_ENHANCEMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_add_fx_switch
	testl	%eax, %eax
	js	LBB0_17
## %bb.9:
	movq	_CRYSTAL_VOICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_add_fx_switch
	testl	%eax, %eax
	js	LBB0_17
## %bb.10:
	movq	%r14, %rdi
	callq	_add_voicefx
	leaq	32(%r15), %rsi
	movq	%r14, %rdi
	callq	_snd_hda_jack_add_kctls
	testl	%eax, %eax
	js	LBB0_17
## %bb.11:
	movq	24(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.12:
	movq	%r14, %rdi
	movq	%rdx, %rsi
	callq	_snd_hda_create_spdif_out_ctls
	testl	%eax, %eax
	js	LBB0_17
## %bb.13:
	leaq	16(%r15), %rsi
	movq	%r14, %rdi
	callq	_snd_hda_create_spdif_share_sw
	testl	%eax, %eax
	js	LBB0_17
LBB0_14:
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	callq	_snd_hda_create_spdif_in_ctls
	testl	%eax, %eax
	js	LBB0_17
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OUT_EFFECTS_COUNT,4,2          ## @OUT_EFFECTS_COUNT
	.comm	_IN_EFFECTS_COUNT,4,2           ## @IN_EFFECTS_COUNT
	.comm	_ca0132_effects,8,3             ## @ca0132_effects
	.comm	_PLAY_ENHANCEMENT,4,2           ## @PLAY_ENHANCEMENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PlayEnhancement"

	.comm	_CRYSTAL_VOICE,4,2              ## @CRYSTAL_VOICE
L_.str.1:                               ## @.str.1
	.asciz	"CrystalVoice"

	.no_dead_strip	_ca0132_build_controls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ca0132_build_controls
_ca0132_build_controls:                 ; @ca0132_build_controls
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #40]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x19
	bl	_snd_hda_add_new_ctls
	tbnz	w0, #31, LBB0_17
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_4:
Lloh0:
	adrp	x8, _OUT_EFFECTS_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OUT_EFFECTS_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IN_EFFECTS_COUNT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IN_EFFECTS_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w8, w9, w8
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x21, #0
	lsl	x22, x8, #4
Lloh6:
	adrp	x23, _ca0132_effects@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ca0132_effects@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	x2, [x8]
	ldp	w3, w1, [x8, #8]
	mov	x0, x19
	bl	_add_fx_switch
	tbnz	w0, #31, LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #16
	cmp	x22, x21
	b.ne	LBB0_6
LBB0_8:
Lloh8:
	adrp	x8, _PLAY_ENHANCEMENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PLAY_ENHANCEMENT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	bl	_add_fx_switch
	tbnz	w0, #31, LBB0_17
; %bb.9:
Lloh13:
	adrp	x8, _CRYSTAL_VOICE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CRYSTAL_VOICE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w3, #1
	bl	_add_fx_switch
	tbnz	w0, #31, LBB0_17
; %bb.10:
	mov	x0, x19
	bl	_add_voicefx
	add	x1, x20, #32
	mov	x0, x19
	bl	_snd_hda_jack_add_kctls
	tbnz	w0, #31, LBB0_17
; %bb.11:
	ldr	x1, [x20, #24]
	cbz	x1, LBB0_14
; %bb.12:
	mov	x0, x19
	mov	x2, x1
	bl	_snd_hda_create_spdif_out_ctls
	tbnz	w0, #31, LBB0_17
; %bb.13:
	add	x1, x20, #16
	mov	x0, x19
	bl	_snd_hda_create_spdif_share_sw
	tbnz	w0, #31, LBB0_17
LBB0_14:
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_snd_hda_create_spdif_in_ctls
	tbnz	w0, #31, LBB0_17
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_OUT_EFFECTS_COUNT,4,2          ; @OUT_EFFECTS_COUNT
	.comm	_IN_EFFECTS_COUNT,4,2           ; @IN_EFFECTS_COUNT
	.comm	_ca0132_effects,8,3             ; @ca0132_effects
	.comm	_PLAY_ENHANCEMENT,4,2           ; @PLAY_ENHANCEMENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PlayEnhancement"

	.comm	_CRYSTAL_VOICE,4,2              ; @CRYSTAL_VOICE
l_.str.1:                               ; @.str.1
	.asciz	"CrystalVoice"

	.no_dead_strip	_ca0132_build_controls
.subsections_via_symbols
