	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function commit_planes_for_stream
_commit_planes_for_stream:              ## @commit_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movq	%r8, %r13
	movq	%rcx, %r9
	movl	%edx, %r12d
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %r8
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %eax
	testl	%edx, %edx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	jle	LBB0_4
## %bb.1:
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$0, (%r9)
	je	LBB0_7
## %bb.3:
	movl	$0, (%r9)
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%eax, %eax
LBB0_4:
	movq	_UPDATE_TYPE_FULL@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_7
## %bb.5:
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r8, %rsi
	callq	*56(%rbx)
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_context_clock_trace
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
LBB0_7:
	testq	%r13, %r13
	je	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r9, %rsi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	callq	_commit_planes_do_stream_update
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
LBB0_9:
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.13:
	xorl	%ebx, %ebx
	movq	_UPDATE_TYPE_FAST@GOTPCREL(%rip), %rdx
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	%r12d, -80(%rbp)                ## 4-byte Spill
	movl	%r15d, -72(%rbp)                ## 4-byte Spill
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%r13
	movslq	(%rax), %rcx
	addq	$40, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_22
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r8), %r14
	cmpl	$0, 36(%r14,%rbx)
	jne	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$0, 32(%r14,%rbx)
	jne	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	16(%r14,%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpq	%r9, %rcx
	jne	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	leaq	(%r14,%rbx), %rsi
	cmpq	$0, 8(%r14,%rbx)
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	%r15d, (%rdx)
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r8, %rdi
	movq	%rsi, %r15
	movq	%r9, %rsi
	movq	%rdx, %r12
	callq	_stream_get_status
	movq	16(%r14,%rbx), %rsi
	movl	(%rax), %edx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	*48(%r14)
	movq	%r12, %rdx
	movq	%r15, %rsi
	movl	-72(%rbp), %r15d                ## 4-byte Reload
	movl	-80(%rbp), %r12d                ## 4-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movq	8(%r14), %rax
	jmp	LBB0_21
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	48(%rdi), %rax
	movq	%r9, %rsi
	xorl	%edx, %edx
	movq	%r8, %rcx
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_11:
	xorl	%esi, %esi
LBB0_22:
	movq	_UPDATE_TYPE_FAST@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_34
## %bb.23:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movl	$1, %edx
	callq	*16(%rdi)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testl	%r12d, %r12d
	jle	LBB0_33
## %bb.24:
	movl	%r12d, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	cmpq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_33
LBB0_25:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_27 Depth 2
	cmpl	$0, (%rax)
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jle	LBB0_32
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	shlq	$4, %rbx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx,%rbx), %r15
	addq	%rcx, %rbx
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_27 Depth=2
	incq	%r12
	movslq	(%rax), %rcx
	addq	$40, %r14
	cmpq	%rcx, %r12
	jge	LBB0_32
LBB0_27:                                ##   Parent Loop BB0_25 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdi), %rsi
	cmpq	%rdx, 16(%rsi,%r14)
	jne	LBB0_31
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=2
	cmpq	%r15, 8(%rsi,%r14)
	jne	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_27 Depth=2
	cmpq	$0, (%rbx)
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_27 Depth=2
	addq	%r14, %rsi
	movq	%r13, %rdi
	callq	*24(%r13)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%r13), %rax
	jmp	LBB0_31
LBB0_33:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	*16(%rbx)
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movq	8(%rbx), %rax
LBB0_34:
	cmpl	$0, (%rax)
	jle	LBB0_43
## %bb.35:
	movl	$24, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_36 Depth=1
	incq	%r13
	movslq	(%rax), %rcx
	addq	$40, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_43
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r8), %rcx
	cmpq	$0, (%rcx,%rbx)
	jne	LBB0_42
## %bb.37:                              ##   in Loop: Header=BB0_36 Depth=1
	movq	-8(%rcx,%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_42
## %bb.38:                              ##   in Loop: Header=BB0_36 Depth=1
	cmpq	%r9, %rdx
	jne	LBB0_42
## %bb.39:                              ##   in Loop: Header=BB0_36 Depth=1
	movq	-16(%rcx,%rbx), %rdx
	cmpl	$0, 4(%rdx)
	je	LBB0_42
## %bb.40:                              ##   in Loop: Header=BB0_36 Depth=1
	movq	-24(%rcx,%rbx), %rdi
	movq	(%rdi), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_36 Depth=1
	callq	*%rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	jmp	LBB0_42
LBB0_43:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UPDATE_TYPE_FULL,4,2           ## @UPDATE_TYPE_FULL
	.comm	_UPDATE_TYPE_FAST,4,2           ## @UPDATE_TYPE_FAST
	.no_dead_strip	_commit_planes_for_stream
.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 commit_planes_for_stream
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_commit_planes_for_stream:              ; @commit_planes_for_stream
	.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
	mov	x19, x6
	mov	x25, x5
	mov	x24, x4
	mov	x20, x3
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w2, #1
	b.lt	LBB0_4
; %bb.1:
	cbz	w8, LBB0_4
; %bb.2:
	ldr	w8, [x20]
	cbz	w8, LBB0_6
; %bb.3:
	mov	w8, #0
	str	wzr, [x20]
Lloh0:
	adrp	x9, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x21]
LBB0_4:
Lloh2:
	adrp	x9, _UPDATE_TYPE_FULL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _UPDATE_TYPE_FULL@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w9, w25
	ccmp	w8, #0, #0, eq
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x21, #56]
	mov	x0, x21
	mov	x1, x19
	blr	x8
	mov	x0, x21
	mov	x1, x19
	bl	_context_clock_trace
