//
// cocos2d::CCAccelerometer::setDelegate from 0xd7b92c to 0xd7b93c (16 bytes)
//
// 6 xrefs:
// > cocos2d::CCLayer::setAccelerometerEnabled @ 0xd5c678
// > cocos2d::CCLayer::setAccelerometerEnabled @ 0xd5c68c
// > cocos2d::CCLayer::onEnter @ 0xd5e1f4
// > cocos2d::CCLayer::onExit @ 0xd5e2c4
// > cocos2d::CCLayer::onEnterTransitionDidFinish @ 0xd5e310
// > ??> @ 0xec968
//
// This function is hookable on this platform (idp: arm, 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 13:08:07 +0000
//
__int64 __fastcall cocos2d::CCAccelerometer::setDelegate(_QWORD *a1, __int64 a2)
{
*a1 = a2;
if ( a2 )
return enableAccelerometerJNI();
else
return disableAccelerometerJNI();
}