	.file	"146933.c"
	.intel_syntax noprefix
	.text
	.globl	EPS
	.data
	.align 8
	.type	EPS, @object
	.size	EPS, 8
EPS:
	.long	0
	.long	1021575168
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"inputs/number_of_states.txt"
.LC2:
	.string	"%u"
	.align 8
.LC3:
	.string	"Failed reading file inputs/number_of_states.txt"
	.align 8
.LC4:
	.string	"inputs/number_of_terminal_states.txt"
	.align 8
.LC5:
	.string	"Failed reading file inputs/number_of_terminal_states.txt"
	.align 8
.LC6:
	.string	"inputs/number_of_actions_per_non_terminal_state.txt"
	.align 8
.LC7:
	.string	"Failed reading file inputs/number_of_actions_per_non_terminal_state.txt"
	.align 8
.LC8:
	.string	"inputs/number_of_state_action_successor_states.txt"
.LC9:
	.string	"%u\t"
	.align 8
.LC10:
	.string	"Failed reading file inputs/number_of_state_action_successor_states.txt"
	.align 8
.LC11:
	.string	"inputs/state_action_successor_state_indices.txt"
	.align 8
.LC12:
	.string	"Failed reading file inputs/state_action_successor_state_indices.txt"
.LC13:
	.string	"\n"
	.align 8
.LC14:
	.string	"inputs/state_action_successor_state_transition_probabilities.txt"
.LC15:
	.string	"%lf\t"
	.align 8
.LC16:
	.string	"Failed reading file inputs/state_action_successor_state_transition_probabilities.txt"
	.align 8
.LC18:
	.string	"inputs/state_action_successor_state_rewards.txt"
	.align 8
.LC19:
	.string	"Failed reading file inputs/state_action_successor_state_rewards.txt"
	.align 8
.LC22:
	.string	"\nInitial state-action value function:"
.LC23:
	.string	"\t%lf"
.LC24:
	.string	"\nInitial target policy:"
.LC25:
	.string	"\nInitial behavior policy:"
	.align 8
.LC26:
	.string	"\nFinal state-action value function:"
