//
// GJBaseGameLayer::registerSpawnRemap from 0x1002896bc to 0x100289780 (196 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::generateSpawnRemap @ 0x10027a30c
//
// 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:59 +0000
//
__int64 __fastcall GJBaseGameLayer::registerSpawnRemap(__int64 a1, int **a2)
{
int *v4; // x20
int *v5; // x22
int v6; // w23
unsigned __int64 v7; // x0
_OWORD v9[2]; // [xsp+0h] [xbp-60h] BYREF
int v10; // [xsp+20h] [xbp-40h]
memset(v9, 0, sizeof(v9));
v10 = 1065353216;
sub_100289678(a1 + 2088);
sub_1000184EC((__int64)v9);
v4 = *a2;
v5 = a2[1];
if ( *a2 != v5 )
{
do
{
v6 = v4[2];
v7 = *(_QWORD *)(a1 + 2096) - 40LL;
*(_QWORD *)&v9[0] = v4;
*((_DWORD *)sub_10001DBA4(v7, v4, (__int64)&unk_100763014, (_DWORD **)v9) + 5) = v6;
v4 += 4;
}
while ( v4 != v5 );
}
return -858993459 * (unsigned int)((*(_QWORD *)(a1 + 2096) - *(_QWORD *)(a1 + 2088)) >> 3) - 1;
}