	.file	"868358.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"rb"
.LC1:
	.string	"particles_000.bin"
	.align 8
.LC2:
	.string	"Could not open particle file particles_000.bin for inspection"
	.align 8
.LC3:
	.string	"Particle file too short or error reading.\n"
.LC4:
	.string	"w"
.LC5:
	.string	"particles.xdmf"
	.align 8
.LC6:
	.string	"Could not open particle output XDMF file"
	.align 8
.LC7:
	.string	"<?xml version=\"1.0\" ?>\n<!DOCTYPE Xdmf SYSTEM \"Xdmf.dtd\" []>\n<Xdmf Version=\"2.0\">\n<Domain>\n<Grid Name=\"TimeSeries\" GridType=\"Collection\" CollectionType=\"Temporal\">\n"
.LC8:
	.string	"particles_%03zu.bin"
	.align 8
.LC9:
	.string	"<Grid Name=\"Particles\" GridType=\"Uniform\">"
.LC10:
	.string	"<Time Value=\"%f\" />\n"
	.align 8
.LC11:
	.string	"<Topology TopologyType=\"Polyvertex\" NodesPerElement=\"%zu\" />\n"
	.align 8
.LC12:
	.string	"<Geometry GeometryType=\"X_Y_Z\">\n"
	.align 8
.LC13:
	.string	"<DataItem ItemType=\"Uniform\" Format=\"Binary\" NumberType=\"Float\" Precision=\"8\" Seek=\"%zu\" Dimensions=\"%zu\">\n"
.LC14:
	.string	"%s\n"
.LC15:
	.string	"</DataItem>\n"
.LC16:
	.string	"</Geometry>\n"
	.align 8
.LC17:
	.string	"<Attribute Name=\"Charge\" AttributeType=\"Scalar\" Center=\"Node\">\n"
	.align 8
.LC18:
	.string	"<DataItem ItemType=\"Uniform\" Format=\"Binary\" NumberType=\"Float\" Precision=\"8\" Seek=\"%zu\" Dimensions=\"%zu\">%s</DataItem>\n"
.LC19:
	.string	"</Attribute>"
	.align 8
.LC20:
	.string	"<Attribute Name=\"Velocity\" AttributeType=\"Vector\" Center=\"Node\">\n"
	.align 8
.LC21:
	.string	"<DataItem ItemType=\"Function\" DataType=\"Float\" Precision=\"8\" Dimensions=\"%zu 3\" Function=\"JOIN($0, $1, $2)\">\n"
.LC22:
	.string	"</DataItem>"
.LC23:
	.string	"</Grid>\n"
.LC24:
	.string	"</Grid>\n</Domain>\n</Xdmf>\n"
	.align 8
.LC25:
	.string	"Could not close particle output XDMF file"
	.text
	.globl	xdmf_write
	.type	xdmf_write, @function
