	.file	"extr_book3s_hv.c_kvmhv_p9_guest_entry.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kvmhv_p9_guest_entry
	.type	kvmhv_p9_guest_entry, @function
kvmhv_p9_guest_entry:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	r15, QWORD PTR 272[rdi]
	mov	edi, DWORD PTR SPRN_DSCR[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	mfspr@PLT
	mov	edi, DWORD PTR SPRN_TIDR[rip]
	mov	DWORD PTR 4[rsp], eax
	call	mfspr@PLT
	mov	edi, DWORD PTR SPRN_IAMR[rip]
	mov	DWORD PTR 8[rsp], eax
	call	mfspr@PLT
	mov	edi, DWORD PTR SPRN_AMR[rip]
	mov	DWORD PTR 12[rsp], eax
	call	mfspr@PLT
	mov	edi, DWORD PTR SPRN_DEC[rip]
	mov	ebx, eax
	call	mfspr@PLT
	mov	r12d, eax
	xor	eax, eax
	call	mftb@PLT
	cmp	r12d, 511
	jg	.L2
	mov	r14d, DWORD PTR BOOK3S_INTERRUPT_HV_DECREMENTER[rip]
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	movsx	rdx, r12d
	add	rdx, rax
	mov	rax, QWORD PTR local_paca[rip]
	cmp	rdx, r13
	mov	QWORD PTR 8[rax], rdx
	cmovbe	r13, rdx
	xor	eax, eax
	mov	QWORD PTR 264[rbp], 0
	mov	QWORD PTR 16[rsp], r13
	call	kvmhv_save_host_pmu@PLT
	xor	eax, eax
	call	kvmppc_subcore_enter_guest@PLT
	mov	r13, QWORD PTR 160[rbp]
	movabs	rax, 4294967297
	mov	QWORD PTR [r15], rax
	test	r13, r13
	je	.L4
	mov	rdi, QWORD PTR 8[r13]
	call	be32_to_cpu@PLT
	lea	rdi, 1[rax]
	call	cpu_to_be32@PLT
	mov	QWORD PTR 8[r13], rax
	mov	DWORD PTR 152[rbp], 1
.L4:
	mov	edi, DWORD PTR CPU_FTR_TM[rip]
	call	cpu_has_feature@PLT
	test	rax, rax
	jne	.L7
	mov	edi, DWORD PTR CPU_FTR_P9_TM_HV_ASSIST[rip]
	call	cpu_has_feature@PLT
	test	rax, rax
	jne	.L7
.L6:
	mov	rdi, rbp
	lea	r13, 196[rbp]
	call	kvmhv_load_guest_pmu@PLT
	mov	edi, DWORD PTR MSR_FP[rip]
	or	edi, DWORD PTR MSR_VEC[rip]
	or	edi, DWORD PTR MSR_VSX[rip]
	call	msr_check_and_set@PLT
	mov	rdi, r13
	call	load_fp_state@PLT
	mov	rsi, QWORD PTR 16[rbp]
	mov	edi, DWORD PTR SPRN_VRSAVE[rip]
	call	mtspr@PLT
	mov	rsi, QWORD PTR 24[rbp]
	mov	edi, DWORD PTR SPRN_DSCR[rip]
	call	mtspr@PLT
	mov	rsi, QWORD PTR 32[rbp]
	mov	edi, DWORD PTR SPRN_IAMR[rip]
	call	mtspr@PLT
	mov	rsi, QWORD PTR 40[rbp]
	mov	edi, DWORD PTR SPRN_PSPB[rip]
	call	mtspr@PLT
	mov	rsi, QWORD PTR 48[rbp]
	mov	edi, DWORD PTR SPRN_FSCR[rip]
	call	mtspr@PLT
	mov	rsi, QWORD PTR 56[rbp]
	mov	edi, DWORD PTR SPRN_TAR[rip]
	call	mtspr@PLT
	mov	rsi, QWORD PTR 64[rbp]
	mov	edi, DWORD PTR SPRN_EBBHR[rip]
	call	mtspr@PLT
	mov	rsi, QWORD PTR 72[rbp]
	mov	edi, DWORD PTR SPRN_EBBRR[rip]
	call	mtspr@PLT
	mov	rsi, QWORD PTR 80[rbp]
	mov	edi, DWORD PTR SPRN_BESCR[rip]
	call	mtspr@PLT
	mov	rsi, QWORD PTR 88[rbp]
	mov	edi, DWORD PTR SPRN_WORT[rip]
	call	mtspr@PLT
	mov	rsi, QWORD PTR 96[rbp]
	mov	edi, DWORD PTR SPRN_TIDR[rip]
	call	mtspr@PLT
	mov	rsi, QWORD PTR 168[rbp]
	mov	edi, DWORD PTR SPRN_DAR[rip]
	call	mtspr@PLT
	mov	rsi, QWORD PTR 176[rbp]
	mov	edi, DWORD PTR SPRN_DSISR[rip]
	call	mtspr@PLT
	mov	rsi, QWORD PTR 104[rbp]
	mov	edi, DWORD PTR SPRN_AMR[rip]
	call	mtspr@PLT
	mov	rsi, QWORD PTR 112[rbp]
	mov	edi, DWORD PTR SPRN_UAMOR[rip]
	call	mtspr@PLT
	test	BYTE PTR 120[rbp], 1
	je	.L28
.L8:
	mov	r12, QWORD PTR 128[rbp]
	xor	eax, eax
	call	mftb@PLT
	mov	edi, DWORD PTR SPRN_DEC[rip]
	mov	rsi, r12
	sub	rsi, rax
	call	mtspr@PLT
	xor	eax, eax
	call	kvmhv_on_pseries@PLT
	test	rax, rax
	je	.L9
	mov	edi, DWORD PTR SPRN_PSSCR_PR[rip]
	lea	r12, 32[rsp]
	call	mfspr@PLT
	mov	rsi, QWORD PTR 136[rbp]
	mov	edi, DWORD PTR SPRN_PSSCR_PR[rip]
	cdqe
	mov	QWORD PTR 24[rsp], rax
	call	mtspr@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	kvmhv_save_hv_regs@PLT
	mov	eax, DWORD PTR 184[rbp]
	mov	QWORD PTR 32[rsp], r14
	mov	DWORD PTR 224[rbp], eax
	mov	eax, DWORD PTR HV_GUEST_STATE_VERSION[rip]
	mov	DWORD PTR 64[rsp], eax
	mov	rax, QWORD PTR 208[rbp]
	test	rax, rax
	je	.L10
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 60[rsp], eax
	mov	eax, DWORD PTR 256[rbp]
	mov	DWORD PTR 56[rsp], eax
.L11:
	mov	rax, QWORD PTR 16[rsp]
	lea	rdi, 216[rbp]
	mov	QWORD PTR 48[rsp], rax
	call	__pa@PLT
	mov	rdi, r12
	mov	r14d, eax
	call	__pa@PLT
	mov	edi, DWORD PTR H_ENTER_NESTED[rip]
	mov	edx, r14d
	mov	esi, eax
	call	plpar_hcall_norets@PLT
	mov	rsi, r12
	mov	rdi, rbp
	mov	r14d, eax
	call	kvmhv_restore_hv_return_state@PLT
	mov	eax, DWORD PTR 224[rbp]
	mov	edi, DWORD PTR SPRN_DAR[rip]
	mov	DWORD PTR 184[rbp], eax
	call	mfspr@PLT
	mov	edi, DWORD PTR SPRN_DSISR[rip]
	cdqe
	mov	QWORD PTR 168[rbp], rax
	call	mfspr@PLT
	mov	edi, DWORD PTR SPRN_PSSCR_PR[rip]
	cdqe
	mov	QWORD PTR 176[rbp], rax
	call	mfspr@PLT
	mov	rsi, QWORD PTR 24[rsp]
	mov	edi, DWORD PTR SPRN_PSSCR_PR[rip]
	cdqe
	mov	QWORD PTR 136[rbp], rax
	call	mtspr@PLT
	cmp	DWORD PTR BOOK3S_INTERRUPT_SYSCALL[rip], r14d
	jne	.L13
	cmp	QWORD PTR 208[rbp], 0
	jne	.L13
	mov	esi, 3
	mov	rdi, rbp
	call	kvmppc_get_gpr@PLT
	cmp	rax, QWORD PTR H_CEDE[rip]
	jne	.L13
	mov	rdi, rbp
	xor	r14d, r14d
	call	kvmppc_nested_cede@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR 184[rbp]
	mov	edx, 1
	mov	rdi, rbp
	call	kvmppc_restore_tm_hv@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdx, r14
	mov	rdi, rbp
	call	kvmhv_load_hv_regs_and_go@PLT
	mov	r14d, eax
.L13:
	mov	QWORD PTR 200[rbp], 0
	mov	edi, DWORD PTR SPRN_DEC[rip]
	movsx	r8, ebx
	mov	QWORD PTR 16[rsp], r8
	call	mfspr@PLT
	movsx	rbx, eax
	xor	eax, eax
	call	mftb@PLT
	mov	DWORD PTR 0[rbp], -1
	mov	edi, DWORD PTR SPRN_CTRLF[rip]
	mov	DWORD PTR 144[rbp], -1
	add	rax, rbx
	mov	QWORD PTR 128[rbp], rax
	call	mfspr@PLT
	mov	edi, DWORD PTR SPRN_IAMR[rip]
	mov	DWORD PTR 120[rbp], eax
	call	mfspr@PLT
	mov	edi, DWORD PTR SPRN_PSPB[rip]
	cdqe
	mov	QWORD PTR 32[rbp], rax
	call	mfspr@PLT
	mov	edi, DWORD PTR SPRN_FSCR[rip]
	cdqe
	mov	QWORD PTR 40[rbp], rax
	call	mfspr@PLT
	mov	edi, DWORD PTR SPRN_TAR[rip]
	cdqe
	mov	QWORD PTR 48[rbp], rax
	call	mfspr@PLT
	mov	edi, DWORD PTR SPRN_EBBHR[rip]
	cdqe
	mov	QWORD PTR 56[rbp], rax
	call	mfspr@PLT
	mov	edi, DWORD PTR SPRN_EBBRR[rip]
	cdqe
	mov	QWORD PTR 64[rbp], rax
	call	mfspr@PLT
	mov	edi, DWORD PTR SPRN_BESCR[rip]
	cdqe
	mov	QWORD PTR 72[rbp], rax
	call	mfspr@PLT
	mov	edi, DWORD PTR SPRN_WORT[rip]
	cdqe
	mov	QWORD PTR 80[rbp], rax
	call	mfspr@PLT
	mov	edi, DWORD PTR SPRN_TIDR[rip]
	cdqe
	mov	QWORD PTR 88[rbp], rax
	call	mfspr@PLT
	mov	edi, DWORD PTR SPRN_AMR[rip]
	cdqe
	mov	QWORD PTR 96[rbp], rax
	call	mfspr@PLT
	mov	edi, DWORD PTR SPRN_UAMOR[rip]
	cdqe
	mov	QWORD PTR 104[rbp], rax
	call	mfspr@PLT
	mov	edi, DWORD PTR SPRN_DSCR[rip]
	cdqe
	mov	QWORD PTR 112[rbp], rax
	call	mfspr@PLT
	mov	edi, DWORD PTR SPRN_PSPB[rip]
	xor	esi, esi
	cdqe
	mov	QWORD PTR 24[rbp], rax
	call	mtspr@PLT
	mov	edi, DWORD PTR SPRN_WORT[rip]
	xor	esi, esi
	call	mtspr@PLT
	mov	edi, DWORD PTR SPRN_UAMOR[rip]
	xor	esi, esi
	call	mtspr@PLT
	movsx	rsi, DWORD PTR 4[rsp]
	mov	edi, DWORD PTR SPRN_DSCR[rip]
	call	mtspr@PLT
	movsx	rsi, DWORD PTR 8[rsp]
	mov	edi, DWORD PTR SPRN_TIDR[rip]
	call	mtspr@PLT
	movsx	rsi, DWORD PTR 12[rsp]
	mov	edi, DWORD PTR SPRN_IAMR[rip]
	call	mtspr@PLT
	mov	edi, DWORD PTR SPRN_PSPB[rip]
	xor	esi, esi
	call	mtspr@PLT
	mov	r8, QWORD PTR 16[rsp]
	cmp	QWORD PTR 104[rbp], r8
	je	.L14
	mov	edi, DWORD PTR SPRN_AMR[rip]
	mov	rsi, r8
	call	mtspr@PLT
.L14:
	mov	edi, DWORD PTR MSR_FP[rip]
	or	edi, DWORD PTR MSR_VEC[rip]
	or	edi, DWORD PTR MSR_VSX[rip]
	call	msr_check_and_set@PLT
	mov	rdi, r13
	call	store_fp_state@PLT
	mov	edi, DWORD PTR SPRN_VRSAVE[rip]
	call	mfspr@PLT
	mov	edi, DWORD PTR CPU_FTR_TM[rip]
	cdqe
	mov	QWORD PTR 16[rbp], rax
	call	cpu_has_feature@PLT
	test	rax, rax
	jne	.L17
	mov	edi, DWORD PTR CPU_FTR_P9_TM_HV_ASSIST[rip]
	call	cpu_has_feature@PLT
	test	rax, rax
	jne	.L17
.L16:
	mov	r12, QWORD PTR 160[rbp]
	mov	ebx, 1
	test	r12, r12
	je	.L18
	mov	rdi, QWORD PTR 8[r12]
	call	be32_to_cpu@PLT
	lea	rdi, 1[rax]
	call	cpu_to_be32@PLT
	mov	ebx, DWORD PTR [r12]
	mov	QWORD PTR 8[r12], rax
	mov	DWORD PTR 152[rbp], 1
.L18:
	mov	rdi, QWORD PTR 8[rbp]
	call	nesting_enabled@PLT
	mov	rdi, rbp
	or	ebx, eax
	mov	esi, ebx
	call	kvmhv_save_guest_pmu@PLT
	mov	rax, QWORD PTR local_paca[rip]
	mov	QWORD PTR [r15], 257
	mov	rbx, QWORD PTR 8[rax]
	xor	eax, eax
	call	mftb@PLT
	mov	edi, DWORD PTR SPRN_DEC[rip]
	sub	rbx, rax
	mov	rsi, rbx
	call	mtspr@PLT
	mov	rax, QWORD PTR local_paca[rip]
	mov	edi, DWORD PTR SPRN_SPRG_VDSO_WRITE[rip]
	mov	rsi, QWORD PTR [rax]
	call	mtspr@PLT
	xor	eax, eax
	call	kvmhv_load_host_pmu@PLT
	xor	eax, eax
	call	kvmppc_subcore_exit_guest@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	esi, DWORD PTR 184[rbp]
	mov	edx, 1
	mov	rdi, rbp
	call	kvmppc_save_tm_hv@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR 8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 60[rsp], eax
	mov	eax, DWORD PTR 280[rbp]
	mov	DWORD PTR 56[rsp], eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edi, DWORD PTR SPRN_CTRLF[rip]
	call	mfspr@PLT
	mov	edi, DWORD PTR SPRN_CTRLT[rip]
	and	eax, -2
	movsx	rsi, eax
	call	mtspr@PLT
	jmp	.L8
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	kvmhv_p9_guest_entry, .-kvmhv_p9_guest_entry
	.comm	local_paca,8,8
	.comm	SPRN_WORT,4,4
	.comm	SPRN_VRSAVE,4,4
	.comm	SPRN_UAMOR,4,4
	.comm	SPRN_TIDR,4,4
	.comm	SPRN_TAR,4,4
	.comm	SPRN_SPRG_VDSO_WRITE,4,4
	.comm	SPRN_PSSCR_PR,4,4
	.comm	SPRN_PSPB,4,4
	.comm	SPRN_IAMR,4,4
	.comm	SPRN_FSCR,4,4
	.comm	SPRN_EBBRR,4,4
	.comm	SPRN_EBBHR,4,4
	.comm	SPRN_DSISR,4,4
	.comm	SPRN_DSCR,4,4
	.comm	SPRN_DEC,4,4
	.comm	SPRN_DAR,4,4
	.comm	SPRN_CTRLT,4,4
	.comm	SPRN_CTRLF,4,4
	.comm	SPRN_BESCR,4,4
	.comm	SPRN_AMR,4,4
	.comm	MSR_VSX,4,4
	.comm	MSR_VEC,4,4
	.comm	MSR_FP,4,4
	.comm	LPCR_LD,8,8
	.comm	H_ENTER_NESTED,4,4
	.comm	H_CEDE,8,8
	.comm	HV_GUEST_STATE_VERSION,4,4
	.comm	CPU_FTR_TM,4,4
	.comm	CPU_FTR_P9_TM_HV_ASSIST,4,4
	.comm	BOOK3S_INTERRUPT_SYSCALL,4,4
	.comm	BOOK3S_INTERRUPT_HV_DECREMENTER,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_book3s_hv.c_kvmhv_p9_guest_entry.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kvmhv_p9_guest_entry
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvmhv_p9_guest_entry, %function
kvmhv_p9_guest_entry:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r3, .L31
	sub	sp, sp, #76
	ldr	r7, .L31+4
	ldr	r3, [r3]
	str	r3, [sp, #68]
	mov	r3,#0
	ldr	r3, [r4, #144]
	ldr	r0, [r7]
	mov	r8, r1
	mov	r5, r2
	str	r3, [sp, #4]
	bl	mfspr
	ldr	r6, .L31+8
	str	r0, [sp, #8]
	ldr	r0, [r6]
	bl	mfspr
	ldr	r10, .L31+12
	str	r0, [sp, #12]
	ldr	r0, [r10]
	bl	mfspr
	ldr	r3, .L31+16
	str	r0, [sp, #16]
	ldr	r0, [r3]
	bl	mfspr
	ldr	fp, .L31+20
	str	r0, [sp, #20]
	ldr	r0, [fp]
	bl	mfspr
	mov	r9, r0
	bl	mftb
	cmp	r9, #512
	bge	.L2
	ldr	r3, .L31+24
	ldr	r5, [r3]
.L1:
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	mov	r0, r5
	add	sp, sp, #76
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r3, #0
	ldr	r2, .L31+28
	add	r0, r0, r9
	ldr	r1, [r2]
	cmp	r0, r8
	str	r0, [r1, #4]
	str	r3, [r4, #140]
	movcs	r3, r8
	movcc	r3, r0
	str	r3, [sp, #28]
	bl	kvmhv_save_host_pmu
	bl	kvmppc_subcore_enter_guest
	mov	r2, #1
	ldr	r8, [r4, #80]
	ldr	r3, [sp, #4]
	cmp	r8, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	beq	.L4
	ldr	r0, [r8, #4]
	bl	be32_to_cpu
	add	r0, r0, #1
	bl	cpu_to_be32
	mov	r2, #1
	str	r0, [r8, #4]
	str	r2, [r4, #76]
.L4:
	ldr	r3, .L31+32
	ldr	r0, [r3]
	bl	cpu_has_feature
	cmp	r0, #0
	bne	.L7
	ldr	r3, .L31+36
	ldr	r0, [r3]
	bl	cpu_has_feature
	cmp	r0, #0
	bne	.L7
.L6:
	mov	r0, r4
	bl	kvmhv_load_guest_pmu
	ldr	r3, .L31+40
	ldr	r2, .L31+44
	ldr	r1, .L31+48
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, [r1]
	orr	r3, r3, r2
	orr	r0, r3, r0
	add	r3, r4, #100
	mov	r8, r3
	str	r3, [sp, #24]
	bl	msr_check_and_set
	mov	r0, r8
	bl	load_fp_state
	ldr	r3, .L31+52
	ldr	r1, [r4, #8]
	ldr	r0, [r3]
	bl	mtspr
	ldr	r9, .L31+56
	ldr	r1, [r4, #12]
	ldr	r0, [r7]
	bl	mtspr
	ldr	r1, [r4, #16]
	ldr	r0, [r10]
	bl	mtspr
	ldr	r1, [r4, #20]
	ldr	r0, [r9]
	bl	mtspr
	ldr	r3, .L31+60
	ldr	r1, [r4, #24]
	ldr	r0, [r3]
	bl	mtspr
	ldr	r3, .L31+64
	ldr	r1, [r4, #28]
	ldr	r0, [r3]
	bl	mtspr
	ldr	r3, .L31+68
	ldr	r1, [r4, #32]
	ldr	r0, [r3]
	bl	mtspr
	ldr	r3, .L31+72
	ldr	r1, [r4, #36]
	ldr	r0, [r3]
	bl	mtspr
	ldr	r3, .L31+76
	ldr	r1, [r4, #40]
	ldr	r0, [r3]
	bl	mtspr
	ldr	r3, .L31+80
	ldr	r1, [r4, #44]
	ldr	r0, [r3]
	bl	mtspr
	ldr	r1, [r4, #48]
	ldr	r0, [r6]
	bl	mtspr
	ldr	r3, .L31+84
	ldr	r1, [r4, #84]
	ldr	r0, [r3]
	bl	mtspr
	ldr	r3, .L31+88
	ldr	r1, [r4, #88]
	ldr	r0, [r3]
	bl	mtspr
	ldr	r3, .L31+16
	ldr	r1, [r4, #52]
	ldr	r0, [r3]
	bl	mtspr
	ldr	r3, .L31+92
	ldr	r1, [r4, #56]
	ldr	r0, [r3]
	bl	mtspr
	ldr	r3, [r4, #60]
	tst	r3, #1
	ldr	r3, .L31+96
	strne	r3, [sp, #32]
	beq	.L29
.L8:
	ldr	r3, [fp]
	ldr	r8, [r4, #64]
	str	r3, [sp, #36]
	bl	mftb
	mov	r1, r0
	ldr	r3, [sp, #36]
	sub	r1, r8, r1
	mov	r0, r3
	bl	mtspr
	bl	kvmhv_on_pseries
	cmp	r0, #0
	beq	.L9
	ldr	r8, .L31+100
	ldr	r0, [r8]
	bl	mfspr
	mov	r3, r0
	ldr	r1, [r4, #68]
	ldr	r0, [r8]
	str	r3, [sp, #36]
	bl	mtspr
	add	r1, sp, #44
	mov	r0, r4
	bl	kvmhv_save_hv_regs
	ldr	r3, [r4, #108]
	ldr	r2, .L31+104
	cmp	r3, #0
	ldreq	r3, [r4, #4]
	ldr	r1, [r2]
	ldr	r2, [r4, #92]
	ldreq	r3, [r3]
	str	r2, [r4, #116]
	ldrne	r2, [r3]
	ldreq	r2, [r4, #148]
	ldrne	r3, [r4, #136]
	strne	r2, [sp, #60]
	strne	r3, [sp, #56]
	streq	r2, [sp, #56]
	streq	r3, [sp, #60]
	ldr	r2, [sp, #28]
	ldr	r3, .L31+108
	add	r0, sp, #44
	str	r2, [sp, #52]
	str	r5, [sp, #44]
	str	r1, [sp, #64]
	ldr	r5, [r3]
	bl	__pa
	mov	r1, r0
	add	r0, r4, #112
	str	r1, [sp, #28]
	bl	__pa
	ldr	r1, [sp, #28]
	mov	r2, r0
	mov	r0, r5
	bl	plpar_hcall_norets
	add	r1, sp, #44
	mov	r5, r0
	mov	r0, r4
	bl	kvmhv_restore_hv_return_state
	ldr	r3, [r4, #116]
	ldr	r2, .L31+84
	str	r3, [r4, #92]
	ldr	r0, [r2]
	bl	mfspr
	mov	r3, r0
	ldr	r2, .L31+88
	str	r3, [r4, #84]
	ldr	r0, [r2]
	bl	mfspr
	mov	r3, r0
	ldr	r0, [r8]
	str	r3, [r4, #88]
	bl	mfspr
	ldr	r1, [sp, #36]
	str	r0, [r4, #68]
	ldr	r0, [r8]
	bl	mtspr
	ldr	r3, .L31+112
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L30
.L13:
	mov	r8, #0
	ldr	r0, [fp]
	str	r8, [r4, #104]
	bl	mfspr
	str	r0, [sp, #28]
	bl	mftb
	mvn	r3, #0
	ldr	r2, [sp, #28]
	str	r3, [r4, #72]
	add	r0, r0, r2
	ldr	r2, [sp, #32]
	str	r0, [r4, #64]
	ldr	r0, [r2]
	str	r3, [r4]
	bl	mfspr
	mov	r3, r0
	ldr	r0, [r10]
	str	r3, [r4, #60]
	bl	mfspr
	mov	r3, r0
	ldr	r0, [r9]
	str	r3, [r4, #16]
	bl	mfspr
	mov	r3, r0
	ldr	r2, .L31+60
	str	r3, [r4, #20]
	ldr	r0, [r2]
	bl	mfspr
	mov	r3, r0
	ldr	r2, .L31+64
	str	r3, [r4, #24]
	ldr	r0, [r2]
	bl	mfspr
	mov	r3, r0
	ldr	r2, .L31+68
	str	r3, [r4, #28]
	ldr	r0, [r2]
	bl	mfspr
	mov	r3, r0
	ldr	r2, .L31+72
	str	r3, [r4, #32]
	ldr	r0, [r2]
	bl	mfspr
	mov	r3, r0
	ldr	r2, .L31+76
	str	r3, [r4, #36]
	ldr	r0, [r2]
	bl	mfspr
	mov	r3, r0
	ldr	r2, .L31+80
	str	r3, [r4, #40]
	ldr	r0, [r2]
	bl	mfspr
	mov	r3, r0
	ldr	r0, [r6]
	str	r3, [r4, #44]
	bl	mfspr
	mov	r3, r0
	ldr	r1, .L31+16
	str	r3, [r4, #48]
	ldr	r0, [r1]
	bl	mfspr
	mov	r3, r0
	ldr	r1, .L31+92
	str	r3, [r4, #52]
	ldr	r0, [r1]
	bl	mfspr
	mov	r3, r0
	ldr	r0, [r7]
	str	r3, [r4, #56]
	bl	mfspr
	mov	r1, r8
	str	r0, [r4, #12]
	ldr	r0, [r9]
	bl	mtspr
	ldr	r2, .L31+80
	mov	r1, r8
	ldr	r0, [r2]
	bl	mtspr
	ldr	r3, .L31+92
	mov	r1, r8
	ldr	r0, [r3]
	bl	mtspr
	ldr	r1, [sp, #8]
	ldr	r0, [r7]
	bl	mtspr
	ldr	r1, [sp, #12]
	ldr	r0, [r6]
	bl	mtspr
	ldr	r1, [sp, #16]
	ldr	r0, [r10]
	bl	mtspr
	mov	r1, r8
	ldr	r0, [r9]
	bl	mtspr
	ldr	r3, [r4, #52]
	ldr	r2, [sp, #20]
	cmp	r3, r2
	beq	.L14
	ldr	r3, .L31+16
	mov	r1, r2
	ldr	r0, [r3]
	bl	mtspr
.L14:
	ldr	r3, .L31+40
	ldr	r2, .L31+44
	ldr	r1, .L31+48
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, [r1]
	orr	r3, r3, r2
	orr	r0, r3, r0
	bl	msr_check_and_set
	ldr	r0, [sp, #24]
	bl	store_fp_state
	ldr	r3, .L31+52
	ldr	r0, [r3]
	bl	mfspr
	mov	r3, r0
	ldr	r2, .L31+32
	str	r3, [r4, #8]
	ldr	r0, [r2]
	bl	cpu_has_feature
	cmp	r0, #0
	bne	.L17
	ldr	r3, .L31+36
	ldr	r0, [r3]
	bl	cpu_has_feature
	cmp	r0, #0
	bne	.L17
.L16:
	ldr	r6, [r4, #80]
	cmp	r6, #0
	moveq	r6, #1
	beq	.L18
	ldr	r0, [r6, #4]
	bl	be32_to_cpu
	add	r0, r0, #1
	bl	cpu_to_be32
	mov	r3, #1
	str	r0, [r6, #4]
	ldr	r6, [r6]
	str	r3, [r4, #76]
.L18:
	ldr	r0, [r4, #4]
	bl	nesting_enabled
	mov	r1, r0
	mov	r0, r4
	orr	r1, r6, r1
	bl	kvmhv_save_guest_pmu
	mov	r1, #0
	ldr	r7, .L31+28
	ldr	r2, .L31+116
	ldr	r0, [sp, #4]
	ldr	r3, [r7]
	str	r1, [r0, #4]
	str	r2, [r0]
	ldr	r4, [r3, #4]
	ldr	r6, [fp]
	bl	mftb
	mov	r1, r0
	mov	r0, r6
	sub	r1, r4, r1
	bl	mtspr
	ldr	r2, [r7]
	ldr	r3, .L31+120
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	mtspr
	bl	kvmhv_load_host_pmu
	bl	kvmppc_subcore_exit_guest
	b	.L1
.L17:
	mov	r2, #1
	mov	r0, r4
	ldr	r1, [r4, #92]
	bl	kvmppc_save_tm_hv
	b	.L16
.L7:
	mov	r2, #1
	mov	r0, r4
	ldr	r1, [r4, #92]
	bl	kvmppc_restore_tm_hv
	b	.L6
.L9:
	mov	r2, r5
	mov	r0, r4
	ldr	r1, [sp, #28]
	bl	kvmhv_load_hv_regs_and_go
	mov	r5, r0
	b	.L13
.L30:
	ldr	r8, [r4, #108]
	cmp	r8, #0
	bne	.L13
	mov	r1, #3
	mov	r0, r4
	bl	kvmppc_get_gpr
	ldr	r3, .L31+124
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L13
	mov	r0, r4
	mov	r5, r8
	bl	kvmppc_nested_cede
	b	.L13
.L29:
	mov	r2, r3
	str	r3, [sp, #32]
	ldr	r3, .L31+128
	ldr	r0, [r2]
	ldr	r8, [r3]
	bl	mfspr
	mov	r1, r0
	mov	r0, r8
	bic	r1, r1, #1
	bl	mtspr
	b	.L8
.L28:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	.LC0
	.word	SPRN_DSCR
	.word	SPRN_TIDR
	.word	SPRN_IAMR
	.word	SPRN_AMR
	.word	SPRN_DEC
	.word	BOOK3S_INTERRUPT_HV_DECREMENTER
	.word	local_paca
	.word	CPU_FTR_TM
	.word	CPU_FTR_P9_TM_HV_ASSIST
	.word	MSR_FP
	.word	MSR_VEC
	.word	MSR_VSX
	.word	SPRN_VRSAVE
	.word	SPRN_PSPB
	.word	SPRN_FSCR
	.word	SPRN_TAR
	.word	SPRN_EBBHR
	.word	SPRN_EBBRR
	.word	SPRN_BESCR
	.word	SPRN_WORT
	.word	SPRN_DAR
	.word	SPRN_DSISR
	.word	SPRN_UAMOR
	.word	SPRN_CTRLF
	.word	SPRN_PSSCR_PR
	.word	HV_GUEST_STATE_VERSION
	.word	H_ENTER_NESTED
	.word	BOOK3S_INTERRUPT_SYSCALL
	.word	257
	.word	SPRN_SPRG_VDSO_WRITE
	.word	H_CEDE
	.word	SPRN_CTRLT
	.size	kvmhv_p9_guest_entry, .-kvmhv_p9_guest_entry
	.comm	local_paca,4,4
	.comm	SPRN_WORT,4,4
	.comm	SPRN_VRSAVE,4,4
	.comm	SPRN_UAMOR,4,4
	.comm	SPRN_TIDR,4,4
	.comm	SPRN_TAR,4,4
	.comm	SPRN_SPRG_VDSO_WRITE,4,4
	.comm	SPRN_PSSCR_PR,4,4
	.comm	SPRN_PSPB,4,4
	.comm	SPRN_IAMR,4,4
	.comm	SPRN_FSCR,4,4
	.comm	SPRN_EBBRR,4,4
	.comm	SPRN_EBBHR,4,4
	.comm	SPRN_DSISR,4,4
	.comm	SPRN_DSCR,4,4
	.comm	SPRN_DEC,4,4
	.comm	SPRN_DAR,4,4
	.comm	SPRN_CTRLT,4,4
	.comm	SPRN_CTRLF,4,4
	.comm	SPRN_BESCR,4,4
	.comm	SPRN_AMR,4,4
	.comm	MSR_VSX,4,4
	.comm	MSR_VEC,4,4
	.comm	MSR_FP,4,4
	.comm	LPCR_LD,4,4
	.comm	H_ENTER_NESTED,4,4
	.comm	H_CEDE,4,4
	.comm	HV_GUEST_STATE_VERSION,4,4
	.comm	CPU_FTR_TM,4,4
	.comm	CPU_FTR_P9_TM_HV_ASSIST,4,4
	.comm	BOOK3S_INTERRUPT_SYSCALL,4,4
	.comm	BOOK3S_INTERRUPT_HV_DECREMENTER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
