	.file	"980215.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"usage: mkversion ostype version outputfile"
.LC1:
	.string	"w"
.LC2:
	.string	"Couldn't create %s\n"
.LC3:
	.string	"/*\n"
.LC4:
	.string	" * G2 Version Stamp, %s"
	.align 8
.LC5:
	.string	" * Automatically generated, hand edits are pointless.\n"
.LC6:
	.string	" */\n\n"
	.align 8
.LC7:
	.string	"const char *version_string = \"G2 (%s) major version %s\";\n"
	.align 8
.LC8:
	.string	"const char *minor_v_string = \"Built by %s at %s\";\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -116[rbp], 3
	jg	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -96[rbp], rax
	cmp	QWORD PTR -96[rbp], 0
	jne	.L3
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -96[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rcx, rax
	mov	edx, 54
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rcx, rax
	mov	edx, 5
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 16
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -96[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	mov	eax, 0
	call	cuserid@PLT
	cdqe
	mov	QWORD PTR -88[rbp], rax
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	rdx, rax
	lea	rax, -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -80[rbp]
	mov	QWORD PTR -104[rbp], rax
	jmp	.L4
.L5:
	add	QWORD PTR -104[rbp], 1
.L4:
	mov	rax, QWORD PTR -104[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L5
	sub	QWORD PTR -104[rbp], 1
	mov	rax, QWORD PTR -104[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L6
	mov	rax, QWORD PTR -104[rbp]
	mov	BYTE PTR [rax], 0
.L6:
	lea	rcx, -80[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -96[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.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	"980215.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: mkversion ostype version outputfile\000"
	.align	2
.LC1:
	.ascii	"w\000"
	.align	2
.LC2:
	.ascii	"Couldn't create %s\012\000"
	.align	2
.LC3:
	.ascii	"/*\012\000"
	.align	2
.LC4:
	.ascii	" * G2 Version Stamp, %s\000"
	.align	2
.LC5:
	.ascii	" * Automatically generated, hand edits are pointles"
	.ascii	"s.\012\000"
	.align	2
.LC6:
	.ascii	" */\012\012\000"
	.align	2
.LC7:
	.ascii	"const char *version_string = \"G2 (%s) major versio"
	.ascii	"n %s\";\012\000"
	.align	2
.LC8:
	.ascii	"const char *minor_v_string = \"Built by %s at %s\";"
	.ascii	"\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-96]
	cmp	r3, #3
	bgt	.L2
	ldr	r0, .L8+4
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-100]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L8+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-100]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L8+12
	bl	printf
	mov	r0, #1
	bl	exit
.L3:
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-80]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L8+16
	bl	fwrite
	sub	r3, fp, #88
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L8+20
	ldr	r0, [fp, #-80]
	bl	fprintf
	ldr	r3, [fp, #-80]
	mov	r2, #54
	mov	r1, #1
	ldr	r0, .L8+24
	bl	fwrite
	ldr	r3, [fp, #-80]
	mov	r2, #5
	mov	r1, #1
	ldr	r0, .L8+28
	bl	fwrite
	ldr	r3, [fp, #-100]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-100]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L8+32
	ldr	r0, [fp, #-80]
	bl	fprintf
	mov	r0, #0
	bl	cuserid
	mov	r3, r0
	str	r3, [fp, #-76]
	sub	r3, fp, #88
	mov	r0, r3
	bl	ctime
	mov	r2, r0
	sub	r3, fp, #72
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #72
	str	r3, [fp, #-84]
	b	.L4
.L5:
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L4:
	ldr	r3, [fp, #-84]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-84]
	sub	r3, r3, #1
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-84]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L6
	ldr	r3, [fp, #-84]
	mov	r2, #0
	strb	r2, [r3]
.L6:
	sub	r3, fp, #72
	ldr	r2, [fp, #-76]
	ldr	r1, .L8+36
	ldr	r0, [fp, #-80]
	bl	fprintf
	mov	r0, #0
	bl	exit
.L9:
	.align	2
.L8:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
