//
// getDPIJNI from 0xd81c0c to 0xd81cac (160 bytes)
//
// 2 xrefs:
// > cocos2d::CCDevice::getDPI @ 0xd7b76c
// > ??> @ 0x85828
//
// 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 getDPIJNI()
{
unsigned int v0; // w20
char *v2; // [xsp+20h] [xbp+20h] BYREF
__int64 v3; // [xsp+28h] [xbp+28h]
__int64 v4; // [xsp+30h] [xbp+30h]
if ( (unsigned __int8)cocos2d::JniHelper::getStaticMethodInfo(
&v2,
(cocos2d::JniHelper *)"org/cocos2dx/lib/Cocos2dxHelper",
"getDPI",
(__int64)"()I") )
{
v0 = _JNIEnv::CallStaticIntMethod((__int64)v2, v3, v4);
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v2 + 184LL))(v2, v3);
}
else
{
return (unsigned int)-1;
}
return v0;
}