	.file	"extr_asn1_compiler.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"KBUILD_VERBOSE"
.LC1:
	.string	"-v"
.LC2:
	.string	"-d"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"Format: %s [-v] [-d] <grammar-file> <c-file> <hdr-file>\n"
	.section	.rodata.str1.1
.LC4:
	.string	"%s: Short read\n"
.LC5:
	.string	"w"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edi
	lea	rdi, .LC0[rip]
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	getenv@PLT
	test	rax, rax
	je	.L2
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR verbose_opt[rip], eax
.L2:
	cmp	ebx, 4
	jle	.L3
	lea	r12, 16[rbp]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L32:
	mov	DWORD PTR verbose_opt[rip], 1
.L5:
	lea	edx, -16[0+rbx*8]
	lea	rdi, 8[rbp]
	mov	rsi, r12
	sub	ebx, 1
	call	memmove@PLT
	cmp	ebx, 4
	je	.L7
.L8:
	mov	rdi, QWORD PTR 8[rbp]
	lea	rsi, .LC1[rip]
	call	strcmp@PLT
	test	rax, rax
	je	.L32
	mov	rdi, QWORD PTR 8[rbp]
	lea	rsi, .LC2[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L9
	mov	DWORD PTR debug_opt[rip], 1
	jmp	.L5
.L3:
	je	.L7
.L9:
	mov	edi, DWORD PTR stderr[rip]
	mov	rdx, QWORD PTR 0[rbp]
	lea	rsi, .LC3[rip]
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
.L7:
	mov	rax, QWORD PTR 16[rbp]
	mov	rdi, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR O_RDONLY[rip]
	mov	QWORD PTR outputname[rip], rax
	mov	rax, QWORD PTR 24[rbp]
	mov	QWORD PTR filename[rip], rdi
	mov	QWORD PTR headername[rip], rax
	call	open@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L33
.L10:
	mov	rsi, rsp
	mov	edi, r13d
	call	fstat@PLT
	test	rax, rax
	js	.L34
.L11:
	mov	r14, QWORD PTR [rsp]
	lea	rdi, 1[r14]
	call	malloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L35
.L12:
	mov	edi, r13d
	mov	rdx, r14
	mov	rsi, r12
	call	read@PLT
	mov	edi, r13d
	mov	rbx, rax
	call	close@PLT
	test	rax, rax
	js	.L36
.L13:
	cmp	QWORD PTR [rsp], rbx
	je	.L14
	mov	edi, DWORD PTR stderr[rip]
	mov	rdx, QWORD PTR filename[rip]
	lea	rsi, .LC4[rip]
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	rdi, QWORD PTR 8[rbp]
	mov	esi, 47
	call	strrchr@PLT
	test	rax, rax
	je	.L15
	lea	rdi, 1[rax]
	call	strdup@PLT
	mov	DWORD PTR grammar_name[rip], eax
	mov	edi, eax
.L16:
	mov	esi, 46
	call	strchr@PLT
	test	rax, rax
	je	.L17
	mov	BYTE PTR [rax], 0
.L17:
	lea	rsi, [r12+rbx]
	mov	rdi, r12
	mov	BYTE PTR [rsi], 0
	call	tokenise@PLT
	xor	eax, eax
	call	build_type_list@PLT
	xor	eax, eax
	call	parse@PLT
	xor	eax, eax
	call	dump_elements@PLT
	mov	rdi, QWORD PTR outputname[rip]
	lea	rsi, .LC5[rip]
	call	fopen@PLT
	mov	r12, rax
	test	rax, rax
	je	.L37
.L18:
	mov	rdi, QWORD PTR headername[rip]
	lea	rsi, .LC5[rip]
	call	fopen@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L38
.L19:
	mov	rdi, r12
	mov	rsi, rbp
	call	render@PLT
	mov	rdi, r12
	call	fclose@PLT
	test	rax, rax
	js	.L39
.L20:
	mov	rdi, rbp
	call	fclose@PLT
	test	rax, rax
	js	.L40
.L21:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L41
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	mov	rbp, QWORD PTR 8[rbp]
	mov	rdi, rbp
	call	strdup@PLT
	mov	DWORD PTR grammar_name[rip], eax
	mov	edi, eax
	test	rbp, rbp
	jne	.L16
	xor	edi, edi
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	mov	edi, DWORD PTR grammar_name[rip]
	jmp	.L16
.L36:
	mov	rdi, QWORD PTR filename[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L13
.L39:
	mov	rdi, QWORD PTR outputname[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L20
.L34:
	mov	rdi, QWORD PTR filename[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L11
.L33:
	mov	rdi, QWORD PTR filename[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L10
.L40:
	mov	rdi, QWORD PTR headername[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L21
.L38:
	mov	rdi, QWORD PTR headername[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L19
.L37:
	mov	rdi, QWORD PTR outputname[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L18
.L35:
	xor	edi, edi
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	mov	r14, QWORD PTR [rsp]
	jmp	.L12
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	verbose_opt,4,4
	.comm	stderr,4,4
	.comm	outputname,8,8
	.comm	headername,8,8
	.comm	grammar_name,4,4
	.comm	filename,8,8
	.comm	debug_opt,4,4
	.comm	O_RDONLY,4,4
	.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_asn1_compiler.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"KBUILD_VERBOSE\000"
	.align	2
.LC1:
	.ascii	"Format: %s [-v] [-d] <grammar-file> <c-file> <hdr-f"
	.ascii	"ile>\012\000"
	.align	2
.LC2:
	.ascii	"%s: Short read\012\000"
	.align	2
.LC3:
	.ascii	"w\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L45
	sub	sp, sp, #12
	mov	r4, r0
	ldr	r0, .L45+4
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	getenv
	cmp	r0, #0
	beq	.L2
	bl	atoi
	ldr	r3, .L45+8
	str	r0, [r3]
.L2:
	cmp	r4, #4
	ble	.L3
	mov	r6, #1
	ldr	r8, .L45+12
	ldr	r7, .L45+8
.L10:
	ldr	r3, [r5, #4]
	ldrb	r2, [r3]	@ zero_extendqisi2
	cmp	r2, #45
	beq	.L34
.L11:
	ldr	r3, .L45+16
	ldr	r2, [r5]
	ldr	r0, [r3]
	ldr	r1, .L45+20
	bl	fprintf
	mov	r0, #2
	bl	exit
.L9:
	ldr	r3, .L45+24
	ldr	r0, [r5, #4]
	ldr	r2, [r5, #8]
	ldr	r1, [r3]
	ldr	r9, .L45+28
	ldr	r3, [r5, #12]
	ldr	r8, .L45+32
	ldr	r7, .L45+36
	str	r0, [r9]
	str	r2, [r8]
	str	r3, [r7]
	bl	open
	subs	r6, r0, #0
	blt	.L35
.L12:
	mov	r1, sp
	mov	r0, r6
	bl	fstat
	cmp	r0, #0
	blt	.L36
.L13:
	ldr	r0, [sp]
	add	r0, r0, #1
	bl	malloc
	subs	r4, r0, #0
	beq	.L37
.L14:
	mov	r1, r4
	mov	r0, r6
	ldr	r2, [sp]
	bl	read
	mov	r3, r0
	mov	r0, r6
	mov	r6, r3
	bl	close
	cmp	r0, #0
	blt	.L38
.L15:
	ldr	r3, [sp]
	cmp	r3, r6
	beq	.L16
	ldr	r3, .L45+16
	ldr	r2, [r9]
	ldr	r0, [r3]
	ldr	r1, .L45+40
	bl	fprintf
	mov	r0, #1
	bl	exit
.L16:
	mov	r1, #47
	ldr	r0, [r5, #4]
	bl	strrchr
	cmp	r0, #0
	ldreq	r0, [r5, #4]
	addne	r0, r0, #1
	bl	strdup
	ldr	r3, .L45+44
	mov	r1, #46
	str	r0, [r3]
	bl	strchr
	cmp	r0, #0
	movne	r3, #0
	strbne	r3, [r0]
	mov	r3, #0
	add	r1, r4, r6
	strb	r3, [r4, r6]
	mov	r0, r4
	bl	tokenise
	bl	build_type_list
	bl	parse
	bl	dump_elements
	ldr	r1, .L45+48
	ldr	r0, [r8]
	bl	fopen
	subs	r5, r0, #0
	beq	.L39
.L20:
	ldr	r1, .L45+48
	ldr	r0, [r7]
	bl	fopen
	subs	r4, r0, #0
	beq	.L40
.L21:
	mov	r1, r4
	mov	r0, r5
	bl	render
	mov	r0, r5
	bl	fclose
	cmp	r0, #0
	blt	.L41
.L22:
	mov	r0, r4
	bl	fclose
	cmp	r0, #0
	blt	.L42
.L23:
	ldr	r3, .L45
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L43
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L34:
	ldrb	r1, [r3, #1]	@ zero_extendqisi2
	cmp	r1, #118
	beq	.L44
.L5:
	cmp	r2, #45
	bne	.L11
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	cmp	r2, #100
	bne	.L11
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L11
	str	r6, [r8]
	b	.L6
.L44:
	ldrb	r1, [r3, #2]	@ zero_extendqisi2
	cmp	r1, #0
	bne	.L5
	str	r6, [r7]
.L6:
	lsl	r2, r4, #2
	sub	r2, r2, #8
	sub	r4, r4, #1
	add	r1, r5, #8
	add	r0, r5, #4
	bl	memmove
	cmp	r4, #4
	bne	.L10
	b	.L9
.L38:
	ldr	r0, [r9]
	bl	perror
	mov	r0, #1
	bl	exit
	b	.L15
.L42:
	ldr	r0, [r7]
	bl	perror
	mov	r0, #1
	bl	exit
	b	.L23
.L41:
	ldr	r0, [r8]
	bl	perror
	mov	r0, #1
	bl	exit
	b	.L22
.L36:
	ldr	r0, [r9]
	bl	perror
	mov	r0, #1
	bl	exit
	b	.L13
.L35:
	ldr	r0, [r9]
	bl	perror
	mov	r0, #1
	bl	exit
	b	.L12
.L40:
	ldr	r0, [r7]
	bl	perror
	mov	r0, #1
	bl	exit
	b	.L21
.L39:
	ldr	r0, [r8]
	bl	perror
	mov	r0, #1
	bl	exit
	b	.L20
.L3:
	bne	.L11
	b	.L9
.L37:
	bl	perror
	mov	r0, #1
	bl	exit
	b	.L14
.L43:
	bl	__stack_chk_fail
.L46:
	.align	2
.L45:
	.word	.LC4
	.word	.LC0
	.word	verbose_opt
	.word	debug_opt
	.word	stderr
	.word	.LC1
	.word	O_RDONLY
	.word	filename
	.word	outputname
	.word	headername
	.word	.LC2
	.word	grammar_name
	.word	.LC3
	.size	main, .-main
	.comm	verbose_opt,4,4
	.comm	stderr,4,4
	.comm	outputname,4,4
	.comm	headername,4,4
	.comm	grammar_name,4,4
	.comm	filename,4,4
	.comm	debug_opt,4,4
	.comm	O_RDONLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
