	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function Platform_setCPUValues
LCPI0_0:
	.quad	0x4059000000000000              ## double 100
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_Platform_setCPUValues
	.p2align	4, 0x90
_Platform_setCPUValues:                 ## @Platform_setCPUValues
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	testl	%esi, %esi
	je	LBB0_10
## %bb.1:
	movq	8(%rbx), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rdi
	movslq	%esi, %rsi
	movq	_CPU_STATE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	-8(%rcx,%rsi,8), %rax
	movq	-8(%rdi,%rsi,8), %rcx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:
	cmpq	$1, %rdx
	jne	LBB0_8
## %bb.4:
	xorpd	%xmm0, %xmm0
	xorl	%esi, %esi
	jmp	LBB0_5
LBB0_10:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Platform_setCPUAverageValues   ## TAILCALL
LBB0_2:
	xorpd	%xmm0, %xmm0
	jmp	LBB0_7
LBB0_8:
	movq	%rdx, %rdi
	andq	$-2, %rdi
	xorpd	%xmm0, %xmm0
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm1, %xmm1
	cvtsi2sdq	(%rax,%rsi,8), %xmm1
	xorps	%xmm2, %xmm2
	cvtsi2sdq	(%rcx,%rsi,8), %xmm2
	subsd	%xmm2, %xmm1
	addsd	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%rax,%rsi,8), %xmm0
	xorps	%xmm2, %xmm2
	cvtsi2sdq	8(%rcx,%rsi,8), %xmm2
	subsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	addq	$2, %rsi
	cmpq	%rsi, %rdi
	jne	LBB0_9
LBB0_5:
	testb	$1, %dl
	je	LBB0_7
## %bb.6:
	xorps	%xmm1, %xmm1
	cvtsi2sdq	(%rax,%rsi,8), %xmm1
	xorps	%xmm2, %xmm2
	cvtsi2sdq	(%rcx,%rsi,8), %xmm2
	subsd	%xmm2, %xmm1
	addsd	%xmm1, %xmm0
LBB0_7:
	movq	_CPU_STATE_NICE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorps	%xmm1, %xmm1
	cvtsi2sdq	(%rax,%rdx,8), %xmm1
	xorps	%xmm2, %xmm2
	cvtsi2sdq	(%rcx,%rdx,8), %xmm2
	subsd	%xmm2, %xmm1
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	mulsd	%xmm2, %xmm1
	movapd	%xmm2, %xmm3
	divsd	%xmm0, %xmm1
	movq	(%rbx), %rdx
	movq	_CPU_METER_NICE@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movsd	%xmm1, (%rdx,%rsi,8)
	movq	_CPU_STATE_USER@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	xorps	%xmm1, %xmm1
	cvtsi2sdq	(%rax,%rsi,8), %xmm1
	xorps	%xmm2, %xmm2
	cvtsi2sdq	(%rcx,%rsi,8), %xmm2
	subsd	%xmm2, %xmm1
	mulsd	%xmm3, %xmm1
	divsd	%xmm0, %xmm1
	movq	_CPU_METER_NORMAL@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movsd	%xmm1, (%rdx,%rsi,8)
	movq	_CPU_STATE_SYSTEM@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	xorps	%xmm1, %xmm1
	cvtsi2sdq	(%rax,%rsi,8), %xmm1
	xorps	%xmm2, %xmm2
	cvtsi2sdq	(%rcx,%rsi,8), %xmm2
	subsd	%xmm2, %xmm1
	mulsd	%xmm3, %xmm1
	divsd	%xmm0, %xmm1
	movq	_CPU_METER_KERNEL@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movsd	%xmm1, (%rdx,%rax,8)
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_Meter_setItems
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	movsd	(%rax,%rcx,8), %xmm0            ## xmm0 = mem[0],zero
	movq	(%r15), %rcx
	addsd	(%rax,%rcx,8), %xmm0
	movq	(%r12), %rcx
	addsd	(%rax,%rcx,8), %xmm0
	xorpd	%xmm1, %xmm1
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CLAMP                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CPU_STATE_MAX,8,3              ## @CPU_STATE_MAX
	.comm	_CPU_STATE_NICE,8,3             ## @CPU_STATE_NICE
	.comm	_CPU_METER_NICE,8,3             ## @CPU_METER_NICE
	.comm	_CPU_STATE_USER,8,3             ## @CPU_STATE_USER
	.comm	_CPU_METER_NORMAL,8,3           ## @CPU_METER_NORMAL
	.comm	_CPU_STATE_SYSTEM,8,3           ## @CPU_STATE_SYSTEM
	.comm	_CPU_METER_KERNEL,8,3           ## @CPU_METER_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Platform_setCPUValues          ; -- Begin function Platform_setCPUValues
	.p2align	2
_Platform_setCPUValues:                 ; @Platform_setCPUValues
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 b8, -56
	.cfi_offset b9, -64
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	cbz	w1, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	sbfiz	x9, x1, #3, #32
	ldp	x8, x11, [x8]
Lloh0:
	adrp	x10, _CPU_STATE_MAX@GOTPAGE
