	.file	"extr_omapfb_main.c__setcolreg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_setcolreg, @function
_setcolreg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, r8d
	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
	movsx	r12, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rdx, QWORD PTR 32[rdi]
	mov	rbx, rdi
	mov	eax, DWORD PTR [rdx]
	cmp	eax, 132
	jg	.L2
	cmp	eax, 130
	jg	.L3
	add	eax, -128
	cmp	eax, 2
	ja	.L4
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	sub	eax, 133
	cmp	eax, 3
	ja	.L4
	mov	rax, QWORD PTR 8[rdx]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L3
	mov	r8d, r9d
	mov	ecx, r14d
	mov	r9d, DWORD PTR 48[rsp]
	mov	edx, r13d
	mov	esi, ebp
	mov	edi, r12d
	call	rax
	test	eax, eax
	jne	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	xor	eax, eax
	cmp	r12d, 15
	jg	.L1
	mov	esi, 16
	mov	rdx, QWORD PTR [rbx]
	mov	ecx, esi
	sub	ecx, DWORD PTR 24[rbx]
	sar	ebp, cl
	mov	ecx, DWORD PTR 20[rbx]
	sal	ebp, cl
	mov	ecx, esi
	sub	ecx, DWORD PTR 16[rbx]
	sub	esi, DWORD PTR 8[rbx]
	sar	r13d, cl
	mov	ecx, DWORD PTR 12[rbx]
	sal	r13d, cl
	mov	ecx, esi
	or	ebp, r13d
	sar	r14d, cl
	or	ebp, r14d
	mov	DWORD PTR [rdx+r12*4], ebp
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	xor	eax, eax
	call	BUG@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	_setcolreg, .-_setcolreg
	.comm	EINVAL,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_omapfb_main.c__setcolreg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_setcolreg, %function
_setcolreg:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, [r0, #24]
	mov	r5, r1
	ldr	ip, [r0]
	mov	r6, r2
	cmp	ip, #132
	mov	r7, r3
	sub	sp, sp, #8
	bgt	.L2
	cmp	ip, #130
	bgt	.L3
	sub	ip, ip, #128
	cmp	ip, #2
	bhi	.L4
	ldr	r3, .L15
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	sub	ip, ip, #133
	cmp	ip, #3
	bhi	.L4
	ldr	r3, [r0, #4]
	ldr	r3, [r3]
	ldr	r8, [r3]
	cmp	r8, #0
	beq	.L3
	ldr	r3, [sp, #40]
	mov	r2, r7
	str	r3, [sp, #4]
	ldr	r3, [sp, #36]
	mov	r1, r6
	str	r3, [sp]
	mov	r0, r5
	ldr	r3, [sp, #32]
	blx	r8
	cmp	r0, #0
	bne	.L1
.L3:
	cmp	r5, #15
	movgt	r0, #0
	bgt	.L1
	ldr	r3, [r4, #12]
	ldr	r1, [r4, #20]
	ldr	r2, [r4, #8]
	rsb	r3, r3, #16
	ldr	r0, [r4, #16]
	asr	r3, r7, r3
	rsb	r1, r1, #16
	asr	r6, r6, r1
	lsl	r3, r3, r2
	ldr	r2, [r4, #4]
	orr	r3, r3, r6, lsl r0
	ldr	r0, [sp, #32]
	rsb	r2, r2, #16
	orr	r3, r3, r0, asr r2
	mov	r0, #0
	ldr	r1, [r4]
	str	r3, [r1, r5, lsl #2]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	bl	BUG
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	.align	2
.L15:
	.word	EINVAL
	.size	_setcolreg, .-_setcolreg
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
