	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function commit_planes_do_stream_update
_commit_planes_do_stream_update:        ## @commit_planes_do_stream_update
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	64(%rdi), %rax
	cmpl	$0, (%rax)
	jle	LBB0_41
## %bb.1:
	movq	%r8, %r13
	movq	%rdi, %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	addq	$4, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	jmp	LBB0_2
LBB0_39:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdi), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %esi
	callq	*(%rax)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	64(%rbx), %rax
	movslq	(%rax), %rax
	addq	$56, %r12
	cmpq	%rax, %r14
	jge	LBB0_41
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %r15
	cmpl	$0, 52(%r15,%r12)
	jne	LBB0_40
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 48(%r15,%r12)
	jne	LBB0_40
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, 40(%r15,%r12)
	jne	LBB0_40
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, 88(%rdx)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_VLINE0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	*%rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 80(%rdx)
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_VLINE1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	*%rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 72(%rdx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 12(%rax)
	je	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 64(%rdx)
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 56(%rdx)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 48(%rdx)
	je	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_resource_build_info_frame
	movq	%r13, %rdi
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	callq	*32(%rbx)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 40(%rdx)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_dc_stream_set_gamut_remap
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 32(%rdx)
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_dc_stream_program_csc_matrix
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 24(%rdx)
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%r15,%r12), %rdi
	leaq	8(%rdi), %rsi
	callq	_resource_build_bit_depth_reduction_params
	movq	24(%r15,%r12), %rdi
	movq	(%rdi), %rax
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	*(%rax)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movq	_UPDATE_TYPE_FAST@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	je	LBB0_40
## %bb.24:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%rdx)
	je	LBB0_34
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %edx
	callq	*(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_30
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_core_link_disable_stream
	movq	16(%r15,%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 56(%rbx)
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdi), %rax
	callq	*(%rax)
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	48(%rbx), %esi
	movq	%rbx, %rdi
	callq	*16(%rbx)
	jmp	LBB0_33
LBB0_30:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 52(%rbx)
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	48(%rbx), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
LBB0_32:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	48(%rbx), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_core_link_enable_stream
LBB0_33:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	*(%rbx)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_34:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%rdx)
	je	LBB0_40
## %bb.35:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15,%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_40
## %bb.36:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15,%r12), %rax
	movq	(%rax), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_39
## %bb.37:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rdi
	callq	*%rcx
	testl	%eax, %eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_40
## %bb.38:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15,%r12), %rdi
	jmp	LBB0_39
LBB0_41:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VLINE0,4,2                     ## @VLINE0
	.comm	_VLINE1,4,2                     ## @VLINE1
	.comm	_UPDATE_TYPE_FAST,4,2           ## @UPDATE_TYPE_FAST
	.no_dead_strip	_commit_planes_do_stream_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function commit_planes_do_stream_update
_commit_planes_do_stream_update:        ; @commit_planes_do_stream_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x8, [x0, #64]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_41
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	x27, #0
	mov	x28, #0
	add	x9, x1, #8
	add	x8, x1, #4
	stp	x8, x9, [sp]                    ; 16-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w1, [x22]
	blr	x8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x28, x28, #1
	ldr	x8, [x23, #64]
	ldrsw	x8, [x8]
	add	x27, x27, #56
	cmp	x28, x8
	b.ge	LBB0_41
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x19]
	add	x26, x24, x27
	ldr	w8, [x26, #52]
	cbnz	w8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26, #48]
	cbnz	w8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x24, x27
	ldr	x8, [x25, #40]
	cmp	x8, x22
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #88]
	cbz	x8, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23, #40]
	cbz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh0:
	adrp	x9, _VLINE0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VLINE0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x26
	blr	x8
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #80]
	cbz	x8, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23, #40]
	cbz	x8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh3:
	adrp	x9, _VLINE1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VLINE1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	mov	x0, x26
	blr	x8
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #72]
	cbz	x8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22, #12]
	cbz	w8, LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #64]
	cbnz	x8, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #56]
	cbnz	x8, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #48]
	cbz	x8, LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	bl	_resource_build_info_frame
	ldr	x8, [x23, #32]
	mov	x0, x26
	blr	x8
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_dc_stream_set_gamut_remap
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_dc_stream_program_csc_matrix
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x25, #40]
	add	x1, x0, #8
	bl	_resource_build_bit_depth_reduction_params
	add	x8, x24, x27
	ldr	x0, [x8, #24]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldp	x2, x1, [sp]                    ; 16-byte Folded Reload
	blr	x8
LBB0_25:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh6:
	adrp	x8, _UPDATE_TYPE_FAST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UPDATE_TYPE_FAST@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_3
; %bb.26:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_36
; %bb.27:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	mov	x0, x23
	mov	x1, x26
	mov	w2, #1
	blr	x8
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_32
; %bb.28:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	bl	_core_link_disable_stream
	add	x8, x24, x27
	ldr	x0, [x8, #16]
	cbz	x0, LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23, #56]
	cbnz	w8, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
LBB0_31:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23, #16]
	ldr	w1, [x23, #48]
	mov	x0, x23
	blr	x8
	b	LBB0_35
LBB0_32:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23, #52]
	cbnz	w8, LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23, #8]
	ldr	w1, [x23, #48]
	mov	x0, x23
	blr	x8
LBB0_34:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23, #48]
	mov	x1, x26
	bl	_core_link_enable_stream
LBB0_35:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	mov	x0, x23
	mov	x1, x26
	mov	w2, #0
	blr	x8
LBB0_36:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	cbz	x8, LBB0_3
; %bb.37:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x24, x27]
	cbz	x0, LBB0_3
; %bb.38:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x24, x27
	ldr	x8, [x8, #8]
	ldr	x9, [x8]
	ldr	x9, [x9]
	cbz	x9, LBB0_2
; %bb.39:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x8
	blr	x9
	cbnz	w0, LBB0_3
; %bb.40:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x24, x27]
	b	LBB0_2
LBB0_41:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VLINE0,4,2                     ; @VLINE0
	.comm	_VLINE1,4,2                     ; @VLINE1
	.comm	_UPDATE_TYPE_FAST,4,2           ; @UPDATE_TYPE_FAST
	.no_dead_strip	_commit_planes_do_stream_update
.subsections_via_symbols