Lloh1:
	ldr	x10, [x10, _CPU_STATE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	sub	x9, x9, #8
	ldr	x8, [x8, x9]
	ldr	x9, [x11, x9]
	cbz	x10, LBB0_5
; %bb.2:
	cmp	x10, #8
	b.hs	LBB0_6
; %bb.3:
	mov	x11, #0
	movi	d0, #0000000000000000
	b	LBB0_9
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	b	_Platform_setCPUAverageValues
LBB0_5:
	movi	d0, #0000000000000000
	b	LBB0_11
LBB0_6:
	and	x11, x10, #0xfffffffffffffff8
	add	x12, x8, #32
	add	x13, x9, #32
	movi	d0, #0000000000000000
	mov	x14, x11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x12, #-32]
	ldp	q3, q4, [x12], #64
	scvtf.2d	v1, v1
	scvtf.2d	v2, v2
	scvtf.2d	v3, v3
	scvtf.2d	v4, v4
	ldp	q5, q6, [x13, #-32]
	ldp	q7, q16, [x13], #64
	scvtf.2d	v5, v5
	scvtf.2d	v6, v6
	scvtf.2d	v7, v7
	scvtf.2d	v16, v16
	fsub.2d	v1, v1, v5
	mov	d5, v1[1]
	fsub.2d	v2, v2, v6
	mov	d6, v2[1]
	fsub.2d	v3, v3, v7
	mov	d7, v3[1]
	fsub.2d	v4, v4, v16
	mov	d16, v4[1]
	fadd	d0, d0, d1
	fadd	d0, d0, d5
	fadd	d0, d0, d2
	fadd	d0, d0, d6
	fadd	d0, d0, d3
	fadd	d0, d0, d7
	fadd	d0, d0, d4
	fadd	d0, d0, d16
	subs	x14, x14, #8
	b.ne	LBB0_7
; %bb.8:
	cmp	x10, x11
	b.eq	LBB0_11
LBB0_9:
	sub	x10, x10, x11
	lsl	x12, x11, #3
	add	x11, x9, x12
	add	x12, x8, x12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	d1, [x12], #8
	scvtf	d1, d1
	ldr	d2, [x11], #8
	scvtf	d2, d2
	fsub	d1, d1, d2
	fadd	d0, d0, d1
	subs	x10, x10, #1
	b.ne	LBB0_10
LBB0_11:
Lloh3:
	adrp	x10, _CPU_STATE_NICE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CPU_STATE_NICE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	lsl	x10, x10, #3
	ldr	d1, [x8, x10]
	scvtf	d1, d1
	ldr	d2, [x9, x10]
	scvtf	d2, d2
	fsub	d1, d1, d2
	mov	x10, #4636737291354636288
	fmov	d8, x10
	fmul	d1, d1, d8
	fdiv	d1, d1, d0
	ldr	x10, [x19]
Lloh6:
	adrp	x20, _CPU_METER_NICE@GOTPAGE
Lloh7:
	ldr	x20, [x20, _CPU_METER_NICE@GOTPAGEOFF]
	ldr	x11, [x20]
	str	d1, [x10, x11, lsl #3]
Lloh8:
	adrp	x11, _CPU_STATE_USER@GOTPAGE
Lloh9:
	ldr	x11, [x11, _CPU_STATE_USER@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	lsl	x11, x11, #3
	ldr	d1, [x8, x11]
	scvtf	d1, d1
	ldr	d2, [x9, x11]
	scvtf	d2, d2
	fsub	d1, d1, d2
	fmul	d1, d1, d8
	fdiv	d1, d1, d0
Lloh11:
	adrp	x21, _CPU_METER_NORMAL@GOTPAGE
Lloh12:
	ldr	x21, [x21, _CPU_METER_NORMAL@GOTPAGEOFF]
	ldr	x11, [x21]
	str	d1, [x10, x11, lsl #3]
Lloh13:
	adrp	x11, _CPU_STATE_SYSTEM@GOTPAGE
Lloh14:
	ldr	x11, [x11, _CPU_STATE_SYSTEM@GOTPAGEOFF]
Lloh15:
	ldr	x11, [x11]
	lsl	x11, x11, #3
	ldr	d1, [x8, x11]
	scvtf	d1, d1
	ldr	d2, [x9, x11]
	scvtf	d2, d2
	fsub	d1, d1, d2
	fmul	d1, d1, d8
	fdiv	d0, d1, d0
Lloh16:
	adrp	x22, _CPU_METER_KERNEL@GOTPAGE
Lloh17:
	ldr	x22, [x22, _CPU_METER_KERNEL@GOTPAGEOFF]
	ldr	x8, [x22]
	str	d0, [x10, x8, lsl #3]
	mov	x0, x19
	mov	w1, #3
	bl	_Meter_setItems
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	d0, [x8, x9, lsl #3]
	ldr	x9, [x21]
	ldr	d1, [x8, x9, lsl #3]
	fadd	d0, d0, d1
	ldr	x9, [x22]
	ldr	d1, [x8, x9, lsl #3]
	fadd	d0, d0, d1
	movi	d1, #0000000000000000
	fmov	d2, d8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	b	_CLAMP
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CPU_STATE_MAX,8,3              ; @CPU_STATE_MAX
	.comm	_CPU_STATE_NICE,8,3             ; @CPU_STATE_NICE
	.comm	_CPU_METER_NICE,8,3             ; @CPU_METER_NICE
	.comm	_CPU_STATE_USER,8,3             ; @CPU_STATE_USER
	.comm	_CPU_METER_NORMAL,8,3           ; @CPU_METER_NORMAL
	.comm	_CPU_STATE_SYSTEM,8,3           ; @CPU_STATE_SYSTEM
	.comm	_CPU_METER_KERNEL,8,3           ; @CPU_METER_KERNEL
.subsections_via_symbols
