	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_cpu_topo
_build_cpu_topo:                        ## @build_cpu_topo
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	$0, -56(%rbp)
	movq	$0, -72(%rbp)
	movq	_CORE_SIB_FMT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_sprintf
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r13
	leaq	-56(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	movq	%rax, %rdx
	callq	_getline
	testq	%rax, %rax
	jle	LBB0_9
## %bb.2:
	movq	%r13, %rdi
	callq	_fclose
	movq	-56(%rbp), %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movb	$0, (%rax)
LBB0_4:
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
	movq	(%r14), %r13
	testq	%r13, %r13
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.5:
	movq	-56(%rbp), %rbx
	movq	8(%r14), %r15
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%r14,8), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	cmpq	%r14, %r13
	jne	LBB0_6
	jmp	LBB0_12
LBB0_8:
	movl	$-1, %ebx
	jmp	LBB0_29
LBB0_10:
	xorl	%r14d, %r14d
LBB0_11:
	cmpq	%r13, %r14
	jne	LBB0_13
LBB0_12:
	movq	-56(%rbp), %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rcx
	movq	%rax, (%rcx,%r13,8)
	incq	%r13
	movq	%r13, (%rdx)
	movq	$0, -56(%rbp)
	movq	$0, -72(%rbp)
LBB0_13:
	movq	_THRD_SIB_FMT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	callq	_sprintf
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:
	movq	%rax, %r13
	leaq	-56(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	movq	%rax, %rdx
	callq	_getline
	testq	%rax, %rax
	jle	LBB0_9
## %bb.15:
	movq	-56(%rbp), %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movb	$0, (%rax)
LBB0_17:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r12
	testq	%r12, %r12
	je	LBB0_23
## %bb.18:
	movq	-56(%rbp), %r14
	movq	24(%rax), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_19
	jmp	LBB0_25
LBB0_9:
	movl	$-1, %ebx
	jmp	LBB0_27
LBB0_21:
	movl	$-1, %ebx
	jmp	LBB0_28
LBB0_23:
	xorl	%ebx, %ebx
LBB0_24:
	cmpq	%r12, %rbx
	jne	LBB0_26
LBB0_25:
	movq	-56(%rbp), %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	24(%rdx), %rcx
	movq	%rax, (%rcx,%r12,8)
	incq	%r12
	movq	%r12, 16(%rdx)
	movq	$0, -56(%rbp)
LBB0_26:
	xorl	%ebx, %ebx
LBB0_27:
	movq	%r13, %rdi
	callq	_fclose
LBB0_28:
	movq	-56(%rbp), %rdi
	callq	_free
LBB0_29:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.30:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_CORE_SIB_FMT,8,3               ## @CORE_SIB_FMT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_THRD_SIB_FMT,8,3               ## @THRD_SIB_FMT
	.no_dead_strip	_build_cpu_topo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_cpu_topo
_build_cpu_topo:                        ; @build_cpu_topo
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #32
	mov	x20, x1
	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, #-72]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	stp	xzr, xzr, [x29, #-88]
Lloh8:
	adrp	x8, _CORE_SIB_FMT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CORE_SIB_FMT@GOTPAGEOFF]
Lloh10:
	ldr	x1, [x8]
	mov	x0, x22
	mov	x2, x20
	bl	_sprintf
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_fopen
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x0
	sub	x0, x29, #80
	sub	x1, x29, #88
	mov	x2, x21
	bl	_getline
	cmp	x0, #1
	b.lt	LBB0_20
; %bb.2:
	mov	x0, x21
	bl	_fclose
	ldur	x0, [x29, #-80]
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_4
; %bb.3:
	strb	wzr, [x0]
LBB0_4:
	ldr	x23, [x19]
	cbz	x23, LBB0_9
; %bb.5:
	mov	x24, #0
	ldur	x21, [x29, #-80]
	ldr	x25, [x19, #8]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x25, x24, lsl #3]
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	cmp	x23, x24
	b.ne	LBB0_6
	b	LBB0_11
LBB0_8:
	mov	w20, #-1
	b	LBB0_28
LBB0_9:
	mov	x24, #0
LBB0_10:
	cmp	x24, x23
	b.ne	LBB0_12
LBB0_11:
	ldur	x8, [x29, #-80]
	ldr	x9, [x19, #8]
	str	x8, [x9, x23, lsl #3]
	add	x8, x23, #1
	str	x8, [x19]
	stp	xzr, xzr, [x29, #-88]
LBB0_12:
Lloh13:
	adrp	x8, _THRD_SIB_FMT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _THRD_SIB_FMT@GOTPAGEOFF]
Lloh15:
	ldr	x1, [x8]
	mov	x0, x22
	mov	x2, x20
	bl	_sprintf
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_fopen
	cbz	x0, LBB0_21
; %bb.13:
	mov	x21, x0
	sub	x0, x29, #80
	sub	x1, x29, #88
	mov	x2, x21
	bl	_getline
	cmp	x0, #1
	b.lt	LBB0_20
; %bb.14:
	ldur	x0, [x29, #-80]
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_16
; %bb.15:
	strb	wzr, [x0]
LBB0_16:
	ldr	x22, [x19, #16]
	cbz	x22, LBB0_22
; %bb.17:
	mov	x23, #0
	ldur	x20, [x29, #-80]
	ldr	x24, [x19, #24]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x24, x23, lsl #3]
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x23, x23, #1
	cmp	x22, x23
	b.ne	LBB0_18
	b	LBB0_24
LBB0_20:
	mov	w20, #-1
	b	LBB0_26
LBB0_21:
	mov	w20, #-1
	b	LBB0_27
LBB0_22:
	mov	x23, #0
LBB0_23:
	cmp	x23, x22
	b.ne	LBB0_25
LBB0_24:
	mov	w20, #0
	ldur	x8, [x29, #-80]
	ldr	x9, [x19, #24]
	str	x8, [x9, x22, lsl #3]
	add	x8, x22, #1
	str	x8, [x19, #16]
	stur	xzr, [x29, #-80]
	b	LBB0_26
LBB0_25:
	mov	w20, #0
LBB0_26:
	mov	x0, x21
	bl	_fclose
LBB0_27:
	ldur	x0, [x29, #-80]
	bl	_free
LBB0_28:
	ldur	x8, [x29, #-72]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.29:
	mov	x0, x20
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_CORE_SIB_FMT,8,3               ; @CORE_SIB_FMT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_THRD_SIB_FMT,8,3               ; @THRD_SIB_FMT
	.no_dead_strip	_build_cpu_topo
.subsections_via_symbols
