	.file	"extr_kvm-s390.c_kvm_arch_vcpu_destroy.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"free cpu"
.LC1:
	.string	"%s"
	.text
	.p2align 4
	.globl	kvm_arch_vcpu_destroy
	.type	kvm_arch_vcpu_destroy, @function
kvm_arch_vcpu_destroy:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rcx, .LC0[rip]
	mov	rbp, rdi
	mov	esi, 3
	lea	rdx, .LC1[rip]
	call	VCPU_EVENT@PLT
	mov	edi, DWORD PTR 24[rbp]
	call	trace_kvm_s390_destroy_vcpu@PLT
	mov	rdi, rbp
	call	kvm_s390_clear_local_irqs@PLT
	mov	rdi, rbp
	call	kvm_clear_async_pf_completion_queue@PLT
	mov	rdi, QWORD PTR 16[rbp]
	call	kvm_is_ucontrol@PLT
	test	rax, rax
	je	.L10
	mov	rdi, QWORD PTR 16[rbp]
	call	kvm_is_ucontrol@PLT
	test	rax, rax
	jne	.L11
.L3:
	mov	rax, QWORD PTR 16[rbp]
	cmp	QWORD PTR [rax], 0
	jne	.L12
.L4:
	mov	rdi, QWORD PTR 0[rbp]
	call	free_page@PLT
	mov	rdi, rbp
	call	kvm_vcpu_uninit@PLT
	mov	edi, DWORD PTR kvm_vcpu_cache[rip]
	mov	rsi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	kmem_cache_free@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, rbp
	call	sca_del_vcpu@PLT
	mov	rdi, QWORD PTR 16[rbp]
	call	kvm_is_ucontrol@PLT
	test	rax, rax
	je	.L3
.L11:
	mov	edi, DWORD PTR 8[rbp]
	call	gmap_remove@PLT
	mov	rax, QWORD PTR 16[rbp]
	cmp	QWORD PTR [rax], 0
	je	.L4
.L12:
	mov	rdi, rbp
	call	kvm_s390_vcpu_unsetup_cmma@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	kvm_arch_vcpu_destroy, .-kvm_arch_vcpu_destroy
	.comm	kvm_vcpu_cache,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_kvm-s390.c_kvm_arch_vcpu_destroy.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"free cpu\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.text
	.align	2
	.global	kvm_arch_vcpu_destroy
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvm_arch_vcpu_destroy, %function
kvm_arch_vcpu_destroy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	mov	r1, #3
	ldr	r3, .L16
	ldr	r2, .L16+4
	bl	VCPU_EVENT
	ldr	r0, [r4, #12]
	bl	trace_kvm_s390_destroy_vcpu
	mov	r0, r4
	bl	kvm_s390_clear_local_irqs
	mov	r0, r4
	bl	kvm_clear_async_pf_completion_queue
	ldr	r0, [r4, #8]
	bl	kvm_is_ucontrol
	cmp	r0, #0
	beq	.L13
	ldr	r0, [r4, #8]
	bl	kvm_is_ucontrol
	cmp	r0, #0
	bne	.L14
.L3:
	ldr	r3, [r4, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L15
.L4:
	ldr	r0, [r4]
	bl	free_page
	mov	r0, r4
	bl	kvm_vcpu_uninit
	ldr	r3, .L16+8
	mov	r1, r4
	pop	{r4, lr}
	ldr	r0, [r3]
	b	kmem_cache_free
.L13:
	mov	r0, r4
	bl	sca_del_vcpu
	ldr	r0, [r4, #8]
	bl	kvm_is_ucontrol
	cmp	r0, #0
	beq	.L3
.L14:
	ldr	r0, [r4, #4]
	bl	gmap_remove
	ldr	r3, [r4, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
.L15:
	mov	r0, r4
	bl	kvm_s390_vcpu_unsetup_cmma
	b	.L4
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	.LC1
	.word	kvm_vcpu_cache
	.size	kvm_arch_vcpu_destroy, .-kvm_arch_vcpu_destroy
	.comm	kvm_vcpu_cache,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
