	.file	"extr_adv7511_drv.c_adv7511_set_colormap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	adv7511_set_colormap, @function
adv7511_set_colormap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, DWORD PTR ADV7511_CSC_UPDATE_MODE[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	edi, 1
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, esi
	call	ADV7511_REG_CSC_UPPER@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	ecx, r14d
	mov	edx, r14d
	mov	esi, eax
	call	regmap_update_bits@PLT
	test	ebx, ebx
	je	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r14d, DWORD PTR [r12+rbx*4]
	mov	edi, ebx
	call	ADV7511_REG_CSC_UPPER@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, 31
	sar	r14d, 8
	mov	esi, eax
	mov	ecx, r14d
	call	regmap_update_bits@PLT
	movzx	r14d, BYTE PTR [r12+rbx*4]
	mov	edi, ebx
	add	rbx, 1
	call	ADV7511_REG_CSC_LOWER@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, eax
	mov	edx, r14d
	call	regmap_write@PLT
	cmp	rbx, 12
	jne	.L3
	xor	edi, edi
	call	ADV7511_REG_CSC_UPPER@PLT
	mov	ecx, r13d
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, 224
	sal	ecx, 5
	mov	esi, eax
	or	cl, -128
	call	regmap_update_bits@PLT
.L5:
	mov	r12d, DWORD PTR ADV7511_CSC_UPDATE_MODE[rip]
	mov	edi, 1
	call	ADV7511_REG_CSC_UPPER@PLT
	mov	edi, DWORD PTR 0[rbp]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	ecx, ecx
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	edx, r12d
	mov	esi, eax
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	regmap_update_bits@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	edi, edi
	call	ADV7511_REG_CSC_UPPER@PLT
	mov	edi, DWORD PTR 0[rbp]
	xor	ecx, ecx
	mov	edx, 128
	mov	esi, eax
	call	regmap_update_bits@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	adv7511_set_colormap, .-adv7511_set_colormap
	.comm	ADV7511_CSC_UPDATE_MODE,4,4
	.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_adv7511_drv.c_adv7511_set_colormap.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	adv7511_set_colormap, %function
adv7511_set_colormap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	mov	r0, #1
	mov	r4, r1
	mov	r5, r2
	mov	r8, r3
	ldr	r7, [r6]
	bl	ADV7511_REG_CSC_UPPER
	ldr	r9, .L10
	mov	r1, r0
	ldr	r3, [r9]
	mov	r0, r7
	mov	r2, r3
	bl	regmap_update_bits
	cmp	r4, #0
	beq	.L2
	mov	r4, #0
	sub	r5, r5, #4
.L3:
	mov	r0, r4
	ldr	r7, [r6]
	bl	ADV7511_REG_CSC_UPPER
	ldr	r3, [r5, #4]!
	mov	r1, r0
	mov	r2, #31
	asr	r3, r3, #8
	mov	r0, r7
	bl	regmap_update_bits
	mov	r0, r4
	ldr	r7, [r6]
	bl	ADV7511_REG_CSC_LOWER
	add	r4, r4, #1
	mov	r1, r0
	ldrb	r2, [r5]	@ zero_extendqisi2
	mov	r0, r7
	bl	regmap_write
	cmp	r4, #12
	bne	.L3
	mov	r0, #0
	ldr	r4, [r6]
	bl	ADV7511_REG_CSC_UPPER
	lsl	r3, r8, #5
	mov	r1, r0
	mov	r2, #224
	mov	r0, r4
	orr	r3, r3, #128
	bl	regmap_update_bits
.L5:
	mov	r0, #1
	ldr	r4, [r6]
	bl	ADV7511_REG_CSC_UPPER
	ldr	r2, [r9]
	mov	r1, r0
	mov	r3, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	regmap_update_bits
.L2:
	mov	r0, r4
	ldr	r5, [r6]
	bl	ADV7511_REG_CSC_UPPER
	mov	r3, r4
	mov	r1, r0
	mov	r2, #128
	mov	r0, r5
	bl	regmap_update_bits
	b	.L5
.L11:
	.align	2
.L10:
	.word	ADV7511_CSC_UPDATE_MODE
	.size	adv7511_set_colormap, .-adv7511_set_colormap
	.comm	ADV7511_CSC_UPDATE_MODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
