//
// sub_1001EDBA4 from 0x1001edba4 to 0x1001edbe8 (68 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::generateSpawnRemap @ 0x1001dfc78
// > GJBaseGameLayer::registerSpawnRemap @ 0x1001edc20
//
// 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
//
__int64 __fastcall sub_1001EDBA4(__int64 a1)
{
__int64 result; // x0
if ( *(_QWORD *)(a1 + 8) >= *(_QWORD *)(a1 + 16) )
result = sub_10020C564(a1);
else
result = sub_10020C178() + 40;
*(_QWORD *)(a1 + 8) = result;
return result;
}