	.file	"563488.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"no file provided"
.LC1:
	.string	"r"
.LC2:
	.string	"can't open %s\n"
.LC3:
	.string	"opfile name: %s\n"
.LC4:
	.string	"wx"
.LC5:
	.string	"file %s already exists.\n"
.LC6:
	.string	"typedef enum {\n"
.LC7:
	.string	"\t%s,\n"
.LC8:
	.string	"} prodrule;\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 304
	mov	DWORD PTR -292[rbp], edi
	mov	QWORD PTR -304[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -292[rbp], 1
	jne	.L4
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L3
.L9:
	add	QWORD PTR -304[rbp], 8
	mov	rax, QWORD PTR -304[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR yyin[rip], rax
	mov	rax, QWORD PTR yyin[rip]
	test	rax, rax
	jne	.L5
	mov	rax, QWORD PTR -304[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L5:
	mov	QWORD PTR yytext[rip], 0
	mov	rax, QWORD PTR -304[rbp]
	mov	rcx, QWORD PTR [rax]
	lea	rax, -272[rbp]
	mov	edx, 250
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -2[rax]
	lea	rax, -272[rbp]
	add	rax, rdx
	mov	QWORD PTR -288[rbp], rax
	mov	rax, QWORD PTR -288[rbp]
	mov	DWORD PTR [rax], 779251807
	mov	WORD PTR 4[rax], 104
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -280[rbp], 0
	lea	rax, -272[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], 0
	jne	.L6
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR -280[rbp]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	jmp	.L7
.L8:
	mov	rax, QWORD PTR yytext[rip]
	mov	rdi, rax
	call	puts@PLT
	mov	rdx, QWORD PTR yytext[rip]
	mov	rax, QWORD PTR -280[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L7:
	mov	eax, 0
	call	yylex@PLT
	cmp	eax, 42
	je	.L8
	mov	rax, QWORD PTR -280[rbp]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR yyin[rip]
	mov	rdi, rax
	call	fclose@PLT
.L4:
	sub	DWORD PTR -292[rbp], 1
	cmp	DWORD PTR -292[rbp], 0
	jg	.L9
.L3:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"563488.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"no file provided\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"can't open %s\012\000"
	.align	2
.LC3:
	.ascii	"_pr.h\000"
	.align	2
.LC4:
	.ascii	"opfile name: %s\012\000"
	.align	2
.LC5:
	.ascii	"wx\000"
	.align	2
.LC6:
	.ascii	"file %s already exists.\012\000"
	.align	2
.LC7:
	.ascii	"typedef enum {\012\000"
	.align	2
.LC8:
	.ascii	"\011%s,\012\000"
	.align	2
.LC9:
	.ascii	"} prodrule;\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #280
	str	r0, [fp, #-280]
	str	r1, [fp, #-284]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-280]
	cmp	r3, #1
	bne	.L4
	ldr	r0, .L12+4
	bl	puts
	b	.L3
.L9:
	ldr	r3, [fp, #-284]
	add	r3, r3, #4
	str	r3, [fp, #-284]
	ldr	r3, [fp, #-284]
	ldr	r3, [r3]
	ldr	r1, .L12+8
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L12+12
	str	r3, [r2]
	ldr	r3, .L12+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-284]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12+16
	bl	printf
	b	.L4
.L5:
	ldr	r3, .L12+20
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-284]
	ldr	r1, [r3]
	sub	r3, fp, #264
	mov	r2, #250
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #2
	sub	r2, fp, #264
	add	r3, r2, r3
	str	r3, [fp, #-272]
	ldr	r3, [fp, #-272]
	ldr	r2, .L12+24
	mov	r0, r3
	mov	r1, r2
	mov	r3, #6
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, .L12+28
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-268]
	sub	r3, fp, #264
	ldr	r1, .L12+32
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bne	.L6
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, .L12+36
	bl	printf
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, [fp, #-268]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L12+40
	bl	fwrite
	b	.L7
.L8:
	ldr	r3, .L12+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	ldr	r3, .L12+20
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L12+44
	ldr	r0, [fp, #-268]
	bl	fprintf
.L7:
	bl	yylex
	mov	r3, r0
	cmp	r3, #42
	beq	.L8
	ldr	r3, [fp, #-268]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L12+48
	bl	fwrite
	ldr	r0, [fp, #-268]
	bl	fclose
	ldr	r3, .L12+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L4:
	ldr	r3, [fp, #-280]
	sub	r3, r3, #1
	str	r3, [fp, #-280]
	ldr	r3, [fp, #-280]
	cmp	r3, #0
	bgt	.L9
.L3:
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	yyin
	.word	.LC2
	.word	yytext
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
