	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function det_surface_update
_det_surface_update:                    ## @det_surface_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %rdi
	movq	_UPDATE_TYPE_FAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	(%rsi), %r15
	movq	$0, 16(%r15)
	cmpq	$0, 48(%rsi)
	je	LBB0_2
## %bb.1:
	movl	$1, 16(%r15)
LBB0_2:
	movq	(%rbx), %rsi
	callq	_is_surface_in_context
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_6
## %bb.5:
	movl	$1, 24(%r15)
	movq	_UPDATE_TYPE_FULL@GOTPCREL(%rip), %r14
	jmp	LBB0_26
LBB0_3:
	movl	$1, 20(%r15)
	movq	_UPDATE_TYPE_FULL@GOTPCREL(%rip), %r14
	jmp	LBB0_26
LBB0_6:
	movq	%rbx, %rdi
	callq	_get_plane_info_update_type
	leaq	-28(%rbp), %r14
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_elevate_update_type
	movq	%rbx, %rdi
	callq	_get_scaling_info_update_type
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_elevate_update_type
	cmpq	$0, 48(%rbx)
	je	LBB0_8
## %bb.7:
	movl	$1, 16(%r15)
LBB0_8:
	cmpq	$0, 40(%rbx)
	je	LBB0_10
## %bb.9:
	movl	$1, 28(%r15)
LBB0_10:
	cmpq	$0, 32(%rbx)
	je	LBB0_12
## %bb.11:
	movl	$1, 32(%r15)
LBB0_12:
	cmpq	$0, 24(%rbx)
	je	LBB0_14
## %bb.13:
	movl	$1, 36(%r15)
LBB0_14:
	cmpq	$0, 16(%rbx)
	je	LBB0_20
## %bb.15:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_18
## %bb.16:
	movq	(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	movq	_SURFACE_PIXEL_FORMAT_GRPH_BEGIN@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %edi
	callq	_dce_use_lut
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movl	$1, 40(%r15)
LBB0_20:
	cmpl	$0, 28(%r15)
	je	LBB0_22
## %bb.21:
	movq	_UPDATE_TYPE_MED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdi
	callq	_elevate_update_type
LBB0_22:
	cmpl	$0, 32(%r15)
	jne	LBB0_25
## %bb.23:
	cmpl	$0, 36(%r15)
	jne	LBB0_25
## %bb.24:
	cmpl	$0, 40(%r15)
	je	LBB0_26
LBB0_25:
	movq	_UPDATE_TYPE_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_elevate_update_type
LBB0_26:
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UPDATE_TYPE_FAST,4,2           ## @UPDATE_TYPE_FAST
	.comm	_UPDATE_TYPE_FULL,4,2           ## @UPDATE_TYPE_FULL
	.comm	_SURFACE_PIXEL_FORMAT_GRPH_BEGIN,4,2 ## @SURFACE_PIXEL_FORMAT_GRPH_BEGIN
	.comm	_UPDATE_TYPE_MED,4,2            ## @UPDATE_TYPE_MED
	.no_dead_strip	_det_surface_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function det_surface_update
_det_surface_update:                    ; @det_surface_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _UPDATE_TYPE_FAST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UPDATE_TYPE_FAST@GOTPAGEOFF]
	ldr	x0, [x0]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	x20, [x1]
	str	xzr, [x20, #16]
	ldr	x8, [x1, #48]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x20, #16]
LBB0_2:
	ldr	x1, [x19]
	bl	_is_surface_in_context
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_7
; %bb.4:
	mov	w8, #1
	str	w8, [x20, #24]
	b	LBB0_6
LBB0_5:
	mov	w8, #1
	str	w8, [x20, #20]
LBB0_6:
Lloh3:
	adrp	x19, _UPDATE_TYPE_FULL@GOTPAGE
Lloh4:
	ldr	x19, [x19, _UPDATE_TYPE_FULL@GOTPAGEOFF]
	b	LBB0_26
LBB0_7:
	mov	x0, x19
	bl	_get_plane_info_update_type
	mov	x1, x0
	add	x0, sp, #12
	bl	_elevate_update_type
	mov	x0, x19
	bl	_get_scaling_info_update_type
	mov	x1, x0
	add	x0, sp, #12
	bl	_elevate_update_type
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x20, #16]
LBB0_9:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_11
; %bb.10:
	mov	w8, #1
	str	w8, [x20, #28]
LBB0_11:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_13
; %bb.12:
	mov	w8, #1
	str	w8, [x20, #32]
LBB0_13:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_15
; %bb.14:
	mov	w8, #1
	str	w8, [x20, #36]
LBB0_15:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_20
; %bb.16:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_18
; %bb.17:
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _SURFACE_PIXEL_FORMAT_GRPH_BEGIN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SURFACE_PIXEL_FORMAT_GRPH_BEGIN@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x8, eq
LBB0_18:
	ldr	w0, [x8]
	bl	_dce_use_lut
	cbz	x0, LBB0_20
; %bb.19:
	mov	w8, #1
	str	w8, [x20, #40]
LBB0_20:
	ldr	w8, [x20, #28]
	cbz	w8, LBB0_22
; %bb.21:
Lloh7:
	adrp	x8, _UPDATE_TYPE_MED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _UPDATE_TYPE_MED@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_elevate_update_type
LBB0_22:
	ldr	w8, [x20, #32]
	cbnz	w8, LBB0_25
; %bb.23:
	ldr	w8, [x20, #36]
	cbnz	w8, LBB0_25
; %bb.24:
	ldr	w8, [x20, #40]
	cbz	w8, LBB0_27
LBB0_25:
Lloh10:
	adrp	x8, _UPDATE_TYPE_FULL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _UPDATE_TYPE_FULL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x19, sp, #12
	add	x0, sp, #12
	bl	_elevate_update_type
LBB0_26:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_27:
	add	x19, sp, #12
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_UPDATE_TYPE_FAST,4,2           ; @UPDATE_TYPE_FAST
	.comm	_UPDATE_TYPE_FULL,4,2           ; @UPDATE_TYPE_FULL
	.comm	_SURFACE_PIXEL_FORMAT_GRPH_BEGIN,4,2 ; @SURFACE_PIXEL_FORMAT_GRPH_BEGIN
	.comm	_UPDATE_TYPE_MED,4,2            ; @UPDATE_TYPE_MED
	.no_dead_strip	_det_surface_update
.subsections_via_symbols
