GuestFn). The adapter reads the arguments from the AArch64 registers (x0 to x7, v0 to v7, then
the stack), calls the host function, writes x0 or v0, and returns to x30. A function pointer that the host
gives the guest (dlsym, vkGetInstanceProcAddr, a JNI function table) is such an address.printf of the
guest is formatted by the bridge's own formatter from the guest's registers. A va_list that the guest passes
(vsnprintf, __android_log_vprint) is AAPCS64's structure, read the same way.JNI_OnLoad, a native method, a qsort
comparator, a Vulkan debug callback) runs on the calling thread's CPU state: its arguments in the registers, x30 at a
stop address, and the dispatch loop until the function returns there. A host function pointer that the guest needs
for a guest function is a small host trampoline that does this.Made from docs/platforms/android-apps/native.md at 69237645142c. GPL-3.0-or-later.