	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_usage_times
_read_usage_times:                      ## @read_usage_times
	.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, -56(%rbp)                 ## 8-byte Spill
	movq	_read_usage_times.cp_times(%rip), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	_CPUSTATES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movl	_read_usage_times.ncpus(%rip), %eax
	shlq	$3, %rcx
LBB0_11:
	cltq
	imulq	%rcx, %rax
	movq	%rax, -48(%rbp)
	movq	_cp_times_mib@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rcx
	movl	$2, %esi
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	testl	%eax, %eax
	jne	LBB0_34
## %bb.12:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_33
## %bb.13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	_read_usage_times.ncpus(%rip), %r8d
	testl	%r8d, %r8d
	jle	LBB0_33
## %bb.14:
	movq	_read_usage_times.cp_times(%rip), %r9
	movq	_read_usage_times.cp_times_old(%rip), %r13
	leaq	48(%r13), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	48(%r9), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	_CPUSTATES@GOTPCREL(%rip), %r10
	xorl	%r12d, %r12d
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_15 Depth=1
	cqto
	idivq	%rsi
LBB0_31:                                ##   in Loop: Header=BB0_15 Depth=1
	subl	%eax, %r15d
	addl	$100, %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
LBB0_32:                                ##   in Loop: Header=BB0_15 Depth=1
	incl	%r12d
	cmpl	%r8d, %r12d
	je	LBB0_33
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
                                        ##     Child Loop BB0_26 Depth 2
	movl	(%r10), %esi
	testl	%esi, %esi
	jle	LBB0_32
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%esi, %eax
	imull	%r12d, %eax
	movslq	%eax, %r14
	cmpl	$4, %esi
	jae	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	xorl	%eax, %eax
	xorl	%edi, %edi
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%r9, %rbx
	movl	%esi, %eax
	andl	$-4, %eax
	leaq	-4(%rax), %rdx
	movq	%rdx, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rdx, %rdx
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r8, %rdi
	andq	$-2, %rdi
	movl	%esi, %edx
	imull	%r12d, %edx
	movslq	%edx, %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rdx,8), %r9
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rdx,8), %r10
	pxor	%xmm0, %xmm0
	xorl	%r11d, %r11d
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-48(%r10,%r11,8), %xmm2
	movdqu	-32(%r10,%r11,8), %xmm3
	movdqu	-16(%r10,%r11,8), %xmm4
	movdqu	(%r10,%r11,8), %xmm5
	movdqu	-48(%r9,%r11,8), %xmm6
	psubq	%xmm6, %xmm2
	movdqu	-32(%r9,%r11,8), %xmm6
	psubq	%xmm6, %xmm3
	movdqu	-16(%r9,%r11,8), %xmm6
	psubq	%xmm6, %xmm4
	movdqu	(%r9,%r11,8), %xmm6
	psubq	%xmm6, %xmm5
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm0, %xmm2
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	paddd	%xmm1, %xmm3
	pshufd	$232, %xmm4, %xmm0              ## xmm0 = xmm4[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm5, %xmm1              ## xmm1 = xmm5[0,2,2,3]
	paddd	%xmm3, %xmm1
	addq	$8, %r11
	addq	$-2, %rdi
	jne	LBB0_21
	jmp	LBB0_22
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	pxor	%xmm0, %xmm0
	xorl	%r11d, %r11d
	pxor	%xmm1, %xmm1
LBB0_22:                                ##   in Loop: Header=BB0_15 Depth=1
	testb	$1, %r8b
	movq	%rbx, %r9
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_15 Depth=1
	addq	%r14, %r11
	movdqu	(%r9,%r11,8), %xmm2
	movdqu	16(%r9,%r11,8), %xmm3
	movdqu	(%r13,%r11,8), %xmm4
	psubq	%xmm4, %xmm2
	movdqu	16(%r13,%r11,8), %xmm4
	psubq	%xmm4, %xmm3
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm3, %xmm2              ## xmm2 = xmm3[0,2,2,3]
	paddd	%xmm2, %xmm1
LBB0_24:                                ##   in Loop: Header=BB0_15 Depth=1
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %edi
	cmpq	%rsi, %rax
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	movq	_CPUSTATES@GOTPCREL(%rip), %r10
	je	LBB0_27
