	.file	"51076.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Creating pipes failed!"
.LC1:
	.string	"fork failed!\n"
.LC2:
	.string	"child: "
.LC3:
	.string	"y"
.LC4:
	.string	"parent: "
.LC5:
	.string	"x"
.LC6:
	.string	"durationOfTimeFunction: %ld\n"
.LC7:
	.string	"%d\n"
	.align 8
.LC8:
	.string	"One context switch needs %ld nanoseconds.\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, 224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	pipe@PLT
	test	eax, eax
	jne	.L2
	lea	rax, -104[rbp]
	mov	rdi, rax
	call	pipe@PLT
	test	eax, eax
	je	.L3
.L2:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L15
.L3:
	call	fork@PLT
	cmp	eax, -1
	je	.L5
	test	eax, eax
	je	.L6
	jmp	.L17
.L5:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	setSchedAffinity
	mov	eax, 0
	call	showSchedAffinity
	mov	DWORD PTR -216[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -112[rbp]
	lea	rcx, -10[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	eax, DWORD PTR -100[rbp]
	mov	edx, 2
	lea	rsi, .LC3[rip]
	mov	edi, eax
	call	write@PLT
	add	DWORD PTR -216[rbp], 1
.L8:
	cmp	DWORD PTR -216[rbp], 9
	jle	.L9
	jmp	.L10
.L17:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	setSchedAffinity
	mov	eax, 0
	call	showSchedAffinity
	mov	DWORD PTR -212[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -108[rbp]
	mov	edx, 2
	lea	rsi, .LC5[rip]
	mov	edi, eax
	call	write@PLT
	lea	rax, -176[rbp]
	mov	rsi, rax
	mov	edi, 4
	call	clock_gettime@PLT
	mov	eax, DWORD PTR -104[rbp]
	lea	rcx, -12[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rax, -160[rbp]
	mov	rsi, rax
	mov	edi, 4
	call	clock_gettime@PLT
	lea	rax, -144[rbp]
	mov	rsi, rax
	mov	edi, 4
	call	clock_gettime@PLT
	lea	rax, -128[rbp]
	mov	rsi, rax
	mov	edi, 4
	call	clock_gettime@PLT
	mov	rax, QWORD PTR -128[rbp]
	imul	rdx, rax, 1000000000
	mov	rax, QWORD PTR -120[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -144[rbp]
	imul	rcx, rax, 1000000000
	mov	rax, QWORD PTR -136[rbp]
	add	rcx, rax
	mov	rax, rdx
	sub	rax, rcx
	mov	QWORD PTR -184[rbp], rax
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -160[rbp]
	imul	rdx, rax, 1000000000
	mov	rax, QWORD PTR -152[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -176[rbp]
	imul	rcx, rax, 1000000000
	mov	rax, QWORD PTR -168[rbp]
	add	rcx, rax
	mov	rax, rdx
	sub	rax, rcx
	sub	rax, QWORD PTR -184[rbp]
	mov	rdx, rax
	shr	rdx, 63
	add	rax, rdx
	sar	rax
	mov	rdx, rax
	mov	eax, DWORD PTR -212[rbp]
	cdqe
	mov	QWORD PTR -96[rbp+rax*8], rdx
	add	DWORD PTR -212[rbp], 1
.L11:
	cmp	DWORD PTR -212[rbp], 9
	jle	.L12
	lea	rax, -96[rbp]
	lea	rcx, cmpfunc[rip]
	mov	edx, 8
	mov	esi, 10
	mov	rdi, rax
	call	qsort@PLT
	mov	QWORD PTR -200[rbp], 0
	mov	DWORD PTR -208[rbp], 0
	mov	DWORD PTR -204[rbp], 1
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -204[rbp]
	cdqe
	mov	rax, QWORD PTR -96[rbp+rax*8]
	add	QWORD PTR -200[rbp], rax
	add	DWORD PTR -208[rbp], 1
	add	DWORD PTR -204[rbp], 1
.L13:
	cmp	DWORD PTR -204[rbp], 8
	jle	.L14
	mov	eax, DWORD PTR -208[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 1
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -208[rbp]
	movsx	rsi, eax
	mov	rax, QWORD PTR -200[rbp]
	cqo
	idiv	rsi
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR -192[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L10:
	movzx	eax, BYTE PTR -10[rbp]
	movsx	eax, al
	mov	edi, eax
	call	close@PLT
	movzx	eax, BYTE PTR -9[rbp]
	movsx	eax, al
	mov	edi, eax
	call	close@PLT
	movzx	eax, BYTE PTR -12[rbp]
	movsx	eax, al
	mov	edi, eax
	call	close@PLT
	movzx	eax, BYTE PTR -11[rbp]
	movsx	eax, al
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L15:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC9:
	.string	"[%d] sched_getaffinity = "
.LC10:
	.string	"%d "
	.text
	.globl	showSchedAffinity
	.type	showSchedAffinity, @function
showSchedAffinity:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 84
	call	sysconf@PLT
	mov	DWORD PTR -156[rbp], eax
	call	getpid@PLT
	mov	ecx, eax
	lea	rax, -144[rbp]
	mov	rdx, rax
	mov	esi, 128
	mov	edi, ecx
	call	sched_getaffinity@PLT
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -160[rbp], 0
	jmp	.L19
.L22:
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	mov	QWORD PTR -152[rbp], rax
	cmp	QWORD PTR -152[rbp], 1023
	ja	.L20
	mov	rax, QWORD PTR -152[rbp]
	shr	rax, 6
	lea	rdx, 0[0+rax*8]
	lea	rax, -144[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -152[rbp]
	and	eax, 63
	mov	ecx, eax
	shr	rdx, cl
	mov	rax, rdx
	and	eax, 1
	test	rax, rax
	je	.L20
	mov	eax, 1
	jmp	.L21
.L20:
	mov	eax, 0
.L21:
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -160[rbp], 1
.L19:
	mov	eax, DWORD PTR -160[rbp]
	cmp	eax, DWORD PTR -156[rbp]
	jl	.L22
	mov	edi, 10
	call	putchar@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	showSchedAffinity, .-showSchedAffinity
	.globl	cmpfunc
	.type	cmpfunc, @function
cmpfunc:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, edx
	sub	eax, ecx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	cmpfunc, .-cmpfunc
	.section	.rodata
.LC11:
	.string	"Reducing to 1 CPU failed!"
	.text
	.globl	setSchedAffinity
	.type	setSchedAffinity, @function
setSchedAffinity:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -144[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 16
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	mov	QWORD PTR -152[rbp], 0
	cmp	QWORD PTR -152[rbp], 1023
	ja	.L28
	mov	rax, QWORD PTR -152[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 -152[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
.L28:
	lea	rax, -144[rbp]
	mov	rdx, rax
	mov	esi, 128
	mov	edi, 0
	call	sched_setaffinity@PLT
	test	eax, eax
	je	.L31
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L31:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	setSchedAffinity, .-setSchedAffinity
	.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	"51076.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Creating pipes failed!\000"
	.align	2
.LC1:
	.ascii	"fork failed!\012\000"
	.align	2
.LC2:
	.ascii	"child: \000"
	.align	2
.LC3:
	.ascii	"y\000"
	.align	2
.LC4:
	.ascii	"parent: \000"
	.align	2
.LC5:
	.ascii	"x\000"
	.align	2
.LC6:
	.ascii	"durationOfTimeFunction: %ld\012\000"
	.align	2
.LC7:
	.ascii	"%d\012\000"
	.global	__aeabi_idiv
	.align	2
.LC8:
	.ascii	"One context switch needs %ld nanoseconds.\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #72
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	sub	r3, fp, #64
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
.L2:
	ldr	r3, .L18+4
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L18+8
	bl	fwrite
	mov	r3, #1
	b	.L15
.L3:
	bl	fork
	mov	r3, r0
	cmn	r3, #1
	beq	.L5
	cmp	r3, #0
	beq	.L6
	b	.L17
.L5:
	ldr	r3, .L18+4
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L18+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L6:
	ldr	r0, .L18+16
	bl	printf
	bl	setSchedAffinity
	bl	showSchedAffinity
	mov	r3, #0
	str	r3, [fp, #-132]
	b	.L8
.L9:
	ldr	r3, [fp, #-72]
	sub	r1, fp, #12
	mov	r2, #2
	mov	r0, r3
	bl	read
	ldr	r3, [fp, #-60]
	mov	r2, #2
	ldr	r1, .L18+20
	mov	r0, r3
	bl	write
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
.L8:
	ldr	r3, [fp, #-132]
	cmp	r3, #9
	ble	.L9
	b	.L10
.L17:
	ldr	r0, .L18+24
	bl	printf
	bl	setSchedAffinity
	bl	showSchedAffinity
	mov	r3, #0
	str	r3, [fp, #-128]
	b	.L11
.L12:
	ldr	r3, [fp, #-68]
	mov	r2, #2
	ldr	r1, .L18+28
	mov	r0, r3
	bl	write
	sub	r3, fp, #104
	mov	r1, r3
	mov	r0, #4
	bl	clock_gettime
	ldr	r3, [fp, #-64]
	sub	r1, fp, #16
	mov	r2, #2
	mov	r0, r3
	bl	read
	sub	r3, fp, #96
	mov	r1, r3
	mov	r0, #4
	bl	clock_gettime
	sub	r3, fp, #88
	mov	r1, r3
	mov	r0, #4
	bl	clock_gettime
	sub	r3, fp, #80
	mov	r1, r3
	mov	r0, #4
	bl	clock_gettime
	ldr	r3, [fp, #-80]
	ldr	r2, .L18+32
	mul	r2, r3, r2
	ldr	r3, [fp, #-76]
	add	r2, r2, r3
	ldr	r3, [fp, #-88]
	ldr	r1, .L18+32
	mul	r1, r3, r1
	ldr	r3, [fp, #-84]
	add	r3, r1, r3
	sub	r3, r2, r3
	str	r3, [fp, #-108]
	ldr	r1, [fp, #-108]
	ldr	r0, .L18+36
	bl	printf
	ldr	r3, [fp, #-96]
	ldr	r2, .L18+32
	mul	r2, r3, r2
	ldr	r3, [fp, #-92]
	add	r2, r2, r3
	ldr	r3, [fp, #-104]
	ldr	r1, .L18+32
	mul	r1, r3, r1
	ldr	r3, [fp, #-100]
	add	r3, r1, r3
	sub	r2, r2, r3
	ldr	r3, [fp, #-108]
	sub	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-52]
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L11:
	ldr	r3, [fp, #-128]
	cmp	r3, #9
	ble	.L12
	sub	r0, fp, #56
	ldr	r3, .L18+40
	mov	r2, #4
	mov	r1, #10
	bl	qsort
	mov	r3, #0
	str	r3, [fp, #-124]
	mov	r3, #0
	str	r3, [fp, #-120]
	mov	r3, #1
	str	r3, [fp, #-116]
	b	.L13
.L14:
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-52]
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L13:
	ldr	r3, [fp, #-116]
	cmp	r3, #8
	ble	.L14
	ldr	r1, [fp, #-120]
	ldr	r0, .L18+44
	bl	printf
	mov	r1, #1
	ldr	r0, .L18+44
	bl	printf
	ldr	r1, [fp, #-120]
	ldr	r0, [fp, #-124]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-112]
	ldr	r1, [fp, #-112]
	ldr	r0, .L18+48
	bl	printf
	nop
.L10:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	mov	r0, r3
	bl	close
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	mov	r0, r3
	bl	close
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	mov	r0, r3
	bl	close
	ldrb	r3, [fp, #-15]	@ zero_extendqisi2
	mov	r0, r3
	bl	close
	mov	r3, #0
.L15:
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC9
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	1000000000
	.word	.LC6
	.word	cmpfunc
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.section	.rodata
	.align	2
.LC10:
	.ascii	"[%d] sched_getaffinity = \000"
	.align	2
.LC11:
	.ascii	"%d \000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	showSchedAffinity
	.syntax unified
	.arm
	.fpu softvfp
	.type	showSchedAffinity, %function
showSchedAffinity:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #84
	bl	sysconf
	str	r0, [fp, #-144]
	bl	getpid
	sub	r3, fp, #136
	mov	r2, r3
	mov	r1, #128
	bl	sched_getaffinity
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L26+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-148]
	b	.L21
.L24:
	ldr	r3, [fp, #-148]
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #1024
	bcs	.L22
	ldr	r3, [fp, #-140]
	lsr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #136
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-140]
	and	r3, r3, #31
	lsr	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L22
	mov	r3, #1
	b	.L23
.L22:
	mov	r3, #0
.L23:
	mov	r1, r3
	ldr	r0, .L26+8
	bl	printf
	ldr	r3, [fp, #-148]
	add	r3, r3, #1
	str	r3, [fp, #-148]
.L21:
	ldr	r2, [fp, #-148]
	ldr	r3, [fp, #-144]
	cmp	r2, r3
	blt	.L24
	mov	r0, #10
	bl	putchar
	nop
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC12
	.word	.LC10
	.word	.LC11
	.size	showSchedAffinity, .-showSchedAffinity
	.align	2
	.global	cmpfunc
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmpfunc, %function
cmpfunc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	sub	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	cmpfunc, .-cmpfunc
	.section	.rodata
	.align	2
.LC13:
	.ascii	"Reducing to 1 CPU failed!\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	setSchedAffinity
	.syntax unified
	.arm
	.fpu softvfp
	.type	setSchedAffinity, %function
setSchedAffinity:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #136
	mov	r0, r3
	mov	r3, #128
	mov	r2, r3
	mov	r1, #0
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #1024
	bcs	.L32
	ldr	r3, [fp, #-140]
	lsr	r3, r3, #5
	lsl	r2, r3, #2
	sub	r1, fp, #136
	add	r2, r1, r2
	ldr	r1, [r2]
	ldr	r2, [fp, #-140]
	and	r2, r2, #31
	mov	r0, #1
	lsl	r2, r0, r2
	lsl	r3, r3, #2
	sub	r0, fp, #136
	add	r3, r0, r3
	orr	r2, r1, r2
	str	r2, [r3]
.L32:
	sub	r3, fp, #136
	mov	r2, r3
	mov	r1, #128
	mov	r0, #0
	bl	sched_setaffinity
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	ldr	r3, .L36+4
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L36+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L35:
	nop
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC14
	.word	stderr
	.word	.LC13
	.size	setSchedAffinity, .-setSchedAffinity
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
