	.file	"173593.c"
	.intel_syntax noprefix
	.text
	.globl	png_sig
	.section	.rodata
.LC0:
	.string	"\211PNG\r\n\032\n"
	.section	.data.rel.local,"aw"
	.align 8
	.type	png_sig, @object
	.size	png_sig, 8
png_sig:
	.quad	.LC0
	.globl	little_endian
	.bss
	.align 4
	.type	little_endian, @object
	.size	little_endian, 4
little_endian:
	.zero	4
	.text
	.type	endian_swap, @function
endian_swap:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, DWORD PTR little_endian[rip]
	test	eax, eax
	je	.L3
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -9[rbp], al
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR 3[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 3[rax]
	movzx	eax, BYTE PTR -9[rbp]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 1[rax]
	mov	BYTE PTR -9[rbp], al
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 2[rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 2[rax]
	movzx	eax, BYTE PTR -9[rbp]
	mov	BYTE PTR [rdx], al
.L3:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	endian_swap, .-endian_swap
	.section	.rodata
.LC1:
	.string	"tEXt%s"
.LC2:
	.string	"%s"
	.text
	.type	inject_text_chunk, @function
inject_text_chunk:
.LFB7:
	.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, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	eax, ebx
	add	eax, 1
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 5
	mov	eax, eax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 5[rax]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, rax
	lea	rsi, .LC2[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -44[rbp], eax
	lea	rax, -44[rbp]
	mov	rdi, rax
	call	endian_swap
	mov	rdx, QWORD PTR -72[rbp]
	lea	rax, -44[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 4
	mov	esi, eax
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 4
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	crc_calculate@PLT
	mov	DWORD PTR -40[rbp], eax
	lea	rax, -40[rbp]
	mov	rdi, rax
	call	endian_swap
	mov	rdx, QWORD PTR -72[rbp]
	lea	rax, -40[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	inject_text_chunk, .-inject_text_chunk
	.section	.rodata
.LC3:
	.string	"Usage: %s <key> <content>\n\n"
	.align 8
.LC4:
	.string	"Reads a PNG image from standard input;\n"
	.align 8
.LC5:
	.string	"injects a text chunk (key=content);\n"
	.align 8
.LC6:
	.string	"copies all other chunks unchanged to standard output.\n"
.LC7:
	.string	"the_stack_data/173593.c"
	.align 8
.LC8:
	.string	"fread(sig, 1, PNG_SIG_SIZE, infile) == PNG_SIG_SIZE"
	.align 8
.LC9:
	.string	"strncmp(png_sig, sig, PNG_SIG_SIZE) == 0"
.LC10:
	.string	"IDAT"
.LC11:
	.string	"IEND"
	.text
	.globl	main
	.type	main, @function
main:
.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -84[rbp], 2
	jg	.L7
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 39
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 36
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 54
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
.L7:
	mov	DWORD PTR -64[rbp], 1
	lea	rax, -64[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	setne	al
	movzx	eax, al
	mov	DWORD PTR little_endian[rip], eax
	mov	rax, QWORD PTR stdin[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR stdout[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -60[rbp], 1024
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -16[rbp]
	mov	rcx, rdx
	mov	edx, 8
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 8
	je	.L8
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 70
	lea	rsi, .LC7[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L8:
	mov	rax, QWORD PTR png_sig[rip]
	lea	rcx, -16[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L9
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 71
	lea	rsi, .LC7[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L9:
	mov	rax, QWORD PTR png_sig[rip]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rcx, rdx
	mov	edx, 8
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	DWORD PTR -56[rbp], 0
.L16:
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -76[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 4
	je	.L10
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	jmp	.L18
.L10:
	lea	rax, -76[rbp]
	mov	rdi, rax
	call	endian_swap
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -20[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	jmp	.L12
.L13:
	sal	DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -48[rbp], rax
.L12:
	mov	edx, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -76[rbp]
	cmp	edx, eax
	jb	.L13
	mov	eax, DWORD PTR -76[rbp]
	mov	esi, eax
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -72[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	lea	rax, -72[rbp]
	mov	rdi, rax
	call	endian_swap
	mov	eax, DWORD PTR -76[rbp]
	mov	DWORD PTR -68[rbp], eax
	lea	rax, -68[rbp]
	mov	rdi, rax
	call	endian_swap
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -64[rbp], eax
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	endian_swap
	lea	rax, -20[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L14
	lea	rax, -20[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L15
.L14:
	cmp	DWORD PTR -56[rbp], 0
	jne	.L15
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 16
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	inject_text_chunk
	mov	DWORD PTR -56[rbp], 1
.L15:
	mov	rdx, QWORD PTR -32[rbp]
	lea	rax, -68[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rdx, QWORD PTR -32[rbp]
	lea	rax, -20[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -76[rbp]
	mov	esi, eax
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rdx, QWORD PTR -32[rbp]
	lea	rax, -64[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	jmp	.L16
.L18:
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"main"
	.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	"173593.c"
	.text
	.global	png_sig
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\211PNG\015\012\032\012\000"
	.data
	.align	2
	.type	png_sig, %object
	.size	png_sig, 4
png_sig:
	.word	.LC0
	.global	little_endian
	.bss
	.align	2
	.type	little_endian, %object
	.size	little_endian, 4
little_endian:
	.space	4
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	endian_swap, %function
endian_swap:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, .L4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]
	strb	r3, [fp, #-9]
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3, #3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #3
	ldrb	r2, [fp, #-9]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #1]
	strb	r3, [fp, #-9]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #-8]
	ldrb	r2, [r2, #2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	ldrb	r2, [fp, #-9]
	strb	r2, [r3]
.L3:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L5:
	.align	2
.L4:
	.word	little_endian
	.size	endian_swap, .-endian_swap
	.section	.rodata
	.align	2
.LC1:
	.ascii	"tEXt%s\000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	inject_text_chunk, %function
inject_text_chunk:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, [fp, #-40]
	bl	strlen
	mov	r4, r0
	ldr	r0, [fp, #-44]
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	add	r3, r3, #5
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-40]
	ldr	r1, .L8+4
	ldr	r0, [fp, #-20]
	bl	sprintf
	ldr	r0, [fp, #-40]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #5
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [fp, #-44]
	ldr	r1, .L8+8
	mov	r0, r3
	bl	sprintf
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-32]
	sub	r3, fp, #32
	mov	r0, r3
	bl	endian_swap
	sub	r0, fp, #32
	ldr	r3, [fp, #-48]
	mov	r2, #4
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-24]
	add	r2, r3, #4
	ldr	r3, [fp, #-48]
	mov	r1, #1
	ldr	r0, [fp, #-20]
	bl	fwrite
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	crc_calculate
	mov	r3, r0
	str	r3, [fp, #-28]
	sub	r3, fp, #28
	mov	r0, r3
	bl	endian_swap
	sub	r0, fp, #28
	ldr	r3, [fp, #-48]
	mov	r2, #4
	mov	r1, #1
	bl	fwrite
	nop
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.size	inject_text_chunk, .-inject_text_chunk
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Usage: %s <key> <content>\012\012\000"
	.align	2
.LC5:
	.ascii	"Reads a PNG image from standard input;\012\000"
	.align	2
.LC6:
	.ascii	"injects a text chunk (key=content);\012\000"
	.align	2
.LC7:
	.ascii	"copies all other chunks unchanged to standard outpu"
	.ascii	"t.\012\000"
	.align	2
.LC8:
	.ascii	"the_stack_data/173593.c\000"
	.align	2
.LC9:
	.ascii	"fread(sig, 1, PNG_SIG_SIZE, infile) == PNG_SIG_SIZE"
	.ascii	"\000"
	.align	2
.LC10:
	.ascii	"strncmp(png_sig, sig, PNG_SIG_SIZE) == 0\000"
	.align	2
.LC11:
	.ascii	"IDAT\000"
	.align	2
.LC12:
	.ascii	"IEND\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-68]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-64]
	cmp	r3, #2
	bgt	.L11
	ldr	r3, .L23+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L23+8
	bl	fprintf
	ldr	r3, .L23+4
	ldr	r3, [r3]
	mov	r2, #39
	mov	r1, #1
	ldr	r0, .L23+12
	bl	fwrite
	ldr	r3, .L23+4
	ldr	r3, [r3]
	mov	r2, #36
	mov	r1, #1
	ldr	r0, .L23+16
	bl	fwrite
	ldr	r3, .L23+4
	ldr	r3, [r3]
	mov	r2, #54
	mov	r1, #1
	ldr	r0, .L23+20
	bl	fwrite
.L11:
	mov	r3, #1
	str	r3, [fp, #-48]
	sub	r3, fp, #48
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, .L23+24
	str	r2, [r3]
	ldr	r3, .L23+28
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	ldr	r3, .L23+32
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	mov	r3, #1024
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-40]
	sub	r0, fp, #16
	ldr	r3, [fp, #-32]
	mov	r2, #8
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #8
	beq	.L12
	ldr	r3, .L23+36
	mov	r2, #70
	ldr	r1, .L23+40
	ldr	r0, .L23+44
	bl	__assert_fail
.L12:
	ldr	r3, .L23+48
	ldr	r3, [r3]
	sub	r1, fp, #16
	mov	r2, #8
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L23+36
	mov	r2, #71
	ldr	r1, .L23+40
	ldr	r0, .L23+52
	bl	__assert_fail
.L13:
	ldr	r3, .L23+48
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	mov	r2, #8
	mov	r1, #1
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-36]
.L20:
	sub	r0, fp, #60
	ldr	r3, [fp, #-32]
	mov	r2, #4
	mov	r1, #1
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #4
	beq	.L14
	mov	r3, #0
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	b	.L22
.L14:
	sub	r3, fp, #60
	mov	r0, r3
	bl	endian_swap
	sub	r0, fp, #20
	ldr	r3, [fp, #-32]
	mov	r2, #4
	mov	r1, #1
	bl	fread
	b	.L16
.L17:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	realloc
	str	r0, [fp, #-40]
.L16:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	bcc	.L17
	ldr	r1, [fp, #-60]
	ldr	r3, [fp, #-32]
	mov	r2, #1
	ldr	r0, [fp, #-40]
	bl	fread
	sub	r0, fp, #56
	ldr	r3, [fp, #-32]
	mov	r2, #4
	mov	r1, #1
	bl	fread
	sub	r3, fp, #56
	mov	r0, r3
	bl	endian_swap
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-52]
	sub	r3, fp, #52
	mov	r0, r3
	bl	endian_swap
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-48]
	sub	r3, fp, #48
	mov	r0, r3
	bl	endian_swap
	sub	r3, fp, #20
	ldr	r1, .L23+56
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	sub	r3, fp, #20
	ldr	r1, .L23+60
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
.L18:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-68]
	add	r3, r3, #4
	ldr	r0, [r3]
	ldr	r3, [fp, #-68]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	mov	r1, r3
	bl	inject_text_chunk
	mov	r3, #1
	str	r3, [fp, #-36]
.L19:
	sub	r0, fp, #52
	ldr	r3, [fp, #-28]
	mov	r2, #4
	mov	r1, #1
	bl	fwrite
	sub	r0, fp, #20
	ldr	r3, [fp, #-28]
	mov	r2, #4
	mov	r1, #1
	bl	fwrite
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-28]
	mov	r1, #1
	ldr	r0, [fp, #-40]
	bl	fwrite
	sub	r0, fp, #48
	ldr	r3, [fp, #-28]
	mov	r2, #4
	mov	r1, #1
	bl	fwrite
	b	.L20
.L22:
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC13
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	little_endian
	.word	stdin
	.word	stdout
	.word	__PRETTY_FUNCTION__.5362
	.word	.LC8
	.word	.LC9
	.word	png_sig
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5362, %object
	.size	__PRETTY_FUNCTION__.5362, 5
__PRETTY_FUNCTION__.5362:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
