	.file	"773963.c"
	.intel_syntax noprefix
	.text
	.globl	output
	.bss
	.align 32
	.type	output, @object
	.size	output, 50
output:
	.zero	50
	.text
	.globl	random_word
	.type	random_word, @function
random_word:
.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, 16
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, -2004318071
	shr	rdx, 32
	add	edx, eax
	sar	edx, 3
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	ecx, edx
	sal	ecx, 4
	sub	ecx, edx
	sub	eax, ecx
	mov	edx, eax
	lea	eax, 1[rdx]
	mov	DWORD PTR -4[rbp], eax
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1321528399
	shr	rdx, 32
	sar	edx, 3
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 26
	sub	eax, ecx
	mov	edx, eax
	mov	eax, edx
	add	eax, 65
	mov	BYTE PTR output[rip], al
	mov	DWORD PTR -8[rbp], 1
	jmp	.L2
.L3:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1321528399
	shr	rdx, 32
	sar	edx, 3
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 26
	sub	eax, ecx
	mov	edx, eax
	mov	eax, edx
	add	eax, 97
	mov	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, output[rip]
	mov	BYTE PTR [rax+rdx], cl
	add	DWORD PTR -8[rbp], 1
.L2:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L3
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, output[rip]
	mov	BYTE PTR [rax+rdx], 0
	lea	rax, output[rip]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	random_word, .-random_word
	.globl	random_error
	.type	random_error, @function
random_error:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 1
	jmp	.L6
.L11:
	call	rand@PLT
	mov	ecx, eax
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	test	edx, edx
	jne	.L7
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 32
.L7:
	call	rand@PLT
	mov	ecx, eax
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	test	edx, edx
	jne	.L8
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	jmp	.L9
.L8:
	add	DWORD PTR -4[rbp], 1
.L6:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L10
	cmp	DWORD PTR -4[rbp], 14
	jle	.L11
.L10:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	random_error, .-random_error
	.section	.rodata
.LC0:
	.string	"w"
.LC1:
	.string	"random_command.txt"
.LC2:
	.string	"%c\n%s\n"
.LC3:
	.string	"q\n"
.LC4:
	.string	"simulate_command.txt"
.LC5:
	.string	"r"
