	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpc1_insert_plane              ## -- Begin function mpc1_insert_plane
	.p2align	4, 0x90
_mpc1_insert_plane:                     ## @mpc1_insert_plane
	.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, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, %r14
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	16(%rbp), %r12d
	callq	_TO_DCN10_MPC
	movq	%rax, %rbx
	xorl	%edi, %edi
	cmpl	%r12d, (%rax)
	setg	%dil
	callq	_ASSERT
	movl	$1, %eax
	movl	%r12d, %ecx
	shll	%cl, %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %eax
	xorl	%edi, %edi
	btl	%r12d, %eax
	setae	%dil
	callq	_ASSERT
	testq	%r14, %r14
	je	LBB0_5
## %bb.1:
	movq	8(%r13), %rax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rax), %rax
	cmpq	%r14, %rax
	jne	LBB0_2
## %bb.4:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_mpc1_get_mpcc
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, (%rax)
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, 16(%rax)
	movq	_MPCC_BOT_SEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movslq	%r12d, %r12
	movl	(%rdx,%r12,4), %edi
	movl	4(%r14), %ecx
	xorl	%esi, %esi
	callq	_REG_SET
	movq	_MPCC_BLEND_MODE_TOP_BOT_BLENDING@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_mpc1_get_mpcc
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, (%rax)
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	$0, 16(%rax)
	movq	_MPCC_BOT_SEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movslq	%r12d, %r12
	movl	(%rdx,%r12,4), %edi
	xorl	%esi, %esi
	movl	$15, %ecx
	callq	_REG_SET
	movq	_MPCC_BLEND_MODE_TOP_LAYER_ONLY@GOTPCREL(%rip), %rax
LBB0_6:
	movq	_MPCC_CONTROL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%r12,4), %edi
	movq	_MPCC_MODE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	(%rax), %edx
	callq	_REG_UPDATE
	movq	_MPCC_TOP_SEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	(%rdx,%r12,4), %edi
	xorl	%esi, %esi
	movl	%r15d, %ecx
	callq	_REG_SET
	movq	_MPCC_OPP_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	(%rdx,%r12,4), %edi
	movl	(%r13), %ecx
	xorl	%esi, %esi
	callq	_REG_SET
	movq	8(%r13), %rax
	cmpq	%r14, %rax
	je	LBB0_17
## %bb.7:
	movq	%rbx, %r13
	movl	16(%rbp), %r15d
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %rbx
	movq	16(%rax), %rax
	cmpq	%r14, %rax
	jne	LBB0_8
## %bb.10:
	movq	_MPCC_BOT_SEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movslq	4(%rbx), %rax
	movl	(%rdx,%rax,4), %edi
	xorl	%esi, %esi
	movl	%r15d, %ecx
	callq	_REG_SET
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	testq	%r14, %r14
	jne	LBB0_13
## %bb.11:
	movslq	4(%rbx), %rax
	shlq	$2, %rax
	movq	_MPCC_CONTROL@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	_MPCC_BLEND_MODE_TOP_BOT_BLENDING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	jmp	LBB0_12
LBB0_17:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r13)
	movq	_MUX@GOTPCREL(%rip), %rcx
	movslq	(%r13), %rax
	shlq	$2, %rax
	addq	(%rcx), %rax
	movq	_MPC_OUT_MUX@GOTPCREL(%rip), %r13
	movl	16(%rbp), %r15d
	movl	%r15d, %edx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_12:
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_REG_UPDATE
LBB0_13:
	movq	(%r12), %rax
	movq	%r12, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	*(%rax)
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_15
## %bb.14:
	movl	(%rsi), %eax
	movl	%eax, 8(%rbx)
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_mpc1_update_stereo_mix
LBB0_15:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	orl	%ecx, 4(%rax)
LBB0_16:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPCC_BOT_SEL,8,3               ## @MPCC_BOT_SEL
	.comm	_MPCC_CONTROL,8,3               ## @MPCC_CONTROL
	.comm	_MPCC_MODE,4,2                  ## @MPCC_MODE
	.comm	_MPCC_BLEND_MODE_TOP_BOT_BLENDING,4,2 ## @MPCC_BLEND_MODE_TOP_BOT_BLENDING
	.comm	_MPCC_BLEND_MODE_TOP_LAYER_ONLY,4,2 ## @MPCC_BLEND_MODE_TOP_LAYER_ONLY
	.comm	_MPCC_TOP_SEL,8,3               ## @MPCC_TOP_SEL
	.comm	_MPCC_OPP_ID,8,3                ## @MPCC_OPP_ID
	.comm	_MUX,8,3                        ## @MUX
	.comm	_MPC_OUT_MUX,4,2                ## @MPC_OUT_MUX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpc1_insert_plane              ; -- Begin function mpc1_insert_plane
	.p2align	2
