	.file	"222044.c"
	.intel_syntax noprefix
	.text
	.globl	header1
	.bss
	.align 32
	.type	header1, @object
	.size	header1, 256
header1:
	.zero	256
	.globl	NumPart
	.align 4
	.type	NumPart, @object
	.size	NumPart, 4
NumPart:
	.zero	4
	.globl	Ngas
	.align 4
	.type	Ngas, @object
	.size	Ngas, 4
Ngas:
	.zero	4
	.globl	P
	.align 8
	.type	P, @object
	.size	P, 8
P:
	.zero	8
	.globl	Id
	.align 8
	.type	Id, @object
	.size	Id, 8
Id:
	.zero	8
	.globl	Time
	.align 8
	.type	Time, @object
	.size	Time, 8
Time:
	.zero	8
	.globl	Redshift
	.align 8
	.type	Redshift, @object
	.size	Redshift, 8
Redshift:
	.zero	8
	.globl	snapshot_number
	.align 4
	.type	snapshot_number, @object
	.size	snapshot_number, 4
snapshot_number:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"/home/vee8497/Downloads/Gadget-2.0.7/Project/Results4"
.LC1:
	.string	"snapshot"
.LC2:
	.string	"%s/%s_%03d"
	.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
	sub	rsp, 656
	mov	DWORD PTR -644[rbp], edi
	mov	QWORD PTR -656[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -624[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -208[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -628[rbp], 1
	mov	DWORD PTR -632[rbp], 1
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -632[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -656[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR snapshot_number[rip], eax
	mov	esi, DWORD PTR snapshot_number[rip]
	lea	rcx, -208[rbp]
	lea	rdx, -624[rbp]
	lea	rax, -416[rbp]
	mov	r8d, esi
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	edx, DWORD PTR -628[rbp]
	lea	rax, -416[rbp]
	mov	esi, edx
	mov	rdi, rax
	mov	eax, 0
	call	load_snapshot
	mov	eax, 0
	call	do_what_you_want
	add	DWORD PTR -632[rbp], 1
.L2:
	mov	eax, DWORD PTR -632[rbp]
	cmp	eax, DWORD PTR -644[rbp]
	jl	.L3
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC3:
	.string	"I was called"
.LC4:
	.string	"wsnapshot"
.LC5:
	.string	"%s/%s_%03d.csv"
.LC6:
	.string	"w"
.LC7:
	.string	"Total number of particles:%d\n"
.LC8:
	.string	"XPos,YPos,ZPos\n"
.LC9:
	.string	"%lf,%lf,%lf\n"
	.text
	.globl	do_what_you_want
	.type	do_what_you_want, @function
do_what_you_want:
.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, 464
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -416[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -448[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	esi, DWORD PTR snapshot_number[rip]
	lea	rcx, -448[rbp]
	lea	rdx, -416[rbp]
	lea	rax, -208[rbp]
	mov	r8d, esi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -208[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -456[rbp], rax
	mov	eax, DWORD PTR NumPart[rip]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -456[rbp]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	DWORD PTR -460[rbp], 1
	jmp	.L7
.L8:
	mov	rcx, QWORD PTR P[rip]
	mov	eax, DWORD PTR -460[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	movss	xmm0, DWORD PTR 8[rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	mov	rcx, QWORD PTR P[rip]
	mov	eax, DWORD PTR -460[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	movss	xmm0, DWORD PTR 4[rax]
	cvtss2sd	xmm0, xmm0
	mov	rcx, QWORD PTR P[rip]
	mov	eax, DWORD PTR -460[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	movss	xmm2, DWORD PTR [rax]
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm2
	movq	rdx, xmm3
	mov	rax, QWORD PTR -456[rbp]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rdx
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 3
	call	fprintf@PLT
	add	DWORD PTR -460[rbp], 1
.L7:
	mov	eax, DWORD PTR NumPart[rip]
	cmp	DWORD PTR -460[rbp], eax
	jle	.L8
	mov	rax, QWORD PTR -456[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	do_what_you_want, .-do_what_you_want
	.section	.rodata
.LC10:
	.string	"%s.%d"
.LC11:
	.string	"%s"
.LC12:
	.string	"r"
.LC13:
	.string	"can't open file `%s`\n"
.LC14:
	.string	"reading `%s' ...\n"
	.text
	.globl	load_snapshot
	.type	load_snapshot, @function
load_snapshot:
.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, 272
	mov	QWORD PTR -264[rbp], rdi
	mov	DWORD PTR -268[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -244[rbp], 0
	mov	DWORD PTR -228[rbp], 1
	jmp	.L11
.L57:
	cmp	DWORD PTR -268[rbp], 1
	jle	.L12
	mov	ecx, DWORD PTR -244[rbp]
	mov	rdx, QWORD PTR -264[rbp]
	lea	rax, -208[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L13
.L12:
	mov	rdx, QWORD PTR -264[rbp]
	lea	rax, -208[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
.L13:
	lea	rax, -208[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -216[rbp], rax
	cmp	QWORD PTR -216[rbp], 0
	jne	.L14
	lea	rax, -208[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L14:
	lea	rax, -208[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -248[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -216[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 256
	lea	rdi, header1[rip]
	call	fread@PLT
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -248[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	cmp	DWORD PTR -268[rbp], 1
	jne	.L15
	mov	DWORD PTR -240[rbp], 0
	mov	DWORD PTR NumPart[rip], 0
	mov	DWORD PTR -236[rbp], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -240[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, header1[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR NumPart[rip]
	add	eax, edx
	mov	DWORD PTR NumPart[rip], eax
	add	DWORD PTR -240[rbp], 1
.L16:
	cmp	DWORD PTR -240[rbp], 5
	jle	.L17
	mov	eax, DWORD PTR header1[rip]
	mov	DWORD PTR Ngas[rip], eax
	jmp	.L18
.L15:
	mov	DWORD PTR -240[rbp], 0
	mov	DWORD PTR NumPart[rip], 0
	mov	DWORD PTR -236[rbp], 0
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -240[rbp]
	cdqe
	add	rax, 24
	lea	rdx, 0[0+rax*4]
	lea	rax, header1[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR NumPart[rip]
	add	eax, edx
	mov	DWORD PTR NumPart[rip], eax
	add	DWORD PTR -240[rbp], 1
.L19:
	cmp	DWORD PTR -240[rbp], 5
	jle	.L20
	mov	eax, DWORD PTR header1[rip+96]
	mov	DWORD PTR Ngas[rip], eax
.L18:
	mov	DWORD PTR -240[rbp], 0
	mov	DWORD PTR -236[rbp], 0
	jmp	.L21
.L24:
	mov	eax, DWORD PTR -240[rbp]
	cdqe
	add	rax, 2
	lea	rdx, 0[0+rax*8]
	lea	rax, header1[rip+8]
	movsd	xmm0, QWORD PTR [rdx+rax]
	pxor	xmm1, xmm1
	ucomisd	xmm0, xmm1
	jp	.L22
	pxor	xmm1, xmm1
	ucomisd	xmm0, xmm1
	jne	.L22
	mov	eax, DWORD PTR -240[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, header1[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	DWORD PTR -236[rbp], eax
.L22:
	add	DWORD PTR -240[rbp], 1
.L21:
	cmp	DWORD PTR -240[rbp], 5
	jle	.L24
	cmp	DWORD PTR -244[rbp], 0
	jne	.L25
	mov	eax, 0
	call	allocate_memory
.L25:
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -248[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -240[rbp], 0
	mov	eax, DWORD PTR -228[rbp]
	mov	DWORD PTR -224[rbp], eax
	jmp	.L26
.L29:
	mov	DWORD PTR -232[rbp], 0
	jmp	.L27
.L28:
	mov	rcx, QWORD PTR P[rip]
	mov	eax, DWORD PTR -224[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	mov	rdi, rax
	mov	rax, QWORD PTR -216[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 4
	call	fread@PLT
	add	DWORD PTR -224[rbp], 1
	add	DWORD PTR -232[rbp], 1
.L27:
	mov	eax, DWORD PTR -240[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, header1[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -232[rbp], eax
	jl	.L28
	add	DWORD PTR -240[rbp], 1
.L26:
	cmp	DWORD PTR -240[rbp], 5
	jle	.L29
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -248[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -248[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -240[rbp], 0
	mov	eax, DWORD PTR -228[rbp]
	mov	DWORD PTR -224[rbp], eax
	jmp	.L30
.L33:
	mov	DWORD PTR -232[rbp], 0
	jmp	.L31
.L32:
	mov	rcx, QWORD PTR P[rip]
	mov	eax, DWORD PTR -224[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	lea	rdi, 12[rax]
	mov	rax, QWORD PTR -216[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 4
	call	fread@PLT
	add	DWORD PTR -224[rbp], 1
	add	DWORD PTR -232[rbp], 1
.L31:
	mov	eax, DWORD PTR -240[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, header1[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -232[rbp], eax
	jl	.L32
	add	DWORD PTR -240[rbp], 1
.L30:
	cmp	DWORD PTR -240[rbp], 5
	jle	.L33
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -248[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -248[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -240[rbp], 0
	mov	eax, DWORD PTR -228[rbp]
	mov	DWORD PTR -224[rbp], eax
	jmp	.L34
.L37:
	mov	DWORD PTR -232[rbp], 0
	jmp	.L35
.L36:
	mov	rdx, QWORD PTR Id[rip]
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	sal	rax, 2
	lea	rdi, [rdx+rax]
	mov	rax, QWORD PTR -216[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	call	fread@PLT
	add	DWORD PTR -224[rbp], 1
	add	DWORD PTR -232[rbp], 1
.L35:
	mov	eax, DWORD PTR -240[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, header1[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -232[rbp], eax
	jl	.L36
	add	DWORD PTR -240[rbp], 1
.L34:
	cmp	DWORD PTR -240[rbp], 5
	jle	.L37
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -248[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	cmp	DWORD PTR -236[rbp], 0
	jle	.L38
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -248[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
.L38:
	mov	DWORD PTR -240[rbp], 0
	mov	eax, DWORD PTR -228[rbp]
	mov	DWORD PTR -224[rbp], eax
	jmp	.L39
.L45:
	mov	DWORD PTR -232[rbp], 0
	jmp	.L40
.L44:
	mov	rcx, QWORD PTR P[rip]
	mov	eax, DWORD PTR -224[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -240[rbp]
	mov	DWORD PTR 28[rdx], eax
	mov	eax, DWORD PTR -240[rbp]
	cdqe
	add	rax, 2
	lea	rdx, 0[0+rax*8]
	lea	rax, header1[rip+8]
	movsd	xmm0, QWORD PTR [rdx+rax]
	pxor	xmm1, xmm1
	ucomisd	xmm0, xmm1
	jp	.L41
	pxor	xmm1, xmm1
	ucomisd	xmm0, xmm1
	jne	.L41
	mov	rcx, QWORD PTR P[rip]
	mov	eax, DWORD PTR -224[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	lea	rdi, 24[rax]
	mov	rax, QWORD PTR -216[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	call	fread@PLT
	jmp	.L43
.L41:
	mov	eax, DWORD PTR -240[rbp]
	cdqe
	add	rax, 2
	lea	rdx, 0[0+rax*8]
	lea	rax, header1[rip+8]
	movsd	xmm0, QWORD PTR [rdx+rax]
	mov	rcx, QWORD PTR P[rip]
	mov	eax, DWORD PTR -224[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR 24[rax], xmm0
.L43:
	add	DWORD PTR -224[rbp], 1
	add	DWORD PTR -232[rbp], 1
.L40:
	mov	eax, DWORD PTR -240[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, header1[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -232[rbp], eax
	jl	.L44
	add	DWORD PTR -240[rbp], 1
.L39:
	cmp	DWORD PTR -240[rbp], 5
	jle	.L45
	cmp	DWORD PTR -236[rbp], 0
	jle	.L46
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -248[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
.L46:
	mov	eax, DWORD PTR header1[rip]
	test	eax, eax
	jle	.L47
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -248[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -232[rbp], 0
	mov	eax, DWORD PTR -228[rbp]
	mov	DWORD PTR -220[rbp], eax
	jmp	.L48
.L49:
	mov	rcx, QWORD PTR P[rip]
	mov	eax, DWORD PTR -220[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	lea	rdi, 36[rax]
	mov	rax, QWORD PTR -216[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	call	fread@PLT
	add	DWORD PTR -220[rbp], 1
	add	DWORD PTR -232[rbp], 1
.L48:
	mov	eax, DWORD PTR header1[rip]
	cmp	DWORD PTR -232[rbp], eax
	jl	.L49
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -248[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -248[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -232[rbp], 0
	mov	eax, DWORD PTR -228[rbp]
	mov	DWORD PTR -220[rbp], eax
	jmp	.L50
.L51:
	mov	rcx, QWORD PTR P[rip]
	mov	eax, DWORD PTR -220[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	lea	rdi, 32[rax]
	mov	rax, QWORD PTR -216[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	call	fread@PLT
	add	DWORD PTR -220[rbp], 1
	add	DWORD PTR -232[rbp], 1
.L50:
	mov	eax, DWORD PTR header1[rip]
	cmp	DWORD PTR -232[rbp], eax
	jl	.L51
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -248[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR header1[rip+120]
	test	eax, eax
	je	.L52
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -248[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -232[rbp], 0
	mov	eax, DWORD PTR -228[rbp]
	mov	DWORD PTR -220[rbp], eax
	jmp	.L53
.L54:
	mov	rcx, QWORD PTR P[rip]
	mov	eax, DWORD PTR -220[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	lea	rdi, 44[rax]
	mov	rax, QWORD PTR -216[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	call	fread@PLT
	add	DWORD PTR -220[rbp], 1
	add	DWORD PTR -232[rbp], 1
.L53:
	mov	eax, DWORD PTR header1[rip]
	cmp	DWORD PTR -232[rbp], eax
	jl	.L54
	mov	rdx, QWORD PTR -216[rbp]
	lea	rax, -248[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	jmp	.L47
.L52:
	mov	DWORD PTR -232[rbp], 0
	mov	eax, DWORD PTR -228[rbp]
	mov	DWORD PTR -220[rbp], eax
	jmp	.L55
.L56:
	mov	rcx, QWORD PTR P[rip]
	mov	eax, DWORD PTR -220[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	movss	xmm0, DWORD PTR .LC16[rip]
	movss	DWORD PTR 44[rax], xmm0
	add	DWORD PTR -220[rbp], 1
	add	DWORD PTR -232[rbp], 1
.L55:
	mov	eax, DWORD PTR header1[rip]
	cmp	DWORD PTR -232[rbp], eax
	jl	.L56
.L47:
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	fclose@PLT
	add	DWORD PTR -244[rbp], 1
	mov	eax, DWORD PTR -224[rbp]
	mov	DWORD PTR -228[rbp], eax
.L11:
	mov	eax, DWORD PTR -244[rbp]
	cmp	eax, DWORD PTR -268[rbp]
	jl	.L57
	movsd	xmm0, QWORD PTR header1[rip+72]
	movsd	QWORD PTR Time[rip], xmm0
	movsd	xmm0, QWORD PTR header1[rip+72]
	movsd	QWORD PTR Redshift[rip], xmm0
	nop
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L58
	call	__stack_chk_fail@PLT
.L58:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	load_snapshot, .-load_snapshot
	.section	.rodata
.LC17:
	.string	"allocating memory..."
.LC18:
	.string	"failed to allocate memory.\n"
.LC19:
	.string	"allocating memory...done"
	.text
	.globl	allocate_memory
	.type	allocate_memory, @function
allocate_memory:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	eax, DWORD PTR NumPart[rip]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR P[rip], rax
	mov	rax, QWORD PTR P[rip]
	test	rax, rax
	jne	.L62
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	edi, 0
	call	exit@PLT
.L62:
	mov	rax, QWORD PTR P[rip]
	sub	rax, 48
	mov	QWORD PTR P[rip], rax
	mov	eax, DWORD PTR NumPart[rip]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR Id[rip], rax
	mov	rax, QWORD PTR Id[rip]
	test	rax, rax
	jne	.L63
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	edi, 0
	call	exit@PLT
.L63:
	mov	rax, QWORD PTR Id[rip]
	sub	rax, 4
	mov	QWORD PTR Id[rip], rax
	lea	rdi, .LC19[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	allocate_memory, .-allocate_memory
	.section	.rodata
.LC20:
	.string	"reordering...."
.LC21:
	.string	"done."
.LC22:
	.string	"space for particle ID freed"
	.text
	.globl	reordering
	.type	reordering, @function
reordering:
.LFB10:
	.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, 136
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdi, .LC20[rip]
	call	puts@PLT
	mov	DWORD PTR -144[rbp], 1
	jmp	.L65
.L69:
	mov	rdx, QWORD PTR Id[rip]
	mov	eax, DWORD PTR -144[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -144[rbp], eax
	je	.L66
	mov	rcx, QWORD PTR P[rip]
	mov	eax, DWORD PTR -144[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR -80[rbp], rcx
	mov	QWORD PTR -72[rbp], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -56[rbp], rbx
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	rdx, QWORD PTR Id[rip]
	mov	eax, DWORD PTR -144[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -140[rbp], eax
	mov	rdx, QWORD PTR Id[rip]
	mov	eax, DWORD PTR -144[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -136[rbp], eax
.L68:
	mov	rcx, QWORD PTR P[rip]
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR -128[rbp], rcx
	mov	QWORD PTR -120[rbp], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR -112[rbp], rcx
	mov	QWORD PTR -104[rbp], rbx
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], rdx
	mov	rdx, QWORD PTR Id[rip]
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -132[rbp], eax
	mov	rcx, QWORD PTR P[rip]
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	add	rax, rcx
	mov	rcx, QWORD PTR -80[rbp]
	mov	rbx, QWORD PTR -72[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR -64[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR -48[rbp]
	mov	rbx, QWORD PTR -40[rbp]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	rdx, QWORD PTR Id[rip]
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -140[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -136[rbp]
	cmp	eax, DWORD PTR -144[rbp]
	je	.L71
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -120[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR -104[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	eax, DWORD PTR -132[rbp]
	mov	DWORD PTR -140[rbp], eax
	mov	eax, DWORD PTR -140[rbp]
	mov	DWORD PTR -136[rbp], eax
	jmp	.L68
.L71:
	nop
.L66:
	add	DWORD PTR -144[rbp], 1
.L65:
	mov	eax, DWORD PTR NumPart[rip]
	cmp	DWORD PTR -144[rbp], eax
	jle	.L69
	lea	rdi, .LC21[rip]
	call	puts@PLT
	mov	rax, QWORD PTR Id[rip]
	add	rax, 4
	mov	QWORD PTR Id[rip], rax
	mov	rax, QWORD PTR Id[rip]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, .LC22[rip]
	call	puts@PLT
	nop
	mov	rsi, QWORD PTR -24[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L70
	call	__stack_chk_fail@PLT
.L70:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	reordering, .-reordering
	.section	.rodata
	.align 4
.LC16:
	.long	1065353216
	.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	"222044.c"
	.text
	.comm	header1,256,8
	.comm	NumPart,4,4
	.comm	Ngas,4,4
	.comm	P,4,4
	.comm	Id,4,4
	.comm	Time,8,8
	.comm	Redshift,8,8
	.comm	snapshot_number,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/home/vee8497/Downloads/Gadget-2.0.7/Project/Result"
	.ascii	"s4\000"
	.align	2
.LC1:
	.ascii	"snapshot\000"
	.align	2
.LC2:
	.ascii	"%s/%s_%03d\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 624
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #632
	str	r0, [fp, #-624]
	str	r1, [fp, #-628]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #608
	ldr	r1, .L6+4
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #208
	ldr	r1, .L6+8
	mov	r0, r3
	bl	sprintf
	mov	r3, #1
	str	r3, [fp, #-612]
	mov	r3, #1
	str	r3, [fp, #-616]
	b	.L2
.L3:
	ldr	r3, [fp, #-616]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-628]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L6+12
	str	r3, [r2]
	ldr	r3, .L6+12
	ldr	r3, [r3]
	sub	r1, fp, #208
	sub	r2, fp, #608
	sub	r0, fp, #408
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L6+16
	bl	sprintf
	sub	r3, fp, #408
	ldr	r1, [fp, #-612]
	mov	r0, r3
	bl	load_snapshot
	bl	do_what_you_want
	ldr	r3, [fp, #-616]
	add	r3, r3, #1
	str	r3, [fp, #-616]
.L2:
	ldr	r2, [fp, #-616]
	ldr	r3, [fp, #-624]
	cmp	r2, r3
	blt	.L3
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	snapshot_number
	.word	.LC2
	.size	main, .-main
	.section	.rodata
	.align	2
.LC4:
	.ascii	"I was called\000"
	.align	2
.LC5:
	.ascii	"wsnapshot\000"
	.align	2
.LC6:
	.ascii	"%s/%s_%03d.csv\000"
	.align	2
.LC7:
	.ascii	"w\000"
	.align	2
.LC8:
	.ascii	"Total number of particles:%d\012\000"
	.align	2
.LC9:
	.ascii	"XPos,YPos,ZPos\012\000"
	.global	__aeabi_f2d
	.align	2
.LC10:
	.ascii	"%lf,%lf,%lf\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	do_what_you_want
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_what_you_want, %function
do_what_you_want:
	@ args = 0, pretend = 0, frame = 432
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #448
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r0, .L12+4
	bl	puts
	sub	r3, fp, #424
	ldr	r1, .L12+8
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #444
	ldr	r1, .L12+12
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L12+16
	ldr	r3, [r3]
	sub	r1, fp, #444
	sub	r2, fp, #424
	sub	r0, fp, #224
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L12+20
	bl	sprintf
	sub	r3, fp, #224
	ldr	r1, .L12+24
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-448]
	ldr	r3, .L12+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12+32
	bl	printf
	ldr	r3, [fp, #-448]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L12+36
	bl	fwrite
	mov	r3, #1
	str	r3, [fp, #-452]
	b	.L9
.L10:
	ldr	r3, .L12+40
	ldr	r1, [r3]
	ldr	r2, [fp, #-452]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r6, r0
	mov	r7, r1
	ldr	r3, .L12+40
	ldr	r1, [r3]
	ldr	r2, [fp, #-452]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3, #4]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L12+40
	ldr	r1, [r3]
	ldr	r2, [fp, #-452]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3, #8]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r4-r5}
	mov	r2, r6
	mov	r3, r7
	ldr	r1, .L12+44
	ldr	r0, [fp, #-448]
	bl	fprintf
	ldr	r3, [fp, #-452]
	add	r3, r3, #1
	str	r3, [fp, #-452]
.L9:
	ldr	r3, .L12+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-452]
	cmp	r2, r3
	ble	.L10
	ldr	r0, [fp, #-448]
	bl	fclose
	nop
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC11
	.word	.LC4
	.word	.LC0
	.word	.LC5
	.word	snapshot_number
	.word	.LC6
	.word	.LC7
	.word	NumPart
	.word	.LC8
	.word	.LC9
	.word	P
	.word	.LC10
	.size	do_what_you_want, .-do_what_you_want
	.section	.rodata
	.align	2
.LC12:
	.ascii	"%s.%d\000"
	.align	2
.LC13:
	.ascii	"%s\000"
	.align	2
.LC14:
	.ascii	"r\000"
	.align	2
.LC15:
	.ascii	"can't open file `%s`\012\000"
	.align	2
.LC16:
	.ascii	"reading `%s' ...\012\000"
	.global	__aeabi_dcmpeq
	.global	__aeabi_d2f
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	load_snapshot
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_snapshot, %function
load_snapshot:
	@ args = 0, pretend = 0, frame = 248
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #252
	str	r0, [fp, #-256]
	str	r1, [fp, #-260]
	ldr	r3, .L66
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-248]
	mov	r3, #1
	str	r3, [fp, #-232]
	b	.L15
.L61:
	ldr	r3, [fp, #-260]
	cmp	r3, #1
	ble	.L16
	sub	r0, fp, #216
	ldr	r3, [fp, #-248]
	ldr	r2, [fp, #-256]
	ldr	r1, .L66+4
	bl	sprintf
	b	.L17
.L16:
	sub	r3, fp, #216
	ldr	r2, [fp, #-256]
	ldr	r1, .L66+8
	mov	r0, r3
	bl	sprintf
.L17:
	sub	r3, fp, #216
	ldr	r1, .L66+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-220]
	ldr	r3, [fp, #-220]
	cmp	r3, #0
	bne	.L18
	sub	r3, fp, #216
	mov	r1, r3
	ldr	r0, .L66+16
	bl	printf
	mov	r0, #0
	bl	exit
.L18:
	sub	r3, fp, #216
	mov	r1, r3
	ldr	r0, .L66+20
	bl	printf
	ldr	r3, .L66+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r0, fp, #252
	ldr	r3, [fp, #-220]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-220]
	mov	r2, #1
	mov	r1, #256
	ldr	r0, .L66+28
	bl	fread
	sub	r0, fp, #252
	ldr	r3, [fp, #-220]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-260]
	cmp	r3, #1
	bne	.L19
	mov	r3, #0
	str	r3, [fp, #-244]
	ldr	r3, .L66+32
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-240]
	b	.L20
.L21:
	ldr	r2, .L66+28
	ldr	r3, [fp, #-244]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L66+32
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L66+32
	str	r3, [r2]
	ldr	r3, [fp, #-244]
	add	r3, r3, #1
	str	r3, [fp, #-244]
.L20:
	ldr	r3, [fp, #-244]
	cmp	r3, #5
	ble	.L21
	ldr	r3, .L66+28
	ldr	r3, [r3]
	ldr	r2, .L66+36
	str	r3, [r2]
	b	.L22
.L19:
	mov	r3, #0
	str	r3, [fp, #-244]
	ldr	r3, .L66+32
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-240]
	b	.L23
.L24:
	ldr	r2, .L66+28
	ldr	r3, [fp, #-244]
	add	r3, r3, #24
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L66+32
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L66+32
	str	r3, [r2]
	ldr	r3, [fp, #-244]
	add	r3, r3, #1
	str	r3, [fp, #-244]
.L23:
	ldr	r3, [fp, #-244]
	cmp	r3, #5
	ble	.L24
	ldr	r3, .L66+28
	ldr	r3, [r3, #96]
	ldr	r2, .L66+36
	str	r3, [r2]
.L22:
	mov	r3, #0
	str	r3, [fp, #-244]
	mov	r3, #0
	str	r3, [fp, #-240]
	b	.L25
.L28:
	ldr	r2, .L66+28
	ldr	r3, [fp, #-244]
	add	r3, r3, #3
	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	.L26
	ldr	r2, .L66+28
	ldr	r3, [fp, #-244]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-240]
	add	r3, r2, r3
	str	r3, [fp, #-240]
.L26:
	ldr	r3, [fp, #-244]
	add	r3, r3, #1
	str	r3, [fp, #-244]
.L25:
	ldr	r3, [fp, #-244]
	cmp	r3, #5
	ble	.L28
	ldr	r3, [fp, #-248]
	cmp	r3, #0
	bne	.L29
	bl	allocate_memory
.L29:
	sub	r0, fp, #252
	ldr	r3, [fp, #-220]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	mov	r3, #0
	str	r3, [fp, #-244]
	ldr	r3, [fp, #-232]
	str	r3, [fp, #-228]
	b	.L30
.L33:
	mov	r3, #0
	str	r3, [fp, #-236]
	b	.L31
.L32:
	ldr	r3, .L66+40
	ldr	r1, [r3]
	ldr	r2, [fp, #-228]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	mov	r0, r3
	ldr	r3, [fp, #-220]
	mov	r2, #3
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-228]
	add	r3, r3, #1
	str	r3, [fp, #-228]
	ldr	r3, [fp, #-236]
	add	r3, r3, #1
	str	r3, [fp, #-236]
.L31:
	ldr	r2, .L66+28
	ldr	r3, [fp, #-244]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-236]
	cmp	r2, r3
	blt	.L32
	ldr	r3, [fp, #-244]
	add	r3, r3, #1
	str	r3, [fp, #-244]
.L30:
	ldr	r3, [fp, #-244]
	cmp	r3, #5
	ble	.L33
	sub	r0, fp, #252
	ldr	r3, [fp, #-220]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	sub	r0, fp, #252
	ldr	r3, [fp, #-220]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	mov	r3, #0
	str	r3, [fp, #-244]
	ldr	r3, [fp, #-232]
	str	r3, [fp, #-228]
	b	.L34
.L37:
	mov	r3, #0
	str	r3, [fp, #-236]
	b	.L35
.L36:
	ldr	r3, .L66+40
	ldr	r1, [r3]
	ldr	r2, [fp, #-228]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r0, r3, #12
	ldr	r3, [fp, #-220]
	mov	r2, #3
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-228]
	add	r3, r3, #1
	str	r3, [fp, #-228]
	ldr	r3, [fp, #-236]
	add	r3, r3, #1
	str	r3, [fp, #-236]
.L35:
	ldr	r2, .L66+28
	ldr	r3, [fp, #-244]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-236]
	cmp	r2, r3
	blt	.L36
	ldr	r3, [fp, #-244]
	add	r3, r3, #1
	str	r3, [fp, #-244]
.L34:
	ldr	r3, [fp, #-244]
	cmp	r3, #5
	ble	.L37
	sub	r0, fp, #252
	ldr	r3, [fp, #-220]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	sub	r0, fp, #252
	ldr	r3, [fp, #-220]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	mov	r3, #0
	str	r3, [fp, #-244]
	ldr	r3, [fp, #-232]
	str	r3, [fp, #-228]
	b	.L38
.L41:
	mov	r3, #0
	str	r3, [fp, #-236]
	b	.L39
.L40:
	ldr	r3, .L66+44
	ldr	r2, [r3]
	ldr	r3, [fp, #-228]
	lsl	r3, r3, #2
	add	r0, r2, r3
	ldr	r3, [fp, #-220]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-228]
	add	r3, r3, #1
	str	r3, [fp, #-228]
	ldr	r3, [fp, #-236]
	add	r3, r3, #1
	str	r3, [fp, #-236]
.L39:
	ldr	r2, .L66+28
	ldr	r3, [fp, #-244]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-236]
	cmp	r2, r3
	blt	.L40
	ldr	r3, [fp, #-244]
	add	r3, r3, #1
	str	r3, [fp, #-244]
.L38:
	ldr	r3, [fp, #-244]
	cmp	r3, #5
	ble	.L41
	sub	r0, fp, #252
	ldr	r3, [fp, #-220]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-240]
	cmp	r3, #0
	ble	.L42
	sub	r0, fp, #252
	ldr	r3, [fp, #-220]
	mov	r2, #1
	mov	r1, #4
	bl	fread
.L42:
	mov	r3, #0
	str	r3, [fp, #-244]
	ldr	r3, [fp, #-232]
	str	r3, [fp, #-228]
	b	.L43
.L49:
	mov	r3, #0
	str	r3, [fp, #-236]
	b	.L44
.L48:
	ldr	r3, .L66+40
	ldr	r1, [r3]
	ldr	r2, [fp, #-228]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r2, [fp, #-244]
	str	r2, [r3, #28]
	ldr	r2, .L66+28
	ldr	r3, [fp, #-244]
	add	r3, r3, #3
	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	.L65
	ldr	r3, .L66+40
	ldr	r1, [r3]
	ldr	r2, [fp, #-228]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r0, r3, #24
	ldr	r3, [fp, #-220]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	b	.L47
.L65:
	ldr	r2, .L66+28
	ldr	r3, [fp, #-244]
	add	r3, r3, #3
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, .L66+40
	ldr	ip, [r3]
	ldr	r2, [fp, #-228]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r4, ip, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [r4, #24]	@ float
.L47:
	ldr	r3, [fp, #-228]
	add	r3, r3, #1
	str	r3, [fp, #-228]
	ldr	r3, [fp, #-236]
	add	r3, r3, #1
	str	r3, [fp, #-236]
.L44:
	ldr	r2, .L66+28
	ldr	r3, [fp, #-244]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-236]
	cmp	r2, r3
	blt	.L48
	ldr	r3, [fp, #-244]
	add	r3, r3, #1
	str	r3, [fp, #-244]
.L43:
	ldr	r3, [fp, #-244]
	cmp	r3, #5
	ble	.L49
	ldr	r3, [fp, #-240]
	cmp	r3, #0
	ble	.L50
	sub	r0, fp, #252
	ldr	r3, [fp, #-220]
	mov	r2, #1
	mov	r1, #4
	bl	fread
.L50:
	ldr	r3, .L66+28
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L51
	sub	r0, fp, #252
	ldr	r3, [fp, #-220]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	mov	r3, #0
	str	r3, [fp, #-236]
	ldr	r3, [fp, #-232]
	str	r3, [fp, #-224]
	b	.L52
.L53:
	ldr	r3, .L66+40
	ldr	r1, [r3]
	ldr	r2, [fp, #-224]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r0, r3, #36
	ldr	r3, [fp, #-220]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-224]
	add	r3, r3, #1
	str	r3, [fp, #-224]
	ldr	r3, [fp, #-236]
	add	r3, r3, #1
	str	r3, [fp, #-236]
.L52:
	ldr	r3, .L66+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-236]
	cmp	r2, r3
	blt	.L53
	sub	r0, fp, #252
	ldr	r3, [fp, #-220]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	sub	r0, fp, #252
	ldr	r3, [fp, #-220]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	mov	r3, #0
	str	r3, [fp, #-236]
	ldr	r3, [fp, #-232]
	str	r3, [fp, #-224]
	b	.L54
.L55:
	ldr	r3, .L66+40
	ldr	r1, [r3]
	ldr	r2, [fp, #-224]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r0, r3, #32
	ldr	r3, [fp, #-220]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-224]
	add	r3, r3, #1
	str	r3, [fp, #-224]
	ldr	r3, [fp, #-236]
	add	r3, r3, #1
	str	r3, [fp, #-236]
.L54:
	ldr	r3, .L66+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-236]
	cmp	r2, r3
	blt	.L55
	sub	r0, fp, #252
	ldr	r3, [fp, #-220]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, .L66+28
	ldr	r3, [r3, #120]
	cmp	r3, #0
	beq	.L56
	sub	r0, fp, #252
	ldr	r3, [fp, #-220]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	mov	r3, #0
	str	r3, [fp, #-236]
	ldr	r3, [fp, #-232]
	str	r3, [fp, #-224]
	b	.L57
.L58:
	ldr	r3, .L66+40
	ldr	r1, [r3]
	ldr	r2, [fp, #-224]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r0, r3, #44
	ldr	r3, [fp, #-220]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, [fp, #-224]
	add	r3, r3, #1
	str	r3, [fp, #-224]
	ldr	r3, [fp, #-236]
	add	r3, r3, #1
	str	r3, [fp, #-236]
.L57:
	ldr	r3, .L66+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-236]
	cmp	r2, r3
	blt	.L58
	sub	r0, fp, #252
	ldr	r3, [fp, #-220]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	b	.L51
.L56:
	mov	r3, #0
	str	r3, [fp, #-236]
	ldr	r3, [fp, #-232]
	str	r3, [fp, #-224]
	b	.L59
.L60:
	ldr	r3, .L66+40
	ldr	r1, [r3]
	ldr	r2, [fp, #-224]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	mov	r2, #1065353216
	str	r2, [r3, #44]	@ float
	ldr	r3, [fp, #-224]
	add	r3, r3, #1
	str	r3, [fp, #-224]
	ldr	r3, [fp, #-236]
	add	r3, r3, #1
	str	r3, [fp, #-236]
.L59:
	ldr	r3, .L66+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-236]
	cmp	r2, r3
	blt	.L60
.L51:
	ldr	r0, [fp, #-220]
	bl	fclose
	ldr	r3, [fp, #-248]
	add	r3, r3, #1
	str	r3, [fp, #-248]
	ldr	r3, [fp, #-228]
	str	r3, [fp, #-232]
.L15:
	ldr	r2, [fp, #-248]
	ldr	r3, [fp, #-260]
	cmp	r2, r3
	blt	.L61
	ldr	r3, .L66+28
	add	r3, r3, #72
	ldmia	r3, {r2-r3}
	ldr	r1, .L66+48
	stm	r1, {r2-r3}
	ldr	r3, .L66+28
	add	r3, r3, #72
	ldmia	r3, {r2-r3}
	ldr	r1, .L66+52
	stm	r1, {r2-r3}
	nop
	ldr	r2, .L66
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L62
	bl	__stack_chk_fail
.L62:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC17
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	stdout
	.word	header1
	.word	NumPart
	.word	Ngas
	.word	P
	.word	Id
	.word	Time
	.word	Redshift
	.size	load_snapshot, .-load_snapshot
	.section	.rodata
	.align	2
.LC18:
	.ascii	"allocating memory...\000"
	.align	2
.LC19:
	.ascii	"failed to allocate memory.\012\000"
	.align	2
.LC20:
	.ascii	"allocating memory...done\000"
	.text
	.align	2
	.global	allocate_memory
	.syntax unified
	.arm
	.fpu softvfp
	.type	allocate_memory, %function
allocate_memory:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L71
	bl	puts
	ldr	r3, .L71+4
	ldr	r3, [r3]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L71+8
	str	r2, [r3]
	ldr	r3, .L71+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L69
	ldr	r3, .L71+12
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L71+16
	bl	fwrite
	mov	r0, #0
	bl	exit
.L69:
	ldr	r3, .L71+8
	ldr	r3, [r3]
	sub	r3, r3, #48
	ldr	r2, .L71+8
	str	r3, [r2]
	ldr	r3, .L71+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L71+20
	str	r2, [r3]
	ldr	r3, .L71+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L70
	ldr	r3, .L71+12
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L71+16
	bl	fwrite
	mov	r0, #0
	bl	exit
.L70:
	ldr	r3, .L71+20
	ldr	r3, [r3]
	sub	r3, r3, #4
	ldr	r2, .L71+20
	str	r3, [r2]
	ldr	r0, .L71+24
	bl	puts
	nop
	mov	r0, r3
	pop	{fp, pc}
.L72:
	.align	2
.L71:
	.word	.LC18
	.word	NumPart
	.word	P
	.word	stderr
	.word	.LC19
	.word	Id
	.word	.LC20
	.size	allocate_memory, .-allocate_memory
	.section	.rodata
	.align	2
.LC21:
	.ascii	"reordering....\000"
	.align	2
.LC22:
	.ascii	"done.\000"
	.align	2
.LC23:
	.ascii	"space for particle ID freed\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	reordering
	.syntax unified
	.arm
	.fpu softvfp
	.type	reordering, %function
reordering:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	ldr	r3, .L81
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L81+4
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-120]
	b	.L74
.L78:
	ldr	r3, .L81+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-120]
	cmp	r2, r3
	beq	.L75
	ldr	r3, .L81+12
	ldr	r1, [r3]
	ldr	r2, [fp, #-120]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	sub	ip, fp, #56
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L81+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-116]
	ldr	r3, .L81+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-112]
.L77:
	ldr	r3, .L81+12
	ldr	r1, [r3]
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	sub	ip, fp, #104
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L81+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-108]
	ldr	r3, .L81+12
	ldr	r1, [r3]
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	mov	lr, r3
	sub	ip, fp, #56
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2, r3}
	stm	lr, {r0, r1, r2, r3}
	ldr	r3, .L81+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-116]
	str	r2, [r3]
	ldr	r2, [fp, #-112]
	ldr	r3, [fp, #-120]
	cmp	r2, r3
	beq	.L80
	sub	ip, fp, #56
	sub	lr, fp, #104
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-108]
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-116]
	str	r3, [fp, #-112]
	b	.L77
.L80:
	nop
.L75:
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L74:
	ldr	r3, .L81+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-120]
	cmp	r2, r3
	ble	.L78
	ldr	r0, .L81+20
	bl	puts
	ldr	r3, .L81+8
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r2, .L81+8
	str	r3, [r2]
	ldr	r3, .L81+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r0, .L81+24
	bl	puts
	nop
	ldr	r2, .L81
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L79
	bl	__stack_chk_fail
.L79:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L82:
	.align	2
.L81:
	.word	.LC24
	.word	.LC21
	.word	Id
	.word	P
	.word	NumPart
	.word	.LC22
	.word	.LC23
	.size	reordering, .-reordering
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
