	.file	"21862.c"
	.intel_syntax noprefix
	.text
	.local	params
	.comm	params,224,32
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter the number of dimensions:  "
.LC1:
	.string	"%d"
.LC2:
	.string	"Enter size of dimension %d:  "
	.align 8
.LC3:
	.string	"Enter number of links in dimension %d:  "
	.align 8
.LC4:
	.string	"Enter number of nodes attached to each router:  "
	.align 8
.LC5:
	.string	"Enter Link Bandwidth  (ie:  1GHz):  "
.LC6:
	.string	"%s"
	.align 8
.LC7:
	.string	"Enter Link Latency  (ie:  10ns):  "
	.align 8
.LC8:
	.string	"Enter Xbar Bandwidth  (ie:  1GHz):  "
	.text
	.globl	collect_parameters
	.type	collect_parameters, @function
collect_parameters:
.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	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, params[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	eax, DWORD PTR params[rip]
	cdqe
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR params[rip+8], rax
	mov	eax, DWORD PTR params[rip]
	cdqe
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR params[rip+16], rax
	mov	DWORD PTR params[rip+28], 1
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -4[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rdx, QWORD PTR params[rip+8]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -4[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rdx, QWORD PTR params[rip+16]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	edx, DWORD PTR params[rip+28]
	mov	rcx, QWORD PTR params[rip+8]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	imul	eax, edx
	mov	DWORD PTR params[rip+28], eax
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR params[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 48
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, params[rip+24]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	edx, DWORD PTR params[rip+28]
	mov	eax, DWORD PTR params[rip+24]
	imul	eax, edx
	mov	DWORD PTR params[rip+28], eax
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 36
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, params[rip+32]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, params[rip+96]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 36
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, params[rip+160]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	collect_parameters, .-collect_parameters
	.globl	idToLoc
	.type	idToLoc, @function
idToLoc:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, DWORD PTR params[rip]
	sub	eax, 1
	mov	DWORD PTR -16[rbp], eax
	jmp	.L6
.L9:
	mov	DWORD PTR -12[rbp], 1
	mov	DWORD PTR -8[rbp], 0
	jmp	.L7
.L8:
	mov	rdx, QWORD PTR params[rip+8]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -12[rbp]
	imul	eax, edx
	mov	DWORD PTR -12[rbp], eax
	add	DWORD PTR -8[rbp], 1
.L7:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jl	.L8
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -12[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, DWORD PTR -12[rbp]
	sub	DWORD PTR -20[rbp], eax
	sub	DWORD PTR -16[rbp], 1
.L6:
	cmp	DWORD PTR -16[rbp], 0
	jg	.L9
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	idToLoc, .-idToLoc
	.section	.rodata
.LC9:
	.string	"x%d"
	.text
	.globl	formatLoc
	.type	formatLoc, @function
formatLoc:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	cdqe
	add	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 1
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	cdqe
	add	QWORD PTR -8[rbp], rax
	add	DWORD PTR -12[rbp], 1
.L11:
	mov	eax, DWORD PTR params[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L12
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	formatLoc, .-formatLoc
	.section	.rodata
.LC10:
	.string	"10ns"
.LC11:
	.string	"Parameter collection failed!\n"
.LC12:
	.string	"<?xml version=\"1.0\"?>\n"
.LC13:
	.string	"\n<sdl version=\"2.0\"/>\n"
.LC14:
	.string	"<config>\n"
.LC15:
	.string	"    run-mode=both\n"
.LC16:
	.string	"</config>\n"
.LC17:
	.string	"<param_include>\n"
.LC18:
	.string	"  <rtr_params>\n"
.LC19:
	.string	"    <debug> 0 </debug>\n"
	.align 8
.LC20:
	.string	"    <num_ports> %d </num_ports>\n"
.LC21:
	.string	"    <num_vcs> 2 </num_vcs>\n"
.LC22:
	.string	"    <link_bw> %s </link_bw>\n"
.LC23:
	.string	"    <xbar_bw> %s </xbar_bw>\n"
	.align 8
.LC24:
	.string	"    <topology> torus </topology>\n"
.LC25:
	.string	"    <torus:shape> %d"
.LC26:
	.string	" </torus:shape>\n"
.LC27:
	.string	"    <torus:width> %d"
.LC28:
	.string	" </torus:width>\n"
	.align 8
.LC29:
	.string	"    <torus:local_ports> %d </torus:local_ports>\n"
.LC30:
	.string	"  </rtr_params>\n"
.LC31:
	.string	"  <nic_params>\n"
	.align 8
.LC32:
	.string	"    <num_peers> %d </num_peers>\n"
.LC33:
	.string	"  </nic_params>\n"
.LC34:
	.string	"</param_include>\n"
.LC35:
	.string	"<sst>\n"
	.align 8
.LC36:
	.string	"  <component name=rtr.%s type=merlin.hr_router>\n"
	.align 8
.LC37:
	.string	"    <params include=rtr_params>\n"
.LC38:
	.string	"      <id> %d </id>\n"
.LC39:
	.string	"    </params>\n"
	.align 8
.LC40:
	.string	"    <link name=link.%s:%s:%d port=port%d latency=%s />\n"
	.align 8
.LC41:
	.string	"    <link name=nic.%d:%d port=port%d latency=%s />\n"
.LC42:
	.string	"  </component>\n"
	.align 8
.LC43:
	.string	"  <component name=nic.%s-%d type=merlin.test_nic>\n"
	.align 8
.LC44:
	.string	"    <params include=nic_params>\n"
	.align 8
.LC45:
	.string	"    <link name=nic.%d:%d port=rtr latency=%s />\n"
.LC46:
	.string	"</sst>\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 640
	mov	DWORD PTR -628[rbp], edi
	mov	QWORD PTR -640[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC10[rip]
	mov	QWORD PTR -568[rbp], rax
	mov	rax, QWORD PTR stdout[rip]
	mov	QWORD PTR -560[rbp], rax
	mov	rax, QWORD PTR stdin[rip]
	mov	QWORD PTR -552[rbp], rax
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	collect_parameters
	test	eax, eax
	je	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L15
.L14:
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 9
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 10
	mov	esi, 1
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	DWORD PTR -620[rbp], 0
	mov	DWORD PTR -616[rbp], 0
	jmp	.L16
.L17:
	mov	rdx, QWORD PTR params[rip+16]
	mov	eax, DWORD PTR -616[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	eax, eax
	add	DWORD PTR -620[rbp], eax
	add	DWORD PTR -616[rbp], 1
.L16:
	mov	eax, DWORD PTR params[rip]
	cmp	DWORD PTR -616[rbp], eax
	jl	.L17
	mov	edx, DWORD PTR params[rip+24]
	mov	eax, DWORD PTR -620[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -560[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC21[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -560[rbp]
	lea	rdx, params[rip+32]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -560[rbp]
	lea	rdx, params[rip+160]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC24[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR params[rip+8]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -560[rbp]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -612[rbp], 1
	jmp	.L18
.L19:
	mov	rdx, QWORD PTR params[rip+8]
	mov	eax, DWORD PTR -612[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -560[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -612[rbp], 1
.L18:
	mov	eax, DWORD PTR params[rip]
	cmp	DWORD PTR -612[rbp], eax
	jl	.L19
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC26[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR params[rip+16]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -560[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -608[rbp], 1
	jmp	.L20
.L21:
	mov	rdx, QWORD PTR params[rip+16]
	mov	eax, DWORD PTR -608[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -560[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -608[rbp], 1
.L20:
	mov	eax, DWORD PTR params[rip]
	cmp	DWORD PTR -608[rbp], eax
	jl	.L21
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC28[rip]
	call	fwrite@PLT
	mov	edx, DWORD PTR params[rip+24]
	mov	rax, QWORD PTR -560[rbp]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC30[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC31[rip]
	call	fwrite@PLT
	mov	edx, DWORD PTR params[rip+28]
	mov	rax, QWORD PTR -560[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC21[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -560[rbp]
	lea	rdx, params[rip+32]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC33[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC34[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC35[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR params[rip+28]
	mov	ecx, DWORD PTR params[rip+24]
	cdq
	idiv	ecx
	mov	DWORD PTR -576[rbp], eax
	mov	eax, DWORD PTR params[rip]
	cdqe
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -544[rbp], rax
	mov	eax, DWORD PTR params[rip]
	cdqe
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -536[rbp], rax
	mov	DWORD PTR -604[rbp], 0
	jmp	.L22
.L33:
	mov	rdx, QWORD PTR -544[rbp]
	mov	eax, DWORD PTR -604[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	idToLoc
	lea	rdx, -528[rbp]
	mov	rax, QWORD PTR -544[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	formatLoc
	lea	rdx, -528[rbp]
	mov	rax, QWORD PTR -560[rbp]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC37[rip]
	call	fwrite@PLT
	mov	edx, DWORD PTR -604[rbp]
	mov	rax, QWORD PTR -560[rbp]
	lea	rsi, .LC38[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC39[rip]
	call	fwrite@PLT
	mov	DWORD PTR -600[rbp], 0
	mov	DWORD PTR -596[rbp], 0
	jmp	.L23
.L28:
	mov	eax, DWORD PTR params[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rcx, QWORD PTR -544[rbp]
	mov	rax, QWORD PTR -536[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -596[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -544[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	eax, 1
	mov	rcx, QWORD PTR params[rip+8]
	mov	edx, DWORD PTR -596[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	esi, DWORD PTR [rdx]
	mov	edx, DWORD PTR -596[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -536[rbp]
	add	rcx, rdx
	cdq
	idiv	esi
	mov	eax, edx
	mov	DWORD PTR [rcx], eax
	lea	rdx, -272[rbp]
	mov	rax, QWORD PTR -536[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	formatLoc
	mov	DWORD PTR -592[rbp], 0
	jmp	.L24
.L25:
	mov	eax, DWORD PTR -600[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -600[rbp], edx
	mov	r8d, DWORD PTR -592[rbp]
	lea	rcx, -272[rbp]
	lea	rdx, -528[rbp]
	mov	rdi, QWORD PTR -560[rbp]
	sub	rsp, 8
	lea	rsi, params[rip+96]
	push	rsi
	mov	r9d, eax
	lea	rsi, .LC40[rip]
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	add	DWORD PTR -592[rbp], 1
.L24:
	mov	rdx, QWORD PTR params[rip+16]
	mov	eax, DWORD PTR -596[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -592[rbp], eax
	jl	.L25
	mov	eax, DWORD PTR -596[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -544[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	lea	ecx, -1[rax]
	mov	rdx, QWORD PTR params[rip+8]
	mov	eax, DWORD PTR -596[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	add	eax, ecx
	mov	rcx, QWORD PTR params[rip+8]
	mov	edx, DWORD PTR -596[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	esi, DWORD PTR [rdx]
	mov	edx, DWORD PTR -596[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -536[rbp]
	add	rcx, rdx
	cdq
	idiv	esi
	mov	eax, edx
	mov	DWORD PTR [rcx], eax
	lea	rdx, -272[rbp]
	mov	rax, QWORD PTR -536[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	formatLoc
	mov	DWORD PTR -588[rbp], 0
	jmp	.L26
.L27:
	mov	eax, DWORD PTR -600[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -600[rbp], edx
	mov	r8d, DWORD PTR -588[rbp]
	lea	rcx, -528[rbp]
	lea	rdx, -272[rbp]
	mov	rdi, QWORD PTR -560[rbp]
	sub	rsp, 8
	lea	rsi, params[rip+96]
	push	rsi
	mov	r9d, eax
	lea	rsi, .LC40[rip]
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	add	DWORD PTR -588[rbp], 1
.L26:
	mov	rdx, QWORD PTR params[rip+16]
	mov	eax, DWORD PTR -596[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -588[rbp], eax
	jl	.L27
	add	DWORD PTR -596[rbp], 1
.L23:
	mov	eax, DWORD PTR params[rip]
	cmp	DWORD PTR -596[rbp], eax
	jl	.L28
	mov	DWORD PTR -584[rbp], 0
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -600[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -600[rbp], edx
	mov	ecx, DWORD PTR -584[rbp]
	mov	edx, DWORD PTR -604[rbp]
	mov	rdi, QWORD PTR -560[rbp]
	lea	r9, params[rip+96]
	mov	r8d, eax
	lea	rsi, .LC41[rip]
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -584[rbp], 1
.L29:
	mov	eax, DWORD PTR params[rip+24]
	cmp	DWORD PTR -584[rbp], eax
	jl	.L30
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC42[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	DWORD PTR -580[rbp], 0
	jmp	.L31
.L32:
	mov	eax, DWORD PTR params[rip+24]
	imul	eax, DWORD PTR -604[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -580[rbp]
	add	eax, edx
	mov	DWORD PTR -572[rbp], eax
	mov	ecx, DWORD PTR -580[rbp]
	lea	rdx, -528[rbp]
	mov	rax, QWORD PTR -560[rbp]
	lea	rsi, .LC43[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC44[rip]
	call	fwrite@PLT
	mov	edx, DWORD PTR -572[rbp]
	mov	rax, QWORD PTR -560[rbp]
	lea	rsi, .LC38[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC39[rip]
	call	fwrite@PLT
	mov	ecx, DWORD PTR -580[rbp]
	mov	edx, DWORD PTR -604[rbp]
	mov	rax, QWORD PTR -560[rbp]
	lea	r8, params[rip+96]
	lea	rsi, .LC45[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC42[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	add	DWORD PTR -580[rbp], 1
.L31:
	mov	eax, DWORD PTR params[rip+24]
	cmp	DWORD PTR -580[rbp], eax
	jl	.L32
	add	DWORD PTR -604[rbp], 1
.L22:
	mov	eax, DWORD PTR -604[rbp]
	cmp	eax, DWORD PTR -576[rbp]
	jl	.L33
	mov	rax, QWORD PTR -560[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR -560[rbp]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC46[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -544[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L15:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"21862.c"
	.text
	.local	params
	.comm	params,212,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter the number of dimensions:  \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Enter size of dimension %d:  \000"
	.align	2
.LC3:
	.ascii	"Enter number of links in dimension %d:  \000"
	.align	2
.LC4:
	.ascii	"Enter number of nodes attached to each router:  \000"
	.align	2
.LC5:
	.ascii	"Enter Link Bandwidth  (ie:  1GHz):  \000"
	.align	2
.LC6:
	.ascii	"%s\000"
	.align	2
.LC7:
	.ascii	"Enter Link Latency  (ie:  10ns):  \000"
	.align	2
.LC8:
	.ascii	"Enter Xbar Bandwidth  (ie:  1GHz):  \000"
	.text
	.align	2
	.global	collect_parameters
	.syntax unified
	.arm
	.fpu softvfp
	.type	collect_parameters, %function
collect_parameters:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L5
	ldr	r3, [r3]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L5+4
	bl	fwrite
	ldr	r2, .L5+8
	ldr	r1, .L5+12
	ldr	r0, [fp, #-16]
	bl	__isoc99_fscanf
	ldr	r3, .L5+8
	ldr	r3, [r3]
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L5+8
	str	r2, [r3, #4]
	ldr	r3, .L5+8
	ldr	r3, [r3]
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L5+8
	str	r2, [r3, #8]
	ldr	r3, .L5+8
	mov	r2, #1
	str	r2, [r3, #16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, .L5
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L5+16
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L5+8
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L5+12
	ldr	r0, [fp, #-16]
	bl	__isoc99_fscanf
	ldr	r3, .L5
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L5+20
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L5+8
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L5+12
	ldr	r0, [fp, #-16]
	bl	__isoc99_fscanf
	ldr	r3, .L5+8
	ldr	r3, [r3, #16]
	ldr	r2, .L5+8
	ldr	r1, [r2, #4]
	ldr	r2, [fp, #-8]
	lsl	r2, r2, #2
	add	r2, r1, r2
	ldr	r2, [r2]
	mul	r3, r2, r3
	ldr	r2, .L5+8
	str	r3, [r2, #16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, .L5+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L3
	ldr	r3, .L5
	ldr	r3, [r3]
	mov	r2, #48
	mov	r1, #1
	ldr	r0, .L5+24
	bl	fwrite
	ldr	r2, .L5+28
	ldr	r1, .L5+12
	ldr	r0, [fp, #-16]
	bl	__isoc99_fscanf
	ldr	r3, .L5+8
	ldr	r3, [r3, #16]
	ldr	r2, .L5+8
	ldr	r2, [r2, #12]
	mul	r3, r2, r3
	ldr	r2, .L5+8
	str	r3, [r2, #16]
	ldr	r3, .L5
	ldr	r3, [r3]
	mov	r2, #36
	mov	r1, #1
	ldr	r0, .L5+32
	bl	fwrite
	ldr	r2, .L5+36
	ldr	r1, .L5+40
	ldr	r0, [fp, #-16]
	bl	__isoc99_fscanf
	ldr	r3, .L5
	ldr	r3, [r3]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L5+44
	bl	fwrite
	ldr	r2, .L5+48
	ldr	r1, .L5+40
	ldr	r0, [fp, #-16]
	bl	__isoc99_fscanf
	ldr	r3, .L5
	ldr	r3, [r3]
	mov	r2, #36
	mov	r1, #1
	ldr	r0, .L5+52
	bl	fwrite
	ldr	r2, .L5+56
	ldr	r1, .L5+40
	ldr	r0, [fp, #-16]
	bl	__isoc99_fscanf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	stderr
	.word	.LC0
	.word	params
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	params+12
	.word	.LC5
	.word	params+20
	.word	.LC6
	.word	.LC7
	.word	params+84
	.word	.LC8
	.word	params+148
	.size	collect_parameters, .-collect_parameters
	.global	__aeabi_idiv
	.align	2
	.global	idToLoc
	.syntax unified
	.arm
	.fpu softvfp
	.type	idToLoc, %function
idToLoc:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L12
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L8
.L11:
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L9
.L10:
	ldr	r3, .L12
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	mul	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L9:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L10
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	ldr	r2, [fp, #-24]
	sub	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
.L8:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bgt	.L11
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	params
	.size	idToLoc, .-idToLoc
	.section	.rodata
	.align	2
.LC9:
	.ascii	"x%d\000"
	.text
	.align	2
	.global	formatLoc
	.syntax unified
	.arm
	.fpu softvfp
	.type	formatLoc, %function
formatLoc:
	@ 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, [fp, #-20]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L17
	ldr	r0, [fp, #-20]
	bl	sprintf
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L15
.L16:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L17+4
	ldr	r0, [fp, #-12]
	bl	sprintf
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L15:
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L16
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC1
	.word	.LC9
	.word	params
	.size	formatLoc, .-formatLoc
	.section	.rodata
	.align	2
.LC10:
	.ascii	"10ns\000"
	.align	2
.LC11:
	.ascii	"Parameter collection failed!\012\000"
	.align	2
.LC12:
	.ascii	"<?xml version=\"1.0\"?>\012\000"
	.align	2
.LC13:
	.ascii	"\012<sdl version=\"2.0\"/>\012\000"
	.align	2
.LC14:
	.ascii	"<config>\012\000"
	.align	2
.LC15:
	.ascii	"    run-mode=both\012\000"
	.align	2
.LC16:
	.ascii	"</config>\012\000"
	.align	2
.LC17:
	.ascii	"<param_include>\012\000"
	.align	2
.LC18:
	.ascii	"  <rtr_params>\012\000"
	.align	2
.LC19:
	.ascii	"    <debug> 0 </debug>\012\000"
	.align	2
.LC20:
	.ascii	"    <num_ports> %d </num_ports>\012\000"
	.align	2
.LC21:
	.ascii	"    <num_vcs> 2 </num_vcs>\012\000"
	.align	2
.LC22:
	.ascii	"    <link_bw> %s </link_bw>\012\000"
	.align	2
.LC23:
	.ascii	"    <xbar_bw> %s </xbar_bw>\012\000"
	.align	2
.LC24:
	.ascii	"    <topology> torus </topology>\012\000"
	.align	2
.LC25:
	.ascii	"    <torus:shape> %d\000"
	.align	2
.LC26:
	.ascii	" </torus:shape>\012\000"
	.align	2
.LC27:
	.ascii	"    <torus:width> %d\000"
	.align	2
.LC28:
	.ascii	" </torus:width>\012\000"
	.align	2
.LC29:
	.ascii	"    <torus:local_ports> %d </torus:local_ports>\012"
	.ascii	"\000"
	.align	2
.LC30:
	.ascii	"  </rtr_params>\012\000"
	.align	2
.LC31:
	.ascii	"  <nic_params>\012\000"
	.align	2
.LC32:
	.ascii	"    <num_peers> %d </num_peers>\012\000"
	.align	2
.LC33:
	.ascii	"  </nic_params>\012\000"
	.align	2
.LC34:
	.ascii	"</param_include>\012\000"
	.align	2
.LC35:
	.ascii	"<sst>\012\000"
	.align	2
.LC36:
	.ascii	"  <component name=rtr.%s type=merlin.hr_router>\012"
	.ascii	"\000"
	.align	2
.LC37:
	.ascii	"    <params include=rtr_params>\012\000"
	.align	2
.LC38:
	.ascii	"      <id> %d </id>\012\000"
	.align	2
.LC39:
	.ascii	"    </params>\012\000"
	.global	__aeabi_idivmod
	.align	2
.LC40:
	.ascii	"    <link name=link.%s:%s:%d port=port%d latency=%s"
	.ascii	" />\012\000"
	.align	2
.LC41:
	.ascii	"    <link name=nic.%d:%d port=port%d latency=%s />\012"
	.ascii	"\000"
	.align	2
.LC42:
	.ascii	"  </component>\012\000"
	.align	2
.LC43:
	.ascii	"  <component name=nic.%s-%d type=merlin.test_nic>\012"
	.ascii	"\000"
	.align	2
.LC44:
	.ascii	"    <params include=nic_params>\012\000"
	.align	2
.LC45:
	.ascii	"    <link name=nic.%d:%d port=rtr latency=%s />\012"
	.ascii	"\000"
	.align	2
.LC46:
	.ascii	"</sst>\012\000"
	.align	2
.LC47:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 600
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #620
	str	r0, [fp, #-608]
	str	r1, [fp, #-612]
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L41+4
	str	r3, [fp, #-556]
	ldr	r3, .L41+8
	ldr	r3, [r3]
	str	r3, [fp, #-552]
	ldr	r3, .L41+12
	ldr	r3, [r3]
	str	r3, [fp, #-548]
	ldr	r0, [fp, #-548]
	bl	collect_parameters
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L41+16
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L41+20
	bl	fwrite
	mov	r3, #1
	b	.L21
.L20:
	ldr	r3, [fp, #-552]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L41+24
	bl	fwrite
	ldr	r3, [fp, #-552]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L41+28
	bl	fwrite
	ldr	r1, [fp, #-552]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-552]
	mov	r2, #9
	mov	r1, #1
	ldr	r0, .L41+32
	bl	fwrite
	ldr	r3, [fp, #-552]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L41+36
	bl	fwrite
	ldr	r3, [fp, #-552]
	mov	r2, #10
	mov	r1, #1
	ldr	r0, .L41+40
	bl	fwrite
	ldr	r1, [fp, #-552]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-552]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L41+44
	bl	fwrite
	ldr	r3, [fp, #-552]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L41+48
	bl	fwrite
	ldr	r3, [fp, #-552]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L41+52
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-600]
	mov	r3, #0
	str	r3, [fp, #-596]
	b	.L22
.L23:
	ldr	r3, .L41+56
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-596]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-600]
	add	r3, r2, r3
	str	r3, [fp, #-600]
	ldr	r3, [fp, #-596]
	add	r3, r3, #1
	str	r3, [fp, #-596]
.L22:
	ldr	r3, .L41+56
	ldr	r3, [r3]
	ldr	r2, [fp, #-596]
	cmp	r2, r3
	blt	.L23
	ldr	r3, .L41+56
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-600]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L41+60
	ldr	r0, [fp, #-552]
	bl	fprintf
	ldr	r3, [fp, #-552]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L41+64
	bl	fwrite
	ldr	r2, .L41+68
	ldr	r1, .L41+72
	ldr	r0, [fp, #-552]
	bl	fprintf
	ldr	r2, .L41+76
	ldr	r1, .L41+80
	ldr	r0, [fp, #-552]
	bl	fprintf
	ldr	r3, [fp, #-552]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L41+84
	bl	fwrite
	ldr	r3, .L41+56
	ldr	r3, [r3, #4]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L41+88
	ldr	r0, [fp, #-552]
	bl	fprintf
	mov	r3, #1
	str	r3, [fp, #-592]
	b	.L24
.L25:
	ldr	r3, .L41+56
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-592]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L41+92
	ldr	r0, [fp, #-552]
	bl	fprintf
	ldr	r3, [fp, #-592]
	add	r3, r3, #1
	str	r3, [fp, #-592]
.L24:
	ldr	r3, .L41+56
	ldr	r3, [r3]
	ldr	r2, [fp, #-592]
	cmp	r2, r3
	blt	.L25
	ldr	r3, [fp, #-552]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L41+96
	bl	fwrite
	ldr	r3, .L41+56
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L41+100
	ldr	r0, [fp, #-552]
	bl	fprintf
	mov	r3, #1
	str	r3, [fp, #-588]
	b	.L26
.L27:
	ldr	r3, .L41+56
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-588]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L41+92
	ldr	r0, [fp, #-552]
	bl	fprintf
	ldr	r3, [fp, #-588]
	add	r3, r3, #1
	str	r3, [fp, #-588]
.L26:
	ldr	r3, .L41+56
	ldr	r3, [r3]
	ldr	r2, [fp, #-588]
	cmp	r2, r3
	blt	.L27
	ldr	r3, [fp, #-552]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L41+104
	bl	fwrite
	ldr	r3, .L41+56
	ldr	r3, [r3, #12]
	mov	r2, r3
	ldr	r1, .L41+108
	ldr	r0, [fp, #-552]
	bl	fprintf
	ldr	r3, [fp, #-552]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L41+112
	bl	fwrite
	ldr	r1, [fp, #-552]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-552]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L41+116
	bl	fwrite
	ldr	r3, .L41+56
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r1, .L41+120
	ldr	r0, [fp, #-552]
	bl	fprintf
	ldr	r3, [fp, #-552]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L41+64
	bl	fwrite
	ldr	r2, .L41+68
	ldr	r1, .L41+72
	ldr	r0, [fp, #-552]
	bl	fprintf
	ldr	r3, [fp, #-552]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L41+124
	bl	fwrite
	ldr	r1, [fp, #-552]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-552]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L41+128
	bl	fwrite
	ldr	r1, [fp, #-552]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-552]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L41+132
	bl	fwrite
	ldr	r3, .L41+56
	ldr	r3, [r3, #16]
	ldr	r2, .L41+56
	ldr	r2, [r2, #12]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-544]
	ldr	r3, .L41+56
	ldr	r3, [r3]
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-540]
	ldr	r3, .L41+56
	ldr	r3, [r3]
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-536]
	mov	r3, #0
	str	r3, [fp, #-584]
	b	.L28
.L39:
	ldr	r1, [fp, #-540]
	ldr	r0, [fp, #-584]
	bl	idToLoc
	sub	r3, fp, #528
	mov	r1, r3
	ldr	r0, [fp, #-540]
	bl	formatLoc
	sub	r3, fp, #528
	mov	r2, r3
	ldr	r1, .L41+136
	ldr	r0, [fp, #-552]
	bl	fprintf
	ldr	r3, [fp, #-552]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L41+140
	bl	fwrite
	ldr	r2, [fp, #-584]
	ldr	r1, .L41+144
	ldr	r0, [fp, #-552]
	bl	fprintf
	ldr	r3, [fp, #-552]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L41+148
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-580]
	mov	r3, #0
	str	r3, [fp, #-576]
	b	.L29
.L34:
	ldr	r3, .L41+56
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r1, [fp, #-540]
	ldr	r0, [fp, #-536]
	bl	memcpy
	ldr	r3, [fp, #-576]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-540]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r0, r3, #1
	ldr	r3, .L41+56
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-576]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-576]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-536]
	add	r4, r2, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [r4]
	sub	r3, fp, #272
	mov	r1, r3
	ldr	r0, [fp, #-536]
	bl	formatLoc
	mov	r3, #0
	str	r3, [fp, #-572]
	b	.L30
.L31:
	ldr	r3, [fp, #-580]
	add	r2, r3, #1
	str	r2, [fp, #-580]
	sub	r1, fp, #272
	sub	r2, fp, #528
	ldr	r0, .L41+152
	str	r0, [sp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-572]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L41+156
	ldr	r0, [fp, #-552]
	bl	fprintf
	ldr	r3, [fp, #-572]
	add	r3, r3, #1
	str	r3, [fp, #-572]
.L30:
	ldr	r3, .L41+56
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-576]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-572]
	cmp	r2, r3
	blt	.L31
	ldr	r3, [fp, #-576]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-540]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, .L41+56
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-576]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	add	r0, r2, r3
	ldr	r3, .L41+56
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-576]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-576]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-536]
	add	r4, r2, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [r4]
	sub	r3, fp, #272
	mov	r1, r3
	ldr	r0, [fp, #-536]
	bl	formatLoc
	mov	r3, #0
	str	r3, [fp, #-568]
	b	.L32
.L33:
	ldr	r3, [fp, #-580]
	add	r2, r3, #1
	str	r2, [fp, #-580]
	sub	r1, fp, #528
	sub	r2, fp, #272
	ldr	r0, .L41+152
	str	r0, [sp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-568]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L41+156
	ldr	r0, [fp, #-552]
	bl	fprintf
	ldr	r3, [fp, #-568]
	add	r3, r3, #1
	str	r3, [fp, #-568]
.L32:
	ldr	r3, .L41+56
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-576]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-568]
	cmp	r2, r3
	blt	.L33
	ldr	r3, [fp, #-576]
	add	r3, r3, #1
	str	r3, [fp, #-576]
.L29:
	ldr	r3, .L41+56
	ldr	r3, [r3]
	ldr	r2, [fp, #-576]
	cmp	r2, r3
	blt	.L34
	mov	r3, #0
	str	r3, [fp, #-564]
	b	.L35
.L36:
	ldr	r3, [fp, #-580]
	add	r2, r3, #1
	str	r2, [fp, #-580]
	ldr	r2, .L41+152
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-564]
	ldr	r2, [fp, #-584]
	ldr	r1, .L41+160
	ldr	r0, [fp, #-552]
	bl	fprintf
	ldr	r3, [fp, #-564]
	add	r3, r3, #1
	str	r3, [fp, #-564]
.L35:
	ldr	r3, .L41+56
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-564]
	cmp	r2, r3
	blt	.L36
	ldr	r3, [fp, #-552]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L41+164
	bl	fwrite
	ldr	r1, [fp, #-552]
	mov	r0, #10
	bl	fputc
	mov	r3, #0
	str	r3, [fp, #-560]
	b	.L37
.L38:
	ldr	r3, .L41+56
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-584]
	mul	r3, r2, r3
	ldr	r2, [fp, #-560]
	add	r3, r2, r3
	str	r3, [fp, #-532]
	sub	r2, fp, #528
	ldr	r3, [fp, #-560]
	ldr	r1, .L41+168
	ldr	r0, [fp, #-552]
	bl	fprintf
	ldr	r3, [fp, #-552]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L41+172
	bl	fwrite
	ldr	r2, [fp, #-532]
	ldr	r1, .L41+144
	ldr	r0, [fp, #-552]
	bl	fprintf
	ldr	r3, [fp, #-552]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L41+148
	bl	fwrite
	ldr	r3, .L41+152
	str	r3, [sp]
	ldr	r3, [fp, #-560]
	ldr	r2, [fp, #-584]
	ldr	r1, .L41+176
	ldr	r0, [fp, #-552]
	bl	fprintf
	ldr	r3, [fp, #-552]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L41+164
	bl	fwrite
	ldr	r1, [fp, #-552]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-560]
	add	r3, r3, #1
	str	r3, [fp, #-560]
.L37:
	ldr	r3, .L41+56
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-560]
	cmp	r2, r3
	blt	.L38
	ldr	r3, [fp, #-584]
	add	r3, r3, #1
	str	r3, [fp, #-584]
.L28:
	ldr	r2, [fp, #-584]
	ldr	r3, [fp, #-544]
	cmp	r2, r3
	blt	.L39
	ldr	r1, [fp, #-552]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-552]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L41+180
	bl	fwrite
	ldr	r0, [fp, #-540]
	bl	free
	ldr	r0, [fp, #-536]
	bl	free
	mov	r3, #0
.L21:
	ldr	r2, .L41
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC47
	.word	.LC10
	.word	stdout
	.word	stdin
	.word	stderr
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	params
	.word	.LC20
	.word	.LC21
	.word	params+20
	.word	.LC22
	.word	params+148
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC9
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	params+84
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
