//
// CustomizeObjectLayer::updateCurrentSelection from 0x1001da960 to 0x1001daa12 (178 bytes)
//
// 2 xrefs:
// > CustomizeObjectLayer::onPaste @ 0x1001da7ab
// > CustomizeObjectLayer::toggleVisible @ 0x1001db6f0
//
// 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:26:25 +0000
//
__int64 __fastcall CustomizeObjectLayer::updateCurrentSelection(__int64 a1)
{
int ActiveMode; // r14d
__int64 v2; // r15
unsigned int v3; // r12d
__int64 v4; // r13
ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 0);
if ( (unsigned int)(ActiveMode - 10) <= 0x3DD )
{
*(_BYTE *)(a1 + 922) = 1;
*(_DWORD *)(a1 + 748) = ActiveMode;
CustomizeObjectLayer::updateCustomColorLabels(a1);
*(_BYTE *)(a1 + 922) = 0;
ActiveMode = 1008;
}
v2 = 0;
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 704)) )
{
v3 = 0;
while ( 1 )
{
v4 = sub_1007FEFE0(*(_QWORD *)(a1 + 704), v3);
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v4 + 64LL))(v4) == ActiveMode )
break;
if ( ++v3 >= (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 704)) )
return CustomizeObjectLayer::highlightSelected(a1, v2);
}
v2 = v4;
}
return CustomizeObjectLayer::highlightSelected(a1, v2);
}