	.file	"extr_xenbus_client.c_xenbus_unmap_ring_vfree.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"unmapping page at handle %d error %d"
	.align 8
.LC1:
	.string	"can't find mapped virtual address %p"
	.text
	.p2align 4
	.globl	xenbus_unmap_ring_vfree
	.type	xenbus_unmap_ring_vfree, @function
xenbus_unmap_ring_vfree:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pxor	xmm0, xmm0
	mov	r13, rdi
	lea	rdi, vmlist_lock[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rsp], rsi
	movups	XMMWORD PTR 8[rsp], xmm0
	call	read_lock@PLT
	mov	rbp, QWORD PTR vmlist[rip]
	test	rbp, rbp
	jne	.L4
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rbp, QWORD PTR 16[rbp]
	test	rbp, rbp
	je	.L2
.L4:
	cmp	QWORD PTR 0[rbp], r12
	jne	.L17
	lea	rdi, vmlist_lock[rip]
	call	read_unlock@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR GNTTABOP_unmap_grant_ref[rip]
	mov	rsi, rsp
	mov	edx, 1
	mov	QWORD PTR 16[rsp], rax
	call	HYPERVISOR_grant_table_op@PLT
	test	rax, rax
	jne	.L18
.L9:
	mov	esi, DWORD PTR 8[rsp]
	cmp	esi, DWORD PTR GNTST_okay[rip]
	je	.L19
	movsx	rcx, DWORD PTR 8[rbp]
	mov	r8d, esi
	lea	rdx, .LC0[rip]
	xor	eax, eax
	mov	rdi, r13
	call	xenbus_dev_error@PLT
.L6:
	mov	eax, DWORD PTR 8[rsp]
.L1:
	mov	rdx, QWORD PTR 24[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L20
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rdi, rbp
	call	xen_free_vm_area@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	xor	eax, eax
	call	BUG@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	lea	rdi, vmlist_lock[rip]
	call	read_unlock@PLT
	mov	esi, DWORD PTR ENOENT[rip]
	mov	rcx, r12
	xor	eax, eax
	lea	rdx, .LC1[rip]
	mov	rdi, r13
	neg	esi
	call	xenbus_dev_error@PLT
	mov	eax, DWORD PTR GNTST_bad_virt_addr[rip]
	jmp	.L1
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	xenbus_unmap_ring_vfree, .-xenbus_unmap_ring_vfree
	.comm	vmlist_lock,4,4
	.comm	vmlist,8,8
	.comm	GNTTABOP_unmap_grant_ref,4,4
	.comm	GNTST_okay,4,4
	.comm	GNTST_bad_virt_addr,4,4
	.comm	ENOENT,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_xenbus_client.c_xenbus_unmap_ring_vfree.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unmapping page at handle %d error %d\000"
	.align	2
.LC1:
	.ascii	"can't find mapped virtual address %p\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	xenbus_unmap_ring_vfree
	.syntax unified
	.arm
	.fpu softvfp
	.type	xenbus_unmap_ring_vfree, %function
xenbus_unmap_ring_vfree:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, lr}
	ldr	r2, .L21
	sub	sp, sp, #24
	str	r1, [sp, #8]
	mov	r6, r0
	ldr	r0, .L21+4
	ldr	r2, [r2]
	str	r2, [sp, #20]
	mov	r2,#0
	mov	r5, r1
	str	r3, [sp, #12]
	str	r3, [sp, #16]
	bl	read_lock
	ldr	r3, .L21+8
	ldr	r4, [r3]
	cmp	r4, #0
	bne	.L4
	b	.L2
.L17:
	ldr	r4, [r4, #8]
	cmp	r4, #0
	beq	.L2
.L4:
	ldr	r2, [r4]
	cmp	r2, r5
	bne	.L17
	ldr	r0, .L21+4
	bl	read_unlock
	ldr	r2, .L21+12
	ldr	r3, [r4, #4]
	ldr	r0, [r2]
	add	r1, sp, #8
	mov	r2, #1
	str	r3, [sp, #16]
	bl	HYPERVISOR_grant_table_op
	cmp	r0, #0
	bne	.L18
.L9:
	ldr	r3, .L21+16
	ldr	r1, [sp, #12]
	ldr	r3, [r3]
	cmp	r1, r3
	beq	.L19
	ldr	r3, [r4, #4]
	mov	r0, r6
	ldr	r2, .L21+20
	str	r1, [sp]
	bl	xenbus_dev_error
.L6:
	ldr	r0, [sp, #12]
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L19:
	mov	r0, r4
	bl	xen_free_vm_area
	b	.L6
.L18:
	bl	BUG
	b	.L9
.L2:
	ldr	r0, .L21+4
	bl	read_unlock
	ldr	r2, .L21+24
	mov	r3, r5
	ldr	r1, [r2]
	mov	r0, r6
	ldr	r2, .L21+28
	rsb	r1, r1, #0
	bl	xenbus_dev_error
	ldr	r3, .L21+32
	ldr	r0, [r3]
	b	.L1
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC2
	.word	vmlist_lock
	.word	vmlist
	.word	GNTTABOP_unmap_grant_ref
	.word	GNTST_okay
	.word	.LC0
	.word	ENOENT
	.word	.LC1
	.word	GNTST_bad_virt_addr
	.size	xenbus_unmap_ring_vfree, .-xenbus_unmap_ring_vfree
	.comm	vmlist_lock,4,4
	.comm	vmlist,4,4
	.comm	GNTTABOP_unmap_grant_ref,4,4
	.comm	GNTST_okay,4,4
	.comm	GNTST_bad_virt_addr,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
