{"type": "func", "start": 5373384688, "end": 5373384827, "name": "SetupTriggerPopup::onMultiTrigger", "pseudocode": "// \n// SetupTriggerPopup::onMultiTrigger from 0x1404757f0 to 0x14047587b (139 bytes)\n// \n// 7 xrefs:\n// > ColorSelectPopup::init @ 0x14008eec0\n// > SetupCountTriggerPopup::init @ 0x14041beac\n// > SetupPulsePopup::init @ 0x14043944e\n// > SetupTriggerPopup::createMultiTriggerItems @ 0x1404753b0\n// > <???> @ 0x1406a5780\n// > <???> @ 0x1406a5790\n// > <???> @ 0x1406db5c4\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\nvoid SetupTriggerPopup::onMultiTrigger(SetupTriggerPopup *a1, cocos2d::CCObject *a2)\n{\n  bool v3; // cl\n  EffectGameObject *m_gameObject; // rax\n  cocos2d::CCArray *m_gameObjects; // rcx\n  unsigned int v6; // edi\n  struct cocos2d::CCObject *v7; // rax\n\n  v3 = !a1->m_multiTriggered;\n  a1->m_multiTriggered = v3;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_isMultiTriggered = v3;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects )\n    {\n      v6 = 0;\n      if ( cocos2d::CCArray::count(m_gameObjects) )\n      {\n        do\n        {\n          v7 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v6++);\n          LOBYTE(v7[30].__vftable) = a1->m_multiTriggered;\n        }\n        while ( v6 < cocos2d::CCArray::count(a1->m_gameObjects) );\n      }\n    }\n  }\n}", "assembly": "; \n; SetupTriggerPopup::onMultiTrigger from 0x1404757f0 to 0x14047587b (139 bytes)\n; \n; 7 xrefs:\n; > ColorSelectPopup::init @ 0x14008eec0\n; > SetupCountTriggerPopup::init @ 0x14041beac\n; > SetupPulsePopup::init @ 0x14043944e\n; > SetupTriggerPopup::createMultiTriggerItems @ 0x1404753b0\n; > <???> @ 0x1406a5780\n; > <???> @ 0x1406a5790\n; > <???> @ 0x1406db5c4\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, 0x1404757f0\nsub     rsp, 20h                                                       ; +0x2, 0x1404757f2\ncmp     byte ptr [rcx+2C0h], 0                                         ; +0x6, 0x1404757f6\nmov     rbx, rcx                                                       ; +0xd, 0x1404757fd\nsetz    al                                                             ; +0x10, 0x140475800\nmovzx   ecx, al                                                        ; +0x13, 0x140475803\nmov     [rbx+2C0h], al                                                 ; +0x16, 0x140475806\nmov     rax, [rbx+290h]                                                ; +0x1c, 0x14047580c\ntest    rax, rax                                                       ; +0x23, 0x140475813\njz      short loc_140475824                                            ; +0x26, 0x140475816\nmov     [rax+690h], cl                                                 ; +0x28, 0x140475818\nadd     rsp, 20h                                                       ; +0x2e, 0x14047581e\npop     rbx                                                            ; +0x32, 0x140475822\nretn                                                                   ; +0x33, 0x140475823\nmov     rcx, [rbx+298h]                                                ; +0x34, 0x140475824\ntest    rcx, rcx                                                       ; +0x3b, 0x14047582b\njz      short loc_140475875                                            ; +0x3e, 0x14047582e\nmov     [rsp+28h+arg_0], rdi                                           ; +0x40, 0x140475830\nxor     edi, edi                                                       ; +0x45, 0x140475835\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x47, 0x140475837\ntest    eax, eax                                                       ; +0x4d, 0x14047583d\njz      short loc_140475870                                            ; +0x4f, 0x14047583f\nmov     rcx, [rbx+298h]                                                ; +0x51, 0x140475841\nmov     edx, edi                                                       ; +0x58, 0x140475848\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x5a, 0x14047584a\nmovzx   ecx, byte ptr [rbx+2C0h]                                       ; +0x60, 0x140475850\ninc     edi                                                            ; +0x67, 0x140475857\nmov     [rax+690h], cl                                                 ; +0x69, 0x140475859\nmov     rcx, [rbx+298h]                                                ; +0x6f, 0x14047585f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x76, 0x140475866\ncmp     edi, eax                                                       ; +0x7c, 0x14047586c\njb      short loc_140475841                                            ; +0x7e, 0x14047586e\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x80, 0x140475870\nadd     rsp, 20h                                                       ; +0x85, 0x140475875\npop     rbx                                                            ; +0x89, 0x140475879\nretn                                                                   ; +0x8a, 0x14047587a", "xrefs": ["ColorSelectPopup::init @ 0x14008eec0", "SetupCountTriggerPopup::init @ 0x14041beac", "SetupPulsePopup::init @ 0x14043944e", "SetupTriggerPopup::createMultiTriggerItems @ 0x1404753b0", "<???> @ 0x1406a5780", "<???> @ 0x1406a5790", "<???> @ 0x1406db5c4"], "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"}