	.file	"122136.c"
	.intel_syntax noprefix
	.text
	.globl	x
	.bss
	.align 32
	.type	x, @object
	.size	x, 134217728
x:
	.zero	134217728
	.globl	clk_tck
	.align 8
	.type	clk_tck, @object
	.size	clk_tck, 8
clk_tck:
	.zero	8
	.text
	.globl	get_seconds
	.type	get_seconds, @function
get_seconds:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	times@PLT
	mov	rax, QWORD PTR -48[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	mov	rax, QWORD PTR clk_tck[rip]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	divsd	xmm0, xmm1
	movq	rax, xmm0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_seconds, .-get_seconds
	.section	.rodata
	.align 8
.LC3:
	.string	"Size: %7ld Stride: %7ld read+write: %4.4lf ns\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 32
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	edi, 2
	call	sysconf@PLT
	mov	QWORD PTR clk_tck[rip], rax
	mov	DWORD PTR -52[rbp], 32768
	jmp	.L5
.L18:
	mov	ebx, 1
	jmp	.L6
.L17:
	pxor	xmm0, xmm0
	movsd	QWORD PTR -48[rbp], xmm0
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, ebx
	lea	r14d, 1[rax]
	mov	DWORD PTR -60[rbp], 0
.L11:
	mov	eax, 0
	call	get_seconds
	movq	rax, xmm0
	mov	QWORD PTR -40[rbp], rax
	mov	eax, ebx
	sal	eax, 2
	add	eax, ebx
	add	eax, eax
	mov	r13d, eax
	jmp	.L7
.L10:
	mov	r12d, 0
	jmp	.L8
.L9:
	movsx	rax, r12d
	lea	rdx, 0[0+rax*4]
	lea	rax, x[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, 1[rax]
	movsx	rax, r12d
	lea	rdx, 0[0+rax*4]
	lea	rax, x[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	r12d, ebx
.L8:
	cmp	r12d, r14d
	jl	.L9
	sub	r13d, 1
.L7:
	test	r13d, r13d
	jne	.L10
	add	DWORD PTR -60[rbp], 1
	mov	eax, 0
	call	get_seconds
	movq	rax, xmm0
	movq	xmm0, rax
	subsd	xmm0, QWORD PTR -40[rbp]
	movsd	xmm1, QWORD PTR -48[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -48[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC1[rip]
	comisd	xmm0, QWORD PTR -48[rbp]
	ja	.L11
	mov	DWORD PTR -56[rbp], 0
.L16:
	mov	eax, 0
	call	get_seconds
	movq	rax, xmm0
	mov	QWORD PTR -40[rbp], rax
	mov	eax, ebx
	sal	eax, 2
	add	eax, ebx
	add	eax, eax
	mov	r13d, eax
	jmp	.L12
.L15:
	mov	r12d, 0
	jmp	.L13
.L14:
	add	r12d, ebx
.L13:
	cmp	r12d, r14d
	jl	.L14
	sub	r13d, 1
.L12:
	test	r13d, r13d
	jne	.L15
	add	DWORD PTR -56[rbp], 1
	mov	eax, 0
	call	get_seconds
	movq	rax, xmm0
	movq	xmm1, rax
	subsd	xmm1, QWORD PTR -40[rbp]
	movsd	xmm0, QWORD PTR -48[rbp]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -48[rbp], xmm0
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -60[rbp]
	jl	.L16
	movsd	xmm1, QWORD PTR -48[rbp]
	movsd	xmm0, QWORD PTR .LC2[rip]
	mulsd	xmm0, xmm1
	mov	ecx, ebx
	imul	ecx, DWORD PTR -60[rbp]
	lea	eax, -1[r14]
	cdq
	idiv	ebx
	add	eax, 1
	imul	ecx, eax
	mov	edx, ecx
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movsx	rdx, ebx
	sal	rdx, 2
	mov	ecx, DWORD PTR -52[rbp]
	movsx	rcx, ecx
	sal	rcx, 2
	movq	xmm0, rax
	mov	rsi, rcx
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	add	ebx, ebx
.L6:
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	ebx, eax
	jle	.L17
	sal	DWORD PTR -52[rbp]
.L5:
	cmp	DWORD PTR -52[rbp], 33554432
	jle	.L18
	mov	eax, 0
	add	rsp, 32
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.align 8
.LC2:
	.long	0
	.long	1104006501
	.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	"122136.c"
	.text
	.comm	x,134217728,4
	.comm	clk_tck,4,4
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_seconds
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_seconds, %function
get_seconds:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #32
	mov	r0, r3
	bl	times
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L4+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L4
	ldr	r0, [r1]
	ldr	r1, [fp, #-16]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	clk_tck
	.size	get_seconds, .-get_seconds
	.global	__aeabi_dsub
	.global	__aeabi_dadd
	.global	__aeabi_dcmplt
	.global	__aeabi_dmul
	.global	__aeabi_idiv
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Size: %7ld Stride: %7ld read+write: %4.4lf ns\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #44
	mov	r0, #2
	bl	sysconf
	mov	r3, r0
	ldr	r2, .L22
	str	r3, [r2]
	mov	r3, #32768
	str	r3, [fp, #-56]
	b	.L7
.L20:
	mov	r4, #1
	b	.L8
.L19:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-56]
	sub	r3, r3, r4
	add	r7, r3, #1
	mov	r3, #0
	str	r3, [fp, #-64]
.L13:
	bl	get_seconds
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	mov	r3, r4
	lsl	r3, r3, #2
	add	r3, r3, r4
	lsl	r3, r3, #1
	mov	r6, r3
	b	.L9
.L12:
	mov	r5, #0
	b	.L10
.L11:
	ldr	r3, .L22+4
	ldr	r3, [r3, r5, lsl #2]
	add	r3, r3, #1
	ldr	r2, .L22+4
	str	r3, [r2, r5, lsl #2]
	add	r5, r5, r4
.L10:
	cmp	r5, r7
	blt	.L11
	sub	r6, r6, #1
.L9:
	cmp	r6, #0
	bne	.L12
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
	bl	get_seconds
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	ldr	r3, .L22+8
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	mov	r3, #0
	str	r3, [fp, #-60]
.L18:
	bl	get_seconds
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	mov	r3, r4
	lsl	r3, r3, #2
	add	r3, r3, r4
	lsl	r3, r3, #1
	mov	r6, r3
	b	.L14
.L17:
	mov	r5, #0
	b	.L15
.L16:
	add	r5, r5, r4
.L15:
	cmp	r5, r7
	blt	.L16
	sub	r6, r6, #1
.L14:
	cmp	r6, #0
	bne	.L17
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	bl	get_seconds
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	blt	.L18
	ldr	r3, [fp, #-56]
	lsl	r6, r3, #2
	mov	r3, r4
	lsl	r8, r3, #2
	mov	r2, #0
	ldr	r3, .L22+12
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r9, r2
	mov	r10, r3
	ldr	r3, [fp, #-64]
	mul	r5, r3, r4
	sub	r3, r7, #1
	mov	r1, r4
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	add	r3, r3, #1
	mul	r2, r3, r5
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r9
	mov	r1, r10
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r8
	mov	r1, r6
	ldr	r0, .L22+16
	bl	printf
	lsl	r4, r4, #1
.L8:
	ldr	r3, [fp, #-56]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	cmp	r4, r3
	ble	.L19
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #1
	str	r3, [fp, #-56]
.L7:
	ldr	r3, [fp, #-56]
	cmp	r3, #33554432
	ble	.L20
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	.align	2
.L22:
	.word	clk_tck
	.word	x
	.word	1072693248
	.word	1104006501
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
