	.file	"49266.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Unable to open file"
.LC1:
	.string	"Unable to parse file"
.LC2:
	.string	"PNG image width: %d\n"
.LC3:
	.string	"PNG image height: %d\n"
.LC4:
	.string	"PNG file size: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	read_image@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	read_image@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	movabs	rdx, 727905341920923785
	cmp	rax, rdx
	je	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L3
.L4:
	mov	DWORD PTR -36[rbp], 0
	add	QWORD PTR -16[rbp], 8
	add	QWORD PTR -8[rbp], 8
	add	DWORD PTR -36[rbp], 8
.L7:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	ntohl@PLT
	mov	DWORD PTR -32[rbp], eax
	add	QWORD PTR -16[rbp], 4
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	ntohl@PLT
	mov	DWORD PTR -28[rbp], eax
	add	QWORD PTR -16[rbp], 4
	cmp	DWORD PTR -28[rbp], 1229472850
	jne	.L5
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -32[rbp]
	add	eax, 4
	mov	eax, eax
	add	QWORD PTR -16[rbp], rax
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	ntohl@PLT
	mov	DWORD PTR -24[rbp], eax
	add	QWORD PTR -8[rbp], 4
	add	DWORD PTR -36[rbp], 4
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	ntohl@PLT
	mov	DWORD PTR -20[rbp], eax
	add	QWORD PTR -8[rbp], 4
	add	DWORD PTR -36[rbp], 4
	cmp	DWORD PTR -20[rbp], 1229278788
	jne	.L8
	add	DWORD PTR -36[rbp], 4
	nop
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	ntohl@PLT
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -16[rbp], 4
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	ntohl@PLT
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L3
.L8:
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 4
	mov	eax, eax
	add	QWORD PTR -8[rbp], rax
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	add	eax, 4
	mov	DWORD PTR -36[rbp], eax
	jmp	.L6
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-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	"49266.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Unable to open file\000"
	.align	2
.LC1:
	.ascii	"Unable to parse file\000"
	.align	2
.LC2:
	.ascii	"PNG image width: %d\012\000"
	.align	2
.LC3:
	.ascii	"PNG image height: %d\012\000"
	.align	2
.LC4:
	.ascii	"PNG file size: %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	read_image
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	read_image
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L10+8
	bl	puts
	mov	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-32]
	ldmia	r3, {r2-r3}
	adr	r1, .L10
	ldmia	r1, {r0-r1}
	cmp	r3, r1
	cmpeq	r2, r0
	beq	.L4
	ldr	r0, .L10+12
	bl	puts
	mov	r3, #0
	b	.L3
.L4:
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	add	r3, r3, #8
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	str	r3, [fp, #-24]
.L7:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	mov	r0, r3
	bl	ntohl
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	mov	r0, r3
	bl	ntohl
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-16]
	ldr	r2, .L10+16
	cmp	r3, r2
	bne	.L5
	b	.L6
.L5:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	b	.L7
.L6:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	ntohl
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	ntohl
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-8]
	ldr	r2, .L10+20
	cmp	r3, r2
	bne	.L8
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	str	r3, [fp, #-24]
	nop
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	mov	r0, r3
	bl	ntohl
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L10+24
	bl	printf
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	mov	r0, r3
	bl	ntohl
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L10+28
	bl	printf
	ldr	r1, [fp, #-24]
	ldr	r0, .L10+32
	bl	printf
	mov	r3, #0
	b	.L3
.L8:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	add	r3, r3, #4
	str	r3, [fp, #-24]
	b	.L6
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	3
.L10:
	.word	1196314761
	.word	169478669
	.word	.LC0
	.word	.LC1
	.word	1229472850
	.word	1229278788
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
