	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_gen_build_controls     ## -- Begin function snd_hda_gen_build_controls
	.p2align	4, 0x90
_snd_hda_gen_build_controls:            ## @snd_hda_gen_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	cmpq	$0, 72(%rbx)
	je	LBB0_2
## %bb.1:
	movl	64(%rbx), %esi
	movq	%r14, %rdi
	callq	_snd_hda_add_new_ctls
	testl	%eax, %eax
	js	LBB0_18
LBB0_2:
	movq	48(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.3:
	movq	56(%rbx), %rax
	movl	4(%rax), %ecx
	movq	%r14, %rdi
	movq	%rdx, %rsi
	callq	_snd_hda_create_dig_out_ctls
	testl	%eax, %eax
	js	LBB0_18
## %bb.4:
	cmpl	$0, 24(%rbx)
	jne	LBB0_7
## %bb.5:
	leaq	40(%rbx), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_snd_hda_create_spdif_share_sw
	testl	%eax, %eax
	js	LBB0_18
## %bb.6:
	movl	$1, (%r15)
LBB0_7:
	movq	32(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_snd_hda_create_spdif_in_ctls
	testl	%eax, %eax
	js	LBB0_18
LBB0_9:
	cmpl	$0, 24(%rbx)
	jne	LBB0_17
## %bb.10:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_snd_hda_find_mixer_ctl
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movl	28(%rbx), %edx
	movq	_slave_pfxs@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %r8
	movq	%r14, %rdi
	callq	_snd_hda_add_vmaster
	testl	%eax, %eax
	js	LBB0_18
LBB0_12:
	cmpl	$0, 24(%rbx)
	jne	LBB0_17
## %bb.13:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_snd_hda_find_mixer_ctl
	testl	%eax, %eax
	jne	LBB0_17
## %bb.14:
	movq	_slave_pfxs@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	16(%rbx), %rax
	movq	%rax, (%rsp)
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %r8
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$1, %r9d
	callq	___snd_hda_add_vmaster
	testl	%eax, %eax
	js	LBB0_18
## %bb.15:
	leaq	8(%rbx), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_17
## %bb.16:
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	callq	_snd_hda_add_vmaster_hook
LBB0_17:
	movq	%rbx, %rdi
	callq	_free_kctls
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_snd_hda_jack_add_kctls
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Master Playback Volume"

	.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"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_gen_build_controls     ; -- Begin function snd_hda_gen_build_controls
	.p2align	2
_snd_hda_gen_build_controls:            ; @snd_hda_gen_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	x20, x0
	ldr	x19, [x0]
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x19, #64]
	mov	x0, x20
	bl	_snd_hda_add_new_ctls
	tbnz	w0, #31, LBB0_16
LBB0_2:
	ldr	x1, [x19, #48]
	cbz	x1, LBB0_5
; %bb.3:
	ldr	x8, [x19, #56]
	ldr	w3, [x8, #4]
	mov	x0, x20
	mov	x2, x1
	bl	_snd_hda_create_dig_out_ctls
	tbnz	w0, #31, LBB0_16
; %bb.4:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_17
LBB0_5:
	ldr	x1, [x19, #32]
	cbz	x1, LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_snd_hda_create_spdif_in_ctls
	tbnz	w0, #31, LBB0_16
LBB0_7:
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_15
; %bb.8:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_snd_hda_find_mixer_ctl
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	w2, [x19, #28]
Lloh2:
	adrp	x8, _slave_pfxs@GOTPAGE
Lloh3:
	ldr	x8, [x8, _slave_pfxs@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
Lloh7:
	adrp	x4, l_.str.1@PAGE
Lloh8:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_snd_hda_add_vmaster
	tbnz	w0, #31, LBB0_16
LBB0_10:
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_15
; %bb.11:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_snd_hda_find_mixer_ctl
	cbnz	w0, LBB0_15
; %bb.12:
Lloh11:
	adrp	x8, _slave_pfxs@GOTPAGE
Lloh12:
	ldr	x8, [x8, _slave_pfxs@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	add	x6, x19, #16
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh16:
	adrp	x4, l_.str.3@PAGE
Lloh17:
	add	x4, x4, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, #0
	mov	w5, #1
	bl	___snd_hda_add_vmaster
	tbnz	w0, #31, LBB0_16
; %bb.13:
	add	x1, x19, #8
	ldr	x8, [x1]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	w2, [x19, #4]
	mov	x0, x20
	bl	_snd_hda_add_vmaster_hook
LBB0_15:
	mov	x0, x19
	bl	_free_kctls
	mov	x0, x20
	mov	x1, x19
	bl	_snd_hda_jack_add_kctls
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_16:
	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
LBB0_17:
	add	x21, x19, #40
	mov	x0, x20
	mov	x1, x21
	bl	_snd_hda_create_spdif_share_sw
	tbnz	w0, #31, LBB0_16
; %bb.18:
	mov	w8, #1
	str	w8, [x21]
	ldr	x1, [x19, #32]
	cbnz	x1, LBB0_6
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Master Playback Volume"

	.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"

.subsections_via_symbols
