//
// cocos2d::CCDirector::setAccelerometer from 0x7c9ab4 to 0x7c9ad6 (34 bytes)
//
// 0 xrefs:
//
// 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:29 +0000
//
void __fastcall cocos2d::CCDirector::setAccelerometer(cocos2d::CCDirector *this, cocos2d::CCAccelerometer *a2)
{
cocos2d::CCAccelerometer *v3; // r4
v3 = *((cocos2d::CCAccelerometer **)this + 32);
if ( v3 != a2 )
{
if ( v3 )
{
cocos2d::CCAccelerometer::~CCAccelerometer(*((cocos2d::CCAccelerometer **)this + 32));
operator delete(v3);
}
*((_DWORD *)this + 32) = a2;
}
}