	.file	"340363.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"usage: mkversion [-v version-file] [-a alpha-file] [outfile]\n"
	.text
	.type	usage, @function
usage:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 61
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, -1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.section	.rodata
.LC1:
	.string	"r"
	.align 8
.LC2:
	.string	"mkversion: %s: Could not open for reading.\n"
	.text
	.type	openFile, @function
openFile:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	openFile, .-openFile
	.section	.rodata
.LC3:
	.string	"../VERSION"
.LC4:
	.string	"../dist/tiff.alpha"
.LC5:
	.string	"-v"
.LC6:
	.string	"-a"
	.align 8
.LC7:
	.string	"mkversion: No version information in %s.\n"
	.align 8
.LC8:
	.string	"mkversion: No alpha information in %s.\n"
	.align 8
.LC9:
	.string	"mkversion: Malformed alpha information in %s.\n"
.LC10:
	.string	"w"
	.align 8
.LC11:
	.string	"mkversion: %s: Could not open for writing.\n"
	.align 8
.LC12:
	.string	"#define VERSION \"LIBTIFF, Version %s\\n"
	.align 8
.LC13:
	.string	"Copyright (c) 1988-1996 Sam Leffler\\n"
	.align 8
.LC14:
	.string	"Copyright (c) 1991-1996 Silicon Graphics, Inc.\"\n"
	.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, 336
	mov	DWORD PTR -324[rbp], edi
	mov	QWORD PTR -336[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -312[rbp], rax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -304[rbp], rax
	sub	DWORD PTR -324[rbp], 1
	add	QWORD PTR -336[rbp], 8
	jmp	.L6
.L13:
	mov	rax, QWORD PTR -336[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	cmp	DWORD PTR -324[rbp], 0
	jg	.L8
	call	usage
.L8:
	sub	DWORD PTR -324[rbp], 1
	add	QWORD PTR -336[rbp], 8
	mov	rax, QWORD PTR -336[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -312[rbp], rax
	jmp	.L9
.L7:
	mov	rax, QWORD PTR -336[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L10
	cmp	DWORD PTR -324[rbp], 0
	jg	.L11
	call	usage
.L11:
	sub	DWORD PTR -324[rbp], 1
	add	QWORD PTR -336[rbp], 8
	mov	rax, QWORD PTR -336[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -304[rbp], rax
	jmp	.L9
.L10:
	call	usage
.L9:
	sub	DWORD PTR -324[rbp], 1
	add	QWORD PTR -336[rbp], 8
.L6:
	cmp	DWORD PTR -324[rbp], 0
	jle	.L12
	mov	rax, QWORD PTR -336[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L13
.L12:
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	openFile
	mov	QWORD PTR -296[rbp], rax
	mov	rdx, QWORD PTR -296[rbp]
	lea	rax, -272[rbp]
	mov	esi, 127
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -312[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L14:
	lea	rax, -272[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -288[rbp], rax
	cmp	QWORD PTR -288[rbp], 0
	je	.L15
	mov	rax, QWORD PTR -288[rbp]
	mov	BYTE PTR [rax], 0
.L15:
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -304[rbp]
	mov	rdi, rax
	call	openFile
	mov	QWORD PTR -296[rbp], rax
	mov	rdx, QWORD PTR -296[rbp]
	lea	rax, -144[rbp]
	mov	esi, 127
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L16
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -304[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L16:
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -144[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -288[rbp], rax
	cmp	QWORD PTR -288[rbp], 0
	je	.L17
	mov	rax, QWORD PTR -288[rbp]
	add	rax, 1
	mov	esi, 32
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -288[rbp], rax
.L17:
	cmp	QWORD PTR -288[rbp], 0
	je	.L18
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -272[rbp]
	add	rax, rdx
	mov	QWORD PTR -280[rbp], rax
	add	QWORD PTR -288[rbp], 1
	jmp	.L19
.L20:
	add	QWORD PTR -280[rbp], 1
	add	QWORD PTR -288[rbp], 1
.L19:
	mov	rax, QWORD PTR -288[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -280[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -280[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L20
	mov	rax, QWORD PTR -280[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L21
	mov	rax, QWORD PTR -280[rbp]
	sub	rax, 1
	mov	BYTE PTR [rax], 0
	jmp	.L21
.L18:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -304[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L21:
	cmp	DWORD PTR -324[rbp], 0
	jle	.L22
	mov	rax, QWORD PTR -336[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -296[rbp], rax
	cmp	QWORD PTR -296[rbp], 0
	jne	.L23
	mov	rax, QWORD PTR -336[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L22:
	mov	rax, QWORD PTR stdout[rip]
	mov	QWORD PTR -296[rbp], rax
.L23:
	lea	rdx, -272[rbp]
	mov	rax, QWORD PTR -296[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -296[rbp]
	mov	rcx, rax
	mov	edx, 37
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -296[rbp]
	mov	rcx, rax
	mov	edx, 48
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stdout[rip]
	cmp	QWORD PTR -296[rbp], rax
	je	.L24
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L24:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"340363.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: mkversion [-v version-file] [-a alpha-file] "
	.ascii	"[outfile]\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #61
	mov	r1, #1
	ldr	r0, .L2+4
	bl	fwrite
	mvn	r0, #0
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"mkversion: %s: Could not open for reading.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	openFile, %function
openFile:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r1, .L7
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L7+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L7+8
	mov	r0, r3
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L5:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC1
	.word	stderr
	.word	.LC2
	.size	openFile, .-openFile
	.section	.rodata
	.align	2
.LC3:
	.ascii	"../VERSION\000"
	.align	2
.LC4:
	.ascii	"../dist/tiff.alpha\000"
	.align	2
.LC5:
	.ascii	"-v\000"
	.align	2
.LC6:
	.ascii	"-a\000"
	.align	2
.LC7:
	.ascii	"mkversion: No version information in %s.\012\000"
	.align	2
.LC8:
	.ascii	"mkversion: No alpha information in %s.\012\000"
	.align	2
.LC9:
	.ascii	"mkversion: Malformed alpha information in %s.\012\000"
	.align	2
.LC10:
	.ascii	"w\000"
	.align	2
.LC11:
	.ascii	"mkversion: %s: Could not open for writing.\012\000"
	.align	2
.LC12:
	.ascii	"#define VERSION \"LIBTIFF, Version %s\\n\000"
	.align	2
.LC13:
	.ascii	"Copyright (c) 1988-1996 Sam Leffler\\n\000"
	.align	2
.LC14:
	.ascii	"Copyright (c) 1991-1996 Silicon Graphics, Inc.\"\012"
	.ascii	"\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	str	r0, [fp, #-288]
	str	r1, [fp, #-292]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L31+4
	str	r3, [fp, #-284]
	ldr	r3, .L31+8
	str	r3, [fp, #-280]
	ldr	r3, [fp, #-288]
	sub	r3, r3, #1
	str	r3, [fp, #-288]
	ldr	r3, [fp, #-292]
	add	r3, r3, #4
	str	r3, [fp, #-292]
	b	.L10
.L17:
	ldr	r3, [fp, #-292]
	ldr	r3, [r3]
	ldr	r1, .L31+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	bgt	.L12
	bl	usage
.L12:
	ldr	r3, [fp, #-288]
	sub	r3, r3, #1
	str	r3, [fp, #-288]
	ldr	r3, [fp, #-292]
	add	r3, r3, #4
	str	r3, [fp, #-292]
	ldr	r3, [fp, #-292]
	ldr	r3, [r3]
	str	r3, [fp, #-284]
	b	.L13
.L11:
	ldr	r3, [fp, #-292]
	ldr	r3, [r3]
	ldr	r1, .L31+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	bgt	.L15
	bl	usage
.L15:
	ldr	r3, [fp, #-288]
	sub	r3, r3, #1
	str	r3, [fp, #-288]
	ldr	r3, [fp, #-292]
	add	r3, r3, #4
	str	r3, [fp, #-292]
	ldr	r3, [fp, #-292]
	ldr	r3, [r3]
	str	r3, [fp, #-280]
	b	.L13
.L14:
	bl	usage
.L13:
	ldr	r3, [fp, #-288]
	sub	r3, r3, #1
	str	r3, [fp, #-288]
	ldr	r3, [fp, #-292]
	add	r3, r3, #4
	str	r3, [fp, #-292]
.L10:
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	ble	.L16
	ldr	r3, [fp, #-292]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L17
.L16:
	ldr	r0, [fp, #-284]
	bl	openFile
	str	r0, [fp, #-276]
	sub	r3, fp, #264
	ldr	r2, [fp, #-276]
	mov	r1, #127
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r3, .L31+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-284]
	ldr	r1, .L31+24
	mov	r0, r3
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L18:
	sub	r3, fp, #264
	mov	r1, #10
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-272]
	mov	r2, #0
	strb	r2, [r3]
.L19:
	ldr	r0, [fp, #-276]
	bl	fclose
	ldr	r0, [fp, #-280]
	bl	openFile
	str	r0, [fp, #-276]
	sub	r3, fp, #136
	ldr	r2, [fp, #-276]
	mov	r1, #127
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	ldr	r3, .L31+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-280]
	ldr	r1, .L31+28
	mov	r0, r3
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L20:
	ldr	r0, [fp, #-276]
	bl	fclose
	sub	r3, fp, #136
	mov	r1, #32
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-272]
	add	r3, r3, #1
	mov	r1, #32
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-272]
.L21:
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	beq	.L22
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #264
	add	r3, r3, r2
	str	r3, [fp, #-268]
	ldr	r3, [fp, #-272]
	add	r3, r3, #1
	str	r3, [fp, #-272]
	b	.L23
.L24:
	ldr	r3, [fp, #-268]
	add	r3, r3, #1
	str	r3, [fp, #-268]
	ldr	r3, [fp, #-272]
	add	r3, r3, #1
	str	r3, [fp, #-272]
.L23:
	ldr	r3, [fp, #-272]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-268]
	strb	r2, [r3]
	ldr	r3, [fp, #-268]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L24
	ldr	r3, [fp, #-268]
	sub	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L25
	ldr	r3, [fp, #-268]
	sub	r3, r3, #1
	mov	r2, #0
	strb	r2, [r3]
	b	.L25
.L22:
	ldr	r3, .L31+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-280]
	ldr	r1, .L31+32
	mov	r0, r3
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L25:
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	ble	.L26
	ldr	r3, [fp, #-292]
	ldr	r3, [r3]
	ldr	r1, .L31+36
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	bne	.L27
	ldr	r3, .L31+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-292]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L31+40
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L26:
	ldr	r3, .L31+44
	ldr	r3, [r3]
	str	r3, [fp, #-276]
.L27:
	sub	r3, fp, #264
	mov	r2, r3
	ldr	r1, .L31+48
	ldr	r0, [fp, #-276]
	bl	fprintf
	ldr	r3, [fp, #-276]
	mov	r2, #37
	mov	r1, #1
	ldr	r0, .L31+52
	bl	fwrite
	ldr	r3, [fp, #-276]
	mov	r2, #48
	mov	r1, #1
	ldr	r0, .L31+56
	bl	fwrite
	ldr	r3, .L31+44
	ldr	r3, [r3]
	ldr	r2, [fp, #-276]
	cmp	r2, r3
	beq	.L28
	ldr	r0, [fp, #-276]
	bl	fclose
.L28:
	mov	r3, #0
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC15
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	stderr
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	stdout
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
