	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_cpunode_map
_setup_cpunode_map:                     ## @setup_cpunode_map
	.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
	movq	%rsp, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	xorl	%eax, %eax
	callq	_init_cpunode_map
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_9
## %bb.1:
	movq	_PATH_SYS_NODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %rbx
	movq	_DT_LNK@GOTPCREL(%rip), %r13
	leaq	-56(%rbp), %r15
	jmp	LBB0_5
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_closedir
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_readdir
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	(%rbx), %rax
	movq	_DT_DIR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-52(%rbp), %rdx
	callq	_sscanf
	testl	%eax, %eax
	jle	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PATH_SYS_NODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rbx), %r8
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rdx
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_readdir
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rbx
	jne	LBB0_13
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=2
	movq	%r12, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_16
LBB0_13:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax), %rcx
	cmpq	(%r13), %rcx
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	8(%rax), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_sscanf
	testl	%eax, %eax
	jle	LBB0_15
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	-52(%rbp), %eax
	movq	_cpunode_map@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	-56(%rbp), %edx
	movl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_15
LBB0_8:
	movq	%r14, %rdi
	callq	_closedir
	xorl	%eax, %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_2:
	xorl	%eax, %eax
LBB0_9:
	movq	%rbx, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.comm	_PATH_SYS_NODE,8,3              ## @PATH_SYS_NODE
	.comm	_DT_DIR,8,3                     ## @DT_DIR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"node%u"

L_.str.1:                               ## @.str.1
	.asciz	"%s/%s"

	.comm	_DT_LNK,8,3                     ## @DT_LNK
L_.str.2:                               ## @.str.2
	.asciz	"cpu%u"

	.comm	_cpunode_map,8,3                ## @cpunode_map
	.no_dead_strip	_setup_cpunode_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_cpunode_map
_setup_cpunode_map:                     ; @setup_cpunode_map
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x26, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x26, [x26, _PATH_MAX@GOTPAGEOFF]
	ldr	w8, [x26]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	bl	_init_cpunode_map
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_16
LBB0_2:
Lloh7:
	adrp	x8, _PATH_SYS_NODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PATH_SYS_NODE@GOTPAGEOFF]
Lloh9:
	ldr	x0, [x8]
	bl	_opendir
	cbz	x0, LBB0_16
; %bb.3:
	mov	x20, x0
	bl	_readdir
	cbz	x0, LBB0_15
; %bb.4:
	mov	x24, x0
Lloh10:
	adrp	x28, _DT_DIR@GOTPAGE
Lloh11:
	ldr	x28, [x28, _DT_DIR@GOTPAGEOFF]
Lloh12:
	adrp	x21, l_.str@PAGE
Lloh13:
	add	x21, x21, l_.str@PAGEOFF
Lloh14:
	adrp	x22, _DT_LNK@GOTPAGE
Lloh15:
	ldr	x22, [x22, _DT_LNK@GOTPAGEOFF]
Lloh16:
	adrp	x27, _cpunode_map@GOTPAGE
Lloh17:
	ldr	x27, [x27, _cpunode_map@GOTPAGEOFF]
Lloh18:
	adrp	x23, l_.str.2@PAGE
Lloh19:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	bl	_closedir
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_readdir
	mov	x24, x0
	cbz	x0, LBB0_15
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x8, [x24]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x24, #8]
	sub	x2, x29, #96
	mov	x1, x21
	bl	_sscanf
	cmp	w0, #0
	b.le	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x26]
Lloh20:
	adrp	x8, _PATH_SYS_NODE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PATH_SYS_NODE@GOTPAGEOFF]
Lloh22:
	ldr	x3, [x8]
	ldr	x4, [x24, #8]
	mov	x0, x19
Lloh23:
	adrp	x2, l_.str.1@PAGE
Lloh24:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_snprintf
	mov	x0, x19
	bl	_opendir
	cbz	x0, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x24, x0
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	bl	_readdir
	cbz	x0, LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x8, [x0]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x0, [x0, #8]
	sub	x2, x29, #92
	mov	x1, x23
	bl	_sscanf
	cmp	w0, #0
	b.le	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=2
	ldp	w8, w10, [x29, #-96]
	ldr	x9, [x27]
	str	w8, [x9, x10, lsl #2]
	b	LBB0_11
LBB0_15:
	mov	x0, x20
	bl	_closedir
	mov	w0, #0
LBB0_16:
	mov	sp, x25
	ldur	x8, [x29, #-88]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.comm	_PATH_SYS_NODE,8,3              ; @PATH_SYS_NODE
	.comm	_DT_DIR,8,3                     ; @DT_DIR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"node%u"

l_.str.1:                               ; @.str.1
	.asciz	"%s/%s"

	.comm	_DT_LNK,8,3                     ; @DT_LNK
l_.str.2:                               ; @.str.2
	.asciz	"cpu%u"

	.comm	_cpunode_map,8,3                ; @cpunode_map
	.no_dead_strip	_setup_cpunode_map
.subsections_via_symbols
