{"type": "func", "start": 4295073792, "end": 4295074105, "name": "EditorUI::onTargetIDChange", "pseudocode": "// \n// EditorUI::onTargetIDChange from 0x10001a000 to 0x10001a139 (313 bytes)\n// \n// 2 xrefs:\n// > EditorUI::handleEditorAction @ 0x10060c0fe\n// > EditorUI::handleEditorAction @ 0x10060c899\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:18:56 +0000\n// \n\n__int64 __fastcall EditorUI::onTargetIDChange(__int64 a1, int a2)\n{\n  char v2; // al\n  __int64 v5; // rdi\n  __int64 v6; // r14\n  __int64 result; // rax\n  unsigned int v8; // r15d\n  __int64 v9; // rax\n  unsigned int v10; // r12d\n  _DWORD *v11; // r13\n  int v12; // esi\n  __int64 v13; // rax\n  __int64 v14; // r15\n  __int64 v15; // rax\n  __int64 CString; // rax\n  char v17; // [rsp-8h] [rbp-30h]\n\n  v17 = v2;\n  v5 = *(_QWORD *)(a1 + 1496);\n  if ( v5 )\n  {\n    v6 = sub_1007FE9A0(v5);\n    result = sub_1007FEF90(v6);\n    if ( !(_DWORD)result )\n      return result;\n  }\n  else\n  {\n    v6 = *(_QWORD *)(a1 + 896);\n    result = sub_1007FEF90(v6);\n    if ( !(_DWORD)result )\n      return result;\n  }\n  if ( (unsigned int)sub_1007FEF90(v6) )\n  {\n    v8 = 0;\n    while ( 1 )\n    {\n      v9 = sub_1007FEFE0(v6, v8);\n      result = GameObject::isTrigger(v9);\n      if ( !(_BYTE)result )\n        break;\n      if ( ++v8 >= (unsigned int)sub_1007FEF90(v6) )\n        goto LABEL_9;\n    }\n  }\n  else\n  {\nLABEL_9:\n    result = sub_1007FEF90(v6);\n    if ( (_DWORD)result )\n    {\n      v10 = 0;\n      do\n      {\n        v11 = (_DWORD *)sub_1007FEFE0(v6, v10);\n        if ( (unsigned __int8)GameObject::isTrigger(v11) )\n        {\n          v12 = v11[366];\n          if ( v12 > 0 )\n          {\n            EffectGameObject::setTargetID(v11, (unsigned int)(a2 + v12));\n            v13 = (*(__int64 (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)v11 + 480LL))(v11, 999);\n            if ( v13 )\n            {\n              v14 = v13;\n              v15 = sub_10088E820(\"%i\", v17);\n              CString = cocos2d::CCString::getCString(v15);\n              (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v14 + 928LL))(v14, CString);\n            }\n          }\n        }\n        ++v10;\n        result = sub_1007FEF90(v6);\n      }\n      while ( v10 < (unsigned int)result );\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::onTargetIDChange from 0x10001a000 to 0x10001a139 (313 bytes)\n; \n; 2 xrefs:\n; > EditorUI::handleEditorAction @ 0x10060c0fe\n; > EditorUI::handleEditorAction @ 0x10060c899\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:18:56 +0000\n; \npush    rbp                                                            ; +0x0, 0x10001a000\nmov     rbp, rsp                                                       ; +0x1, 0x10001a001\npush    r15                                                            ; +0x4, 0x10001a004\npush    r14                                                            ; +0x6, 0x10001a006\npush    r13                                                            ; +0x8, 0x10001a008\npush    r12                                                            ; +0xa, 0x10001a00a\npush    rbx                                                            ; +0xc, 0x10001a00c\npush    rax; char                                                      ; +0xd, 0x10001a00d\nmov     ebx, esi                                                       ; +0xe, 0x10001a00e\nmov     rax, rdi                                                       ; +0x10, 0x10001a010\nmov     rdi, [rdi+5D8h]                                                ; +0x13, 0x10001a013\ntest    rdi, rdi                                                       ; +0x1a, 0x10001a01a\njz      short loc_10001A038                                            ; +0x1d, 0x10001a01d\ncall    sub_1007FE9A0                                                  ; +0x1f, 0x10001a01f\nmov     r14, rax                                                       ; +0x24, 0x10001a024\nmov     rdi, r14                                                       ; +0x27, 0x10001a027\ncall    sub_1007FEF90                                                  ; +0x2a, 0x10001a02a\ntest    eax, eax                                                       ; +0x2f, 0x10001a02f\njnz     short loc_10001A04F                                            ; +0x31, 0x10001a031\njmp     loc_10001A12A                                                  ; +0x33, 0x10001a033\nmov     r14, [rax+380h]                                                ; +0x38, 0x10001a038\nmov     rdi, r14                                                       ; +0x3f, 0x10001a03f\ncall    sub_1007FEF90                                                  ; +0x42, 0x10001a042\ntest    eax, eax                                                       ; +0x47, 0x10001a047\njz      loc_10001A12A                                                  ; +0x49, 0x10001a049\nmov     rdi, r14                                                       ; +0x4f, 0x10001a04f\ncall    sub_1007FEF90                                                  ; +0x52, 0x10001a052\ntest    eax, eax                                                       ; +0x57, 0x10001a057\njz      short loc_10001A08B                                            ; +0x59, 0x10001a059\nxor     r15d, r15d                                                     ; +0x5b, 0x10001a05b\nxchg    ax, ax                                                         ; +0x5e, 0x10001a05e\nmov     rdi, r14                                                       ; +0x60, 0x10001a060\nmov     esi, r15d                                                      ; +0x63, 0x10001a063\ncall    sub_1007FEFE0                                                  ; +0x66, 0x10001a066\nmov     rdi, rax                                                       ; +0x6b, 0x10001a06b\ncall    GameObject__isTrigger                                          ; +0x6e, 0x10001a06e\ntest    al, al                                                         ; +0x73, 0x10001a073\njz      loc_10001A12A                                                  ; +0x75, 0x10001a075\ninc     r15d                                                           ; +0x7b, 0x10001a07b\nmov     rdi, r14                                                       ; +0x7e, 0x10001a07e\ncall    sub_1007FEF90                                                  ; +0x81, 0x10001a081\ncmp     r15d, eax                                                      ; +0x86, 0x10001a086\njb      short loc_10001A060                                            ; +0x89, 0x10001a089\nmov     rdi, r14                                                       ; +0x8b, 0x10001a08b\ncall    sub_1007FEF90                                                  ; +0x8e, 0x10001a08e\ntest    eax, eax                                                       ; +0x93, 0x10001a093\njz      loc_10001A12A                                                  ; +0x95, 0x10001a095\nxor     r12d, r12d                                                     ; +0x9b, 0x10001a09b\njmp     short loc_10001A0B0                                            ; +0x9e, 0x10001a09e\ninc     r12d                                                           ; +0xa0, 0x10001a0a0\nmov     rdi, r14                                                       ; +0xa3, 0x10001a0a3\ncall    sub_1007FEF90                                                  ; +0xa6, 0x10001a0a6\ncmp     r12d, eax                                                      ; +0xab, 0x10001a0ab\njnb     short loc_10001A12A                                            ; +0xae, 0x10001a0ae\nmov     rdi, r14                                                       ; +0xb0, 0x10001a0b0\nmov     esi, r12d                                                      ; +0xb3, 0x10001a0b3\ncall    sub_1007FEFE0                                                  ; +0xb6, 0x10001a0b6\nmov     r13, rax                                                       ; +0xbb, 0x10001a0bb\nmov     rdi, rax                                                       ; +0xbe, 0x10001a0be\ncall    GameObject__isTrigger                                          ; +0xc1, 0x10001a0c1\ntest    al, al                                                         ; +0xc6, 0x10001a0c6\njz      short loc_10001A0A0                                            ; +0xc8, 0x10001a0c8\nmov     esi, [r13+5B8h]                                                ; +0xca, 0x10001a0ca\ntest    esi, esi                                                       ; +0xd1, 0x10001a0d1\njle     short loc_10001A0A0                                            ; +0xd3, 0x10001a0d3\nadd     esi, ebx                                                       ; +0xd5, 0x10001a0d5\nmov     rdi, r13                                                       ; +0xd7, 0x10001a0d7\ncall    EffectGameObject__setTargetID                                  ; +0xda, 0x10001a0da\nmov     rax, [r13+0]                                                   ; +0xdf, 0x10001a0df\nmov     rdi, r13                                                       ; +0xe3, 0x10001a0e3\nmov     esi, 3E7h                                                      ; +0xe6, 0x10001a0e6\ncall    qword ptr [rax+1E0h]                                           ; +0xeb, 0x10001a0eb\ntest    rax, rax                                                       ; +0xf1, 0x10001a0f1\njz      short loc_10001A0A0                                            ; +0xf4, 0x10001a0f4\nmov     r15, rax                                                       ; +0xf6, 0x10001a0f6\nmov     esi, [r13+5B8h]                                                ; +0xf9, 0x10001a0f9\nlea     rdi, aI_14; \"%i\"                                               ; +0x100, 0x10001a100\nxor     eax, eax                                                       ; +0x107, 0x10001a107\ncall    sub_10088E820                                                  ; +0x109, 0x10001a109\nmov     rdi, rax                                                       ; +0x10e, 0x10001a10e\ncall    cocos2d__CCString__getCString                                  ; +0x111, 0x10001a111\nmov     rcx, [r15]                                                     ; +0x116, 0x10001a116\nmov     rdi, r15                                                       ; +0x119, 0x10001a119\nmov     rsi, rax                                                       ; +0x11c, 0x10001a11c\ncall    qword ptr [rcx+3A0h]                                           ; +0x11f, 0x10001a11f\njmp     loc_10001A0A0                                                  ; +0x125, 0x10001a125\nadd     rsp, 8                                                         ; +0x12a, 0x10001a12a\npop     rbx                                                            ; +0x12e, 0x10001a12e\npop     r12                                                            ; +0x12f, 0x10001a12f\npop     r13                                                            ; +0x131, 0x10001a131\npop     r14                                                            ; +0x133, 0x10001a133\npop     r15                                                            ; +0x135, 0x10001a135\npop     rbp                                                            ; +0x137, 0x10001a137\nretn                                                                   ; +0x138, 0x10001a138", "xrefs": ["EditorUI::handleEditorAction @ 0x10060c0fe", "EditorUI::handleEditorAction @ 0x10060c899"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}