	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function i_cpustates
LCPI0_0:
	.quad	0x4024000000000000              ## double 10
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_i_cpustates
	.p2align	4, 0x90
_i_cpustates:                           ## @i_cpustates
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_num_cpus@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_13
## %bb.1:
	movq	_cpustates_column@GOTPCREL(%rip), %rbx
	xorl	%esi, %esi
	movq	%rdi, %r12
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	incl	%esi
	movq	_num_cpus@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	%edx, %esi
	jge	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
	movq	_cpustate_names@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	cmpl	$1, %edx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	cmpl	(%rbx), %eax
	jg	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r14d
	decl	%r14d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$32, %edi
	callq	_putchar
	incl	%r14d
	cmpl	(%rbx), %r14d
	jl	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_lastline@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %r15
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	(%r15), %rcx
	addq	$8, %r15
	testq	%rcx, %rcx
	je	LBB0_12
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$0, (%rcx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%rbx, %r8
	movl	(%r12), %ebx
	addq	$4, %r12
	cmpl	$1000, %ebx                     ## imm = 0x3E8
	leaq	L_.str.4(%rip), %rdi
	leaq	L_.str.3(%rip), %rax
	cmovgeq	%rax, %rdi
	leal	1(%r13), %r14d
	movl	%r13d, %eax
	cltd
	movq	_num_cpustates@GOTPCREL(%rip), %rsi
	idivl	(%rsi)
	testl	%edx, %edx
	leaq	L_.str.6(%rip), %rsi
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ebx, %xmm0
	movq	%r8, %rbx
	leaq	L_.str.5(%rip), %rax
	cmoveq	%rax, %rsi
	cvtss2sd	%xmm0, %xmm0
	divsd	LCPI0_0(%rip), %xmm0
	movq	%rcx, %rdx
	movb	$1, %al
	callq	_printf
	movl	%r14d, %r13d
	jmp	LBB0_11
LBB0_13:
	movq	_lcpustates@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_num_cpustates@GOTPCREL(%rip), %rax
	imull	(%rax), %edx
	shll	$2, %edx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_num_cpus,4,2                   ## @num_cpus
	.comm	_cpustate_names,8,3             ## @cpustate_names
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nCPU: "

L_.str.1:                               ## @.str.1
	.asciz	"\nCPU %d: "

	.comm	_cpustates_column,4,2           ## @cpustates_column
	.comm	_lastline,4,2                   ## @lastline
L_.str.3:                               ## @.str.3
	.asciz	"%s%4.0f%% %s"

L_.str.4:                               ## @.str.4
	.asciz	"%s%4.1f%% %s"

	.comm	_num_cpustates,4,2              ## @num_cpustates
L_.str.5:                               ## @.str.5
	.space	1

L_.str.6:                               ## @.str.6
	.asciz	", "

	.comm	_lcpustates,4,2                 ## @lcpustates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i_cpustates                    ; -- Begin function i_cpustates
	.p2align	2
_i_cpustates:                           ; @i_cpustates
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
Lloh0:
	adrp	x8, _num_cpus@GOTPAGE
Lloh1:
	ldr	x8, [x8, _num_cpus@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	b.lt	LBB0_14
; %bb.1:
	mov	w24, #0
	mov	w25, #0
Lloh3:
	adrp	x27, l_.str.4@PAGE
Lloh4:
	add	x27, x27, l_.str.4@PAGEOFF
Lloh5:
	adrp	x28, l_.str.3@PAGE
Lloh6:
	add	x28, x28, l_.str.3@PAGEOFF
Lloh7:
	adrp	x19, l_.str.6@PAGE
Lloh8:
	add	x19, x19, l_.str.6@PAGEOFF
Lloh9:
	adrp	x20, l_.str.5@PAGE
Lloh10:
	add	x20, x20, l_.str.5@PAGEOFF
	fmov	d8, #10.00000000
Lloh11:
	adrp	x21, _cpustates_column@GOTPAGE
Lloh12:
	ldr	x21, [x21, _cpustates_column@GOTPAGEOFF]
	mov	x23, x0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x22
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #1
Lloh13:
	adrp	x8, _num_cpus@GOTPAGE
Lloh14:
	ldr	x8, [x8, _num_cpus@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ge	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
Lloh16:
	adrp	x9, _cpustate_names@GOTPAGE
Lloh17:
	ldr	x9, [x9, _cpustate_names@GOTPAGEOFF]
Lloh18:
	ldr	x26, [x9]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	x22, x21
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x24, [sp]
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	w8, [x21]
	cmp	w0, w8
	mov	x22, x21
	b.gt	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w21, w0, #1
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	w0, #32
	bl	_putchar
	ldr	w8, [x22]
	add	w21, w21, #1
	cmp	w21, w8
	b.lt	LBB0_8
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh23:
	adrp	x9, _lastline@GOTPAGE
Lloh24:
	ldr	x9, [x9, _lastline@GOTPAGEOFF]
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
	ldr	x8, [x26]
	cbz	x8, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #8
	mov	x21, x22
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x26], #8
	cbz	x8, LBB0_3
LBB0_12:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x8]
	cbz	w9, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	w9, [x23], #4
	cmp	w9, #999
	csel	x0, x28, x27, gt
	add	w21, w25, #1
Lloh25:
	adrp	x10, _num_cpustates@GOTPAGE
Lloh26:
	ldr	x10, [x10, _num_cpustates@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	sdiv	w11, w25, w10
	msub	w10, w11, w10, w25
	cmp	w10, #0
	csel	x10, x20, x19, eq
	scvtf	s0, w9
	fcvt	d0, s0
	fdiv	d0, d0, d8
	str	x8, [sp, #16]
	str	d0, [sp, #8]
	str	x10, [sp]
	bl	_printf
	mov	x25, x21
	mov	x21, x22
	b	LBB0_11
LBB0_14:
Lloh28:
	adrp	x9, _lcpustates@GOTPAGE
Lloh29:
	ldr	x9, [x9, _lcpustates@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x9]
Lloh31:
	adrp	x9, _num_cpustates@GOTPAGE
Lloh32:
	ldr	x9, [x9, _num_cpustates@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	mul	w8, w8, w9
	lsl	w2, w8, #2
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_memcpy
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_num_cpus,4,2                   ; @num_cpus
	.comm	_cpustate_names,8,3             ; @cpustate_names
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nCPU: "

l_.str.1:                               ; @.str.1
	.asciz	"\nCPU %d: "

	.comm	_cpustates_column,4,2           ; @cpustates_column
	.comm	_lastline,4,2                   ; @lastline
l_.str.3:                               ; @.str.3
	.asciz	"%s%4.0f%% %s"

l_.str.4:                               ; @.str.4
	.asciz	"%s%4.1f%% %s"

	.comm	_num_cpustates,4,2              ; @num_cpustates
l_.str.5:                               ; @.str.5
	.space	1

l_.str.6:                               ; @.str.6
	.asciz	", "

	.comm	_lcpustates,4,2                 ; @lcpustates
.subsections_via_symbols
