	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tegra124_mp_setmaxid           ## -- Begin function tegra124_mp_setmaxid
	.p2align	4, 0x90
_tegra124_mp_setmaxid:                  ## @tegra124_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	_mp_ncpus@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_cp15_l2ctlr_get
	movl	%eax, %edi
	callq	_CPUV7_L2CTLR_NPROC
	movl	%eax, (%rbx)
	decl	%eax
	movq	_mp_maxid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mp_ncpus,4,2                   ## @mp_ncpus
	.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	_tegra124_mp_setmaxid           ; -- Begin function tegra124_mp_setmaxid
	.p2align	2
_tegra124_mp_setmaxid:                  ; @tegra124_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	x19, _mp_ncpus@GOTPAGE
Lloh1:
	ldr	x19, [x19, _mp_ncpus@GOTPAGEOFF]
	ldr	w8, [x19]
	cbnz	w8, LBB0_2
; %bb.1:
	bl	_cp15_l2ctlr_get
	bl	_CPUV7_L2CTLR_NPROC
	str	w0, [x19]
	sub	w8, w0, #1
Lloh2:
	adrp	x9, _mp_maxid@GOTPAGE
Lloh3:
	ldr	x9, [x9, _mp_maxid@GOTPAGEOFF]
Lloh4:
	str	w8, [x9]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_mp_ncpus,4,2                   ; @mp_ncpus
	.comm	_mp_maxid,4,2                   ; @mp_maxid
.subsections_via_symbols
