	.file	"extr_w996Xcf.c_w9968cf_set_crop_window.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	w9968cf_set_crop_window, @function
w9968cf_set_crop_window:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	rax, QWORD PTR SEN_OV7620[rip]
	mov	r14d, 35
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	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
	cmp	QWORD PTR 32[rdi], 1
	mov	ebx, 320
	sbb	esi, esi
	and	esi, 192
	add	esi, 288
	cmp	QWORD PTR 32[rdi], 1
	sbb	ecx, ecx
	and	ecx, 288
	add	ecx, 352
	cmp	QWORD PTR [rdi], rax
	jne	.L3
	mov	rax, QWORD PTR 24[rdi]
	mov	ebx, 277
	mov	edx, 105
	mov	r14d, 37
	cmp	DWORD PTR [rax], 1
	cmovne	ebx, edx
.L3:
	mov	r12d, DWORD PTR 20[rbp]
	mov	r13d, DWORD PTR 16[rbp]
	sal	r12d, 10
	sal	r13d, 10
	mov	eax, r12d
	cdq
	idiv	ecx
	mov	r9d, eax
	mov	eax, r13d
	cdq
	idiv	esi
	mov	r10d, eax
	cmp	r9d, eax
	jge	.L4
	mov	eax, r12d
	mov	r13d, esi
	cdq
	idiv	r10d
	mov	edx, ecx
	sub	edx, eax
	mov	r12d, eax
	mov	eax, edx
	shr	eax, 31
	add	eax, edx
	sar	eax
	add	ebx, eax
.L5:
	mov	DWORD PTR 8[rbp], ecx
	mov	edx, ebx
	mov	rdi, rbp
	mov	DWORD PTR 12[rbp], esi
	mov	esi, 16
	call	reg_w@PLT
	mov	edx, r14d
	mov	rdi, rbp
	mov	esi, 17
	call	reg_w@PLT
	lea	edx, [r12+rbx]
	mov	rdi, rbp
	mov	esi, 18
	call	reg_w@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	edx, 0[r13+r14]
	mov	rdi, rbp
	mov	esi, 19
	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
	jmp	reg_w@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, r13d
	mov	r12d, ecx
	cdq
	idiv	r9d
	mov	edx, esi
	sub	edx, eax
	mov	r13d, eax
	mov	eax, edx
	shr	eax, 31
	add	eax, edx
	sar	eax
	add	r14d, eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	w9968cf_set_crop_window, .-w9968cf_set_crop_window
	.comm	SEN_OV7620,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_w996Xcf.c_w9968cf_set_crop_window.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	w9968cf_set_crop_window, %function
w9968cf_set_crop_window:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L11
	ldr	r1, [r0, #24]
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r1, #0
	movne	r10, #288
	moveq	r10, #480
	movne	fp, #352
	moveq	fp, #640
	cmp	r2, r3
	mov	r4, r0
	movne	r9, #35
	movne	r5, #320
	bne	.L3
	ldr	r3, [r0, #20]
	ldr	r5, .L11+4
	ldr	r3, [r3]
	mov	r9, #37
	cmp	r3, #1
	movne	r5, #105
.L3:
	ldr	r8, [r4, #16]
	mov	r1, fp
	lsl	r8, r8, #10
	mov	r0, r8
	bl	__aeabi_idiv
	ldr	r6, [r4, #12]
	mov	r7, r0
	lsl	r6, r6, #10
	mov	r1, r10
	mov	r0, r6
	bl	__aeabi_idiv
	cmp	r7, r0
	mov	r1, r0
	bge	.L4
	mov	r0, r8
	bl	__aeabi_idiv
	mov	r7, r10
	mov	r6, r0
	sub	r3, fp, r0
	add	r3, r3, r3, lsr #31
	add	r5, r5, r3, asr #1
.L5:
	mov	r2, r5
	mov	r1, #16
	mov	r0, r4
	str	fp, [r4, #4]
	str	r10, [r4, #8]
	bl	reg_w
	mov	r2, r9
	mov	r1, #17
	mov	r0, r4
	bl	reg_w
	add	r2, r6, r5
	mov	r1, #18
	mov	r0, r4
	bl	reg_w
	mov	r0, r4
	add	r2, r7, r9
	mov	r1, #19
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	reg_w
.L4:
	mov	r1, r7
	mov	r0, r6
	bl	__aeabi_idiv
	sub	r3, r10, r0
	add	r3, r3, r3, lsr #31
	mov	r7, r0
	mov	r6, fp
	add	r9, r9, r3, asr #1
	b	.L5
.L12:
	.align	2
.L11:
	.word	SEN_OV7620
	.word	277
	.size	w9968cf_set_crop_window, .-w9968cf_set_crop_window
	.comm	SEN_OV7620,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
