	.file	"extr_kvmgt.c_kvmgt_page_track_add.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kvmgt_page_track_add, @function
kvmgt_page_track_add:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	handle_valid@PLT
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR ESRCH[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r13, QWORD PTR 0[rbp]
	mov	rdi, r13
	call	srcu_read_lock@PLT
	mov	esi, r12d
	mov	rdi, r13
	mov	r15d, eax
	call	gfn_to_memslot@PLT
	mov	r14, rax
	test	rax, rax
	je	.L8
	lea	rbx, 4[r13]
	mov	rdi, rbx
	call	spin_lock@PLT
	mov	esi, r12d
	mov	rdi, rbp
	call	kvmgt_gfn_is_write_protected@PLT
	test	rax, rax
	jne	.L5
	mov	ecx, DWORD PTR KVM_PAGE_TRACK_WRITE[rip]
	mov	rsi, r14
	mov	rdi, r13
	mov	edx, r12d
	call	kvm_slot_page_track_add_page@PLT
	mov	esi, r12d
	mov	rdi, rbp
	call	kvmgt_protect_table_add@PLT
.L5:
	mov	rdi, rbx
	call	spin_unlock@PLT
	mov	esi, r15d
	mov	rdi, r13
	call	srcu_read_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, r15d
	mov	rdi, r13
	call	srcu_read_unlock@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	kvmgt_page_track_add, .-kvmgt_page_track_add
	.comm	KVM_PAGE_TRACK_WRITE,4,4
	.comm	ESRCH,4,4
	.comm	EINVAL,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_kvmgt.c_kvmgt_page_track_add.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvmgt_page_track_add, %function
kvmgt_page_track_add:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r5, r0
	bl	handle_valid
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L9
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r6, [r5]
	mov	r0, r6
	bl	srcu_read_lock
	mov	r1, r4
	mov	r8, r0
	mov	r0, r6
	bl	gfn_to_memslot
	subs	r7, r0, #0
	beq	.L8
	add	r9, r6, #4
	mov	r0, r9
	bl	spin_lock
	mov	r1, r4
	mov	r0, r5
	bl	kvmgt_gfn_is_write_protected
	cmp	r0, #0
	bne	.L5
	ldr	r3, .L9+4
	mov	r1, r7
	mov	r2, r4
	mov	r0, r6
	ldr	r3, [r3]
	bl	kvm_slot_page_track_add_page
	mov	r1, r4
	mov	r0, r5
	bl	kvmgt_protect_table_add
.L5:
	mov	r0, r9
	bl	spin_unlock
	mov	r1, r8
	mov	r0, r6
	bl	srcu_read_unlock
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	mov	r1, r8
	mov	r0, r6
	bl	srcu_read_unlock
	ldr	r3, .L9+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	.align	2
.L9:
	.word	ESRCH
	.word	KVM_PAGE_TRACK_WRITE
	.word	EINVAL
	.size	kvmgt_page_track_add, .-kvmgt_page_track_add
	.comm	KVM_PAGE_TRACK_WRITE,4,4
	.comm	ESRCH,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
