//
// cocos2d::CCAccelerometer::update from 0xd7b940 to 0xd7b9b0 (112 bytes)
//
// 2 xrefs:
// > Java_org_cocos2dx_lib_Cocos2dxAccelerometer_onSensorChanged @ 0xd80a08
// > ??> @ 0xcb7d0
//
// 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
//
double *__fastcall cocos2d::CCAccelerometer::update(double *this, float a2, float a3, float a4, __int64 a5)
{
__int64 (__fastcall ***v5)(double, _QWORD); // x4
double *v7; // x2
__int64 (__fastcall ****v8)(_QWORD, _QWORD); // x1
double v9; // x0
v5 = *(__int64 (__fastcall ****)(double, _QWORD))this;
if ( *(_QWORD *)this )
{
v7 = this;
v8 = (__int64 (__fastcall ****)(_QWORD, _QWORD))(this + 1);
v9 = *this;
v7[4] = (double)a5;
v7[1] = -(a2 / 9.80665016);
v7[2] = -(a3 / 9.80665016);
v7[3] = -(a4 / 9.80665016);
return (double *)(**v5)(COERCE_DOUBLE(*(_QWORD *)&v9), v8);
}
return this;
}