	.file	"428834.c"
	.intel_syntax noprefix
	.text
	.globl	CPUID_STDEXT_SMAP
	.bss
	.align 4
	.type	CPUID_STDEXT_SMAP, @object
	.size	CPUID_STDEXT_SMAP, 4
CPUID_STDEXT_SMAP:
	.zero	4
	.globl	DOMID_SELF
	.align 4
	.type	DOMID_SELF, @object
	.size	DOMID_SELF, 4
DOMID_SELF:
	.zero	4
	.globl	EINVAL
	.align 4
	.type	EINVAL, @object
	.size	EINVAL, 4
EINVAL:
	.zero	4
	.globl	ENOSYS
	.align 4
	.type	ENOSYS, @object
	.size	ENOSYS, 4
ENOSYS:
	.zero	4
	.globl	KERN_SUCCESS
	.align 4
	.type	KERN_SUCCESS, @object
	.size	KERN_SUCCESS, 4
KERN_SUCCESS:
	.zero	4
	.globl	M_PRIVCMD
	.align 4
	.type	M_PRIVCMD, @object
	.size	M_PRIVCMD, 4
M_PRIVCMD:
	.zero	4
	.globl	M_WAITOK
	.align 4
	.type	M_WAITOK, @object
	.size	M_WAITOK, 4
M_WAITOK:
	.zero	4
	.globl	M_ZERO
	.align 4
	.type	M_ZERO, @object
	.size	M_ZERO, 4
M_ZERO:
	.zero	4
	.globl	OBJT_MGTDEVICE
	.align 4
	.type	OBJT_MGTDEVICE, @object
	.size	OBJT_MGTDEVICE, 4
OBJT_MGTDEVICE:
	.zero	4
	.globl	PAGE_MASK
	.align 4
	.type	PAGE_MASK, @object
	.size	PAGE_MASK, 4
PAGE_MASK:
	.zero	4
	.globl	PAGE_SIZE
	.align 4
	.type	PAGE_SIZE, @object
	.size	PAGE_SIZE, 4
PAGE_SIZE:
	.zero	4
	.globl	UINT16_MAX
	.align 4
	.type	UINT16_MAX, @object
	.size	UINT16_MAX, 4
UINT16_MAX:
	.zero	4
	.globl	VM_PROT_NONE
	.align 4
	.type	VM_PROT_NONE, @object
	.size	VM_PROT_NONE, 4
VM_PROT_NONE:
	.zero	4
	.globl	XENMAPSPACE_gmfn_foreign
	.align 4
	.type	XENMAPSPACE_gmfn_foreign, @object
	.size	XENMAPSPACE_gmfn_foreign, 4
XENMAPSPACE_gmfn_foreign:
	.zero	4
	.globl	XENMEM_add_to_physmap_range
	.align 4
	.type	XENMEM_add_to_physmap_range, @object
	.size	XENMEM_add_to_physmap_range, 4
XENMEM_add_to_physmap_range:
	.zero	4
	.globl	cpu_stdext_feature
	.align 4
	.type	cpu_stdext_feature, @object
	.size	cpu_stdext_feature, 4
cpu_stdext_feature:
	.zero	4
	.globl	privcmd_pg_ops
	.align 4
	.type	privcmd_pg_ops, @object
	.size	privcmd_pg_ops, 4
privcmd_pg_ops:
	.zero	4
	.text
	.type	privcmd_ioctl, @function
