	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function cs46xx_dsp_create_mix_to_ostream_scb
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	128                             ## 0x80
	.long	65535                           ## 0xffff
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_cs46xx_dsp_create_mix_to_ostream_scb
	.p2align	4, 0x90
_cs46xx_dsp_create_mix_to_ostream_scb:  ## @cs46xx_dsp_create_mix_to_ostream_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	%rbx
	subq	$120, %rsp
	.cfi_offset %rbx, -24
	movl	%r8d, %r10d
	movl	16(%rbp), %r8d
	movq	_DMA_RQ_C1_SOURCE_MOD64@GOTPCREL(%rip), %r11
	movq	_DMA_RQ_C1_DEST_ON_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	(%r11), %ebx
	movq	_DMA_RQ_C1_DEST_MOD1024@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movq	_DMA_RQ_C1_WRITEBACK_SRC_FLAG@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movq	_DMA_RQ_C1_WRITEBACK_DEST_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	addl	$15, %eax
	movl	%eax, -112(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -108(%rbp)
	movl	%ecx, -92(%rbp)
	movq	_RSCONFIG_DMA_ENABLE@GOTPCREL(%rip), %rax
	movq	_RSCONFIG_MAX_DMA_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$19, %ebx
	shll	%cl, %ebx
	addl	(%rax), %ebx
	movl	%r10d, %eax
	sarl	$4, %eax
	movq	_RSCONFIG_STREAM_NUM_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	addl	%ebx, %eax
	movq	_RSCONFIG_DMA_TO_HOST@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movq	_RSCONFIG_SAMPLE_16STEREO@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movq	_RSCONFIG_MODULO_64@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movl	%eax, -88(%rbp)
	shll	$16, %edx
	addl	$8388608, %edx                  ## imm = 0x800000
	movl	%edx, -84(%rbp)
	movq	$1, -80(%rbp)
	movups	%xmm0, -56(%rbp)
	movaps	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,1,128,65535]
	movups	%xmm1, -72(%rbp)
	movups	%xmm0, -24(%rbp)
	movups	%xmm0, -40(%rbp)
	movl	%r8d, (%rsp)
	leaq	L_.str(%rip), %r8
	leaq	-112(%rbp), %rdx
	movl	%r10d, %ecx
	callq	_cs46xx_dsp_create_generic_scb
	addq	$120, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_RQ_C1_SOURCE_MOD64,8,3     ## @DMA_RQ_C1_SOURCE_MOD64
	.comm	_DMA_RQ_C1_DEST_ON_HOST,8,3     ## @DMA_RQ_C1_DEST_ON_HOST
	.comm	_DMA_RQ_C1_DEST_MOD1024,8,3     ## @DMA_RQ_C1_DEST_MOD1024
	.comm	_DMA_RQ_C1_WRITEBACK_SRC_FLAG,8,3 ## @DMA_RQ_C1_WRITEBACK_SRC_FLAG
	.comm	_DMA_RQ_C1_WRITEBACK_DEST_FLAG,8,3 ## @DMA_RQ_C1_WRITEBACK_DEST_FLAG
	.comm	_RSCONFIG_DMA_ENABLE,4,2        ## @RSCONFIG_DMA_ENABLE
	.comm	_RSCONFIG_MAX_DMA_SIZE_SHIFT,4,2 ## @RSCONFIG_MAX_DMA_SIZE_SHIFT
	.comm	_RSCONFIG_STREAM_NUM_SHIFT,4,2  ## @RSCONFIG_STREAM_NUM_SHIFT
	.comm	_RSCONFIG_DMA_TO_HOST,4,2       ## @RSCONFIG_DMA_TO_HOST
	.comm	_RSCONFIG_SAMPLE_16STEREO,4,2   ## @RSCONFIG_SAMPLE_16STEREO
	.comm	_RSCONFIG_MODULO_64,4,2         ## @RSCONFIG_MODULO_64
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"S16_MIX_TO_OSTREAM"

	.comm	_CS46XX_DSP_CAPTURE_CHANNEL,8,3 ## @CS46XX_DSP_CAPTURE_CHANNEL
	.comm	_DMA_RQ_C2_AC_NONE,8,3          ## @DMA_RQ_C2_AC_NONE
	.comm	_DMA_RQ_C2_SIGNAL_DEST_PINGPONG,8,3 ## @DMA_RQ_C2_SIGNAL_DEST_PINGPONG
	.comm	_DMA_RQ_SD_SP_SAMPLE_ADDR,8,3   ## @DMA_RQ_SD_SP_SAMPLE_ADDR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function cs46xx_dsp_create_mix_to_ostream_scb
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	128                             ; 0x80
	.long	65535                           ; 0xffff
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_cs46xx_dsp_create_mix_to_ostream_scb
	.p2align	2
_cs46xx_dsp_create_mix_to_ostream_scb:  ; @cs46xx_dsp_create_mix_to_ostream_scb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x4
Lloh0:
	adrp	x9, _DMA_RQ_C1_SOURCE_MOD64@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DMA_RQ_C1_SOURCE_MOD64@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _DMA_RQ_C1_DEST_ON_HOST@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DMA_RQ_C1_DEST_ON_HOST@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _DMA_RQ_C1_DEST_MOD1024@GOTPAGE
