//
// cocos2d::JniHelper::getClassID from 0xd80e5c to 0xd810a4 (584 bytes)
//
// 3 xrefs:
// > cocos2d::JniHelper::getClassID @ 0xd810a4
// > cocos2d::JniHelper::getStaticMethodInfo @ 0xd81128
// > cocos2d::JniHelper::getMethodInfo @ 0xd812e0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:08:10 +0000
//
__int64 __fastcall cocos2d::JniHelper::getClassID(cocos2d::JniHelper *this, const char *a2, _JNIEnv *a3)
{
const char *v3; // x2
__int64 v5; // x20
__int64 v7; // x24
size_t v8; // x0
unsigned __int8 v9; // w5
unsigned __int64 v10; // x0
int v11; // w4
unsigned __int64 v12; // x1
_BYTE *v13; // x2
char *v14; // x1
__int64 v15; // x22
__int64 v16; // x23
const char *v17; // [xsp+48h] [xbp+48h] BYREF
__int64 v18; // [xsp+50h] [xbp+50h] BYREF
unsigned __int64 v19; // [xsp+58h] [xbp+58h]
void *v20; // [xsp+60h] [xbp+60h]
v3 = a2;
v17 = a2;
if ( !a2 )
{
if ( !(unsigned __int8)sub_D80B8C((cocos2d::JniHelper *)&v17) )
return 0;
v3 = v17;
}
v5 = (*(__int64 (__fastcall **)(const char *, cocos2d::JniHelper *))(*(_QWORD *)v3 + 48LL))(v3, this);
if ( !v5 )
{
(*(void (__fastcall **)(const char *))(*(_QWORD *)v17 + 136LL))(v17);
v7 = (__int64)v17;
if ( qword_1560938 && qword_1560940 )
{
v18 = 0;
v19 = 0;
v20 = nullptr;
v8 = strlen((const char *)this);
std::string::__init(&v18, this, v8);
v9 = v18;
v10 = 0;
v11 = v18 & 1;
if ( (v18 & 1) == 0 )
goto LABEL_13;
while ( v10 < v19 )
{
v12 = v10 + 1;
v13 = (char *)v20 + v10;
if ( *((_BYTE *)v20 + v10) != 47 )
{
LABEL_11:
v10 = v12;
goto LABEL_12;
}
while ( 1 )
{
*v13 = 46;
v10 = v12;
v9 = v18;
v11 = v18 & 1;
LABEL_12:
if ( v11 )
break;
LABEL_13:
if ( v10 >= v9 >> 1 )
{
v14 = (char *)&v18 + 1;
goto LABEL_18;
}
v12 = v10 + 1;
v13 = (char *)&v18 + v10 + 1;
if ( *((_BYTE *)&v18 + v10 + 1) != 47 )
goto LABEL_11;
}
}
v14 = (char *)v20;
LABEL_18:
v15 = (*(__int64 (__fastcall **)(__int64, char *))(*(_QWORD *)v7 + 1336LL))(v7, v14);
v16 = _JNIEnv::CallObjectMethod(v7, qword_1560938, qword_1560940, v15);
if ( !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v7 + 1824LL))(v7) )
{
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 184LL))(v7, v15);
if ( (v18 & 1) == 0 )
goto LABEL_20;
goto LABEL_24;
}
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 136LL))(v7);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 184LL))(v7, v15);
if ( (v18 & 1) != 0 )
{
v16 = 0;
LABEL_24:
operator delete(v20);
LABEL_20:
if ( v16 )
return v16;
}
}
__android_log_print(3, "JniHelper", "Failed to find class of %s", (const char *)this);
}
return v5;
}