	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_socfpga_mp_setmaxid            ## -- Begin function socfpga_mp_setmaxid
	.p2align	4, 0x90
_socfpga_mp_setmaxid:                   ## @socfpga_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:
	movl	$2, -12(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-12(%rbp), %rsi
	callq	_TUNABLE_INT_FETCH
	movl	-12(%rbp), %eax
	leal	-3(%rax), %ecx
	cmpl	$-2, %ecx
	movl	$2, %ecx
	cmovael	%eax, %ecx
	movl	%ecx, (%rbx)
	decl	%ecx
	movq	_mp_maxid@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mp_ncpus,4,2                   ## @mp_ncpus
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hw.ncpu"

	.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	_socfpga_mp_setmaxid            ; -- Begin function socfpga_mp_setmaxid
	.p2align	2
_socfpga_mp_setmaxid:                   ; @socfpga_mp_setmaxid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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:
	mov	w20, #2
	str	w20, [sp, #12]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #12
	bl	_TUNABLE_INT_FETCH
	ldr	w8, [sp, #12]
	sub	w9, w8, #3
	cmn	w9, #2
	csel	w8, w20, w8, lo
	str	w8, [x19]
	sub	w8, w8, #1
Lloh4:
	adrp	x9, _mp_maxid@GOTPAGE
Lloh5:
	ldr	x9, [x9, _mp_maxid@GOTPAGEOFF]
Lloh6:
	str	w8, [x9]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_mp_ncpus,4,2                   ; @mp_ncpus
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hw.ncpu"

	.comm	_mp_maxid,4,2                   ; @mp_maxid
.subsections_via_symbols
