	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Platform_setCPUAverageValues
_Platform_setCPUAverageValues:          ## @Platform_setCPUAverageValues
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jle	LBB0_3
## %bb.1:
	movl	%eax, %r12d
	negl	%r12d
	xorpd	%xmm0, %xmm0
	movl	$1, %ebx
	movq	_CPU_METER_NORMAL@GOTPCREL(%rip), %r15
	movq	_CPU_METER_KERNEL@GOTPCREL(%rip), %r13
	xorpd	%xmm2, %xmm2
	xorpd	%xmm4, %xmm4
	xorpd	%xmm3, %xmm3
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsd	%xmm4, -56(%rbp)                ## 8-byte Spill
	movsd	%xmm3, -64(%rbp)                ## 8-byte Spill
	movsd	%xmm2, -72(%rbp)                ## 8-byte Spill
	movsd	%xmm0, -80(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_Platform_setCPUValues
	movsd	-56(%rbp), %xmm4                ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	movsd	-64(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	movsd	-72(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movsd	-80(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rax, %xmm1
	movq	(%r14), %rax
	movq	_CPU_METER_NICE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addsd	(%rax,%rcx,8), %xmm3
	movq	(%r15), %rdx
	addsd	(%rax,%rdx,8), %xmm4
	movq	(%r13), %rsi
	addsd	(%rax,%rsi,8), %xmm2
	addsd	%xmm1, %xmm0
	leal	(%r12,%rbx), %edi
	incl	%edi
                                        ## kill: def $ebx killed $ebx killed $rbx
	incl	%ebx
                                        ## kill: def $ebx killed $ebx def $rbx
	cmpl	$1, %edi
	jne	LBB0_2
	jmp	LBB0_4
LBB0_3:
	movq	(%r14), %rax
	movq	_CPU_METER_NICE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_CPU_METER_NORMAL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_CPU_METER_KERNEL@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	xorpd	%xmm3, %xmm3
	xorpd	%xmm4, %xmm4
	xorpd	%xmm2, %xmm2
	xorpd	%xmm0, %xmm0
LBB0_4:
	xorps	%xmm1, %xmm1
	cvtsi2sdl	-44(%rbp), %xmm1        ## 4-byte Folded Reload
	divsd	%xmm1, %xmm3
	movsd	%xmm3, (%rax,%rcx,8)
	divsd	%xmm1, %xmm4
	movsd	%xmm4, (%rax,%rdx,8)
	divsd	%xmm1, %xmm2
	movsd	%xmm2, (%rax,%rsi,8)
	divsd	%xmm1, %xmm0
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPU_METER_NICE,8,3             ## @CPU_METER_NICE
	.comm	_CPU_METER_NORMAL,8,3           ## @CPU_METER_NORMAL
	.comm	_CPU_METER_KERNEL,8,3           ## @CPU_METER_KERNEL
	.no_dead_strip	_Platform_setCPUAverageValues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Platform_setCPUAverageValues
_Platform_setCPUAverageValues:          ; @Platform_setCPUAverageValues
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	.cfi_offset b10, -88
	.cfi_offset b11, -96
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w21, [x8]
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #0
Lloh0:
	adrp	x22, _CPU_METER_NICE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CPU_METER_NICE@GOTPAGEOFF]
Lloh2:
	adrp	x23, _CPU_METER_NORMAL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CPU_METER_NORMAL@GOTPAGEOFF]
	movi	d8, #0000000000000000
Lloh4:
	adrp	x24, _CPU_METER_KERNEL@GOTPAGE
Lloh5:
	ldr	x24, [x24, _CPU_METER_KERNEL@GOTPAGEOFF]
	movi	d10, #0000000000000000
	movi	d11, #0000000000000000
	movi	d9, #0000000000000000
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w20, w20, #1
	mov	x0, x19
	mov	x1, x20
	bl	_Platform_setCPUValues
	scvtf	d0, x0
	fadd	d8, d8, d0
	ldr	x8, [x19]
	ldr	x9, [x22]
	ldr	d0, [x8, x9, lsl #3]
	fadd	d9, d9, d0
	ldr	x10, [x23]
	ldr	d0, [x8, x10, lsl #3]
	fadd	d11, d11, d0
	ldr	x11, [x24]
	ldr	d0, [x8, x11, lsl #3]
	fadd	d10, d10, d0
	cmp	w21, w20
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x9, _CPU_METER_NICE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CPU_METER_NICE@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _CPU_METER_NORMAL@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CPU_METER_NORMAL@GOTPAGEOFF]
Lloh11:
	adrp	x11, _CPU_METER_KERNEL@GOTPAGE
Lloh12:
	ldr	x11, [x11, _CPU_METER_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
Lloh14:
	ldr	x11, [x11]
	movi	d9, #0000000000000000
	movi	d11, #0000000000000000
	movi	d10, #0000000000000000
	movi	d8, #0000000000000000
LBB0_4:
	scvtf	d0, w21
	fdiv	d1, d9, d0
	str	d1, [x8, x9, lsl #3]
	fdiv	d1, d11, d0
	str	d1, [x8, x10, lsl #3]
	fdiv	d1, d10, d0
	str	d1, [x8, x11, lsl #3]
	fdiv	d0, d8, d0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CPU_METER_NICE,8,3             ; @CPU_METER_NICE
	.comm	_CPU_METER_NORMAL,8,3           ; @CPU_METER_NORMAL
	.comm	_CPU_METER_KERNEL,8,3           ; @CPU_METER_KERNEL
	.no_dead_strip	_Platform_setCPUAverageValues
.subsections_via_symbols
