	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_all_planes_for_stream
_add_all_planes_for_stream:             ## @add_all_planes_for_stream
	.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	%r8, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.1:
	movl	%ecx, %esi
	leaq	16(%rdx), %rdi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rdi)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	addq	$24, %rdi
	cmpq	%rax, %rsi
	jne	LBB0_2
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	cmpl	%ecx, %eax
	jne	LBB0_9
LBB0_6:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_dm_error
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%eax, %eax
	leaq	(%rax,%rax,2), %rcx
	movl	$1, %eax
	cmpl	$0, (%rdx,%rcx,8)
	jle	LBB0_8
## %bb.10:
	leaq	(%rdx,%rcx,8), %r13
	addq	$8, %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%r12,4), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rcx
	callq	_dc_add_plane_to_context
	testl	%eax, %eax
	je	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%r12
	movslq	-8(%r13), %rax
	cmpq	%rax, %r12
	jl	LBB0_11
## %bb.13:
	movl	$1, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Stream %p not found in set!\n"

	.no_dead_strip	_add_all_planes_for_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_all_planes_for_stream
_add_all_planes_for_stream:             ; @add_all_planes_for_stream
	.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	x20, x4
	mov	x19, x1
	mov	x21, x0
	cmp	w3, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x8, #0
	mov	w9, w3
	add	x10, x2, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cmp	x11, x19
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	add	x10, x10, #24
	cmp	x9, x8
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w8, #0
LBB0_5:
	cmp	w8, w3
	b.ne	LBB0_7
LBB0_6:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_dm_error
	mov	w0, #0
	b	LBB0_12
LBB0_7:
	mov	w9, #24
	umaddl	x22, w8, w9, x2
	mov	x23, x22
	ldr	w8, [x23], #8
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.8:
	mov	x24, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w2, [x8, x24, lsl #2]
	mov	x0, x21
	mov	x1, x19
	mov	x3, x20
	bl	_dc_add_plane_to_context
	cbz	w0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	cmp	x24, x8
	b.lt	LBB0_9
LBB0_11:
	mov	w0, #1
LBB0_12:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Stream %p not found in set!\n"

	.no_dead_strip	_add_all_planes_for_stream
.subsections_via_symbols
