What about your offsets etc? Are they dumped from the 64bit version of the game you're modding, is your lib.so file in a folder called arm64-v8a or armeabi-v7a?
In your main.cpp, make sure your code/offsets are under this line...
#if defined(__aarch64__) //To compile this code for arm64 lib...