//
// cocos2d::JniHelper::getMethodInfo from 0xb0fc2c to 0xb0fd70 (324 bytes)
//
// 1 xrefs:
// > ??> @ 0x790b0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall cocos2d::JniHelper::getMethodInfo(_QWORD *a1, const char *a2, const char *a3, __int64 a4)
{
int v8; // w1
__int64 result; // x0
__int64 v10; // x0
__int64 v11; // x24
__int64 v12; // x1
__int64 v13; // x2
__int64 v14; // [xsp+48h] [xbp+48h] BYREF
__int64 v15; // [xsp+50h] [xbp+50h] BYREF
v14 = 0;
v8 = (unsigned __int8)sub_B0F8FC((cocos2d::JniHelper *)&v14);
result = 0;
if ( v8 )
{
v10 = v14;
v15 = v14;
if ( !v14 )
{
if ( !(unsigned __int8)sub_B0F8FC((cocos2d::JniHelper *)&v15) )
{
v11 = 0;
LABEL_5:
v12 = (*(__int64 (__fastcall **)(__int64, __int64, const char *, __int64))(*(_QWORD *)v14 + 264LL))(
v14,
v11,
a3,
a4);
if ( v12 )
{
v13 = v14;
a1[1] = v11;
*a1 = v13;
a1[2] = v12;
return 1;
}
else
{
__android_log_print(3, "JniHelper", "Failed to find method id of %s", a3);
return 0;
}
}
v10 = v15;
}
v11 = (*(__int64 (__fastcall **)(__int64, const char *))(*(_QWORD *)v10 + 48LL))(v10, a2);
if ( !v11 )
__android_log_print(3, "JniHelper", "Failed to find class of %s", a2);
goto LABEL_5;
}
return result;
}