Did you try using the existing macro HOOK_LIB from LGL mod ?
HOOK_LIB("libil2cpp.so", "0x226A8E8", yourUpdate, old_YourUpdate);
it calls the hook function with the proper condition if you don't know which arch you are
void hook(void *offset, void* ptr, void **orig)
{
#if...