	.file	"extr_book3s_pr.c_kvmppc_vcpu_run_pr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kvmppc_vcpu_run_pr, @function
kvmppc_vcpu_run_pr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	eax, DWORD PTR 4[rsi]
	mov	rbx, rsi
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR KVM_EXIT_INTERNAL_ERROR[rip]
	mov	DWORD PTR [rdi], eax
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L3:
	mov	eax, DWORD PTR OUTSIDE_GUEST_MODE[rip]
	mov	DWORD PTR [rbx], eax
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rsi
	call	kvmppc_setup_debug@PLT
	mov	rdi, rbx
	call	kvmppc_prepare_to_enter@PLT
	mov	r12d, eax
	test	eax, eax
	jle	.L3
	mov	edi, DWORD PTR current[rip]
	call	giveup_all@PLT
	mov	rdi, rbx
	call	kvmppc_get_msr@PLT
	mov	edx, DWORD PTR MSR_FP[rip]
	test	eax, edx
	jne	.L10
.L4:
	xor	eax, eax
	call	kvmppc_fix_ee_before_entry@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	__kvmppc_vcpu_run@PLT
	mov	rdi, rbx
	mov	r12d, eax
	call	kvmppc_clear_debug@PLT
	mov	rdi, rbx
	mov	esi, DWORD PTR MSR_FP[rip]
	or	esi, DWORD PTR MSR_VEC[rip]
	or	esi, DWORD PTR MSR_VSX[rip]
	call	kvmppc_giveup_ext@PLT
	mov	esi, DWORD PTR FSCR_TAR_LG[rip]
	mov	rdi, rbx
	call	kvmppc_giveup_fac@PLT
	mov	eax, DWORD PTR OUTSIDE_GUEST_MODE[rip]
	mov	DWORD PTR [rbx], eax
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, DWORD PTR BOOK3S_INTERRUPT_FP_UNAVAIL[rip]
	mov	rdi, rbx
	call	kvmppc_handle_ext@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	kvmppc_vcpu_run_pr, .-kvmppc_vcpu_run_pr
	.comm	current,4,4
	.comm	OUTSIDE_GUEST_MODE,4,4
	.comm	MSR_VSX,4,4
	.comm	MSR_VEC,4,4
	.comm	MSR_FP,4,4
	.comm	KVM_EXIT_INTERNAL_ERROR,4,4
	.comm	FSCR_TAR_LG,4,4
	.comm	EINVAL,4,4
	.comm	BOOK3S_INTERRUPT_FP_UNAVAIL,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_pr.c_kvmppc_vcpu_run_pr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvmppc_vcpu_run_pr, %function
kvmppc_vcpu_run_pr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1, #4]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #0
	mov	r4, r1
	mov	r6, r0
	bne	.L2
	ldr	r2, .L11
	ldr	r3, .L11+4
	ldr	r2, [r2]
	str	r2, [r0]
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L3:
	ldr	r3, .L11+8
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r1
	bl	kvmppc_setup_debug
	mov	r0, r4
	bl	kvmppc_prepare_to_enter
	subs	r5, r0, #0
	ble	.L3
	ldr	r3, .L11+12
	ldr	r7, .L11+16
	ldr	r0, [r3]
	bl	giveup_all
	mov	r0, r4
	bl	kvmppc_get_msr
	ldr	r2, [r7]
	tst	r0, r2
	bne	.L10
.L4:
	bl	kvmppc_fix_ee_before_entry
	mov	r1, r4
	mov	r0, r6
	bl	__kvmppc_vcpu_run
	mov	r5, r0
	mov	r0, r4
	bl	kvmppc_clear_debug
	ldr	r2, .L11+20
	ldr	r1, .L11+24
	ldr	r3, [r7]
	ldr	r2, [r2]
	ldr	r1, [r1]
	orr	r3, r3, r2
	orr	r1, r3, r1
	mov	r0, r4
	bl	kvmppc_giveup_ext
	ldr	r3, .L11+28
	mov	r0, r4
	ldr	r1, [r3]
	bl	kvmppc_giveup_fac
	b	.L3
.L10:
	ldr	r3, .L11+32
	mov	r0, r4
	ldr	r1, [r3]
	bl	kvmppc_handle_ext
	b	.L4
.L12:
	.align	2
.L11:
	.word	KVM_EXIT_INTERNAL_ERROR
	.word	EINVAL
	.word	OUTSIDE_GUEST_MODE
	.word	current
	.word	MSR_FP
	.word	MSR_VEC
	.word	MSR_VSX
	.word	FSCR_TAR_LG
	.word	BOOK3S_INTERRUPT_FP_UNAVAIL
	.size	kvmppc_vcpu_run_pr, .-kvmppc_vcpu_run_pr
	.comm	current,4,4
	.comm	OUTSIDE_GUEST_MODE,4,4
	.comm	MSR_VSX,4,4
	.comm	MSR_VEC,4,4
	.comm	MSR_FP,4,4
	.comm	KVM_EXIT_INTERNAL_ERROR,4,4
	.comm	FSCR_TAR_LG,4,4
	.comm	EINVAL,4,4
	.comm	BOOK3S_INTERRUPT_FP_UNAVAIL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
