	.file	"extr_rcar-v4l2.c_rvin_format_align.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Format %ux%u bpl: %u size: %u\n"
	.text
	.p2align 4
	.type	rvin_format_align, @function
rvin_format_align:
.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
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR 20[rsi]
	call	rvin_format_from_pixel@PLT
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR RVIN_DEFAULT_FORMAT[rip]
	mov	DWORD PTR 20[rbx], eax
.L2:
	mov	eax, DWORD PTR [rbx]
	cmp	eax, 133
	jle	.L10
	cmp	eax, 134
	jne	.L5
	mov	DWORD PTR [rbx], 132
	sal	DWORD PTR 4[rbx]
.L4:
	xor	ecx, ecx
	lea	r8, 4[rbx]
	lea	rdi, 16[rbx]
	mov	r9d, 4
	mov	rax, QWORD PTR V4L2_PIX_FMT_NV16[rip]
	cmp	QWORD PTR 8[rbp], rax
	mov	esi, 2
	mov	rax, QWORD PTR 0[rbp]
	sete	cl
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	lea	ecx, 1[0+rcx*4]
	mov	edx, DWORD PTR 4[rax]
	push	0
	.cfi_def_cfa_offset 48
	push	2
	.cfi_def_cfa_offset 56
	mov	eax, DWORD PTR [rax]
	push	rax
	.cfi_def_cfa_offset 64
	call	v4l_bound_align_image@PLT
	mov	rsi, rbx
	add	rsp, 32
	.cfi_def_cfa_offset 32
	mov	rdi, rbp
	call	rvin_format_bytesperline@PLT
	mov	rdi, rbx
	mov	DWORD PTR 12[rbx], eax
	call	rvin_format_sizeimage@PLT
	mov	ecx, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR 16[rbx]
	mov	rdi, rbp
	mov	DWORD PTR 8[rbx], eax
	mov	r8d, DWORD PTR 12[rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	r9d, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	lea	rsi, .LC0[rip]
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	vin_dbg@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	cmp	eax, 127
	jg	.L4
.L5:
	mov	eax, DWORD PTR RVIN_DEFAULT_FIELD[rip]
	mov	DWORD PTR [rbx], eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	rvin_format_align, .-rvin_format_align
	.comm	V4L2_PIX_FMT_NV16,8,8
	.comm	RVIN_DEFAULT_FORMAT,4,4
	.comm	RVIN_DEFAULT_FIELD,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_rcar-v4l2.c_rvin_format_align.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Format %ux%u bpl: %u size: %u\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rvin_format_align, %function
rvin_format_align:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r1
	sub	sp, sp, #28
	ldr	r1, [r1, #20]
	mov	r5, r0
	bl	rvin_format_from_pixel
	cmp	r0, #0
	ldreq	r3, .L11
	ldreq	r3, [r3]
	streq	r3, [r4, #20]
	ldr	r3, [r4]
	cmp	r3, #133
	ble	.L10
	cmp	r3, #134
	bne	.L5
	mov	r2, #132
	ldr	r3, [r4, #4]
	str	r2, [r4]
	lsl	r3, r3, #1
	str	r3, [r4, #4]
.L4:
	mov	r1, #2
	mov	r0, #0
	mov	ip, #4
	ldr	r3, [r5]
	ldr	lr, .L11+4
	ldr	r2, [r3, #4]
	str	r1, [sp, #12]
	str	r0, [sp, #16]
	ldr	r0, [r3]
	ldr	r3, [lr]
	str	r0, [sp, #8]
	ldr	r0, [r5, #4]
	cmp	r0, r3
	add	r0, r4, ip
	moveq	r3, #5
	movne	r3, #1
	stm	sp, {r0, ip}
	add	r0, r4, #16
	bl	v4l_bound_align_image
	mov	r1, r4
	mov	r0, r5
	bl	rvin_format_bytesperline
	mov	r3, r0
	mov	r0, r4
	str	r3, [r4, #12]
	bl	rvin_format_sizeimage
	ldr	r3, [r4, #12]
	str	r0, [r4, #8]
	str	r0, [sp, #4]
	str	r3, [sp]
	mov	r0, r5
	ldr	r3, [r4, #4]
	ldr	r2, [r4, #16]
	ldr	r1, .L11+8
	bl	vin_dbg
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, pc}
.L10:
	cmp	r3, #127
	bgt	.L4
.L5:
	ldr	r3, .L11+12
	ldr	r3, [r3]
	str	r3, [r4]
	b	.L4
.L12:
	.align	2
.L11:
	.word	RVIN_DEFAULT_FORMAT
	.word	V4L2_PIX_FMT_NV16
	.word	.LC0
	.word	RVIN_DEFAULT_FIELD
	.size	rvin_format_align, .-rvin_format_align
	.comm	V4L2_PIX_FMT_NV16,4,4
	.comm	RVIN_DEFAULT_FORMAT,4,4
	.comm	RVIN_DEFAULT_FIELD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
