	.file	"extr_aspeed_gfx_crtc.c_aspeed_gfx_set_pixel_fmt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Setting up RGB565 mode\n"
.LC1:
	.string	"Setting up XRGB8888 mode\n"
.LC2:
	.string	"Unhandled pixel format %08x\n"
	.text
	.p2align 4
	.type	aspeed_gfx_set_pixel_fmt, @function
aspeed_gfx_set_pixel_fmt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rax, QWORD PTR 8[rdi]
	mov	r13, QWORD PTR 16[rdi]
	mov	rdi, QWORD PTR CRT_CTRL1[rip]
	mov	rax, QWORD PTR [rax]
	add	rdi, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	r14d, DWORD PTR [rax]
	call	readl@PLT
	mov	r8d, eax
	mov	eax, DWORD PTR CRT_CTRL_COLOR_MASK[rip]
	not	eax
	and	eax, r8d
	mov	ebx, eax
	cmp	r14d, 128
	je	.L2
	cmp	r14d, 129
	jne	.L3
	mov	edi, DWORD PTR 0[r13]
	lea	rsi, .LC0[rip]
	call	dev_dbg@PLT
	or	ebx, DWORD PTR CRT_CTRL_COLOR_RGB565[rip]
	mov	DWORD PTR [r12], 16
	mov	edi, ebx
.L4:
	mov	rsi, QWORD PTR CRT_CTRL1[rip]
	add	rsi, QWORD PTR 0[rbp]
	call	writel@PLT
	pop	rbx
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[r13]
	lea	rsi, .LC1[rip]
	call	dev_dbg@PLT
	or	ebx, DWORD PTR CRT_CTRL_COLOR_XRGB8888[rip]
	mov	DWORD PTR [r12], 32
	mov	edi, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR 0[r13]
	mov	edx, r14d
	lea	rsi, .LC2[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	aspeed_gfx_set_pixel_fmt, .-aspeed_gfx_set_pixel_fmt
	.comm	EINVAL,4,4
	.comm	CRT_CTRL_COLOR_XRGB8888,4,4
	.comm	CRT_CTRL_COLOR_RGB565,4,4
	.comm	CRT_CTRL_COLOR_MASK,4,4
	.comm	CRT_CTRL1,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_aspeed_gfx_crtc.c_aspeed_gfx_set_pixel_fmt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Setting up RGB565 mode\012\000"
	.align	2
.LC1:
	.ascii	"Setting up XRGB8888 mode\012\000"
	.align	2
.LC2:
	.ascii	"Unhandled pixel format %08x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aspeed_gfx_set_pixel_fmt, %function
aspeed_gfx_set_pixel_fmt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r3, [r0, #4]
	ldr	r8, .L8
	ldr	r3, [r3]
	ldr	r0, [r0]
	ldr	r3, [r3]
	ldr	r2, [r8]
	ldr	r3, [r3]
	add	r0, r0, r2
	ldr	r5, [r3]
	mov	r7, r1
	ldr	r9, [r4, #8]
	bl	readl
	ldr	r3, .L8+4
	cmp	r5, #128
	ldr	r6, [r3]
	bic	r6, r0, r6
	beq	.L2
	cmp	r5, #129
	bne	.L3
	ldr	r0, [r9]
	ldr	r1, .L8+8
	bl	dev_dbg
	mov	r3, #16
	ldr	r2, .L8+12
	ldr	r0, [r2]
	str	r3, [r7]
	orr	r0, r6, r0
.L4:
	ldr	r1, [r4]
	ldr	r3, [r8]
	add	r1, r1, r3
	bl	writel
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r0, [r9]
	ldr	r1, .L8+16
	bl	dev_dbg
	mov	r3, #32
	ldr	r2, .L8+20
	ldr	r0, [r2]
	str	r3, [r7]
	orr	r0, r6, r0
	b	.L4
.L3:
	mov	r2, r5
	ldr	r0, [r9]
	ldr	r1, .L8+24
	bl	dev_err
	ldr	r3, .L8+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	.align	2
.L8:
	.word	CRT_CTRL1
	.word	CRT_CTRL_COLOR_MASK
	.word	.LC0
	.word	CRT_CTRL_COLOR_RGB565
	.word	.LC1
	.word	CRT_CTRL_COLOR_XRGB8888
	.word	.LC2
	.word	EINVAL
	.size	aspeed_gfx_set_pixel_fmt, .-aspeed_gfx_set_pixel_fmt
	.comm	EINVAL,4,4
	.comm	CRT_CTRL_COLOR_XRGB8888,4,4
	.comm	CRT_CTRL_COLOR_RGB565,4,4
	.comm	CRT_CTRL_COLOR_MASK,4,4
	.comm	CRT_CTRL1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
