	.file	"123540.c"
	.intel_syntax noprefix
	.text
	.globl	switcher
	.bss
	.align 4
	.type	switcher, @object
	.size	switcher, 4
switcher:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Could not allocate memory"
	.text
	.globl	mem_error
	.type	mem_error, @function
mem_error:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 3
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	mem_error, .-mem_error
	.section	.rodata
.LC1:
	.string	"Bad input!"
	.text
	.globl	bad_input
	.type	bad_input, @function
bad_input:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 4
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	bad_input, .-bad_input
	.globl	add_to_list_here
	.type	add_to_list_here, @function
add_to_list_here:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	edi, 120
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L5
	mov	eax, 0
	call	mem_error
	jmp	.L5
.L6:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	QWORD PTR -16[rbp], rax
.L5:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 112[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 104[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 104[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 104[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 112[rax], rdx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	add_to_list_here, .-add_to_list_here
	.globl	add_before
	.type	add_before, @function
add_before:
.LFB9:
	.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	QWORD PTR -32[rbp], rsi
	mov	edi, 120
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L8
	mov	eax, 0
	call	mem_error
.L8:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 112[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 104[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 112[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 112[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 104[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 112[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	add_before, .-add_before
	.globl	add_to_end
	.type	add_to_end, @function
add_to_end:
.LFB10:
	.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	QWORD PTR -32[rbp], rsi
	mov	edi, 120
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L12
	mov	eax, 0
	call	mem_error
.L12:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 104[rax]
	cmp	QWORD PTR -24[rbp], rax
	jne	.L12
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 112[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 104[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 104[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 112[rax], rdx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	add_to_end, .-add_to_end
	.globl	add_to_list
	.type	add_to_list, @function
add_to_list:
.LFB11:
	.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	QWORD PTR -32[rbp], rsi
	mov	eax, DWORD PTR switcher[rip]
	test	eax, eax
	jne	.L14
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 104[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 112[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	DWORD PTR switcher[rip], 1
	jmp	.L15
.L14:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
.L19:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	js	.L16
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jg	.L16
	mov	rcx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	add_to_list_here
	jmp	.L15
.L16:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jne	.L19
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jg	.L18
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	add_before
	mov	QWORD PTR -24[rbp], rax
	jmp	.L15
.L18:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	add_to_end
.L15:
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	add_to_list, .-add_to_list
	.globl	print_list
	.type	print_list, @function
print_list:
.LFB12:
	.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	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
.L22:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jne	.L22
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	print_list, .-print_list
	.section	.rodata
.LC2:
	.string	"Eliminating %s\n"
	.text
	.globl	delete
	.type	delete, @function
delete:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L24
.L25:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	QWORD PTR -16[rbp], rax
.L24:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L25
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jne	.L26
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 112[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR 104[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 112[rax], rdx
	jmp	.L27
.L26:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 104[rax]
	cmp	QWORD PTR -40[rbp], rax
	jne	.L28
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR 104[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 112[rax], rdx
	jmp	.L27
.L28:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 104[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 112[rax], rdx
.L27:
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	delete, .-delete
	.section	.rodata
.LC3:
	.string	"Skipping %s\n"
.LC4:
	.string	"\nWinner: %s\nGame Over\n"
	.text
	.globl	cc_wise
	.type	cc_wise, @function
cc_wise:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	QWORD PTR -152[rbp], rdi
	mov	DWORD PTR -156[rbp], esi
	mov	DWORD PTR -160[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 112[rax]
	mov	QWORD PTR -128[rbp], rax
	jmp	.L31
.L32:
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 112[rax]
	mov	QWORD PTR -128[rbp], rax
.L31:
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 104[rax]
	cmp	QWORD PTR -152[rbp], rax
	jne	.L32
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR -120[rbp], rax
	mov	DWORD PTR -144[rbp], 1
	jmp	.L33
.L38:
	mov	DWORD PTR -140[rbp], 1
	jmp	.L34
.L35:
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 112[rax]
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 112[rax]
	mov	QWORD PTR -128[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -140[rbp], 1
.L34:
	mov	eax, DWORD PTR -140[rbp]
	cmp	eax, DWORD PTR -156[rbp]
	jl	.L35
	mov	rdx, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	delete
	mov	QWORD PTR -152[rbp], rax
	cmp	DWORD PTR -156[rbp], 1
	je	.L36
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR -136[rbp], rax
	jmp	.L37
.L36:
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 112[rax]
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR -136[rbp], rax
.L37:
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -144[rbp], 1
.L33:
	mov	eax, DWORD PTR -144[rbp]
	cmp	DWORD PTR -160[rbp], eax
	ja	.L38
	mov	rdx, QWORD PTR -152[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	cc_wise, .-cc_wise
	.globl	clock_wise
	.type	clock_wise, @function
clock_wise:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	QWORD PTR -152[rbp], rdi
	mov	DWORD PTR -156[rbp], esi
	mov	DWORD PTR -160[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -128[rbp], rax
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	QWORD PTR -120[rbp], rax
	mov	DWORD PTR -136[rbp], 1
	jmp	.L41
.L46:
	mov	DWORD PTR -132[rbp], 1
	jmp	.L42
.L43:
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	QWORD PTR -128[rbp], rax
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR 112[rax]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -132[rbp], 1
.L42:
	mov	eax, DWORD PTR -132[rbp]
	cmp	eax, DWORD PTR -156[rbp]
	jl	.L43
	mov	rdx, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	delete
	mov	QWORD PTR -152[rbp], rax
	cmp	DWORD PTR -156[rbp], 1
	je	.L44
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR -128[rbp], rax
	jmp	.L45
.L44:
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -128[rbp], rax
.L45:
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -136[rbp], 1
.L41:
	mov	eax, DWORD PTR -136[rbp]
	cmp	DWORD PTR -160[rbp], eax
	ja	.L46
	mov	rdx, QWORD PTR -152[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	clock_wise, .-clock_wise
	.section	.rodata
.LC5:
	.string	"%d\n"
.LC6:
	.string	"Please introduce n: "
.LC7:
	.string	"%d"
	.align 8
.LC8:
	.string	"You can't count to 0 in any direction."
	.align 8
.LC9:
	.string	"Now please introduce the direction"
	.align 8
.LC10:
	.string	"If you want to go clock-wise please introduce 1."
	.align 8
.LC11:
	.string	"If you want to go counter-clockwise please introduce 2."
.LC12:
	.string	"%u"
.LC13:
	.string	"Game start!"
.LC14:
	.string	"We are going clock-wise!"
.LC15:
	.string	"Initial list:"
	.align 8
.LC16:
	.string	"We are going counter-clockwise!"
	.text
	.globl	game
	.type	game, @function
game:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -20[rbp], 1
.L49:
	add	DWORD PTR -20[rbp], 1
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 104[rax]
	cmp	QWORD PTR -40[rbp], rax
	jne	.L49
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 1
	jne	.L50
	mov	eax, DWORD PTR -28[rbp]
	test	eax, eax
	jne	.L51
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edi, 10
	call	exit@PLT
.L51:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 1
	jne	.L52
	lea	rdi, .LC13[rip]
	call	puts@PLT
	jmp	.L53
.L52:
	mov	eax, 0
	call	bad_input
	jmp	.L53
.L50:
	mov	eax, 0
	call	bad_input
.L53:
	mov	eax, DWORD PTR -28[rbp]
	test	eax, eax
	jns	.L54
	mov	eax, DWORD PTR -28[rbp]
	cdq
	xor	eax, edx
	sub	eax, edx
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	mov	DWORD PTR -24[rbp], eax
.L54:
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 1
	test	eax, eax
	je	.L55
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	print_list
	mov	ecx, DWORD PTR -28[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	clock_wise
	jmp	.L58
.L55:
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	ecx, DWORD PTR -28[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	cc_wise
.L58:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	game, .-game
	.section	.rodata
	.align 8
.LC17:
	.string	"Please give text name file in command line."
.LC18:
	.string	"r"
.LC19:
	.string	"Could not open text file"
.LC20:
	.string	"Initial list of kids:"
	.text
	.globl	main
	.type	main, @function
main:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -44[rbp], 0
	cmp	DWORD PTR -52[rbp], 2
	je	.L60
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L60:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L61
	lea	rdi, .LC19[rip]
	call	puts@PLT
	mov	edi, 2
	call	exit@PLT
.L61:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L62
	mov	eax, 0
	call	mem_error
.L62:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L63
	mov	eax, 0
	call	mem_error
.L63:
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	edi, 120
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L64
	mov	eax, 0
	call	mem_error
.L64:
	mov	DWORD PTR -48[rbp], 0
	jmp	.L65
.L71:
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L66
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, -1
	jne	.L67
.L66:
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR -44[rbp], 0
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L68
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L68
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	add_to_list
	mov	QWORD PTR -40[rbp], rax
.L68:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, -1
	je	.L70
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	jmp	.L70
.L67:
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -44[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR [rcx]
	mov	BYTE PTR [rdx], al
.L70:
	add	DWORD PTR -48[rbp], 1
.L65:
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L71
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L72
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L72
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	add_to_list
	mov	QWORD PTR -40[rbp], rax
.L72:
	lea	rdi, .LC20[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	print_list
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	game
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.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	"123540.c"
	.text
	.global	switcher
	.bss
	.align	2
	.type	switcher, %object
	.size	switcher, 4
switcher:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Could not allocate memory\000"
	.text
	.align	2
	.global	mem_error
	.syntax unified
	.arm
	.fpu softvfp
	.type	mem_error, %function
mem_error:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	puts
	mov	r0, #3
	bl	exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	mem_error, .-mem_error
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Bad input!\000"
	.text
	.align	2
	.global	bad_input
	.syntax unified
	.arm
	.fpu softvfp
	.type	bad_input, %function
bad_input:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L5
	bl	puts
	mov	r0, #4
	bl	exit
.L6:
	.align	2
.L5:
	.word	.LC1
	.size	bad_input, .-bad_input
	.align	2
	.global	add_to_list_here
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_to_list_here, %function
add_to_list_here:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r0, #108
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L9
	bl	mem_error
	b	.L9
.L10:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #100]
	str	r3, [fp, #-12]
.L9:
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #100]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #104]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #100]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #100]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #100]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #104]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	add_to_list_here, .-add_to_list_here
	.align	2
	.global	add_before
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_before, %function
add_before:
	@ 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]
	mov	r0, #108
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L12
	bl	mem_error
.L12:
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #104]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #100]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #104]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #104]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #100]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #104]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	add_before, .-add_before
	.align	2
	.global	add_to_end
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_to_end, %function
add_to_end:
	@ 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]
	mov	r0, #108
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L16
	bl	mem_error
.L16:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #100]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #100]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L16
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #104]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #100]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #100]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #104]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	add_to_end, .-add_to_end
	.align	2
	.global	add_to_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_to_list, %function
add_to_list:
	@ 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, .L25
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #100]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #104]
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcpy
	ldr	r3, .L25
	mov	r2, #1
	str	r2, [r3]
	b	.L19
.L18:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
.L23:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #100]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	blt	.L20
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #100]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bgt	.L20
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	add_to_list_here
	b	.L19
.L20:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L23
	ldr	r3, [fp, #-16]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bgt	.L22
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	add_before
	str	r0, [fp, #-16]
	b	.L19
.L22:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	add_to_end
.L19:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	switcher
	.size	add_to_list, .-add_to_list
	.align	2
	.global	print_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_list, %function
print_list:
	@ 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]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
.L28:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #100]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L28
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	print_list, .-print_list
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Eliminating %s\012\000"
	.text
	.align	2
	.global	delete
	.syntax unified
	.arm
	.fpu softvfp
	.type	delete, %function
delete:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
	b	.L30
.L31:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #100]
	str	r3, [fp, #-12]
.L30:
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L32
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #104]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #100]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #100]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #104]
	b	.L33
.L32:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #100]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L34
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #100]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #104]
	b	.L33
.L34:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #100]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #100]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #104]
.L33:
	ldr	r3, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L36
	bl	printf
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC2
	.size	delete, .-delete
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Skipping %s\012\000"
	.align	2
.LC4:
	.ascii	"\012Winner: %s\012Game Over\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cc_wise
	.syntax unified
	.arm
	.fpu softvfp
	.type	cc_wise, %function
cc_wise:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	str	r2, [fp, #-144]
	ldr	r3, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-136]
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #104]
	str	r3, [fp, #-116]
	b	.L39
.L40:
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #100]
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #104]
	str	r3, [fp, #-116]
.L39:
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #100]
	ldr	r2, [fp, #-136]
	cmp	r2, r3
	bne	.L40
	ldr	r3, [fp, #-120]
	str	r3, [fp, #-112]
	mov	r3, #1
	str	r3, [fp, #-128]
	b	.L41
.L46:
	mov	r3, #1
	str	r3, [fp, #-124]
	b	.L42
.L43:
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #104]
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #104]
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #100]
	mov	r1, r3
	ldr	r0, .L48+4
	bl	printf
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L42:
	ldr	r2, [fp, #-124]
	ldr	r3, [fp, #-140]
	cmp	r2, r3
	blt	.L43
	ldr	r3, [fp, #-120]
	mov	r1, r3
	ldr	r0, [fp, #-136]
	bl	delete
	str	r0, [fp, #-136]
	ldr	r3, [fp, #-140]
	cmp	r3, #1
	beq	.L44
	ldr	r3, [fp, #-116]
	str	r3, [fp, #-120]
	b	.L45
.L44:
	ldr	r3, [fp, #-112]
	ldr	r3, [r3, #104]
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-112]
	str	r3, [fp, #-120]
.L45:
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L41:
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-144]
	cmp	r2, r3
	bhi	.L46
	ldr	r2, [fp, #-136]
	sub	r3, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-136]
	mov	r1, r3
	ldr	r0, .L48+8
	bl	printf
	ldr	r0, [fp, #-136]
	bl	free
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L48+12
	bl	printf
	nop
	ldr	r3, .L48
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC5
	.word	.LC3
	.word	.LC2
	.word	.LC4
	.size	cc_wise, .-cc_wise
	.section	.rodata
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	clock_wise
	.syntax unified
	.arm
	.fpu softvfp
	.type	clock_wise, %function
clock_wise:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	str	r2, [fp, #-136]
	ldr	r3, .L58
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-128]
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-116]
	ldr	r3, [r3, #100]
	str	r3, [fp, #-112]
	mov	r3, #1
	str	r3, [fp, #-124]
	b	.L51
.L56:
	mov	r3, #1
	str	r3, [fp, #-120]
	b	.L52
.L53:
	ldr	r3, [fp, #-116]
	ldr	r3, [r3, #100]
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-116]
	ldr	r3, [r3, #100]
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-116]
	ldr	r3, [r3, #104]
	mov	r1, r3
	ldr	r0, .L58+4
	bl	printf
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L52:
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-132]
	cmp	r2, r3
	blt	.L53
	ldr	r3, [fp, #-116]
	mov	r1, r3
	ldr	r0, [fp, #-128]
	bl	delete
	str	r0, [fp, #-128]
	ldr	r3, [fp, #-132]
	cmp	r3, #1
	beq	.L54
	ldr	r3, [fp, #-112]
	str	r3, [fp, #-116]
	b	.L55
.L54:
	ldr	r3, [fp, #-128]
	str	r3, [fp, #-116]
.L55:
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L51:
	ldr	r3, [fp, #-124]
	ldr	r2, [fp, #-136]
	cmp	r2, r3
	bhi	.L56
	ldr	r2, [fp, #-128]
	sub	r3, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-128]
	mov	r1, r3
	ldr	r0, .L58+8
	bl	printf
	ldr	r0, [fp, #-128]
	bl	free
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L58+12
	bl	printf
	nop
	ldr	r3, .L58
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L57
	bl	__stack_chk_fail
.L57:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L59:
	.align	2
.L58:
	.word	.LC6
	.word	.LC3
	.word	.LC2
	.word	.LC4
	.size	clock_wise, .-clock_wise
	.section	.rodata
	.align	2
.LC7:
	.ascii	"%d\012\000"
	.align	2
.LC8:
	.ascii	"Please introduce n: \000"
	.align	2
.LC9:
	.ascii	"%d\000"
	.align	2
.LC10:
	.ascii	"You can't count to 0 in any direction.\000"
	.align	2
.LC11:
	.ascii	"Now please introduce the direction\000"
	.align	2
.LC12:
	.ascii	"If you want to go clock-wise please introduce 1.\000"
	.align	2
.LC13:
	.ascii	"If you want to go counter-clockwise please introduc"
	.ascii	"e 2.\000"
	.align	2
.LC14:
	.ascii	"%u\000"
	.align	2
.LC15:
	.ascii	"Game start!\000"
	.align	2
.LC16:
	.ascii	"We are going clock-wise!\000"
	.align	2
.LC17:
	.ascii	"Initial list:\000"
	.align	2
.LC18:
	.ascii	"We are going counter-clockwise!\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	game
	.syntax unified
	.arm
	.fpu softvfp
	.type	game, %function
game:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L71
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-12]
.L61:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #100]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #100]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bne	.L61
	ldr	r1, [fp, #-12]
	ldr	r0, .L71+4
	bl	printf
	ldr	r0, .L71+8
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L71+12
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L62
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L63
	ldr	r0, .L71+16
	bl	puts
	mov	r0, #10
	bl	exit
.L63:
	ldr	r0, .L71+20
	bl	puts
	ldr	r0, .L71+24
	bl	puts
	ldr	r0, .L71+28
	bl	puts
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L71+32
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L64
	ldr	r0, .L71+36
	bl	puts
	b	.L65
.L64:
	bl	bad_input
	b	.L65
.L62:
	bl	bad_input
.L65:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L66
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	rsblt	r3, r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L66:
	ldr	r3, [fp, #-20]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L67
	ldr	r0, .L71+40
	bl	puts
	ldr	r0, .L71+44
	bl	puts
	ldr	r0, [fp, #-32]
	bl	print_list
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	clock_wise
	b	.L70
.L67:
	ldr	r0, .L71+48
	bl	puts
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	cc_wise
.L70:
	nop
	ldr	r3, .L71
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L69
	bl	__stack_chk_fail
.L69:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L72:
	.align	2
.L71:
	.word	.LC19
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	game, .-game
	.section	.rodata
	.align	2
.LC20:
	.ascii	"Please give text name file in command line.\000"
	.align	2
.LC21:
	.ascii	"r\000"
	.align	2
.LC22:
	.ascii	"Could not open text file\000"
	.align	2
.LC23:
	.ascii	"Initial list of kids:\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	beq	.L74
	ldr	r0, .L86
	bl	puts
	mov	r0, #1
	bl	exit
.L74:
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L86+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L75
	ldr	r0, .L86+8
	bl	puts
	mov	r0, #2
	bl	exit
.L75:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	fseek
	ldr	r0, [fp, #-20]
	bl	ftell
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	rewind
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r1, #1
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L76
	bl	mem_error
.L76:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r1, #1
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L77
	bl	mem_error
.L77:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	mov	r1, #1
	ldr	r0, [fp, #-12]
	bl	fread
	mov	r0, #108
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L78
	bl	mem_error
.L78:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L79
.L83:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L80
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-28]
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L81
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L81
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-24]
	bl	add_to_list
	str	r0, [fp, #-24]
.L81:
	ldr	r2, [fp, #-16]
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	b	.L82
.L80:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-28]
	add	r1, r3, #1
	str	r1, [fp, #-28]
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
.L82:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L79:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L83
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L84
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L84
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-24]
	bl	add_to_list
	str	r0, [fp, #-24]
.L84:
	ldr	r0, .L86+12
	bl	puts
	ldr	r0, [fp, #-24]
	bl	print_list
	ldr	r0, [fp, #-24]
	bl	game
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r0, [fp, #-8]
	bl	free
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L87:
	.align	2
.L86:
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
