	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function topo_probe_intel_caches
_topo_probe_intel_caches:               ## @topo_probe_intel_caches
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_cpu_high@GOTPCREL(%rip), %rax
	cmpl	$4, (%rax)
	jge	LBB0_1
## %bb.5:
	movq	_pkg_id_shift@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_caches@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 8(%rcx)
	movl	$1, (%rcx)
	movq	%rax, 24(%rcx)
	movl	$1, 16(%rcx)
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$4, %edi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_cpuid_count
	movl	-48(%rbp), %edx
	movl	%edx, %edi
	andl	$31, %edi
	movl	%edx, %esi
	shrl	$5, %esi
	andl	$7, %esi
	shrl	$14, %edx
	andl	$4095, %edx                     ## imm = 0xFFF
	incl	%edx
	callq	_add_deterministic_cache
	incl	%ebx
	testl	%eax, %eax
	jne	LBB0_2
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_6
## %bb.4:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_high,4,2                   ## @cpu_high
	.comm	_pkg_id_shift,8,3               ## @pkg_id_shift
	.comm	_caches,8,3                     ## @caches
	.no_dead_strip	_topo_probe_intel_caches
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function topo_probe_intel_caches
_topo_probe_intel_caches:               ; @topo_probe_intel_caches
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _cpu_high@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cpu_high@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #4
	b.ge	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _pkg_id_shift@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pkg_id_shift@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _caches@GOTPAGE
Lloh10:
	ldr	x9, [x9, _caches@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	str	x8, [x9, #8]
	mov	w10, #1
	str	w10, [x9]
	str	x8, [x9, #24]
	str	w10, [x9, #16]
	b	LBB0_4
LBB0_2:
	mov	w19, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #8
	mov	w0, #4
	mov	x1, x19
	bl	_cpuid_count
	ldr	w8, [sp, #8]
	and	w0, w8, #0x1f
	ubfx	w1, w8, #5, #3
	ubfx	w8, w8, #14, #12
	add	w2, w8, #1
	bl	_add_deterministic_cache
	add	w19, w19, #1
	cbnz	w0, LBB0_3
LBB0_4:
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_high,4,2                   ; @cpu_high
	.comm	_pkg_id_shift,8,3               ; @pkg_id_shift
	.comm	_caches,8,3                     ; @caches
	.no_dead_strip	_topo_probe_intel_caches
.subsections_via_symbols
