	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_total_cpus
_get_total_cpus:                        ## @get_total_cpus
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	__SC_NPROCESSORS_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	_MAX_CPUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpl	%eax, %esi
	jl	LBB0_3
## %bb.5:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_4:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	__SC_NPROCESSORS_CONF,4,2       ## @_SC_NPROCESSORS_CONF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not read cpus\n"

	.comm	_MAX_CPUS,4,2                   ## @MAX_CPUS
L_.str.1:                               ## @.str.1
	.asciz	"Exceed max cpus(%d)\n"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.no_dead_strip	_get_total_cpus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_total_cpus
_get_total_cpus:                        ; @get_total_cpus
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x8, __SC_NPROCESSORS_CONF@GOTPAGE
Lloh1:
	ldr	x8, [x8, __SC_NPROCESSORS_CONF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_sysconf
	cmp	w0, #0
	b.le	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _MAX_CPUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_CPUS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w0
	b.lt	LBB0_4
; %bb.2:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_pr_err
Lloh10:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	__SC_NPROCESSORS_CONF,4,2       ; @_SC_NPROCESSORS_CONF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not read cpus\n"

	.comm	_MAX_CPUS,4,2                   ; @MAX_CPUS
l_.str.1:                               ; @.str.1
	.asciz	"Exceed max cpus(%d)\n"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.no_dead_strip	_get_total_cpus
.subsections_via_symbols
