//
// sub_100429920 from 0x100429920 to 0x10042998e (110 bytes)
//
// 4 xrefs:
// > sub_100421E80 @ 0x100421f27
// > GJSmartTemplate::resetScannedPrefabs @ 0x100423a76
// > sub_100429920 @ 0x100429935
// > sub_100429920 @ 0x100429941
//
// 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
//
void __fastcall sub_100429920(__int64 a1, __int64 a2)
{
if ( a2 )
{
sub_100429920(a1, *(_QWORD *)a2);
sub_100429920(a1, *(_QWORD *)(a2 + 8));
if ( (*(_BYTE *)(a2 + 88) & 1) != 0 )
{
operator delete(*(void **)(a2 + 104));
if ( (*(_BYTE *)(a2 + 64) & 1) == 0 )
{
LABEL_4:
if ( (*(_BYTE *)(a2 + 32) & 1) == 0 )
{
LABEL_6:
operator delete((void *)a2);
return;
}
LABEL_5:
operator delete(*(void **)(a2 + 48));
goto LABEL_6;
}
}
else if ( (*(_BYTE *)(a2 + 64) & 1) == 0 )
{
goto LABEL_4;
}
operator delete(*(void **)(a2 + 80));
if ( (*(_BYTE *)(a2 + 32) & 1) == 0 )
goto LABEL_6;
goto LABEL_5;
}
}