	.file	"extr_tr_image_png.c_R_LoadPNG.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s: invalid image size\n"
	.text
	.p2align 4
	.globl	R_LoadPNG
	.type	R_LoadPNG, @function
R_LoadPNG:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 4096
	.cfi_def_cfa_offset 4152
	or	QWORD PTR [rsp], 0
	sub	rsp, 120
	.cfi_def_cfa_offset 4272
	mov	r14d, DWORD PTR qfalse[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 4200[rsp], rax
	xor	eax, eax
	movabs	rax, 1095216660735
	mov	QWORD PTR 64[rsp], rax
	mov	QWORD PTR 72[rsp], rax
	mov	QWORD PTR 80[rsp], rax
	test	rdi, rdi
	je	.L1
	mov	rbx, rsi
	test	rsi, rsi
	je	.L1
	mov	QWORD PTR [rsi], 0
	mov	r12, rdi
	mov	r13, rdx
	mov	rbp, rcx
	test	rdx, rdx
	je	.L3
	mov	DWORD PTR [rdx], 0
.L3:
	test	rbp, rbp
	je	.L4
	mov	DWORD PTR 0[rbp], 0
.L4:
	mov	rdi, r12
	call	ReadBufferedFile@PLT
	mov	r15, rax
	test	rax, rax
	je	.L1
	mov	esi, DWORD PTR PNG_Signature_Size[rip]
	mov	rdi, rax
	call	BufferedFileRead@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L80
	mov	edx, DWORD PTR PNG_Signature_Size[rip]
	mov	esi, DWORD PTR PNG_Signature[rip]
	call	memcmp@PLT
	test	rax, rax
	jne	.L80
	mov	esi, DWORD PTR PNG_ChunkHeader_Size[rip]
	mov	rdi, r15
	call	BufferedFileRead@PLT
	test	rax, rax
	je	.L80
	mov	edi, DWORD PTR 4[rax]
	mov	QWORD PTR 8[rsp], rax
	call	BigLong@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	DWORD PTR 16[rsp], eax
	mov	edi, DWORD PTR [rdx]
	call	BigLong@PLT
	cmp	DWORD PTR PNG_ChunkType_IHDR[rip], eax
	mov	rdi, r15
	jne	.L81
	mov	esi, DWORD PTR PNG_Chunk_IHDR_Size[rip]
	cmp	esi, DWORD PTR 16[rsp]
	je	.L10
.L81:
	call	CloseBufferedFile@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 4200[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L83
	add	rsp, 4216
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L10:
	.cfi_restore_state
	call	BufferedFileRead@PLT
	test	rax, rax
	je	.L80
	mov	esi, DWORD PTR PNG_ChunkCRC_Size[rip]
	mov	rdi, r15
	mov	QWORD PTR 8[rsp], rax
	call	BufferedFileRead@PLT
	mov	r11, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L80
	mov	edi, DWORD PTR 28[r11]
	mov	QWORD PTR 16[rsp], r11
	call	BigLong@PLT
	mov	r11, QWORD PTR 16[rsp]
	mov	DWORD PTR 8[rsp], eax
	mov	edi, DWORD PTR 24[r11]
	call	BigLong@PLT
	mov	ecx, DWORD PTR 8[rsp]
	mov	r10d, eax
	test	ecx, ecx
	jle	.L13
	test	eax, eax
	jle	.L13
	mov	eax, DWORD PTR INT_MAX[rip]
	mov	r11, QWORD PTR 16[rsp]
	cdq
	idiv	DWORD PTR Q3IMAGE_BYTESPERPIXEL[rip]
	cdq
	idiv	r10d
	cmp	eax, ecx
	jl	.L13
	mov	rax, QWORD PTR PNG_CompressionMethod_0[rip]
	cmp	QWORD PTR [r11], rax
	jne	.L80
	mov	rax, QWORD PTR PNG_FilterMethod_0[rip]
	cmp	QWORD PTR 8[r11], rax
	jne	.L80
	mov	eax, DWORD PTR 16[r11]
	add	eax, -128
	cmp	eax, 1
	ja	.L80
	cmp	DWORD PTR 20[r11], 131
	je	.L84
.L18:
	mov	esi, DWORD PTR PNG_ChunkType_tRNS[rip]
	mov	rdi, r15
	mov	DWORD PTR 24[rsp], r10d
	mov	QWORD PTR 16[rsp], r11
	call	FindChunk@PLT
	mov	r11, QWORD PTR 16[rsp]
	mov	r10d, DWORD PTR 24[rsp]
	test	rax, rax
	je	.L27
	mov	esi, DWORD PTR PNG_ChunkHeader_Size[rip]
	mov	rdi, r15
	call	BufferedFileRead@PLT
	mov	r11, QWORD PTR 16[rsp]
	mov	r10d, DWORD PTR 24[rsp]
	test	rax, rax
	mov	r12, rax
	je	.L80
	mov	edi, DWORD PTR 4[rax]
	mov	DWORD PTR 36[rsp], r10d
	mov	QWORD PTR 24[rsp], r11
	call	BigLong@PLT
	mov	edi, DWORD PTR [r12]
	mov	DWORD PTR 16[rsp], eax
	call	BigLong@PLT
	cmp	DWORD PTR PNG_ChunkType_tRNS[rip], eax
	mov	edx, DWORD PTR 16[rsp]
	mov	r11, QWORD PTR 24[rsp]
	mov	r10d, DWORD PTR 36[rsp]
	jne	.L80
	mov	esi, edx
	mov	rdi, r15
	mov	DWORD PTR 36[rsp], r10d
	mov	QWORD PTR 24[rsp], r11
	mov	DWORD PTR 16[rsp], edx
	call	BufferedFileRead@PLT
	mov	edx, DWORD PTR 16[rsp]
	mov	r11, QWORD PTR 24[rsp]
	test	rax, rax
	mov	r10d, DWORD PTR 36[rsp]
	mov	r12, rax
	je	.L80
	mov	esi, DWORD PTR PNG_ChunkCRC_Size[rip]
	mov	rdi, r15
	mov	DWORD PTR 36[rsp], edx
	mov	DWORD PTR 24[rsp], r10d
	mov	QWORD PTR 16[rsp], r11
	call	BufferedFileRead@PLT
	mov	r11, QWORD PTR 16[rsp]
	mov	r10d, DWORD PTR 24[rsp]
	test	rax, rax
	mov	edx, DWORD PTR 36[rsp]
	je	.L80
	mov	eax, DWORD PTR 20[r11]
	cmp	eax, 131
	je	.L32
	cmp	eax, 132
	je	.L33
	cmp	eax, 130
	jne	.L80
	cmp	edx, 6
	jne	.L80
	mov	eax, DWORD PTR [r12]
	mov	r14d, DWORD PTR qtrue[rip]
	mov	DWORD PTR 64[rsp], eax
	mov	eax, DWORD PTR 4[r12]
	mov	DWORD PTR 68[rsp], eax
	mov	eax, DWORD PTR 8[r12]
	mov	DWORD PTR 72[rsp], eax
	mov	eax, DWORD PTR 12[r12]
	mov	DWORD PTR 76[rsp], eax
	mov	eax, DWORD PTR 16[r12]
	mov	DWORD PTR 80[rsp], eax
	mov	eax, DWORD PTR 20[r12]
	mov	DWORD PTR 84[rsp], eax
.L27:
	mov	esi, -1
	mov	rdi, r15
	mov	DWORD PTR 24[rsp], r10d
	mov	QWORD PTR 16[rsp], r11
	call	BufferedFileRewind@PLT
	mov	r11, QWORD PTR 16[rsp]
	mov	r10d, DWORD PTR 24[rsp]
	test	eax, eax
	je	.L80
	mov	esi, DWORD PTR PNG_Signature_Size[rip]
	mov	rdi, r15
	mov	DWORD PTR 24[rsp], r10d
	mov	QWORD PTR 16[rsp], r11
	call	BufferedFileSkip@PLT
	mov	r11, QWORD PTR 16[rsp]
	mov	r10d, DWORD PTR 24[rsp]
	test	eax, eax
	je	.L80
	lea	rsi, 56[rsp]
	mov	rdi, r15
	mov	DWORD PTR 24[rsp], r10d
	mov	QWORD PTR 16[rsp], r11
	call	DecompressIDATs@PLT
	test	eax, eax
	je	.L80
	cmp	QWORD PTR 56[rsp], 0
	mov	r11, QWORD PTR 16[rsp]
	mov	r10d, DWORD PTR 24[rsp]
	je	.L80
	mov	edi, DWORD PTR 8[rsp]
	mov	QWORD PTR 24[rsp], r11
	mov	DWORD PTR 16[rsp], r10d
	imul	edi, r10d
	mov	DWORD PTR 36[rsp], eax
	imul	edi, DWORD PTR Q3IMAGE_BYTESPERPIXEL[rip]
	call	[QWORD PTR ri[rip]]
	mov	r10d, DWORD PTR 16[rsp]
	mov	r11, QWORD PTR 24[rsp]
	test	rax, rax
	mov	ecx, DWORD PTR 36[rsp]
	mov	r12, rax
	je	.L51
	mov	eax, DWORD PTR 16[r11]
	cmp	eax, 128
	je	.L46
	cmp	eax, 129
	jne	.L78
	mov	DWORD PTR 16[rsp], r10d
	mov	r8d, r14d
	mov	rsi, r12
	mov	rdi, r11
	push	rax
	.cfi_def_cfa_offset 4280
	lea	rax, 104[rsp]
	push	rax
	.cfi_def_cfa_offset 4288
	mov	rdx, QWORD PTR 72[rsp]
	lea	r9, 80[rsp]
	call	DecodeImageInterlaced@PLT
	pop	rdx
	.cfi_def_cfa_offset 4280
	pop	rcx
	.cfi_def_cfa_offset 4272
	test	eax, eax
	mov	r10d, DWORD PTR 16[rsp]
	je	.L78
.L49:
	mov	QWORD PTR [rbx], r12
	test	r13, r13
	je	.L50
	mov	eax, DWORD PTR 8[rsp]
	mov	DWORD PTR 0[r13], eax
.L50:
	test	rbp, rbp
	je	.L51
	mov	DWORD PTR 0[rbp], r10d
.L51:
	mov	rdi, QWORD PTR 56[rsp]
	call	[QWORD PTR ri[rip+8]]
	.p2align 4,,10
	.p2align 3
.L80:
	mov	rdi, r15
	call	CloseBufferedFile@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, r15
	call	CloseBufferedFile@PLT
	mov	edi, DWORD PTR PRINT_WARNING[rip]
	mov	rdx, r12
	lea	rsi, .LC0[rip]
	call	[QWORD PTR ri[rip+16]]
	jmp	.L1
.L84:
	mov	esi, DWORD PTR PNG_ChunkType_PLTE[rip]
	mov	rdi, r15
	mov	DWORD PTR 24[rsp], r10d
	mov	QWORD PTR 16[rsp], r11
	call	FindChunk@PLT
	mov	r11, QWORD PTR 16[rsp]
	mov	r10d, DWORD PTR 24[rsp]
	test	rax, rax
	je	.L80
	mov	esi, DWORD PTR PNG_ChunkHeader_Size[rip]
	mov	rdi, r15
	mov	DWORD PTR 24[rsp], r10d
	mov	QWORD PTR 16[rsp], r11
	call	BufferedFileRead@PLT
	mov	r11, QWORD PTR 16[rsp]
	mov	r10d, DWORD PTR 24[rsp]
	test	rax, rax
	je	.L80
	mov	edi, DWORD PTR 4[rax]
	mov	DWORD PTR 36[rsp], r10d
	mov	QWORD PTR 24[rsp], r11
	mov	QWORD PTR 16[rsp], rax
	call	BigLong@PLT
	mov	rdx, QWORD PTR 16[rsp]
	mov	r12d, eax
	mov	edi, DWORD PTR [rdx]
	call	BigLong@PLT
	cmp	DWORD PTR PNG_ChunkType_PLTE[rip], eax
	mov	r11, QWORD PTR 24[rsp]
	mov	r10d, DWORD PTR 36[rsp]
	jne	.L80
	mov	eax, r12d
	mov	ecx, 3
	cdq
	idiv	ecx
	test	edx, edx
	jne	.L80
	mov	esi, r12d
	mov	rdi, r15
	mov	DWORD PTR 36[rsp], r10d
	mov	QWORD PTR 24[rsp], r11
	mov	DWORD PTR 16[rsp], edx
	call	BufferedFileRead@PLT
	mov	r8d, DWORD PTR 16[rsp]
	mov	r11, QWORD PTR 24[rsp]
	test	rax, rax
	mov	r10d, DWORD PTR 36[rsp]
	je	.L80
	mov	esi, DWORD PTR PNG_ChunkCRC_Size[rip]
	mov	rdi, r15
	mov	DWORD PTR 36[rsp], r10d
	mov	QWORD PTR 24[rsp], r11
	mov	DWORD PTR 16[rsp], r8d
	mov	QWORD PTR 40[rsp], rax
	call	BufferedFileRead@PLT
	mov	r8d, DWORD PTR 16[rsp]
	mov	r11, QWORD PTR 24[rsp]
	test	rax, rax
	mov	r10d, DWORD PTR 36[rsp]
	mov	rcx, QWORD PTR 40[rsp]
	je	.L80
	movsx	rsi, DWORD PTR Q3IMAGE_BYTESPERPIXEL[rip]
	lea	rdi, 96[rsp]
	mov	edx, 256
	mov	rax, rdi
	sal	rsi, 2
	.p2align 4,,10
	.p2align 3
.L25:
	mov	DWORD PTR [rax], 0
	mov	DWORD PTR 4[rax], 0
	mov	DWORD PTR 8[rax], 0
	mov	DWORD PTR 12[rax], 255
	add	rax, rsi
	sub	edx, 1
	jne	.L25
	mov	eax, r12d
	mov	r9d, 3
	cdq
	idiv	r9d
	cmp	r12d, 2
	jle	.L18
.L26:
	mov	edx, DWORD PTR [rcx]
	add	r8d, 1
	add	rcx, 12
	mov	DWORD PTR [rdi], edx
	mov	edx, DWORD PTR -8[rcx]
	mov	DWORD PTR 4[rdi], edx
	mov	edx, DWORD PTR -4[rcx]
	mov	DWORD PTR 12[rdi], 255
	mov	DWORD PTR 8[rdi], edx
	add	rdi, rsi
	cmp	eax, r8d
	jg	.L26
	jmp	.L18
.L83:
	call	__stack_chk_fail@PLT
.L46:
	mov	DWORD PTR 16[rsp], r10d
	mov	r8d, r14d
	mov	rdi, r11
	push	rsi
	.cfi_def_cfa_offset 4280
	mov	rsi, r12
	lea	rax, 104[rsp]
	push	rax
	.cfi_def_cfa_offset 4288
	mov	rdx, QWORD PTR 72[rsp]
	lea	r9, 80[rsp]
	call	DecodeImageNonInterlaced@PLT
	pop	rdi
	.cfi_def_cfa_offset 4280
	pop	r8
	.cfi_def_cfa_offset 4272
	test	eax, eax
	mov	r10d, DWORD PTR 16[rsp]
	jne	.L49
.L78:
	mov	rdi, r12
	call	[QWORD PTR ri[rip+8]]
	mov	rdi, QWORD PTR 56[rsp]
	call	[QWORD PTR ri[rip+8]]
	mov	rdi, r15
	call	CloseBufferedFile@PLT
	jmp	.L1
.L33:
	cmp	edx, 2
	jne	.L80
	mov	eax, DWORD PTR [r12]
	mov	r14d, DWORD PTR qtrue[rip]
	mov	DWORD PTR 64[rsp], eax
	mov	eax, DWORD PTR 4[r12]
	mov	DWORD PTR 68[rsp], eax
	jmp	.L27
.L32:
	cmp	edx, 256
	jg	.L80
	movsx	rsi, DWORD PTR Q3IMAGE_BYTESPERPIXEL[rip]
	mov	r14d, DWORD PTR qtrue[rip]
	lea	rcx, 96[rsp]
	xor	eax, eax
	sal	rsi, 2
	jmp	.L39
.L40:
	mov	edi, DWORD PTR [r12+rax*4]
	add	rax, 1
	mov	DWORD PTR 12[rcx], edi
	add	rcx, rsi
.L39:
	cmp	edx, eax
	jg	.L40
	jmp	.L27
	.cfi_endproc
.LFE0:
	.size	R_LoadPNG, .-R_LoadPNG
	.comm	ri,24,16
	.comm	qtrue,4,4
	.comm	qfalse,4,4
	.comm	Q3IMAGE_BYTESPERPIXEL,4,4
	.comm	PRINT_WARNING,4,4
	.comm	PNG_Signature_Size,4,4
	.comm	PNG_Signature,4,4
	.comm	PNG_FilterMethod_0,8,8
	.comm	PNG_CompressionMethod_0,8,8
	.comm	PNG_Chunk_IHDR_Size,4,4
	.comm	PNG_ChunkType_tRNS,4,4
	.comm	PNG_ChunkType_PLTE,4,4
	.comm	PNG_ChunkType_IHDR,4,4
	.comm	PNG_ChunkHeader_Size,4,4
	.comm	PNG_ChunkCRC_Size,4,4
	.comm	INT_MAX,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_tr_image_png.c_R_LoadPNG.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC1:
	.ascii	"%s: invalid image size\012\000"
	.global	__aeabi_idivmod
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	R_LoadPNG
	.syntax unified
	.arm
	.fpu softvfp
	.type	R_LoadPNG, %function
R_LoadPNG:
	@ args = 0, pretend = 0, frame = 4152
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	clz	r1, r1
	cmp	r0, #0
	lsr	r1, r1, #5
	movne	r8, r1
	moveq	r8, #1
	sub	sp, sp, #4160
	sub	sp, sp, #12
	ldr	lr, .L86
	add	ip, sp, #44
	mov	r4, r0
	mov	r7, r2
	mov	r6, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	add	r2, sp, #4160
	ldr	r3, .L86+4
	ldr	lr, .L86+8
	cmp	r8, #0
	add	r2, r2, #4
	ldr	lr, [lr]
	str	lr, [r2]
	mov	lr,#0
	ldr	r10, [r3]
	stm	ip, {r0, r1}
	bne	.L1
	cmp	r7, #0
	str	r8, [r5]
	strne	r8, [r7]
	cmp	r6, #0
	movne	r3, #0
	mov	r0, r4
	strne	r3, [r6]
	bl	ReadBufferedFile
	subs	r8, r0, #0
	beq	.L1
	ldr	r9, .L86+12
	ldr	r1, [r9]
	bl	BufferedFileRead
	cmp	r0, #0
	beq	.L80
	ldr	r3, .L86+16
	ldr	r2, [r9]
	ldr	r1, [r3]
	bl	memcmp
	subs	r3, r0, #0
	str	r3, [sp, #20]
	mov	r0, r8
	bne	.L81
	ldr	r3, .L86+20
	ldr	r1, [r3]
	bl	BufferedFileRead
	subs	fp, r0, #0
	beq	.L80
	ldr	r0, [fp, #4]
	bl	BigLong
	mov	r3, r0
	ldr	r0, [fp]
	mov	fp, r3
	bl	BigLong
	ldr	r3, .L86+24
	ldr	r3, [r3]
	cmp	r3, r0
	mov	r0, r8
	bne	.L81
	ldr	r3, .L86+28
	ldr	r1, [r3]
	cmp	r1, fp
	beq	.L10
.L81:
	bl	CloseBufferedFile
.L1:
	add	r3, sp, #4160
	ldr	r2, .L86+8
	add	r3, r3, #4
	ldr	r1, [r2]
	ldr	r2, [r3]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L84
	add	sp, sp, #4160
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	bl	BufferedFileRead
	subs	fp, r0, #0
	mov	r0, r8
	beq	.L81
	ldr	r3, .L86+32
	ldr	r1, [r3]
	bl	BufferedFileRead
	cmp	r0, #0
	beq	.L80
	ldr	r0, [fp, #20]
	bl	BigLong
	mov	r3, r0
	ldr	r0, [fp, #16]
	str	r3, [sp, #24]
	bl	BigLong
	ldr	r3, [sp, #24]
	str	r0, [sp, #28]
	cmp	r0, #0
	cmpgt	r3, #0
	ble	.L13
	ldr	r3, .L86+36
	ldr	r2, .L86+40
	ldr	r0, [r3]
	ldr	r1, [r2]
	bl	__aeabi_idiv
	ldr	r1, [sp, #28]
	bl	__aeabi_idiv
	ldr	r3, [sp, #24]
	cmp	r0, r3
	blt	.L13
	ldr	r3, .L86+44
	ldr	r2, [fp]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L80
	ldr	r3, .L86+48
	ldr	r2, [fp, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L80
	ldr	r3, [fp, #8]
	sub	r3, r3, #128
	cmp	r3, #1
	bhi	.L80
	ldr	r3, [fp, #12]
	cmp	r3, #131
	beq	.L85
.L18:
	ldr	r4, .L86+52
	mov	r0, r8
	ldr	r1, [r4]
	bl	FindChunk
	cmp	r0, #0
	beq	.L27
	ldr	r3, .L86+20
	mov	r0, r8
	ldr	r1, [r3]
	bl	BufferedFileRead
	subs	r10, r0, #0
	beq	.L80
	ldr	r0, [r10, #4]
	bl	BigLong
	mov	r3, r0
	ldr	r0, [r10]
	str	r3, [sp, #32]
	bl	BigLong
	ldr	r2, [r4]
	ldr	r3, [sp, #32]
	cmp	r2, r0
	bne	.L80
	mov	r1, r3
	mov	r0, r8
	str	r3, [sp, #32]
	bl	BufferedFileRead
	subs	r4, r0, #0
	ldr	r3, [sp, #32]
	beq	.L80
	str	r3, [sp, #32]
	ldr	r3, .L86+32
	mov	r0, r8
	ldr	r1, [r3]
	bl	BufferedFileRead
	cmp	r0, #0
	ldr	r3, [sp, #32]
	beq	.L80
	ldr	r2, [fp, #12]
	cmp	r2, #131
	beq	.L32
	cmp	r2, #132
	beq	.L33
	cmp	r2, #130
	bne	.L80
	cmp	r3, #6
	bne	.L80
	ldr	r3, [r4]
	ldr	r2, .L86+56
	str	r3, [sp, #44]
	ldr	r3, [r4, #4]
	ldr	r10, [r2]
	str	r3, [sp, #48]
	ldr	r3, [r4, #8]
	str	r3, [sp, #52]
	ldr	r3, [r4, #12]
	str	r3, [sp, #56]
	ldr	r3, [r4, #16]
	str	r3, [sp, #60]
	ldr	r3, [r4, #20]
	str	r3, [sp, #64]
.L27:
	mvn	r1, #0
	mov	r0, r8
	bl	BufferedFileRewind
	cmp	r0, #0
	beq	.L80
	mov	r0, r8
	ldr	r1, [r9]
	bl	BufferedFileSkip
	cmp	r0, #0
	beq	.L80
	mov	r0, r8
	add	r1, sp, #40
	bl	DecompressIDATs
	subs	r3, r0, #0
	beq	.L80
	ldr	r2, [sp, #40]
	cmp	r2, #0
	beq	.L80
	ldr	r2, [sp, #24]
	str	r3, [sp, #20]
	ldr	r3, [sp, #28]
	ldr	r4, .L86+60
	mul	r2, r3, r2
	ldr	r3, .L86+40
	ldr	r0, [r3]
	mul	r0, r2, r0
	ldr	r2, [r4]
	blx	r2
	subs	r9, r0, #0
	ldr	r3, [sp, #20]
	beq	.L51
	ldr	r2, [fp, #8]
	cmp	r2, #128
	beq	.L46
	cmp	r2, #129
	beq	.L47
	ldr	r3, [r4, #4]
	blx	r3
.L51:
	ldr	r3, [r4, #4]
	ldr	r0, [sp, #40]
	blx	r3
.L80:
	mov	r0, r8
	bl	CloseBufferedFile
	b	.L1
.L13:
	mov	r0, r8
	bl	CloseBufferedFile
	ldr	r1, .L86+64
	ldr	r3, .L86+60
	mov	r2, r4
	ldr	r0, [r1]
	ldr	r3, [r3, #8]
	ldr	r1, .L86+68
	blx	r3
	b	.L1
.L85:
	ldr	r3, .L86+72
	mov	r0, r8
	ldr	r1, [r3]
	bl	FindChunk
	cmp	r0, #0
	beq	.L80
	ldr	r3, .L86+20
	mov	r0, r8
	ldr	r1, [r3]
	bl	BufferedFileRead
	subs	r4, r0, #0
	beq	.L80
	ldr	r0, [r4, #4]
	bl	BigLong
	mov	r3, r0
	ldr	r0, [r4]
	mov	r4, r3
	bl	BigLong
	ldr	r3, .L86+72
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L80
	mov	r1, #3
	mov	r0, r4
	bl	__aeabi_idivmod
	subs	r3, r1, #0
	str	r3, [sp, #32]
	bne	.L80
	mov	r1, r4
	mov	r0, r8
	bl	BufferedFileRead
	subs	r3, r0, #0
	str	r3, [sp, #36]
	beq	.L80
	ldr	r3, .L86+32
	mov	r0, r8
	ldr	r1, [r3]
	bl	BufferedFileRead
	cmp	r0, #0
	beq	.L80
	add	r0, sp, #68
	mov	r3, r0
	mov	ip, #256
	mov	r2, #0
	mov	lr, #255
	ldr	r1, .L86+40
	ldr	r1, [r1]
	lsl	r1, r1, #2
.L25:
	subs	ip, ip, #1
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	lr, [r3, #12]
	add	r3, r3, r1
	bne	.L25
	ldr	ip, .L86+76
	cmp	r4, #2
	smull	r2, r3, r4, ip
	sub	r4, r3, r4, asr #31
	ble	.L18
	mov	r2, #255
	ldr	r3, [sp, #36]
	ldr	ip, [sp, #32]
.L26:
	ldr	lr, [r3]
	add	ip, ip, #1
	str	lr, [r0]
	ldr	lr, [r3, #4]
	cmp	r4, ip
	str	lr, [r0, #4]
	ldr	lr, [r3, #8]
	str	r2, [r0, #12]
	str	lr, [r0, #8]
	add	r3, r3, #12
	add	r0, r0, r1
	bgt	.L26
	b	.L18
.L84:
	bl	__stack_chk_fail
.L47:
	add	r2, sp, #72
	add	r1, sp, #68
	sub	r2, r2, #28
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	mov	r0, fp
	mov	r1, r9
	ldr	r2, [sp, #40]
	str	r10, [sp]
	bl	DecodeImageInterlaced
	cmp	r0, #0
	beq	.L82
.L49:
	cmp	r7, #0
	ldrne	r3, [sp, #24]
	str	r9, [r5]
	strne	r3, [r7]
	cmp	r6, #0
	ldrne	r3, [sp, #28]
	strne	r3, [r6]
	b	.L51
.L46:
	add	r2, sp, #72
	add	r1, sp, #68
	sub	r2, r2, #28
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	mov	r0, fp
	mov	r1, r9
	ldr	r2, [sp, #40]
	str	r10, [sp]
	bl	DecodeImageNonInterlaced
	cmp	r0, #0
	bne	.L49
.L82:
	mov	r0, r9
	ldr	r3, [r4, #4]
	blx	r3
	b	.L51
.L33:
	cmp	r3, #2
	bne	.L80
	ldr	r3, [r4]
	ldr	r2, .L86+56
	str	r3, [sp, #44]
	ldr	r3, [r4, #4]
	ldr	r10, [r2]
	str	r3, [sp, #48]
	b	.L27
.L32:
	cmp	r3, #256
	bgt	.L80
	ldr	r1, .L86+40
	ldr	r2, .L86+56
	ldr	r1, [r1]
	ldr	r10, [r2]
	ldr	r0, [sp, #20]
	lsl	r1, r1, #2
	add	r2, sp, #68
	b	.L39
.L40:
	ldr	ip, [r4, r0, lsl #2]
	add	r0, r0, #1
	str	ip, [r2, #12]
	add	r2, r2, r1
.L39:
	cmp	r0, r3
	blt	.L40
	b	.L27
.L87:
	.align	2
.L86:
	.word	.LANCHOR0
	.word	qfalse
	.word	.LC2
	.word	PNG_Signature_Size
	.word	PNG_Signature
	.word	PNG_ChunkHeader_Size
	.word	PNG_ChunkType_IHDR
	.word	PNG_Chunk_IHDR_Size
	.word	PNG_ChunkCRC_Size
	.word	INT_MAX
	.word	Q3IMAGE_BYTESPERPIXEL
	.word	PNG_CompressionMethod_0
	.word	PNG_FilterMethod_0
	.word	PNG_ChunkType_tRNS
	.word	qtrue
	.word	ri
	.word	PRINT_WARNING
	.word	.LC1
	.word	PNG_ChunkType_PLTE
	.word	1431655766
	.size	R_LoadPNG, .-R_LoadPNG
	.comm	ri,12,4
	.comm	qtrue,4,4
	.comm	qfalse,4,4
	.comm	Q3IMAGE_BYTESPERPIXEL,4,4
	.comm	PRINT_WARNING,4,4
	.comm	PNG_Signature_Size,4,4
	.comm	PNG_Signature,4,4
	.comm	PNG_FilterMethod_0,4,4
	.comm	PNG_CompressionMethod_0,4,4
	.comm	PNG_Chunk_IHDR_Size,4,4
	.comm	PNG_ChunkType_tRNS,4,4
	.comm	PNG_ChunkType_PLTE,4,4
	.comm	PNG_ChunkType_IHDR,4,4
	.comm	PNG_ChunkHeader_Size,4,4
	.comm	PNG_ChunkCRC_Size,4,4
	.comm	INT_MAX,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC0:
	.word	255
	.word	255
	.word	255
	.word	255
	.word	255
	.word	255
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
