	.file	"extr_image-data.c_get_thumbs_dimensions.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_thumbs_dimensions, @function
get_thumbs_dimensions:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	edi, edx
	jne	.L2
	cmp	esi, ecx
	jne	.L2
	mov	DWORD PTR [r8], edx
	mov	eax, 1
	mov	DWORD PTR [r9], ecx
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	test	edx, edx
	jle	.L8
	test	ecx, ecx
	jle	.L8
	pxor	xmm0, xmm0
	pxor	xmm1, xmm1
	pxor	xmm2, xmm2
	cvtsi2sd	xmm0, edx
	cvtsi2sd	xmm1, edi
	cvtsi2sd	xmm2, ecx
	movapd	xmm3, xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, esi
	divsd	xmm3, xmm1
	divsd	xmm2, xmm0
	comisd	xmm2, xmm3
	jbe	.L17
	mulsd	xmm0, xmm3
	mov	DWORD PTR [r8], edx
	addsd	xmm0, QWORD PTR .LC0[rip]
	cvttsd2si	eax, xmm0
	mov	DWORD PTR [r9], eax
	mov	eax, DWORD PTR [r8]
.L6:
	test	eax, eax
	jg	.L7
	mov	DWORD PTR [r8], 1
.L7:
	mov	edx, DWORD PTR [r9]
	mov	eax, 1
	test	edx, edx
	jle	.L19
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	mulsd	xmm1, xmm2
	mov	DWORD PTR [r9], ecx
	addsd	xmm1, QWORD PTR .LC0[rip]
	cvttsd2si	eax, xmm1
	mov	DWORD PTR [r8], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	mov	DWORD PTR [r9], 1
	ret
	.cfi_endproc
.LFE0:
	.size	get_thumbs_dimensions, .-get_thumbs_dimensions
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	4276952897
	.long	1071644671
	.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_image-data.c_get_thumbs_dimensions.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dcmplt
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_d2iz
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_thumbs_dimensions, %function
get_thumbs_dimensions:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, r2
	cmpeq	r1, r3
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r3
	mov	r5, r2
	moveq	r3, #1
	movne	r3, #0
	sub	sp, sp, #12
	beq	.L14
	cmp	r4, #0
	cmpgt	r2, #0
	movle	r0, r3
	ble	.L1
	mov	r6, r1
	bl	__aeabi_i2d
	mov	r10, r0
	mov	fp, r1
	mov	r0, r5
	bl	__aeabi_i2d
	mov	r3, fp
	mov	r2, r10
	bl	__aeabi_ddiv
	mov	r8, r0
	mov	r0, r6
	mov	r9, r1
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r7, r1
	mov	r6, r2
	mov	r0, r4
	bl	__aeabi_i2d
	mov	r2, r6
	mov	r3, r7
	stm	sp, {r6-r7}
	bl	__aeabi_ddiv
	mov	r6, r0
	mov	r7, r1
	mov	r0, r8
	mov	r1, r9
	mov	r2, r6
	mov	r3, r7
	bl	__aeabi_dcmplt
	cmp	r0, #0
	beq	.L11
	ldmia	sp, {r0-r1}
	ldr	r3, [sp, #48]
	mov	r2, r8
	str	r5, [r3]
	mov	r3, r9
	bl	__aeabi_dmul
	ldr	r3, .L15
	ldr	r2, .L15+4
	bl	__aeabi_dadd
	bl	__aeabi_d2iz
	ldr	r3, [sp, #52]
	str	r0, [r3]
	ldr	r3, [sp, #48]
	ldr	r0, [r3]
.L6:
	cmp	r0, #0
	movle	r3, #1
	mov	r0, #1
	ldrle	r2, [sp, #48]
	strle	r3, [r2]
	ldr	r3, [sp, #52]
	ldr	r3, [r3]
	cmp	r3, #0
	ldrle	r3, [sp, #52]
	strle	r0, [r3]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	mov	r0, #1
	ldr	r3, [sp, #48]
	str	r2, [r3]
	ldr	r3, [sp, #52]
	str	r4, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	ldr	r3, [sp, #52]
	mov	r2, r6
	str	r4, [r3]
	mov	r0, r10
	mov	r3, r7
	mov	r1, fp
	bl	__aeabi_dmul
	ldr	r3, .L15
	ldr	r2, .L15+4
	bl	__aeabi_dadd
	bl	__aeabi_d2iz
	ldr	r3, [sp, #48]
	str	r0, [r3]
	b	.L6
.L16:
	.align	2
.L15:
	.word	1071644671
	.word	-18014399
	.size	get_thumbs_dimensions, .-get_thumbs_dimensions
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
