	.file	"extr_lcd_dma.c_omap_setup_lcd_dma.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	omap_setup_lcd_dma
	.type	omap_setup_lcd_dma, @function
omap_setup_lcd_dma:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	edi, DWORD PTR lcd_dma[rip+4]
	call	BUG_ON@PLT
	xor	eax, eax
	call	cpu_is_omap15xx@PLT
	test	eax, eax
	je	.L8
.L2:
	xor	eax, eax
	call	set_b1_regs@PLT
	xor	eax, eax
	call	cpu_is_omap15xx@PLT
	test	eax, eax
	je	.L9
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR OMAP1610_DMA_LCD_CCR[rip]
	mov	edi, 21568
	call	omap_writew@PLT
	mov	esi, DWORD PTR OMAP1610_DMA_LCD_CSDP[rip]
	mov	edi, 37122
	call	omap_writew@PLT
	mov	esi, DWORD PTR OMAP1610_DMA_LCD_LCH_CTRL[rip]
	mov	edi, 4
	call	omap_writew@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR OMAP1610_DMA_LCD_CCR[rip]
	call	omap_readw@PLT
	mov	edx, DWORD PTR lcd_dma[rip]
	mov	edi, eax
	or	edi, 2816
	test	edx, edx
	jne	.L10
	mov	esi, DWORD PTR OMAP1610_DMA_LCD_CCR[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	omap_writew@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, DWORD PTR OMAP1610_DMA_LCD_CCR[rip]
	or	ah, 8
	add	rsp, 8
	.cfi_def_cfa_offset 8
	mov	edi, eax
	jmp	omap_writew@PLT
	.cfi_endproc
.LFE0:
	.size	omap_setup_lcd_dma, .-omap_setup_lcd_dma
	.comm	lcd_dma,8,8
	.comm	OMAP1610_DMA_LCD_LCH_CTRL,4,4
	.comm	OMAP1610_DMA_LCD_CSDP,4,4
	.comm	OMAP1610_DMA_LCD_CCR,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_lcd_dma.c_omap_setup_lcd_dma.c"
	.text
	.align	2
	.global	omap_setup_lcd_dma
	.syntax unified
	.arm
	.fpu softvfp
	.type	omap_setup_lcd_dma, %function
omap_setup_lcd_dma:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, .L9
	ldr	r0, [r4, #4]
	bl	BUG_ON
	bl	cpu_is_omap15xx
	cmp	r0, #0
	beq	.L8
.L2:
	bl	set_b1_regs
	bl	cpu_is_omap15xx
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r5, .L9+4
	ldr	r0, [r5]
	bl	omap_readw
	ldr	r3, [r4]
	ldr	r1, [r5]
	cmp	r3, #0
	orrne	r0, r0, #2048
	orreq	r0, r0, #2816
	pop	{r4, r5, r6, lr}
	b	omap_writew
.L8:
	ldr	r3, .L9+4
	ldr	r0, .L9+8
	ldr	r1, [r3]
	bl	omap_writew
	ldr	r3, .L9+12
	ldr	r0, .L9+16
	ldr	r1, [r3]
	bl	omap_writew
	ldr	r3, .L9+20
	mov	r0, #4
	ldr	r1, [r3]
	bl	omap_writew
	b	.L2
.L10:
	.align	2
.L9:
	.word	lcd_dma
	.word	OMAP1610_DMA_LCD_CCR
	.word	21568
	.word	OMAP1610_DMA_LCD_CSDP
	.word	37122
	.word	OMAP1610_DMA_LCD_LCH_CTRL
	.size	omap_setup_lcd_dma, .-omap_setup_lcd_dma
	.comm	lcd_dma,8,4
	.comm	OMAP1610_DMA_LCD_LCH_CTRL,4,4
	.comm	OMAP1610_DMA_LCD_CSDP,4,4
	.comm	OMAP1610_DMA_LCD_CCR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
