{"type": "func", "start": 5369897952, "end": 5369898311, "name": "EditorUI::onTargetIDChange", "pseudocode": "// \n// EditorUI::onTargetIDChange from 0x1401223e0 to 0x140122547 (359 bytes)\n// \n// 6 xrefs:\n// > EditorUI::keyDown @ 0x140125f2c\n// > EditorUI::keyDown @ 0x140125f61\n// > <???> @ 0x140670338\n// > <???> @ 0x140670394\n// > <???> @ 0x1406c9798\n// > <???> @ 0x1406c97a4\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 EditorUI::onTargetIDChange(EditorUI *a1, int a2)\n{\n  struct cocos2d::CCArray *m_selectedObjects; // rbx\n  unsigned int v4; // edi\n  GameObject *v5; // rax\n  unsigned int i; // esi\n  struct cocos2d::CCObject *v7; // rdi\n  int m_uAutoReleaseCount; // eax\n  int v9; // ecx\n  cocos2d::CCObject_vtbl *v10; // rax\n  __int64 v11; // rbp\n  cocos2d::CCString *v12; // rax\n  const char *CString; // rax\n\n  if ( a1->m_selectedObject )\n    m_selectedObjects = cocos2d::CCArray::createWithObject(a1->m_selectedObject);\n  else\n    m_selectedObjects = a1->m_selectedObjects;\n  if ( cocos2d::CCArray::count(m_selectedObjects) )\n  {\n    v4 = 0;\n    if ( cocos2d::CCArray::count(m_selectedObjects) )\n    {\n      while ( 1 )\n      {\n        v5 = (GameObject *)cocos2d::CCArray::objectAtIndex(m_selectedObjects, v4);\n        if ( !GameObject::isTrigger(v5) )\n          break;\n        if ( ++v4 >= cocos2d::CCArray::count(m_selectedObjects) )\n          goto LABEL_8;\n      }\n    }\n    else\n    {\nLABEL_8:\n      for ( i = 0; i < cocos2d::CCArray::count(m_selectedObjects); ++i )\n      {\n        v7 = cocos2d::CCArray::objectAtIndex(m_selectedObjects, i);\n        if ( GameObject::isTrigger((GameObject *)v7) )\n        {\n          m_uAutoReleaseCount = v7[26].m_uAutoReleaseCount;\n          if ( m_uAutoReleaseCount > 0 )\n          {\n            v9 = m_uAutoReleaseCount + a2;\n            v10 = v7->__vftable;\n            if ( v9 < 0 )\n              v9 = 0;\n            if ( v9 > 9999 )\n              v9 = 9999;\n            v7[26].m_uAutoReleaseCount = v9;\n            v11 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *, __int64))v10[6].acceptVisitor)(v7, 999);\n            if ( v11 )\n            {\n              v12 = cocos2d::CCString::createWithFormat(\"%i\", v7[26].m_uAutoReleaseCount);\n              CString = cocos2d::CCString::getCString(v12);\n              (**(void (__fastcall ***)(__int64, const char *))(v11 + 360))(v11 + 360, CString);\n            }\n          }\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; EditorUI::onTargetIDChange from 0x1401223e0 to 0x140122547 (359 bytes)\n; \n; 6 xrefs:\n; > EditorUI::keyDown @ 0x140125f2c\n; > EditorUI::keyDown @ 0x140125f61\n; > <???> @ 0x140670338\n; > <???> @ 0x140670394\n; > <???> @ 0x1406c9798\n; > <???> @ 0x1406c97a4\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, 0x1401223e0\npush    r14                                                            ; +0x2, 0x1401223e2\nsub     rsp, 28h                                                       ; +0x4, 0x1401223e4\nmov     rax, [rcx+538h]                                                ; +0x8, 0x1401223e8\nmov     r14d, edx                                                      ; +0xf, 0x1401223ef\ntest    rax, rax                                                       ; +0x12, 0x1401223f2\njz      short loc_140122405                                            ; +0x15, 0x1401223f5\nmov     rcx, rax                                                       ; +0x17, 0x1401223f7\ncall    cs:?createWithObject@CCArray@cocos2d@@SAPEAV12@PEAVCCObject@2@@Z; cocos2d::CCArray::createWithObject(cocos2d::CCObject *) ; +0x1a, 0x1401223fa\nmov     rbx, rax                                                       ; +0x20, 0x140122400\njmp     short loc_14012240C                                            ; +0x23, 0x140122403\nmov     rbx, [rcx+340h]                                                ; +0x25, 0x140122405\nmov     rcx, rbx                                                       ; +0x2c, 0x14012240c\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2f, 0x14012240f\ntest    eax, eax                                                       ; +0x35, 0x140122415\njz      loc_14012253F                                                  ; +0x37, 0x140122417\nmov     [rsp+38h+arg_10], rdi                                          ; +0x3d, 0x14012241d\nmov     rcx, rbx                                                       ; +0x42, 0x140122422\nmov     [rsp+38h+var_18], r15                                          ; +0x45, 0x140122425\nxor     r15d, r15d                                                     ; +0x4a, 0x14012242a\nmov     edi, r15d                                                      ; +0x4d, 0x14012242d\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x50, 0x140122430\ntest    eax, eax                                                       ; +0x56, 0x140122436\njz      short loc_14012246A                                            ; +0x58, 0x140122438\nnop     word ptr [rax+rax+00h]                                         ; +0x5a, 0x14012243a\nmov     edx, edi                                                       ; +0x60, 0x140122440\nmov     rcx, rbx                                                       ; +0x62, 0x140122442\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x65, 0x140122445\nmov     rcx, rax                                                       ; +0x6b, 0x14012244b\ncall    GameObject__isTrigger                                          ; +0x6e, 0x14012244e\ntest    al, al                                                         ; +0x73, 0x140122453\njz      loc_140122535                                                  ; +0x75, 0x140122455\nmov     rcx, rbx                                                       ; +0x7b, 0x14012245b\ninc     edi                                                            ; +0x7e, 0x14012245e\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x80, 0x140122460\ncmp     edi, eax                                                       ; +0x86, 0x140122466\njb      short loc_140122440                                            ; +0x88, 0x140122468\nmov     [rsp+38h+arg_8], rsi                                           ; +0x8a, 0x14012246a\nmov     rcx, rbx                                                       ; +0x8f, 0x14012246f\nmov     esi, r15d                                                      ; +0x92, 0x140122472\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x95, 0x140122475\ntest    eax, eax                                                       ; +0x9b, 0x14012247b\njz      loc_140122530                                                  ; +0x9d, 0x14012247d\nmov     [rsp+38h+arg_18], r12                                          ; +0xa3, 0x140122483\nmov     r12d, 270Fh                                                    ; +0xa8, 0x140122488\nmov     [rsp+38h+arg_0], rbp                                           ; +0xae, 0x14012248e\nmov     edx, esi                                                       ; +0xb3, 0x140122493\nmov     rcx, rbx                                                       ; +0xb5, 0x140122495\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xb8, 0x140122498\nmov     rcx, rax                                                       ; +0xbe, 0x14012249e\nmov     rdi, rax                                                       ; +0xc1, 0x1401224a1\ncall    GameObject__isTrigger                                          ; +0xc4, 0x1401224a4\ntest    al, al                                                         ; +0xc9, 0x1401224a9\njz      short loc_140122513                                            ; +0xcb, 0x1401224ab\nmov     eax, [rdi+5C8h]                                                ; +0xcd, 0x1401224ad\ntest    eax, eax                                                       ; +0xd3, 0x1401224b3\njle     short loc_140122513                                            ; +0xd5, 0x1401224b5\nlea     ecx, [rax+r14]                                                 ; +0xd7, 0x1401224b7\nmov     edx, 3E7h                                                      ; +0xdb, 0x1401224bb\nmov     rax, [rdi]                                                     ; +0xe0, 0x1401224c0\ntest    ecx, ecx                                                       ; +0xe3, 0x1401224c3\ncmovs   ecx, r15d                                                      ; +0xe5, 0x1401224c5\ncmp     ecx, r12d                                                      ; +0xe9, 0x1401224c9\ncmovg   ecx, r12d                                                      ; +0xec, 0x1401224cc\nmov     [rdi+5C8h], ecx                                                ; +0xf0, 0x1401224d0\nmov     rcx, rdi                                                       ; +0xf6, 0x1401224d6\ncall    qword ptr [rax+1C8h]                                           ; +0xf9, 0x1401224d9\nmov     rbp, rax                                                       ; +0xff, 0x1401224df\ntest    rax, rax                                                       ; +0x102, 0x1401224e2\njz      short loc_140122513                                            ; +0x105, 0x1401224e5\nmov     edx, [rdi+5C8h]                                                ; +0x107, 0x1401224e7\nlea     rcx, aI_11; \"%i\"                                               ; +0x10d, 0x1401224ed\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x114, 0x1401224f4\nmov     rcx, rax                                                       ; +0x11a, 0x1401224fa\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x11d, 0x1401224fd\nlea     rcx, [rbp+168h]                                                ; +0x123, 0x140122503\nmov     rdx, rax                                                       ; +0x12a, 0x14012250a\nmov     r8, [rcx]                                                      ; +0x12d, 0x14012250d\ncall    qword ptr [r8]                                                 ; +0x130, 0x140122510\nmov     rcx, rbx                                                       ; +0x133, 0x140122513\ninc     esi                                                            ; +0x136, 0x140122516\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x138, 0x140122518\ncmp     esi, eax                                                       ; +0x13e, 0x14012251e\njb      loc_140122493                                                  ; +0x140, 0x140122520\nmov     r12, [rsp+38h+arg_18]                                          ; +0x146, 0x140122526\nmov     rbp, [rsp+38h+arg_0]                                           ; +0x14b, 0x14012252b\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x150, 0x140122530\nmov     rdi, [rsp+38h+arg_10]                                          ; +0x155, 0x140122535\nmov     r15, [rsp+38h+var_18]                                          ; +0x15a, 0x14012253a\nadd     rsp, 28h                                                       ; +0x15f, 0x14012253f\npop     r14                                                            ; +0x163, 0x140122543\npop     rbx                                                            ; +0x165, 0x140122545\nretn                                                                   ; +0x166, 0x140122546", "xrefs": ["EditorUI::keyDown @ 0x140125f2c", "EditorUI::keyDown @ 0x140125f61", "<???> @ 0x140670338", "<???> @ 0x140670394", "<???> @ 0x1406c9798", "<???> @ 0x1406c97a4"], "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"}