{"type": "func", "start": 5369280608, "end": 5369280844, "name": "CollisionBlockPopup::textChanged", "pseudocode": "// \n// CollisionBlockPopup::textChanged from 0x14008b860 to 0x14008b94c (236 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14053e698\n// > <???> @ 0x1406c6db0\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 CollisionBlockPopup::textChanged(CollisionBlockPopup *a1, CCTextInputNode *a2)\n{\n  const char *v3; // rax\n  size_t v4; // r8\n  const char *v5; // rcx\n  int v6; // eax\n  unsigned __int64 v7; // rdx\n  char *v8; // rcx\n  char *String[2]; // [rsp+28h] [rbp-30h] BYREF\n  __int128 v10; // [rsp+38h] [rbp-20h]\n\n  if ( !BYTE1(a1->m_uUnknown) )\n  {\n    v3 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol);\n    *(_OWORD *)String = 0;\n    v4 = -1;\n    v10 = 0;\n    do\n      ++v4;\n    while ( v3[v4] );\n    sub_14003A930(String, v3, v4);\n    v5 = (const char *)String;\n    if ( *((_QWORD *)&v10 + 1) > 0xFu )\n      v5 = String[0];\n    v6 = atoi(v5);\n    v7 = *((_QWORD *)&v10 + 1);\n    a1->m_uIndexInArray = v6;\n    if ( v7 > 0xF )\n    {\n      v8 = String[0];\n      if ( v7 + 1 >= 0x1000 )\n      {\n        v8 = *((char **)String[0] - 1);\n        if ( (unsigned __int64)(String[0] - v8 - 8) > 0x1F )\n          invalid_parameter_noinfo_noreturn();\n      }\n      j_j_free(v8);\n    }\n    CollisionBlockPopup::updateItemID((CollisionBlockPopup *)((char *)a1 - 632));\n    CollisionBlockPopup::updateEditorLabel((CollisionBlockPopup *)((char *)a1 - 632));\n  }\n}", "assembly": "; \n; CollisionBlockPopup::textChanged from 0x14008b860 to 0x14008b94c (236 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14053e698\n; > <???> @ 0x1406c6db0\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, 0x14008b860\nsub     rsp, 50h                                                       ; +0x2, 0x14008b862\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x14008b866\nxor     rax, rsp                                                       ; +0xd, 0x14008b86d\nmov     [rsp+58h+var_10], rax                                          ; +0x10, 0x14008b870\ncmp     byte ptr [rcx+25h], 0                                          ; +0x15, 0x14008b875\nmov     rbx, rcx                                                       ; +0x19, 0x14008b879\njnz     loc_14008B939                                                  ; +0x1c, 0x14008b87c\nmov     rcx, [rdx+228h]                                                ; +0x22, 0x14008b882\nadd     rcx, 258h                                                      ; +0x29, 0x14008b889\nmov     rax, [rcx]                                                     ; +0x30, 0x14008b890\ncall    qword ptr [rax+8]                                              ; +0x33, 0x14008b893\nxorps   xmm0, xmm0                                                     ; +0x36, 0x14008b896\nxorps   xmm1, xmm1                                                     ; +0x39, 0x14008b899\nmovups  xmmword ptr [rsp+58h+String], xmm0                             ; +0x3c, 0x14008b89c\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x41, 0x14008b8a1\nmovdqu  [rsp+58h+var_20], xmm1                                         ; +0x48, 0x14008b8a8\nxchg    ax, ax                                                         ; +0x4e, 0x14008b8ae\ninc     r8                                                             ; +0x50, 0x14008b8b0\ncmp     byte ptr [rax+r8], 0                                           ; +0x53, 0x14008b8b3\njnz     short loc_14008B8B0                                            ; +0x58, 0x14008b8b8\nmov     rdx, rax                                                       ; +0x5a, 0x14008b8ba\nlea     rcx, [rsp+58h+String]                                          ; +0x5d, 0x14008b8bd\ncall    sub_14003A930                                                  ; +0x62, 0x14008b8c2\ncmp     qword ptr [rsp+58h+var_20+8], 0Fh                              ; +0x67, 0x14008b8c7\nlea     rcx, [rsp+58h+String]                                          ; +0x6d, 0x14008b8cd\ncmova   rcx, [rsp+58h+String]; String                                  ; +0x72, 0x14008b8d2\ncall    cs:atoi                                                        ; +0x78, 0x14008b8d8\nmov     rdx, qword ptr [rsp+58h+var_20+8]                              ; +0x7e, 0x14008b8de\nmov     [rbx+20h], eax                                                 ; +0x83, 0x14008b8e3\ncmp     rdx, 0Fh                                                       ; +0x86, 0x14008b8e6\njbe     short loc_14008B921                                            ; +0x8a, 0x14008b8ea\nmov     rcx, [rsp+58h+String]; Block                                   ; +0x8c, 0x14008b8ec\ninc     rdx                                                            ; +0x91, 0x14008b8f1\nmov     rax, rcx                                                       ; +0x94, 0x14008b8f4\ncmp     rdx, 1000h                                                     ; +0x97, 0x14008b8f7\njb      short loc_14008B91C                                            ; +0x9e, 0x14008b8fe\nmov     rcx, [rcx-8]                                                   ; +0xa0, 0x14008b900\nadd     rdx, 27h ; '''                                                 ; +0xa4, 0x14008b904\nsub     rax, rcx                                                       ; +0xa8, 0x14008b908\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xab, 0x14008b90b\ncmp     rax, 1Fh                                                       ; +0xaf, 0x14008b90f\njbe     short loc_14008B91C                                            ; +0xb3, 0x14008b913\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xb5, 0x14008b915\nalign 4                                                                ; +0xbb, 0x14008b91b\ncall    j_j_free                                                       ; +0xbc, 0x14008b91c\nlea     rcx, [rbx-278h]                                                ; +0xc1, 0x14008b921\ncall    CollisionBlockPopup__updateItemID                              ; +0xc8, 0x14008b928\nlea     rcx, [rbx-278h]                                                ; +0xcd, 0x14008b92d\ncall    CollisionBlockPopup__updateEditorLabel                         ; +0xd4, 0x14008b934\nmov     rcx, [rsp+58h+var_10]                                          ; +0xd9, 0x14008b939\nxor     rcx, rsp; StackCookie                                          ; +0xde, 0x14008b93e\ncall    __security_check_cookie                                        ; +0xe1, 0x14008b941\nadd     rsp, 50h                                                       ; +0xe6, 0x14008b946\npop     rbx                                                            ; +0xea, 0x14008b94a\nretn                                                                   ; +0xeb, 0x14008b94b", "xrefs": ["<???> @ 0x14053e698", "<???> @ 0x1406c6db0"], "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"}