	.file	"extr_picture_rescale_enc.c_AdjustAndCheckRectangle.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	AdjustAndCheckRectangle, @function
AdjustAndCheckRectangle:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, r8d
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	call	SnapTopLeftPosition@PLT
	mov	ecx, DWORD PTR [rbx]
	xor	eax, eax
	test	ecx, ecx
	js	.L1
	mov	r8d, DWORD PTR 0[rbp]
	test	r8d, r8d
	js	.L1
	test	r13d, r13d
	jle	.L5
	test	r14d, r14d
	jle	.L5
	add	ecx, r13d
	cmp	ecx, DWORD PTR [r12]
	jg	.L1
	xor	eax, eax
	add	r8d, r14d
	cmp	r8d, DWORD PTR 4[r12]
	setle	al
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	ret
	.cfi_endproc
.LFE0:
	.size	AdjustAndCheckRectangle, .-AdjustAndCheckRectangle
	.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_picture_rescale_enc.c_AdjustAndCheckRectangle.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	AdjustAndCheckRectangle, %function
AdjustAndCheckRectangle:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r4, r3
	mov	r7, r0
	mov	r6, r2
	bl	SnapTopLeftPosition
	ldr	r3, [r5]
	cmp	r3, #0
	blt	.L5
	ldr	r2, [r6]
	cmp	r2, #0
	blt	.L5
	ldr	r1, [sp, #24]
	cmp	r1, #0
	cmpgt	r4, #0
	movle	r0, #1
	movgt	r0, #0
	ble	.L5
	ldr	r1, [r7]
	add	r3, r3, r4
	cmp	r3, r1
	popgt	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [sp, #24]
	ldr	r0, [r7, #4]
	add	r2, r2, r3
	cmp	r2, r0
	movgt	r0, #0
	movle	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
	.size	AdjustAndCheckRectangle, .-AdjustAndCheckRectangle
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
