	.file	"extr_native.c_xive_native_enable_vp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	xive_native_enable_vp
	.type	xive_native_enable_vp, @function
xive_native_enable_vp:
.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	ebp, DWORD PTR OPAL_XIVE_VP_ENABLED[rip]
	test	esi, esi
	je	.L4
	or	ebp, DWORD PTR OPAL_XIVE_VP_SINGLE_ESCALATION[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR OPAL_BUSY_DELAY_MS[rip]
	call	msleep@PLT
.L4:
	xor	edx, edx
	mov	esi, ebp
	mov	edi, ebx
	call	opal_xive_set_vp_info@PLT
	cmp	QWORD PTR OPAL_BUSY[rip], rax
	je	.L13
	xor	r8d, r8d
	test	rax, rax
	je	.L1
	mov	r8d, DWORD PTR EIO[rip]
	neg	r8d
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	xive_native_enable_vp, .-xive_native_enable_vp
	.comm	OPAL_XIVE_VP_SINGLE_ESCALATION,4,4
	.comm	OPAL_XIVE_VP_ENABLED,4,4
	.comm	OPAL_BUSY_DELAY_MS,4,4
	.comm	OPAL_BUSY,8,8
	.comm	EIO,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_native.c_xive_native_enable_vp.c"
	.text
	.align	2
	.global	xive_native_enable_vp
	.syntax unified
	.arm
	.fpu softvfp
	.type	xive_native_enable_vp, %function
xive_native_enable_vp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L15
	cmp	r1, #0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r3]
	ldrne	r3, .L15+4
	mov	r4, r0
	ldrne	r3, [r3]
	ldr	r6, .L15+8
	ldr	r7, .L15+12
	orrne	r5, r5, r3
	b	.L4
.L14:
	ldr	r0, [r7]
	bl	msleep
.L4:
	mov	r2, #0
	mov	r1, r5
	mov	r0, r4
	bl	opal_xive_set_vp_info
	ldr	r3, [r6]
	cmp	r3, r0
	beq	.L14
	cmp	r0, #0
	ldrne	r3, .L15+16
	ldrne	r0, [r3]
	rsbne	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	.align	2
.L15:
	.word	OPAL_XIVE_VP_ENABLED
	.word	OPAL_XIVE_VP_SINGLE_ESCALATION
	.word	OPAL_BUSY
	.word	OPAL_BUSY_DELAY_MS
	.word	EIO
	.size	xive_native_enable_vp, .-xive_native_enable_vp
	.comm	OPAL_XIVE_VP_SINGLE_ESCALATION,4,4
	.comm	OPAL_XIVE_VP_ENABLED,4,4
	.comm	OPAL_BUSY_DELAY_MS,4,4
	.comm	OPAL_BUSY,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
