	.file	"extr_atafb.c_falcon_setcolreg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	falcon_setcolreg, @function
falcon_setcolreg:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r10d, 1
	cmp	edi, 255
	ja	.L1
	mov	eax, edx
	mov	r10d, ecx
	mov	r8d, edi
	sal	eax, 8
	shr	r10d, 8
	and	r10d, 252
	and	eax, 16515072
	or	eax, r10d
	mov	r10d, esi
	sal	r10d, 16
	and	r10d, -67108864
	or	eax, r10d
	mov	r10, QWORD PTR f030_col[rip]
	mov	DWORD PTR [r10+r8*4], eax
	xor	r10d, r10d
	cmp	edi, 15
	ja	.L1
	mov	eax, ecx
	mov	edi, ecx
	shr	ecx, 11
	shr	eax, 13
	shr	edi, 12
	and	ecx, 31
	and	edi, 1
	and	eax, 7
	or	eax, edi
	mov	edi, edx
	shr	edi, 13
	and	edi, 7
	or	eax, edi
	mov	edi, esi
	shr	edi, 13
	and	edi, 7
	or	eax, edi
	mov	edi, edx
	shr	edx, 5
	shr	edi, 8
	and	edx, 2016
	and	edi, 16
	or	eax, edi
	mov	edi, esi
	and	esi, 63488
	shr	edi, 4
	or	edx, esi
	and	edi, 256
	or	edx, ecx
	or	eax, edi
	mov	rdi, QWORD PTR shifter_tt[rip]
	mov	DWORD PTR [rdi+r8*4], eax
	mov	rax, QWORD PTR [r9]
	mov	DWORD PTR [rax+r8*4], edx
.L1:
	mov	eax, r10d
	ret
	.cfi_endproc
.LFE0:
	.size	falcon_setcolreg, .-falcon_setcolreg
	.comm	shifter_tt,8,8
	.comm	f030_col,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_atafb.c_falcon_setcolreg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	falcon_setcolreg, %function
falcon_setcolreg:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #255
	bhi	.L3
	push	{r4, r5, lr}
	mov	r4, r0
	ldr	r5, .L10
	lsl	lr, r2, #8
	lsr	ip, r3, #8
	and	lr, lr, #16515072
	and	ip, ip, #252
	lsl	r0, r1, #16
	orr	ip, lr, ip
	and	r0, r0, #-67108864
	ldr	lr, [r5]
	orr	ip, ip, r0
	cmp	r4, #15
	str	ip, [lr, r4, lsl #2]
	bhi	.L4
	lsr	r0, r3, #12
	lsl	ip, r3, #16
	and	r0, r0, #1
	orr	r0, r0, ip, lsr #29
	lsl	ip, r2, #16
	lsl	lr, r1, #16
	orr	r0, r0, ip, lsr #29
	lsr	ip, r2, #8
	orr	r0, r0, lr, lsr #29
	and	ip, ip, #16
	lsr	r2, r2, #5
	orr	r0, r0, ip
	and	r2, r2, #2016
	lsr	ip, r1, #4
	and	r1, r1, #63488
	lsl	r5, r3, #16
	ldr	lr, .L10+4
	orr	r3, r2, r1
	ldr	r2, [sp, #16]
	ldr	lr, [lr]
	ldr	r1, [r2]
	and	ip, ip, #256
	orr	r2, r0, ip
	orr	r3, r3, r5, lsr #27
	str	r2, [lr, r4, lsl #2]
	mov	r0, #0
	str	r3, [r1, r4, lsl #2]
	pop	{r4, r5, pc}
.L4:
	mov	r0, #0
	pop	{r4, r5, pc}
.L3:
	mov	r0, #1
	bx	lr
.L11:
	.align	2
.L10:
	.word	f030_col
	.word	shifter_tt
	.size	falcon_setcolreg, .-falcon_setcolreg
	.comm	shifter_tt,4,4
	.comm	f030_col,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
