//
// cocos2d::CCDirector::setAccelerometer from 0x1004795f0 to 0x10047961f (47 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b47438
// > ??> @ 0x100b47568
//
// 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 12:30:36 +0000
//
void __fastcall cocos2d::CCDirector::setAccelerometer(__int64 a1, void *a2)
{
void *v3; // rdi
v3 = *(void **)(a1 + 160);
if ( v3 != a2 )
{
if ( v3 )
operator delete(v3);
*(_QWORD *)(a1 + 160) = a2;
}
}