	.file	"146940.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Please restart with %s num-of-pages num-of-trials\n"
	.align 8
.LC1:
	.string	"num-p: %d -> time: %llu (prec: %llu, pagesize %d)\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, 256
	mov	DWORD PTR -244[rbp], edi
	mov	QWORD PTR -256[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -244[rbp], 3
	je	.L2
	mov	rax, QWORD PTR -256[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rax, -144[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 16
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	mov	QWORD PTR -192[rbp], 3
	cmp	QWORD PTR -192[rbp], 1023
	ja	.L4
	mov	rax, QWORD PTR -192[rbp]
	shr	rax, 6
	lea	rdx, 0[0+rax*8]
	lea	rcx, -144[rbp]
	add	rdx, rcx
	mov	rsi, QWORD PTR [rdx]
	mov	rdx, QWORD PTR -192[rbp]
	and	edx, 63
	mov	edi, 1
	mov	ecx, edx
	sal	rdi, cl
	mov	rdx, rdi
	lea	rcx, 0[0+rax*8]
	lea	rax, -144[rbp]
	add	rax, rcx
	or	rdx, rsi
	mov	QWORD PTR [rax], rdx
.L4:
	call	getpid@PLT
	mov	ecx, eax
	lea	rax, -144[rbp]
	mov	rdx, rax
	mov	esi, 128
	mov	edi, ecx
	call	sched_setaffinity@PLT
	call	getpagesize@PLT
	mov	DWORD PTR -224[rbp], eax
	mov	rax, QWORD PTR -256[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -220[rbp], eax
	mov	rax, QWORD PTR -256[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -216[rbp], eax
	mov	QWORD PTR -208[rbp], 0
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	shr	rax, 2
	mov	DWORD PTR -212[rbp], eax
	mov	eax, DWORD PTR -220[rbp]
	imul	eax, DWORD PTR -212[rbp]
	cdqe
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -184[rbp], rax
	mov	QWORD PTR -200[rbp], 0
	mov	DWORD PTR -236[rbp], 0
	jmp	.L5
.L6:
	lea	rax, -176[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	lea	rax, -160[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	rdx, QWORD PTR -176[rbp]
	sub	rax, rdx
	imul	rdx, rax, 1000000000
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -168[rbp]
	sub	rax, rdx
	add	QWORD PTR -208[rbp], rax
	add	DWORD PTR -236[rbp], 1
.L5:
	cmp	DWORD PTR -236[rbp], 999999
	jbe	.L6
	mov	rax, QWORD PTR -208[rbp]
	movabs	rdx, 4835703278458516699
	mul	rdx
	mov	rax, rdx
	shr	rax, 18
	mov	QWORD PTR -208[rbp], rax
	mov	DWORD PTR -232[rbp], 0
	jmp	.L7
.L10:
	mov	DWORD PTR -228[rbp], 0
	jmp	.L8
.L9:
	lea	rax, -176[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	mov	eax, DWORD PTR -228[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -228[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rcx
	add	rdx, 1
	mov	QWORD PTR [rax], rdx
	lea	rax, -160[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	rdx, QWORD PTR -176[rbp]
	sub	rax, rdx
	imul	rdx, rax, 1000000000
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -168[rbp]
	sub	rax, rdx
	sub	rax, QWORD PTR -208[rbp]
	add	QWORD PTR -200[rbp], rax
	mov	eax, DWORD PTR -212[rbp]
	add	DWORD PTR -228[rbp], eax
.L8:
	mov	eax, DWORD PTR -220[rbp]
	imul	eax, DWORD PTR -212[rbp]
	cmp	DWORD PTR -228[rbp], eax
	jl	.L9
	add	DWORD PTR -232[rbp], 1
.L7:
	mov	eax, DWORD PTR -232[rbp]
	cmp	eax, DWORD PTR -216[rbp]
	jl	.L10
	mov	eax, DWORD PTR -216[rbp]
	imul	eax, DWORD PTR -220[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -200[rbp]
	mov	edx, 0
	div	rsi
	mov	QWORD PTR -200[rbp], rax
	mov	esi, DWORD PTR -224[rbp]
	mov	rcx, QWORD PTR -208[rbp]
	mov	rdx, QWORD PTR -200[rbp]
	mov	eax, DWORD PTR -220[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"146940.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Please restart with %s num-of-pages num-of-trials\012"
	.ascii	"\000"
	.global	__aeabi_uldivmod
	.align	2
.LC1:
	.ascii	"num-p: %d -> time: %llu (prec: %llu, pagesize %d)\012"
	.ascii	"\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #232
	str	r0, [fp, #-240]
	str	r1, [fp, #-244]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	ldr	r3, [fp, #-240]
	cmp	r3, #3
	beq	.L2
	ldr	r3, [fp, #-244]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L13+4
	bl	printf
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #160
	mov	r0, r3
	mov	r3, #128
	mov	r2, r3
	mov	r1, #0
	bl	memset
	mov	r3, #3
	str	r3, [fp, #-220]
	ldr	r3, [fp, #-220]
	cmp	r3, #1024
	bcs	.L4
	ldr	r3, [fp, #-220]
	lsr	r3, r3, #5
	lsl	r2, r3, #2
	sub	r1, fp, #160
	add	r2, r1, r2
	ldr	r1, [r2]
	ldr	r2, [fp, #-220]
	and	r2, r2, #31
	mov	r0, #1
	lsl	r2, r0, r2
	lsl	r3, r3, #2
	sub	r0, fp, #160
	add	r3, r0, r3
	orr	r2, r1, r2
	str	r2, [r3]
.L4:
	bl	getpid
	sub	r3, fp, #160
	mov	r2, r3
	mov	r1, #128
	bl	sched_setaffinity
	bl	getpagesize
	str	r0, [fp, #-216]
	ldr	r3, [fp, #-244]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-212]
	ldr	r3, [fp, #-244]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-208]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-196]
	str	r3, [fp, #-192]
	ldr	r3, [fp, #-216]
	lsr	r3, r3, #2
	str	r3, [fp, #-204]
	ldr	r3, [fp, #-212]
	ldr	r2, [fp, #-204]
	mul	r3, r2, r3
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-200]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-188]
	str	r3, [fp, #-184]
	mov	r3, #0
	str	r3, [fp, #-232]
	b	.L5
.L6:
	sub	r3, fp, #176
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	sub	r3, fp, #168
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	ldr	r2, [fp, #-168]
	ldr	r3, [fp, #-176]
	sub	r3, r2, r3
	ldr	r2, .L13+8
	mul	r2, r3, r2
	ldr	r3, [fp, #-164]
	add	r2, r2, r3
	ldr	r3, [fp, #-172]
	sub	r3, r2, r3
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #196
	ldmia	r1, {r0-r1}
	adds	r8, r0, r2
	adc	r9, r1, r3
	str	r8, [fp, #-196]
	str	r9, [fp, #-192]
	ldr	r3, [fp, #-232]
	add	r3, r3, #1
	str	r3, [fp, #-232]
.L5:
	ldr	r3, [fp, #-232]
	ldr	r2, .L13+12
	cmp	r3, r2
	bcc	.L6
	sub	r1, fp, #196
	ldmia	r1, {r0-r1}
	ldr	r2, .L13+12
	mov	r3, #0
	bl	__aeabi_uldivmod
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-196]
	str	r3, [fp, #-192]
	mov	r3, #0
	str	r3, [fp, #-228]
	b	.L7
.L10:
	mov	r3, #0
	str	r3, [fp, #-224]
	b	.L8
.L9:
	sub	r3, fp, #176
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	ldr	r3, [fp, #-224]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-200]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-224]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-200]
	add	r3, r1, r3
	add	r2, r2, #1
	str	r2, [r3]
	sub	r3, fp, #168
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	ldr	r2, [fp, #-168]
	ldr	r3, [fp, #-176]
	sub	r3, r2, r3
	ldr	r2, .L13+8
	mul	r2, r3, r2
	ldr	r3, [fp, #-164]
	add	r2, r2, r3
	ldr	r3, [fp, #-172]
	sub	r3, r2, r3
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #196
	ldmia	r3, {r2-r3}
	subs	r4, r0, r2
	sbc	r5, r1, r3
	sub	r3, fp, #188
	ldmia	r3, {r2-r3}
	adds	r6, r2, r4
	adc	r7, r3, r5
	str	r6, [fp, #-188]
	str	r7, [fp, #-184]
	ldr	r2, [fp, #-224]
	ldr	r3, [fp, #-204]
	add	r3, r2, r3
	str	r3, [fp, #-224]
.L8:
	ldr	r3, [fp, #-212]
	ldr	r2, [fp, #-204]
	mul	r3, r2, r3
	ldr	r2, [fp, #-224]
	cmp	r2, r3
	blt	.L9
	ldr	r3, [fp, #-228]
	add	r3, r3, #1
	str	r3, [fp, #-228]
.L7:
	ldr	r2, [fp, #-228]
	ldr	r3, [fp, #-208]
	cmp	r2, r3
	blt	.L10
	ldr	r3, [fp, #-208]
	ldr	r2, [fp, #-212]
	mul	r3, r2, r3
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #188
	ldmia	r1, {r0-r1}
	bl	__aeabi_uldivmod
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-188]
	str	r3, [fp, #-184]
	ldr	r3, [fp, #-216]
	str	r3, [sp, #8]
	sub	r3, fp, #196
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #188
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-212]
	ldr	r0, .L13+16
	bl	printf
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC2
	.word	.LC0
	.word	1000000000
	.word	1000000
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
