{"type": "func", "start": 4304399728, "end": 4304399975, "name": "EditorSoundsLayer::textChanged", "pseudocode": "// \n// EditorSoundsLayer::textChanged from 0x1008fed70 to 0x1008fee67 (247 bytes)\n// \n// 2 xrefs:\n// > sub_1008FEE90 @ 0x1008fee9c\n// > <???> @ 0x100bb7bb0\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:38:01 +0000\n// \n\nvoid __fastcall EditorSoundsLayer::textChanged(__int64 a1, __int64 a2)\n{\n  __int64 v3; // rsi\n  char v5; // r14\n  size_t size; // rdx\n  unsigned int v7; // eax\n  std::string::pointer data; // rdi\n  std::string __str; // [rsp+8h] [rbp-28h] BYREF\n\n  v3 = *(_QWORD *)(a1 + 1096);\n  if ( v3 == a2 )\n  {\n    CCTextInputNode::getString(&__str, v3);\n    v5 = *(_BYTE *)&__str.__r_.__value_.__s.0 & 1;\n    if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )\n    {\n      size = __str.__r_.__value_.__l.__size_;\n      v7 = *(unsigned __int8 *)(a1 + 1120);\n      if ( (v7 & 1) == 0 )\n        goto LABEL_4;\n    }\n    else\n    {\n      size = *(_BYTE *)&__str.__r_.__value_.__l.0 >> 1;\n      v7 = *(unsigned __int8 *)(a1 + 1120);\n      if ( (v7 & 1) == 0 )\n      {\nLABEL_4:\n        if ( size != v7 >> 1 )\n          goto LABEL_14;\n        goto LABEL_8;\n      }\n    }\n    if ( size != *(_QWORD *)(a1 + 1128) )\n      goto LABEL_14;\nLABEL_8:\n    if ( v5 )\n    {\n      data = __str.__r_.__value_.__l.__data_;\n      if ( (v7 & 1) == 0 )\n        goto LABEL_10;\n    }\n    else\n    {\n      data = __str.__r_.__value_.__s.__data_;\n      if ( (v7 & 1) == 0 )\n      {\nLABEL_10:\n        if ( !memcmp(data, (const void *)(a1 + 1121), size) )\n        {\nLABEL_17:\n          if ( v5 )\n            operator delete(__str.__r_.__value_.__l.__data_);\n          return;\n        }\nLABEL_14:\n        std::string::operator=((std::string *)(a1 + 1120), &__str);\n        if ( *(_QWORD *)(a1 + 1152) )\n          ScrollableContentLayer::scrollTo(0.0);\n        (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1504LL))(a1, *(unsigned int *)(a1 + 1144));\n        v5 = *(_BYTE *)&__str.__r_.__value_.__s.0 & 1;\n        goto LABEL_17;\n      }\n    }\n    if ( !memcmp(data, *(const void **)(a1 + 1136), size) )\n      goto LABEL_17;\n    goto LABEL_14;\n  }\n}", "assembly": "; \n; EditorSoundsLayer::textChanged from 0x1008fed70 to 0x1008fee67 (247 bytes)\n; \n; 2 xrefs:\n; > sub_1008FEE90 @ 0x1008fee9c\n; > <???> @ 0x100bb7bb0\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:38:01 +0000\n; \npush    rbp                                                            ; +0x0, 0x1008fed70\nmov     rbp, rsp                                                       ; +0x1, 0x1008fed71\npush    r14                                                            ; +0x4, 0x1008fed74\npush    rbx                                                            ; +0x6, 0x1008fed76\nsub     rsp, 20h                                                       ; +0x7, 0x1008fed77\nmov     rax, rsi                                                       ; +0xb, 0x1008fed7b\nmov     rsi, [rdi+448h]                                                ; +0xe, 0x1008fed7e\ncmp     rsi, rax                                                       ; +0x15, 0x1008fed85\njnz     loc_1008FEE5E                                                  ; +0x18, 0x1008fed88\nmov     rbx, rdi                                                       ; +0x1e, 0x1008fed8e\nlea     rdi, [rbp+__str]                                               ; +0x21, 0x1008fed91\ncall    CCTextInputNode__getString                                     ; +0x25, 0x1008fed95\nmovzx   edx, byte ptr [rbp+__str.__r_.__value_]                        ; +0x2a, 0x1008fed9a\nmov     r14d, edx                                                      ; +0x2e, 0x1008fed9e\nand     r14b, 1                                                        ; +0x31, 0x1008feda1\njz      short loc_1008FEDC1                                            ; +0x35, 0x1008feda5\nmov     rdx, qword ptr [rbp+__str.__r_.__value_+8]                     ; +0x37, 0x1008feda7\nmovzx   eax, byte ptr [rbx+460h]                                       ; +0x3b, 0x1008fedab\ntest    al, 1                                                          ; +0x42, 0x1008fedb2\njnz     short loc_1008FEDCE                                            ; +0x44, 0x1008fedb4\nmov     ecx, eax                                                       ; +0x46, 0x1008fedb6\nshr     ecx, 1                                                         ; +0x48, 0x1008fedb8\ncmp     rdx, rcx                                                       ; +0x4a, 0x1008fedba\njz      short loc_1008FEDDA                                            ; +0x4d, 0x1008fedbd\njmp     short loc_1008FEE11                                            ; +0x4f, 0x1008fedbf\nshr     edx, 1; __n                                                    ; +0x51, 0x1008fedc1\nmovzx   eax, byte ptr [rbx+460h]                                       ; +0x53, 0x1008fedc3\ntest    al, 1                                                          ; +0x5a, 0x1008fedca\njz      short loc_1008FEDB6                                            ; +0x5c, 0x1008fedcc\nmov     rcx, [rbx+468h]                                                ; +0x5e, 0x1008fedce\ncmp     rdx, rcx                                                       ; +0x65, 0x1008fedd5\njnz     short loc_1008FEE11                                            ; +0x68, 0x1008fedd8\ntest    r14b, r14b                                                     ; +0x6a, 0x1008fedda\njz      short loc_1008FEDF9                                            ; +0x6d, 0x1008feddd\nmov     rdi, qword ptr [rbp+__str.__r_.__value_+10h]; __s1             ; +0x6f, 0x1008feddf\ntest    al, 1                                                          ; +0x73, 0x1008fede3\njnz     short loc_1008FEE01                                            ; +0x75, 0x1008fede5\nlea     rsi, [rbx+461h]; __s2                                          ; +0x77, 0x1008fede7\ncall    _memcmp                                                        ; +0x7e, 0x1008fedee\ntest    eax, eax                                                       ; +0x83, 0x1008fedf3\njnz     short loc_1008FEE11                                            ; +0x85, 0x1008fedf5\njmp     short loc_1008FEE50                                            ; +0x87, 0x1008fedf7\nlea     rdi, [rbp+__str.__r_.__value_+1]; __s1                         ; +0x89, 0x1008fedf9\ntest    al, 1                                                          ; +0x8d, 0x1008fedfd\njz      short loc_1008FEDE7                                            ; +0x8f, 0x1008fedff\nmov     rsi, [rbx+470h]; __s2                                          ; +0x91, 0x1008fee01\ncall    _memcmp                                                        ; +0x98, 0x1008fee08\ntest    eax, eax                                                       ; +0x9d, 0x1008fee0d\njz      short loc_1008FEE50                                            ; +0x9f, 0x1008fee0f\nlea     rdi, [rbx+460h]; this                                          ; +0xa1, 0x1008fee11\nlea     rsi, [rbp+__str]; __str                                        ; +0xa8, 0x1008fee18\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0xac, 0x1008fee1c\nmov     rdi, [rbx+480h]                                                ; +0xb1, 0x1008fee21\ntest    rdi, rdi                                                       ; +0xb8, 0x1008fee28\njz      short loc_1008FEE35                                            ; +0xbb, 0x1008fee2b\nxorps   xmm0, xmm0                                                     ; +0xbd, 0x1008fee2d\ncall    ScrollableContentLayer__scrollTo                               ; +0xc0, 0x1008fee30\nmov     esi, [rbx+478h]                                                ; +0xc5, 0x1008fee35\nmov     rax, [rbx]                                                     ; +0xcb, 0x1008fee3b\nmov     rdi, rbx                                                       ; +0xce, 0x1008fee3e\ncall    qword ptr [rax+5E0h]                                           ; +0xd1, 0x1008fee41\nmovzx   r14d, byte ptr [rbp+__str.__r_.__value_]                       ; +0xd7, 0x1008fee47\nand     r14b, 1                                                        ; +0xdc, 0x1008fee4c\ntest    r14b, r14b                                                     ; +0xe0, 0x1008fee50\njz      short loc_1008FEE5E                                            ; +0xe3, 0x1008fee53\nmov     rdi, qword ptr [rbp+__str.__r_.__value_+10h]; __p              ; +0xe5, 0x1008fee55\ncall    __ZdlPv; operator delete(void *)                               ; +0xe9, 0x1008fee59\nadd     rsp, 20h                                                       ; +0xee, 0x1008fee5e\npop     rbx                                                            ; +0xf2, 0x1008fee62\npop     r14                                                            ; +0xf3, 0x1008fee63\npop     rbp                                                            ; +0xf5, 0x1008fee65\nretn                                                                   ; +0xf6, 0x1008fee66", "xrefs": ["sub_1008FEE90 @ 0x1008fee9c", "<???> @ 0x100bb7bb0"], "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"}