MCPcopy Create free account
hub / github.com/WrBug/dumpDex / A64HookFunction

Function A64HookFunction

app/src/main/cpp/And64InlineHook.cpp:584–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

582//-------------------------------------------------------------------------
583
584A64_JNIEXPORT void A64HookFunction(void *const symbol, void *const replace, void **result) {
585 void *trampoline = NULL;
586 if (result != NULL) {
587 trampoline = FastAllocateTrampoline();
588 *result = trampoline;
589 if (trampoline == NULL) return;
590 } //if
591
592 trampoline = A64HookFunctionV(symbol, replace, trampoline, A64_MAX_INSTRUCTIONS * 10u);
593 if (trampoline == NULL && result != NULL) {
594 *result = NULL;
595 } //if
596}
597}
598
599#endif // defined(__aarch64__)

Callers 1

Calls 2

FastAllocateTrampolineFunction · 0.85
A64HookFunctionVFunction · 0.85

Tested by

no test coverage detected