	.file	"838355.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"syntax : ./extract_step osnoise.data"
	.align 8
.LC1:
	.string	"failed to open %s ... exiting\n"
	.align 8
.LC2:
	.string	"read failed for %s ... exiting\n"
	.align 8
.LC3:
	.string	"enter the rank that you want to extract : "
.LC4:
	.string	"%d"
	.align 8
.LC5:
	.string	"lseek failed for %s ... exiting\n"
	.align 8
.LC6:
	.string	"malloc failed for the step time array ... exiting"
	.align 8
.LC7:
	.string	"close failed for %s ... exiting\n"
	.align 8
.LC8:
	.string	"extracting step times for rank %d ...\n"
.LC9:
	.string	"%s.step.%d"
.LC10:
	.string	"w"
	.align 8
.LC11:
	.string	"failed to open the output file %s ... exiting\n"
.LC13:
	.string	"%.6e\n"
	.align 8
.LC14:
	.string	"wrote file %s ... timing data in units of milliseconds\n"
	.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, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -180[rbp], 2
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -152[rbp], eax
	cmp	DWORD PTR -152[rbp], 0
	jns	.L3
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L3:
	lea	rcx, -168[rbp]
	mov	eax, DWORD PTR -152[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -144[rbp], rax
	cmp	QWORD PTR -144[rbp], 0
	jns	.L4
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L4:
	lea	rcx, -160[rbp]
	mov	eax, DWORD PTR -152[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -144[rbp], rax
	cmp	QWORD PTR -144[rbp], 0
	jns	.L5
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L5:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -164[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -160[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	imul	rax, rdx
	add	rax, 1
	lea	rdx, [rax+rax]
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	add	rax, rdx
	sal	rax, 2
	mov	QWORD PTR -136[rbp], rax
	mov	rcx, QWORD PTR -136[rbp]
	mov	eax, DWORD PTR -152[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -128[rbp], rax
	cmp	QWORD PTR -128[rbp], 0
	jns	.L6
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -120[rbp], rax
	cmp	QWORD PTR -120[rbp], 0
	jne	.L7
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	sal	rax, 2
	mov	QWORD PTR -112[rbp], rax
	mov	rdx, QWORD PTR -112[rbp]
	mov	rcx, QWORD PTR -120[rbp]
	mov	eax, DWORD PTR -152[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -144[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	cmp	QWORD PTR -144[rbp], rax
	je	.L8
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L8:
	mov	eax, DWORD PTR -152[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -148[rbp], eax
	cmp	DWORD PTR -148[rbp], 0
	jns	.L9
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L9:
	mov	eax, DWORD PTR -164[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ecx, DWORD PTR -164[rbp]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -96[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -96[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -104[rbp], rax
	cmp	QWORD PTR -104[rbp], 0
	jne	.L10
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L10:
	mov	DWORD PTR -156[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC12[rip]
	mulsd	xmm1, xmm0
	movq	rdx, xmm1
	mov	rax, QWORD PTR -104[rbp]
	movq	xmm0, rdx
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
	add	DWORD PTR -156[rbp], 1
.L11:
	mov	eax, DWORD PTR -160[rbp]
	cmp	DWORD PTR -156[rbp], eax
	jl	.L12
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC12:
	.long	0
	.long	1083129856
	.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	"838355.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"syntax : ./extract_step osnoise.data\000"
	.align	2
.LC1:
	.ascii	"failed to open %s ... exiting\012\000"
	.align	2
.LC2:
	.ascii	"read failed for %s ... exiting\012\000"
	.align	2
.LC3:
	.ascii	"enter the rank that you want to extract : \000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.ascii	"lseek failed for %s ... exiting\012\000"
	.align	2
.LC6:
	.ascii	"malloc failed for the step time array ... exiting\000"
	.align	2
.LC7:
	.ascii	"close failed for %s ... exiting\012\000"
	.align	2
.LC8:
	.ascii	"extracting step times for rank %d ...\012\000"
	.align	2
.LC9:
	.ascii	"%s.step.%d\000"
	.align	2
.LC10:
	.ascii	"w\000"
	.align	2
.LC11:
	.ascii	"failed to open the output file %s ... exiting\012\000"
	.global	__aeabi_f2d
	.global	__aeabi_dmul
	.align	2
.LC12:
	.ascii	"%.6e\012\000"
	.align	2
.LC13:
	.ascii	"wrote file %s ... timing data in units of milliseco"
	.ascii	"nds\012\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-144]
	str	r1, [fp, #-148]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-144]
	cmp	r3, #2
	beq	.L2
	ldr	r0, .L15+4
	bl	puts
	mov	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-148]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bge	.L3
	ldr	r3, [fp, #-148]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+8
	bl	printf
	mov	r0, #0
	bl	exit
.L3:
	sub	r3, fp, #136
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-120]
	bl	read
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bge	.L4
	ldr	r3, [fp, #-148]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+12
	bl	printf
	mov	r0, #0
	bl	exit
.L4:
	sub	r3, fp, #128
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-120]
	bl	read
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bge	.L5
	ldr	r3, [fp, #-148]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+12
	bl	printf
	mov	r0, #0
	bl	exit
.L5:
	ldr	r0, .L15+16
	bl	printf
	sub	r3, fp, #132
	mov	r1, r3
	ldr	r0, .L15+20
	bl	__isoc99_scanf
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-132]
	mul	r3, r2, r3
	add	r3, r3, #1
	lsl	r2, r3, #1
	ldr	r3, [fp, #-128]
	add	r3, r2, r3
	lsl	r3, r3, #2
	str	r3, [fp, #-112]
	mov	r2, #0
	ldr	r1, [fp, #-112]
	ldr	r0, [fp, #-120]
	bl	lseek
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bge	.L6
	ldr	r3, [fp, #-148]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+24
	bl	printf
	mov	r0, #0
	bl	exit
.L6:
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L15+28
	bl	puts
	mov	r0, #0
	bl	exit
.L7:
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #2
	str	r3, [fp, #-100]
	ldr	r2, [fp, #-100]
	ldr	r1, [fp, #-104]
	ldr	r0, [fp, #-120]
	bl	read
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	ldr	r2, [fp, #-100]
	cmp	r2, r3
	beq	.L8
	ldr	r3, [fp, #-148]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+12
	bl	printf
	mov	r0, #0
	bl	exit
.L8:
	ldr	r0, [fp, #-120]
	bl	close
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bge	.L9
	ldr	r3, [fp, #-148]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+32
	bl	printf
	mov	r0, #0
	bl	exit
.L9:
	ldr	r3, [fp, #-132]
	mov	r1, r3
	ldr	r0, .L15+36
	bl	printf
	ldr	r3, [fp, #-148]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-132]
	sub	r0, fp, #88
	ldr	r1, .L15+40
	bl	sprintf
	sub	r3, fp, #88
	ldr	r1, .L15+44
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bne	.L10
	sub	r3, fp, #88
	mov	r1, r3
	ldr	r0, .L15+48
	bl	printf
	mov	r0, #0
	bl	exit
.L10:
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L11
.L12:
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-104]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L15+52
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L15+56
	ldr	r0, [fp, #-92]
	bl	fprintf
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L11:
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-124]
	cmp	r2, r3
	blt	.L12
	ldr	r0, [fp, #-92]
	bl	fclose
	sub	r3, fp, #88
	mov	r1, r3
	ldr	r0, .L15+60
	bl	printf
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC14
	.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	1083129856
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
