	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_z_cpustates                    ## -- Begin function z_cpustates
	.p2align	4, 0x90
_z_cpustates:                           ## @z_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
	pushq	%rax
	.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), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	movq	_cpustates_column@GOTPCREL(%rip), %rdx
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	movl	(%r14), %eax
	cmpl	%eax, %r13d
	jge	LBB0_4
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	movq	%rdx, %r12
	movq	_cpustate_names@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	%r12, %rdx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	%r12, %rdx
	cmpl	(%r12), %eax
	jg	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r14d
	decl	%r14d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$32, %edi
	callq	_putchar
	movq	%r12, %rdx
	incl	%r14d
	cmpl	(%r12), %r14d
	jl	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_lastline@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	movq	_num_cpus@GOTPCREL(%rip), %r14
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %r15
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=2
	incl	%ebx
	leaq	L_.str.3(%rip), %rdi
	movq	%rcx, %rdx
	xorl	%eax, %eax
	callq	_printf
	movq	%r12, %rdx
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	(%r15), %rcx
	addq	$8, %r15
	testq	%rcx, %rcx
	je	LBB0_18
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$0, (%rcx)
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	%ebx, %eax
	cltd
	movq	_num_cpustates@GOTPCREL(%rip), %rsi
	idivl	(%rsi)
	leaq	L_.str.4(%rip), %rsi
	testl	%edx, %edx
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_16
LBB0_4:
	movq	_num_cpustates@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:
	movq	_lcpustates@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	$-1, (%rax,%rdx,4)
	incq	%rdx
	movslq	(%rcx), %rsi
	movslq	(%r14), %rdi
	imulq	%rsi, %rdi
	cmpq	%rdi, %rdx
	jl	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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    %% %s"

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

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

	.comm	_lcpustates,8,3                 ## @lcpustates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_z_cpustates                    ; -- Begin function z_cpustates
	.p2align	2
_z_cpustates:                           ; @z_cpustates
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x26, _num_cpus@GOTPAGE
Lloh1:
	ldr	x26, [x26, _num_cpus@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh2:
	adrp	x23, _num_cpustates@GOTPAGE
Lloh3:
	ldr	x23, [x23, _num_cpustates@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	w24, #0
	mov	w21, #0
Lloh4:
	adrp	x27, l_.str.5@PAGE
Lloh5:
	add	x27, x27, l_.str.5@PAGEOFF
Lloh6:
	adrp	x28, l_.str.4@PAGE
Lloh7:
	add	x28, x28, l_.str.4@PAGEOFF
Lloh8:
	adrp	x20, l_.str.3@PAGE
Lloh9:
	add	x20, x20, l_.str.3@PAGEOFF
Lloh10:
	adrp	x19, _cpustates_column@GOTPAGE
Lloh11:
	ldr	x19, [x19, _cpustates_column@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
	ldr	w8, [x26]
	cmp	w24, w8
	b.ge	LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
Lloh12:
	adrp	x9, _cpustate_names@GOTPAGE
Lloh13:
	ldr	x9, [x9, _cpustate_names@GOTPAGEOFF]
Lloh14:
	ldr	x25, [x9]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	x24, [sp]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	w8, [x19]
	cmp	w0, w8
	b.gt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w22, w0, #1
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	w0, #32
	bl	_putchar
	ldr	w8, [x19]
	add	w22, w22, #1
	cmp	w22, w8
	b.lt	LBB0_7
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh19:
	adrp	x9, _lastline@GOTPAGE
Lloh20:
	ldr	x9, [x9, _lastline@GOTPAGEOFF]
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
	ldr	x8, [x25]
	cbz	x8, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #8
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	x8, [x25], #8
	cbz	x8, LBB0_2
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x8]
	cbz	w9, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	add	w22, w21, #1
	ldr	w9, [x23]
	sdiv	w10, w21, w9
	msub	w9, w10, w9, w21
	cmp	w9, #0
	csel	x9, x28, x27, eq
	stp	x9, x8, [sp]
	mov	x0, x20
	bl	_printf
	mov	x21, x22
	b	LBB0_10
LBB0_13:
	ldr	w9, [x23]
	mul	w8, w8, w9
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.14:
	mov	x8, #0
Lloh21:
	adrp	x9, _lcpustates@GOTPAGE
Lloh22:
	ldr	x9, [x9, _lcpustates@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	mov	w10, #-1
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	str	w10, [x9, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x11, [x23]
	ldrsw	x12, [x26]
	mul	x11, x12, x11
	cmp	x8, x11
	b.lt	LBB0_15
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.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    %% %s"

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

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

	.comm	_lcpustates,8,3                 ; @lcpustates
.subsections_via_symbols
