//
// cocos2d::CCDirector::setAccelerometer from 0x1001767a8 to 0x1001767e4 (60 bytes)
//
// 2 xrefs:
// > ??> @ 0x10079fda8
// > ??> @ 0x10079fed8
//
// 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
//
void __fastcall cocos2d::CCDirector::setAccelerometer(cocos2d::CCDirector *a1, cocos2d::CCAccelerometer *a2)
{
cocos2d::CCAccelerometer *m_pAccelerometer; // x0
void *v5; // x0
m_pAccelerometer = a1->m_pAccelerometer;
if ( m_pAccelerometer != a2 )
{
if ( m_pAccelerometer )
{
nullsub_7();
operator delete(v5);
}
a1->m_pAccelerometer = a2;
}
}