//
// GJBaseGameLayer::tryGetObject from 0x100100640 to 0x100100718 (216 bytes)
//
// 27 xrefs:
// > GJBaseGameLayer::resetPlayer @ 0x1001005e5
// > GJBaseGameLayer::getMoveTargetDelta @ 0x1001095f2
// > GJBaseGameLayer::getMoveTargetDelta @ 0x1001096ae
// > GJBaseGameLayer::triggerMoveCommand @ 0x100115386
// > GJBaseGameLayer::triggerMoveCommand @ 0x100115489
// > GJBaseGameLayer::triggerDynamicMoveCommand @ 0x1001155c9
// > GJBaseGameLayer::triggerDynamicMoveCommand @ 0x10011560e
// > GJBaseGameLayer::getRotateCommandTargets @ 0x1001159d1
// > GJBaseGameLayer::getRotateCommandTargets @ 0x1001159e4
// > GJBaseGameLayer::getRotateCommandTargets @ 0x100115a27
// > GJBaseGameLayer::triggerRotateCommand @ 0x100115ec3
// > GJBaseGameLayer::triggerRotateCommand @ 0x100115ed4
// > GJBaseGameLayer::triggerRotateCommand @ 0x100115f18
// > GJBaseGameLayer::triggerRotateCommand @ 0x100115f48
// > GJBaseGameLayer::triggerRotateCommand @ 0x100115f5a
// > GJBaseGameLayer::triggerRotateCommand @ 0x100115f6c
// > GJBaseGameLayer::triggerRotateCommand @ 0x100115f7e
// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x10011603b
// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x10011604d
// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x10011608e
// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x1001160c0
// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x1001160d3
// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x1001160e6
// > GJBaseGameLayer::triggerDynamicRotateCommand @ 0x1001160f9
// > GJBaseGameLayer::getFollowSpeedVal @ 0x100126071
// > GJBaseGameLayer::getFollowSpeedVal @ 0x1001260c2
// > GJBaseGameLayer::spawnParticleTrigger_1 @ 0x10013bf5f
//
// 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:21:20 +0000
//
__int64 __fastcall GJBaseGameLayer::tryGetObject(__int64 a1, int a2, __m128 a3)
{
__int64 result; // rax
__int64 v4; // r15
__int64 v5; // rax
__int64 v6; // rbx
int v7; // eax
if ( a2 > 0 )
{
result = GJBaseGameLayer::tryGetMainObject(a1);
if ( result )
return result;
v4 = 9999;
if ( (unsigned int)a2 < 0x270F )
v4 = (unsigned int)a2;
v5 = *(_QWORD *)(a1 + 3616);
v6 = *(_QWORD *)(v5 + 8 * v4);
if ( v6 )
{
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(v5 + 8 * v4)) )
{
LABEL_7:
*(double *)a3.i64 = GameToolbox::fast_rand_0_1();
v7 = sub_1007FEF90(v6);
return sub_1007FEFE0(
v6,
(unsigned int)(int)(float)((float)v7 * _mm_andnot_ps(_mm_cmpeq_ss((__m128)0x3F800000u, a3), a3).f32[0]));
}
}
else
{
v6 = sub_1007FE900(a1);
cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 3592), v6, v4);
*(_QWORD *)(*(_QWORD *)(a1 + 3616) + 8 * v4) = v6;
if ( (unsigned int)sub_1007FEF90(v6) )
goto LABEL_7;
}
}
return 0;
}