LBB0_6:
	cbz	x24, LBB0_8
; %bb.7:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	mov	x3, x25
	mov	x4, x19
	bl	_commit_planes_do_stream_update
LBB0_8:
	cbz	w23, LBB0_17
; %bb.9:
	ldr	x8, [x21, #8]
	ldr	w9, [x8]
Lloh5:
	adrp	x12, _UPDATE_TYPE_FAST@GOTPAGE
Lloh6:
	ldr	x12, [x12, _UPDATE_TYPE_FAST@GOTPAGEOFF]
	cmp	w9, #1
	b.lt	LBB0_18
; %bb.10:
	mov	x27, #0
	mov	x28, #0
	mov	x11, #0
	str	w25, [sp, #8]                   ; 4-byte Folded Spill
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x28, x28, #1
	ldrsw	x9, [x8]
	add	x27, x27, #40
	cmp	x28, x9
	b.ge	LBB0_19
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	add	x24, x9, x27
	ldr	w10, [x24, #36]
	cbnz	w10, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w10, [x24, #32]
	cbnz	w10, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x26, x9, x27
	ldr	x9, [x26, #16]
	cmp	x9, #0
	ccmp	x9, x20, #0, ne
	b.ne	LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x26, #8]
	ldr	w10, [x12]
	cmp	x9, #0
	ccmp	w10, w25, #4, ne
	mov	x11, x24
	b.eq	LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x25, x23
	mov	x23, x22
	mov	x22, x12
	bl	_stream_get_status
	ldr	x8, [x21, #48]
	ldr	x1, [x26, #16]
	ldr	w2, [x0]
	mov	x0, x21
	mov	x3, x19
	blr	x8
	mov	x12, x22
	mov	x22, x23
	mov	x23, x25
	ldr	w25, [sp, #8]                   ; 4-byte Folded Reload
	ldr	x8, [x21, #8]
	mov	x11, x24
	b	LBB0_11
LBB0_17:
	ldr	x4, [x21, #48]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	mov	x3, x19
	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
	br	x4
LBB0_18:
	mov	x11, #0
LBB0_19:
	ldr	w9, [x12]
	cmp	w9, w25
	b.ne	LBB0_31
; %bb.20:
	ldr	x8, [x21, #16]
	mov	x0, x21
	str	x11, [sp, #8]                   ; 8-byte Folded Spill
	mov	x1, x11
	mov	w2, #1
	blr	x8
	cmp	w23, #1
	b.lt	LBB0_30
; %bb.21:
	mov	x25, #0
	mov	w23, w23
	ldr	x8, [x21, #8]
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x25, x25, #1
	cmp	x25, x23
	b.eq	LBB0_30
LBB0_23:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_26 Depth 2
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x26, #0
	mov	x27, #0
	add	x28, x22, x25, lsl #4
	ldr	x24, [x28, #8]
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=2
	add	x27, x27, #1
	ldrsw	x9, [x8]
	add	x26, x26, #40
	cmp	x27, x9
	b.ge	LBB0_22
LBB0_26:                                ;   Parent Loop BB0_23 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x19]
	add	x1, x9, x26
	ldr	x9, [x1, #16]
	cmp	x9, x20
	b.ne	LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=2
	ldr	x9, [x1, #8]
	cmp	x9, x24
	b.ne	LBB0_25
; %bb.28:                               ;   in Loop: Header=BB0_26 Depth=2
	ldr	x9, [x28]
	cbz	x9, LBB0_25
; %bb.29:                               ;   in Loop: Header=BB0_26 Depth=2
	ldr	x8, [x21, #24]
	mov	x0, x21
	blr	x8
	ldr	x8, [x21, #8]
	b	LBB0_25
LBB0_30:
	ldr	x8, [x21, #16]
	mov	x0, x21
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	w2, #0
	blr	x8
	ldr	x8, [x21, #8]
LBB0_31:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_39
; %bb.32:
	mov	x22, #0
	mov	x23, #0
	b	LBB0_34
LBB0_33:                                ;   in Loop: Header=BB0_34 Depth=1
	add	x23, x23, #1
	ldrsw	x9, [x8]
	add	x22, x22, #40
	cmp	x23, x9
	b.ge	LBB0_39
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	add	x10, x9, x22
	ldr	x11, [x10, #24]
	cbnz	x11, LBB0_33
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=1
	ldr	x10, [x10, #16]
	cmp	x10, #0
	ccmp	x10, x20, #0, ne
	b.ne	LBB0_33
; %bb.36:                               ;   in Loop: Header=BB0_34 Depth=1
	add	x10, x9, x22
	ldr	x10, [x10, #8]
	ldr	w10, [x10, #4]
	cbz	w10, LBB0_33
; %bb.37:                               ;   in Loop: Header=BB0_34 Depth=1
	ldr	x0, [x9, x22]
	ldr	x9, [x0]
	ldr	x9, [x9]
	cbz	x9, LBB0_33
; %bb.38:                               ;   in Loop: Header=BB0_34 Depth=1
	blr	x9
	ldr	x8, [x21, #8]
	b	LBB0_33
LBB0_39:
	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 AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_UPDATE_TYPE_FULL,4,2           ; @UPDATE_TYPE_FULL
	.comm	_UPDATE_TYPE_FAST,4,2           ; @UPDATE_TYPE_FAST
	.no_dead_strip	_commit_planes_for_stream
.subsections_via_symbols
