{"type": "func", "start": 5371275776, "end": 5371275897, "name": "GJFollowCommandLayer::updateDuration", "pseudocode": "// \n// GJFollowCommandLayer::updateDuration from 0x140272a00 to 0x140272a79 (121 bytes)\n// \n// 10 xrefs:\n// > GJFollowCommandLayer::sliderChanged @ 0x140271d44\n// > GJFollowCommandLayer::textChanged @ 0x14027230d\n// > GJPFollowCommandLayer::textChanged @ 0x14028ca21\n// > SetupCameraOffsetTrigger::textChanged @ 0x1404174de\n// > SetupMGTrigger::textChanged @ 0x1404286c7\n// > SetupRandTriggerPopup::sliderChanged @ 0x140440a2a\n// > SetupRandTriggerPopup::textChanged @ 0x140440e5c\n// > SetupShakePopup::sliderChanged @ 0x140455c81\n// > SetupShakePopup::textChanged @ 0x14045622b\n// > <???> @ 0x1406d0e9c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Merged with: GJFollowCommandLayer::updateDuration, GJPFollowCommandLayer::updateDuration, SetupCameraOffsetTrigger::updateDuration, SetupMGTrigger::updateDuration, SetupRandTriggerPopup::updateChance, SetupShakePopup::updateDuration\nunsigned int __fastcall GJFollowCommandLayer::updateDuration(__int64 a1)\n{\n  __int64 v2; // rcx\n  unsigned int result; // eax\n  unsigned int v4; // edi\n  struct cocos2d::CCObject *v5; // rax\n\n  v2 = *(_QWORD *)(a1 + 656);\n  if ( v2 )\n  {\n    result = *(_DWORD *)(a1 + 952);\n    *(_DWORD *)(v2 + 1468) = result;\n  }\n  else\n  {\n    v4 = 0;\n    result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 664));\n    if ( result )\n    {\n      do\n      {\n        v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 664), v4++);\n        v5[26].m_nLuaID = *(_DWORD *)(a1 + 952);\n        result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 664));\n      }\n      while ( v4 < result );\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJFollowCommandLayer::updateDuration from 0x140272a00 to 0x140272a79 (121 bytes)\n; \n; 10 xrefs:\n; > GJFollowCommandLayer::sliderChanged @ 0x140271d44\n; > GJFollowCommandLayer::textChanged @ 0x14027230d\n; > GJPFollowCommandLayer::textChanged @ 0x14028ca21\n; > SetupCameraOffsetTrigger::textChanged @ 0x1404174de\n; > SetupMGTrigger::textChanged @ 0x1404286c7\n; > SetupRandTriggerPopup::sliderChanged @ 0x140440a2a\n; > SetupRandTriggerPopup::textChanged @ 0x140440e5c\n; > SetupShakePopup::sliderChanged @ 0x140455c81\n; > SetupShakePopup::textChanged @ 0x14045622b\n; > <???> @ 0x1406d0e9c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x140272a00\nsub     rsp, 20h                                                       ; +0x2, 0x140272a02\nmov     rbx, rcx                                                       ; +0x6, 0x140272a06\nmov     rcx, [rcx+290h]                                                ; +0x9, 0x140272a09\ntest    rcx, rcx                                                       ; +0x10, 0x140272a10\njz      short loc_140272A27                                            ; +0x13, 0x140272a13\nmov     eax, [rbx+3B8h]                                                ; +0x15, 0x140272a15\nmov     [rcx+5BCh], eax                                                ; +0x1b, 0x140272a1b\nadd     rsp, 20h                                                       ; +0x21, 0x140272a21\npop     rbx                                                            ; +0x25, 0x140272a25\nretn                                                                   ; +0x26, 0x140272a26\nmov     rcx, [rbx+298h]                                                ; +0x27, 0x140272a27\nmov     [rsp+28h+arg_0], rdi                                           ; +0x2e, 0x140272a2e\nxor     edi, edi                                                       ; +0x33, 0x140272a33\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x35, 0x140272a35\ntest    eax, eax                                                       ; +0x3b, 0x140272a3b\njz      short loc_140272A6E                                            ; +0x3d, 0x140272a3d\nnop                                                                    ; +0x3f, 0x140272a3f\nmov     rcx, [rbx+298h]                                                ; +0x40, 0x140272a40\nmov     edx, edi                                                       ; +0x47, 0x140272a47\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x49, 0x140272a49\nmov     ecx, [rbx+3B8h]                                                ; +0x4f, 0x140272a4f\ninc     edi                                                            ; +0x55, 0x140272a55\nmov     [rax+5BCh], ecx                                                ; +0x57, 0x140272a57\nmov     rcx, [rbx+298h]                                                ; +0x5d, 0x140272a5d\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x64, 0x140272a64\ncmp     edi, eax                                                       ; +0x6a, 0x140272a6a\njb      short loc_140272A40                                            ; +0x6c, 0x140272a6c\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x6e, 0x140272a6e\nadd     rsp, 20h                                                       ; +0x73, 0x140272a73\npop     rbx                                                            ; +0x77, 0x140272a77\nretn                                                                   ; +0x78, 0x140272a78", "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"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}