	.file	"540706.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Need the number of pages and the number of trials\n"
.LC1:
	.string	"pthread_setaffinity_np"
.LC2:
	.string	"Invalid input\n"
.LC3:
	.string	"times"
.LC5:
	.string	"%f %f %f\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
	push	rbx
	sub	rsp, 312
	.cfi_offset 3, -24
	mov	DWORD PTR -308[rbp], edi
	mov	QWORD PTR -320[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -308[rbp], 2
	jg	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 50
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	cmp	DWORD PTR -308[rbp], 3
	jne	.L3
	call	pthread_self@PLT
	mov	QWORD PTR -280[rbp], rax
	lea	rax, -160[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	CPU_ZERO@PLT
	lea	rax, -160[rbp]
	mov	rsi, rax
	mov	edi, 0
	mov	eax, 0
	call	CPU_SET@PLT
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -280[rbp]
	mov	esi, 128
	mov	rdi, rax
	mov	eax, 0
	call	pthread_setaffinity_np@PLT
	mov	DWORD PTR -296[rbp], eax
	cmp	DWORD PTR -296[rbp], 0
	je	.L3
	call	__errno_location@PLT
	mov	edx, DWORD PTR -296[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	edi, 30
	call	sysconf@PLT
	mov	QWORD PTR -272[rbp], rax
	mov	edi, 2
	call	sysconf@PLT
	mov	QWORD PTR -264[rbp], rax
	mov	rax, QWORD PTR -272[rbp]
	lea	rdx, 3[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 2
	mov	QWORD PTR -256[rbp], rax
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -292[rbp], eax
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -288[rbp], eax
	cmp	DWORD PTR -292[rbp], 0
	jg	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	eax, DWORD PTR -292[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -272[rbp]
	imul	rax, rdx
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -248[rbp], rax
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	times@PLT
	mov	QWORD PTR -240[rbp], rax
	mov	rax, QWORD PTR -240[rbp]
	cmp	eax, -1
	jne	.L6
	call	__errno_location@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rbx]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	DWORD PTR -304[rbp], 0
	jmp	.L7
.L10:
	mov	DWORD PTR -300[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -248[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -248[rbp]
	add	rax, rcx
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -256[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -300[rbp]
	add	eax, edx
	mov	DWORD PTR -300[rbp], eax
.L8:
	mov	eax, DWORD PTR -300[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	imul	rax, QWORD PTR -256[rbp]
	cmp	rdx, rax
	jl	.L9
	add	DWORD PTR -304[rbp], 1
.L7:
	mov	eax, DWORD PTR -304[rbp]
	cmp	eax, DWORD PTR -288[rbp]
	jl	.L10
	lea	rax, -192[rbp]
	mov	rdi, rax
	call	times@PLT
	mov	QWORD PTR -232[rbp], rax
	mov	rax, QWORD PTR -232[rbp]
	cmp	eax, -1
	jne	.L11
	call	__errno_location@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rbx]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	eax, DWORD PTR -288[rbp]
	imul	eax, DWORD PTR -292[rbp]
	mov	DWORD PTR -284[rbp], eax
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR -216[rbp]
	sub	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, QWORD PTR -264[rbp]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC4[rip]
	mulsd	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -284[rbp]
	movapd	xmm4, xmm0
	divsd	xmm4, xmm1
	mov	rax, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR -224[rbp]
	sub	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, QWORD PTR -264[rbp]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC4[rip]
	mulsd	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -284[rbp]
	movapd	xmm3, xmm0
	divsd	xmm3, xmm1
	mov	rax, QWORD PTR -232[rbp]
	sub	rax, QWORD PTR -240[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, QWORD PTR -264[rbp]
	divsd	xmm0, xmm2
	movapd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC4[rip]
	mulsd	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -284[rbp]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movapd	xmm2, xmm4
	movapd	xmm1, xmm3
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 3
	call	printf@PLT
	mov	rax, QWORD PTR -248[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC4:
	.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	"540706.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Need the number of pages and the number of trials\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"pthread_setaffinity_np\000"
	.align	2
.LC2:
	.ascii	"Invalid input\012\000"
	.align	2
.LC3:
	.ascii	"times\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.align	2
.LC4:
	.ascii	"%f %f %f\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 224
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #240
	str	r0, [fp, #-248]
	str	r1, [fp, #-252]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	ldr	r3, [fp, #-248]
	cmp	r3, #2
	bgt	.L2
	ldr	r3, .L14+4
	ldr	r3, [r3]
	mov	r2, #50
	mov	r1, #1
	ldr	r0, .L14+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-248]
	cmp	r3, #3
	bne	.L3
	bl	pthread_self
	str	r0, [fp, #-236]
	sub	r3, fp, #160
	mov	r0, r3
	bl	CPU_ZERO
	sub	r3, fp, #160
	mov	r1, r3
	mov	r0, #0
	bl	CPU_SET
	sub	r3, fp, #160
	mov	r2, r3
	mov	r1, #128
	ldr	r0, [fp, #-236]
	bl	pthread_setaffinity_np
	str	r0, [fp, #-232]
	ldr	r3, [fp, #-232]
	cmp	r3, #0
	beq	.L3
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-232]
	str	r3, [r2]
	ldr	r0, .L14+12
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	mov	r0, #30
	bl	sysconf
	str	r0, [fp, #-228]
	mov	r0, #2
	bl	sysconf
	str	r0, [fp, #-224]
	ldr	r3, [fp, #-228]
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	str	r3, [fp, #-220]
	ldr	r3, [fp, #-252]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-216]
	ldr	r3, [fp, #-252]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-212]
	ldr	r3, [fp, #-216]
	cmp	r3, #0
	bgt	.L5
	ldr	r3, .L14+4
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L14+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, [fp, #-216]
	ldr	r2, [fp, #-228]
	mul	r3, r2, r3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-208]
	sub	r3, fp, #192
	mov	r0, r3
	bl	times
	str	r0, [fp, #-204]
	ldr	r3, [fp, #-204]
	cmn	r3, #1
	bne	.L6
	bl	__errno_location
	mov	r4, r0
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [r4]
	str	r3, [r2]
	ldr	r0, .L14+20
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	mov	r3, #0
	str	r3, [fp, #-244]
	b	.L7
.L10:
	mov	r3, #0
	str	r3, [fp, #-240]
	b	.L8
.L9:
	ldr	r3, [fp, #-240]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-208]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-240]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-208]
	add	r3, r1, r3
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r2, [fp, #-240]
	ldr	r3, [fp, #-220]
	add	r3, r2, r3
	str	r3, [fp, #-240]
.L8:
	ldr	r3, [fp, #-216]
	ldr	r2, [fp, #-220]
	mul	r3, r2, r3
	ldr	r2, [fp, #-240]
	cmp	r2, r3
	blt	.L9
	ldr	r3, [fp, #-244]
	add	r3, r3, #1
	str	r3, [fp, #-244]
.L7:
	ldr	r2, [fp, #-244]
	ldr	r3, [fp, #-212]
	cmp	r2, r3
	blt	.L10
	sub	r3, fp, #176
	mov	r0, r3
	bl	times
	str	r0, [fp, #-200]
	ldr	r3, [fp, #-200]
	cmn	r3, #1
	bne	.L11
	bl	__errno_location
	mov	r4, r0
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [r4]
	str	r3, [r2]
	ldr	r0, .L14+20
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	ldr	r3, [fp, #-212]
	ldr	r2, [fp, #-216]
	mul	r3, r2, r3
	str	r3, [fp, #-196]
	ldr	r2, [fp, #-200]
	ldr	r3, [fp, #-204]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-224]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L14+24
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-196]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r8, r2
	mov	r9, r3
	ldr	r2, [fp, #-176]
	ldr	r3, [fp, #-192]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-224]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L14+24
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-196]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r2, [fp, #-172]
	ldr	r3, [fp, #-188]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-224]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L14+24
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-196]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r6-r7}
	mov	r2, r8
	mov	r3, r9
	ldr	r0, .L14+28
	bl	printf
	ldr	r0, [fp, #-208]
	bl	free
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC5
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	1104006501
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
