//
// cocos2d::CCDirector::setAccelerometer from 0x1800bf330 to 0x1800bf382 (82 bytes)
//
// 4 xrefs:
// > ??> @ 0x180107348
// > ??> @ 0x180107458
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b92d0
//
// 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 *this, struct cocos2d::CCAccelerometer *a2)
{
float v2; // xmm1_4
struct cocos2d::CCAccelerometer *m_pAccelerometer; // rbx
m_pAccelerometer = this->m_pAccelerometer;
if ( m_pAccelerometer != a2 )
{
if ( m_pAccelerometer )
{
cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)this->m_pAccelerometer, v2);
j_j_free_0(m_pAccelerometer);
}
this->m_pAccelerometer = a2;
}
}