	.file	"extr_smp.c_pnv_smp_setup_cpu.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pnv_smp_setup_cpu, @function
pnv_smp_setup_cpu:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR PVR_POWER9[rip]
	call	pvr_version_is@PLT
	test	rax, rax
	jne	.L10
.L2:
	xor	eax, eax
	call	xive_enabled@PLT
	test	rax, rax
	jne	.L11
	cmp	DWORD PTR boot_cpuid[rip], ebx
	jne	.L12
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	xics_setup_cpu@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	xive_smp_setup_cpu@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR SPRN_HMEER[rip]
	call	mfspr@PLT
	mov	edi, 17
	mov	ebp, eax
	call	PPC_BIT@PLT
	mov	esi, ebp
	mov	edi, DWORD PTR SPRN_HMEER[rip]
	or	esi, eax
	call	mtspr@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	pnv_smp_setup_cpu, .-pnv_smp_setup_cpu
	.comm	boot_cpuid,4,4
	.comm	SPRN_HMEER,4,4
	.comm	PVR_POWER9,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_smp.c_pnv_smp_setup_cpu.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pnv_smp_setup_cpu, %function
pnv_smp_setup_cpu:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r3]
	bl	pvr_version_is
	cmp	r0, #0
	bne	.L10
.L2:
	bl	xive_enabled
	cmp	r0, #0
	bne	.L11
	ldr	r3, .L12+4
	ldr	r3, [r3]
	cmp	r3, r4
	popeq	{r4, r5, r6, pc}
	pop	{r4, r5, r6, lr}
	b	xics_setup_cpu
.L11:
	pop	{r4, r5, r6, lr}
	b	xive_smp_setup_cpu
.L10:
	ldr	r3, .L12+8
	ldr	r6, [r3]
	mov	r0, r6
	bl	mfspr
	mov	r5, r0
	mov	r0, #17
	bl	PPC_BIT
	mov	r1, r0
	mov	r0, r6
	orr	r1, r5, r1
	bl	mtspr
	b	.L2
.L13:
	.align	2
.L12:
	.word	PVR_POWER9
	.word	boot_cpuid
	.word	SPRN_HMEER
	.size	pnv_smp_setup_cpu, .-pnv_smp_setup_cpu
	.comm	boot_cpuid,4,4
	.comm	SPRN_HMEER,4,4
	.comm	PVR_POWER9,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
