	.file	"extr_s3c2410fb.c_s3c2410fb_set_par.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	s3c2410fb_set_par, @function
s3c2410fb_set_par:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	eax, DWORD PTR 8[rdi]
	cmp	eax, 12
	je	.L2
	jg	.L3
	cmp	eax, 1
	jne	.L5
	mov	edx, DWORD PTR FB_VISUAL_MONO01[rip]
	mov	DWORD PTR 4[rdi], edx
.L6:
	imul	eax, DWORD PTR 12[rdi]
	test	eax, eax
	lea	edx, 7[rax]
	cmovs	eax, edx
	sar	eax, 3
	mov	DWORD PTR [rdi], eax
	call	s3c2410fb_activate_var@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	lea	edx, -16[rax]
	and	edx, -17
	je	.L2
.L5:
	mov	edx, DWORD PTR FB_VISUAL_PSEUDOCOLOR[rip]
	mov	DWORD PTR 4[rdi], edx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edx, DWORD PTR FB_VISUAL_TRUECOLOR[rip]
	mov	DWORD PTR 4[rdi], edx
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	s3c2410fb_set_par, .-s3c2410fb_set_par
	.comm	FB_VISUAL_TRUECOLOR,4,4
	.comm	FB_VISUAL_PSEUDOCOLOR,4,4
	.comm	FB_VISUAL_MONO01,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_s3c2410fb.c_s3c2410fb_set_par.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	s3c2410fb_set_par, %function
s3c2410fb_set_par:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #8]
	push	{r4, lr}
	sub	r2, r3, #1
	cmp	r2, #31
	ldrls	pc, [pc, r2, asl #2]
	b	.L2
.L4:
	.word	.L5
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L3
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L3
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L3
.L2:
	ldr	r2, .L9
	ldr	r2, [r2]
	str	r2, [r0, #4]
.L6:
	ldr	r2, [r0, #12]
	mul	r3, r2, r3
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	asr	r3, r3, #3
	str	r3, [r0]
	bl	s3c2410fb_activate_var
	mov	r0, #0
	pop	{r4, pc}
.L3:
	ldr	r2, .L9+4
	ldr	r2, [r2]
	str	r2, [r0, #4]
	b	.L6
.L5:
	ldr	r2, .L9+8
	ldr	r2, [r2]
	str	r2, [r0, #4]
	b	.L6
.L10:
	.align	2
.L9:
	.word	FB_VISUAL_PSEUDOCOLOR
	.word	FB_VISUAL_TRUECOLOR
	.word	FB_VISUAL_MONO01
	.size	s3c2410fb_set_par, .-s3c2410fb_set_par
	.comm	FB_VISUAL_TRUECOLOR,4,4
	.comm	FB_VISUAL_PSEUDOCOLOR,4,4
	.comm	FB_VISUAL_MONO01,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
