//
// cocos2d::CCDirector::setAccelerometer from 0x1800c2b80 to 0x1800c2bd2 (82 bytes)
//
// 4 xrefs:
// > ??> @ 0x18010daa0
// > ??> @ 0x18010dbb0
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c3594
//
// This function is hookable on this platform (idp: pc, 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 11:22:25 +0000
//
void __fastcall cocos2d::CCDirector::setAccelerometer(cocos2d::CCDirector *this, struct cocos2d::CCAccelerometer *a2)
{
float v2; // xmm1_4
struct cocos2d::CCAccelerometer *v3; // rbx
v3 = *((struct cocos2d::CCAccelerometer **)this + 20);
if ( v3 != a2 )
{
if ( v3 )
{
cocos2d::CCNode::updateTweenActionInt(*((cocos2d::CCNode **)this + 20), v2);
j_j_free_0(v3);
}
*((_QWORD *)this + 20) = a2;
}
}