//
// cocos2d::CCApplication::getCurrentLanguage from 0xd7b9d4 to 0xd7bbd4 (512 bytes)
//
// 3 xrefs:
// > ??> @ 0xccbf8
// > ??> @ 0x1425238
// > ??> @ 0x152dd48
//
// 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:07 +0000
//
__int64 __fastcall cocos2d::CCApplication::getCurrentLanguage(cocos2d::CCApplication *this)
{
int v1; // w23
char *v2; // x21
char *v3; // x20
unsigned int v4; // w22
__int64 v6[2]; // [xsp+40h] [xbp+40h] BYREF
char *v7; // [xsp+50h] [xbp+50h]
getCurrentLanguageJNI(v6);
v1 = v6[0] & 1;
if ( v1 )
{
v2 = v7;
v3 = v7;
if ( !strcmp("zh", v7) )
{
v4 = 1;
LABEL_4:
operator delete(v2);
return v4;
}
if ( !strcmp("en", v2) )
{
v4 = 0;
goto LABEL_4;
}
}
else
{
v3 = (char *)v6 + 1;
v4 = 1;
if ( !strcmp("zh", (const char *)v6 + 1) )
return v4;
v4 = 0;
if ( !strcmp("en", (const char *)v6 + 1) )
return v4;
}
v4 = 2;
if ( strcmp("fr", v3) )
{
v4 = 3;
if ( strcmp("it", v3) )
{
v4 = 4;
if ( strcmp("de", v3) )
{
v4 = 5;
if ( strcmp("es", v3) )
{
v4 = 6;
if ( strcmp("nl", v3) )
{
v4 = 7;
if ( strcmp("ru", v3) )
{
v4 = 8;
if ( strcmp("ko", v3) )
{
v4 = 9;
if ( strcmp("ja", v3) )
{
v4 = 10;
if ( strcmp("hu", v3) )
{
v4 = 11;
if ( strcmp("pt", v3) )
{
if ( !strcmp("ar", v3) )
v4 = 12;
else
v4 = 0;
}
}
}
}
}
}
}
}
}
}
if ( v1 )
{
v2 = v7;
goto LABEL_4;
}
return v4;
}