	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_cpu_topology
_build_cpu_topology:                    ## @build_cpu_topology
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	__SC_NPROCESSORS_CONF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
	testq	%rax, %rax
	js	LBB0_8
## %bb.1:
	movq	%rax, %r14
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	andq	(%rax), %r14
	movl	%r14d, %esi
	shll	$4, %esi
	addl	$16, %esi
	movl	$1, %edi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r15
	movq	%r14, %rax
	shlq	$32, %rax
	sarq	$29, %rax
	leaq	16(%r15), %rcx
	movq	%rcx, 8(%r15)
	addq	%r15, %rax
	addq	$16, %rax
	movq	%rax, (%r15)
	testl	%r14d, %r14d
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_build_cpu_topo
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	%ebx, %r14d
	jne	LBB0_5
## %bb.6:
	testl	%eax, %eax
	je	LBB0_9
LBB0_7:
	movq	%r15, %rdi
	callq	_free_cpu_topo
LBB0_8:
	xorl	%r15d, %r15d
LBB0_9:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__SC_NPROCESSORS_CONF,4,2       ## @_SC_NPROCESSORS_CONF
	.comm	_UINT_MAX,8,3                   ## @UINT_MAX
	.no_dead_strip	_build_cpu_topology
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_cpu_topology
_build_cpu_topology:                    ; @build_cpu_topology
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, __SC_NPROCESSORS_CONF@GOTPAGE
Lloh1:
	ldr	x8, [x8, __SC_NPROCESSORS_CONF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_sysconf
	tbnz	x0, #63, LBB0_8
; %bb.1:
Lloh3:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	and	x21, x8, x0
	lsl	w8, w21, #4
	add	w1, w8, #16
	mov	w0, #1
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.2:
	lsl	x8, x21, #32
	add	x9, x19, #16
	add	x8, x9, x8, asr #29
	stp	x8, x9, [x19]
	cmp	w21, #1
	b.lt	LBB0_7
; %bb.3:
	mov	w20, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_build_cpu_topo
	tbnz	w0, #31, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	cmp	w21, w20
	b.ne	LBB0_4
; %bb.6:
	cbz	w0, LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_free_cpu_topo
LBB0_8:
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	__SC_NPROCESSORS_CONF,4,2       ; @_SC_NPROCESSORS_CONF
	.comm	_UINT_MAX,8,3                   ; @UINT_MAX
	.no_dead_strip	_build_cpu_topology
.subsections_via_symbols
