	.file	"extr_psci.c_kvm_psci_0_1_call.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kvm_psci_0_1_call, @function
kvm_psci_0_1_call:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	r13, QWORD PTR [rdi]
	call	smccc_get_function@PLT
	cmp	eax, 128
	je	.L2
	mov	r12, QWORD PTR PSCI_RET_NOT_SUPPORTED[rip]
	cmp	eax, 129
	jne	.L4
	mov	rdi, rbp
	call	kvm_psci_vcpu_off@PLT
	mov	r12, QWORD PTR PSCI_RET_SUCCESS[rip]
.L4:
	mov	rsi, r12
	mov	rdi, rbp
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	call	smccc_set_retval@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, 1
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	rdi, rbp
	call	kvm_psci_vcpu_on@PLT
	mov	rdi, r13
	mov	r12, rax
	call	mutex_unlock@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	kvm_psci_0_1_call, .-kvm_psci_0_1_call
	.comm	PSCI_RET_SUCCESS,8,8
	.comm	PSCI_RET_NOT_SUPPORTED,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_psci.c_kvm_psci_0_1_call.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvm_psci_0_1_call, %function
kvm_psci_0_1_call:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #8
	mov	r4, r0
	ldr	r6, [r0]
	bl	smccc_get_function
	cmp	r0, #128
	beq	.L2
	cmp	r0, #129
	bne	.L3
	mov	r0, r4
	bl	kvm_psci_vcpu_off
	ldr	r3, .L7
	ldr	r5, [r3]
.L4:
	mov	r3, #0
	mov	r1, r5
	mov	r0, r4
	mov	r2, r3
	str	r3, [sp]
	bl	smccc_set_retval
	mov	r0, #1
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	mov	r0, r6
	bl	mutex_lock
	mov	r0, r4
	bl	kvm_psci_vcpu_on
	mov	r5, r0
	mov	r0, r6
	bl	mutex_unlock
	b	.L4
.L3:
	ldr	r3, .L7+4
	ldr	r5, [r3]
	b	.L4
.L8:
	.align	2
.L7:
	.word	PSCI_RET_SUCCESS
	.word	PSCI_RET_NOT_SUPPORTED
	.size	kvm_psci_0_1_call, .-kvm_psci_0_1_call
	.comm	PSCI_RET_SUCCESS,4,4
	.comm	PSCI_RET_NOT_SUPPORTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