.LC6:
	.string	"city_one_col.txt"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 560
	mov	DWORD PTR -548[rbp], edi
	mov	QWORD PTR -560[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -518[rbp], 1685284449
	mov	WORD PTR -514[rbp], 113
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -536[rbp], rax
	mov	DWORD PTR -540[rbp], 8000
	jmp	.L13
.L14:
	mov	eax, 0
	call	random_word
	mov	rcx, rax
	movzx	eax, BYTE PTR -516[rbp]
	movsx	edx, al
	mov	rax, QWORD PTR -536[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L13:
	mov	eax, DWORD PTR -540[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -540[rbp], edx
	test	eax, eax
	jne	.L14
	mov	rax, QWORD PTR -536[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	QWORD PTR -536[rbp], rax
	lea	rsi, .LC5[rip]
	lea	rdi, .LC6[rip]
	call	fopen@PLT
	mov	QWORD PTR -528[rbp], rax
	mov	DWORD PTR -540[rbp], 8000
	jmp	.L15
.L16:
	mov	rdx, QWORD PTR -528[rbp]
	lea	rax, -512[rbp]
	mov	esi, 128
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -512[rbp]
	mov	rdi, rax
	call	random_error
	mov	rcx, rax
	movzx	eax, BYTE PTR -516[rbp]
	movsx	edx, al
	mov	rax, QWORD PTR -536[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L15:
	mov	eax, DWORD PTR -540[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -540[rbp], edx
	test	eax, eax
	jne	.L16
	mov	rax, QWORD PTR -536[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -528[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"773963.c"
	.text
	.comm	output,50,4
	.align	2
	.global	random_word
	.syntax unified
	.arm
	.fpu softvfp
	.type	random_word, %function
random_word:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	rand
	mov	r2, r0
	ldr	r3, .L5
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #3
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #4
	sub	r3, r3, r1
	sub	r1, r2, r3
	add	r3, r1, #1
	str	r3, [fp, #-8]
	bl	rand
	mov	r1, r0
	ldr	r3, .L5+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #3
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	and	r3, r2, #255
	add	r3, r3, #65
	and	r2, r3, #255
	ldr	r3, .L5+8
	strb	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L2
.L3:
	bl	rand
	mov	r1, r0
	ldr	r3, .L5+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #3
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	and	r3, r2, #255
	add	r3, r3, #97
	and	r1, r3, #255
	ldr	r2, .L5+8
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L3
	ldr	r2, .L5+8
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L5+8
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	-2004318071
	.word	1321528399
	.word	output
	.size	random_word, .-random_word
	.align	2
	.global	random_error
	.syntax unified
	.arm
	.fpu softvfp
	.type	random_error, %function
random_error:
	@ 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]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L8
.L13:
	bl	rand
	mov	r1, r0
	ldr	r3, .L14
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L9
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
.L9:
	bl	rand
	mov	r1, r0
	ldr	r3, .L14
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L10
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	b	.L11
.L10:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L8:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-8]
	cmp	r3, #14
	ble	.L13
.L12:
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	1717986919
	.size	random_error, .-random_error
	.section	.rodata
	.align	2
.LC1:
	.ascii	"w\000"
	.align	2
.LC2:
	.ascii	"random_command.txt\000"
	.align	2
.LC3:
	.ascii	"%c\012%s\012\000"
	.align	2
.LC4:
	.ascii	"q\012\000"
	.align	2
.LC5:
	.ascii	"simulate_command.txt\000"
	.align	2
.LC6:
	.ascii	"r\000"
	.align	2
.LC7:
	.ascii	"city_one_col.txt\000"
	.align	2
.LC0:
	.ascii	"afsdq\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 536
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #540
	str	r0, [fp, #-544]
	str	r1, [fp, #-548]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r2, .L23+4
	sub	r3, fp, #524
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r1, .L23+8
	ldr	r0, .L23+12
	bl	fopen
	str	r0, [fp, #-532]
	mov	r3, #8000
	str	r3, [fp, #-536]
	b	.L17
.L18:
	ldrb	r3, [fp, #-522]	@ zero_extendqisi2
	mov	r4, r3
	bl	random_word
	mov	r3, r0
	mov	r2, r4
	ldr	r1, .L23+16
	ldr	r0, [fp, #-532]
	bl	fprintf
.L17:
	ldr	r3, [fp, #-536]
	sub	r2, r3, #1
	str	r2, [fp, #-536]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-532]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L23+20
	bl	fwrite
	ldr	r0, [fp, #-532]
	bl	fclose
	ldr	r1, .L23+8
	ldr	r0, .L23+24
	bl	fopen
	str	r0, [fp, #-532]
	ldr	r1, .L23+28
	ldr	r0, .L23+32
	bl	fopen
	str	r0, [fp, #-528]
	mov	r3, #8000
	str	r3, [fp, #-536]
	b	.L19
.L20:
	sub	r3, fp, #516
	ldr	r2, [fp, #-528]
	mov	r1, #128
	mov	r0, r3
	bl	fgets
	ldrb	r3, [fp, #-522]	@ zero_extendqisi2
	mov	r4, r3
	sub	r3, fp, #516
	mov	r0, r3
	bl	random_error
	mov	r3, r0
	mov	r2, r4
	ldr	r1, .L23+16
	ldr	r0, [fp, #-532]
	bl	fprintf
.L19:
	ldr	r3, [fp, #-536]
	sub	r2, r3, #1
	str	r2, [fp, #-536]
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-532]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L23+20
	bl	fwrite
	ldr	r0, [fp, #-528]
	bl	fclose
	ldr	r0, [fp, #-532]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
