	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_mp_setmaxid                ## -- Begin function cpu_mp_setmaxid
	.p2align	4, 0x90
_cpu_mp_setmaxid:                       ## @cpu_mp_setmaxid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_curcpu@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_all_cpus@GOTPCREL(%rip), %rsi
	callq	_CPU_SETOF
	movq	_mp_ncpus@GOTPCREL(%rip), %rbx
	movl	$1, (%rbx)
	xorl	%edi, %edi
	callq	_OF_peer
	movl	%eax, %edi
	callq	_OF_child
	movq	_ap_count@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_foreach_ap
	movl	(%rbx), %edi
	movq	_MAXCPU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MIN
	movl	%eax, (%rbx)
	decl	%eax
	movq	_mp_maxid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curcpu,4,2                     ## @curcpu
	.comm	_all_cpus,4,2                   ## @all_cpus
	.comm	_mp_ncpus,4,2                   ## @mp_ncpus
	.comm	_ap_count,4,2                   ## @ap_count
	.comm	_MAXCPU,4,2                     ## @MAXCPU
	.comm	_mp_maxid,4,2                   ## @mp_maxid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_mp_setmaxid                ; -- Begin function cpu_mp_setmaxid
	.p2align	2
_cpu_mp_setmaxid:                       ; @cpu_mp_setmaxid
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _curcpu@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curcpu@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, _all_cpus@GOTPAGE
Lloh4:
	ldr	x1, [x1, _all_cpus@GOTPAGEOFF]
	bl	_CPU_SETOF
Lloh5:
	adrp	x19, _mp_ncpus@GOTPAGE
Lloh6:
	ldr	x19, [x19, _mp_ncpus@GOTPAGEOFF]
	mov	w8, #1
	str	w8, [x19]
	mov	w0, #0
	bl	_OF_peer
	bl	_OF_child
Lloh7:
	adrp	x8, _ap_count@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ap_count@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_foreach_ap
	ldr	w0, [x19]
Lloh10:
	adrp	x8, _MAXCPU@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAXCPU@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_MIN
	str	w0, [x19]
	sub	w8, w0, #1
Lloh13:
	adrp	x9, _mp_maxid@GOTPAGE
Lloh14:
	ldr	x9, [x9, _mp_maxid@GOTPAGEOFF]
Lloh15:
	str	w8, [x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_curcpu,4,2                     ; @curcpu
	.comm	_all_cpus,4,2                   ; @all_cpus
	.comm	_mp_ncpus,4,2                   ; @mp_ncpus
	.comm	_ap_count,4,2                   ; @ap_count
	.comm	_MAXCPU,4,2                     ; @MAXCPU
	.comm	_mp_maxid,4,2                   ; @mp_maxid
.subsections_via_symbols
