	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _dsp_create_generic_scb
__dsp_create_generic_scb:               ## @_dsp_create_generic_scb
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	xorl	%edi, %edi
	cmpq	$0, (%r13)
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_2:
	movq	(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	movq	_SCBsubListPtr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ecx, (%rbx,%rax,4)
	movq	_SCBfuncEntryPtr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movzwl	2(%rbx,%rax,4), %ecx
	shll	$16, %ecx
	movl	%ecx, (%rbx,%rax,4)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	orl	(%rdx), %ecx
	movl	%ecx, (%rbx,%rax,4)
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	callq	_snd_printdd
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_cs46xx_dsp_create_scb
	movq	%rax, %rbx
	movq	(%r13), %rax
	movq	%rax, 16(%rbx)
	movq	%rax, 24(%rbx)
	movq	%r14, 8(%rbx)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 40(%rbx)
	testq	%r14, %r14
	je	LBB0_13
## %bb.3:
	movl	16(%rbp), %ecx
	movq	_SCB_ON_PARENT_NEXT_SCB@GOTPCREL(%rip), %rdx
	cmpl	%ecx, (%rdx)
	jne	LBB0_6
## %bb.4:
	xorl	%edi, %edi
	cmpq	%rax, 24(%r14)
	setne	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.10:
	movq	8(%rbx), %rax
	movq	%rbx, 24(%rax)
	jmp	LBB0_12
LBB0_6:
	movq	_SCB_ON_PARENT_SUBLIST_SCB@GOTPCREL(%rip), %rdx
	cmpl	%ecx, (%rdx)
	jne	LBB0_9
## %bb.7:
	xorl	%edi, %edi
	cmpq	%rax, 16(%r14)
	setne	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.11:
	movq	8(%rbx), %rax
	movq	%rbx, 16(%rax)
	jmp	LBB0_12
LBB0_9:
	xorl	%eax, %eax
	callq	_snd_BUG
LBB0_12:
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	8(%rbx), %rsi
	movq	%r15, %rdi
	callq	_cs46xx_dsp_spos_update_scb
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_13:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_cs46xx_dsp_proc_register_scb_desc
LBB0_14:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCBsubListPtr,8,3              ## @SCBsubListPtr
	.comm	_SCBfuncEntryPtr,8,3            ## @SCBfuncEntryPtr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dsp_spos: creating SCB <%s>\n"

	.comm	_SCB_ON_PARENT_NEXT_SCB,4,2     ## @SCB_ON_PARENT_NEXT_SCB
	.comm	_SCB_ON_PARENT_SUBLIST_SCB,4,2  ## @SCB_ON_PARENT_SUBLIST_SCB
	.no_dead_strip	__dsp_create_generic_scb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _dsp_create_generic_scb
__dsp_create_generic_scb:               ; @_dsp_create_generic_scb
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x6
	mov	x21, x5
	mov	x23, x4
	mov	x20, x3
	mov	x24, x2
	mov	x25, x1
	mov	x19, x0
	ldr	x26, [x0, #8]
	ldr	x8, [x26]
	cmp	x8, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_2
LBB0_1:
	mov	x20, #0
	b	LBB0_12
LBB0_2:
	ldr	x8, [x26]
	ldr	w8, [x8]
	orr	w8, w8, w8, lsl #16
Lloh0:
	adrp	x9, _SCBsubListPtr@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCBsubListPtr@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	str	w8, [x24, x9, lsl #2]
Lloh3:
	adrp	x8, _SCBfuncEntryPtr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCBfuncEntryPtr@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x8, x24, x8, lsl #2
	ldrh	w9, [x8, #2]
	lsl	w9, w9, #16
	str	w9, [x8]
	ldr	w10, [x23]
	orr	w9, w10, w9
	str	w9, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x25
	bl	_snd_printdd
	mov	x0, x19
	mov	x1, x25
	mov	x2, x24
	mov	x3, x20
	bl	_cs46xx_dsp_create_scb
	mov	x20, x0
	ldr	x8, [x26]
	stp	x8, x8, [x0, #16]
	str	x21, [x0, #8]
	str	x23, [x0, #40]
	cbz	x21, LBB0_11
; %bb.3:
Lloh8:
	adrp	x9, _SCB_ON_PARENT_NEXT_SCB@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SCB_ON_PARENT_NEXT_SCB@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w9, w22
	b.ne	LBB0_6
; %bb.4:
	ldr	x9, [x21, #24]
	cmp	x9, x8
	cset	w0, ne
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_1
; %bb.5:
	ldr	x8, [x20, #8]
	str	x20, [x8, #24]
	b	LBB0_10
LBB0_6:
Lloh11:
	adrp	x9, _SCB_ON_PARENT_SUBLIST_SCB@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SCB_ON_PARENT_SUBLIST_SCB@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w9, w22
	b.ne	LBB0_9
; %bb.7:
	ldr	x9, [x21, #16]
	cmp	x9, x8
	cset	w0, ne
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_1
; %bb.8:
	ldr	x8, [x20, #8]
	str	x20, [x8, #16]
	b	LBB0_10
LBB0_9:
	bl	_snd_BUG
LBB0_10:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_cs46xx_dsp_spos_update_scb
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	bl	_cs46xx_dsp_proc_register_scb_desc
LBB0_12:
	mov	x0, x20
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SCBsubListPtr,8,3              ; @SCBsubListPtr
	.comm	_SCBfuncEntryPtr,8,3            ; @SCBfuncEntryPtr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dsp_spos: creating SCB <%s>\n"

	.comm	_SCB_ON_PARENT_NEXT_SCB,4,2     ; @SCB_ON_PARENT_NEXT_SCB
	.comm	_SCB_ON_PARENT_SUBLIST_SCB,4,2  ; @SCB_ON_PARENT_SUBLIST_SCB
	.no_dead_strip	__dsp_create_generic_scb
.subsections_via_symbols
