	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getcpu
_getcpu:                                ## @getcpu
	.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	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_CPUSTATES@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$3, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%rbx, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %rdx
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movq	_CP_USER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %rax
	movq	%rax, (%r15)
	movq	_CP_NICE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %rax
	movq	%rax, 8(%r15)
	movq	_CP_SYS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %rax
	movq	%rax, 16(%r15)
	movq	_CP_INTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %rax
	movq	%rax, 24(%r15)
	movq	_CP_IDLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %rax
	movq	%rax, 32(%r15)
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_warn
	movl	$1, %r14d
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%r14d, %eax
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CPUSTATES,4,2                  ## @CPUSTATES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kern.cp_time"

L_.str.1:                               ## @.str.1
	.asciz	"sysctlbyname(kern.cp_time...) failed"

	.comm	_CP_USER,8,3                    ## @CP_USER
	.comm	_CP_NICE,8,3                    ## @CP_NICE
	.comm	_CP_SYS,8,3                     ## @CP_SYS
	.comm	_CP_INTR,8,3                    ## @CP_INTR
	.comm	_CP_IDLE,8,3                    ## @CP_IDLE
	.no_dead_strip	_getcpu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getcpu
_getcpu:                                ; @getcpu
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _CPUSTATES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CPUSTATES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0xffffffff0
	sub	x20, x9, x10
	mov	sp, x20
	stur	x8, [x29, #-32]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	sub	x2, x29, #32
	mov	x1, x20
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
Lloh10:
	adrp	x8, _CP_USER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CP_USER@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x8, [x20, x8, lsl #3]
Lloh13:
	adrp	x9, _CP_NICE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CP_NICE@GOTPAGEOFF]
	str	x8, [x19]
Lloh15:
	ldr	x8, [x9]
	ldr	x8, [x20, x8, lsl #3]
Lloh16:
	adrp	x9, _CP_SYS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CP_SYS@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	ldr	x9, [x20, x9, lsl #3]
Lloh19:
	adrp	x10, _CP_INTR@GOTPAGE
Lloh20:
	ldr	x10, [x10, _CP_INTR@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	ldr	x10, [x20, x10, lsl #3]
Lloh22:
	adrp	x11, _CP_IDLE@GOTPAGE
Lloh23:
	ldr	x11, [x11, _CP_IDLE@GOTPAGEOFF]
	stp	x8, x9, [x19, #8]
Lloh24:
	ldr	x8, [x11]
	ldr	x8, [x20, x8, lsl #3]
	stp	x10, x8, [x19, #24]
	b	LBB0_3
LBB0_2:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warn
	mov	w0, #1
LBB0_3:
	ldur	x8, [x29, #-24]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_CPUSTATES,4,2                  ; @CPUSTATES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kern.cp_time"

l_.str.1:                               ; @.str.1
	.asciz	"sysctlbyname(kern.cp_time...) failed"

	.comm	_CP_USER,8,3                    ; @CP_USER
	.comm	_CP_NICE,8,3                    ; @CP_NICE
	.comm	_CP_SYS,8,3                     ; @CP_SYS
	.comm	_CP_INTR,8,3                    ; @CP_INTR
	.comm	_CP_IDLE,8,3                    ; @CP_IDLE
	.no_dead_strip	_getcpu
.subsections_via_symbols
