//
// SetupCameraEdgePopup::onUnlockEdge from 0x1006490d0 to 0x100649163 (147 bytes)
//
// 1 xrefs:
// > sub_100648530 @ 0x100648d40
//
// 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:34:46 +0000
//
void __fastcall SetupCameraEdgePopup::onUnlockEdge(__int64 a1)
{
__int64 v2; // rdi
__int64 v3; // rdi
unsigned int v4; // r14d
__int64 v5; // rax
*(_DWORD *)(a1 + 1024) = 0;
v2 = *(_QWORD *)(a1 + 680);
if ( v2 )
{
EffectGameObject::setTargetID(v2, 0);
}
else
{
v3 = *(_QWORD *)(a1 + 688);
if ( v3 && (unsigned int)sub_1007FEF90(v3) )
{
v4 = 0;
do
{
v5 = sub_1007FEFE0(*(_QWORD *)(a1 + 688), v4);
EffectGameObject::setTargetID(v5, *(_DWORD *)(a1 + 1024));
++v4;
}
while ( v4 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 688)) );
}
}
sub_100648E90(a1);
SetupTriggerPopup::updateEditorLabel(a1);
}