{"type": "func", "start": 4297617648, "end": 4297617975, "name": "CollisionBlockPopup::textChanged", "pseudocode": "// \n// CollisionBlockPopup::textChanged from 0x1002870f0 to 0x100287237 (327 bytes)\n// \n// 2 xrefs:\n// > sub_100287240 @ 0x10028724c\n// > <???> @ 0x1008f3350\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 __fastcall CollisionBlockPopup::textChanged(CollisionBlockPopup *a1, CCTextInputNode *a2)\n{\n  double v2; // xmm0_8\n  cocos2d::CCArray *m_gameObjects; // rdi\n  int m_blockID; // eax\n  char *v6; // r14\n  int v7; // ecx\n  int v8; // eax\n  EffectGameObject *m_gameObject; // rcx\n  unsigned int v10; // r14d\n  __int64 v11; // r14\n  unsigned int v12; // ebx\n  GameObject *v13; // rax\n  _QWORD v14[2]; // [rsp-30h] [rbp-30h] BYREF\n  char *v15; // [rsp-20h] [rbp-20h]\n\n  if ( a1->m_disableDelegate )\n    return;\n  CCTextInputNode::getString(v14, (__int64)a2, v2);\n  if ( (v14[0] & 1) != 0 )\n  {\n    v6 = v15;\n    a1->m_blockID = atoi(v15);\n    m_gameObjects = (cocos2d::CCArray *)v6;\n    operator delete(v6);\n    m_blockID = a1->m_blockID;\n  }\n  else\n  {\n    m_gameObjects = (cocos2d::CCArray *)((char *)v14 + 1);\n    m_blockID = atoi((const char *)v14 + 1);\n  }\n  v7 = 0;\n  if ( m_blockID > 0 )\n    v7 = m_blockID;\n  v8 = 9999;\n  if ( v7 < 9999 )\n    v8 = v7;\n  a1->m_blockID = v8;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_itemID = v8;\n    goto LABEL_16;\n  }\n  m_gameObjects = a1->m_gameObjects;\n  if ( m_gameObjects && (unsigned int)sub_100720070(m_gameObjects) )\n  {\n    v10 = 0;\n    do\n    {\n      a2 = (CCTextInputNode *)v10;\n      *(_DWORD *)(sub_1007200C0(a1->m_gameObjects, v10++) + 1680) = a1->m_blockID;\n      m_gameObjects = a1->m_gameObjects;\n    }\n    while ( v10 < (unsigned int)sub_100720070(m_gameObjects) );\n  }\n  if ( a1->m_gameObject )\n  {\nLABEL_16:\n    v11 = sub_10071F9E0(m_gameObjects, a2);\n    sub_10071FCD0(v11, a1->m_gameObject);\n    if ( !v11 )\n      return;\n    goto LABEL_17;\n  }\n  v11 = (__int64)a1->m_gameObjects;\n  if ( !v11 )\n    return;\nLABEL_17:\n  if ( (unsigned int)sub_100720070(v11) )\n  {\n    v12 = 0;\n    do\n    {\n      v13 = (GameObject *)sub_1007200C0(v11, v12);\n      LevelEditorLayer::updateObjectLabel(v13);\n      ++v12;\n    }\n    while ( v12 < (unsigned int)sub_100720070(v11) );\n  }\n}", "assembly": "; \n; CollisionBlockPopup::textChanged from 0x1002870f0 to 0x100287237 (327 bytes)\n; \n; 2 xrefs:\n; > sub_100287240 @ 0x10028724c\n; > <???> @ 0x1008f3350\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\ncmp     byte ptr [rdi+29Dh], 0                                         ; +0x0, 0x1002870f0\njnz     locret_100287228                                               ; +0x7, 0x1002870f7\npush    rbp                                                            ; +0xd, 0x1002870fd\nmov     rbp, rsp                                                       ; +0xe, 0x1002870fe\npush    r14                                                            ; +0x11, 0x100287101\npush    rbx                                                            ; +0x13, 0x100287103\nsub     rsp, 20h                                                       ; +0x14, 0x100287104\nmov     rbx, rdi                                                       ; +0x18, 0x100287108\nlea     rdi, [rbp-28h]                                                 ; +0x1b, 0x10028710b\ncall    CCTextInputNode__getString                                     ; +0x1f, 0x10028710f\ntest    byte ptr [rbp-28h], 1                                          ; +0x24, 0x100287114\njnz     short loc_100287125                                            ; +0x28, 0x100287118\nlea     rdi, [rbp-27h]; char *                                         ; +0x2a, 0x10028711a\ncall    _atoi                                                          ; +0x2e, 0x10028711e\njmp     short loc_100287145                                            ; +0x33, 0x100287123\nmov     r14, [rbp-18h]                                                 ; +0x35, 0x100287125\nmov     rdi, r14; char *                                               ; +0x39, 0x100287129\ncall    _atoi                                                          ; +0x3c, 0x10028712c\nmov     [rbx+298h], eax                                                ; +0x41, 0x100287131\nmov     rdi, r14; __p                                                  ; +0x47, 0x100287137\ncall    __ZdlPv; operator delete(void *)                               ; +0x4a, 0x10028713a\nmov     eax, [rbx+298h]                                                ; +0x4f, 0x10028713f\nxor     ecx, ecx                                                       ; +0x55, 0x100287145\ntest    eax, eax                                                       ; +0x57, 0x100287147\ncmovg   ecx, eax                                                       ; +0x59, 0x100287149\ncmp     ecx, 270Fh                                                     ; +0x5c, 0x10028714c\nmov     eax, 270Fh                                                     ; +0x62, 0x100287152\ncmovl   eax, ecx                                                       ; +0x67, 0x100287157\nmov     [rbx+298h], eax                                                ; +0x6a, 0x10028715a\nmov     rcx, [rbx+280h]                                                ; +0x70, 0x100287160\ntest    rcx, rcx                                                       ; +0x77, 0x100287167\njz      short loc_100287174                                            ; +0x7a, 0x10028716a\nmov     [rcx+690h], eax                                                ; +0x7c, 0x10028716c\njmp     short loc_1002871C9                                            ; +0x82, 0x100287172\nmov     rdi, [rbx+288h]                                                ; +0x84, 0x100287174\ntest    rdi, rdi                                                       ; +0x8b, 0x10028717b\njz      short loc_1002871BF                                            ; +0x8e, 0x10028717e\ncall    sub_100720070                                                  ; +0x90, 0x100287180\ntest    eax, eax                                                       ; +0x95, 0x100287185\njz      short loc_1002871BF                                            ; +0x97, 0x100287187\nxor     r14d, r14d                                                     ; +0x99, 0x100287189\nnop     dword ptr [rax+00h]                                            ; +0x9c, 0x10028718c\nmov     rdi, [rbx+288h]                                                ; +0xa0, 0x100287190\nmov     esi, r14d                                                      ; +0xa7, 0x100287197\ncall    sub_1007200C0                                                  ; +0xaa, 0x10028719a\nmov     ecx, [rbx+298h]                                                ; +0xaf, 0x10028719f\nmov     [rax+690h], ecx                                                ; +0xb5, 0x1002871a5\ninc     r14d                                                           ; +0xbb, 0x1002871ab\nmov     rdi, [rbx+288h]                                                ; +0xbe, 0x1002871ae\ncall    sub_100720070                                                  ; +0xc5, 0x1002871b5\ncmp     r14d, eax                                                      ; +0xca, 0x1002871ba\njb      short loc_100287190                                            ; +0xcd, 0x1002871bd\ncmp     qword ptr [rbx+280h], 0                                        ; +0xcf, 0x1002871bf\njz      short loc_100287229                                            ; +0xd7, 0x1002871c7\ncall    sub_10071F9E0                                                  ; +0xd9, 0x1002871c9\nmov     r14, rax                                                       ; +0xde, 0x1002871ce\nmov     rsi, [rbx+280h]                                                ; +0xe1, 0x1002871d1\nmov     rdi, rax                                                       ; +0xe8, 0x1002871d8\ncall    sub_10071FCD0                                                  ; +0xeb, 0x1002871db\ntest    r14, r14                                                       ; +0xf0, 0x1002871e0\njz      short loc_100287220                                            ; +0xf3, 0x1002871e3\nmov     rdi, r14                                                       ; +0xf5, 0x1002871e5\ncall    sub_100720070                                                  ; +0xf8, 0x1002871e8\ntest    eax, eax                                                       ; +0xfd, 0x1002871ed\njz      short loc_100287220                                            ; +0xff, 0x1002871ef\nxor     ebx, ebx                                                       ; +0x101, 0x1002871f1\nnop     word ptr [rax+rax+00000000h]                                   ; +0x103, 0x1002871f3\nmov     rdi, r14                                                       ; +0x110, 0x100287200\nmov     esi, ebx                                                       ; +0x113, 0x100287203\ncall    sub_1007200C0                                                  ; +0x115, 0x100287205\nmov     rdi, rax                                                       ; +0x11a, 0x10028720a\ncall    LevelEditorLayer__updateObjectLabel                            ; +0x11d, 0x10028720d\ninc     ebx                                                            ; +0x122, 0x100287212\nmov     rdi, r14                                                       ; +0x124, 0x100287214\ncall    sub_100720070                                                  ; +0x127, 0x100287217\ncmp     ebx, eax                                                       ; +0x12c, 0x10028721c\njb      short loc_100287200                                            ; +0x12e, 0x10028721e\nadd     rsp, 20h                                                       ; +0x130, 0x100287220\npop     rbx                                                            ; +0x134, 0x100287224\npop     r14                                                            ; +0x135, 0x100287225\npop     rbp                                                            ; +0x137, 0x100287227\nretn                                                                   ; +0x138, 0x100287228\nmov     r14, [rbx+288h]                                                ; +0x139, 0x100287229\ntest    r14, r14                                                       ; +0x140, 0x100287230\njnz     short loc_1002871E5                                            ; +0x143, 0x100287233\njmp     short loc_100287220                                            ; +0x145, 0x100287235", "xrefs": ["sub_100287240 @ 0x10028724c", "<???> @ 0x1008f3350"], "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"}