	.file	"extr_g2meet.c_kempf_decode_tile.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kempf_decode_tile, @function
kempf_decode_tile:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movsx	rbp, r8d
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	edi, esi
	sub	rsp, 3224
	.cfi_def_cfa_offset 3280
	mov	esi, DWORD PTR [rbx]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 3208[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 4[rbx]
	lea	edx, 1[rsi]
	imul	edx, eax
	mov	DWORD PTR 112[rsp], edx
	cmp	ebp, 1
	jle	.L22
	imul	edi, esi
	mov	r12, rcx
	imul	eax, r13d
	imul	eax, DWORD PTR 16[rbx]
	lea	ecx, [rdi+rdi*2]
	mov	edx, edi
	mov	edi, DWORD PTR 20[rbx]
	movsx	rcx, ecx
	cdqe
	sub	edi, edx
	add	rax, rcx
	mov	rcx, QWORD PTR 8[rbx]
	lea	r14, [rcx+rax*4]
	call	FFMIN@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR 24[rbx]
	mov	DWORD PTR 12[rsp], eax
	imul	r13d, esi
	sub	edi, r13d
	call	FFMIN@PLT
	mov	r13d, DWORD PTR [r12]
	lea	rsi, 4[r12]
	mov	DWORD PTR 24[rsp], eax
	sar	r13d, 5
	je	.L42
	sal	rbp, 2
	cmp	r13d, 1
	je	.L43
	lea	rax, [r12+rbp]
	mov	QWORD PTR 16[rsp], rax
	cmp	r13d, 2
	jne	.L44
	mov	eax, DWORD PTR 4[r12]
	lea	rbp, 8[r12]
	add	eax, 1
	lea	edx, [rax+rax*2]
	mov	DWORD PTR 28[rsp], eax
	mov	rax, QWORD PTR 16[rsp]
	movsx	r12, edx
	sub	rax, rbp
	sar	rax, 2
	cmp	rax, r12
	jge	.L45
	.p2align 4,,10
	.p2align 3
.L22:
	mov	r10d, DWORD PTR AVERROR_INVALIDDATA[rip]
.L1:
	mov	rax, QWORD PTR 3208[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L46
	add	rsp, 3224
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r10d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L42:
	.cfi_restore_state
	lea	rbp, 116[rsp]
	mov	edx, 3
	mov	rdi, rbp
	call	memcpy@PLT
	mov	ecx, DWORD PTR 24[rsp]
	test	ecx, ecx
	jle	.L5
	mov	eax, DWORD PTR 12[rsp]
	sub	eax, 1
	lea	r15, 3[rax+rax*2]
	lea	rax, 0[0+r15*4]
	mov	QWORD PTR 16[rsp], rax
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR 12[rsp]
	mov	r15, r14
	lea	r12, [rax+r14]
	test	edx, edx
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, r15
	mov	edx, 3
	mov	rsi, rbp
	add	r15, 12
	call	memcpy@PLT
	cmp	r12, r15
	jne	.L7
.L9:
	movsx	rax, DWORD PTR 16[rbx]
	add	r13d, 1
	lea	r14, [r14+rax*4]
	cmp	DWORD PTR 24[rsp], r13d
	jne	.L6
.L5:
	xor	r10d, r10d
	jmp	.L1
.L45:
	lea	rax, 128[rsp]
	mov	rsi, rbp
	mov	rdi, rax
	mov	QWORD PTR 64[rsp], rax
	call	memcpy@PLT
	lea	rax, 0[rbp+r12*4]
	mov	QWORD PTR 32[rsp], rax
.L40:
	mov	r12d, -1
.L13:
	mov	rcx, QWORD PTR 16[rsp]
	mov	rdx, QWORD PTR 32[rsp]
	mov	rax, rcx
	sub	rax, rdx
	cmp	rax, 4
	jle	.L5
	mov	rax, rdx
	mov	edx, DWORD PTR [rdx]
	lea	r15, 8[rax]
	sub	rcx, r15
	mov	ebp, edx
	mov	DWORD PTR 32[rsp], edx
	mov	rdx, rcx
	sal	ebp, 8
	or	ebp, DWORD PTR 4[rax]
	xor	eax, eax
	sar	rdx, 2
	cmp	r13d, 2
	setne	al
	add	eax, ebp
	cdqe
	cmp	rdx, rax
	jl	.L22
	mov	edi, DWORD PTR 52[rbx]
	lea	rsi, 112[rsp]
	mov	ecx, ebp
	mov	rdx, r15
	call	uncompress@PLT
	mov	r10d, eax
	test	eax, eax
	jne	.L22
	movsx	rbp, ebp
	lea	rax, [r15+rbp*4]
	cmp	r13d, 2
	je	.L47
	lea	rcx, 4[rax]
	mov	eax, DWORD PTR [rax]
	mov	edi, DWORD PTR 12[rsp]
	mov	esi, 16
	mov	DWORD PTR 48[rsp], r10d
	xor	ebp, ebp
	xor	r13d, r13d
	add	eax, 1
	mov	QWORD PTR 40[rsp], rcx
	mov	DWORD PTR 32[rsp], eax
	call	FFALIGN@PLT
	mov	r10d, DWORD PTR 48[rsp]
	mov	r15d, DWORD PTR 56[rsp]
	mov	DWORD PTR 72[rsp], 0
	sar	eax, 3
	mov	DWORD PTR 84[rsp], 0
	lea	edx, [rax+rax]
	mov	DWORD PTR 88[rsp], eax
	mov	DWORD PTR 92[rsp], edx
	mov	DWORD PTR 76[rsp], eax
	mov	DWORD PTR 80[rsp], 0
	mov	QWORD PTR 96[rsp], r14
	mov	DWORD PTR 108[rsp], r10d
	mov	QWORD PTR 56[rsp], rbx
	mov	DWORD PTR 104[rsp], r12d
	mov	r12, QWORD PTR 40[rsp]
.L18:
	mov	edi, DWORD PTR 24[rsp]
	mov	esi, 16
	call	FFALIGN@PLT
	sar	eax, 4
	cmp	eax, DWORD PTR 72[rsp]
	jle	.L24
	movsx	r14, DWORD PTR 84[rsp]
	movsx	rax, DWORD PTR 76[rsp]
	movsx	rdx, DWORD PTR 80[rsp]
	add	r14, r14
	lea	rbx, 4[0+rax*4]
	sub	r14, rax
	sub	rdx, rax
	lea	rax, 0[0+r14*4]
	lea	rcx, 0[0+rdx*4]
	xor	r14d, r14d
	mov	QWORD PTR 48[rsp], rax
	mov	eax, r15d
	mov	r15d, r14d
	mov	r14, rbx
	mov	QWORD PTR 40[rsp], rcx
	mov	ebx, eax
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L49:
	sub	r13d, 1
.L20:
	mov	esi, ebx
	sar	ebx
	and	esi, 1
	add	ebp, esi
	cmp	DWORD PTR 32[rsp], ebp
	jl	.L22
	mov	rax, QWORD PTR 56[rsp]
	mov	rcx, QWORD PTR 40[rsp]
	add	r15d, 1
	mov	rax, QWORD PTR 32[rax]
	mov	DWORD PTR [rax+r14], esi
	mov	DWORD PTR -4[rax+r14], esi
	add	rax, r14
	add	r14, 8
	mov	DWORD PTR [rax+rcx], esi
	mov	rcx, QWORD PTR 48[rsp]
	mov	DWORD PTR -4[rcx+rax], esi
.L25:
	mov	edi, DWORD PTR 12[rsp]
	mov	esi, 16
	call	FFALIGN@PLT
	sar	eax, 4
	cmp	eax, r15d
	jle	.L48
	test	r13d, r13d
	jne	.L49
	cmp	r12, QWORD PTR 16[rsp]
	jnb	.L22
	mov	ebx, DWORD PTR [r12]
	mov	r13d, 7
	add	r12, 4
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L44:
	lea	rbp, 116[rsp]
	mov	edx, 3
	lea	r15, 20[r12]
	mov	rdi, rbp
	call	memcpy@PLT
	mov	eax, DWORD PTR 16[r12]
	lea	ecx, 1[rax]
	mov	rax, QWORD PTR 16[rsp]
	lea	edx, [rcx+rcx*2]
	mov	DWORD PTR 28[rsp], ecx
	sub	rax, r15
	movsx	r12, edx
	sar	rax, 2
	cmp	r12, rax
	jg	.L22
	lea	rax, 128[rsp]
	mov	rsi, r15
	mov	rdi, rax
	mov	QWORD PTR 64[rsp], rax
	call	memcpy@PLT
	lea	rax, [r15+r12*4]
	mov	r15, QWORD PTR 64[rsp]
	xor	r12d, r12d
	mov	QWORD PTR 32[rsp], rax
	mov	eax, DWORD PTR 28[rsp]
	test	eax, eax
	jle	.L40
	mov	QWORD PTR 40[rsp], rbx
	mov	ebx, r12d
	mov	r12d, DWORD PTR 28[rsp]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L51:
	add	ebx, 1
	add	r15, 12
	cmp	ebx, r12d
	je	.L50
.L14:
	mov	edx, 3
	mov	rsi, rbp
	mov	rdi, r15
	call	memcmp@PLT
	test	eax, eax
	jne	.L51
	mov	r12d, ebx
	mov	rbx, QWORD PTR 40[rsp]
	jmp	.L13
.L50:
	mov	rbx, QWORD PTR 40[rsp]
	mov	r12d, -1
	jmp	.L13
.L43:
	sub	rsp, 8
	.cfi_def_cfa_offset 3288
	mov	rcx, rsi
	lea	r8, -4[rbp]
	mov	r9, r14
	push	0
	.cfi_def_cfa_offset 3296
	sar	r8, 2
	lea	rdi, 56[rbx]
	push	0
	.cfi_def_cfa_offset 3304
	push	0
	.cfi_def_cfa_offset 3312
	mov	eax, DWORD PTR 16[rbx]
	push	0
	.cfi_def_cfa_offset 3320
	push	rax
	.cfi_def_cfa_offset 3328
	mov	edx, DWORD PTR 72[rsp]
	mov	esi, DWORD PTR 60[rsp]
	call	jpg_decode_data@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 3280
	mov	r10d, eax
	jmp	.L1
.L48:
	mov	ecx, DWORD PTR 88[rsp]
	mov	r15d, ebx
	add	DWORD PTR 72[rsp], 1
	mov	ebx, DWORD PTR 92[rsp]
	add	DWORD PTR 84[rsp], ecx
	add	DWORD PTR 76[rsp], ebx
	add	DWORD PTR 80[rsp], ebx
	jmp	.L18
.L47:
	mov	DWORD PTR 16[rsp], r10d
	sub	rsp, 8
	.cfi_def_cfa_offset 3288
	mov	ecx, DWORD PTR 16[rbx]
	xor	r9d, r9d
	mov	edi, DWORD PTR 52[rbx]
	push	r12
	.cfi_def_cfa_offset 3296
	xor	r8d, r8d
	mov	rdx, r14
	mov	eax, DWORD PTR 44[rsp]
	push	rax
	.cfi_def_cfa_offset 3304
	push	QWORD PTR 88[rsp]
	.cfi_def_cfa_offset 3312
	mov	eax, DWORD PTR 56[rsp]
	push	rax
	.cfi_def_cfa_offset 3320
	mov	eax, DWORD PTR 52[rsp]
	push	rax
	.cfi_def_cfa_offset 3328
	mov	esi, DWORD PTR 160[rsp]
	call	kempf_restore_buf@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 3280
	mov	r10d, DWORD PTR 16[rsp]
	jmp	.L1
.L24:
	mov	rbx, QWORD PTR 56[rsp]
	mov	r15d, DWORD PTR 24[rsp]
	xor	esi, esi
	mov	rbp, r12
	mov	r10d, DWORD PTR 108[rsp]
	mov	r12d, DWORD PTR 104[rsp]
	mov	edx, DWORD PTR 48[rbx]
	mov	rdi, QWORD PTR 40[rbx]
	mov	DWORD PTR 40[rsp], r10d
	mov	r14, QWORD PTR 96[rsp]
	imul	edx, r15d
	call	memset@PLT
	mov	r8, QWORD PTR 16[rsp]
	mov	rcx, rbp
	mov	edx, r15d
	sub	rsp, 8
	.cfi_def_cfa_offset 3288
	lea	rdi, 56[rbx]
	push	0
	.cfi_def_cfa_offset 3296
	mov	eax, DWORD PTR 48[rsp]
	sub	r8, rbp
	sar	r8, 2
	sal	eax, 2
	push	rax
	.cfi_def_cfa_offset 3304
	mov	eax, DWORD PTR 112[rsp]
	push	rax
	.cfi_def_cfa_offset 3312
	mov	eax, DWORD PTR 48[rbx]
	push	QWORD PTR 32[rbx]
	.cfi_def_cfa_offset 3320
	mov	r9, QWORD PTR 40[rbx]
	push	rax
	.cfi_def_cfa_offset 3328
	mov	ebp, DWORD PTR 60[rsp]
	mov	esi, ebp
	call	jpg_decode_data@PLT
	add	rsp, 40
	.cfi_def_cfa_offset 3288
	mov	ecx, DWORD PTR 16[rbx]
	mov	edi, DWORD PTR 52[rbx]
	push	r12
	.cfi_def_cfa_offset 3296
	mov	eax, DWORD PTR 44[rsp]
	mov	rdx, r14
	push	rax
	.cfi_def_cfa_offset 3304
	push	QWORD PTR 88[rsp]
	.cfi_def_cfa_offset 3312
	mov	r8, QWORD PTR 40[rbx]
	push	r15
	.cfi_def_cfa_offset 3320
	push	rbp
	.cfi_def_cfa_offset 3328
	mov	esi, DWORD PTR 160[rsp]
	mov	r9d, DWORD PTR 48[rbx]
	call	kempf_restore_buf@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 3280
	mov	r10d, DWORD PTR 40[rsp]
	jmp	.L1
.L46:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	kempf_decode_tile, .-kempf_decode_tile
	.comm	AVERROR_INVALIDDATA,4,4
	.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_g2meet.c_kempf_decode_tile.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kempf_decode_tile, %function
kempf_decode_tile:
	@ args = 4, pretend = 0, frame = 3144
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldm	r0, {r8, r9}
	sub	sp, sp, #3168
	add	ip, r8, #1
	sub	sp, sp, #12
	mul	ip, r9, ip
	ldr	r5, [sp, #3216]
	mov	r6, r3
	ldr	r3, .L48
	cmp	r5, #1
	ldr	r3, [r3]
	str	r3, [sp, #3172]
	mov	r3,#0
	str	ip, [sp, #84]
	ble	.L22
	mov	lr, r1
	mov	r4, r0
	mul	lr, r8, lr
	mul	r9, r2, r9
	ldr	r1, [r0, #12]
	mov	r7, r2
	add	r2, lr, lr, lsl #1
	mla	r9, r1, r9, r2
	ldr	r0, [r0, #16]
	ldr	r2, [r4, #8]
	mov	r1, r8
	sub	r0, r0, lr
	add	r9, r2, r9, lsl #2
	bl	FFMIN
	ldr	r1, [r4, #4]
	mov	r10, r0
	mul	r7, r1, r7
	ldr	r0, [r4, #20]
	sub	r0, r0, r7
	bl	FFMIN
	mov	r1, r6
	ldr	r7, [r1], #4
	str	r0, [sp, #32]
	asrs	r7, r7, #5
	beq	.L40
	cmp	r7, #1
	lsl	r5, r5, #2
	beq	.L41
	add	r3, r6, r5
	cmp	r7, #2
	str	r3, [sp, #36]
	bne	.L42
	ldr	fp, [r6, #4]
	ldr	r3, [sp, #36]
	add	r1, r6, #8
	add	fp, fp, #1
	add	r2, fp, fp, lsl #1
	sub	r3, r3, r1
	cmp	r2, r3, asr #2
	ble	.L43
.L22:
	ldr	r3, .L48+4
	ldr	r5, [r3]
.L1:
	ldr	r3, .L48
	ldr	r2, [r3]
	ldr	r3, [sp, #3172]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L44
	mov	r0, r5
	add	sp, sp, #3168
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L40:
	add	r5, sp, #88
	mov	r0, r5
	mov	r2, #3
	bl	memcpy
	ldr	r3, [sp, #32]
	cmp	r3, #0
	ble	.L5
	mov	r3, r5
	mov	r5, r4
	mov	r4, r3
	add	r8, r10, r10, lsl #1
	lsl	r8, r8, #2
.L6:
	cmp	r10, #0
	movgt	r6, r9
	addgt	fp, r9, r8
	ble	.L9
.L7:
	mov	r0, r6
	mov	r2, #3
	mov	r1, r4
	add	r6, r6, #12
	bl	memcpy
	cmp	fp, r6
	bne	.L7
.L9:
	ldr	r2, [sp, #32]
	ldr	r3, [r5, #12]
	add	r7, r7, #1
	cmp	r2, r7
	add	r9, r9, r3, lsl #2
	bne	.L6
.L5:
	mov	r5, #0
	b	.L1
.L43:
	add	r3, sp, #100
	mov	r0, r3
	str	r3, [sp, #48]
	add	r6, r1, r2, lsl #2
	bl	memcpy
.L38:
	mvn	r8, #0
.L13:
	ldr	r0, [sp, #36]
	sub	r3, r0, r6
	cmp	r3, #4
	ble	.L5
	ldm	r6, {r1, r3}
	add	r2, r6, #8
	orr	r6, r3, r1, lsl #8
	cmp	r7, #2
	moveq	r3, r6
	addne	r3, r6, #1
	sub	r1, r0, r2
	cmp	r3, r1, asr #2
	bgt	.L22
	mov	r3, r6
	ldr	r0, [r4, #36]
	add	r1, sp, #84
	str	r2, [sp, #40]
	bl	uncompress
	subs	r5, r0, #0
	ldr	r2, [sp, #40]
	bne	.L22
	cmp	r7, #2
	add	r3, r2, r6, lsl #2
	beq	.L45
	ldr	r2, [r2, r6, lsl #2]
	mov	r1, #16
	add	r2, r2, #1
	mov	r0, r10
	add	r6, r3, #4
	str	r2, [sp, #40]
	bl	FFALIGN
	asr	r3, r0, #3
	str	r3, [sp, #60]
	rsb	r3, r3, r3, lsl #30
	lsl	r3, r3, #2
	str	r9, [sp, #72]
	mov	r9, r3
	mov	r7, r5
	str	r5, [sp, #52]
	str	r5, [sp, #56]
	str	fp, [sp, #64]
	str	r5, [sp, #76]
	mov	fp, r5
	str	r8, [sp, #68]
	ldr	r5, [sp, #44]
	str	r4, [sp, #44]
.L18:
	mov	r1, #16
	ldr	r0, [sp, #32]
	bl	FFALIGN
	ldr	r3, [sp, #52]
	cmp	r3, r0, asr #4
	bge	.L24
	ldr	r3, [sp, #60]
	ldr	r2, [sp, #56]
	add	r3, r3, #1
	lsl	r1, r2, #3
	add	r4, r1, r3, lsl #2
	mov	r3, fp
	mov	r8, #0
	mov	fp, r4
	mov	r4, r3
	b	.L25
.L23:
	cmp	r4, #0
	subne	r4, r4, #1
	bne	.L20
	ldr	r3, [sp, #36]
	cmp	r6, r3
	bcs	.L22
	mov	r4, #7
	ldr	r5, [r6], #4
.L20:
	and	r1, r5, #1
	ldr	r3, [sp, #40]
	add	r7, r7, r1
	cmp	r3, r7
	asr	r5, r5, #1
	blt	.L22
	ldr	r3, [sp, #44]
	add	r8, r8, #1
	ldr	r0, [r3, #24]
	str	r1, [r0, fp]!
	add	ip, r0, r9
	str	r1, [r0, #-4]
	add	fp, fp, #8
	str	r1, [r0, r9]
	str	r1, [ip, #-4]
.L25:
	mov	r1, #16
	mov	r0, r10
	bl	FFALIGN
	cmp	r8, r0, asr #4
	blt	.L23
	ldr	r3, [sp, #52]
	ldr	r2, [sp, #60]
	add	r3, r3, #1
	str	r3, [sp, #52]
	ldr	r3, [sp, #56]
	mov	fp, r4
	add	r3, r3, r2
	str	r3, [sp, #56]
	b	.L18
.L42:
	add	r5, sp, #88
	mov	r0, r5
	mov	r2, #3
	bl	memcpy
	ldr	fp, [r6, #16]
	ldr	r3, [sp, #36]
	add	r6, r6, #20
	add	fp, fp, #1
	add	r8, fp, fp, lsl #1
	sub	r3, r3, r6
	cmp	r8, r3, asr #2
	bgt	.L22
	add	r3, sp, #100
	mov	r1, r6
	mov	r0, r3
	mov	r2, r8
	str	r3, [sp, #48]
	bl	memcpy
	cmp	fp, #0
	add	r6, r6, r8, lsl #2
	ble	.L38
	str	r4, [sp, #40]
	mov	r8, #0
	mov	r4, r5
	ldr	r5, [sp, #48]
	b	.L14
.L47:
	add	r8, r8, #1
	cmp	r8, fp
	beq	.L46
.L14:
	add	r0, r8, r8, lsl #1
	mov	r2, #3
	mov	r1, r4
	add	r0, r5, r0, lsl #2
	bl	memcmp
	cmp	r0, #0
	bne	.L47
	ldr	r4, [sp, #40]
	b	.L13
.L46:
	mvn	r8, #0
	ldr	r4, [sp, #40]
	b	.L13
.L41:
	mov	r0, #0
	sub	r5, r5, #4
	asr	r2, r5, #2
	str	r2, [sp]
	ldr	ip, [r4, #12]
	mov	r3, r1
	str	r0, [sp, #24]
	str	r0, [sp, #20]
	str	r0, [sp, #16]
	str	r0, [sp, #12]
	mov	r1, r10
	ldr	r2, [sp, #32]
	str	r9, [sp, #4]
	str	ip, [sp, #8]
	add	r0, r4, #40
	bl	jpg_decode_data
	mov	r5, r0
	b	.L1
.L45:
	ldr	r3, [sp, #48]
	stmib	sp, {r5, r10}
	str	r3, [sp, #16]
	ldr	r3, [sp, #32]
	str	r8, [sp, #24]
	str	fp, [sp, #20]
	str	r3, [sp, #12]
	str	r5, [sp]
	mov	r2, r9
	ldr	r3, [r4, #12]
	ldr	r0, [r4, #36]
	ldr	r1, [sp, #84]
	bl	kempf_restore_buf
	b	.L1
.L24:
	ldr	r7, [sp, #32]
	ldr	r4, [sp, #44]
	mov	r3, r7
	ldr	r2, [r4, #32]
	mov	r1, #0
	mul	r3, r2, r3
	ldr	r0, [r4, #28]
	mov	r2, r3
	ldr	fp, [sp, #64]
	ldr	r8, [sp, #68]
	ldr	r9, [sp, #72]
	ldr	r5, [sp, #76]
	bl	memset
	mov	ip, #0
	ldr	r3, [sp, #36]
	ldr	r0, [r4, #24]
	sub	lr, r3, r6
	ldr	r3, [sp, #40]
	ldr	r1, [r4, #32]
	lsl	r3, r3, #2
	ldr	r2, [r4, #28]
	str	r3, [sp, #20]
	ldr	r3, [sp, #60]
	asr	lr, lr, #2
	str	r3, [sp, #16]
	str	r0, [sp, #12]
	mov	r3, r6
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	mov	r1, r10
	mov	r2, r7
	str	lr, [sp]
	str	ip, [sp, #24]
	add	r0, r4, #40
	bl	jpg_decode_data
	ldr	r1, [r4, #32]
	ldr	r3, [r4, #28]
	ldr	r2, [sp, #48]
	str	r1, [sp, #4]
	str	r2, [sp, #16]
	str	r8, [sp, #24]
	str	fp, [sp, #20]
	str	r7, [sp, #12]
	str	r10, [sp, #8]
	str	r3, [sp]
	mov	r2, r9
	ldr	r3, [r4, #12]
	ldr	r0, [r4, #36]
	ldr	r1, [sp, #84]
	bl	kempf_restore_buf
	b	.L1
.L44:
	bl	__stack_chk_fail
.L49:
	.align	2
.L48:
	.word	.LC0
	.word	AVERROR_INVALIDDATA
	.size	kempf_decode_tile, .-kempf_decode_tile
	.comm	AVERROR_INVALIDDATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
