	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function cpustats
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x4059000000000000              ## double 100
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_cpustats:                              ## @cpustats
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_CPUSTATES@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	testl	%edx, %edx
	jle	LBB0_8
## %bb.1:
	movq	_cur@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	leaq	-1(%rdx), %rsi
	movl	%edx, %eax
	andl	$7, %eax
	cmpq	$7, %rsi
	jae	LBB0_9
## %bb.2:
	xorpd	%xmm0, %xmm0
	xorl	%esi, %esi
	jmp	LBB0_3
LBB0_9:
	andl	$-8, %edx
	xorpd	%xmm0, %xmm0
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	addsd	(%rcx,%rsi,8), %xmm0
	addsd	8(%rcx,%rsi,8), %xmm0
	addsd	16(%rcx,%rsi,8), %xmm0
	addsd	24(%rcx,%rsi,8), %xmm0
	addsd	32(%rcx,%rsi,8), %xmm0
	addsd	40(%rcx,%rsi,8), %xmm0
	addsd	48(%rcx,%rsi,8), %xmm0
	addsd	56(%rcx,%rsi,8), %xmm0
	addq	$8, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_10
LBB0_3:
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	(%rcx,%rsi,8), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addsd	(%rcx,%rdx,8), %xmm0
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_5
LBB0_6:
	xorpd	%xmm2, %xmm2
	cmpneqsd	%xmm0, %xmm2
	andpd	%xmm2, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	andnpd	%xmm1, %xmm2
	orpd	%xmm0, %xmm2
	movapd	%xmm2, -48(%rbp)                ## 16-byte Spill
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movsd	(%rax,%rbx,8), %xmm0            ## xmm0 = mem[0],zero
	mulsd	LCPI0_1(%rip), %xmm0
	divsd	-48(%rbp), %xmm0                ## 16-byte Folded Reload
	cvttsd2si	%xmm0, %edi
	callq	_rint
	movq	%r12, %rdi
	callq	_printf
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPUSTATES,4,2                  ## @CPUSTATES
	.comm	_cur,8,3                        ## @cur
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" %2.0f"

	.no_dead_strip	_cpustats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpustats
_cpustats:                              ; @cpustats
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x20, _CPUSTATES@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CPUSTATES@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
Lloh2:
	adrp	x21, _cur@GOTPAGE
Lloh3:
	ldr	x21, [x21, _cur@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	w8, #4
	b.hs	LBB0_3
; %bb.2:
	mov	x10, #0
	movi	d0, #0000000000000000
	b	LBB0_6
LBB0_3:
	and	x10, x8, #0xfffffffc
	add	x11, x9, #16
	movi	d0, #0000000000000000
	mov	x12, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	d1, d2, [x11, #-16]
	ldp	d3, d4, [x11], #32
	fadd	d0, d0, d1
	fadd	d0, d0, d2
	fadd	d0, d0, d3
	fadd	d0, d0, d4
	subs	x12, x12, #4
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x8
	b.eq	LBB0_8
LBB0_6:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d1, [x9], #8
	fadd	d0, d0, d1
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	mov	x22, #0
	fcmp	d0, #0.0
	fmov	d1, #1.00000000
	fcsel	d8, d0, d1, ne
	mov	x23, #4636737291354636288
Lloh4:
	adrp	x19, l_.str@PAGE
Lloh5:
	add	x19, x19, l_.str@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	d0, [x8, x22, lsl #3]
	fmov	d1, x23
	fmul	d0, d0, d1
	fdiv	d0, d0, d8
	fcvtzs	w0, d0
	bl	_rint
	mov	x0, x19
	bl	_printf
	add	x22, x22, #1
	ldrsw	x8, [x20]
	cmp	x22, x8
	b.lt	LBB0_9
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CPUSTATES,4,2                  ; @CPUSTATES
	.comm	_cur,8,3                        ; @cur
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" %2.0f"

	.no_dead_strip	_cpustats
.subsections_via_symbols
