	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cobalt_stream_struct_init
_cobalt_stream_struct_init:             ## @cobalt_stream_struct_init
	.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
	movq	_COBALT_NUM_STREAMS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_13
## %bb.1:
	movq	%rdi, %r14
	xorl	%r12d, %r12d
	leaq	L_.str(%rip), %r15
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edx
	addl	%ebx, %edx
	movl	%edx, 12(%rax,%r13)
	movl	%ebx, 16(%rax,%r13)
	movq	_COBALT_SYSSTAT_VI0_LOST_DATA_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%r12d, %ecx
	shll	%cl, %esi
	movl	%esi, 20(%rax,%r13)
	movq	_COBALT_SYSSTAT_VI0_INT1_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%r12d, %ecx
	shll	%cl, %esi
	movl	%esi, 24(%rax,%r13)
	movl	%ebx, %ecx
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_cobalt_info
	incq	%rbx
	movq	_COBALT_NUM_STREAMS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$48, %r13
	addl	$4, %r12d
	cmpq	%rax, %rbx
	jge	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	%r14, 40(%rax,%r13)
	movq	$0, 32(%rax,%r13)
	movq	$0, (%rax,%r13)
	movl	$1, 8(%rax,%r13)
	movq	_COBALT_HSMA_IN_NODE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rbx
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_COBALT_AUDIO_IN_STREAM@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	cmpq	%rdx, %rbx
	jl	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	4(%rdx), %rcx
	cmpq	%rcx, %rbx
	jg	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %ecx
	subl	%edx, %ecx
	leal	6(%rcx), %edx
	movl	%edx, 12(%rax,%r13)
	movl	$1, (%rax,%r13)
	movl	%ecx, 16(%rax,%r13)
	movq	_COBALT_SYSSTAT_AUD_IN_LOST_DATA_MSK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 20(%rax,%r13)
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_COBALT_HSMA_OUT_NODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	%rcx, %rbx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movabsq	$21474836491, %rcx              ## imm = 0x50000000B
	movq	%rcx, 12(%rax,%r13)
	movl	$1, 4(%rax,%r13)
	movq	_COBALT_SYSSTAT_VOHSMA_LOST_DATA_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax,%r13)
	movq	_COBALT_SYSSTAT_VOHSMA_INT1_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax,%r13)
	movl	$11, %edx
	movl	$5, %ecx
	jmp	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_COBALT_AUDIO_OUT_STREAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	%rcx, %rbx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movabsq	$21474836492, %rcx              ## imm = 0x50000000C
	movq	%rcx, 12(%rax,%r13)
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, (%rax,%r13)
	movq	_COBALT_SYSSTAT_AUD_OUT_LOST_DATA_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax,%r13)
	movl	$12, %edx
	movl	$5, %ecx
	jmp	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_COBALT_NUM_NODES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edx
	subl	%ecx, %edx
	movl	%edx, 12(%rax,%r13)
	movl	16(%rax,%r13), %ecx
	jmp	LBB0_12
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COBALT_NUM_STREAMS,4,2         ## @COBALT_NUM_STREAMS
	.comm	_COBALT_HSMA_IN_NODE,4,2        ## @COBALT_HSMA_IN_NODE
	.comm	_COBALT_SYSSTAT_VI0_LOST_DATA_MSK,4,2 ## @COBALT_SYSSTAT_VI0_LOST_DATA_MSK
	.comm	_COBALT_SYSSTAT_VI0_INT1_MSK,4,2 ## @COBALT_SYSSTAT_VI0_INT1_MSK
	.comm	_COBALT_AUDIO_IN_STREAM,4,2     ## @COBALT_AUDIO_IN_STREAM
	.comm	_COBALT_SYSSTAT_AUD_IN_LOST_DATA_MSK,4,2 ## @COBALT_SYSSTAT_AUD_IN_LOST_DATA_MSK
	.comm	_COBALT_HSMA_OUT_NODE,4,2       ## @COBALT_HSMA_OUT_NODE
	.comm	_COBALT_SYSSTAT_VOHSMA_LOST_DATA_MSK,4,2 ## @COBALT_SYSSTAT_VOHSMA_LOST_DATA_MSK
	.comm	_COBALT_SYSSTAT_VOHSMA_INT1_MSK,4,2 ## @COBALT_SYSSTAT_VOHSMA_INT1_MSK
	.comm	_COBALT_AUDIO_OUT_STREAM,4,2    ## @COBALT_AUDIO_OUT_STREAM
	.comm	_COBALT_SYSSTAT_AUD_OUT_LOST_DATA_MSK,4,2 ## @COBALT_SYSSTAT_AUD_OUT_LOST_DATA_MSK
	.comm	_COBALT_NUM_NODES,4,2           ## @COBALT_NUM_NODES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stream #%d -> dma channel #%d <- video channel %d\n"

	.no_dead_strip	_cobalt_stream_struct_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function cobalt_stream_struct_init
