	.file	"196971.c"
	.intel_syntax noprefix
	.text
	.globl	width
	.bss
	.align 4
	.type	width, @object
	.size	width, 4
width:
	.zero	4
	.globl	height
	.align 4
	.type	height, @object
	.size	height, 4
height:
	.zero	4
	.globl	color_type
	.type	color_type, @object
	.size	color_type, 1
color_type:
	.zero	1
	.globl	bit_depth
	.type	bit_depth, @object
	.size	bit_depth, 1
bit_depth:
	.zero	1
	.globl	row_pointers
	.align 8
	.type	row_pointers, @object
	.size	row_pointers, 8
row_pointers:
	.zero	8
	.section	.rodata
.LC0:
	.string	"1.6.37"
	.text
	.globl	read_png_file
	.type	read_png_file, @function
read_png_file:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 0
	lea	rdi, .LC0[rip]
	call	png_create_read_struct@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	test	rax, rax
	jne	.L2
	call	abort@PLT
.L2:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	png_create_info_struct@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	test	rax, rax
	jne	.L3
	call	abort@PLT
.L3:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 200
	mov	rcx, QWORD PTR longjmp@GOTPCREL[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	png_set_longjmp_fn@PLT
	mov	rdi, rax
	call	_setjmp@PLT
	endbr64
	test	eax, eax
	je	.L5
	call	abort@PLT
.L5:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	png_init_io@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	png_read_info@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	png_get_image_width@PLT
	mov	DWORD PTR width[rip], eax
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	png_get_image_height@PLT
	mov	DWORD PTR height[rip], eax
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	png_get_color_type@PLT
	mov	BYTE PTR color_type[rip], al
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	png_get_bit_depth@PLT
	mov	BYTE PTR bit_depth[rip], al
	movzx	eax, BYTE PTR bit_depth[rip]
	cmp	al, 16
	jne	.L6
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	png_set_strip_16@PLT
.L6:
	movzx	eax, BYTE PTR color_type[rip]
	cmp	al, 3
	jne	.L7
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	png_set_palette_to_rgb@PLT
.L7:
	movzx	eax, BYTE PTR color_type[rip]
	test	al, al
	jne	.L8
	movzx	eax, BYTE PTR bit_depth[rip]
	cmp	al, 7
	ja	.L8
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	png_set_expand_gray_1_2_4_to_8@PLT
.L8:
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	rdi, rax
	call	png_get_valid@PLT
	test	eax, eax
	je	.L9
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	png_set_tRNS_to_alpha@PLT
.L9:
	movzx	eax, BYTE PTR color_type[rip]
	cmp	al, 2
	je	.L10
	movzx	eax, BYTE PTR color_type[rip]
	test	al, al
	je	.L10
	movzx	eax, BYTE PTR color_type[rip]
	cmp	al, 3
	jne	.L11
.L10:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 1
	mov	esi, 255
	mov	rdi, rax
	call	png_set_filler@PLT
.L11:
	movzx	eax, BYTE PTR color_type[rip]
	test	al, al
	je	.L12
	movzx	eax, BYTE PTR color_type[rip]
	cmp	al, 4
	jne	.L13
.L12:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	png_set_gray_to_rgb@PLT
.L13:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	png_read_update_info@PLT
	mov	rax, QWORD PTR row_pointers[rip]
	test	rax, rax
	je	.L14
	call	abort@PLT
.L14:
	mov	eax, DWORD PTR height[rip]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR row_pointers[rip], rax
	mov	DWORD PTR -44[rbp], 0
	jmp	.L15
.L16:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	png_get_rowbytes@PLT
	mov	rcx, QWORD PTR row_pointers[rip]
	mov	edx, DWORD PTR -44[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -44[rbp], 1
.L15:
	mov	eax, DWORD PTR height[rip]
	cmp	DWORD PTR -44[rbp], eax
	jl	.L16
	mov	rdx, QWORD PTR row_pointers[rip]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	png_read_image@PLT
	lea	rcx, -32[rbp]
	lea	rax, -40[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	png_destroy_read_struct@PLT
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	read_png_file, .-read_png_file
	.section	.rodata
.LC1:
	.string	"%d %d\n"
	.text
	.globl	process_png_file
	.type	process_png_file, @function
process_png_file:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	DWORD PTR -88[rbp], 0
	mov	DWORD PTR -84[rbp], 0
	mov	DWORD PTR -80[rbp], 0
	mov	DWORD PTR -76[rbp], 0
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -80[rbp], 0
	jmp	.L19
.L26:
	mov	rdx, QWORD PTR row_pointers[rip]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -84[rbp], 0
	jmp	.L20
.L23:
	mov	eax, DWORD PTR -84[rbp]
	sal	eax, 2
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L51
	add	DWORD PTR -84[rbp], 1
.L20:
	mov	eax, DWORD PTR width[rip]
	cmp	DWORD PTR -84[rbp], eax
	jl	.L23
	jmp	.L22
.L51:
	nop
.L22:
	mov	eax, DWORD PTR width[rip]
	cmp	DWORD PTR -84[rbp], eax
	jne	.L52
	add	DWORD PTR -80[rbp], 1
.L19:
	mov	eax, DWORD PTR height[rip]
	cmp	DWORD PTR -80[rbp], eax
	jl	.L26
	jmp	.L25
.L52:
	nop
.L25:
	mov	eax, DWORD PTR width[rip]
	cmp	DWORD PTR -84[rbp], eax
	jne	.L27
	mov	eax, DWORD PTR height[rip]
	cmp	DWORD PTR -80[rbp], eax
	jne	.L27
	mov	eax, 0
	jmp	.L28
.L27:
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	sub	eax, 1
	mov	DWORD PTR -72[rbp], eax
	mov	DWORD PTR -88[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	jmp	.L29
.L50:
	mov	rdx, QWORD PTR row_pointers[rip]
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR -76[rbp]
	sal	eax, 2
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	QWORD PTR -40[rbp], rax
	cmp	DWORD PTR -88[rbp], 3
	je	.L30
	cmp	DWORD PTR -88[rbp], 3
	ja	.L29
	cmp	DWORD PTR -88[rbp], 2
	je	.L31
	cmp	DWORD PTR -88[rbp], 2
	ja	.L29
	cmp	DWORD PTR -88[rbp], 0
	je	.L32
	cmp	DWORD PTR -88[rbp], 1
	je	.L33
	jmp	.L29
.L32:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L34
	cmp	DWORD PTR -68[rbp], 0
	jne	.L35
	mov	edi, 10
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	ecx, DWORD PTR -72[rbp]
	mov	edx, DWORD PTR -76[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	DWORD PTR -68[rbp], 5
	jmp	.L36
.L35:
	sub	DWORD PTR -68[rbp], 1
.L36:
	mov	DWORD PTR -88[rbp], 3
	sub	DWORD PTR -76[rbp], 1
	jmp	.L29
.L34:
	mov	DWORD PTR -88[rbp], 1
	add	DWORD PTR -76[rbp], 1
	jmp	.L29
.L33:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L38
	cmp	DWORD PTR -68[rbp], 0
	jne	.L39
	mov	edi, 10
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	ecx, DWORD PTR -72[rbp]
	mov	edx, DWORD PTR -76[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	DWORD PTR -68[rbp], 5
	jmp	.L40
.L39:
	sub	DWORD PTR -68[rbp], 1
.L40:
	mov	DWORD PTR -88[rbp], 0
	sub	DWORD PTR -72[rbp], 1
	jmp	.L29
.L38:
	mov	DWORD PTR -88[rbp], 2
	add	DWORD PTR -72[rbp], 1
	jmp	.L29
.L31:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L42
	cmp	DWORD PTR -68[rbp], 0
	jne	.L43
	mov	edi, 10
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	ecx, DWORD PTR -72[rbp]
	mov	edx, DWORD PTR -76[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	DWORD PTR -68[rbp], 5
	jmp	.L44
.L43:
	sub	DWORD PTR -68[rbp], 1
.L44:
	mov	DWORD PTR -88[rbp], 1
	add	DWORD PTR -76[rbp], 1
	jmp	.L29
.L42:
	mov	DWORD PTR -88[rbp], 3
	sub	DWORD PTR -76[rbp], 1
	jmp	.L29
.L30:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L46
	cmp	DWORD PTR -68[rbp], 0
	jne	.L47
	mov	edi, 10
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	ecx, DWORD PTR -72[rbp]
	mov	edx, DWORD PTR -76[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	DWORD PTR -68[rbp], 5
	jmp	.L48
.L47:
	sub	DWORD PTR -68[rbp], 1
.L48:
	mov	DWORD PTR -88[rbp], 2
	add	DWORD PTR -72[rbp], 1
	jmp	.L53
.L46:
	mov	DWORD PTR -88[rbp], 0
	sub	DWORD PTR -72[rbp], 1
.L53:
	nop
.L29:
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jne	.L50
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	jne	.L50
	mov	eax, 1
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	process_png_file, .-process_png_file
	.globl	freeMemory
	.type	freeMemory, @function
freeMemory:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], 0
	jmp	.L55
.L56:
	mov	rdx, QWORD PTR row_pointers[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -4[rbp], 1
.L55:
	mov	eax, DWORD PTR height[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L56
	mov	rax, QWORD PTR row_pointers[rip]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR row_pointers[rip], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	freeMemory, .-freeMemory
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"196971.c"
	.text
	.comm	width,4,4
	.comm	height,4,4
	.comm	color_type,1,1
	.comm	bit_depth,1,1
	.global	row_pointers
	.bss
	.align	2
	.type	row_pointers, %object
	.size	row_pointers, 4
row_pointers:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"1.6.37\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_png_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_png_file, %function
read_png_file:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L18+4
	bl	png_create_read_struct
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L2
	bl	abort
.L2:
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	png_create_info_struct
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L3
	bl	abort
.L3:
	ldr	r3, [fp, #-28]
	mov	r2, #392
	ldr	r1, .L18+8
	mov	r0, r3
	bl	png_set_longjmp_fn
	mov	r3, r0
	mov	r0, r3
	bl	_setjmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	bl	abort
.L5:
	ldr	r3, [fp, #-28]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	png_init_io
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	mov	r1, r2
	mov	r0, r3
	bl	png_read_info
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	mov	r1, r2
	mov	r0, r3
	bl	png_get_image_width
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L18+12
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	mov	r1, r2
	mov	r0, r3
	bl	png_get_image_height
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L18+16
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	mov	r1, r2
	mov	r0, r3
	bl	png_get_color_type
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L18+20
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	mov	r1, r2
	mov	r0, r3
	bl	png_get_bit_depth
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L18+24
	strb	r2, [r3]
	ldr	r3, .L18+24
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #16
	bne	.L6
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	png_set_strip_16
.L6:
	ldr	r3, .L18+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #3
	bne	.L7
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	png_set_palette_to_rgb
.L7:
	ldr	r3, .L18+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L8
	ldr	r3, .L18+24
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #7
	bhi	.L8
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	png_set_expand_gray_1_2_4_to_8
.L8:
	ldr	r3, [fp, #-28]
	ldr	r1, [fp, #-24]
	mov	r2, #16
	mov	r0, r3
	bl	png_get_valid
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	png_set_tRNS_to_alpha
.L9:
	ldr	r3, .L18+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #2
	beq	.L10
	ldr	r3, .L18+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L18+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #3
	bne	.L11
.L10:
	ldr	r3, [fp, #-28]
	mov	r2, #1
	mov	r1, #255
	mov	r0, r3
	bl	png_set_filler
.L11:
	ldr	r3, .L18+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L18+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #4
	bne	.L13
.L12:
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	png_set_gray_to_rgb
.L13:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	mov	r1, r2
	mov	r0, r3
	bl	png_read_update_info
	ldr	r3, .L18+28
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	bl	abort
.L14:
	ldr	r3, .L18+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L18+28
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L15
.L16:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	mov	r1, r2
	mov	r0, r3
	bl	png_get_rowbytes
	mov	r1, r0
	ldr	r3, .L18+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L15:
	ldr	r3, .L18+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L16
	ldr	r3, [fp, #-28]
	ldr	r2, .L18+28
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	png_read_image
	sub	r1, fp, #24
	sub	r3, fp, #28
	mov	r2, #0
	mov	r0, r3
	bl	png_destroy_read_struct
	nop
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC1
	.word	.LC0
	.word	longjmp
	.word	width
	.word	height
	.word	color_type
	.word	bit_depth
	.word	row_pointers
	.size	read_png_file, .-read_png_file
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%d %d\012\000"
	.text
	.align	2
	.global	process_png_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_png_file, %function
process_png_file:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L21
.L28:
	ldr	r3, .L57
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L22
.L25:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L54
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L22:
	ldr	r3, .L57+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	blt	.L25
	b	.L24
.L54:
	nop
.L24:
	ldr	r3, .L57+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	bne	.L55
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L21:
	ldr	r3, .L57+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L28
	b	.L27
.L55:
	nop
.L27:
	ldr	r3, .L57+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	bne	.L29
	ldr	r3, .L57+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	bne	.L29
	mov	r3, #0
	b	.L30
.L29:
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L31
.L53:
	ldr	r3, .L57
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, r2
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-60]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L31
.L33:
	.word	.L36
	.word	.L35
	.word	.L34
	.word	.L32
.L36:
	ldr	r3, [fp, #-24]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L37
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L38
	mov	r0, #10
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-48]
	ldr	r1, .L57+12
	ldr	r0, [fp, #-8]
	bl	sprintf
	ldr	r0, [fp, #-8]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-64]
	bl	strncat
	ldr	r0, [fp, #-8]
	bl	free
	mov	r3, #5
	str	r3, [fp, #-40]
	b	.L39
.L38:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	str	r3, [fp, #-40]
.L39:
	mov	r3, #3
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	str	r3, [fp, #-48]
	b	.L31
.L37:
	mov	r3, #1
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	b	.L31
.L35:
	ldr	r3, [fp, #-24]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L41
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L42
	mov	r0, #10
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-48]
	ldr	r1, .L57+12
	ldr	r0, [fp, #-12]
	bl	sprintf
	ldr	r0, [fp, #-12]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-64]
	bl	strncat
	ldr	r0, [fp, #-12]
	bl	free
	mov	r3, #5
	str	r3, [fp, #-40]
	b	.L43
.L42:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	str	r3, [fp, #-40]
.L43:
	mov	r3, #0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L31
.L41:
	mov	r3, #2
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L31
.L34:
	ldr	r3, [fp, #-24]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L45
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L46
	mov	r0, #10
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-48]
	ldr	r1, .L57+12
	ldr	r0, [fp, #-16]
	bl	sprintf
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-64]
	bl	strncat
	ldr	r0, [fp, #-16]
	bl	free
	mov	r3, #5
	str	r3, [fp, #-40]
	b	.L47
.L46:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	str	r3, [fp, #-40]
.L47:
	mov	r3, #1
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	b	.L31
.L45:
	mov	r3, #3
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-48]
	sub	r3, r3, #1
	str	r3, [fp, #-48]
	b	.L31
.L32:
	ldr	r3, [fp, #-24]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L50
	mov	r0, #10
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-48]
	ldr	r1, .L57+12
	ldr	r0, [fp, #-20]
	bl	sprintf
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-64]
	bl	strncat
	ldr	r0, [fp, #-20]
	bl	free
	mov	r3, #5
	str	r3, [fp, #-40]
	b	.L51
.L50:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	str	r3, [fp, #-40]
.L51:
	mov	r3, #2
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L56
.L49:
	mov	r3, #0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	str	r3, [fp, #-44]
.L56:
	nop
.L31:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	bne	.L53
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	bne	.L53
	mov	r3, #1
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	row_pointers
	.word	width
	.word	height
	.word	.LC2
	.size	process_png_file, .-process_png_file
	.align	2
	.global	freeMemory
	.syntax unified
	.arm
	.fpu softvfp
	.type	freeMemory, %function
freeMemory:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L60
.L61:
	ldr	r3, .L62
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L60:
	ldr	r3, .L62+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L61
	ldr	r3, .L62
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L62
	mov	r2, #0
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L63:
	.align	2
.L62:
	.word	row_pointers
	.word	height
	.size	freeMemory, .-freeMemory
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
