	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_add_new_ctls           ## -- Begin function snd_hda_add_new_ctls
	.p2align	4, 0x90
_snd_hda_add_new_ctls:                  ## @snd_hda_add_new_ctls
	.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
	cmpq	$0, 8(%rsi)
	je	LBB0_19
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	8(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	32(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, 32(%r14)
	leaq	24(%r14), %r14
	je	LBB0_19
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	cmpl	$-1, (%r14)
	je	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_snd_ctl_new1
	testq	%rax, %rax
	je	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=2
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=2
	movl	%eax, %r13d
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_snd_ctl_new1
	testq	%rax, %rax
	je	LBB0_17
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%r13d, %r13d
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	%r13d, (%rax)
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	testl	%ebx, %ebx
	jle	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	%ebx, 4(%rax)
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_snd_hda_ctl_add
	testl	%eax, %eax
	je	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=2
	movl	%eax, %r12d
	testl	%r13d, %r13d
	je	LBB0_11
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=2
	testl	%ebx, %ebx
	jne	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpl	$0, 16(%r14)
	jne	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_find_empty_mixer_ctl_idx
	movl	%eax, %ebx
	testl	%eax, %eax
	jg	LBB0_16
	jmp	LBB0_20
LBB0_19:
	xorl	%r12d, %r12d
	jmp	LBB0_20
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_20:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_add_new_ctls           ; -- Begin function snd_hda_add_new_ctls
	.p2align	2
_snd_hda_add_new_ctls:                  ; @snd_hda_add_new_ctls
	.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	x23, x1
	ldr	x8, [x23, #8]!
	cbz	x8, LBB0_18
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #32]!
	mov	x23, x19
	sub	x19, x19, #8
	cbz	x8, LBB0_18
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	w8, [x19]
	cmn	w8, #1
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_snd_ctl_new1
	cbz	x0, LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x2, x0
	mov	w21, #0
	mov	w24, #0
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	w8, [x20]
	cbz	w8, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	x24, x8
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x19
	mov	x1, x20
	bl	_snd_ctl_new1
	mov	x2, x0
	cbz	x0, LBB0_19
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w24, #1
	b.lt	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	str	w24, [x2]
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=2
	cmp	w21, #1
	b.lt	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	str	w21, [x2, #4]
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x20
	mov	w1, #0
	bl	_snd_hda_ctl_add
	cbz	w0, LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x22, x0
	cbz	w24, LBB0_6
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=2
	cbnz	w21, LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x1, [x23]
	mov	x0, x20
	mov	w2, #0
	bl	_find_empty_mixer_ctl_idx
	mov	x21, x0
	cmp	w0, #1
	b.ge	LBB0_8
	b	LBB0_20
LBB0_18:
	mov	w22, #0
	b	LBB0_20
LBB0_19:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_20:
	mov	x0, x22
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