LBB0_25:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%esi, %edx
	imull	%r12d, %edx
	movslq	%edx, %rbx
	leaq	(%r9,%rbx,8), %rdx
	leaq	(,%rbx,8), %rbx
	addq	%r13, %rbx
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdx,%rax,8), %ecx
	subl	(%rbx,%rax,8), %ecx
	addl	%ecx, %edi
	incq	%rax
	cmpq	%rax, %rsi
	jne	LBB0_26
LBB0_27:                                ##   in Loop: Header=BB0_15 Depth=1
	testl	%edi, %edi
	je	LBB0_32
## %bb.28:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_CP_IDLE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%r14, %rax
	movq	(%r9,%rax,8), %rcx
	subq	(%r13,%rax,8), %rcx
	imulq	$100, %rcx, %rax
	movslq	%edi, %rsi
	movq	%rax, %rcx
	orq	%rsi, %rcx
	shrq	$32, %rcx
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_15 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_31
LBB0_2:
	movq	$0, -48(%rbp)
	movq	_cp_times_mib@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rcx
	movl	$2, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sysctl
	testl	%eax, %eax
	jne	LBB0_34
## %bb.3:
	movq	-48(%rbp), %r15
	movq	%r15, %rdi
	callq	_malloc
	movq	%rax, _read_usage_times.cp_times(%rip)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_malloc
	movq	%rax, _read_usage_times.cp_times_old(%rip)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	_CPUSTATES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	shlq	$3, %rcx
	movq	%r15, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_8
## %bb.9:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_10
LBB0_33:
	movq	_read_usage_times.cp_times_old(%rip), %rdi
	movq	_read_usage_times.cp_times(%rip), %rsi
	movq	-48(%rbp), %rdx
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_34
LBB0_6:
	movq	%rbx, %rdi
	callq	_free
	movq	$0, _read_usage_times.cp_times(%rip)
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_34:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_10:
	movl	%eax, _read_usage_times.ncpus(%rip)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_read_usage_times.cp_times,8,3 ## @read_usage_times.cp_times
.zerofill __DATA,__bss,_read_usage_times.cp_times_old,8,3 ## @read_usage_times.cp_times_old
.zerofill __DATA,__bss,_read_usage_times.ncpus,4,2 ## @read_usage_times.ncpus
	.comm	_cp_times_mib,4,2               ## @cp_times_mib
	.comm	_errno,4,2                      ## @errno
	.comm	_CPUSTATES,4,2                  ## @CPUSTATES
	.comm	_CP_IDLE,4,2                    ## @CP_IDLE
	.no_dead_strip	_read_usage_times
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_usage_times
_read_usage_times:                      ; @read_usage_times
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	adrp	x22, _read_usage_times.cp_times@PAGE
	ldr	x20, [x22, _read_usage_times.cp_times@PAGEOFF]
Lloh0:
	adrp	x23, _cp_times_mib@GOTPAGE
Lloh1:
	ldr	x23, [x23, _cp_times_mib@GOTPAGEOFF]
	cbz	x20, LBB0_17
; %bb.1:
Lloh2:
	adrp	x8, _CPUSTATES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CPUSTATES@GOTPAGEOFF]
Lloh4:
	ldrsw	x8, [x8]
Lloh5:
	adrp	x9, _read_usage_times.ncpus@PAGE
Lloh6:
	ldr	w9, [x9, _read_usage_times.ncpus@PAGEOFF]
	lsl	x8, x8, #3
