//
// sub_1006B0F60 from 0x1006b0f60 to 0x1006b1075 (277 bytes)
//
// 4 xrefs:
// > sub_1006B1080 @ 0x1006b1085
// > sub_1006B1090 @ 0x1006b109c
// > sub_1006B10B0 @ 0x1006b10b9
// > sub_1006B10D0 @ 0x1006b10e3
//
// 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:35:24 +0000
//
__int64 __fastcall sub_1006B0F60(__int64 a1)
{
*(_QWORD *)a1 = off_100B887E8;
*(_QWORD *)(a1 + 320) = off_100B88D70;
*(_QWORD *)(a1 + 328) = &off_100B88DE0;
*(_QWORD *)(a1 + 336) = off_100B88DF8;
*(_QWORD *)(a1 + 344) = off_100B88E18;
*(_QWORD *)(a1 + 352) = off_100B88E40;
*(_QWORD *)(a1 + 408) = off_100B88E70;
*(_QWORD *)(a1 + 432) = off_100B88EF0;
*(_QWORD *)(a1 + 544) = off_100B88F10;
*(_QWORD *)(a1 + 664) = off_100B88F58;
*(_QWORD *)(a1 + 672) = &off_100B88F78;
*(_QWORD *)(a1 + 680) = off_100B88F90;
if ( *(_QWORD *)(GameLevelManager::sharedState() + 1360) != a1 + 664 )
{
if ( (*(_BYTE *)(a1 + 752) & 1) == 0 )
goto LABEL_4;
goto LABEL_3;
}
*(_QWORD *)(GameLevelManager::sharedState() + 1360) = 0;
if ( (*(_BYTE *)(a1 + 752) & 1) != 0 )
LABEL_3:
operator delete(*(void **)(a1 + 768));
LABEL_4:
if ( (*(_BYTE *)(a1 + 728) & 1) != 0 )
operator delete(*(void **)(a1 + 744));
return sub_1004936F0(a1);
}