	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function conexant_build_controls
_conexant_build_controls:               ## @conexant_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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %r12
	cmpl	$0, (%r12)
	je	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_snd_hda_add_new_ctls
	testl	%eax, %eax
	js	LBB0_19
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movl	(%r12), %eax
	cmpq	%rax, %rbx
	jb	LBB0_3
LBB0_4:
	movq	40(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.5:
	movq	%r15, %rdi
	movq	%rdx, %rsi
	callq	_snd_hda_create_spdif_out_ctls
	testl	%eax, %eax
	js	LBB0_19
## %bb.6:
	leaq	32(%r12), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_snd_hda_create_spdif_share_sw
	testl	%eax, %eax
	js	LBB0_19
## %bb.7:
	movl	$1, (%r14)
LBB0_8:
	movq	24(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_snd_hda_create_spdif_in_ctls
	testl	%eax, %eax
	js	LBB0_19
LBB0_10:
	cmpq	$0, 16(%r12)
	je	LBB0_16
## %bb.11:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_snd_hda_find_mixer_ctl
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	16(%r12), %rsi
	movq	_HDA_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %r14
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_snd_hda_set_vmaster_tlv
	movq	_slave_pfxs@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %r8
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_snd_hda_add_vmaster
	testl	%eax, %eax
	js	LBB0_19
LBB0_13:
	cmpq	$0, 16(%r12)
	je	LBB0_16
## %bb.14:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_snd_hda_find_mixer_ctl
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	_slave_pfxs@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %r8
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_snd_hda_add_vmaster
	testl	%eax, %eax
	js	LBB0_19
LBB0_16:
	cmpq	$0, 8(%r12)
	je	LBB0_18
## %bb.17:
	movq	_cxt_capture_mixers@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_snd_hda_add_new_ctls
	testl	%eax, %eax
	js	LBB0_19
LBB0_18:
	movq	%r15, %rdi
	callq	_add_beep_ctls
	movl	%eax, %ecx
	sarl	$31, %eax
	andl	%ecx, %eax
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Master Playback Volume"

	.comm	_HDA_OUTPUT,4,2                 ## @HDA_OUTPUT
	.comm	_slave_pfxs,4,2                 ## @slave_pfxs
L_.str.1:                               ## @.str.1
	.asciz	"Playback Volume"

L_.str.2:                               ## @.str.2
	.asciz	"Master Playback Switch"

L_.str.3:                               ## @.str.3
	.asciz	"Playback Switch"

	.comm	_cxt_capture_mixers,4,2         ## @cxt_capture_mixers
	.no_dead_strip	_conexant_build_controls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function conexant_build_controls
_conexant_build_controls:               ; @conexant_build_controls
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x21, [x0]
	ldr	w8, [x21]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #48]
	ldr	w1, [x8, x20, lsl #2]
	mov	x0, x19
	bl	_snd_hda_add_new_ctls
	tbnz	w0, #31, LBB0_19
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	ldr	w8, [x21]
	cmp	x20, x8
	b.lo	LBB0_2
LBB0_4:
	ldr	x1, [x21, #40]
	cbz	x1, LBB0_8
; %bb.5:
	mov	x0, x19
	mov	x2, x1
	bl	_snd_hda_create_spdif_out_ctls
	tbnz	w0, #31, LBB0_19
; %bb.6:
	add	x20, x21, #32
	mov	x0, x19
	mov	x1, x20
	bl	_snd_hda_create_spdif_share_sw
	tbnz	w0, #31, LBB0_19
; %bb.7:
	mov	w8, #1
	str	w8, [x20]
LBB0_8:
	ldr	x1, [x21, #24]
	cbz	x1, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_snd_hda_create_spdif_in_ctls
	tbnz	w0, #31, LBB0_19
LBB0_10:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_16
; %bb.11:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_snd_hda_find_mixer_ctl
	cbnz	w0, LBB0_13
; %bb.12:
	ldr	x1, [x21, #16]
Lloh5:
	adrp	x8, _HDA_OUTPUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HDA_OUTPUT@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x19
	bl	_snd_hda_set_vmaster_tlv
Lloh8:
	adrp	x8, _slave_pfxs@GOTPAGE
Lloh9:
	ldr	x8, [x8, _slave_pfxs@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
Lloh13:
	adrp	x4, l_.str.1@PAGE
Lloh14:
	add	x4, x4, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x19
	bl	_snd_hda_add_vmaster
	tbnz	w0, #31, LBB0_19
LBB0_13:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_16
; %bb.14:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_snd_hda_find_mixer_ctl
	cbnz	w0, LBB0_16
; %bb.15:
Lloh17:
	adrp	x8, _slave_pfxs@GOTPAGE
Lloh18:
	ldr	x8, [x8, _slave_pfxs@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh22:
	adrp	x4, l_.str.3@PAGE
Lloh23:
	add	x4, x4, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	bl	_snd_hda_add_vmaster
	tbnz	w0, #31, LBB0_19
LBB0_16:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_18
; %bb.17:
Lloh24:
	adrp	x8, _cxt_capture_mixers@GOTPAGE
Lloh25:
	ldr	x8, [x8, _cxt_capture_mixers@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_hda_add_new_ctls
	tbnz	w0, #31, LBB0_19
LBB0_18:
	mov	x0, x19
	bl	_add_beep_ctls
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_19:
	ldr	x8, [sp, #24]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Master Playback Volume"

	.comm	_HDA_OUTPUT,4,2                 ; @HDA_OUTPUT
	.comm	_slave_pfxs,4,2                 ; @slave_pfxs
l_.str.1:                               ; @.str.1
	.asciz	"Playback Volume"

l_.str.2:                               ; @.str.2
	.asciz	"Master Playback Switch"

l_.str.3:                               ; @.str.3
	.asciz	"Playback Switch"

	.comm	_cxt_capture_mixers,4,2         ; @cxt_capture_mixers
	.no_dead_strip	_conexant_build_controls
.subsections_via_symbols
