	.file	"extr_ispresizer.c_resizer_try_format.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	resizer_try_format, @function
resizer_try_format:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rcx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	edx, 128
	je	.L2
	cmp	edx, 129
	jne	.L3
	mov	eax, DWORD PTR 8[rcx]
	mov	edx, DWORD PTR MEDIA_BUS_FMT_YUYV8_1X16[rip]
	cmp	eax, edx
	je	.L4
	cmp	eax, DWORD PTR MEDIA_BUS_FMT_UYVY8_1X16[rip]
	je	.L4
	mov	DWORD PTR 8[rcx], edx
.L4:
	mov	rdi, rbp
	call	resizer_max_in_width@PLT
	mov	rsi, QWORD PTR 24[rbx]
	mov	edx, DWORD PTR MIN_IN_WIDTH[rip]
	mov	edi, DWORD PTR u32[rip]
	mov	ecx, eax
	call	clamp_t@PLT
	mov	rsi, QWORD PTR 16[rbx]
	mov	ecx, DWORD PTR MAX_IN_HEIGHT[rip]
	mov	edx, DWORD PTR MIN_IN_HEIGHT[rip]
	mov	edi, DWORD PTR u32[rip]
	mov	QWORD PTR 24[rbx], rax
	call	clamp_t@PLT
	mov	QWORD PTR 16[rbx], rax
.L3:
	mov	eax, DWORD PTR V4L2_COLORSPACE_JPEG[rip]
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR V4L2_FIELD_NONE[rip]
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	ecx, r8d
	mov	edx, 129
	mov	r12d, r8d
	mov	r13, rsi
	call	__resizer_get_format@PLT
	mov	edx, r12d
	mov	rsi, r13
	mov	rdi, rbp
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR 8[rbx], eax
	call	__resizer_get_crop@PLT
	mov	rcx, rsp
	lea	rsi, 4[rsp]
	mov	rdx, rbx
	mov	eax, DWORD PTR [rax]
	mov	rdi, rbp
	mov	DWORD PTR 4[rsp], eax
	call	resizer_calc_ratios@PLT
	jmp	.L3
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	resizer_try_format, .-resizer_try_format
	.comm	u32,4,4
	.comm	V4L2_FIELD_NONE,4,4
	.comm	V4L2_COLORSPACE_JPEG,4,4
	.comm	MIN_IN_WIDTH,4,4
	.comm	MIN_IN_HEIGHT,4,4
	.comm	MEDIA_BUS_FMT_YUYV8_1X16,4,4
	.comm	MEDIA_BUS_FMT_UYVY8_1X16,4,4
	.comm	MAX_IN_HEIGHT,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_ispresizer.c_resizer_try_format.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	resizer_try_format, %function
resizer_try_format:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r3
	ldr	r3, .L9
	sub	sp, sp, #16
	cmp	r2, #128
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r6, r0
	beq	.L2
	cmp	r2, #129
	bne	.L3
	ldr	r2, .L9+4
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L4
	ldr	r1, .L9+8
	ldr	r1, [r1]
	cmp	r3, r1
	strne	r2, [r4, #8]
.L4:
	ldr	r3, .L9+12
	ldr	r5, .L9+16
	mov	r0, r6
	ldr	r8, [r3]
	ldr	r6, [r5]
	ldr	r7, [r4, #16]
	bl	resizer_max_in_width
	mov	r2, r8
	mov	r3, r0
	mov	r1, r7
	mov	r0, r6
	bl	clamp_t
	ldr	r3, .L9+20
	ldr	r2, .L9+24
	str	r0, [r4, #16]
	ldr	r3, [r3]
	ldr	r0, [r5]
	ldr	r2, [r2]
	ldr	r1, [r4, #12]
	bl	clamp_t
	str	r0, [r4, #12]
.L3:
	ldr	r3, .L9+28
	ldr	r2, .L9+32
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r3, [r4]
	ldr	r3, .L9
	str	r2, [r4, #4]
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, [sp, #40]
	mov	r2, #129
	mov	r5, r1
	bl	__resizer_get_format
	ldr	r3, [r0, #8]
	mov	r1, r5
	ldr	r2, [sp, #40]
	str	r3, [r4, #8]
	mov	r0, r6
	bl	__resizer_get_crop
	ldr	ip, [r0]
	mov	r2, r4
	mov	r0, r6
	add	r3, sp, #4
	add	r1, sp, #8
	str	ip, [sp, #8]
	bl	resizer_calc_ratios
	b	.L3
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	MEDIA_BUS_FMT_YUYV8_1X16
	.word	MEDIA_BUS_FMT_UYVY8_1X16
	.word	MIN_IN_WIDTH
	.word	u32
	.word	MAX_IN_HEIGHT
	.word	MIN_IN_HEIGHT
	.word	V4L2_FIELD_NONE
	.word	V4L2_COLORSPACE_JPEG
	.size	resizer_try_format, .-resizer_try_format
	.comm	u32,4,4
	.comm	V4L2_FIELD_NONE,4,4
	.comm	V4L2_COLORSPACE_JPEG,4,4
	.comm	MIN_IN_WIDTH,4,4
	.comm	MIN_IN_HEIGHT,4,4
	.comm	MEDIA_BUS_FMT_YUYV8_1X16,4,4
	.comm	MEDIA_BUS_FMT_UYVY8_1X16,4,4
	.comm	MAX_IN_HEIGHT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
