{"type": "func", "start": 5373019808, "end": 5373020004, "name": "SetupCountTriggerPopup::updateTargetID", "pseudocode": "// \n// SetupCountTriggerPopup::updateTargetID from 0x14041c6a0 to 0x14041c764 (196 bytes)\n// \n// 5 xrefs:\n// > SetupCountTriggerPopup::onTargetIDArrow @ 0x14041c30a\n// > SetupCountTriggerPopup::textChanged @ 0x14041c575\n// > <???> @ 0x1406a0170\n// > <???> @ 0x1406a0180\n// > <???> @ 0x1406d9338\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 SetupCountTriggerPopup::updateTargetID(SetupCountTriggerPopup *a1)\n{\n  int m_targetID; // edx\n  EffectGameObject *m_gameObject; // rax\n  cocos2d::CCArray *m_gameObjects; // rcx\n  unsigned int v5; // edi\n  struct cocos2d::CCObject *v6; // rax\n  int v7; // ecx\n\n  m_targetID = 0;\n  if ( a1->m_targetID >= 0 )\n    m_targetID = a1->m_targetID;\n  m_gameObject = a1->m_gameObject;\n  if ( m_targetID > 9999 )\n    m_targetID = 9999;\n  a1->m_targetID = m_targetID;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_targetGroupID = m_targetID;\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_targetID;\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  SetupTriggerPopup::updateEditorLabel(a1);\n}", "assembly": "; \n; SetupCountTriggerPopup::updateTargetID from 0x14041c6a0 to 0x14041c764 (196 bytes)\n; \n; 5 xrefs:\n; > SetupCountTriggerPopup::onTargetIDArrow @ 0x14041c30a\n; > SetupCountTriggerPopup::textChanged @ 0x14041c575\n; > <???> @ 0x1406a0170\n; > <???> @ 0x1406a0180\n; > <???> @ 0x1406d9338\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, 0x14041c6a0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14041c6a5\npush    rsi                                                            ; +0xa, 0x14041c6aa\nsub     rsp, 20h                                                       ; +0xb, 0x14041c6ab\nmov     eax, [rcx+3C4h]                                                ; +0xf, 0x14041c6af\nxor     ebp, ebp                                                       ; +0x15, 0x14041c6b5\ntest    eax, eax                                                       ; +0x17, 0x14041c6b7\nmov     esi, 270Fh                                                     ; +0x19, 0x14041c6b9\nmov     edx, ebp                                                       ; +0x1e, 0x14041c6be\nmov     rbx, rcx                                                       ; +0x20, 0x14041c6c0\ncmovns  edx, eax                                                       ; +0x23, 0x14041c6c3\nmov     rax, [rcx+290h]                                                ; +0x26, 0x14041c6c6\ncmp     edx, esi                                                       ; +0x2d, 0x14041c6cd\ncmovg   edx, esi                                                       ; +0x2f, 0x14041c6cf\nmov     [rcx+3C4h], edx                                                ; +0x32, 0x14041c6d2\ntest    rax, rax                                                       ; +0x38, 0x14041c6d8\njz      short loc_14041C6EF                                            ; +0x3b, 0x14041c6db\ntest    edx, edx                                                       ; +0x3d, 0x14041c6dd\ncmovs   edx, ebp                                                       ; +0x3f, 0x14041c6df\ncmp     edx, esi                                                       ; +0x42, 0x14041c6e2\ncmovg   edx, esi                                                       ; +0x44, 0x14041c6e4\nmov     [rax+5C8h], edx                                                ; +0x47, 0x14041c6e7\njmp     short loc_14041C74D                                            ; +0x4d, 0x14041c6ed\nmov     rcx, [rcx+298h]                                                ; +0x4f, 0x14041c6ef\ntest    rcx, rcx                                                       ; +0x56, 0x14041c6f6\njz      short loc_14041C74D                                            ; +0x59, 0x14041c6f9\nmov     [rsp+28h+arg_0], rdi                                           ; +0x5b, 0x14041c6fb\nmov     edi, ebp                                                       ; +0x60, 0x14041c700\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x62, 0x14041c702\ntest    eax, eax                                                       ; +0x68, 0x14041c708\njz      short loc_14041C748                                            ; +0x6a, 0x14041c70a\nnop     dword ptr [rax+00h]                                            ; +0x6c, 0x14041c70c\nmov     rcx, [rbx+298h]                                                ; +0x70, 0x14041c710\nmov     edx, edi                                                       ; +0x77, 0x14041c717\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x79, 0x14041c719\nmov     ecx, [rbx+3C4h]                                                ; +0x7f, 0x14041c71f\ntest    ecx, ecx                                                       ; +0x85, 0x14041c725\ncmovs   ecx, ebp                                                       ; +0x87, 0x14041c727\ncmp     ecx, esi                                                       ; +0x8a, 0x14041c72a\ncmovg   ecx, esi                                                       ; +0x8c, 0x14041c72c\ninc     edi                                                            ; +0x8f, 0x14041c72f\nmov     [rax+5C8h], ecx                                                ; +0x91, 0x14041c731\nmov     rcx, [rbx+298h]                                                ; +0x97, 0x14041c737\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x9e, 0x14041c73e\ncmp     edi, eax                                                       ; +0xa4, 0x14041c744\njb      short loc_14041C710                                            ; +0xa6, 0x14041c746\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xa8, 0x14041c748\nmov     rcx, rbx                                                       ; +0xad, 0x14041c74d\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xb0, 0x14041c750\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xb5, 0x14041c755\nadd     rsp, 20h                                                       ; +0xba, 0x14041c75a\npop     rsi                                                            ; +0xbe, 0x14041c75e\njmp     SetupTriggerPopup__updateEditorLabel                           ; +0xbf, 0x14041c75f", "xrefs": ["SetupCountTriggerPopup::onTargetIDArrow @ 0x14041c30a", "SetupCountTriggerPopup::textChanged @ 0x14041c575", "<???> @ 0x1406a0170", "<???> @ 0x1406a0180", "<???> @ 0x1406d9338"], "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"}