{"type": "func", "start": 5373152672, "end": 5373152861, "name": "SetupPulsePopup::updateTargetID", "pseudocode": "// \n// SetupPulsePopup::updateTargetID from 0x14043cda0 to 0x14043ce5d (189 bytes)\n// \n// 7 xrefs:\n// > SetupPulsePopup::onSelectTargetMode @ 0x14043b130\n// > SetupPulsePopup::colorSelectClosed @ 0x14043bb5d\n// > SetupPulsePopup::onUpdateCustomColor @ 0x14043c38c\n// > SetupPulsePopup::textChanged @ 0x14043c556\n// > <???> @ 0x1406a1bcc\n// > <???> @ 0x1406a1bdc\n// > <???> @ 0x1406da10c\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 SetupPulsePopup::updateTargetID(SetupPulsePopup *a1)\n{\n  EffectGameObject *m_gameObject; // rcx\n  int m_targetGroupID; // eax\n  cocos2d::CCArray *m_gameObjects; // rcx\n  unsigned int v5; // esi\n  struct cocos2d::CCObject *v6; // rax\n  int v7; // ecx\n\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_targetGroupID = a1->m_targetGroupID;\n    if ( m_targetGroupID < 0 )\n      m_targetGroupID = 0;\n    if ( m_targetGroupID > 9999 )\n      m_targetGroupID = 9999;\n    m_gameObject->m_targetGroupID = m_targetGroupID;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects )\n    {\n      v5 = 0;\n      if ( cocos2d::CCArray::count(m_gameObjects) )\n      {\n        do\n        {\n          v6 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v5);\n          v7 = a1->m_targetGroupID;\n          if ( v7 < 0 )\n            v7 = 0;\n          if ( v7 > 9999 )\n            v7 = 9999;\n          ++v5;\n          v6[26].m_uAutoReleaseCount = v7;\n        }\n        while ( v5 < cocos2d::CCArray::count(a1->m_gameObjects) );\n      }\n    }\n  }\n}", "assembly": "; \n; SetupPulsePopup::updateTargetID from 0x14043cda0 to 0x14043ce5d (189 bytes)\n; \n; 7 xrefs:\n; > SetupPulsePopup::onSelectTargetMode @ 0x14043b130\n; > SetupPulsePopup::colorSelectClosed @ 0x14043bb5d\n; > SetupPulsePopup::onUpdateCustomColor @ 0x14043c38c\n; > SetupPulsePopup::textChanged @ 0x14043c556\n; > <???> @ 0x1406a1bcc\n; > <???> @ 0x1406a1bdc\n; > <???> @ 0x1406da10c\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14043cda0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14043cda5\npush    rdi                                                            ; +0xa, 0x14043cdaa\nsub     rsp, 20h                                                       ; +0xb, 0x14043cdab\nmov     rbx, rcx                                                       ; +0xf, 0x14043cdaf\nmov     rcx, [rcx+290h]                                                ; +0x12, 0x14043cdb2\ntest    rcx, rcx                                                       ; +0x19, 0x14043cdb9\njz      short loc_14043CDEB                                            ; +0x1c, 0x14043cdbc\nmov     eax, [rbx+4A4h]                                                ; +0x1e, 0x14043cdbe\nxor     ebp, ebp                                                       ; +0x24, 0x14043cdc4\ntest    eax, eax                                                       ; +0x26, 0x14043cdc6\nmov     edi, 270Fh                                                     ; +0x28, 0x14043cdc8\ncmovs   eax, ebp                                                       ; +0x2d, 0x14043cdcd\ncmp     eax, edi                                                       ; +0x30, 0x14043cdd0\ncmovg   eax, edi                                                       ; +0x32, 0x14043cdd2\nmov     [rcx+5C8h], eax                                                ; +0x35, 0x14043cdd5\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x3b, 0x14043cddb\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x40, 0x14043cde0\nadd     rsp, 20h                                                       ; +0x45, 0x14043cde5\npop     rdi                                                            ; +0x49, 0x14043cde9\nretn                                                                   ; +0x4a, 0x14043cdea\nmov     rcx, [rbx+298h]                                                ; +0x4b, 0x14043cdeb\ntest    rcx, rcx                                                       ; +0x52, 0x14043cdf2\njz      short loc_14043CE4D                                            ; +0x55, 0x14043cdf5\nxor     ebp, ebp                                                       ; +0x57, 0x14043cdf7\nmov     [rsp+28h+arg_0], rsi                                           ; +0x59, 0x14043cdf9\nmov     esi, ebp                                                       ; +0x5e, 0x14043cdfe\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x60, 0x14043ce00\ntest    eax, eax                                                       ; +0x66, 0x14043ce06\njz      short loc_14043CE48                                            ; +0x68, 0x14043ce08\nmov     edi, 270Fh                                                     ; +0x6a, 0x14043ce0a\nnop                                                                    ; +0x6f, 0x14043ce0f\nmov     rcx, [rbx+298h]                                                ; +0x70, 0x14043ce10\nmov     edx, esi                                                       ; +0x77, 0x14043ce17\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x79, 0x14043ce19\nmov     ecx, [rbx+4A4h]                                                ; +0x7f, 0x14043ce1f\ntest    ecx, ecx                                                       ; +0x85, 0x14043ce25\ncmovs   ecx, ebp                                                       ; +0x87, 0x14043ce27\ncmp     ecx, edi                                                       ; +0x8a, 0x14043ce2a\ncmovg   ecx, edi                                                       ; +0x8c, 0x14043ce2c\ninc     esi                                                            ; +0x8f, 0x14043ce2f\nmov     [rax+5C8h], ecx                                                ; +0x91, 0x14043ce31\nmov     rcx, [rbx+298h]                                                ; +0x97, 0x14043ce37\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x9e, 0x14043ce3e\ncmp     esi, eax                                                       ; +0xa4, 0x14043ce44\njb      short loc_14043CE10                                            ; +0xa6, 0x14043ce46\nmov     rsi, [rsp+28h+arg_0]                                           ; +0xa8, 0x14043ce48\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xad, 0x14043ce4d\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xb2, 0x14043ce52\nadd     rsp, 20h                                                       ; +0xb7, 0x14043ce57\npop     rdi                                                            ; +0xbb, 0x14043ce5b\nretn                                                                   ; +0xbc, 0x14043ce5c", "xrefs": ["SetupPulsePopup::onSelectTargetMode @ 0x14043b130", "SetupPulsePopup::colorSelectClosed @ 0x14043bb5d", "SetupPulsePopup::onUpdateCustomColor @ 0x14043c38c", "SetupPulsePopup::textChanged @ 0x14043c556", "<???> @ 0x1406a1bcc", "<???> @ 0x1406a1bdc", "<???> @ 0x1406da10c"], "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"}