lCPI0_0:
	.long	12                              ; 0xc
	.long	5                               ; 0x5
lCPI0_1:
	.long	11                              ; 0xb
	.long	5                               ; 0x5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_cobalt_stream_struct_init:             ; @cobalt_stream_struct_init
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	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
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
Lloh0:
	adrp	x22, _COBALT_NUM_STREAMS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _COBALT_NUM_STREAMS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x19, x0
	mov	w23, #0
	mov	x20, #0
Lloh2:
	adrp	x24, _COBALT_HSMA_IN_NODE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _COBALT_HSMA_IN_NODE@GOTPAGEOFF]
	mov	w27, #40
	mov	w28, #1
Lloh4:
	adrp	x8, lCPI0_1@PAGE
Lloh5:
	ldr	d8, [x8, lCPI0_1@PAGEOFF]
	movi.2s	v9, #1
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d10, [x8, lCPI0_0@PAGEOFF]
Lloh8:
	adrp	x21, l_.str@PAGE
Lloh9:
	add	x21, x21, l_.str@PAGEOFF
Lloh10:
	adrp	x26, _COBALT_SYSSTAT_VI0_LOST_DATA_MSK@GOTPAGE
Lloh11:
	ldr	x26, [x26, _COBALT_SYSSTAT_VI0_LOST_DATA_MSK@GOTPAGEOFF]
Lloh12:
	adrp	x25, _COBALT_SYSSTAT_VI0_INT1_MSK@GOTPAGE
