	.file	"853945.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"call %s with filename without extension\n"
	.align 8
.LC1:
	.string	"given filename exeeds internal limits (%s)\n"
.LC2:
	.string	"r"
.LC3:
	.string	"could not read %s\n"
.LC4:
	.string	"w"
.LC5:
	.string	"could not create %s\n"
.LC6:
	.string	"!!!!! BEGIN"
.LC7:
	.string	"!!!!! END"
.LC8:
	.string	"expected carrot in line %s"
.LC9:
	.string	"%s:%d:%d: %s"
	.align 8
.LC10:
	.string	"last error-clause not completed\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, 1312
	mov	DWORD PTR -1300[rbp], edi
	mov	QWORD PTR -1312[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1292[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -1284[rbp], 0
	cmp	DWORD PTR -1300[rbp], 2
	je	.L2
	mov	rax, QWORD PTR -1312[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -11
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -1312[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 80
	jbe	.L3
	mov	rax, QWORD PTR -1312[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -11
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -1312[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1040[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1819439150
	mov	BYTE PTR 4[rax], 0
	mov	rax, QWORD PTR -1312[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -1248[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -1248[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -1248[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1701339950
	mov	WORD PTR 4[rax], 27491
	mov	BYTE PTR 6[rax], 0
	mov	rax, QWORD PTR -1312[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -832[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -832[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -832[rbp]
	add	rax, rdx
	movabs	rcx, 32760384628221230
	mov	QWORD PTR [rax], rcx
	lea	rax, -1248[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1280[rbp], rax
	cmp	QWORD PTR -1280[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -1248[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L4:
	lea	rax, -1040[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1272[rbp], rax
	cmp	QWORD PTR -1272[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -1040[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L5:
	lea	rax, -832[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1264[rbp], rax
	cmp	QWORD PTR -1264[rbp], 0
	jne	.L7
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -832[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L14:
	mov	rdx, QWORD PTR -1280[rbp]
	lea	rax, -416[rbp]
	mov	esi, 200
	mov	rdi, rax
	call	fgets@PLT
	mov	QWORD PTR -1256[rbp], rax
	cmp	QWORD PTR -1256[rbp], 0
	je	.L7
	lea	rax, -416[rbp]
	mov	edx, 11
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L8
	mov	DWORD PTR -1284[rbp], 1
	jmp	.L7
.L8:
	lea	rax, -416[rbp]
	mov	edx, 9
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L9
	mov	DWORD PTR -1284[rbp], 0
	jmp	.L7
.L9:
	cmp	DWORD PTR -1284[rbp], 1
	jne	.L10
	lea	rax, -416[rbp]
	mov	esi, 94
	mov	rdi, rax
	call	strchr@PLT
	test	rax, rax
	jne	.L11
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -416[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
.L11:
	lea	rax, -416[rbp]
	mov	esi, 94
	mov	rdi, rax
	call	strchr@PLT
	lea	rdx, -416[rbp]
	sub	rax, rdx
	add	eax, 1
	mov	DWORD PTR -1288[rbp], eax
	lea	rdx, -416[rbp]
	lea	rax, -624[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	DWORD PTR -1284[rbp], 2
	jmp	.L12
.L10:
	cmp	DWORD PTR -1284[rbp], 2
	jne	.L13
	lea	rdi, -416[rbp]
	mov	esi, DWORD PTR -1288[rbp]
	mov	ecx, DWORD PTR -1292[rbp]
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1264[rbp]
	mov	r9, rdi
	mov	r8d, esi
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rsi, rax
	mov	rdx, QWORD PTR -1264[rbp]
	lea	rax, -208[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	lea	rax, -624[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rsi, rax
	mov	rdx, QWORD PTR -1264[rbp]
	lea	rax, -624[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	jmp	.L12
.L13:
	cmp	DWORD PTR -1284[rbp], 3
	jne	.L12
	lea	rax, -416[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rsi, rax
	mov	rdx, QWORD PTR -1264[rbp]
	lea	rax, -416[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L12:
	cmp	DWORD PTR -1284[rbp], 0
	jne	.L7
	add	DWORD PTR -1292[rbp], 1
	lea	rax, -416[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rsi, rax
	mov	rdx, QWORD PTR -1272[rbp]
	lea	rax, -416[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	lea	rdx, -416[rbp]
	lea	rax, -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L7:
	mov	rax, QWORD PTR -1280[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L14
	cmp	DWORD PTR -1284[rbp], 0
	je	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	edi, -1
	call	exit@PLT
.L15:
	mov	rax, QWORD PTR -1280[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -1272[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -1264[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	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
.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	"853945.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"call %s with filename without extension\012\000"
	.align	2
.LC1:
	.ascii	"given filename exeeds internal limits (%s)\012\000"
	.align	2
.LC2:
	.ascii	".prl\000"
	.align	2
.LC3:
	.ascii	".check\000"
	.align	2
.LC4:
	.ascii	".expect\000"
	.align	2
.LC5:
	.ascii	"r\000"
	.align	2
.LC6:
	.ascii	"could not read %s\012\000"
	.align	2
.LC7:
	.ascii	"w\000"
	.align	2
.LC8:
	.ascii	"could not create %s\012\000"
	.align	2
.LC9:
	.ascii	"!!!!! BEGIN\000"
	.align	2
.LC10:
	.ascii	"!!!!! END\000"
	.align	2
.LC11:
	.ascii	"expected carrot in line %s\000"
	.align	2
.LC12:
	.ascii	"%s:%d:%d: %s\000"
	.align	2
.LC13:
	.ascii	"last error-clause not completed\012\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1248
	str	r0, [fp, #-1240]
	str	r1, [fp, #-1244]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1236]
	mov	r3, #0
	str	r3, [fp, #-208]
	sub	r3, fp, #204
	mov	r2, #196
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1228]
	ldr	r3, [fp, #-1240]
	cmp	r3, #2
	beq	.L2
	ldr	r3, .L18+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-1244]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L18+8
	bl	fprintf
	mvn	r0, #10
	bl	exit
.L2:
	ldr	r3, [fp, #-1244]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #80
	bls	.L3
	ldr	r3, .L18+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-1244]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L18+12
	bl	fprintf
	mvn	r0, #10
	bl	exit
.L3:
	ldr	r3, [fp, #-1244]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #1008
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #1008
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1008
	add	r3, r3, r2
	ldr	r2, .L18+16
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-1244]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #1200
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #1200
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #1200
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L18+20
	mov	r0, r3
	mov	r1, r2
	mov	r3, #7
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-1244]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #808
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #808
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #808
	add	r3, r3, r2
	ldr	r2, .L18+24
	mov	r0, r3
	mov	r1, r2
	mov	r3, #8
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #1200
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L18+28
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1224]
	ldr	r3, [fp, #-1224]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L18+4
	ldr	r0, [r3]
	sub	r3, fp, #1200
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L18+32
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L4:
	sub	r3, fp, #1008
	ldr	r1, .L18+36
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1220]
	ldr	r3, [fp, #-1220]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L18+4
	ldr	r3, [r3]
	sub	r2, fp, #1008
	ldr	r1, .L18+40
	mov	r0, r3
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L5:
	sub	r3, fp, #808
	ldr	r1, .L18+36
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-1216]
	ldr	r3, [fp, #-1216]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L18+4
	ldr	r3, [r3]
	sub	r2, fp, #808
	ldr	r1, .L18+40
	mov	r0, r3
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L14:
	sub	r3, fp, #408
	ldr	r2, [fp, #-1224]
	mov	r1, #200
	mov	r0, r3
	bl	fgets
	str	r0, [fp, #-1212]
	ldr	r3, [fp, #-1212]
	cmp	r3, #0
	beq	.L7
	sub	r3, fp, #408
	mov	r2, #11
	ldr	r1, .L18+44
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	mov	r3, #1
	str	r3, [fp, #-1228]
	b	.L7
.L8:
	sub	r3, fp, #408
	mov	r2, #9
	ldr	r1, .L18+48
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	mov	r3, #0
	str	r3, [fp, #-1228]
	b	.L7
.L9:
	ldr	r3, [fp, #-1228]
	cmp	r3, #1
	bne	.L10
	sub	r3, fp, #408
	mov	r1, #94
	mov	r0, r3
	bl	strchr
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L18+4
	ldr	r3, [r3]
	sub	r2, fp, #408
	ldr	r1, .L18+52
	mov	r0, r3
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L11:
	sub	r3, fp, #408
	mov	r1, #94
	mov	r0, r3
	bl	strchr
	mov	r2, r0
	sub	r3, fp, #408
	sub	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-1232]
	sub	r2, fp, #408
	sub	r3, fp, #608
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	mov	r3, #2
	str	r3, [fp, #-1228]
	b	.L12
.L10:
	ldr	r3, [fp, #-1228]
	cmp	r3, #2
	bne	.L13
	sub	r2, fp, #1008
	sub	r3, fp, #408
	str	r3, [sp, #4]
	ldr	r3, [fp, #-1232]
	str	r3, [sp]
	ldr	r3, [fp, #-1236]
	ldr	r1, .L18+56
	ldr	r0, [fp, #-1216]
	bl	fprintf
	sub	r3, fp, #208
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r0, fp, #208
	ldr	r3, [fp, #-1216]
	mov	r1, #1
	bl	fwrite
	sub	r3, fp, #608
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r0, fp, #608
	ldr	r3, [fp, #-1216]
	mov	r1, #1
	bl	fwrite
	b	.L12
.L13:
	ldr	r3, [fp, #-1228]
	cmp	r3, #3
	bne	.L12
	sub	r3, fp, #408
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r0, fp, #408
	ldr	r3, [fp, #-1216]
	mov	r1, #1
	bl	fwrite
.L12:
	ldr	r3, [fp, #-1228]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-1236]
	add	r3, r3, #1
	str	r3, [fp, #-1236]
	sub	r3, fp, #408
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r0, fp, #408
	ldr	r3, [fp, #-1220]
	mov	r1, #1
	bl	fwrite
	sub	r2, fp, #408
	sub	r3, fp, #208
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
.L7:
	ldr	r0, [fp, #-1224]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-1228]
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L18+4
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L18+60
	bl	fwrite
	mvn	r0, #0
	bl	exit
.L15:
	ldr	r0, [fp, #-1224]
	bl	fclose
	ldr	r0, [fp, #-1220]
	bl	fclose
	ldr	r0, [fp, #-1216]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC14
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
