//
// GJBaseGameLayer::tryGetObject from 0x14032c2b0 to 0x14032c392 (226 bytes)
//
// 25 xrefs:
// > GJBaseGameLayer::resetPlayer @ 0x140318ff8
// > GJBaseGameLayer::triggerMoveCommand @ 0x140326607
// > GJBaseGameLayer::triggerMoveCommand @ 0x140326631
// > GJBaseGameLayer::triggerMoveCommand @ 0x140326747
// > GJBaseGameLayer::triggerMoveCommand @ 0x14032677c
// > GJBaseGameLayer::triggerRotateCommand @ 0x140326e37
// > GJBaseGameLayer::triggerRotateCommand @ 0x140326e51
// > GJBaseGameLayer::triggerRotateCommand @ 0x140326e7c
// > GJBaseGameLayer::triggerRotateCommand @ 0x140326eff
// > GJBaseGameLayer::triggerRotateCommand @ 0x140326f0c
// > GJBaseGameLayer::triggerRotateCommand @ 0x140326f19
// > GJBaseGameLayer::triggerRotateCommand @ 0x140326f26
// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x140327028
// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x14032703e
// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x140327066
// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x1403270ca
// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x1403270e0
// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x1403270f6
// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x14032710f
// > GJBaseGameLayer::getFollowSpeedVal @ 0x1403374da
// > GJBaseGameLayer::getFollowSpeedVal @ 0x140337516
// > EffectGameObject::triggerObject @ 0x140649567
// > ??> @ 0x1408b6084
// > ??> @ 0x1408b6098
// > ??> @ 0x14091f2a4
//
// 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:30:30 +0000
//
struct cocos2d::CCObject *__fastcall GJBaseGameLayer::tryGetObject(__int64 a1, int a2)
{
struct cocos2d::CCObject *MainObject; // rdi
struct cocos2d::CCObject *Group; // rbx
float v7; // xmm6_4
int v8; // eax
if ( a2 <= 0 )
return nullptr;
MainObject = GJBaseGameLayer::tryGetMainObject(a1, a2);
if ( MainObject )
return MainObject;
Group = GJBaseGameLayer::getGroup(a1, (unsigned int)a2);
if ( !cocos2d::CCArray::count(Group) )
return MainObject;
qword_14090BF68 = 214013 * qword_14090BF68 + 2531011;
v7 = (float)(((unsigned __int64)qword_14090BF68 >> 16) & 0x7FFF) / 32767.0;
if ( v7 == 1.0 )
v7 = 0.0;
v8 = cocos2d::CCArray::count(Group);
return cocos2d::CCArray::objectAtIndex(Group, (int)(float)((float)v8 * v7));
}