	.file	"extr_pnm2png.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"rb"
.LC1:
	.string	"PNM2PNG\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Error:  alpha-channel file %s does not exist\n"
	.section	.rodata.str1.1
.LC3:
	.string	"Error:  unknown option %s\n"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Error:  file %s does not exist\n"
	.section	.rodata.str1.1
.LC5:
	.string	"wb"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"Error:  can not create PNG-file %s\n"
	.section	.rodata.str1.1
.LC7:
	.string	"Error:  too many parameters\n"
	.section	.rodata.str1.8
	.align 8
.LC8:
	.string	"Error:  unsuccessful converting to PNG-image\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.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, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR FALSE[rip]
	mov	r12, QWORD PTR stdin[rip]
	mov	rbp, QWORD PTR stdout[rip]
	mov	QWORD PTR 24[rsp], rax
	cmp	edi, 1
	jle	.L14
	mov	QWORD PTR 8[rsp], rax
	mov	ebx, edi
	mov	r13, rsi
	mov	ecx, 1
	mov	QWORD PTR 16[rsp], 0
	lea	r14, .LC1[rip]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	QWORD PTR stdin[rip], r12
	je	.L31
	cmp	QWORD PTR stdout[rip], rbp
	je	.L32
	mov	edi, DWORD PTR stderr[rip]
	mov	rsi, r14
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	xor	eax, eax
	call	fprintf@PLT
.L28:
	xor	eax, eax
	call	usage@PLT
	mov	edi, 1
	call	exit@PLT
	mov	ecx, r15d
.L8:
	cmp	ebx, ecx
	jle	.L2
.L11:
	movsx	rax, ecx
	lea	r15d, 1[rcx]
	sal	rax, 3
	lea	rdx, 0[r13+rax]
	mov	rdi, QWORD PTR [rdx]
	cmp	BYTE PTR [rdi], 45
	jne	.L3
	movzx	esi, BYTE PTR 1[rdi]
	cmp	sil, 104
	je	.L4
	jg	.L5
	cmp	sil, 63
	je	.L4
	cmp	sil, 97
	jne	.L7
	lea	r15, 8[r13+rax]
	mov	rdx, QWORD PTR TRUE[rip]
	lea	rsi, .LC0[rip]
	mov	DWORD PTR 32[rsp], ecx
	mov	rdi, QWORD PTR [r15]
	mov	QWORD PTR 8[rsp], rdx
	call	fopen@PLT
	mov	ecx, DWORD PTR 32[rsp]
	mov	QWORD PTR 16[rsp], rax
	add	ecx, 2
	test	rax, rax
	jne	.L8
	mov	edi, DWORD PTR stderr[rip]
	mov	rsi, r14
	mov	DWORD PTR 32[rsp], ecx
	call	fprintf@PLT
	mov	rdx, QWORD PTR [r15]
	mov	edi, DWORD PTR stderr[rip]
	xor	eax, eax
	lea	rsi, .LC2[rip]
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	mov	ecx, DWORD PTR 32[rsp]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	sil, 105
	jne	.L7
	mov	rax, QWORD PTR TRUE[rip]
	mov	ecx, r15d
	mov	QWORD PTR 24[rsp], rax
	cmp	ebx, ecx
	jg	.L11
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r8, QWORD PTR 8[rsp]
	mov	rcx, QWORD PTR 24[rsp]
	mov	rsi, rbp
	mov	rdi, r12
	mov	rdx, QWORD PTR 16[rsp]
	call	pnm2png@PLT
	cmp	rax, QWORD PTR FALSE[rip]
	je	.L33
.L12:
	mov	rdi, r12
	call	fclose@PLT
	mov	rdi, rbp
	call	fclose@PLT
	cmp	QWORD PTR 8[rsp], 0
	jne	.L34
.L13:
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L32:
	.cfi_restore_state
	lea	rsi, .LC5[rip]
	mov	QWORD PTR 32[rsp], rdx
	call	fopen@PLT
	mov	ecx, r15d
	mov	rbp, rax
	test	rax, rax
	jne	.L8
	mov	edi, DWORD PTR stderr[rip]
	mov	rsi, r14
	xor	eax, eax
	mov	DWORD PTR 44[rsp], r15d
	call	fprintf@PLT
	mov	rdx, QWORD PTR 32[rsp]
	lea	rsi, .LC6[rip]
	mov	rdx, QWORD PTR [rdx]
