	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_update_surfaces_for_stream
_check_update_surfaces_for_stream:      ## @check_update_surfaces_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	_UPDATE_TYPE_FAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	testq	%r8, %r8
	je	LBB0_2
## %bb.1:
	cmpl	%edx, (%r8)
	jne	LBB0_2
## %bb.3:
	movq	%rsi, %r12
	movq	%rdi, %r14
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.4:
	cmpq	$0, 48(%rcx)
	je	LBB0_6
## %bb.5:
	cmpq	$0, 56(%rcx)
	jne	LBB0_2
LBB0_6:
	cmpq	$0, 32(%rcx)
	je	LBB0_8
## %bb.7:
	cmpq	$0, 40(%rcx)
	jne	LBB0_2
LBB0_8:
	cmpq	$0, 24(%rcx)
	jne	LBB0_2
## %bb.9:
	cmpq	$0, 16(%rcx)
	jne	LBB0_2
## %bb.10:
	cmpq	$0, 8(%rcx)
	je	LBB0_11
LBB0_2:
	movq	_UPDATE_TYPE_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	testl	%edx, %edx
	jle	LBB0_16
## %bb.12:
	movl	%edx, %ebx
	movq	_UPDATE_TYPE_FULL@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r15
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_det_surface_update
	cmpl	(%r13), %eax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_elevate_update_type
	addq	$4, %r12
	decq	%rbx
	jne	LBB0_13
## %bb.15:
	movl	-44(%rbp), %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_UPDATE_TYPE_FAST,4,2           ## @UPDATE_TYPE_FAST
	.comm	_UPDATE_TYPE_FULL,4,2           ## @UPDATE_TYPE_FULL
	.no_dead_strip	_check_update_surfaces_for_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_update_surfaces_for_stream
_check_update_surfaces_for_stream:      ; @check_update_surfaces_for_stream
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _UPDATE_TYPE_FAST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UPDATE_TYPE_FAST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	str	w1, [sp, #12]
	cbz	x4, LBB0_10
; %bb.1:
	ldr	w8, [x4]
	cmp	w8, w2
	b.ne	LBB0_10
; %bb.2:
	mov	x20, x0
	cbz	x3, LBB0_12
; %bb.3:
	ldr	x8, [x3, #48]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x3, #56]
	cbnz	x8, LBB0_10
LBB0_5:
	ldr	x8, [x3, #32]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x3, #40]
	cbnz	x8, LBB0_10
LBB0_7:
	ldr	x8, [x3, #24]
	cbnz	x8, LBB0_10
; %bb.8:
	ldr	x8, [x3, #16]
	cbnz	x8, LBB0_10
; %bb.9:
	ldr	x8, [x3, #8]
	cbz	x8, LBB0_12
LBB0_10:
Lloh3:
	adrp	x8, _UPDATE_TYPE_FULL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UPDATE_TYPE_FULL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
LBB0_11:
	mov	x0, x1
	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
	add	sp, sp, #64
	ret
LBB0_12:
	cmp	w2, #1
	b.lt	LBB0_11
; %bb.13:
	mov	w21, w2
Lloh6:
	adrp	x22, _UPDATE_TYPE_FULL@GOTPAGE
Lloh7:
	ldr	x22, [x22, _UPDATE_TYPE_FULL@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_det_surface_update
	mov	x1, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x0, sp, #12
	bl	_elevate_update_type
	add	x19, x19, #4
	subs	x21, x21, #1
	b.ne	LBB0_14
; %bb.16:
	ldr	w1, [sp, #12]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_UPDATE_TYPE_FAST,4,2           ; @UPDATE_TYPE_FAST
	.comm	_UPDATE_TYPE_FULL,4,2           ; @UPDATE_TYPE_FULL
	.no_dead_strip	_check_update_surfaces_for_stream
.subsections_via_symbols