privcmd_ioctl:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 216
	.cfi_offset 3, -24
	mov	QWORD PTR -184[rbp], rdi
	mov	QWORD PTR -192[rbp], rsi
	mov	QWORD PTR -200[rbp], rdx
	mov	DWORD PTR -204[rbp], ecx
	mov	QWORD PTR -216[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -192[rbp], 128
	je	.L2
	cmp	QWORD PTR -192[rbp], 129
	jne	.L3
	mov	rax, QWORD PTR -200[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	edx, DWORD PTR cpu_stdext_feature[rip]
	mov	eax, DWORD PTR CPUID_STDEXT_SMAP[rip]
	and	eax, edx
	test	eax, eax
	je	.L4
	mov	eax, 0
	call	stac@PLT
.L4:
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, 16
	mov	r8d, DWORD PTR [rax]
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, 12
	mov	edi, DWORD PTR [rax]
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, 8
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, 4
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, DWORD PTR [rax]
	mov	rax, QWORD PTR -112[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	r9d, r8d
	mov	r8d, edi
	mov	edi, eax
	call	privcmd_hypercall@PLT
	mov	DWORD PTR -152[rbp], eax
	mov	edx, DWORD PTR cpu_stdext_feature[rip]
	mov	eax, DWORD PTR CPUID_STDEXT_SMAP[rip]
	and	eax, edx
	test	eax, eax
	je	.L5
	mov	eax, 0
	call	clac@PLT
.L5:
	cmp	DWORD PTR -152[rbp], 0
	js	.L6
	mov	rax, QWORD PTR -112[rbp]
	mov	edx, DWORD PTR -152[rbp]
	mov	DWORD PTR [rax], edx
	mov	DWORD PTR -152[rbp], 0
	jmp	.L8
.L6:
	mov	eax, DWORD PTR -152[rbp]
	mov	edi, eax
	call	xen_translate_error@PLT
	mov	DWORD PTR -152[rbp], eax
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L8
.L2:
	mov	rax, QWORD PTR -200[rbp]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L9
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR PAGE_MASK[rip]
	and	eax, edx
	test	eax, eax
	je	.L10
.L9:
	mov	eax, DWORD PTR EINVAL[rip]
	mov	DWORD PTR -152[rbp], eax
	jmp	.L8
.L10:
	mov	rax, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -136[rbp], rax
	mov	edx, DWORD PTR VM_PROT_NONE[rip]
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, DWORD PTR 4[rax]
	lea	r9, -164[rbp]
	lea	r8, -120[rbp]
	lea	rcx, -128[rbp]
	lea	rax, -136[rbp]
	lea	rdi, -156[rbp]
	push	rdi
	lea	rdi, -160[rbp]
	push	rdi
	mov	rdi, rax
	call	vm_map_lookup@PLT
	add	rsp, 16
	mov	DWORD PTR -152[rbp], eax
	mov	eax, DWORD PTR KERN_SUCCESS[rip]
	cmp	DWORD PTR -152[rbp], eax
	je	.L12
	mov	eax, DWORD PTR EINVAL[rip]
	mov	DWORD PTR -152[rbp], eax
	jmp	.L8
.L12:
	mov	rax, QWORD PTR -128[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jne	.L13
	mov	rax, QWORD PTR -128[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR PAGE_SIZE[rip]
	imul	eax, ecx
	add	eax, esi
	cmp	edx, eax
	je	.L14
.L13:
	mov	rdx, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	vm_map_lookup_done@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	mov	DWORD PTR -152[rbp], eax
	jmp	.L8
.L14:
	mov	rdx, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	vm_map_lookup_done@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	eax, DWORD PTR OBJT_MGTDEVICE[rip]
	cmp	edx, eax
	jne	.L15
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rdx, privcmd_pg_ops[rip]
	cmp	rax, rdx
	je	.L16
.L15:
	mov	eax, DWORD PTR EINVAL[rip]
	mov	DWORD PTR -152[rbp], eax
	jmp	.L8
.L16:
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR DOMID_SELF[rip]
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR XENMAPSPACE_gmfn_foreign[rip]
	mov	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	DWORD PTR -48[rbp], eax
	mov	edx, DWORD PTR UINT16_MAX[rip]
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, edx
	mov	edi, eax
	call	MIN@PLT
	mov	DWORD PTR -140[rbp], eax
	mov	edx, DWORD PTR M_WAITOK[rip]
	mov	eax, DWORD PTR M_PRIVCMD[rip]
	mov	ecx, DWORD PTR -140[rbp]
	movsx	rcx, ecx
	sal	ecx, 2
	mov	esi, eax
	mov	edi, ecx
	call	malloc@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	edx, DWORD PTR M_WAITOK[rip]
	mov	eax, DWORD PTR M_PRIVCMD[rip]
	mov	ecx, DWORD PTR -140[rbp]
	movsx	rcx, ecx
	sal	ecx, 2
	mov	esi, eax
	mov	edi, ecx
	call	malloc@PLT
	mov	QWORD PTR -80[rbp], rax
	mov	edx, DWORD PTR M_WAITOK[rip]
	mov	eax, DWORD PTR M_PRIVCMD[rip]
	mov	ecx, DWORD PTR -140[rbp]
	movsx	rcx, ecx
	sal	ecx, 2
	mov	esi, eax
	mov	edi, ecx
	call	malloc@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	eax, DWORD PTR -52[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	set_xen_guest_handle@PLT
	mov	eax, DWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	set_xen_guest_handle@PLT
	mov	eax, DWORD PTR -60[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	set_xen_guest_handle@PLT
	mov	edx, DWORD PTR M_WAITOK[rip]
	mov	eax, DWORD PTR M_ZERO[rip]
	or	edx, eax
	mov	ecx, DWORD PTR M_PRIVCMD[rip]
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, ecx
	mov	edi, eax
	call	BITSET_ALLOC@PLT
	mov	rdx, QWORD PTR -96[rbp]
	mov	QWORD PTR [rdx], rax
	mov	DWORD PTR -144[rbp], 0
	jmp	.L17
.L27:
	mov	edx, DWORD PTR UINT16_MAX[rip]
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, DWORD PTR -144[rbp]
	mov	esi, edx
	mov	edi, eax
	call	MIN@PLT
	mov	DWORD PTR -140[rbp], eax
	mov	eax, DWORD PTR -140[rbp]
	mov	DWORD PTR -64[rbp], eax
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	sal	eax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -104[rbp]
	mov	rcx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -144[rbp]
	cdqe
	sal	rax, 2
	add	rcx, rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	copyin@PLT
	mov	DWORD PTR -152[rbp], eax
	cmp	DWORD PTR -152[rbp], 0
	jne	.L31
	mov	DWORD PTR -148[rbp], 0
	jmp	.L20
.L21:
	mov	rax, QWORD PTR -96[rbp]
	mov	ecx, DWORD PTR 12[rax]
	mov	edx, DWORD PTR -148[rbp]
	mov	eax, DWORD PTR -144[rbp]
	add	edx, eax
	mov	eax, DWORD PTR PAGE_SIZE[rip]
	imul	eax, edx
	add	eax, ecx
	mov	edx, DWORD PTR -148[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -80[rbp]
	lea	rbx, [rcx+rdx]
	mov	edi, eax
	call	atop@PLT
	mov	DWORD PTR [rbx], eax
	add	DWORD PTR -148[rbp], 1
.L20:
	mov	eax, DWORD PTR -148[rbp]
	cmp	eax, DWORD PTR -140[rbp]
	jl	.L21
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	sal	eax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	bzero@PLT
	mov	eax, DWORD PTR XENMEM_add_to_physmap_range[rip]
	lea	rdx, -64[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	HYPERVISOR_memory_op@PLT
	mov	DWORD PTR -152[rbp], eax
	cmp	DWORD PTR -152[rbp], 0
	je	.L22
	mov	eax, DWORD PTR -152[rbp]
	mov	edi, eax
	call	xen_translate_error@PLT
	mov	DWORD PTR -152[rbp], eax
	jmp	.L19
.L22:
	mov	DWORD PTR -148[rbp], 0
	jmp	.L23
.L25:
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L24
	mov	eax, DWORD PTR -148[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -148[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -72[rbp]
	lea	rbx, [rcx+rdx]
	mov	edi, eax
	call	xen_translate_error@PLT
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	ecx, DWORD PTR -144[rbp]
	mov	eax, DWORD PTR -148[rbp]
	add	ecx, eax
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, ecx
	mov	edi, eax
	call	BIT_SET@PLT
.L24:
	add	DWORD PTR -148[rbp], 1
.L23:
	mov	eax, DWORD PTR -148[rbp]
	cmp	eax, DWORD PTR -140[rbp]
	jl	.L25
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	sal	eax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -104[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -144[rbp]
	cdqe
	sal	rax, 2
	add	rcx, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	copyout@PLT
	mov	DWORD PTR -152[rbp], eax
	cmp	DWORD PTR -152[rbp], 0
	jne	.L32
	mov	eax, DWORD PTR -140[rbp]
	add	DWORD PTR -144[rbp], eax
.L17:
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -144[rbp], eax
	jl	.L27
	mov	rax, QWORD PTR -96[rbp]
	mov	DWORD PTR 8[rax], 1
	jmp	.L19
.L31:
	nop
	jmp	.L19
.L32:
	nop
.L19:
	mov	edx, DWORD PTR M_PRIVCMD[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	free@PLT
	mov	edx, DWORD PTR M_PRIVCMD[rip]
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	free@PLT
	mov	edx, DWORD PTR M_PRIVCMD[rip]
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	jne	.L33
	mov	edx, DWORD PTR M_PRIVCMD[rip]
	mov	rax, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, edx
	mov	rdi, rax
	call	free@PLT
	jmp	.L33
.L3:
	mov	eax, DWORD PTR ENOSYS[rip]
	mov	DWORD PTR -152[rbp], eax
	jmp	.L8
.L33:
	nop
.L8:
	mov	eax, DWORD PTR -152[rbp]
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	privcmd_ioctl, .-privcmd_ioctl
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"428834.c"
	.text
	.comm	CPUID_STDEXT_SMAP,4,4
	.comm	DOMID_SELF,4,4
	.comm	EINVAL,4,4
	.comm	ENOSYS,4,4
	.comm	KERN_SUCCESS,4,4
	.comm	M_PRIVCMD,4,4
	.comm	M_WAITOK,4,4
	.comm	M_ZERO,4,4
	.comm	OBJT_MGTDEVICE,4,4
	.comm	PAGE_MASK,4,4
	.comm	PAGE_SIZE,4,4
	.comm	UINT16_MAX,4,4
	.comm	VM_PROT_NONE,4,4
	.comm	XENMAPSPACE_gmfn_foreign,4,4
	.comm	XENMEM_add_to_physmap_range,4,4
	.comm	cpu_stdext_feature,4,4
	.comm	privcmd_pg_ops,4,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	privcmd_ioctl, %function
privcmd_ioctl:
	@ args = 4, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #140
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	str	r2, [fp, #-120]
	str	r3, [fp, #-124]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-128]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-116]
	cmp	r3, #128
	beq	.L2
	ldr	r3, [fp, #-116]
	cmp	r3, #129
	bne	.L3
	ldr	r3, [fp, #-120]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-72]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #4]
	ldr	r1, [r3]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #4]
	add	r3, r3, #4
	ldr	ip, [r3]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #4]
	add	r3, r3, #8
	ldr	lr, [r3]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #4]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r2, [fp, #-72]
	ldr	r2, [r2, #4]
	add	r2, r2, #16
	ldr	r2, [r2]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	bl	privcmd_hypercall
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	blt	.L4
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-84]
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L6
.L4:
	ldr	r0, [fp, #-84]
	bl	xen_translate_error
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-72]
	mov	r2, #0
	str	r2, [r3]
	b	.L6
.L2:
	ldr	r3, [fp, #-120]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-68]
	ldr	r2, [r3, #4]
	ldr	r3, .L32+4
	ldr	r3, [r3]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L8
.L7:
	ldr	r3, .L32+8
	ldr	r3, [r3]
	str	r3, [fp, #-84]
	b	.L6
.L8:
	ldr	r3, [fp, #-128]
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-68]
	ldr	r1, [r3, #4]
	ldr	r3, .L32+12
	ldr	r2, [r3]
	sub	ip, fp, #104
	sub	r0, fp, #108
	sub	r3, fp, #88
	str	r3, [sp, #12]
	sub	r3, fp, #92
	str	r3, [sp, #8]
	sub	r3, fp, #96
	str	r3, [sp, #4]
	sub	r3, fp, #100
	str	r3, [sp]
	mov	r3, ip
	bl	vm_map_lookup
	str	r0, [fp, #-84]
	ldr	r3, .L32+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-84]
	cmp	r2, r3
	beq	.L10
	ldr	r3, .L32+8
	ldr	r3, [r3]
	str	r3, [fp, #-84]
	b	.L6
.L10:
	ldr	r3, [fp, #-104]
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bne	.L11
	ldr	r3, [fp, #-104]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-68]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	ldr	r0, .L32+20
	ldr	r0, [r0]
	mul	r3, r0, r3
	add	r3, r1, r3
	cmp	r2, r3
	beq	.L12
.L11:
	ldr	r3, [fp, #-108]
	ldr	r2, [fp, #-104]
	mov	r1, r2
	mov	r0, r3
	bl	vm_map_lookup_done
	ldr	r3, .L32+8
	ldr	r3, [r3]
	str	r3, [fp, #-84]
	b	.L6
.L12:
	ldr	r3, [fp, #-108]
	ldr	r2, [fp, #-104]
	mov	r1, r2
	mov	r0, r3
	bl	vm_map_lookup_done
	ldr	r3, [fp, #-100]
	ldr	r2, [r3, #8]
	ldr	r3, .L32+24
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L13
	ldr	r3, [fp, #-100]
	ldr	r3, [r3, #4]
	ldr	r2, .L32+28
	cmp	r3, r2
	beq	.L14
.L13:
	ldr	r3, .L32+8
	ldr	r3, [r3]
	str	r3, [fp, #-84]
	b	.L6
.L14:
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	str	r3, [fp, #-64]
	ldr	r3, .L32+32
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r3, .L32+36
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	ldr	r2, .L32+40
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	MIN
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	mov	r0, r3
	ldr	r3, .L32+44
	ldr	r3, [r3]
	ldr	r2, .L32+48
	ldr	r2, [r2]
	mov	r1, r3
	bl	malloc
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	mov	r0, r3
	ldr	r3, .L32+44
	ldr	r3, [r3]
	ldr	r2, .L32+48
	ldr	r2, [r2]
	mov	r1, r3
	bl	malloc
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	mov	r0, r3
	ldr	r3, .L32+44
	ldr	r3, [r3]
	ldr	r2, .L32+48
	ldr	r2, [r2]
	mov	r1, r3
	bl	malloc
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-32]
	ldr	r1, [fp, #-56]
	mov	r0, r3
	bl	set_xen_guest_handle
	ldr	r3, [fp, #-36]
	ldr	r1, [fp, #-52]
	mov	r0, r3
	bl	set_xen_guest_handle
	ldr	r3, [fp, #-40]
	ldr	r1, [fp, #-48]
	mov	r0, r3
	bl	set_xen_guest_handle
	ldr	r3, [fp, #-68]
	ldr	r0, [r3]
	ldr	r3, .L32+44
	ldr	r1, [r3]
	ldr	r3, .L32+48
	ldr	r2, [r3]
	ldr	r3, .L32+52
	ldr	r3, [r3]
	orr	r3, r2, r3
	mov	r2, r3
	bl	BITSET_ALLOC
	mov	r2, r0
	ldr	r3, [fp, #-64]
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L15
.L25:
	ldr	r3, [fp, #-68]
	ldr	r2, [r3]
	ldr	r3, [fp, #-76]
	sub	r3, r2, r3
	ldr	r2, .L32+40
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	MIN
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-68]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	add	r0, r2, r3
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r1, [fp, #-56]
	bl	copyin
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bne	.L29
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L18
.L19:
	ldr	r3, [fp, #-64]
	ldr	r2, [r3, #8]
	ldr	r1, [fp, #-80]
	ldr	r3, [fp, #-76]
	add	r3, r1, r3
	ldr	r1, .L32+20
	ldr	r1, [r1]
	mul	r3, r1, r3
	add	r1, r2, r3
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r4, r2, r3
	mov	r0, r1
	bl	atop
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L18:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L19
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	bzero
	ldr	r3, .L32+56
	ldr	r3, [r3]
	sub	r2, fp, #44
	mov	r1, r2
	mov	r0, r3
	bl	HYPERVISOR_memory_op
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	beq	.L20
	ldr	r0, [fp, #-84]
	bl	xen_translate_error
	str	r0, [fp, #-84]
	b	.L17
.L20:
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L21
.L23:
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r4, r2, r3
	mov	r0, r1
	bl	xen_translate_error
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-68]
	ldr	r0, [r3]
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-80]
	add	r1, r2, r3
	ldr	r3, [fp, #-64]
	ldr	r3, [r3]
	mov	r2, r3
	bl	BIT_SET
.L22:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L21:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L23
	ldr	r3, [fp, #-68]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	add	r1, r2, r3
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r0, [fp, #-48]
	bl	copyout
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bne	.L30
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	str	r3, [fp, #-76]
.L15:
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	blt	.L25
	ldr	r3, [fp, #-64]
	mov	r2, #1
	str	r2, [r3, #4]
	b	.L17
.L29:
	nop
	b	.L17
.L30:
	nop
.L17:
	ldr	r3, .L32+44
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	free
	ldr	r3, .L32+44
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-52]
	bl	free
	ldr	r3, .L32+44
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	free
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-64]
	ldr	r3, [r3]
	ldr	r2, .L32+44
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	free
	b	.L31
.L3:
	ldr	r3, .L32+60
	ldr	r3, [r3]
	str	r3, [fp, #-84]
	b	.L6
.L31:
	nop
.L6:
	ldr	r3, [fp, #-84]
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC0
	.word	PAGE_MASK
	.word	EINVAL
	.word	VM_PROT_NONE
	.word	KERN_SUCCESS
	.word	PAGE_SIZE
	.word	OBJT_MGTDEVICE
	.word	privcmd_pg_ops
	.word	DOMID_SELF
	.word	XENMAPSPACE_gmfn_foreign
	.word	UINT16_MAX
	.word	M_PRIVCMD
	.word	M_WAITOK
	.word	M_ZERO
	.word	XENMEM_add_to_physmap_range
	.word	ENOSYS
	.size	privcmd_ioctl, .-privcmd_ioctl
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
