//
// cocos2d::CCDirector::setAccelerometer from 0xd483f4 to 0xd48440 (76 bytes)
//
// 3 xrefs:
// > ??> @ 0x9d1e0
// > ??> @ 0x1516838
// > ??> @ 0x1516968
//
// 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:07:36 +0000
//
void __fastcall cocos2d::CCDirector::setAccelerometer(cocos2d::CCDirector *this, cocos2d::CCAccelerometer *a2)
{
cocos2d::CCAccelerometer *v2; // x21
v2 = *((cocos2d::CCAccelerometer **)this + 20);
if ( v2 != a2 )
{
if ( v2 )
{
cocos2d::CCAccelerometer::~CCAccelerometer(*((cocos2d::CCAccelerometer **)this + 20));
operator delete(v2);
}
*((_QWORD *)this + 20) = a2;
}
}