anchor.diff:      cmp rax, 1 // PTR_INVALID
     {$endif}
     ja @return_var_p
  -  je @raise_invalid_ptr
  +  je @raise_invalid_pages
     {$ifdef CPUX86}
       push offset @return_var_p
       mov eax, fs:[THREAD_HEAP]
  
positive.code:     mov ecx, PAGESMODE_SYSTEM
      shr edx, B16_PER_PAGE_SHIFT
    {$else .CPUX64}
      mov rax, rdx
      lea rdx, [r8 + B16_PER_PAGE - 1]
      mov r8d, PAGESMODE_SYSTEM
      shr rdx, B16_PER_PAGE_SHIFT
    {$endif}
    call MemoryManager.BrainMM.RegetMemoryPages
    {$ifdef CPUX86}
  
negative.code:     cmp rax, 1 // PTR_INVALID
    {$endif}
    ja @return_var_p
    je @raise_invalid_pages
    {$ifdef CPUX86}
      push offset @return_var_p
      mov eax, fs:[THREAD_HEAP]
  