//
// GJFollowCommandLayer::updateDuration from 0x140272a00 to 0x140272a79 (121 bytes)
//
// 10 xrefs:
// > GJFollowCommandLayer::sliderChanged @ 0x140271d44
// > GJFollowCommandLayer::textChanged @ 0x14027230d
// > GJPFollowCommandLayer::textChanged @ 0x14028ca21
// > SetupCameraOffsetTrigger::textChanged @ 0x1404174de
// > SetupMGTrigger::textChanged @ 0x1404286c7
// > SetupRandTriggerPopup::sliderChanged @ 0x140440a2a
// > SetupRandTriggerPopup::textChanged @ 0x140440e5c
// > SetupShakePopup::sliderChanged @ 0x140455c81
// > SetupShakePopup::textChanged @ 0x14045622b
// > ??> @ 0x1406d0e9c
//
// 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
//
// Merged with: GJFollowCommandLayer::updateDuration, GJPFollowCommandLayer::updateDuration, SetupCameraOffsetTrigger::updateDuration, SetupMGTrigger::updateDuration, SetupRandTriggerPopup::updateChance, SetupShakePopup::updateDuration
unsigned int __fastcall GJFollowCommandLayer::updateDuration(__int64 a1)
{
__int64 v2; // rcx
unsigned int result; // eax
unsigned int v4; // edi
struct cocos2d::CCObject *v5; // rax
v2 = *(_QWORD *)(a1 + 656);
if ( v2 )
{
result = *(_DWORD *)(a1 + 952);
*(_DWORD *)(v2 + 1468) = result;
}
else
{
v4 = 0;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 664));
if ( result )
{
do
{
v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 664), v4++);
v5[26].m_nLuaID = *(_DWORD *)(a1 + 952);
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 664));
}
while ( v4 < result );
}
}
return result;
}