//
// cocos2d::CCAccelerometer::update from 0x7eabe8 to 0x7eac4c (100 bytes)
//
// 1 xrefs:
// > Java_org_cocos2dx_lib_Cocos2dxAccelerometer_onSensorChanged @ 0x7ed7f6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:58 +0000
//
int (__fastcall ***__fastcall cocos2d::CCAccelerometer::update(
cocos2d::CCAccelerometer *this,
float a2,
float a3,
float a4,
int a5))(_DWORD, char *, _DWORD)
{
int (__fastcall ***result)(_DWORD, char *, _DWORD); // r0
result = *(int (__fastcall ****)(_DWORD, char *, _DWORD))this;
if ( result )
{
*((double *)this + 4) = (double)a5;
*((double *)this + 1) = -(a2 / 9.80665016);
*((double *)this + 2) = -(a3 / 9.80665016);
*((double *)this + 3) = -(a4 / 9.80665016);
return (int (__fastcall ***)(_DWORD, char *, _DWORD))(**result)(result, (char *)this + 8, LODWORD(a3));
}
return result;
}