	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dc_post_update_surfaces_to_stream ## -- Begin function dc_post_update_surfaces_to_stream
	.p2align	4, 0x90
_dc_post_update_surfaces_to_stream:     ## @dc_post_update_surfaces_to_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r15
	cmpq	$0, 32(%rdi)
	jne	LBB0_9
## %bb.2:
	movq	40(%r15), %r14
	movq	%r15, %rdi
	callq	_post_surface_trace
	movq	24(%r15), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, (%rsi,%rbx)
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	*16(%r15)
	movq	24(%r15), %rax
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	movslq	(%rax), %rcx
	addq	$24, %rbx
	cmpq	%rcx, %r12
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	cmpq	$0, 16(%rsi,%rbx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 8(%rsi,%rbx)
	jne	LBB0_7
	jmp	LBB0_6
LBB0_8:
	movl	$0, (%r15)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	*8(%r15)
LBB0_9:
	movl	$1, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dc_post_update_surfaces_to_stream ; -- Begin function dc_post_update_surfaces_to_stream
	.p2align	2
_dc_post_update_surfaces_to_stream:     ; @dc_post_update_surfaces_to_stream
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #32]
	cbnz	x8, LBB0_9
; %bb.2:
	ldr	x20, [x19, #40]
	mov	x0, x19
	bl	_post_surface_trace
	ldr	x8, [x19, #24]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x21, #0
	mov	x22, #0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w22, [x1]
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #24]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	ldrsw	x9, [x8]
	add	x21, x21, #24
	cmp	x22, x9
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	add	x1, x9, x21
	ldr	x9, [x1, #16]
	cbz	x9, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x1, #8]
	cbnz	x9, LBB0_5
	b	LBB0_4
LBB0_8:
	str	wzr, [x19]
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
LBB0_9:
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