xdmf_write:
.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, 112
	mov	QWORD PTR -104[rbp], rdi
	movsd	QWORD PTR -112[rbp], xmm0
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L2
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rdx, QWORD PTR -64[rbp]
	lea	rax, -96[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 1
	je	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 42
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L4
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 163
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	QWORD PTR -88[rbp], 0
	jmp	.L5
.L12:
	mov	rdx, QWORD PTR -88[rbp]
	lea	rax, -32[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 42
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -88[rbp]
	test	rax, rax
	js	.L6
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L7
.L6:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L7:
	mulsd	xmm0, QWORD PTR -112[rbp]
	movq	rdx, xmm0
	mov	rax, QWORD PTR -40[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	QWORD PTR -80[rbp], 0
	jmp	.L8
.L9:
	mov	rax, QWORD PTR -80[rbp]
	imul	rax, QWORD PTR -48[rbp]
	add	rax, 1
	lea	rsi, 0[0+rax*8]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	add	QWORD PTR -80[rbp], 1
.L8:
	cmp	QWORD PTR -80[rbp], 2
	jbe	.L9
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 63
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rsi, 8[rax]
	lea	rcx, -32[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	rdx, rsi
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 65
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	QWORD PTR -72[rbp], 4
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -72[rbp]
	imul	rax, QWORD PTR -48[rbp]
	add	rax, 1
	lea	rsi, 0[0+rax*8]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	add	QWORD PTR -72[rbp], 1
.L10:
	cmp	QWORD PTR -72[rbp], 6
	jbe	.L11
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 8
	mov	esi, 1
	lea	rdi, .LC23[rip]
	call	fwrite@PLT
	add	QWORD PTR -88[rbp], 1
.L5:
	mov	rax, QWORD PTR -88[rbp]
	cmp	rax, QWORD PTR -104[rbp]
	jbe	.L12
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC24[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	test	eax, eax
	je	.L15
	lea	rdi, .LC25[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	xdmf_write, .-xdmf_write
	.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	"868358.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"rb\000"
	.align	2
.LC1:
	.ascii	"particles_000.bin\000"
	.align	2
.LC2:
	.ascii	"Could not open particle file particles_000.bin for "
	.ascii	"inspection\000"
	.align	2
.LC3:
	.ascii	"Particle file too short or error reading.\012\000"
	.align	2
.LC4:
	.ascii	"w\000"
	.align	2
.LC5:
	.ascii	"particles.xdmf\000"
	.align	2
.LC6:
	.ascii	"Could not open particle output XDMF file\000"
	.align	2
.LC7:
	.ascii	"<?xml version=\"1.0\" ?>\012<!DOCTYPE Xdmf SYSTEM \""
	.ascii	"Xdmf.dtd\" []>\012<Xdmf Version=\"2.0\">\012<Domain"
	.ascii	">\012<Grid Name=\"TimeSeries\" GridType=\"Collectio"
	.ascii	"n\" CollectionType=\"Temporal\">\012\000"
	.align	2
.LC8:
	.ascii	"particles_%03zu.bin\000"
	.align	2
.LC9:
	.ascii	"<Grid Name=\"Particles\" GridType=\"Uniform\">\000"
	.global	__aeabi_ui2d
	.global	__aeabi_dmul
	.align	2
.LC10:
	.ascii	"<Time Value=\"%f\" />\012\000"
	.align	2
.LC11:
	.ascii	"<Topology TopologyType=\"Polyvertex\" NodesPerEleme"
	.ascii	"nt=\"%zu\" />\012\000"
	.align	2
.LC12:
	.ascii	"<Geometry GeometryType=\"X_Y_Z\">\012\000"
	.align	2
.LC13:
	.ascii	"<DataItem ItemType=\"Uniform\" Format=\"Binary\" Nu"
	.ascii	"mberType=\"Float\" Precision=\"8\" Seek=\"%zu\" Dim"
	.ascii	"ensions=\"%zu\">\012\000"
	.align	2
.LC14:
	.ascii	"%s\012\000"
	.align	2
.LC15:
	.ascii	"</DataItem>\012\000"
	.align	2
.LC16:
	.ascii	"</Geometry>\012\000"
	.align	2
.LC17:
	.ascii	"<Attribute Name=\"Charge\" AttributeType=\"Scalar\""
	.ascii	" Center=\"Node\">\012\000"
	.align	2
.LC18:
	.ascii	"<DataItem ItemType=\"Uniform\" Format=\"Binary\" Nu"
	.ascii	"mberType=\"Float\" Precision=\"8\" Seek=\"%zu\" Dim"
	.ascii	"ensions=\"%zu\">%s</DataItem>\012\000"
	.align	2
.LC19:
	.ascii	"</Attribute>\000"
	.align	2
.LC20:
	.ascii	"<Attribute Name=\"Velocity\" AttributeType=\"Vector"
	.ascii	"\" Center=\"Node\">\012\000"
	.align	2
.LC21:
	.ascii	"<DataItem ItemType=\"Function\" DataType=\"Float\" "
	.ascii	"Precision=\"8\" Dimensions=\"%zu 3\" Function=\"JOI"
	.ascii	"N($0, $1, $2)\">\012\000"
	.align	2
.LC22:
	.ascii	"</DataItem>\000"
	.align	2
.LC23:
	.ascii	"</Grid>\012\000"
	.align	2
.LC24:
	.ascii	"</Grid>\012</Domain>\012</Xdmf>\012\000"
	.align	2
.LC25:
	.ascii	"Could not close particle output XDMF file\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	xdmf_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	xdmf_write, %function
xdmf_write:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-80]
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L14+4
	ldr	r0, .L14+8
	bl	fopen
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L14+12
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	sub	r0, fp, #44
	ldr	r3, [fp, #-60]
	mov	r2, #1
	mov	r1, #8
	bl	fread
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #1
	beq	.L3
	ldr	r3, .L14+16
	ldr	r3, [r3]
	mov	r2, #42
	mov	r1, #1
	ldr	r0, .L14+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	mov	r3, r2
	str	r3, [fp, #-52]
	ldr	r0, [fp, #-60]
	bl	fclose
	ldr	r1, .L14+24
	ldr	r0, .L14+28
	bl	fopen
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L14+32
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-48]
	mov	r2, #163
	mov	r1, #1
	ldr	r0, .L14+36
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L5
.L10:
	sub	r3, fp, #32
	ldr	r2, [fp, #-72]
	ldr	r1, .L14+40
	mov	r0, r3
	bl	sprintf
	ldr	r3, [fp, #-48]
	mov	r2, #42
	mov	r1, #1
	ldr	r0, .L14+44
	bl	fwrite
	ldr	r0, [fp, #-72]
	bl	__aeabi_ui2d
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L14+48
	ldr	r0, [fp, #-48]
	bl	fprintf
	ldr	r2, [fp, #-52]
	ldr	r1, .L14+52
	ldr	r0, [fp, #-48]
	bl	fprintf
	ldr	r3, [fp, #-48]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L14+56
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L6
.L7:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-52]
	mul	r3, r2, r3
	add	r3, r3, #1
	lsl	r2, r3, #3
	ldr	r3, [fp, #-52]
	ldr	r1, .L14+60
	ldr	r0, [fp, #-48]
	bl	fprintf
	sub	r3, fp, #32
	mov	r2, r3
	ldr	r1, .L14+64
	ldr	r0, [fp, #-48]
	bl	fprintf
	ldr	r3, [fp, #-48]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L14+68
	bl	fwrite
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L6:
	ldr	r3, [fp, #-68]
	cmp	r3, #2
	bls	.L7
	ldr	r3, [fp, #-48]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L14+72
	bl	fwrite
	ldr	r3, [fp, #-48]
	mov	r2, #63
	mov	r1, #1
	ldr	r0, .L14+76
	bl	fwrite
	ldr	r2, [fp, #-52]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r2, r3, #8
	sub	r3, fp, #32
	str	r3, [sp]
	ldr	r3, [fp, #-52]
	ldr	r1, .L14+80
	ldr	r0, [fp, #-48]
	bl	fprintf
	ldr	r3, [fp, #-48]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L14+84
	bl	fwrite
	ldr	r3, [fp, #-48]
	mov	r2, #65
	mov	r1, #1
	ldr	r0, .L14+88
	bl	fwrite
	ldr	r2, [fp, #-52]
	ldr	r1, .L14+92
	ldr	r0, [fp, #-48]
	bl	fprintf
	mov	r3, #4
	str	r3, [fp, #-64]
	b	.L8
.L9:
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-52]
	mul	r3, r2, r3
	add	r3, r3, #1
	lsl	r2, r3, #3
	ldr	r3, [fp, #-52]
	ldr	r1, .L14+60
	ldr	r0, [fp, #-48]
	bl	fprintf
	sub	r3, fp, #32
	mov	r2, r3
	ldr	r1, .L14+64
	ldr	r0, [fp, #-48]
	bl	fprintf
	ldr	r3, [fp, #-48]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L14+68
	bl	fwrite
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L8:
	ldr	r3, [fp, #-64]
	cmp	r3, #6
	bls	.L9
	ldr	r3, [fp, #-48]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L14+96
	bl	fwrite
	ldr	r3, [fp, #-48]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L14+84
	bl	fwrite
	ldr	r3, [fp, #-48]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, .L14+100
	bl	fwrite
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L5:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-80]
	cmp	r2, r3
	bls	.L10
	ldr	r3, [fp, #-48]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L14+104
	bl	fwrite
	ldr	r0, [fp, #-48]
	bl	fclose
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r0, .L14+108
	bl	perror
	mov	r0, #1
	bl	exit
.L13:
	nop
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC26
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stderr
	.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	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.size	xdmf_write, .-xdmf_write
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
