//
// LevelEditorLayer::reverseObjectChanged from 0x1000c3d70 to 0x1000c3df6 (134 bytes)
//
// 1 xrefs:
// > SetupObjectOptionsPopup::onClose @ 0x1003062e3
//
// 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:20:35 +0000
//
__int64 __fastcall LevelEditorLayer::reverseObjectChanged(__int64 a1, __int64 a2)
{
char v2; // r15
__int64 v3; // r14
__int64 result; // rax
v2 = *(_BYTE *)(a2 + 1780);
v3 = *(_QWORD *)(a1 + 14288);
result = sub_1007FF080(*(_QWORD *)(v3 + 560), a2);
if ( v2 == 1 )
{
if ( !(_BYTE)result )
{
sub_1007FEBF0(*(_QWORD *)(v3 + 560), a2);
*(_BYTE *)(v3 + 601) = 1;
return EffectGameObject::updateSpeedModType(a2);
}
}
else if ( (_BYTE)result )
{
result = sub_1007FF140(*(_QWORD *)(v3 + 560), a2, 1);
*(_BYTE *)(v3 + 601) = 1;
}
return result;
}