	.file	"extr_dcn20_mpc.c_mpc20_configure_ogam_lut.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mpc20_configure_ogam_lut, @function
mpc20_configure_ogam_lut:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movsx	rbx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	TO_DCN20_MPC@PLT
	mov	rax, QWORD PTR MPCC_OGAM_LUT_RAM_CONTROL[rip]
	cmp	ebp, 1
	mov	ecx, DWORD PTR MPCC_OGAM_LUT_RAM_SEL[rip]
	setne	r8b
	mov	esi, DWORD PTR MPCC_OGAM_LUT_WRITE_EN_MASK[rip]
	mov	edx, 7
	mov	edi, DWORD PTR [rax+rbx*4]
	movzx	r8d, r8b
	call	REG_UPDATE_2@PLT
	mov	rdx, QWORD PTR MPCC_OGAM_LUT_INDEX[rip]
	xor	ecx, ecx
	xor	esi, esi
	mov	edi, DWORD PTR [rdx+rbx*4]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	REG_SET@PLT
	.cfi_endproc
.LFE0:
	.size	mpc20_configure_ogam_lut, .-mpc20_configure_ogam_lut
	.comm	MPCC_OGAM_LUT_WRITE_EN_MASK,4,4
	.comm	MPCC_OGAM_LUT_RAM_SEL,4,4
	.comm	MPCC_OGAM_LUT_RAM_CONTROL,8,8
	.comm	MPCC_OGAM_LUT_INDEX,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_dcn20_mpc.c_mpc20_configure_ogam_lut.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mpc20_configure_ogam_lut, %function
mpc20_configure_ogam_lut:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r2
	sub	sp, sp, #12
	mov	r5, r1
	bl	TO_DCN20_MPC
	subs	r4, r4, #1
	movne	r4, #1
	ldr	r2, .L4
	ldr	r3, .L4+4
	ldr	r1, [r2]
	ldr	r2, .L4+8
	ldr	r0, [r1, r5, lsl #2]
	ldr	r3, [r3]
	str	r4, [sp]
	ldr	r1, [r2]
	mov	r2, #7
	bl	REG_UPDATE_2
	mov	r3, #0
	mov	r1, r3
	ldr	r2, .L4+12
	ldr	r2, [r2]
	ldr	r0, [r2, r5, lsl #2]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, lr}
	b	REG_SET
.L5:
	.align	2
.L4:
	.word	MPCC_OGAM_LUT_RAM_CONTROL
	.word	MPCC_OGAM_LUT_RAM_SEL
	.word	MPCC_OGAM_LUT_WRITE_EN_MASK
	.word	MPCC_OGAM_LUT_INDEX
	.size	mpc20_configure_ogam_lut, .-mpc20_configure_ogam_lut
	.comm	MPCC_OGAM_LUT_WRITE_EN_MASK,4,4
	.comm	MPCC_OGAM_LUT_RAM_SEL,4,4
	.comm	MPCC_OGAM_LUT_RAM_CONTROL,4,4
	.comm	MPCC_OGAM_LUT_INDEX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
