	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_map__read                  ## -- Begin function cpu_map__read
	.p2align	4, 0x90
_cpu_map__read:                         ## @cpu_map__read
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movb	$0, -41(%rbp)
	movl	$-1, %ebx
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-41(%rbp), %rcx
	callq	_fscanf
	testl	%eax, %eax
	jle	LBB0_16
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r14d
	testl	%ebx, %ebx
	js	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %ecx
	movl	%ebx, %eax
	notl	%eax
	addl	%r13d, %eax
	addl	%ecx, %eax
	cmpl	%r12d, %eax
	jl	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_MAX_NR_CPUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %r12d
	shrl	$31, %r12d
	addl	%ecx, %r12d
	sarl	%r12d
	addl	%eax, %r12d
	leal	(,%r12,4), %esi
	movq	%r15, %rdi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_22
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %ecx
	movq	%rax, %r15
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	cmpl	%ecx, %ebx
	jge	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r13d, %rax
	leaq	(%r15,%rax,4), %rax
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, (%rax)
	incl	%ebx
	addq	$4, %rax
	incl	%r13d
	cmpl	-48(%rbp), %ebx
	jl	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r12d, %r13d
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_MAX_NR_CPUS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	addl	%r13d, %r12d
	leal	(,%r12,4), %esi
	movq	%r15, %rdi
	callq	_realloc
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rax
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %edx
	movslq	%r13d, %rcx
	movl	%edx, (%rax,%rcx,4)
	movb	-41(%rbp), %dl
	movl	$-1, %ebx
	movl	$-1, %ecx
	cmpb	$45, %dl
	movq	%rax, %r15
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %ecx
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	incl	%r13d
	cmpl	$2, %r14d
	cmovel	%ecx, %ebx
	cmpl	$1, %r14d
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$10, %dl
	jne	LBB0_1
LBB0_16:
	testl	%r13d, %r13d
	jle	LBB0_18
## %bb.17:
	movl	%r13d, %edi
	movq	%r15, %rsi
	callq	_cpu_map__trim_new
	jmp	LBB0_19
LBB0_22:
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_18:
	xorl	%eax, %eax
	callq	_cpu_map__default_new
LBB0_19:
	movq	%rax, %rbx
LBB0_20:
	movq	%r15, %rdi
	callq	_free
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u%c"

	.comm	_MAX_NR_CPUS,4,2                ## @MAX_NR_CPUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_map__read                  ; -- Begin function cpu_map__read
	.p2align	2
_cpu_map__read:                         ; @cpu_map__read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x0
	mov	w22, #0
	mov	x19, #0
	mov	w24, #0
	strb	wzr, [sp, #11]
	mov	w26, #-1
Lloh0:
	adrp	x25, _MAX_NR_CPUS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MAX_NR_CPUS@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	add	x2, sp, #12
	add	x3, sp, #11
	mov	x0, x20
	mov	x1, x21
	bl	_fscanf
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x23, x0
	tbnz	w26, #31, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [sp, #12]
	mvn	w8, w26
	add	w8, w22, w8
	add	w8, w8, w9
	cmp	w8, w24
	b.lt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x25]
	cmp	w9, #0
	cinc	w9, w9, lt
	add	w24, w8, w9, asr #1
	lsl	w1, w24, #2
	mov	x0, x19
	bl	_realloc
	cbz	x0, LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [sp, #12]
	mov	x19, x0
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	w8, w26, #1
	cmp	w8, w9
	b.ge	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	sbfiz	x9, x22, #2, #32
LBB0_8:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w8, [x19, x9]
	add	w8, w8, #1
	ldr	w10, [sp, #12]
	add	x9, x9, #4
	add	w22, w22, #1
	cmp	w8, w10
	b.lt	LBB0_8
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x26, x22
	cmp	w22, w24
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x25]
	add	w24, w8, w26
	lsl	w1, w24, #2
	mov	x0, x19
	bl	_realloc
	cbz	x0, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x19, x0
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #12]
	add	w22, w26, #1
	str	w8, [x19, w26, sxtw #2]
	ldrb	w8, [sp, #11]
	cmp	w8, #45
	ccmp	w23, #2, #0, eq
	ldr	w9, [sp, #12]
	csinv	w26, w9, wzr, eq
	cmp	w23, #1
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_1 Depth=1
	cmp	w8, #10
	b.ne	LBB0_1
LBB0_14:
	cmp	w22, #1
	b.lt	LBB0_17
; %bb.15:
	mov	x0, x22
	mov	x1, x19
	bl	_cpu_map__trim_new
	b	LBB0_18
LBB0_16:
	mov	x20, #0
	b	LBB0_19
LBB0_17:
	bl	_cpu_map__default_new
LBB0_18:
	mov	x20, x0
LBB0_19:
	mov	x0, x19
	bl	_free
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u%c"

	.comm	_MAX_NR_CPUS,4,2                ; @MAX_NR_CPUS
.subsections_via_symbols