_mpc1_insert_plane:                     ; @mpc1_insert_plane
	.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	x27, x5
	mov	x25, x4
	mov	x20, x3
	mov	x23, x2
	mov	x26, x1
	mov	x22, x0
	bl	_TO_DCN10_MPC
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w8, w19
	cset	w0, gt
	bl	_ASSERT
	ldr	w8, [x21, #4]
	mvn	w8, w8
	lsr	w8, w8, w19
	and	w0, w8, #0x1
	bl	_ASSERT
	cbz	x25, LBB0_5
; %bb.1:
	ldr	x8, [x26, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x8, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x8, #16]
	cmp	x8, x25
	b.ne	LBB0_2
; %bb.4:
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x22
	mov	x1, x19
	bl	_mpc1_get_mpcc
	mov	x24, x0
	str	w27, [x0]
Lloh0:
	adrp	x8, _MPCC_BOT_SEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPCC_BOT_SEL@GOTPAGEOFF]
	str	x25, [x0, #16]
Lloh2:
	ldr	x2, [x8]
	sxtw	x23, w19
	ldr	w0, [x2, w19, sxtw #2]
	ldr	w3, [x25, #4]
	mov	w1, #0
	bl	_REG_SET
Lloh3:
	adrp	x8, _MPCC_BLEND_MODE_TOP_BOT_BLENDING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MPCC_BLEND_MODE_TOP_BOT_BLENDING@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x22
	mov	x1, x19
	bl	_mpc1_get_mpcc
	mov	x24, x0
	str	w27, [x0]
Lloh5:
	adrp	x8, _MPCC_BOT_SEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MPCC_BOT_SEL@GOTPAGEOFF]
	str	xzr, [x0, #16]
Lloh7:
	ldr	x2, [x8]
	mov	x8, x19
	sxtw	x23, w8
	ldr	w0, [x2, w19, sxtw #2]
	mov	w1, #0
	mov	w3, #15
	bl	_REG_SET
Lloh8:
	adrp	x8, _MPCC_BLEND_MODE_TOP_LAYER_ONLY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MPCC_BLEND_MODE_TOP_LAYER_ONLY@GOTPAGEOFF]
LBB0_6:
Lloh10:
	adrp	x28, _MPCC_CONTROL@GOTPAGE
Lloh11:
	ldr	x28, [x28, _MPCC_CONTROL@GOTPAGEOFF]
	ldr	x9, [x28]
	lsl	x23, x23, #2
	ldr	w0, [x9, x23]
Lloh12:
	adrp	x9, _MPCC_MODE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MPCC_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	ldr	w2, [x8]
	bl	_REG_UPDATE
Lloh15:
	adrp	x8, _MPCC_TOP_SEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MPCC_TOP_SEL@GOTPAGEOFF]
Lloh17:
	ldr	x2, [x8]
	ldr	w0, [x2, x23]
	mov	w1, #0
	mov	x3, x27
	bl	_REG_SET
Lloh18:
	adrp	x8, _MPCC_OPP_ID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MPCC_OPP_ID@GOTPAGEOFF]
Lloh20:
	ldr	x2, [x8]
	ldr	w0, [x2, x23]
	ldr	w3, [x26]
	mov	w1, #0
	bl	_REG_SET
	ldr	x8, [x26, #8]
	cmp	x8, x25
	b.eq	LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x8, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x23, x8
	ldr	x8, [x8, #16]
	cmp	x8, x25
	b.ne	LBB0_7
; %bb.9:
Lloh21:
	adrp	x8, _MPCC_BOT_SEL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MPCC_BOT_SEL@GOTPAGEOFF]
Lloh23:
	ldr	x2, [x8]
	ldrsw	x8, [x23, #4]
	ldr	w0, [x2, x8, lsl #2]
	mov	w1, #0
	mov	x3, x19
	bl	_REG_SET
	str	x24, [x23, #16]
	cbnz	x25, LBB0_14
; %bb.10:
	ldr	x8, [x28]
	ldrsw	x9, [x23, #4]
	add	x8, x8, x9, lsl #2
Lloh24:
	adrp	x9, _MPCC_BLEND_MODE_TOP_BOT_BLENDING@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MPCC_BLEND_MODE_TOP_BOT_BLENDING@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x9]
Lloh27:
	adrp	x9, _MPCC_MODE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MPCC_MODE@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
	mov	x24, #0
	b	LBB0_17
LBB0_12:
	str	x24, [x26, #8]
Lloh29:
	adrp	x8, _MUX@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MUX@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	ldrsw	x9, [x26]
	add	x8, x8, x9, lsl #2
Lloh32:
	adrp	x9, _MPC_OUT_MUX@GOTPAGE
Lloh33:
	ldr	x9, [x9, _MPC_OUT_MUX@GOTPAGEOFF]
	mov	x2, x19
LBB0_13:
	ldr	w0, [x8]
	ldr	w1, [x9]
	bl	_REG_UPDATE
LBB0_14:
	mov	w8, #1
	lsl	w23, w8, w19
	ldr	x8, [x22]
	ldr	x8, [x8]
	mov	x0, x22
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x19
	blr	x8
	cbz	x20, LBB0_16
; %bb.15:
	ldr	w8, [x20]
	str	w8, [x24, #8]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_mpc1_update_stereo_mix
LBB0_16:
	ldr	w8, [x21, #4]
	orr	w8, w8, w23
	str	w8, [x21, #4]
LBB0_17:
	mov	x0, x24
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MPCC_BOT_SEL,8,3               ; @MPCC_BOT_SEL
	.comm	_MPCC_CONTROL,8,3               ; @MPCC_CONTROL
	.comm	_MPCC_MODE,4,2                  ; @MPCC_MODE
	.comm	_MPCC_BLEND_MODE_TOP_BOT_BLENDING,4,2 ; @MPCC_BLEND_MODE_TOP_BOT_BLENDING
	.comm	_MPCC_BLEND_MODE_TOP_LAYER_ONLY,4,2 ; @MPCC_BLEND_MODE_TOP_LAYER_ONLY
	.comm	_MPCC_TOP_SEL,8,3               ; @MPCC_TOP_SEL
	.comm	_MPCC_OPP_ID,8,3                ; @MPCC_OPP_ID
	.comm	_MUX,8,3                        ; @MUX
	.comm	_MPC_OUT_MUX,4,2                ; @MPC_OUT_MUX
.subsections_via_symbols
