//
// cocos2d::CCLayer::setAccelerometerEnabled from 0xaea8c0 to 0xaea930 (112 bytes)
//
// 329 xrefs:
// > ??> @ 0x8a708
// > ??> @ 0x11346a8
// > ??> @ 0x1134ce8
// > ??> @ 0x1135258
// > ??> @ 0x11357f8
// > ??> @ 0x1135d68
// > ??> @ 0x1136f58
// > ??> @ 0x1138128
// > ??> @ 0x113a2c8
// > ??> @ 0x113a858
// > ??> @ 0x113aed8
// > ??> @ 0x113b4e8
// > ??> @ 0x113be38
// > ??> @ 0x113c8d8
// > ??> @ 0x113ef88
// > ??> @ 0x113fbc8
// > ??> @ 0x1140238
// > ??> @ 0x11407c8
// > ??> @ 0x11412b8
// > ??> @ 0x1143a68
// > ??> @ 0x1144378
// > ??> @ 0x1145ad8
// > ??> @ 0x1146288
// > ??> @ 0x1146998
// > ??> @ 0x1147128
// > ??> @ 0x11476f8
// > ??> @ 0x1147ce8
// > ??> @ 0x1148928
// > ??> @ 0x114a1b8
// > ??> @ 0x114a888
// > ??> @ 0x114b4d8
// > ??> @ 0x114bb18
// > ??> @ 0x114c088
// > ??> @ 0x114c5f8
// > ??> @ 0x114cb68
// > ??> @ 0x114d0d8
// > ??> @ 0x114d648
// > ??> @ 0x114dc08
// > ??> @ 0x114e1b8
// > ??> @ 0x114e778
// > ??> @ 0x114ece8
// > ??> @ 0x114f258
// > ??> @ 0x114f808
// > ??> @ 0x114fd98
// > ??> @ 0x1150308
// > ??> @ 0x1150878
// > ??> @ 0x1150e58
// > ??> @ 0x1151438
// > ??> @ 0x1151a18
// > ??> @ 0x1151f88
// > ??> @ 0x11524f8
// > ??> @ 0x1155198
// > ??> @ 0x11559c8
// > ??> @ 0x1156ab8
// > ??> @ 0x11572c8
// > ??> @ 0x1157838
// > ??> @ 0x1157da8
// > ??> @ 0x11586f8
// > ??> @ 0x1158e38
// > ??> @ 0x1159428
// > ??> @ 0x115a0b8
// > ??> @ 0x115a6c8
// > ??> @ 0x115add8
// > ??> @ 0x115b638
// > ??> @ 0x115bd98
// > ??> @ 0x115c4b8
// > ??> @ 0x115cb68
// > ??> @ 0x115d248
// > ??> @ 0x115da58
// > ??> @ 0x1160728
// > ??> @ 0x1161128
// > ??> @ 0x1177a88
// > ??> @ 0x11781c8
// > ??> @ 0x1178a18
// > ??> @ 0x1179be8
// > ??> @ 0x117a2b8
// > ??> @ 0x117aa58
// > ??> @ 0x117b028
// > ??> @ 0x117b5d8
// > ??> @ 0x117c5b8
// > ??> @ 0x117cdf8
// > ??> @ 0x117d368
// > ??> @ 0x117da88
// > ??> @ 0x117e1d8
// > ??> @ 0x117e888
// > ??> @ 0x117ef88
// > ??> @ 0x117f658
// > ??> @ 0x1180208
// > ??> @ 0x1180928
// > ??> @ 0x1181048
// > ??> @ 0x1181758
// > ??> @ 0x1181ee8
// > ??> @ 0x11825b8
// > ??> @ 0x1182d98
// > ??> @ 0x1183558
// > ??> @ 0x1184098
// > ??> @ 0x1184768
// > ??> @ 0x1184e68
// > ??> @ 0x11853f8
// > ??> @ 0x1185988
// > ??> @ 0x1185f48
// > ??> @ 0x1186aa8
// > ??> @ 0x1187138
// > ??> @ 0x11877e8
// > ??> @ 0x1188088
// > ??> @ 0x1188788
// > ??> @ 0x118a778
// > ??> @ 0x118aed8
// > ??> @ 0x118b588
// > ??> @ 0x118bc58
// > ??> @ 0x118c818
// > ??> @ 0x118cf98
// > ??> @ 0x118dc58
// > ??> @ 0x118e3f8
// > ??> @ 0x118ec48
// > ??> @ 0x118f3c8
// > ??> @ 0x118fb48
// > ??> @ 0x1190618
// > ??> @ 0x11910e8
// > ??> @ 0x1191808
// > ??> @ 0x1191dc8
// > ??> @ 0x1193bf8
// > ??> @ 0x1194968
// > ??> @ 0x1195018
// > ??> @ 0x11957f8
// > ??> @ 0x1195fd8
// > ??> @ 0x11967d8
// > ??> @ 0x1196fd8
// > ??> @ 0x1197688
// > ??> @ 0x1197d98
// > ??> @ 0x1198478
// > ??> @ 0x1198b28
// > ??> @ 0x1199248
// > ??> @ 0x1199998
// > ??> @ 0x119a128
// > ??> @ 0x119a908
// > ??> @ 0x119b018
// > ??> @ 0x119b748
// > ??> @ 0x119be58
// > ??> @ 0x119c588
// > ??> @ 0x119cc98
// > ??> @ 0x119d728
// > ??> @ 0x119df28
// > ??> @ 0x119e728
// > ??> @ 0x119ef08
// > ??> @ 0x119f608
// > ??> @ 0x119fcb8
// > ??> @ 0x11a04e8
// > ??> @ 0x11a1b08
// > ??> @ 0x11a2818
// > ??> @ 0x11a2ee8
// > ??> @ 0x11a36e8
// > ??> @ 0x11a3ee8
// > ??> @ 0x11a4718
// > ??> @ 0x11a4ff8
// > ??> @ 0x11a5818
// > ??> @ 0x11a6038
// > ??> @ 0x11a6898
// > ??> @ 0x11a70c8
// > ??> @ 0x11a7778
// > ??> @ 0x11a7e78
// > ??> @ 0x11a8508
// > ??> @ 0x11a8fe8
// > ??> @ 0x11a9728
// > ??> @ 0x11a9e18
// > ??> @ 0x11aa558
// > ??> @ 0x11ab128
// > ??> @ 0x11abcd8
// > ??> @ 0x11ac418
// > ??> @ 0x11ad188
// > ??> @ 0x11ad768
// > ??> @ 0x11adf68
// > ??> @ 0x11ae778
// > ??> @ 0x11aef58
// > ??> @ 0x11af7f8
// > ??> @ 0x11afdd8
// > ??> @ 0x11b0a78
// > ??> @ 0x11b11e8
// > ??> @ 0x11b19b8
// > ??> @ 0x11b20b8
// > ??> @ 0x11b2dd8
// > ??> @ 0x11b33e8
// > ??> @ 0x11b3958
// > ??> @ 0x11b42c8
// > ??> @ 0x11b48f8
// > ??> @ 0x11b50f8
// > ??> @ 0x11b58f8
// > ??> @ 0x11b60f8
// > ??> @ 0x11b6928
// > ??> @ 0x11b7108
// > ??> @ 0x11b78e8
// > ??> @ 0x11b80e8
// > ??> @ 0x11b88e8
// > ??> @ 0x11b90e8
// > ??> @ 0x11b98e8
// > ??> @ 0x11ba0e8
// > ??> @ 0x11ba8e8
// > ??> @ 0x11bb0e8
// > ??> @ 0x11bb8e8
// > ??> @ 0x11bc008
// > ??> @ 0x11bc948
// > ??> @ 0x11bd058
// > ??> @ 0x11bd7f8
// > ??> @ 0x11bdf08
// > ??> @ 0x11be728
// > ??> @ 0x11bee48
// > ??> @ 0x11bf648
// > ??> @ 0x11bfe48
// > ??> @ 0x11c0658
// > ??> @ 0x11c0e38
// > ??> @ 0x11c19c8
// > ??> @ 0x11c2118
// > ??> @ 0x11c2848
// > ??> @ 0x11c2f58
// > ??> @ 0x11c3b18
// > ??> @ 0x11c4b58
// > ??> @ 0x11c53b8
// > ??> @ 0x11c5c38
// > ??> @ 0x11c6448
// > ??> @ 0x11c6c28
// > ??> @ 0x11c7428
// > ??> @ 0x11c7c28
// > ??> @ 0x11c8258
// > ??> @ 0x11c89d8
// > ??> @ 0x11c9148
// > ??> @ 0x11c98b8
// > ??> @ 0x11ca868
// > ??> @ 0x11caf88
// > ??> @ 0x11cb6b8
// > ??> @ 0x11cbd78
// > ??> @ 0x11cc458
// > ??> @ 0x11ccc98
// > ??> @ 0x11cd498
// > ??> @ 0x11cdca8
// > ??> @ 0x11ce488
// > ??> @ 0x11cec88
// > ??> @ 0x11cf488
// > ??> @ 0x11cfa18
// > ??> @ 0x11d0218
// > ??> @ 0x11d0ac8
// > ??> @ 0x11d12a8
// > ??> @ 0x11d1a88
// > ??> @ 0x11d2268
// > ??> @ 0x11d2a48
// > ??> @ 0x11d3258
// > ??> @ 0x11d3a38
// > ??> @ 0x11d4288
// > ??> @ 0x11d4ab8
// > ??> @ 0x11d5348
// > ??> @ 0x11d5b48
// > ??> @ 0x11d61f8
// > ??> @ 0x11d69d8
// > ??> @ 0x11d71e8
// > ??> @ 0x11d79c8
// > ??> @ 0x11d81c8
// > ??> @ 0x11d89e8
// > ??> @ 0x11d90e8
// > ??> @ 0x11da4e8
// > ??> @ 0x11daa78
// > ??> @ 0x11db598
// > ??> @ 0x11dbd38
// > ??> @ 0x11dc3e8
// > ??> @ 0x11dca98
// > ??> @ 0x11dd298
// > ??> @ 0x11ddac8
// > ??> @ 0x11de2a8
// > ??> @ 0x11deb48
// > ??> @ 0x11df328
// > ??> @ 0x11dfb08
// > ??> @ 0x11e0348
// > ??> @ 0x11e0d38
// > ??> @ 0x11e1518
// > ??> @ 0x11e1cf8
// > ??> @ 0x11e24d8
// > ??> @ 0x11e2cb8
// > ??> @ 0x11e3498
// > ??> @ 0x11e3c78
// > ??> @ 0x11e4458
// > ??> @ 0x11e4c38
// > ??> @ 0x11e5418
// > ??> @ 0x11e5bf8
// > ??> @ 0x11e63d8
// > ??> @ 0x11e6bb8
// > ??> @ 0x11e7398
// > ??> @ 0x11e7b78
// > ??> @ 0x11e8358
// > ??> @ 0x11e8b58
// > ??> @ 0x11e9338
// > ??> @ 0x11e9b38
// > ??> @ 0x11ea338
// > ??> @ 0x11eabc8
// > ??> @ 0x11eb398
// > ??> @ 0x11ebb58
// > ??> @ 0x11ec268
// > ??> @ 0x11eca18
// > ??> @ 0x11ed118
// > ??> @ 0x11edd28
// > ??> @ 0x11ee3f8
// > ??> @ 0x11eeae8
// > ??> @ 0x11ef318
// > ??> @ 0x11efa28
// > ??> @ 0x11f02b8
// > ??> @ 0x11f0968
// > ??> @ 0x11f1018
// > ??> @ 0x11f1748
// > ??> @ 0x11f1f28
// > ??> @ 0x11f2708
// > ??> @ 0x11f2f38
// > ??> @ 0x11f3778
// > ??> @ 0x11f3db8
// > ??> @ 0x11f4328
// > ??> @ 0x11f4978
// > ??> @ 0x11f50d8
// > ??> @ 0x11f5888
// > ??> @ 0x11f5f78
// > ??> @ 0x11f6678
// > ??> @ 0x11f6d78
// > ??> @ 0x11f7aa8
// > ??> @ 0x11f8758
// > ??> @ 0x11f8e38
// > ??> @ 0x11f9558
// > ??> @ 0x11f9bc8
// > ??> @ 0x11fa6e8
// > ??> @ 0x1203b68
// > ??> @ 0x12040d8
// > ??> @ 0x1204738
// > ??> @ 0x1204de8
// > ??> @ 0x1205508
// > ??> @ 0x120e6b8
//
// 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 cocos2d::CCLayer::setAccelerometerEnabled(cocos2d::CCLayer *a1, bool a2)
{
_BOOL4 v2; // w20
_BOOL4 m_bRunning; // w1
__int64 (*getAccelerometer)(void); // x1
cocos2d::CCAccelerometer *v6; // x0
cocos2d::CCAccelerometerDelegate *v7; // x1
v2 = a2;
if ( a1->m_bAccelerometerEnabled != a2 )
{
m_bRunning = a1->m_bRunning;
a1->m_bAccelerometerEnabled = v2;
if ( m_bRunning )
{
getAccelerometer = (__int64 (*)(void))cocos2d::CCDirector::sharedDirector()->getAccelerometer;
v6 = (cocos2d::CCAccelerometer *)getAccelerometer();
if ( v2 )
v7 = &a1->cocos2d::CCAccelerometerDelegate;
else
v7 = nullptr;
cocos2d::CCAccelerometer::setDelegate(v6, v7);
}
}
}