	.file	"extr_socfpga_mp.c_socfpga_mp_setmaxid.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"hw.ncpu"
	.text
	.p2align 4
	.globl	socfpga_mp_setmaxid
	.type	socfpga_mp_setmaxid, @function
socfpga_mp_setmaxid:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 24
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR mp_ncpus[rip]
	test	eax, eax
	jne	.L1
	lea	rsi, 4[rsp]
	lea	rdi, .LC0[rip]
	mov	DWORD PTR 4[rsp], 2
	call	TUNABLE_INT_FETCH@PLT
	mov	eax, DWORD PTR 4[rsp]
	mov	edx, 1
	lea	ecx, -1[rax]
	cmp	ecx, 1
	cmovbe	edx, ecx
	mov	ecx, 2
	cmova	eax, ecx
	mov	DWORD PTR mp_maxid[rip], edx
	mov	DWORD PTR mp_ncpus[rip], eax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	socfpga_mp_setmaxid, .-socfpga_mp_setmaxid
	.comm	mp_ncpus,4,4
	.comm	mp_maxid,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_socfpga_mp.c_socfpga_mp_setmaxid.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"hw.ncpu\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	socfpga_mp_setmaxid
	.syntax unified
	.arm
	.fpu softvfp
	.type	socfpga_mp_setmaxid, %function
socfpga_mp_setmaxid:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, .L10
	ldr	r4, .L10+4
	sub	sp, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L1
	mov	r3, #2
	mov	r1, sp
	ldr	r0, .L10+8
	str	r3, [sp]
	bl	TUNABLE_INT_FETCH
	ldr	r3, [sp]
	ldr	r1, .L10+12
	sub	r2, r3, #1
	cmp	r2, #1
	movhi	r2, #1
	movhi	r3, #2
	str	r2, [r1]
	str	r3, [r4]
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC1
	.word	mp_ncpus
	.word	.LC0
	.word	mp_maxid
	.size	socfpga_mp_setmaxid, .-socfpga_mp_setmaxid
	.comm	mp_ncpus,4,4
	.comm	mp_maxid,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
