	.file	"extr_book3s_hv.c_kvmppc_core_vcpu_load_hv.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kvmppc_core_vcpu_load_hv, @function
kvmppc_core_vcpu_load_hv:
.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	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR 24[rdi]
	cmp	QWORD PTR 8[rdi], rbx
	je	.L6
.L2:
	lea	rbp, 16[rbx]
	xor	esi, esi
	mov	rdi, rbp
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR KVMPPC_VCPU_BUSY_IN_HOST[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L7
.L3:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	xor	esi, esi
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rax, QWORD PTR TB_NIL[rip]
	cmp	QWORD PTR 8[rbx], rax
	je	.L3
	xor	eax, eax
	call	mftb@PLT
	sub	rax, QWORD PTR 8[rbx]
	add	DWORD PTR 20[rbx], eax
	mov	rdi, rbp
	mov	rax, QWORD PTR TB_NIL[rip]
	xor	esi, esi
	mov	QWORD PTR 8[rbx], rax
	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
	jmp	spin_unlock_irqrestore@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rax, QWORD PTR VCORE_SLEEPING[rip]
	cmp	QWORD PTR [rdi], rax
	jl	.L2
	call	kvmppc_core_end_stolen@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	kvmppc_core_vcpu_load_hv, .-kvmppc_core_vcpu_load_hv
	.comm	VCORE_SLEEPING,8,8
	.comm	TB_NIL,8,8
	.comm	KVMPPC_VCPU_BUSY_IN_HOST,8,8
	.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_kvmppc_core_vcpu_load_hv.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvmppc_core_vcpu_load_hv, %function
kvmppc_core_vcpu_load_hv:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0, #16]
	ldr	r3, [r0, #4]
	cmp	r3, r4
	beq	.L6
.L2:
	add	r5, r4, #8
	mov	r0, r5
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r3, .L8
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L7
.L3:
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	mov	r1, #0
	b	spin_unlock_irqrestore
.L7:
	ldr	r6, .L8+4
	ldr	r2, [r4, #4]
	ldr	r3, [r6]
	cmp	r2, r3
	beq	.L3
	bl	mftb
	ldr	r1, [r4, #4]
	ldr	r3, [r4, #12]
	sub	r0, r0, r1
	ldr	r2, [r6]
	add	r3, r3, r0
	str	r2, [r4, #4]
	mov	r0, r5
	str	r3, [r4, #12]
	mov	r1, #0
	pop	{r4, r5, r6, lr}
	b	spin_unlock_irqrestore
.L6:
	ldr	r3, .L8+8
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L2
	bl	kvmppc_core_end_stolen
	b	.L2
.L9:
	.align	2
.L8:
	.word	KVMPPC_VCPU_BUSY_IN_HOST
	.word	TB_NIL
	.word	VCORE_SLEEPING
	.size	kvmppc_core_vcpu_load_hv, .-kvmppc_core_vcpu_load_hv
	.comm	VCORE_SLEEPING,4,4
	.comm	TB_NIL,4,4
	.comm	KVMPPC_VCPU_BUSY_IN_HOST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
