	.file	"extr_image.c_letterbox_image_into.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	letterbox_image_into
	.type	letterbox_image_into, @function
letterbox_image_into:
.LFB0:
	.cfi_startproc
	endbr64
	pxor	xmm0, xmm0
	pxor	xmm1, xmm1
	mov	rax, rdi
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	cvtsi2ss	xmm1, edi
	sar	rax, 32
	pxor	xmm2, xmm2
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	cvtsi2ss	xmm0, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r9d, edx
	mov	r12, rcx
	cvtsi2ss	xmm2, eax
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	divss	xmm0, xmm1
	pxor	xmm1, xmm1
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cvtsi2ss	xmm1, edx
	divss	xmm1, xmm2
	comiss	xmm1, xmm0
	jbe	.L6
	imul	eax, esi
	xor	r13d, r13d
	cdq
	idiv	edi
	sub	r9d, eax
	mov	r8d, eax
	mov	r14d, r9d
	shr	r14d, 31
	add	r14d, r9d
	sar	r14d
.L4:
	mov	edx, r8d
	call	resize_image@PLT
	mov	ecx, r14d
	mov	edx, r13d
	mov	rsi, r12
	mov	rdi, rax
	mov	rbp, rax
	call	embed_image@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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	free_image@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	ecx, eax
	mov	eax, edx
	mov	r8d, r9d
	xor	r14d, r14d
	imul	eax, edi
	cdq
	idiv	ecx
	sub	esi, eax
	mov	r13d, esi
	shr	r13d, 31
	add	r13d, esi
	mov	esi, eax
	sar	r13d
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	letterbox_image_into, .-letterbox_image_into
	.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.c_letterbox_image_into.c"
	.text
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_fcmplt
	.global	__aeabi_idiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	letterbox_image_into
	.syntax unified
	.arm
	.fpu softvfp
	.type	letterbox_image_into, %function
letterbox_image_into:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	sub	sp, sp, #32
	add	r7, sp, #8
	stm	r7, {r0, r1}
	mov	r4, r3
	ldr	r3, .L12
	mov	r0, r2
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	__aeabi_i2f
	ldr	r9, [sp, #8]
	mov	r5, r0
	mov	r0, r9
	bl	__aeabi_i2f
	mov	r1, r0
	mov	r0, r5
	bl	__aeabi_fdiv
	mov	r5, r0
	mov	r0, r4
	bl	__aeabi_i2f
	ldr	r10, [sp, #12]
	mov	r6, r0
	mov	r0, r10
	bl	__aeabi_i2f
	mov	r1, r0
	mov	r0, r6
	bl	__aeabi_fdiv
	mov	r1, r0
	mov	r0, r5
	bl	__aeabi_fcmplt
	subs	r6, r0, #0
	beq	.L8
	mov	r1, r9
	mul	r0, r10, r8
	bl	__aeabi_idiv
	mov	r5, #0
	sub	r4, r4, r0
	add	r4, r4, r4, lsr #31
	asr	r6, r4, #1
.L4:
	str	r0, [sp]
	add	r4, sp, #20
	ldm	r7, {r1, r2}
	mov	r3, r8
	mov	r0, r4
	bl	resize_image
	ldm	r4, {r0, r1}
	add	r3, sp, #60
	ldmib	r3, {r2, r3}
	stm	sp, {r5, r6}
	bl	embed_image
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	ldm	r4, {r0, r1}
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	free_image
.L8:
	mov	r1, r10
	mul	r0, r9, r4
	bl	__aeabi_idiv
	mov	r3, r0
	sub	r5, r8, r3
	add	r5, r5, r5, lsr #31
	mov	r0, r4
	mov	r8, r3
	asr	r5, r5, #1
	b	.L4
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.size	letterbox_image_into, .-letterbox_image_into
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