.L29:
	mov	edi, DWORD PTR stderr[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	mov	ecx, DWORD PTR 44[rsp]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L31:
	lea	rsi, .LC0[rip]
	mov	QWORD PTR 32[rsp], rdx
	call	fopen@PLT
	mov	ecx, r15d
	mov	r12, rax
	test	rax, rax
	jne	.L8
	mov	edi, DWORD PTR stderr[rip]
	mov	rsi, r14
	xor	eax, eax
	mov	DWORD PTR 44[rsp], r15d
	call	fprintf@PLT
	mov	rdx, QWORD PTR 32[rsp]
	lea	rsi, .LC4[rip]
	mov	rdx, QWORD PTR [rdx]
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, DWORD PTR stderr[rip]
	mov	rsi, r14
	xor	eax, eax
	mov	QWORD PTR 32[rsp], rdx
	call	fprintf@PLT
	mov	rdx, QWORD PTR 32[rsp]
	mov	edi, DWORD PTR stderr[rip]
	xor	eax, eax
	lea	rsi, .LC3[rip]
	mov	rdx, QWORD PTR [rdx]
	call	fprintf@PLT
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L4:
	xor	eax, eax
	call	usage@PLT
	xor	edi, edi
	call	exit@PLT
	mov	ecx, r15d
	jmp	.L8
.L34:
	mov	rdi, QWORD PTR 16[rsp]
	call	fclose@PLT
	jmp	.L13
.L33:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC8[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L12
.L14:
	mov	QWORD PTR 16[rsp], 0
	mov	rax, QWORD PTR 24[rsp]
	mov	QWORD PTR 8[rsp], rax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	stdout,8,8
	.comm	stdin,8,8
	.comm	stderr,4,4
	.comm	TRUE,8,8
	.comm	STDOUT,4,4
	.comm	STDIN,4,4
	.comm	O_BINARY,4,4
	.comm	FALSE,8,8
	.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_pnm2png.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"rb\000"
	.align	2
.LC1:
	.ascii	"PNM2PNG\012\000"
	.align	2
.LC2:
	.ascii	"Error:  alpha-channel file %s does not exist\012\000"
	.align	2
.LC3:
	.ascii	"Error:  unknown option %s\012\000"
	.align	2
.LC4:
	.ascii	"Error:  file %s does not exist\012\000"
	.align	2
.LC5:
	.ascii	"wb\000"
	.align	2
.LC6:
	.ascii	"Error:  can not create PNG-file %s\012\000"
	.align	2
.LC7:
	.ascii	"Error:  too many parameters\012\000"
	.align	2
.LC8:
	.ascii	"Error:  unsuccessful converting to PNG-image\012\000"
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L35
	ldr	r10, .L35+4
	ldr	fp, .L35+8
	ldr	r3, [r3]
	sub	sp, sp, #28
	cmp	r0, #1
	ldr	r7, [r10]
	ldr	r5, [fp]
	str	r3, [sp, #16]
	ble	.L14
	str	r3, [sp, #8]
	mov	r3, #0
	mov	r6, r0
	mov	r4, r1
	mov	r9, #1
	str	r3, [sp, #12]
	b	.L11
.L3:
	ldr	r2, [r10]
	cmp	r2, r7
	beq	.L30
	ldr	r2, [fp]
	cmp	r2, r5
	beq	.L31
	ldr	r3, .L35+12
	ldr	r1, .L35+16
	mov	r9, r3
	ldr	r0, [r3]
	bl	fprintf
	ldr	r1, .L35+20
	ldr	r0, [r9]
	bl	fprintf
	bl	usage
	mov	r0, #1
	mov	r9, r8
	bl	exit
.L8:
	cmp	r6, r9
	ble	.L2
.L11:
	ldr	r0, [r4, r9, lsl #2]
	lsl	r3, r9, #2
	ldrb	r2, [r0]	@ zero_extendqisi2
	add	r8, r9, #1
	cmp	r2, #45
	bne	.L3
	ldrb	r2, [r0, #1]	@ zero_extendqisi2
	cmp	r2, #104
	beq	.L4
	bhi	.L5
	cmp	r2, #63
	beq	.L4
	cmp	r2, #97
	bne	.L7
	add	r8, r3, #4
	ldr	r3, .L35+24
	ldr	r0, [r4, r8]
	ldr	r3, [r3]
	ldr	r1, .L35+28
	str	r3, [sp, #8]
	bl	fopen
	subs	r3, r0, #0
	str	r3, [sp, #12]
	add	r9, r9, #2
	bne	.L8
	ldr	r3, .L35+12
	ldr	r1, .L35+16
	ldr	r0, [r3]
	bl	fprintf
	ldr	r3, .L35+12
	ldr	r2, [r4, r8]
	ldr	r1, .L35+32
	ldr	r0, [r3]
	bl	fprintf
	mov	r0, #1
	bl	exit
	b	.L8
.L5:
	cmp	r2, #105
	bne	.L7
	mov	r9, r8
	ldr	r3, .L35+24
	cmp	r6, r9
	ldr	r3, [r3]
	str	r3, [sp, #16]
	bgt	.L11
.L2:
	ldr	r3, [sp, #8]
	mov	r1, r5
	str	r3, [sp]
	mov	r0, r7
	ldr	r3, [sp, #16]
	ldr	r2, [sp, #12]
	bl	pnm2png
	ldr	r3, .L35
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L32
.L12:
	mov	r0, r7
	bl	fclose
	mov	r0, r5
	bl	fclose
	ldr	r3, [sp, #8]
	cmp	r3, #0
	bne	.L33
.L13:
	mov	r0, #0
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L31:
	ldr	r1, .L35+36
	str	r3, [sp, #20]
	bl	fopen
	subs	r5, r0, #0
	beq	.L34
.L16:
	mov	r9, r8
	b	.L8
.L30:
	ldr	r1, .L35+28
	str	r3, [sp, #20]
	bl	fopen
	subs	r7, r0, #0
	bne	.L16
	ldr	r9, .L35+12
	ldr	r1, .L35+16
	ldr	r0, [r9]
	bl	fprintf
	ldr	r3, [sp, #20]
	ldr	r1, .L35+40
	ldr	r2, [r4, r3]
	b	.L28
.L7:
	ldr	r9, .L35+12
	ldr	r1, .L35+16
	ldr	r0, [r9]
	str	r3, [sp, #20]
	bl	fprintf
	ldr	r3, [sp, #20]
	ldr	r1, .L35+44
	ldr	r2, [r4, r3]
	ldr	r0, [r9]
	bl	fprintf
	bl	usage
	mov	r0, #1
	mov	r9, r8
	bl	exit
	b	.L8
.L4:
	bl	usage
	mov	r0, #0
	mov	r9, r8
	bl	exit
	b	.L8
.L33:
	ldr	r0, [sp, #12]
	bl	fclose
	b	.L13
.L34:
	ldr	r9, .L35+12
	ldr	r1, .L35+16
	ldr	r0, [r9]
	bl	fprintf
	ldr	r3, [sp, #20]
	ldr	r1, .L35+48
	ldr	r2, [r4, r3]
.L28:
	ldr	r0, [r9]
	bl	fprintf
	mov	r0, #1
	mov	r9, r8
	bl	exit
	b	.L8
.L32:
	ldr	r4, .L35+12
	ldr	r1, .L35+16
	ldr	r0, [r4]
	bl	fprintf
	ldr	r0, [r4]
	ldr	r1, .L35+52
	bl	fprintf
	mov	r0, #1
	bl	exit
	b	.L12
.L14:
	ldr	r3, [sp, #16]
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #12]
	b	.L2
.L36:
	.align	2
.L35:
	.word	FALSE
	.word	stdin
	.word	stdout
	.word	stderr
	.word	.LC1
	.word	.LC7
	.word	TRUE
	.word	.LC0
	.word	.LC2
	.word	.LC5
	.word	.LC4
	.word	.LC3
	.word	.LC6
	.word	.LC8
	.size	main, .-main
	.comm	stdout,4,4
	.comm	stdin,4,4
	.comm	stderr,4,4
	.comm	TRUE,4,4
	.comm	STDOUT,4,4
	.comm	STDIN,4,4
	.comm	O_BINARY,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