.LC27:
	.string	"\nFinal target policy:"
	.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
	push	rbx
	sub	rsp, 264
	.cfi_offset 3, -24
	mov	DWORD PTR -260[rbp], edi
	mov	QWORD PTR -272[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -248[rbp], 0
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -192[rbp], rax
	lea	rdx, -248[rbp]
	mov	rax, QWORD PTR -192[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L2
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L2:
	mov	rax, QWORD PTR -192[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	DWORD PTR -244[rbp], 0
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	QWORD PTR -184[rbp], rax
	lea	rdx, -244[rbp]
	mov	rax, QWORD PTR -184[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L3
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L3:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -248[rbp]
	mov	edx, DWORD PTR -244[rbp]
	sub	eax, edx
	mov	DWORD PTR -224[rbp], eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC6[rip]
	call	fopen@PLT
	mov	QWORD PTR -176[rbp], rax
	mov	eax, DWORD PTR -224[rbp]
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -168[rbp], rax
	mov	DWORD PTR -240[rbp], 0
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -176[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L5
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L5:
	add	DWORD PTR -240[rbp], 1
.L4:
	mov	eax, DWORD PTR -240[rbp]
	cmp	eax, DWORD PTR -224[rbp]
	jb	.L6
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -248[rbp]
	mov	eax, eax
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -160[rbp], rax
	mov	DWORD PTR -240[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -240[rbp]
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -160[rbp]
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -240[rbp], 1
.L7:
	mov	eax, DWORD PTR -240[rbp]
	cmp	eax, DWORD PTR -224[rbp]
	jb	.L8
	mov	DWORD PTR -240[rbp], 0
	jmp	.L9
.L10:
	mov	edx, DWORD PTR -240[rbp]
	mov	eax, DWORD PTR -224[rbp]
	add	eax, edx
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	add	DWORD PTR -240[rbp], 1
.L9:
	mov	eax, DWORD PTR -244[rbp]
	cmp	DWORD PTR -240[rbp], eax
	jb	.L10
	lea	rsi, .LC0[rip]
	lea	rdi, .LC8[rip]
	call	fopen@PLT
	mov	QWORD PTR -152[rbp], rax
	mov	eax, DWORD PTR -224[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -144[rbp], rax
	mov	DWORD PTR -240[rbp], 0
	jmp	.L11
.L15:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	sal	rax, 2
	mov	edx, DWORD PTR -240[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -144[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -236[rbp], 0
	jmp	.L12
.L14:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 2
	add	rdx, rax
	mov	rax, QWORD PTR -152[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L13
	lea	rdi, .LC10[rip]
	call	puts@PLT
.L13:
	add	DWORD PTR -236[rbp], 1
.L12:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -236[rbp], eax
	jb	.L14
	add	DWORD PTR -240[rbp], 1
.L11:
	mov	eax, DWORD PTR -240[rbp]
	cmp	eax, DWORD PTR -224[rbp]
	jb	.L15
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rsi, .LC0[rip]
	lea	rdi, .LC11[rip]
	call	fopen@PLT
	mov	QWORD PTR -136[rbp], rax
	mov	eax, DWORD PTR -224[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -128[rbp], rax
	mov	DWORD PTR -240[rbp], 0
	jmp	.L16
.L23:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	sal	rax, 3
	mov	edx, DWORD PTR -240[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -128[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -236[rbp], 0
	jmp	.L17
.L22:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	sal	rax, 3
	mov	edx, DWORD PTR -240[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -128[rbp]
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -236[rbp]
	sal	rdx, 3
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -232[rbp], 0
	jmp	.L18
.L20:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -232[rbp]
	sal	rax, 2
	add	rdx, rax
	mov	rax, QWORD PTR -136[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L19
	lea	rdi, .LC12[rip]
	call	puts@PLT
.L19:
	add	DWORD PTR -232[rbp], 1
.L18:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -232[rbp], eax
	jb	.L20
	mov	rax, QWORD PTR -136[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L21
	lea	rdi, .LC12[rip]
	call	puts@PLT
.L21:
	add	DWORD PTR -236[rbp], 1
.L17:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -236[rbp], eax
	jb	.L22
	add	DWORD PTR -240[rbp], 1
.L16:
	mov	eax, DWORD PTR -240[rbp]
	cmp	eax, DWORD PTR -224[rbp]
	jb	.L23
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rsi, .LC0[rip]
	lea	rdi, .LC14[rip]
	call	fopen@PLT
	mov	QWORD PTR -120[rbp], rax
	mov	eax, DWORD PTR -224[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	DWORD PTR -240[rbp], 0
	jmp	.L24
.L31:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	sal	rax, 3
	mov	edx, DWORD PTR -240[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -112[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -236[rbp], 0
	jmp	.L25
.L30:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	sal	rax, 3
	mov	edx, DWORD PTR -240[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -112[rbp]
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -236[rbp]
	sal	rdx, 3
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -232[rbp], 0
	jmp	.L26
.L28:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -232[rbp]
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L27
	lea	rdi, .LC16[rip]
	call	puts@PLT
.L27:
	add	DWORD PTR -232[rbp], 1
.L26:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -232[rbp], eax
	jb	.L28
	mov	rax, QWORD PTR -120[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L29
	lea	rdi, .LC16[rip]
	call	puts@PLT
.L29:
	add	DWORD PTR -236[rbp], 1
.L25:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -236[rbp], eax
	jb	.L30
	add	DWORD PTR -240[rbp], 1
.L24:
	mov	eax, DWORD PTR -240[rbp]
	cmp	eax, DWORD PTR -224[rbp]
	jb	.L31
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -224[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -104[rbp], rax
	mov	DWORD PTR -240[rbp], 0
	jmp	.L32
.L38:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	sal	rax, 3
	mov	edx, DWORD PTR -240[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -104[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -236[rbp], 0
	jmp	.L33
.L37:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	sal	rax, 3
	mov	edx, DWORD PTR -240[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -104[rbp]
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -236[rbp]
	sal	rdx, 3
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L34
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -240[rbp]
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR [rdx]
	movsd	QWORD PTR [rax], xmm0
	mov	DWORD PTR -232[rbp], 1
	jmp	.L35
.L36:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -232[rbp]
	sub	eax, 1
	mov	eax, eax
	sal	rax, 3
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -232[rbp]
	sal	rax, 3
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -232[rbp]
	sal	rax, 3
	add	rax, rdx
	addsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -232[rbp], 1
.L35:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -232[rbp], eax
	jb	.L36
.L34:
	add	DWORD PTR -236[rbp], 1
.L33:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -236[rbp], eax
	jb	.L37
	add	DWORD PTR -240[rbp], 1
.L32:
	mov	eax, DWORD PTR -240[rbp]
	cmp	eax, DWORD PTR -224[rbp]
	jb	.L38
	movsd	xmm0, QWORD PTR .LC17[rip]
	movsd	QWORD PTR -208[rbp], xmm0
	lea	rsi, .LC0[rip]
	lea	rdi, .LC18[rip]
	call	fopen@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR -224[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	DWORD PTR -240[rbp], 0
	jmp	.L39
.L48:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	sal	rax, 3
	mov	edx, DWORD PTR -240[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -88[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -236[rbp], 0
	jmp	.L40
.L47:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	sal	rax, 3
	mov	edx, DWORD PTR -240[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -88[rbp]
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -236[rbp]
	sal	rdx, 3
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -232[rbp], 0
	jmp	.L41
.L45:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -232[rbp]
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -96[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L42
	lea	rdi, .LC19[rip]
	call	puts@PLT
.L42:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -232[rbp]
	sal	rax, 3
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR -208[rbp]
	comisd	xmm0, xmm1
	jbe	.L43
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -232[rbp]
	sal	rax, 3
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR -208[rbp], xmm0
.L43:
	add	DWORD PTR -232[rbp], 1
.L41:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -232[rbp], eax
	jb	.L45
	mov	rax, QWORD PTR -96[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L46
	lea	rdi, .LC19[rip]
	call	puts@PLT
.L46:
	add	DWORD PTR -236[rbp], 1
.L40:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -236[rbp], eax
	jb	.L47
	add	DWORD PTR -240[rbp], 1
.L39:
	mov	eax, DWORD PTR -240[rbp]
	cmp	eax, DWORD PTR -224[rbp]
	jb	.L48
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	DWORD PTR -220[rbp], 10000
	mov	DWORD PTR -216[rbp], 200
	mov	eax, DWORD PTR -216[rbp]
	sal	rax, 4
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -80[rbp], rax
	mov	DWORD PTR -240[rbp], 0
	jmp	.L49
.L50:
	mov	eax, DWORD PTR -240[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR -240[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	DWORD PTR 4[rax], 0
	mov	eax, DWORD PTR -240[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	pxor	xmm0, xmm0
	movsd	QWORD PTR 8[rax], xmm0
	add	DWORD PTR -240[rbp], 1
.L49:
	mov	eax, DWORD PTR -240[rbp]
	cmp	eax, DWORD PTR -216[rbp]
	jb	.L50
	pxor	xmm0, xmm0
	movsd	QWORD PTR -200[rbp], xmm0
	pxor	xmm0, xmm0
	comisd	xmm0, QWORD PTR -208[rbp]
	jbe	.L112
	movsd	xmm0, QWORD PTR -208[rbp]
	addsd	xmm0, xmm0
	movsd	QWORD PTR -200[rbp], xmm0
	jmp	.L53
.L112:
	pxor	xmm0, xmm0
	movsd	QWORD PTR -200[rbp], xmm0
.L53:
	mov	eax, DWORD PTR -248[rbp]
	mov	eax, eax
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	DWORD PTR -240[rbp], 0
	jmp	.L54
.L57:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	sal	rax, 3
	mov	edx, DWORD PTR -240[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -236[rbp], 0
	jmp	.L55
.L56:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	movsd	xmm0, QWORD PTR -200[rbp]
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -236[rbp], 1
.L55:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -236[rbp], eax
	jb	.L56
	add	DWORD PTR -240[rbp], 1
.L54:
	mov	eax, DWORD PTR -248[rbp]
	cmp	DWORD PTR -240[rbp], eax
	jb	.L57
	mov	eax, DWORD PTR -248[rbp]
	mov	eax, eax
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -240[rbp], 0
	jmp	.L58
.L61:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	sal	rax, 3
	mov	edx, DWORD PTR -240[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -64[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -236[rbp], 0
	jmp	.L59
.L60:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -236[rbp], 1
.L59:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -236[rbp], eax
	jb	.L60
	add	DWORD PTR -240[rbp], 1
.L58:
	mov	eax, DWORD PTR -248[rbp]
	cmp	DWORD PTR -240[rbp], eax
	jb	.L61
	mov	eax, DWORD PTR -224[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	DWORD PTR -240[rbp], 0
	jmp	.L62
.L67:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	sal	rax, 3
	mov	edx, DWORD PTR -240[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -56[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -236[rbp], 0
	jmp	.L63
.L66:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	test	rax, rax
	js	.L64
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L65
.L64:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L65:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	movsd	xmm1, QWORD PTR .LC21[rip]
	divsd	xmm1, xmm0
	movsd	QWORD PTR [rax], xmm1
	add	DWORD PTR -236[rbp], 1
.L63:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -236[rbp], eax
	jb	.L66
	add	DWORD PTR -240[rbp], 1
.L62:
	mov	eax, DWORD PTR -240[rbp]
	cmp	eax, DWORD PTR -224[rbp]
	jb	.L67
	mov	eax, DWORD PTR -224[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -240[rbp], 0
	jmp	.L68
.L73:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	sal	rax, 3
	mov	edx, DWORD PTR -240[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -48[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR -236[rbp], 0
	jmp	.L69
.L72:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	test	rax, rax
	js	.L70
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L71
.L70:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L71:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	movsd	xmm1, QWORD PTR .LC21[rip]
	divsd	xmm1, xmm0
	movsd	QWORD PTR [rax], xmm1
	add	DWORD PTR -236[rbp], 1
.L69:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -236[rbp], eax
	jb	.L72
	add	DWORD PTR -240[rbp], 1
.L68:
	mov	eax, DWORD PTR -240[rbp]
	cmp	eax, DWORD PTR -224[rbp]
	jb	.L73
	mov	eax, DWORD PTR -224[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -240[rbp], 0
	jmp	.L74
.L77:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	sal	rax, 3
	mov	edx, DWORD PTR -240[rbp]
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -240[rbp]
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR [rdx]
	movsd	QWORD PTR [rax], xmm0
	mov	DWORD PTR -236[rbp], 1
	jmp	.L75
.L76:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sub	eax, 1
	mov	eax, eax
	sal	rax, 3
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	addsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -236[rbp], 1
.L75:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -236[rbp], eax
	jb	.L76
	add	DWORD PTR -240[rbp], 1
.L74:
	mov	eax, DWORD PTR -240[rbp]
	cmp	eax, DWORD PTR -224[rbp]
	jb	.L77
	movsd	xmm0, QWORD PTR .LC21[rip]
	movsd	QWORD PTR -32[rbp], xmm0
	mov	edi, 0
	call	srand@PLT
	lea	rdi, .LC22[rip]
	call	puts@PLT
	mov	DWORD PTR -240[rbp], 0
	jmp	.L78
.L81:
	mov	eax, DWORD PTR -240[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -236[rbp], 0
	jmp	.L79
.L80:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movq	xmm0, rax
	lea	rdi, .LC23[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -236[rbp], 1
.L79:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -236[rbp], eax
	jb	.L80
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -240[rbp], 1
.L78:
	mov	eax, DWORD PTR -240[rbp]
	cmp	eax, DWORD PTR -224[rbp]
	jb	.L81
	lea	rdi, .LC24[rip]
	call	puts@PLT
	mov	DWORD PTR -240[rbp], 0
	jmp	.L82
.L85:
	mov	eax, DWORD PTR -240[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -236[rbp], 0
	jmp	.L83
.L84:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movq	xmm0, rax
	lea	rdi, .LC23[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -236[rbp], 1
.L83:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -236[rbp], eax
	jb	.L84
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -240[rbp], 1
.L82:
	mov	eax, DWORD PTR -240[rbp]
	cmp	eax, DWORD PTR -224[rbp]
	jb	.L85
	lea	rdi, .LC25[rip]
	call	puts@PLT
	mov	DWORD PTR -240[rbp], 0
	jmp	.L86
.L89:
	mov	eax, DWORD PTR -240[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -236[rbp], 0
	jmp	.L87
.L88:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movq	xmm0, rax
	lea	rdi, .LC23[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -236[rbp], 1
.L87:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -236[rbp], eax
	jb	.L88
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -240[rbp], 1
.L86:
	mov	eax, DWORD PTR -240[rbp]
	cmp	eax, DWORD PTR -224[rbp]
	jb	.L89
	mov	DWORD PTR -212[rbp], 0
	mov	DWORD PTR -240[rbp], 0
	jmp	.L90
.L91:
	mov	r9, QWORD PTR -104[rbp]
	mov	r8, QWORD PTR -112[rbp]
	mov	rcx, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -144[rbp]
	mov	rsi, QWORD PTR -168[rbp]
	mov	eax, DWORD PTR -224[rbp]
	sub	rsp, 8
	push	QWORD PTR -80[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	mov	edi, DWORD PTR -216[rbp]
	push	rdi
	push	QWORD PTR -88[rbp]
	mov	edi, eax
	call	GenerateEpisode
	add	rsp, 48
	mov	DWORD PTR -212[rbp], eax
	mov	rdi, QWORD PTR -32[rbp]
	mov	r9, QWORD PTR -48[rbp]
	mov	r10, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rsi, QWORD PTR -168[rbp]
	mov	eax, DWORD PTR -224[rbp]
	mov	r8d, DWORD PTR -212[rbp]
	push	r8
	push	QWORD PTR -80[rbp]
	movq	xmm0, rdi
	mov	r8, r10
	mov	edi, eax
	call	LoopThroughEpisodeInReverse
	add	rsp, 16
	add	DWORD PTR -240[rbp], 1
.L90:
	mov	eax, DWORD PTR -240[rbp]
	cmp	eax, DWORD PTR -220[rbp]
	jb	.L91
	lea	rdi, .LC26[rip]
	call	puts@PLT
	mov	DWORD PTR -240[rbp], 0
	jmp	.L92
.L95:
	mov	eax, DWORD PTR -240[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -236[rbp], 0
	jmp	.L93
.L94:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movq	xmm0, rax
	lea	rdi, .LC23[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -236[rbp], 1
.L93:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -236[rbp], eax
	jb	.L94
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -240[rbp], 1
.L92:
	mov	eax, DWORD PTR -240[rbp]
	cmp	eax, DWORD PTR -224[rbp]
	jb	.L95
	lea	rdi, .LC27[rip]
	call	puts@PLT
	mov	DWORD PTR -240[rbp], 0
	jmp	.L96
.L99:
	mov	eax, DWORD PTR -240[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -236[rbp], 0
	jmp	.L97
.L98:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movq	xmm0, rax
	lea	rdi, .LC23[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -236[rbp], 1
.L97:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -236[rbp], eax
	jb	.L98
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -240[rbp], 1
.L96:
	mov	eax, DWORD PTR -240[rbp]
	cmp	eax, DWORD PTR -224[rbp]
	jb	.L99
	mov	DWORD PTR -240[rbp], 0
	jmp	.L100
.L101:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -240[rbp], 1
.L100:
	mov	eax, DWORD PTR -240[rbp]
	cmp	eax, DWORD PTR -224[rbp]
	jb	.L101
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	DWORD PTR -240[rbp], 0
	jmp	.L102
.L103:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -240[rbp], 1
.L102:
	mov	eax, DWORD PTR -248[rbp]
	cmp	DWORD PTR -240[rbp], eax
	jb	.L103
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	DWORD PTR -240[rbp], 0
	jmp	.L104
.L107:
	mov	DWORD PTR -236[rbp], 0
	jmp	.L105
.L106:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -236[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -236[rbp], 1
.L105:
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -236[rbp], eax
	jb	.L106
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -240[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -144[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -240[rbp], 1
.L104:
	mov	eax, DWORD PTR -240[rbp]
	cmp	eax, DWORD PTR -224[rbp]
	jb	.L107
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -128[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L109
	call	__stack_chk_fail@PLT
.L109:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	GenerateEpisode
	.type	GenerateEpisode, @function
GenerateEpisode:
.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, 80
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -72[rbp], r8
	mov	QWORD PTR -80[rbp], r9
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8[rbp], xmm0
	call	rand@PLT
	mov	edx, 0
	div	DWORD PTR -36[rbp]
	mov	DWORD PTR -20[rbp], edx
	jmp	.L114
.L126:
	mov	eax, DWORD PTR -24[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR 48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rdx], eax
	call	UnifRand
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -28[rbp], 0
	jmp	.L115
.L119:
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR 40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	sal	rax, 3
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	comisd	xmm0, QWORD PTR -8[rbp]
	jb	.L130
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L118
.L130:
	add	DWORD PTR -28[rbp], 1
.L115:
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jb	.L119
.L118:
	mov	eax, DWORD PTR -24[rbp]
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR 48[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR 4[rdx], eax
	call	UnifRand
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -28[rbp], 0
	jmp	.L120
.L124:
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	sal	rax, 3
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	comisd	xmm0, QWORD PTR -8[rbp]
	jb	.L131
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L123
.L131:
	add	DWORD PTR -28[rbp], 1
.L120:
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jb	.L124
.L123:
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR 16[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	sal	rax, 3
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	sal	rax, 4
	mov	rcx, rax
	mov	rax, QWORD PTR 48[rbp]
	add	rax, rcx
	movsd	xmm0, QWORD PTR [rdx]
	movsd	QWORD PTR 8[rax], xmm0
	add	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jnb	.L132
.L114:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR 24[rbp]
	jb	.L126
	jmp	.L125
.L132:
	nop
.L125:
	mov	eax, DWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	GenerateEpisode, .-GenerateEpisode
	.globl	GreedyPolicyFromStateActionFunction
	.type	GreedyPolicyFromStateActionFunction, @function
GreedyPolicyFromStateActionFunction:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	QWORD PTR -64[rbp], rcx
	mov	DWORD PTR -20[rbp], 1
	movsd	xmm0, QWORD PTR .LC28[rip]
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC21[rip]
	movsd	QWORD PTR -8[rbp], xmm0
	mov	DWORD PTR -24[rbp], 0
	jmp	.L134
.L139:
	mov	eax, DWORD PTR -52[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	sal	rax, 3
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	subsd	xmm0, QWORD PTR -16[rbp]
	movq	xmm1, QWORD PTR .LC29[rip]
	andpd	xmm1, xmm0
	movsd	xmm0, QWORD PTR EPS[rip]
	comisd	xmm0, xmm1
	jb	.L151
	add	DWORD PTR -20[rbp], 1
	jmp	.L137
.L151:
	mov	eax, DWORD PTR -52[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	sal	rax, 3
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	comisd	xmm0, QWORD PTR -16[rbp]
	jbe	.L137
	mov	eax, DWORD PTR -52[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	sal	rax, 3
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR -16[rbp], xmm0
	mov	DWORD PTR -20[rbp], 1
.L137:
	add	DWORD PTR -24[rbp], 1
.L134:
	mov	eax, DWORD PTR -52[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -24[rbp], eax
	jb	.L139
	mov	eax, DWORD PTR -20[rbp]
	test	rax, rax
	js	.L140
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L141
.L140:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L141:
	movsd	xmm1, QWORD PTR .LC21[rip]
	divsd	xmm1, xmm0
	movsd	QWORD PTR -8[rbp], xmm1
	mov	DWORD PTR -24[rbp], 0
	jmp	.L142
.L146:
	mov	eax, DWORD PTR -52[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	sal	rax, 3
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	subsd	xmm0, QWORD PTR -16[rbp]
	movq	xmm1, QWORD PTR .LC29[rip]
	andpd	xmm1, xmm0
	movsd	xmm0, QWORD PTR EPS[rip]
	comisd	xmm0, xmm1
	jb	.L152
	mov	eax, DWORD PTR -52[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	sal	rax, 3
	add	rax, rdx
	movsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR [rax], xmm0
	jmp	.L145
.L152:
	mov	eax, DWORD PTR -52[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	sal	rax, 3
	add	rax, rdx
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rax], xmm0
.L145:
	add	DWORD PTR -24[rbp], 1
.L142:
	mov	eax, DWORD PTR -52[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -24[rbp], eax
	jb	.L146
	movsd	xmm0, QWORD PTR -8[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	GreedyPolicyFromStateActionFunction, .-GreedyPolicyFromStateActionFunction
	.globl	LoopThroughEpisodeInReverse
	.type	LoopThroughEpisodeInReverse, @function
LoopThroughEpisodeInReverse:
.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, 104
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	QWORD PTR -80[rbp], rcx
	mov	QWORD PTR -88[rbp], r8
	mov	QWORD PTR -96[rbp], r9
	movsd	QWORD PTR -104[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC21[rip]
	movsd	QWORD PTR -16[rbp], xmm0
	mov	eax, DWORD PTR 24[rbp]
	sub	eax, 1
	mov	DWORD PTR -36[rbp], eax
	jmp	.L154
.L163:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR 16[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR 16[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -28[rbp], eax
	movsd	xmm0, QWORD PTR -104[rbp]
	movapd	xmm1, xmm0
	mulsd	xmm1, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR 16[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR 8[rax]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	mov	eax, DWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	sal	rax, 3
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	sal	rax, 3
	add	rax, rdx
	addsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR [rax], xmm0
	mov	eax, DWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	sal	rax, 3
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	pxor	xmm1, xmm1
	ucomisd	xmm0, xmm1
	jp	.L165
	pxor	xmm1, xmm1
	comisd	xmm0, xmm1
	je	.L155
.L165:
	mov	eax, DWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	sal	rax, 3
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	sal	rax, 3
	add	rax, rdx
	movsd	xmm3, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR -16[rbp]
	movapd	xmm2, xmm0
	divsd	xmm2, xmm3
	mov	eax, DWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	sal	rax, 3
	add	rax, rdx
	movsd	xmm3, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR -24[rbp]
	subsd	xmm0, xmm3
	mulsd	xmm0, xmm2
	mov	eax, DWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	sal	rax, 3
	add	rax, rdx
	addsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
.L155:
	mov	rcx, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	GreedyPolicyFromStateActionFunction
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	sal	rax, 3
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	ucomisd	xmm0, QWORD PTR -8[rbp]
	jp	.L167
	comisd	xmm0, QWORD PTR -8[rbp]
	jne	.L167
	mov	eax, DWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	sal	rax, 3
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	pxor	xmm1, xmm1
	ucomisd	xmm0, xmm1
	jp	.L160
	pxor	xmm1, xmm1
	ucomisd	xmm0, xmm1
	jne	.L160
	pxor	xmm0, xmm0
	movsd	QWORD PTR -16[rbp], xmm0
	jmp	.L162
.L160:
	mov	eax, DWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	sal	rax, 3
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR -16[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
.L162:
	sub	DWORD PTR -36[rbp], 1
.L154:
	cmp	DWORD PTR -36[rbp], 0
	jns	.L163
	jmp	.L159
.L167:
	nop
.L159:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	LoopThroughEpisodeInReverse, .-LoopThroughEpisodeInReverse
	.globl	UnifRand
	.type	UnifRand, @function
UnifRand:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	rand@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC30[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	UnifRand, .-UnifRand
	.section	.rodata
	.align 8
.LC17:
	.long	-1
	.long	2146435071
	.align 8
.LC21:
	.long	0
	.long	1072693248
	.align 8
.LC28:
	.long	-1
	.long	-1048577
	.align 16
.LC29:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC30:
	.long	-4194304
	.long	1105199103
	.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	"146933.c"
	.text
	.global	EPS
	.data
	.align	3
	.type	EPS, %object
	.size	EPS, 8
EPS:
	.word	0
	.word	1021575168
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"inputs/number_of_states.txt\000"
	.align	2
.LC2:
	.ascii	"%u\000"
	.align	2
.LC3:
	.ascii	"Failed reading file inputs/number_of_states.txt\000"
	.align	2
.LC4:
	.ascii	"inputs/number_of_terminal_states.txt\000"
	.align	2
.LC5:
	.ascii	"Failed reading file inputs/number_of_terminal_state"
	.ascii	"s.txt\000"
	.align	2
.LC6:
	.ascii	"inputs/number_of_actions_per_non_terminal_state.txt"
	.ascii	"\000"
	.align	2
.LC7:
	.ascii	"Failed reading file inputs/number_of_actions_per_no"
	.ascii	"n_terminal_state.txt\000"
	.align	2
.LC8:
	.ascii	"inputs/number_of_state_action_successor_states.txt\000"
	.align	2
.LC9:
	.ascii	"%u\011\000"
	.align	2
.LC10:
	.ascii	"Failed reading file inputs/number_of_state_action_s"
	.ascii	"uccessor_states.txt\000"
	.align	2
.LC11:
	.ascii	"inputs/state_action_successor_state_indices.txt\000"
	.align	2
.LC12:
	.ascii	"Failed reading file inputs/state_action_successor_s"
	.ascii	"tate_indices.txt\000"
	.align	2
.LC13:
	.ascii	"\012\000"
	.align	2
.LC14:
	.ascii	"inputs/state_action_successor_state_transition_prob"
	.ascii	"abilities.txt\000"
	.align	2
.LC15:
	.ascii	"%lf\011\000"
	.align	2
.LC16:
	.ascii	"Failed reading file inputs/state_action_successor_s"
	.ascii	"tate_transition_probabilities.txt\000"
	.global	__aeabi_dadd
	.align	2
.LC17:
	.ascii	"inputs/state_action_successor_state_rewards.txt\000"
	.align	2
.LC18:
	.ascii	"Failed reading file inputs/state_action_successor_s"
	.ascii	"tate_rewards.txt\000"
	.global	__aeabi_dcmpgt
	.global	__aeabi_dcmplt
	.global	__aeabi_ui2d
	.global	__aeabi_ddiv
	.align	2
.LC19:
	.ascii	"\012Initial state-action value function:\000"
	.align	2
.LC20:
	.ascii	"\011%lf\000"
	.align	2
.LC21:
	.ascii	"\012Initial target policy:\000"
	.align	2
.LC22:
	.ascii	"\012Initial behavior policy:\000"
	.align	2
.LC23:
	.ascii	"\012Final state-action value function:\000"
	.align	2
.LC24:
	.ascii	"\012Final target policy:\000"
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #196
	str	r0, [fp, #-168]
	str	r1, [fp, #-172]
	ldr	r3, .L109
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-164]
	ldr	r1, .L109+4
	ldr	r0, .L109+8
	bl	fopen
	str	r0, [fp, #-144]
	sub	r3, fp, #164
	mov	r2, r3
	ldr	r1, .L109+12
	ldr	r0, [fp, #-144]
	bl	__isoc99_fscanf
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L109+16
	bl	puts
.L2:
	ldr	r0, [fp, #-144]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-160]
	ldr	r1, .L109+4
	ldr	r0, .L109+20
	bl	fopen
	str	r0, [fp, #-136]
	sub	r3, fp, #160
	mov	r2, r3
	ldr	r1, .L109+12
	ldr	r0, [fp, #-136]
	bl	__isoc99_fscanf
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L109+24
	bl	puts
.L3:
	ldr	r0, [fp, #-136]
	bl	fclose
	ldr	r2, [fp, #-164]
	ldr	r3, [fp, #-160]
	sub	r3, r2, r3
	str	r3, [fp, #-132]
	ldr	r1, .L109+4
	ldr	r0, .L109+28
	bl	fopen
	str	r0, [fp, #-128]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-124]
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L4
.L6:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L109+12
	ldr	r0, [fp, #-128]
	bl	__isoc99_fscanf
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L109+32
	bl	puts
.L5:
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L4:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-132]
	cmp	r2, r3
	bcc	.L6
	ldr	r0, [fp, #-128]
	bl	fclose
	ldr	r3, [fp, #-164]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-120]
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L7
.L8:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r2, r2, r3
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-120]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L7:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-132]
	cmp	r2, r3
	bcc	.L8
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L9
.L10:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-132]
	add	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-120]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L9:
	ldr	r3, [fp, #-160]
	ldr	r2, [fp, #-156]
	cmp	r2, r3
	bcc	.L10
	ldr	r1, .L109+4
	ldr	r0, .L109+36
	bl	fopen
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-112]
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L11
.L15:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L12
.L14:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L109+40
	ldr	r0, [fp, #-116]
	bl	__isoc99_fscanf
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmn	r3, #1
	bne	.L13
	ldr	r0, .L109+44
	bl	puts
.L13:
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L12:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	bcc	.L14
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L11:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-132]
	cmp	r2, r3
	bcc	.L15
	ldr	r0, [fp, #-116]
	bl	fclose
	ldr	r1, .L109+4
	ldr	r0, .L109+48
	bl	fopen
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L16
.L23:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-104]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L17
.L22:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-104]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-148]
	b	.L18
.L20:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-104]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L109+40
	ldr	r0, [fp, #-108]
	bl	__isoc99_fscanf
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmn	r3, #1
	bne	.L19
	ldr	r0, .L109+52
	bl	puts
.L19:
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	str	r3, [fp, #-148]
.L18:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-148]
	cmp	r2, r3
	bcc	.L20
	ldr	r1, .L109+56
	ldr	r0, [fp, #-108]
	bl	__isoc99_fscanf
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmn	r3, #1
	bne	.L21
	ldr	r0, .L109+52
	bl	puts
.L21:
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L17:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	bcc	.L22
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L16:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-132]
	cmp	r2, r3
	bcc	.L23
	ldr	r0, [fp, #-108]
	bl	fclose
	ldr	r1, .L109+4
	ldr	r0, .L109+60
	bl	fopen
	str	r0, [fp, #-100]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-96]
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L24
.L31:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-96]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L25
.L30:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-148]
	b	.L26
.L28:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L109+64
	ldr	r0, [fp, #-100]
	bl	__isoc99_fscanf
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmn	r3, #1
	bne	.L27
	ldr	r0, .L109+68
	bl	puts
.L27:
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	str	r3, [fp, #-148]
.L26:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-148]
	cmp	r2, r3
	bcc	.L28
	ldr	r1, .L109+56
	ldr	r0, [fp, #-100]
	bl	__isoc99_fscanf
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmn	r3, #1
	bne	.L29
	ldr	r0, .L109+68
	bl	puts
.L29:
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L25:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	bcc	.L30
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L24:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-132]
	cmp	r2, r3
	bcc	.L31
	ldr	r0, [fp, #-100]
	bl	fclose
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-92]
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L32
.L38:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-92]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L33
.L37:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-156]
	lsl	r2, r2, #2
	ldr	r1, [fp, #-92]
	add	r2, r1, r2
	ldr	r1, [r2]
	ldr	r2, [fp, #-152]
	lsl	r2, r2, #2
	add	r2, r1, r2
	ldr	r1, [r2]
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	mov	r3, #1
	str	r3, [fp, #-148]
	b	.L35
.L36:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-148]
	sub	r3, r3, #-536870911
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	ip, [fp, #-156]
	lsl	ip, ip, #2
	ldr	lr, [fp, #-92]
	add	ip, lr, ip
	ldr	lr, [ip]
	ldr	ip, [fp, #-152]
	lsl	ip, ip, #2
	add	ip, lr, ip
	ldr	lr, [ip]
	ldr	ip, [fp, #-148]
	lsl	ip, ip, #3
	add	r4, lr, ip
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	str	r3, [fp, #-148]
.L35:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-148]
	cmp	r2, r3
	bcc	.L36
.L34:
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L33:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	bcc	.L37
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L32:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-132]
	cmp	r2, r3
	bcc	.L38
	mvn	r2, #0
	ldr	r3, .L109+72
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r1, .L109+4
	ldr	r0, .L109+76
	bl	fopen
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L39
.L48:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-84]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L40
.L47:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r1, r3, #3
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-148]
	b	.L41
.L45:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L109+64
	ldr	r0, [fp, #-88]
	bl	__isoc99_fscanf
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmn	r3, #1
	bne	.L42
	ldr	r0, .L109+80
	bl	puts
.L42:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L43
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
.L43:
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	str	r3, [fp, #-148]
.L41:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-148]
	cmp	r2, r3
	bcc	.L45
	ldr	r1, .L109+56
	ldr	r0, [fp, #-88]
	bl	__isoc99_fscanf
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmn	r3, #1
	bne	.L46
	ldr	r0, .L109+80
	bl	puts
.L46:
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L40:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	bcc	.L47
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L39:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-132]
	cmp	r2, r3
	bcc	.L48
	ldr	r0, [fp, #-88]
	bl	fclose
	ldr	r3, .L109+84
	str	r3, [fp, #-80]
	mov	r3, #200
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #4
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L49
.L50:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-72]
	add	r1, r2, r3
	mov	r2, #0
	mov	r3, #0
	str	r2, [r1, #8]
	str	r3, [r1, #12]
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L49:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	bcc	.L50
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L108
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L53
.L108:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
.L53:
	ldr	r3, [fp, #-164]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L54
.L57:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-120]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r1, r3, #3
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L55
.L56:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #3
	add	r1, r2, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L55:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-120]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	bcc	.L56
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L54:
	ldr	r3, [fp, #-164]
	ldr	r2, [fp, #-156]
	cmp	r2, r3
	bcc	.L57
	ldr	r3, [fp, #-164]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L58
.L61:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-120]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r1, r3, #3
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L59
.L60:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #3
	add	r1, r2, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L59:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-120]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	bcc	.L60
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L58:
	ldr	r3, [fp, #-164]
	ldr	r2, [fp, #-156]
	cmp	r2, r3
	bcc	.L61
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L62
.L65:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r1, r3, #3
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L63
.L64:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-156]
	lsl	r1, r1, #2
	ldr	r0, [fp, #-60]
	add	r1, r0, r1
	ldr	r0, [r1]
	ldr	r1, [fp, #-152]
	lsl	r1, r1, #3
	add	r4, r0, r1
	mov	r0, #0
	ldr	r1, .L109+88
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L63:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	bcc	.L64
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L62:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-132]
	cmp	r2, r3
	bcc	.L65
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L66
.L110:
	.align	2
.L109:
	.word	.LC25
	.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
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	2146435071
	.word	.LC17
	.word	.LC18
	.word	10000
	.word	1072693248
	.word	.LC19
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC2
	.word	.LC20
	.word	.LC25
.L69:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r1, r3, #3
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L67
.L68:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-156]
	lsl	r1, r1, #2
	ldr	r0, [fp, #-56]
	add	r1, r0, r1
	ldr	r0, [r1]
	ldr	r1, [fp, #-152]
	lsl	r1, r1, #3
	add	r4, r0, r1
	mov	r0, #0
	ldr	r1, .L109+88
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L67:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	bcc	.L68
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L66:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-132]
	cmp	r2, r3
	bcc	.L69
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L70
.L73:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r1, r3, #3
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-156]
	lsl	r2, r2, #2
	ldr	r1, [fp, #-52]
	add	r2, r1, r2
	ldr	r1, [r2]
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	mov	r3, #1
	str	r3, [fp, #-152]
	b	.L71
.L72:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	sub	r3, r3, #-536870911
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	ip, [fp, #-156]
	lsl	ip, ip, #2
	ldr	lr, [fp, #-52]
	add	ip, lr, ip
	ldr	lr, [ip]
	ldr	ip, [fp, #-152]
	lsl	ip, ip, #3
	add	r4, lr, ip
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L71:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	bcc	.L72
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L70:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-132]
	cmp	r2, r3
	bcc	.L73
	mov	r2, #0
	ldr	r3, .L109+88
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r0, #0
	bl	srand
	ldr	r0, .L109+92
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L74
.L77:
	ldr	r1, [fp, #-156]
	ldr	r0, .L109+112
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L75
.L76:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, .L109+116
	bl	printf
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L75:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	bcc	.L76
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L74:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-132]
	cmp	r2, r3
	bcc	.L77
	ldr	r0, .L109+96
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L78
.L81:
	ldr	r1, [fp, #-156]
	ldr	r0, .L109+112
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L79
.L80:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, .L109+116
	bl	printf
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L79:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	bcc	.L80
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L78:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-132]
	cmp	r2, r3
	bcc	.L81
	ldr	r0, .L109+100
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L82
.L85:
	ldr	r1, [fp, #-156]
	ldr	r0, .L109+112
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L83
.L84:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, .L109+116
	bl	printf
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L83:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	bcc	.L84
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L82:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-132]
	cmp	r2, r3
	bcc	.L85
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L86
.L87:
	ldr	r3, [fp, #-72]
	str	r3, [sp, #24]
	ldr	r3, [fp, #-52]
	str	r3, [sp, #20]
	ldr	r3, [fp, #-56]
	str	r3, [sp, #16]
	ldr	r3, [fp, #-76]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-84]
	str	r3, [sp, #8]
	ldr	r3, [fp, #-92]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-96]
	str	r3, [sp]
	ldr	r3, [fp, #-104]
	ldr	r2, [fp, #-112]
	ldr	r1, [fp, #-124]
	ldr	r0, [fp, #-132]
	bl	GenerateEpisode
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	str	r3, [sp, #20]
	ldr	r3, [fp, #-72]
	str	r3, [sp, #16]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-56]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-60]
	str	r3, [sp]
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-68]
	ldr	r1, [fp, #-124]
	ldr	r0, [fp, #-132]
	bl	LoopThroughEpisodeInReverse
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L86:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	bcc	.L87
	ldr	r0, .L109+104
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L88
.L91:
	ldr	r1, [fp, #-156]
	ldr	r0, .L109+112
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L89
.L90:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, .L109+116
	bl	printf
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L89:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	bcc	.L90
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L88:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-132]
	cmp	r2, r3
	bcc	.L91
	ldr	r0, .L109+108
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L92
.L95:
	ldr	r1, [fp, #-156]
	ldr	r0, .L109+112
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L93
.L94:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, .L109+116
	bl	printf
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L93:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	bcc	.L94
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L92:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-132]
	cmp	r2, r3
	bcc	.L95
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L96
.L97:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L96:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-132]
	cmp	r2, r3
	bcc	.L97
	ldr	r0, [fp, #-52]
	bl	free
	ldr	r0, [fp, #-56]
	bl	free
	ldr	r0, [fp, #-60]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L98
.L99:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L98:
	ldr	r3, [fp, #-164]
	ldr	r2, [fp, #-156]
	cmp	r2, r3
	bcc	.L99
	ldr	r0, [fp, #-64]
	bl	free
	ldr	r0, [fp, #-68]
	bl	free
	ldr	r0, [fp, #-72]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L100
.L103:
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L101
.L102:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-104]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L101:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	bcc	.L102
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-104]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L100:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-132]
	cmp	r2, r3
	bcc	.L103
	ldr	r0, [fp, #-84]
	bl	free
	ldr	r0, [fp, #-92]
	bl	free
	ldr	r0, [fp, #-96]
	bl	free
	ldr	r0, [fp, #-104]
	bl	free
	ldr	r0, [fp, #-112]
	bl	free
	ldr	r0, [fp, #-120]
	bl	free
	ldr	r0, [fp, #-124]
	bl	free
	mov	r3, #0
	ldr	r2, .L109+120
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L105
	bl	__stack_chk_fail
.L105:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	main, .-main
	.global	__aeabi_uidivmod
	.global	__aeabi_dcmple
	.align	2
	.global	GenerateEpisode
	.syntax unified
	.arm
	.fpu softvfp
	.type	GenerateEpisode, %function
GenerateEpisode:
	@ args = 28, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	bl	rand
	mov	r3, r0
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	str	r3, [fp, #-24]
	b	.L112
.L124:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #4
	ldr	r2, [fp, #28]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	bl	UnifRand
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L113
.L117:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L128
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-20]
	b	.L116
.L128:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L113:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bcc	.L117
.L116:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #4
	ldr	r2, [fp, #28]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	str	r2, [r3, #4]
	bl	UnifRand
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L118
.L122:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L129
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	b	.L121
.L129:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L118:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bcc	.L122
.L121:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #12]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	lsl	r2, r2, #4
	ldr	r1, [fp, #28]
	add	r1, r1, r2
	ldmia	r3, {r2-r3}
	str	r2, [r1, #8]
	str	r3, [r1, #12]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bcs	.L130
.L112:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #16]
	cmp	r2, r3
	bcc	.L124
	b	.L123
.L130:
	nop
.L123:
	ldr	r3, [fp, #-28]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	GenerateEpisode, .-GenerateEpisode
	.global	__aeabi_dsub
	.align	2
	.global	GreedyPolicyFromStateActionFunction
	.syntax unified
	.arm
	.fpu softvfp
	.type	GreedyPolicyFromStateActionFunction, %function
GreedyPolicyFromStateActionFunction:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #40
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	str	r3, [fp, #-60]
	mov	r3, #1
	str	r3, [fp, #-40]
	mvn	r2, #0
	mvn	r3, #1048576
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #0
	ldr	r3, .L149
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L132
.L137:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	bic	r7, r3, #-2147483648
	ldr	r3, .L149+4
	ldmia	r3, {r2-r3}
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L147
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	b	.L135
.L147:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L135
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r3, #1
	str	r3, [fp, #-40]
.L135:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L132:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	bcc	.L137
	ldr	r0, [fp, #-40]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L149
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L138
.L142:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	bic	r5, r3, #-2147483648
	ldr	r3, .L149+4
	ldmia	r3, {r2-r3}
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L148
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r1, r2, r3
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	b	.L141
.L148:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r1, r2, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
.L141:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L138:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	bcc	.L142
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L150:
	.align	2
.L149:
	.word	1072693248
	.word	EPS
	.size	GreedyPolicyFromStateActionFunction, .-GreedyPolicyFromStateActionFunction
	.global	__aeabi_dmul
	.global	__aeabi_dcmpeq
	.align	2
	.global	LoopThroughEpisodeInReverse
	.syntax unified
	.arm
	.fpu softvfp
	.type	LoopThroughEpisodeInReverse, %function
LoopThroughEpisodeInReverse:
	@ args = 24, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #56
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	str	r2, [fp, #-72]
	str	r3, [fp, #-76]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r2, #0
	ldr	r3, .L167
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #24]
	sub	r3, r3, #1
	str	r3, [fp, #-56]
	b	.L152
.L161:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #4
	ldr	r2, [fp, #20]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #4
	ldr	r2, [fp, #20]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-48]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	add	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #4
	ldr	r2, [fp, #20]
	add	r3, r2, r3
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	add	r4, r2, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L153
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r4-r5}
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-76]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	add	r6, r2, r3
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r6, {r2-r3}
.L153:
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-52]
	ldr	r1, [fp, #-72]
	ldr	r0, [fp, #-68]
	bl	GreedyPolicyFromStateActionFunction
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #4]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L166
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L165
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L160
.L165:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #8]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
.L160:
	ldr	r3, [fp, #-56]
	sub	r3, r3, #1
	str	r3, [fp, #-56]
.L152:
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bge	.L161
	b	.L157
.L166:
	nop
.L157:
	nop
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L168:
	.align	2
.L167:
	.word	1072693248
	.size	LoopThroughEpisodeInReverse, .-LoopThroughEpisodeInReverse
	.global	__aeabi_i2d
	.align	2
	.global	UnifRand
	.syntax unified
	.arm
	.fpu softvfp
	.type	UnifRand, %function
UnifRand:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L171
	ldr	r3, .L171+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	pop	{fp, pc}
.L172:
	.align	2
.L171:
	.word	-4194304
	.word	1105199103
	.size	UnifRand, .-UnifRand
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