Lloh7:
	ldr	x11, [x11, _DMA_RQ_C1_DEST_MOD1024@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	add	w9, w10, w9
	add	w9, w9, w11
Lloh9:
	adrp	x10, _DMA_RQ_C1_WRITEBACK_SRC_FLAG@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DMA_RQ_C1_WRITEBACK_SRC_FLAG@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _DMA_RQ_C1_WRITEBACK_DEST_FLAG@GOTPAGE
Lloh13:
	ldr	x11, [x11, _DMA_RQ_C1_WRITEBACK_DEST_FLAG@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	add	w9, w9, w10
	add	w9, w9, w11
	add	w9, w9, #15
	str	w9, [sp, #8]
Lloh15:
	adrp	x9, _RSCONFIG_MAX_DMA_SIZE_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RSCONFIG_MAX_DMA_SIZE_SHIFT@GOTPAGEOFF]
	stur	xzr, [sp, #20]
Lloh17:
	ldr	w9, [x9]
	mov	w10, #19
	lsl	w9, w10, w9
Lloh18:
	adrp	x10, _RSCONFIG_STREAM_NUM_SHIFT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _RSCONFIG_STREAM_NUM_SHIFT@GOTPAGEOFF]
	asr	w11, w4, #4
Lloh20:
	ldr	w10, [x10]
	lsl	w10, w11, w10
Lloh21:
	adrp	x11, _RSCONFIG_DMA_ENABLE@GOTPAGE
Lloh22:
	ldr	x11, [x11, _RSCONFIG_DMA_ENABLE@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	add	w9, w9, w11
	add	w9, w9, w10
Lloh24:
	adrp	x10, _RSCONFIG_DMA_TO_HOST@GOTPAGE
Lloh25:
	ldr	x10, [x10, _RSCONFIG_DMA_TO_HOST@GOTPAGEOFF]
Lloh26:
	adrp	x11, _RSCONFIG_SAMPLE_16STEREO@GOTPAGE
Lloh27:
	ldr	x11, [x11, _RSCONFIG_SAMPLE_16STEREO@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
Lloh29:
	ldr	w11, [x11]
	add	w9, w9, w10
	add	w9, w9, w11
Lloh30:
	adrp	x10, _RSCONFIG_MODULO_64@GOTPAGE
Lloh31:
	ldr	x10, [x10, _RSCONFIG_MODULO_64@GOTPAGEOFF]
	stur	xzr, [sp, #12]
Lloh32:
	ldr	w10, [x10]
	add	w9, w9, w10
	stp	w3, w9, [sp, #28]
	lsl	w9, w2, #16
	add	w9, w9, #2048, lsl #12          ; =8388608
	str	w9, [sp, #36]
	mov	w9, #1
	str	x9, [sp, #40]
	stp	xzr, xzr, [sp, #64]
Lloh33:
	adrp	x9, lCPI0_0@PAGE
Lloh34:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	stur	q0, [sp, #48]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #80]
Lloh35:
	adrp	x4, l_.str@PAGE
Lloh36:
	add	x4, x4, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x3, x8
	bl	_cs46xx_dsp_create_generic_scb
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdr	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_RQ_C1_SOURCE_MOD64,8,3     ; @DMA_RQ_C1_SOURCE_MOD64
	.comm	_DMA_RQ_C1_DEST_ON_HOST,8,3     ; @DMA_RQ_C1_DEST_ON_HOST
	.comm	_DMA_RQ_C1_DEST_MOD1024,8,3     ; @DMA_RQ_C1_DEST_MOD1024
	.comm	_DMA_RQ_C1_WRITEBACK_SRC_FLAG,8,3 ; @DMA_RQ_C1_WRITEBACK_SRC_FLAG
	.comm	_DMA_RQ_C1_WRITEBACK_DEST_FLAG,8,3 ; @DMA_RQ_C1_WRITEBACK_DEST_FLAG
	.comm	_RSCONFIG_DMA_ENABLE,4,2        ; @RSCONFIG_DMA_ENABLE
	.comm	_RSCONFIG_MAX_DMA_SIZE_SHIFT,4,2 ; @RSCONFIG_MAX_DMA_SIZE_SHIFT
	.comm	_RSCONFIG_STREAM_NUM_SHIFT,4,2  ; @RSCONFIG_STREAM_NUM_SHIFT
	.comm	_RSCONFIG_DMA_TO_HOST,4,2       ; @RSCONFIG_DMA_TO_HOST
	.comm	_RSCONFIG_SAMPLE_16STEREO,4,2   ; @RSCONFIG_SAMPLE_16STEREO
	.comm	_RSCONFIG_MODULO_64,4,2         ; @RSCONFIG_MODULO_64
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"S16_MIX_TO_OSTREAM"

	.comm	_CS46XX_DSP_CAPTURE_CHANNEL,8,3 ; @CS46XX_DSP_CAPTURE_CHANNEL
	.comm	_DMA_RQ_C2_AC_NONE,8,3          ; @DMA_RQ_C2_AC_NONE
	.comm	_DMA_RQ_C2_SIGNAL_DEST_PINGPONG,8,3 ; @DMA_RQ_C2_SIGNAL_DEST_PINGPONG
	.comm	_DMA_RQ_SD_SP_SAMPLE_ADDR,8,3   ; @DMA_RQ_SD_SP_SAMPLE_ADDR
.subsections_via_symbols
