	.file	"145451934.c"
	.intel_syntax noprefix
	.text
	.globl	name_prefix
	.bss
	.align 8
	.type	name_prefix, @object
	.size	name_prefix, 8
name_prefix:
	.zero	8
	.section	.rodata
.LC0:
	.string	"Grammar (.cxx) munge utility\n"
.LC1:
	.string	"Usage : pg <filename>"
.LC2:
	.string	"rt"
.LC3:
	.string	"Error opening file %s\n"
.LC4:
	.string	"Out of memory"
.LC5:
	.string	"Exit Code (%d) \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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR stdin[rip]
	mov	QWORD PTR yyin[rip], rax
	mov	rax, QWORD PTR stdout[rip]
	mov	QWORD PTR yyout[rip], rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	cmp	DWORD PTR -20[rbp], 1
	jg	.L2
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR yyin[rip], rax
	mov	rax, QWORD PTR yyin[rip]
	test	rax, rax
	jne	.L3
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	mov	eax, 0
	call	_strdup@PLT
	cdqe
	mov	QWORD PTR name_prefix[rip], rax
	mov	rax, QWORD PTR name_prefix[rip]
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR name_prefix[rip]
	mov	rdi, rax
	mov	eax, 0
	call	_strlwr@PLT
	cdqe
	mov	QWORD PTR name_prefix[rip], rax
	mov	rax, QWORD PTR name_prefix[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L5
.L6:
	add	QWORD PTR -8[rbp], 1
.L5:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 512
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
	mov	eax, 0
	call	yyparse@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -12[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	exit@PLT
	.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	"145451934.c"
	.text
	.comm	name_prefix,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Grammar (.cxx) munge utility\012\000"
	.align	2
.LC1:
	.ascii	"Usage : pg <filename>\000"
	.align	2
.LC2:
	.ascii	"rt\000"
	.align	2
.LC3:
	.ascii	"Error opening file %s\012\000"
	.align	2
.LC4:
	.ascii	"Out of memory\000"
	.align	2
.LC5:
	.ascii	"Exit Code (%d) \012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, .L7
	ldr	r3, [r3]
	ldr	r2, .L7+4
	str	r3, [r2]
	ldr	r3, .L7+8
	ldr	r3, [r3]
	ldr	r2, .L7+12
	str	r3, [r2]
	ldr	r3, .L7+16
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L7+20
	bl	fwrite
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bgt	.L2
	ldr	r0, .L7+24
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L7+28
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L7+4
	str	r3, [r2]
	ldr	r3, .L7+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L7+32
	bl	printf
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	_strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L7+36
	str	r2, [r3]
	ldr	r3, .L7+36
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L7+16
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L7+40
	bl	fwrite
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, .L7+36
	ldr	r3, [r3]
	mov	r0, r3
	bl	_strlwr
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L7+36
	str	r2, [r3]
	ldr	r3, .L7+36
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L5
.L6:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L5:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #512
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-12]
	mov	r2, #0
	strb	r2, [r3]
	bl	yyparse
	str	r0, [fp, #-8]
	ldr	r3, .L7+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L7+44
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-8]
	bl	exit
.L8:
	.align	2
.L7:
	.word	stdin
	.word	yyin
	.word	stdout
	.word	yyout
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	name_prefix
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
