	.file	"extr_tcm825x.c_tcm825x_configure.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"configuring image size %d\n"
.LC1:
	.string	"configuring pixel format %d\n"
	.text
	.p2align 4
	.type	tcm825x_configure, @function
tcm825x_configure:
.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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR [rdi]
	mov	esi, DWORD PTR 32[rbx]
	mov	edx, DWORD PTR 28[rbx]
	call	tcm825x_find_size@PLT
	mov	rdx, QWORD PTR 8[rbx]
	mov	r13d, eax
	xor	eax, eax
	call	[QWORD PTR [rdx]]
	mov	rdi, QWORD PTR [rbx]
	mov	esi, eax
	call	tcm825x_write_default_regs@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L7
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.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
.L7:
	.cfi_restore_state
	mov	rax, QWORD PTR tcm825x_siz_reg[rip]
	mov	r12d, r13d
	mov	rdi, QWORD PTR [rbx]
	mov	edx, r13d
	lea	rsi, .LC0[rip]
	mov	rax, QWORD PTR [rax+r12*8]
	mov	r14d, DWORD PTR [rax]
	call	dev_dbg@PLT
	mov	rax, QWORD PTR tcm825x_siz_reg[rip]
	mov	rdi, QWORD PTR [rbx]
	mov	edx, r14d
	mov	rax, QWORD PTR [rax+r12*8]
	mov	esi, DWORD PTR 4[rax]
	call	tcm825x_write_reg_mask@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	cmp	DWORD PTR 24[rbx], 128
	mov	r12d, DWORD PTR YUV422[rip]
	je	.L4
	mov	r12d, DWORD PTR RGB565[rip]
.L4:
	mov	rdi, QWORD PTR [rbx]
	mov	edx, r12d
	lea	rsi, .LC1[rip]
	call	dev_dbg@PLT
	mov	rax, QWORD PTR tcm825x_fmt_reg[rip]
	mov	rdi, QWORD PTR [rbx]
	mov	rax, QWORD PTR [rax+r12*8]
	mov	esi, DWORD PTR 4[rax]
	mov	edx, DWORD PTR [rax]
	call	tcm825x_write_reg_mask@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR 16[rbx]
	cdq
	idiv	DWORD PTR 20[rbx]
	cmp	DWORD PTR HIGH_FPS_MODE_LOWER_LIMIT[rip], eax
	jl	.L1
	mov	rdi, QWORD PTR [rbx]
	mov	esi, 2
	call	tcm825x_read_reg@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	esi, 2
	or	al, -128
	mov	edx, eax
	call	tcm825x_write_reg@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	tcm825x_configure, .-tcm825x_configure
	.comm	tcm825x_siz_reg,8,8
	.comm	tcm825x_fmt_reg,8,8
	.comm	YUV422,4,4
	.comm	RGB565,4,4
	.comm	HIGH_FPS_MODE_LOWER_LIMIT,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_tcm825x.c_tcm825x_configure.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"configuring image size %d\012\000"
	.align	2
.LC1:
	.ascii	"configuring pixel format %d\012\000"
	.global	__aeabi_idiv
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tcm825x_configure, %function
tcm825x_configure:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r0]
	ldr	r2, [r5, #20]
	ldr	r1, [r5, #24]
	bl	tcm825x_find_size
	ldr	r3, [r5, #4]
	ldr	r4, [r5]
	ldr	r3, [r3]
	mov	r6, r0
	blx	r3
	mov	r1, r0
	mov	r0, r4
	bl	tcm825x_write_default_regs
	subs	r4, r0, #0
	beq	.L7
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r4, .L8
	mov	r2, r6
	ldr	r3, [r4]
	ldr	r1, .L8+4
	ldr	r3, [r3, r6, lsl #2]
	ldr	r0, [r5]
	ldr	r7, [r3]
	bl	dev_dbg
	ldr	r3, [r4]
	mov	r2, r7
	ldr	r3, [r3, r6, lsl #2]
	ldr	r0, [r5]
	ldr	r1, [r3, #4]
	bl	tcm825x_write_reg_mask
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, [r5, #16]
	ldr	r1, .L8+8
	cmp	r3, #128
	ldrne	r3, .L8+12
	ldreq	r3, .L8+16
	ldr	r0, [r5]
	ldr	r4, [r3]
	mov	r2, r4
	bl	dev_dbg
	ldr	r3, .L8+20
	ldr	r0, [r5]
	ldr	r3, [r3]
	ldr	r3, [r3, r4, lsl #2]
	ldr	r2, [r3]
	ldr	r1, [r3, #4]
	bl	tcm825x_write_reg_mask
	subs	r4, r0, #0
	bne	.L1
	ldr	r1, [r5, #12]
	ldr	r0, [r5, #8]
	bl	__aeabi_idiv
	ldr	r3, .L8+24
	ldr	r3, [r3]
	cmp	r3, r0
	blt	.L1
	mov	r1, #2
	ldr	r0, [r5]
	bl	tcm825x_read_reg
	mov	r1, #2
	orr	r2, r0, #128
	ldr	r0, [r5]
	bl	tcm825x_write_reg
	b	.L1
.L9:
	.align	2
.L8:
	.word	tcm825x_siz_reg
	.word	.LC0
	.word	.LC1
	.word	RGB565
	.word	YUV422
	.word	tcm825x_fmt_reg
	.word	HIGH_FPS_MODE_LOWER_LIMIT
	.size	tcm825x_configure, .-tcm825x_configure
	.comm	tcm825x_siz_reg,4,4
	.comm	tcm825x_fmt_reg,4,4
	.comm	YUV422,4,4
	.comm	RGB565,4,4
	.comm	HIGH_FPS_MODE_LOWER_LIMIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
