	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function dcn20_update_mpcc
LCPI0_0:
	.long	4                               ## 0x4
	.long	126976                          ## 0x1f000
	.long	126976                          ## 0x1f000
	.long	126976                          ## 0x1f000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dcn20_update_mpcc:                     ## @dcn20_update_mpcc
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	16(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movq	$0, -64(%rbp)
	movq	(%rsi), %rbx
	movq	8(%rsi), %rax
	movl	(%rax), %r13d
	movq	(%rdi), %rcx
	movq	8(%rdi), %rax
	movq	(%rcx), %r12
	movq	_VISUAL_CONFIRM_HDR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	-68(%rbp), %rsi
	movq	%r14, %rdi
	callq	_dcn10_get_hdr_visual_confirm_color
	jmp	LBB0_4
LBB0_2:
	movq	_VISUAL_CONFIRM_SURFACE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	leaq	-68(%rbp), %rsi
	movq	%r14, %rdi
	callq	_dcn10_get_surface_visual_confirm_color
LBB0_4:
	testl	%r13d, %r13d
	jne	LBB0_5
## %bb.6:
	movq	_MPCC_ALPHA_BLEND_MODE_GLOBAL_ALPHA@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_MPCC_ALPHA_BLEND_MODE_PER_PIXEL_ALPHA@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movabsq	$1095216660480, %rax            ## imm = 0xFF00000000
	movq	%rax, -112(%rbp)
	movq	8(%r14), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_8
## %bb.9:
	movl	4(%rax), %ecx
	jmp	LBB0_10
LBB0_8:
	movl	$255, %ecx
LBB0_10:
	movl	%ecx, -104(%rbp)
	movq	$0, -80(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [4,126976,126976,126976]
	movups	%xmm0, -100(%rbp)
	movl	%r13d, -84(%rbp)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %r13d
	cmpl	$0, 8(%rax)
	movq	(%r12), %rax
	je	LBB0_11
## %bb.12:
	addq	$4, %rbx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	*24(%rax)
	testq	%rax, %rax
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	je	LBB0_14
## %bb.13:
	movq	(%r12), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	*16(%rcx)
	jmp	LBB0_16
LBB0_11:
	leaq	-112(%rbp), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	*32(%rax)
	jmp	LBB0_17
LBB0_14:
	cmpq	$0, 16(%r15)
	je	LBB0_16
## %bb.15:
	movq	(%r12), %rax
	movq	(%r15), %rcx
	movq	(%rcx), %rdi
	movl	%r13d, %esi
	callq	*8(%rax)
LBB0_16:
	movq	(%r12), %rax
	movq	(%r15), %rcx
	movq	(%rcx), %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %r9d
	movl	%r13d, (%rsp)
	leaq	-112(%rbp), %rdx
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	*(%rax)
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_ASSERT
	movq	(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	%r13d, 4(%rbx)
LBB0_17:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VISUAL_CONFIRM_HDR,8,3         ## @VISUAL_CONFIRM_HDR
	.comm	_VISUAL_CONFIRM_SURFACE,8,3     ## @VISUAL_CONFIRM_SURFACE
	.comm	_MPCC_ALPHA_BLEND_MODE_PER_PIXEL_ALPHA,4,2 ## @MPCC_ALPHA_BLEND_MODE_PER_PIXEL_ALPHA
	.comm	_MPCC_ALPHA_BLEND_MODE_GLOBAL_ALPHA,4,2 ## @MPCC_ALPHA_BLEND_MODE_GLOBAL_ALPHA
	.no_dead_strip	_dcn20_update_mpcc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dcn20_update_mpcc
_dcn20_update_mpcc:                     ; @dcn20_update_mpcc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x1
	mov	x20, x0
	ldp	x8, x24, [x1, #8]
	str	xzr, [sp, #48]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	str	q0, [sp]
	ldr	x23, [x1]
	ldr	w22, [x8]
	ldp	x9, x8, [x0]
	ldr	x21, [x9]
Lloh0:
	adrp	x9, _VISUAL_CONFIRM_HDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VISUAL_CONFIRM_HDR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x8, sp
	add	x1, x8, #44
	mov	x0, x19
	bl	_dcn10_get_hdr_visual_confirm_color
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x9, _VISUAL_CONFIRM_SURFACE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VISUAL_CONFIRM_SURFACE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x8, sp
	add	x1, x8, #44
	mov	x0, x19
	bl	_dcn10_get_surface_visual_confirm_color
LBB0_4:
Lloh6:
	adrp	x8, _MPCC_ALPHA_BLEND_MODE_GLOBAL_ALPHA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MPCC_ALPHA_BLEND_MODE_GLOBAL_ALPHA@GOTPAGEOFF]
Lloh8:
	adrp	x9, _MPCC_ALPHA_BLEND_MODE_PER_PIXEL_ALPHA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MPCC_ALPHA_BLEND_MODE_PER_PIXEL_ALPHA@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [sp, #40]
	movi	d0, #0x0000ff00000000
	str	d0, [sp]
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_6
; %bb.5:
	ldr	w9, [x8, #4]
	b	LBB0_7
LBB0_6:
	mov	w9, #255
LBB0_7:
	mov	w10, #4
	stp	w9, w10, [sp, #8]
	str	xzr, [sp, #32]
	mov	w9, #126976
	dup.2s	v0, w9
	str	d0, [sp, #16]
	stp	w9, w22, [sp, #24]
	ldr	w22, [x24]
	ldr	w9, [x8, #8]
	ldr	x8, [x21]
	cbz	w9, LBB0_10
; %bb.8:
	add	x23, x23, #4
	ldr	x8, [x8, #24]
	mov	x0, x23
	mov	x1, x22
	blr	x8
	cbz	x0, LBB0_11
; %bb.9:
	mov	x2, x0
	ldr	x8, [x21]
	ldr	x8, [x8, #16]
	mov	x0, x21
	mov	x1, x23
	blr	x8
	b	LBB0_13
LBB0_10:
	ldr	x8, [x8, #32]
	mov	x1, sp
	mov	x0, x21
	mov	x2, x22
	blr	x8
	b	LBB0_14
LBB0_11:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	x9, [x20]
	ldr	x0, [x9]
	mov	x1, x22
	blr	x8
LBB0_13:
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	x0, [x9]
	ldr	w5, [x24]
	mov	x2, sp
	mov	x1, x23
	mov	x3, #0
	mov	x4, #0
	mov	x6, x22
	blr	x8
	cmp	x0, #0
	cset	w0, ne
	bl	_ASSERT
	ldr	x8, [x19]
	ldr	w8, [x8]
	stp	w22, w8, [x24, #4]
LBB0_14:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VISUAL_CONFIRM_HDR,8,3         ; @VISUAL_CONFIRM_HDR
	.comm	_VISUAL_CONFIRM_SURFACE,8,3     ; @VISUAL_CONFIRM_SURFACE
	.comm	_MPCC_ALPHA_BLEND_MODE_PER_PIXEL_ALPHA,4,2 ; @MPCC_ALPHA_BLEND_MODE_PER_PIXEL_ALPHA
	.comm	_MPCC_ALPHA_BLEND_MODE_GLOBAL_ALPHA,4,2 ; @MPCC_ALPHA_BLEND_MODE_GLOBAL_ALPHA
	.no_dead_strip	_dcn20_update_mpcc
.subsections_via_symbols
