	.file	"extr_..taskstask_image.c_upscale_image.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	upscale_image, @function
upscale_image:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	test	rsi, rsi
	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, rdx
	sete	dl
	test	rbp, rbp
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sete	al
	or	dl, al
	jne	.L2
	test	edi, edi
	je	.L2
	cmp	QWORD PTR [rsi], 0
	mov	rbx, rsi
	je	.L2
	mov	eax, DWORD PTR 8[rsi]
	test	eax, eax
	jle	.L2
	mov	edx, DWORD PTR 12[rsi]
	test	edx, edx
	jle	.L2
	imul	eax, edi
	mov	esi, 4
	imul	edi, edx
	mov	DWORD PTR 8[rbp], eax
	mov	DWORD PTR 12[rbp], edi
	imul	edi, eax
	call	calloc@PLT
	mov	QWORD PTR 0[rbp], rax
	mov	r11, rax
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR 8[rbx]
	mov	ecx, DWORD PTR 8[rbp]
	xor	r13d, r13d
	xor	r8d, r8d
	mov	esi, DWORD PTR 12[rbp]
	sal	eax, 16
	cdq
	idiv	ecx
	mov	r12d, eax
	mov	eax, DWORD PTR 12[rbx]
	sal	eax, 16
	cdq
	idiv	esi
	test	esi, esi
	je	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r9d, r13d
	mov	edx, ecx
	shr	r9d, 16
	test	ecx, ecx
	je	.L9
	mov	r10, QWORD PTR [rbx]
	xor	edi, edi
	xor	esi, esi
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r14d, DWORD PTR 8[rbx]
	mov	ecx, edi
	imul	edx, r8d
	add	edi, r12d
	shr	ecx, 16
	imul	r14d, r9d
	add	edx, esi
	add	esi, 1
	add	ecx, r14d
	mov	ecx, DWORD PTR [r10+rcx*4]
	mov	DWORD PTR [r11+rdx*4], ecx
	mov	edx, DWORD PTR 8[rbp]
	mov	ecx, edx
	cmp	edx, esi
	ja	.L8
.L9:
	add	r8d, 1
	add	r13d, eax
	cmp	DWORD PTR 12[rbp], r8d
	ja	.L3
.L7:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, 1
	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
.L2:
	.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	upscale_image, .-upscale_image
	.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_..taskstask_image.c_upscale_image.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	upscale_image, %function
upscale_image:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r3, r2
	cmp	r1, #0
	lsr	r3, r3, #5
	moveq	r3, #1
	cmp	r0, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	movne	r4, r3
	moveq	r4, #1
	cmp	r4, #0
	sub	sp, sp, #20
	bne	.L2
	ldr	r3, [r1]
	mov	r6, r1
	cmp	r3, #0
	beq	.L2
	ldr	r7, [r1, #4]
	cmp	r7, #0
	ble	.L2
	ldr	r8, [r1, #8]
	cmp	r8, #0
	ble	.L2
	mul	r7, r0, r7
	mul	r8, r0, r8
	mov	r1, #4
	mul	r0, r8, r7
	stmib	r2, {r7, r8}
	mov	r5, r2
	bl	calloc
	cmp	r0, #0
	mov	r9, r0
	str	r0, [r5]
	beq	.L2
	ldr	r3, [r6, #4]
	mov	r1, r7
	lsl	r0, r3, #16
	str	r3, [sp, #12]
	bl	__aeabi_idiv
	mov	r5, r0
	ldr	r0, [r6, #8]
	mov	r1, r8
	lsl	r0, r0, #16
	bl	__aeabi_idiv
	cmp	r8, #0
	str	r0, [sp, #4]
	beq	.L8
	lsl	r3, r7, #2
	mov	r0, r4
	mov	fp, r4
	mov	r10, r4
	str	r3, [sp, #8]
	add	r4, r9, r7, lsl #2
.L7:
	cmp	r7, #0
	lsr	ip, fp, #16
	beq	.L5
	mov	r2, #0
	ldr	r3, [sp, #12]
	ldr	lr, [r6]
	mul	r3, ip, r3
	mov	ip, r3
	add	r3, r9, r0, lsl #2
.L6:
	add	r1, ip, r2, lsr #16
	ldr	r1, [lr, r1, lsl #2]
	add	r2, r2, r5
	str	r1, [r3], #4
	cmp	r3, r4
	bne	.L6
.L5:
	ldr	r3, [sp, #4]
	add	r10, r10, #1
	add	fp, fp, r3
	ldr	r3, [sp, #8]
	cmp	r8, r10
	add	r0, r0, r7
	add	r4, r4, r3
	bne	.L7
.L8:
	mov	r0, #1
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	upscale_image, .-upscale_image
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
