	.file	"extr_kvm_pcpu.c_kvm_counter_u64_fetch.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kvm_counter_u64_fetch
	.type	kvm_counter_u64_fetch, @function
kvm_counter_u64_fetch:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR mp_ncpus[rip]
	test	eax, eax
	je	.L11
.L2:
	test	eax, eax
	jle	.L5
	xor	ebx, ebx
	xor	r12d, r12d
	mov	r14, rsp
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	add	r12, QWORD PTR [rsp]
	add	ebx, 1
	cmp	DWORD PTR mp_ncpus[rip], ebx
	jle	.L1
.L6:
	mov	r8d, ebx
	mov	ecx, 8
	mov	rdx, r14
	mov	esi, r13d
	mov	rdi, rbp
	call	kvm_read_zpcpu@PLT
	cmp	eax, 8
	je	.L12
.L5:
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	call	_kvm_pcpu_init@PLT
	mov	r8, rax
	mov	eax, DWORD PTR mp_ncpus[rip]
	test	r8, r8
	jns	.L2
	jmp	.L5
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	kvm_counter_u64_fetch, .-kvm_counter_u64_fetch
	.comm	mp_ncpus,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_pcpu.c_kvm_counter_u64_fetch.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kvm_counter_u64_fetch
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvm_counter_u64_fetch, %function
kvm_counter_u64_fetch:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, .L14
	ldr	r2, .L14+4
	ldr	r3, [r8]
	sub	sp, sp, #16
	cmp	r3, #0
	mov	r7, r1
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	mov	r6, r0
	beq	.L11
.L2:
	cmp	r3, #0
	ble	.L5
	mov	r4, #0
	mov	r5, r4
	b	.L6
.L12:
	ldr	r2, [r8]
	ldr	r3, [sp, #8]
	add	r4, r4, #1
	cmp	r2, r4
	add	r5, r5, r3
	ble	.L1
.L6:
	mov	r3, #4
	mov	r1, r7
	mov	r0, r6
	str	r4, [sp]
	add	r2, sp, #8
	bl	kvm_read_zpcpu
	cmp	r0, #4
	beq	.L12
.L5:
	mov	r5, #0
.L1:
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	bl	_kvm_pcpu_init
	cmp	r0, #0
	ldrge	r3, [r8]
	bge	.L2
	b	.L5
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	mp_ncpus
	.word	.LC0
	.size	kvm_counter_u64_fetch, .-kvm_counter_u64_fetch
	.comm	mp_ncpus,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
