//
// sub_1002741D4 from 0x1002741d4 to 0x10027424c (120 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::loadUpToPosition @ 0x100298ee8
// > GJBaseGameLayer::update @ 0x10029af74
//
// 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 11:01:48 +0000
//
__int64 __fastcall sub_1002741D4(__int64 result, double a2)
{
__int64 v2; // x20
int v3; // s8
__int64 v4; // x19
v2 = *(_QWORD *)(result + 608);
if ( v2 )
{
v3 = LODWORD(a2);
v4 = result;
do
{
while ( 1 )
{
LODWORD(a2) = v3;
sub_100274020(v2 + 20, a2);
result = sub_10027424C(v4, *(unsigned int *)(v2 + 16), *(float *)(v2 + 36));
if ( *(_BYTE *)(v2 + 48) != 1 )
break;
result = sub_100019534((_QWORD *)(v4 + 592), (__int64 *)v2);
v2 = result;
if ( !result )
return result;
}
v2 = *(_QWORD *)v2;
}
while ( v2 );
}
return result;
}