//
// cocos2d::CCAccelerometer::update from 0x5e1070 to 0x5e10d4 (100 bytes)
//
// 1 xrefs:
// > Java_org_cocos2dx_lib_Cocos2dxAccelerometer_onSensorChanged @ 0x5e3508
//
// 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
//
int (__fastcall ***__fastcall cocos2d::CCAccelerometer::update(
cocos2d::CCAccelerometer *this,
float a2,
float a3,
float a4,
int a5))(_DWORD, double *, _DWORD)
{
int (__fastcall ***result)(_DWORD, double *, _DWORD); // r0
int (__fastcall *v8)(_DWORD, double *, _DWORD); // r3
result = (int (__fastcall ***)(_DWORD, double *, _DWORD))LODWORD(this->m_obAccelerationValue.x);
if ( result )
{
v8 = **result;
*(double *)&this->m_pAccelDelegate = (double)a5;
this->m_obAccelerationValue.y = -(a2 / 9.80665016);
this->m_obAccelerationValue.z = -(a3 / 9.80665016);
this->m_obAccelerationValue.timestamp = -(a4 / 9.80665016);
return (int (__fastcall ***)(_DWORD, double *, _DWORD))v8(result, &this->m_obAccelerationValue.y, LODWORD(a3));
}
return result;
}