Lloh13:
	ldr	x25, [x25, _COBALT_SYSSTAT_VI0_INT1_MSK@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	add	w2, w20, w8
	stp	w2, w20, [x9, #-28]
	ldr	w8, [x26]
	lsl	w8, w8, w23
	stur	w8, [x9, #-20]
	ldr	w8, [x25]
	lsl	w8, w8, w23
	stur	w8, [x9, #-16]
	mov	x3, x20
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_cobalt_info
	add	x20, x20, #1
	ldrsw	x8, [x22]
	add	x27, x27, #48
	add	w23, w23, #4
	cmp	x20, x8
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x9, x8, x27
	stp	xzr, x19, [x9, #-8]
	stur	xzr, [x9, #-40]
	stur	w28, [x9, #-32]
	ldrsw	x10, [x24]
	cmp	x20, x10
	b.le	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh14:
	adrp	x10, _COBALT_AUDIO_IN_STREAM@GOTPAGE
Lloh15:
	ldr	x10, [x10, _COBALT_AUDIO_IN_STREAM@GOTPAGEOFF]
Lloh16:
	ldrsw	x10, [x10]
	add	x11, x10, #4
	cmp	x20, x10
	ccmp	x20, x11, #0, ge
	b.le	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh17:
	adrp	x10, _COBALT_HSMA_OUT_NODE@GOTPAGE
Lloh18:
	ldr	x10, [x10, _COBALT_HSMA_OUT_NODE@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	cmp	x20, x10
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	stur	w28, [x9, #-36]
	add	x8, x8, x27
	stur	d8, [x8, #-28]
Lloh20:
	adrp	x9, _COBALT_SYSSTAT_VOHSMA_LOST_DATA_MSK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _COBALT_SYSSTAT_VOHSMA_LOST_DATA_MSK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stur	w9, [x8, #-20]
Lloh23:
	adrp	x9, _COBALT_SYSSTAT_VOHSMA_INT1_MSK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _COBALT_SYSSTAT_VOHSMA_INT1_MSK@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	stur	w9, [x8, #-16]
	mov	w2, #11
	mov	w3, #5
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w3, w20, w10
	neg	w10, w10
	add	x10, x20, x10
	add	w2, w3, #6
	add	w11, w10, #6
	add	x8, x8, x27
	stur	w28, [x9, #-40]
	stp	w11, w10, [x8, #-28]
Lloh26:
	adrp	x9, _COBALT_SYSSTAT_AUD_IN_LOST_DATA_MSK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _COBALT_SYSSTAT_AUD_IN_LOST_DATA_MSK@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stur	w9, [x8, #-20]
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh29:
	adrp	x9, _COBALT_AUDIO_OUT_STREAM@GOTPAGE
Lloh30:
	ldr	x9, [x9, _COBALT_AUDIO_OUT_STREAM@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	cmp	x20, x9
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, x27
	stur	d9, [x8, #-40]
	stur	d10, [x8, #-28]
Lloh32:
	adrp	x9, _COBALT_SYSSTAT_AUD_OUT_LOST_DATA_MSK@GOTPAGE
Lloh33:
	ldr	x9, [x9, _COBALT_SYSSTAT_AUD_OUT_LOST_DATA_MSK@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	stur	w9, [x8, #-20]
	mov	w2, #12
	mov	w3, #5
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh35:
	adrp	x9, _COBALT_NUM_NODES@GOTPAGE
Lloh36:
	ldr	x9, [x9, _COBALT_NUM_NODES@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	sub	w2, w20, w9
	add	x8, x8, x27
	stur	w2, [x8, #-28]
	ldur	w3, [x8, #-24]
	b	LBB0_3
LBB0_12:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #128            ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpAdrp	Lloh4, Lloh6
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_COBALT_NUM_STREAMS,4,2         ; @COBALT_NUM_STREAMS
	.comm	_COBALT_HSMA_IN_NODE,4,2        ; @COBALT_HSMA_IN_NODE
	.comm	_COBALT_SYSSTAT_VI0_LOST_DATA_MSK,4,2 ; @COBALT_SYSSTAT_VI0_LOST_DATA_MSK
	.comm	_COBALT_SYSSTAT_VI0_INT1_MSK,4,2 ; @COBALT_SYSSTAT_VI0_INT1_MSK
	.comm	_COBALT_AUDIO_IN_STREAM,4,2     ; @COBALT_AUDIO_IN_STREAM
	.comm	_COBALT_SYSSTAT_AUD_IN_LOST_DATA_MSK,4,2 ; @COBALT_SYSSTAT_AUD_IN_LOST_DATA_MSK
	.comm	_COBALT_HSMA_OUT_NODE,4,2       ; @COBALT_HSMA_OUT_NODE
	.comm	_COBALT_SYSSTAT_VOHSMA_LOST_DATA_MSK,4,2 ; @COBALT_SYSSTAT_VOHSMA_LOST_DATA_MSK
	.comm	_COBALT_SYSSTAT_VOHSMA_INT1_MSK,4,2 ; @COBALT_SYSSTAT_VOHSMA_INT1_MSK
	.comm	_COBALT_AUDIO_OUT_STREAM,4,2    ; @COBALT_AUDIO_OUT_STREAM
	.comm	_COBALT_SYSSTAT_AUD_OUT_LOST_DATA_MSK,4,2 ; @COBALT_SYSSTAT_AUD_OUT_LOST_DATA_MSK
	.comm	_COBALT_NUM_NODES,4,2           ; @COBALT_NUM_NODES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stream #%d -> dma channel #%d <- video channel %d\n"

	.no_dead_strip	_cobalt_stream_struct_init
.subsections_via_symbols
