	.file	"177039.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"cannot start git describe"
.LC2:
	.string	"cannot execute: %s. Error: %s"
	.text
	.type	exec_cmd, @function
exec_cmd:
.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, 544
	mov	QWORD PTR -536[rbp], rdi
	mov	QWORD PTR -544[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -536[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	popen@PLT
	mov	QWORD PTR -520[rbp], rax
	cmp	QWORD PTR -520[rbp], 0
	jne	.L2
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L2:
	mov	rdx, QWORD PTR -520[rbp]
	lea	rax, -512[rbp]
	mov	esi, 500
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -512[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	movzx	eax, BYTE PTR -512[rbp+rax]
	cmp	al, 10
	jne	.L3
	lea	rax, -512[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -512[rbp+rax], 0
.L3:
	mov	rdx, QWORD PTR -544[rbp]
	lea	rax, -512[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR -520[rbp]
	mov	rdi, rax
	call	pclose@PLT
	mov	DWORD PTR -524[rbp], eax
	cmp	DWORD PTR -524[rbp], 0
	je	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -536[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	warn@PLT
.L4:
	mov	eax, DWORD PTR -524[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	exec_cmd, .-exec_cmd
	.section	.rodata
.LC3:
	.string	"usage: mkversion OUTDIR"
.LC4:
	.string	"%s/version.h"
.LC5:
	.string	"%s/version.c"
.LC6:
	.string	"wt"
.LC7:
	.string	"cannot open %s"
	.align 8
.LC8:
	.string	"extern const char app_version[];\nextern const char app_date[];\n"
.LC9:
	.string	"const char app_version[] = \""
.LC10:
	.string	"git describe --tags --long"
.LC11:
	.string	"\";\n"
.LC12:
	.string	"const char app_date[] = \""
.LC13:
	.string	"git log -n 1 --format=%ai"
	.text
	.globl	main
	.type	main, @function
main:
.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	DWORD PTR -52[rbp], 1
	cmp	DWORD PTR -68[rbp], 1
	jg	.L8
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -48[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	asprintf@PLT
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -40[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	asprintf@PLT
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	warn@PLT
	jmp	.L10
.L9:
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L11
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	warn@PLT
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rax
	mov	edx, 63
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	call	exec_cmd
	test	eax, eax
	jne	.L18
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	call	exec_cmd
	test	eax, eax
	jne	.L19
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	DWORD PTR -52[rbp], 0
	jmp	.L10
.L18:
	nop
	jmp	.L10
.L19:
	nop
.L10:
	cmp	QWORD PTR -24[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L14:
	cmp	QWORD PTR -32[rbp], 0
	je	.L15
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L15:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -52[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"177039.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"cannot start git describe\000"
	.align	2
.LC2:
	.ascii	"cannot execute: %s. Error: %s\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	exec_cmd, %function
exec_cmd:
	@ args = 0, pretend = 0, frame = 520
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #520
	str	r0, [fp, #-520]
	str	r1, [fp, #-524]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L7+4
	ldr	r0, [fp, #-520]
	bl	popen
	str	r0, [fp, #-516]
	ldr	r3, [fp, #-516]
	cmp	r3, #0
	bne	.L2
	ldr	r1, .L7+8
	mov	r0, #1
	bl	err
.L2:
	sub	r3, fp, #508
	ldr	r2, [fp, #-516]
	mov	r1, #500
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #508
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-504]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L3
	sub	r3, fp, #508
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-504]
.L3:
	sub	r3, fp, #508
	ldr	r1, [fp, #-524]
	mov	r0, r3
	bl	fputs
	ldr	r0, [fp, #-516]
	bl	pclose
	str	r0, [fp, #-512]
	ldr	r3, [fp, #-512]
	cmp	r3, #0
	beq	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-520]
	ldr	r0, .L7+12
	bl	warn
.L4:
	ldr	r3, [fp, #-512]
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	exec_cmd, .-exec_cmd
	.section	.rodata
	.align	2
.LC4:
	.ascii	"usage: mkversion OUTDIR\000"
	.align	2
.LC5:
	.ascii	"%s/version.h\000"
	.align	2
.LC6:
	.ascii	"%s/version.c\000"
	.align	2
.LC7:
	.ascii	"wt\000"
	.align	2
.LC8:
	.ascii	"cannot open %s\000"
	.align	2
.LC9:
	.ascii	"extern const char app_version[];\012extern const ch"
	.ascii	"ar app_date[];\012\000"
	.align	2
.LC10:
	.ascii	"const char app_version[] = \"\000"
	.align	2
.LC11:
	.ascii	"git describe --tags --long\000"
	.align	2
.LC12:
	.ascii	"\";\012\000"
	.align	2
.LC13:
	.ascii	"const char app_date[] = \"\000"
	.align	2
.LC14:
	.ascii	"git log -n 1 --format=%ai\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 = 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, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	bgt	.L10
	ldr	r0, .L22+4
	bl	puts
	mov	r0, #1
	bl	exit
.L10:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	sub	r3, fp, #32
	ldr	r2, [fp, #-12]
	ldr	r1, .L22+8
	mov	r0, r3
	bl	asprintf
	sub	r3, fp, #28
	ldr	r2, [fp, #-12]
	ldr	r1, .L22+12
	mov	r0, r3
	bl	asprintf
	ldr	r3, [fp, #-32]
	ldr	r1, .L22+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-32]
	mov	r1, r3
	ldr	r0, .L22+20
	bl	warn
	b	.L12
.L11:
	ldr	r3, [fp, #-28]
	ldr	r1, .L22+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-28]
	mov	r1, r3
	ldr	r0, .L22+20
	bl	warn
	b	.L12
.L13:
	ldr	r3, [fp, #-16]
	mov	r2, #63
	mov	r1, #1
	ldr	r0, .L22+24
	bl	fwrite
	ldr	r3, [fp, #-24]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L22+28
	bl	fwrite
	ldr	r1, [fp, #-24]
	ldr	r0, .L22+32
	bl	exec_cmd
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-24]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L22+36
	bl	fwrite
	ldr	r3, [fp, #-24]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L22+40
	bl	fwrite
	ldr	r1, [fp, #-24]
	ldr	r0, .L22+44
	bl	exec_cmd
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r3, [fp, #-24]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L22+36
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L12
.L20:
	nop
	b	.L12
.L21:
	nop
.L12:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L16
	ldr	r0, [fp, #-16]
	bl	fclose
.L16:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L17
	ldr	r0, [fp, #-24]
	bl	fclose
.L17:
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-20]
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC15
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.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
