	.file	"767528.c"
	.intel_syntax noprefix
	.text
	.globl	head
	.bss
	.align 8
	.type	head, @object
	.size	head, 8
head:
	.zero	8
	.text
	.globl	list_append
	.type	list_append, @function
list_append:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L2
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 800[rax]
	test	rax, rax
	jne	.L3
	mov	edi, 816
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 800[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 800[rax]
	mov	QWORD PTR 800[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 800[rax]
	mov	DWORD PTR 808[rax], 0
.L3:
	add	DWORD PTR -12[rbp], 100
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 800[rax]
	mov	QWORD PTR -8[rbp], rax
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 808[rax]
	cmp	eax, 100
	je	.L4
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 808[rax]
	add	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 808[rax]
	lea	ecx, 1[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR 808[rdx], ecx
	mov	rdx, QWORD PTR -8[rbp]
	cdqe
	mov	rcx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx+rax*8], rcx
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	list_append, .-list_append
	.globl	list_remove
	.type	list_remove, @function
list_remove:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L7
.L10:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 800[rax]
	mov	eax, DWORD PTR 808[rax]
	test	eax, eax
	jne	.L8
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 800[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 800[rax], 0
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 800[rax]
	mov	QWORD PTR -24[rbp], rax
.L7:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 800[rax]
	test	rax, rax
	jne	.L10
.L9:
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L11
.L14:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 800[rax]
	test	rax, rax
	jne	.L12
	call	abort@PLT
.L12:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 800[rax]
	mov	QWORD PTR -16[rbp], rax
	sub	DWORD PTR -36[rbp], 100
.L11:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 808[rax]
	cmp	eax, 100
	jne	.L13
	cmp	DWORD PTR -36[rbp], 99
	jg	.L14
.L13:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 808[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 808[rax]
	lea	esi, -1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	mov	rcx, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -24[rbp]
	movsx	rdx, esi
	mov	QWORD PTR [rax+rdx*8], rcx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 808[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -36[rbp]
	movsx	rdx, edx
	mov	rcx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax+rdx*8], rcx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 808[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 808[rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	list_remove, .-list_remove
	.section	.rodata
.LC0:
	.string	"> "
.LC1:
	.string	"%d"
	.text
	.globl	readint
	.type	readint, @function
readint:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], -1
.L18:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	DWORD PTR -20[rbp], eax
	jg	.L18
	mov	eax, DWORD PTR -12[rbp]
	cmp	DWORD PTR -24[rbp], eax
	jl	.L18
	mov	eax, DWORD PTR -12[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	readint, .-readint
	.globl	init
	.type	init, @function
init:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 816
	call	malloc@PLT
	mov	QWORD PTR head[rip], rax
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR 800[rax], 0
	mov	rax, QWORD PTR head[rip]
	mov	DWORD PTR 808[rax], 0
	mov	rax, QWORD PTR stdin[rip]
	mov	ecx, 0
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	ecx, 0
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 0
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	mov	edi, 180
	call	alarm@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	init, .-init
	.section	.rodata
.LC2:
	.string	"What would you like to do?"
.LC3:
	.string	" [0] Draft a new tribute"
	.align 8
.LC4:
	.string	" [1] Remove a tribute from the list (because someone volunteered in their place again, people should really stop doing that, it messes with our management system)"
	.align 8
.LC5:
	.string	" [2] See an overview of the current tributes"
	.align 8
.LC6:
	.string	" [3] Start the games, may the odds be ever in your favor!"
	.text
	.globl	menu
	.type	menu, @function
menu:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	menu, .-menu
	.section	.rodata
	.align 8
.LC7:
	.string	"For which district will this tribute fight?"
	.align 8
.LC8:
	.string	"What's the position among the tributes for this district?"
	.align 8
.LC9:
	.string	"Least importantly, what's their name?"
.LC10:
	.string	"%99s"
.LC11:
	.string	"Noted, this is tribute %d\n"
	.text
	.globl	draft
	.type	draft, @function
draft:
.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, 16
	mov	edi, 104
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	esi, 12
	mov	edi, 1
	call	readint
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 100[rax], dx
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	esi, 2
	mov	edi, 1
	call	readint
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	WORD PTR 102[rax], dx
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	list_append
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	draft, .-draft
	.section	.rodata
	.align 8
.LC12:
	.string	"Which tribute should be undrafted?"
.LC13:
	.string	"done."
	.text
	.globl	undraft
	.type	undraft, @function
undraft:
.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, 16
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	esi, 2147483647
	mov	edi, 0
	call	readint
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	list_remove
	lea	rdi, .LC13[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	undraft, .-undraft
	.section	.rodata
	.align 8
.LC14:
	.string	"Tribute %d [%s] fights in position %d for district %d.\n"
	.text
	.globl	list
	.type	list, @function
list:
.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, 32
	mov	DWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L26
.L29:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L27
.L28:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 100[rax]
	movsx	esi, ax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 102[rax]
	movsx	ecx, ax
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -20[rbp], 1
	add	DWORD PTR -24[rbp], 1
.L27:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 808[rax]
	cmp	DWORD PTR -20[rbp], eax
	jl	.L28
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 800[rax]
	mov	QWORD PTR -16[rbp], rax
.L26:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L29
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	list, .-list
	.section	.rodata
	.align 8
.LC15:
	.string	"TODO: implement this simulation into the matrix."
	.text
	.globl	run
	.type	run, @function
run:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE14:
	.size	run, .-run
	.globl	have_diagnosed
	.bss
	.align 4
	.type	have_diagnosed, @object
	.size	have_diagnosed, 4
have_diagnosed:
	.zero	4
	.section	.rodata
	.align 8
.LC16:
	.string	"I understand things might be broken, but we should keep some semblance of security."
	.align 8
.LC17:
	.string	"I take it the management system was ruined by volunteers again? Just let me know which memory address you need..."
.LC18:
	.string	"%llu"
.LC19:
	.string	"%p\n"
	.text
	.globl	diagnostics
	.type	diagnostics, @function
diagnostics:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR have_diagnosed[rip]
	test	eax, eax
	je	.L32
	lea	rdi, .LC16[rip]
	call	puts@PLT
	call	abort@PLT
.L32:
	mov	DWORD PTR have_diagnosed[rip], 1
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	QWORD PTR -16[rbp], 0
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	diagnostics, .-diagnostics
	.section	.rodata
	.align 8
.LC20:
	.string	"Welcome to the Hunger Games management system."
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	eax, 0
	call	init
	lea	rdi, .LC20[rip]
	call	puts@PLT
.L43:
	mov	eax, 0
	call	menu
	mov	esi, 4
	mov	edi, 0
	call	readint
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 4
	ja	.L35
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L37[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L37[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L37:
	.long	.L41-.L37
	.long	.L40-.L37
	.long	.L39-.L37
	.long	.L38-.L37
	.long	.L36-.L37
	.text
.L41:
	mov	eax, 0
	call	draft
	jmp	.L42
.L40:
	mov	eax, 0
	call	undraft
	jmp	.L42
.L39:
	mov	eax, 0
	call	list
	jmp	.L42
.L38:
	mov	eax, 0
	call	run
	jmp	.L42
.L36:
	mov	eax, 0
	call	diagnostics
	jmp	.L42
.L35:
	call	abort@PLT
.L42:
	jmp	.L43
	.cfi_endproc
.LFE16:
	.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	"767528.c"
	.text
	.comm	head,4,4
	.align	2
	.global	list_append
	.syntax unified
	.arm
	.fpu softvfp
	.type	list_append, %function
list_append:
	@ 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, #0
	str	r3, [fp, #-12]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L2
.L4:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #400]
	cmp	r3, #0
	bne	.L3
	mov	r0, #408
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #400]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #400]
	mov	r2, #0
	str	r2, [r3, #400]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #400]
	mov	r2, #0
	str	r2, [r3, #404]
.L3:
	ldr	r3, [fp, #-12]
	add	r3, r3, #100
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #400]
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #404]
	cmp	r3, #100
	beq	.L4
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #404]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #404]
	add	r1, r3, #1
	ldr	r2, [fp, #-8]
	str	r1, [r2, #404]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-16]
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	head
	.size	list_append, .-list_append
	.align	2
	.global	list_remove
	.syntax unified
	.arm
	.fpu softvfp
	.type	list_remove, %function
list_remove:
	@ 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]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	b	.L9
.L12:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #400]
	ldr	r3, [r3, #404]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #400]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #400]
	b	.L11
.L10:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #400]
	str	r3, [fp, #-16]
.L9:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #400]
	cmp	r3, #0
	bne	.L12
.L11:
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L13
.L16:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #400]
	cmp	r3, #0
	bne	.L14
	bl	abort
.L14:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #400]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #100
	str	r3, [fp, #-24]
.L13:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #404]
	cmp	r3, #100
	bne	.L15
	ldr	r3, [fp, #-24]
	cmp	r3, #99
	bgt	.L16
.L15:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #404]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #404]
	sub	r2, r3, #1
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-24]
	ldr	r1, [r3, r1, lsl #2]
	ldr	r3, [fp, #-16]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #404]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-8]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #404]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #404]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	head
	.size	list_remove, .-list_remove
	.section	.rodata
	.align	2
.LC0:
	.ascii	"> \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readint
	.syntax unified
	.arm
	.fpu softvfp
	.type	readint, %function
readint:
	@ 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]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-12]
.L22:
	ldr	r0, .L25+4
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L25+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bgt	.L22
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L22
	ldr	r3, [fp, #-12]
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	readint, .-readint
	.align	2
	.global	init
	.syntax unified
	.arm
	.fpu softvfp
	.type	init, %function
init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #408
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L28
	str	r2, [r3]
	ldr	r3, .L28
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #400]
	ldr	r3, .L28
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #404]
	ldr	r3, .L28+4
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #2
	mov	r1, #0
	bl	setvbuf
	ldr	r3, .L28+8
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #2
	mov	r1, #0
	bl	setvbuf
	ldr	r3, .L28+12
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #2
	mov	r1, #0
	bl	setvbuf
	mov	r0, #180
	bl	alarm
	nop
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	head
	.word	stdin
	.word	stdout
	.word	stderr
	.size	init, .-init
	.section	.rodata
	.align	2
.LC3:
	.ascii	"What would you like to do?\000"
	.align	2
.LC4:
	.ascii	" [0] Draft a new tribute\000"
	.align	2
.LC5:
	.ascii	" [1] Remove a tribute from the list (because someon"
	.ascii	"e volunteered in their place again, people should r"
	.ascii	"eally stop doing that, it messes with our managemen"
	.ascii	"t system)\000"
	.align	2
.LC6:
	.ascii	" [2] See an overview of the current tributes\000"
	.align	2
.LC7:
	.ascii	" [3] Start the games, may the odds be ever in your "
	.ascii	"favor!\000"
	.text
	.align	2
	.global	menu
	.syntax unified
	.arm
	.fpu softvfp
	.type	menu, %function
menu:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L31
	bl	puts
	ldr	r0, .L31+4
	bl	puts
	ldr	r0, .L31+8
	bl	puts
	ldr	r0, .L31+12
	bl	puts
	ldr	r0, .L31+16
	bl	puts
	nop
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	menu, .-menu
	.section	.rodata
	.align	2
.LC8:
	.ascii	"For which district will this tribute fight?\000"
	.align	2
.LC9:
	.ascii	"What's the position among the tributes for this dis"
	.ascii	"trict?\000"
	.align	2
.LC10:
	.ascii	"Least importantly, what's their name?\000"
	.align	2
.LC11:
	.ascii	"%99s\000"
	.align	2
.LC12:
	.ascii	"Noted, this is tribute %d\012\000"
	.text
	.align	2
	.global	draft
	.syntax unified
	.arm
	.fpu softvfp
	.type	draft, %function
draft:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r0, #104
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r0, .L34
	bl	puts
	mov	r1, #12
	mov	r0, #1
	bl	readint
	mov	r3, r0
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-8]
	strh	r2, [r3, #100]	@ movhi
	ldr	r0, .L34+4
	bl	puts
	mov	r1, #2
	mov	r0, #1
	bl	readint
	mov	r3, r0
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-8]
	strh	r2, [r3, #102]	@ movhi
	ldr	r0, .L34+8
	bl	puts
	ldr	r3, [fp, #-8]
	mov	r1, r3
	ldr	r0, .L34+12
	bl	__isoc99_scanf
	ldr	r0, [fp, #-8]
	bl	list_append
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L34+16
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	draft, .-draft
	.section	.rodata
	.align	2
.LC13:
	.ascii	"Which tribute should be undrafted?\000"
	.align	2
.LC14:
	.ascii	"done.\000"
	.text
	.align	2
	.global	undraft
	.syntax unified
	.arm
	.fpu softvfp
	.type	undraft, %function
undraft:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L37
	bl	puts
	mvn	r1, #-2147483648
	mov	r0, #0
	bl	readint
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	list_remove
	ldr	r0, .L37+4
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC13
	.word	.LC14
	.size	undraft, .-undraft
	.section	.rodata
	.align	2
.LC15:
	.ascii	"Tribute %d [%s] fights in position %d for district "
	.ascii	"%d.\012\000"
	.text
	.align	2
	.global	list
	.syntax unified
	.arm
	.fpu softvfp
	.type	list, %function
list:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, .L44
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	b	.L40
.L43:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L41
.L42:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrsh	r3, [r3, #102]
	mov	r1, r3
	ldr	r3, [fp, #-8]
	ldrsh	r3, [r3, #100]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [fp, #-20]
	ldr	r0, .L44+4
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L41:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #404]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L42
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #400]
	str	r3, [fp, #-16]
.L40:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L43
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	head
	.word	.LC15
	.size	list, .-list
	.section	.rodata
	.align	2
.LC16:
	.ascii	"TODO: implement this simulation into the matrix.\000"
	.text
	.align	2
	.global	run
	.syntax unified
	.arm
	.fpu softvfp
	.type	run, %function
run:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L47
	bl	puts
	mov	r0, #0
	bl	exit
.L48:
	.align	2
.L47:
	.word	.LC16
	.size	run, .-run
	.global	have_diagnosed
	.bss
	.align	2
	.type	have_diagnosed, %object
	.size	have_diagnosed, 4
have_diagnosed:
	.space	4
	.section	.rodata
	.align	2
.LC17:
	.ascii	"I understand things might be broken, but we should "
	.ascii	"keep some semblance of security.\000"
	.align	2
.LC18:
	.ascii	"I take it the management system was ruined by volun"
	.ascii	"teers again? Just let me know which memory address "
	.ascii	"you need...\000"
	.align	2
.LC19:
	.ascii	"%llu\000"
	.align	2
.LC20:
	.ascii	"%p\012\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	diagnostics
	.syntax unified
	.arm
	.fpu softvfp
	.type	diagnostics, %function
diagnostics:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L52
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L52+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L50
	ldr	r0, .L52+8
	bl	puts
	bl	abort
.L50:
	ldr	r3, .L52+4
	mov	r2, #1
	str	r2, [r3]
	ldr	r0, .L52+12
	bl	puts
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L52+16
	bl	__isoc99_scanf
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	mov	r3, r2
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L52+20
	bl	printf
	nop
	ldr	r3, .L52
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L51
	bl	__stack_chk_fail
.L51:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC21
	.word	have_diagnosed
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	diagnostics, .-diagnostics
	.section	.rodata
	.align	2
.LC22:
	.ascii	"Welcome to the Hunger Games management system.\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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	init
	ldr	r0, .L64
	bl	puts
.L63:
	bl	menu
	mov	r1, #4
	mov	r0, #0
	bl	readint
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L55
.L57:
	.word	.L61
	.word	.L60
	.word	.L59
	.word	.L58
	.word	.L56
.L61:
	bl	draft
	b	.L62
.L60:
	bl	undraft
	b	.L62
.L59:
	bl	list
	b	.L62
.L58:
	bl	run
	b	.L62
.L56:
	bl	diagnostics
	b	.L62
.L55:
	bl	abort
.L62:
	b	.L63
.L65:
	.align	2
.L64:
	.word	.LC22
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
