	.file	"extr_wm8505fb.c_wm8505fb_set_par.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wm8505fb_set_par, @function
wm8505fb_set_par:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	to_wm8505fb_info@PLT
	test	rax, rax
	je	.L8
	mov	rbx, rax
	mov	eax, DWORD PTR 0[rbp]
	cmp	eax, 32
	je	.L9
	cmp	eax, 16
	je	.L10
.L5:
	mov	rdi, rbp
	call	wm8505fb_set_timing@PLT
	mov	eax, DWORD PTR [rbx]
	mov	rsi, QWORD PTR WMT_GOVR_CONTRAST[rip]
	add	rsi, QWORD PTR 8[rbx]
	mov	edi, eax
	mov	edx, eax
	sal	edx, 8
	sal	edi, 16
	or	edi, edx
	or	edi, eax
	call	writel@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	movabs	rax, 34359738376
	mov	DWORD PTR 8[rbp], 8
	mov	QWORD PTR 32[rbp], rax
	add	rax, 8
	mov	QWORD PTR 48[rbp], rax
	mov	rax, QWORD PTR FB_VISUAL_TRUECOLOR[rip]
	mov	QWORD PTR 16[rbp], 0
	mov	QWORD PTR 72[rbp], rax
	mov	eax, DWORD PTR 4[rbp]
	mov	QWORD PTR 24[rbp], 0
	sal	eax, 2
	mov	QWORD PTR 40[rbp], 0
	mov	QWORD PTR 56[rbp], 0
	mov	DWORD PTR 64[rbp], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	movabs	rax, 25769803781
	mov	DWORD PTR 8[rbp], 5
	mov	QWORD PTR 32[rbp], rax
	movabs	rax, 21474836491
	mov	QWORD PTR 48[rbp], rax
	mov	rax, QWORD PTR FB_VISUAL_TRUECOLOR[rip]
	mov	QWORD PTR 16[rbp], 0
	mov	QWORD PTR 72[rbp], rax
	mov	eax, DWORD PTR 4[rbp]
	mov	QWORD PTR 24[rbp], 0
	add	eax, eax
	mov	QWORD PTR 40[rbp], 0
	mov	QWORD PTR 56[rbp], 0
	mov	DWORD PTR 64[rbp], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	wm8505fb_set_par, .-wm8505fb_set_par
	.comm	WMT_GOVR_CONTRAST,8,8
	.comm	FB_VISUAL_TRUECOLOR,8,8
	.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_wm8505fb.c_wm8505fb_set_par.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wm8505fb_set_par, %function
wm8505fb_set_par:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	to_wm8505fb_info
	subs	r5, r0, #0
	beq	.L8
	ldr	r3, [r4]
	cmp	r3, #32
	beq	.L9
	cmp	r3, #16
	beq	.L10
.L5:
	mov	r0, r4
	bl	wm8505fb_set_timing
	ldr	r3, [r5]
	ldr	r2, .L11
	ldr	r1, [r5, #4]
	ldr	r2, [r2]
	lsl	r0, r3, #8
	orr	r0, r0, r3, lsl #16
	add	r1, r1, r2
	orr	r0, r0, r3
	bl	writel
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L9:
	mov	r2, #8
	mov	r3, #0
	mov	r0, #16
	ldr	ip, .L11+4
	ldr	r1, [r4, #4]
	ldr	ip, [ip]
	lsl	r1, r1, #2
	str	ip, [r4, #48]
	str	r1, [r4, #44]
	str	r0, [r4, #32]
	str	r2, [r4, #36]
	str	r2, [r4, #20]
	str	r2, [r4, #24]
	str	r2, [r4, #8]
	str	r3, [r4, #40]
	str	r3, [r4, #28]
	str	r3, [r4, #16]
	str	r3, [r4, #12]
	b	.L5
.L10:
	mov	ip, #11
	mov	r3, #0
	mov	r2, #5
	mov	r0, #6
	ldr	r1, .L11+4
	str	ip, [r4, #32]
	ldr	ip, [r1]
	ldr	r1, [r4, #4]
	str	ip, [r4, #48]
	lsl	r1, r1, #1
	str	r1, [r4, #44]
	str	r2, [r4, #36]
	str	r2, [r4, #20]
	str	r2, [r4, #8]
	str	r3, [r4, #40]
	str	r3, [r4, #28]
	str	r3, [r4, #16]
	str	r3, [r4, #12]
	str	r0, [r4, #24]
	b	.L5
.L8:
	ldr	r3, .L11+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	WMT_GOVR_CONTRAST
	.word	FB_VISUAL_TRUECOLOR
	.word	EINVAL
	.size	wm8505fb_set_par, .-wm8505fb_set_par
	.comm	WMT_GOVR_CONTRAST,4,4
	.comm	FB_VISUAL_TRUECOLOR,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