LBB0_2:
	sxtw	x9, w9
	mul	x8, x8, x9
	str	x8, [sp, #8]
	ldr	w0, [x23]
	add	x3, sp, #8
	mov	w1, #2
	mov	x2, x20
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	cbnz	w0, LBB0_24
; %bb.3:
	adrp	x8, _read_usage_times.cp_times_old@PAGE
	cbz	x19, LBB0_21
; %bb.4:
	str	wzr, [x19]
Lloh7:
	adrp	x9, _read_usage_times.ncpus@PAGE
Lloh8:
	ldr	w9, [x9, _read_usage_times.ncpus@PAGEOFF]
	cmp	w9, #1
	b.lt	LBB0_21
; %bb.5:
	mov	w12, #0
	mov	w10, #0
	ldr	x11, [x22, _read_usage_times.cp_times@PAGEOFF]
	ldr	x13, [x8, _read_usage_times.cp_times_old@PAGEOFF]
	add	x14, x11, #32
	add	x15, x13, #32
Lloh9:
	adrp	x16, _CPUSTATES@GOTPAGE
Lloh10:
	ldr	x16, [x16, _CPUSTATES@GOTPAGEOFF]
Lloh11:
	adrp	x17, _CP_IDLE@GOTPAGE
Lloh12:
	ldr	x17, [x17, _CP_IDLE@GOTPAGEOFF]
	mov	w0, #100
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w10, w10, #1
	cmp	w10, w9
	b.eq	LBB0_21
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	ldr	w1, [x16]
	cmp	w1, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w1, #8
	b.hs	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x2, #0
	mov	w3, #0
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	and	x2, x1, #0xfffffff8
	mul	w3, w1, w10
	sbfiz	x4, x3, #3, #32
	add	x3, x14, x4
	add	x4, x15, x4
	movi.2d	v0, #0000000000000000
	mov	x5, x2
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q4, q5, [x3, #-32]
	ldp	q6, q7, [x3], #64
	ldp	q16, q17, [x4, #-32]
	ldp	q18, q19, [x4], #64
	sub.2d	v4, v4, v16
	sub.2d	v5, v5, v17
	sub.2d	v6, v6, v18
	sub.2d	v7, v7, v19
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	subs	x5, x5, #8
	b.ne	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w3, s0
	cmp	x2, x1
	b.eq	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	mul	w4, w1, w10
	add	x4, x2, w4, sxtw
	lsl	x5, x4, #3
	add	x4, x11, x5
	add	x5, x13, x5
	sub	x2, x1, x2
LBB0_14:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w6, [x4], #8
	ldr	w7, [x5], #8
	sub	w6, w6, w7
	add	w3, w3, w6
	subs	x2, x2, #1
	b.ne	LBB0_14
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w3, LBB0_6
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	mul	w1, w1, w10
	ldr	w2, [x17]
	add	w1, w2, w1
	sbfiz	x1, x1, #3, #32
	ldr	x2, [x11, x1]
	ldr	x1, [x13, x1]
	sub	x1, x2, x1
	mul	x1, x1, x0
	sxtw	x2, w3
	sdiv	x1, x1, x2
	sub	w12, w12, w1
	add	w12, w12, #100
	str	w12, [x19]
	b	LBB0_6
LBB0_17:
	str	xzr, [sp, #8]
	ldr	w0, [x23]
	add	x3, sp, #8
	mov	w1, #2
	mov	x2, #0
	mov	x4, #0
	mov	w5, #0
	bl	_sysctl
	cbnz	w0, LBB0_24
; %bb.18:
	ldr	x21, [sp, #8]
	mov	x0, x21
	bl	_malloc
	str	x0, [x22, _read_usage_times.cp_times@PAGEOFF]
	cbz	x0, LBB0_23
; %bb.19:
	mov	x20, x0
	mov	x0, x21
	bl	_malloc
	adrp	x8, _read_usage_times.cp_times_old@PAGE
	str	x0, [x8, _read_usage_times.cp_times_old@PAGEOFF]
	cbz	x0, LBB0_22
; %bb.20:
Lloh13:
	adrp	x8, _CPUSTATES@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CPUSTATES@GOTPAGEOFF]
Lloh15:
	ldrsw	x8, [x8]
	lsl	x8, x8, #3
	udiv	x9, x21, x8
	adrp	x10, _read_usage_times.ncpus@PAGE
	str	w9, [x10, _read_usage_times.ncpus@PAGEOFF]
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	b	LBB0_2
LBB0_21:
	ldr	x0, [x8, _read_usage_times.cp_times_old@PAGEOFF]
	ldr	x1, [x22, _read_usage_times.cp_times@PAGEOFF]
	ldr	x2, [sp, #8]
	bl	_memcpy
	mov	w0, #0
	b	LBB0_24
LBB0_22:
	mov	x0, x20
	bl	_free
	str	xzr, [x22, _read_usage_times.cp_times@PAGEOFF]
LBB0_23:
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
LBB0_24:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_read_usage_times.cp_times,8,3 ; @read_usage_times.cp_times
.zerofill __DATA,__bss,_read_usage_times.cp_times_old,8,3 ; @read_usage_times.cp_times_old
.zerofill __DATA,__bss,_read_usage_times.ncpus,4,2 ; @read_usage_times.ncpus
	.comm	_cp_times_mib,4,2               ; @cp_times_mib
	.comm	_errno,4,2                      ; @errno
	.comm	_CPUSTATES,4,2                  ; @CPUSTATES
	.comm	_CP_IDLE,4,2                    ; @CP_IDLE
	.no_dead_strip	_read_usage_times
.subsections_via_symbols
