	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_cpu_total                  ## -- Begin function get_cpu_total
	.p2align	4, 0x90
_get_cpu_total:                         ## @get_cpu_total
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	_get_cpu_total.mem(%rip), %rbx
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	$10000, %esi                    ## imm = 0x2710
	callq	_snprintf
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	leaq	_get_cpu_total.mem(%rip), %r12
	movl	%eax, %edi
	movq	%r12, %rsi
	movl	$9999, %edx                     ## imm = 0x270F
	callq	_read
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	movl	%eax, %eax
	xorl	%edx, %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rsi,%rsi,4), %rsi
	leaq	(%rdi,%rsi,2), %rsi
	addq	$-48, %rsi
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdx,%r12), %edi
	leal	-48(%rdi), %ebx
	cmpb	$9, %bl
	jbe	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%rsi, %rcx
	cmpb	$10, %dil
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_10:
	movq	%rcx, (%r14)
	movl	$1, %ebx
	jmp	LBB0_11
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_3:
	xorl	%ebx, %ebx
LBB0_11:
	movl	%r15d, %edi
	callq	_close
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_get_cpu_total.mem,10000,4 ## @get_cpu_total.mem
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/proc/stat"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_TMEM_SIZE,4,2                  ## @TMEM_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_cpu_total                  ; -- Begin function get_cpu_total
	.p2align	2
_get_cpu_total:                         ; @get_cpu_total
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _get_cpu_total.mem@PAGE
Lloh1:
	add	x20, x20, _get_cpu_total.mem@PAGEOFF
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #10000
	bl	_snprintf
Lloh4:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.1:
	mov	x20, x0
Lloh7:
	adrp	x1, _get_cpu_total.mem@PAGE
Lloh8:
	add	x1, x1, _get_cpu_total.mem@PAGEOFF
	mov	w2, #9999
	bl	_read
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x12, #0
	mov	x8, #0
	and	x9, x0, #0xffffffff
	mov	w10, #10
Lloh9:
	adrp	x11, _get_cpu_total.mem@PAGE
Lloh10:
	add	x11, x11, _get_cpu_total.mem@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	madd	x12, x12, x10, x13
	sub	x12, x12, #48
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x11, x11, #1
	subs	x9, x9, #1
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w13, [x11]
	sub	w14, w13, #48
	cmp	w14, #9
	b.ls	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x12, x8
	cmp	w13, #10
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x12, #0
	b	LBB0_4
LBB0_8:
	str	x8, [x19]
	mov	w19, #1
	b	LBB0_11
LBB0_9:
	mov	w19, #0
	b	LBB0_12
LBB0_10:
	mov	w19, #0
LBB0_11:
	mov	x0, x20
	bl	_close
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_get_cpu_total.mem,10000,0 ; @get_cpu_total.mem
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/proc/stat"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_TMEM_SIZE,4,2                  ; @TMEM_SIZE
.subsections_via_symbols
