{"type": "func", "start": 7910468, "end": 7910666, "name": "EditorSoundsLayer::textChanged", "pseudocode": "// \n// EditorSoundsLayer::textChanged from 0x78b444 to 0x78b50a (198 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'EditorSoundsLayer::textChanged @ 0x78b514\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:59:36 +0000\n// \n\nint __fastcall EditorSoundsLayer::textChanged(int this, CCTextInputNode *a2)\n{\n  int v2; // r4\n  int v3; // r3\n  int v4; // r7\n  size_t v5; // r2\n  int v6; // r1\n  int v7; // r3\n  char *v8; // r0\n  unsigned __int8 *v9; // r1\n  char *v10; // r0\n  unsigned __int8 *v11; // r2\n  int v12; // t1\n  ScrollableContentLayer *v13; // r0\n  unsigned __int8 v14; // [sp+0h] [bp-14h] BYREF\n  char v15; // [sp+1h] [bp-13h] BYREF\n  size_t v16; // [sp+4h] [bp-10h]\n  char *v17; // [sp+8h] [bp-Ch]\n\n  v2 = this;\n  if ( *(CCTextInputNode **)(this + 756) == a2 )\n  {\n    CCTextInputNode::getString((CCTextInputNode *)&v14, (int)a2);\n    v3 = *(unsigned __int8 *)(v2 + 768);\n    v4 = v14 & 1;\n    if ( v4 )\n      v5 = v16;\n    else\n      v5 = (int)v14 >> 1;\n    v6 = v3 & 1;\n    if ( (v3 & 1) != 0 )\n      v7 = *(_DWORD *)(v2 + 772);\n    else\n      v7 = v3 >> 1;\n    if ( v5 != v7 )\n      goto LABEL_24;\n    if ( v4 )\n      v8 = v17;\n    else\n      v8 = &v15;\n    if ( v6 )\n      v9 = *(unsigned __int8 **)(v2 + 776);\n    else\n      v9 = (unsigned __int8 *)(v2 + 769);\n    if ( !v4 )\n    {\n      v10 = v8 - 1;\n      v11 = &v9[v5];\n      while ( v9 != v11 )\n      {\n        v12 = (unsigned __int8)*++v10;\n        if ( v12 != *v9 )\n          goto LABEL_24;\n        ++v9;\n      }\n      return std::string::~string((int)&v14);\n    }\n    if ( v5 && memcmp(v8, v9, v5) )\n    {\nLABEL_24:\n      std::string::operator=((unsigned __int8 *)(v2 + 768), &v14);\n      v13 = *(ScrollableContentLayer **)(v2 + 784);\n      if ( v13 )\n        ScrollableContentLayer::scrollTo(v13, 0.0);\n      (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v2 + 752))(v2, *(_DWORD *)(v2 + 780));\n    }\n    return std::string::~string((int)&v14);\n  }\n  return this;\n}", "assembly": "; \n; EditorSoundsLayer::textChanged from 0x78b444 to 0x78b50a (198 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'EditorSoundsLayer::textChanged @ 0x78b514\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:59:36 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x78b444\nSUB             SP, SP, #0x14                                          ; +0x2, 0x78b446\nLDR             R5, =(__stack_chk_guard_ptr - 0x78B450)                ; +0x4, 0x78b448\nMOV             R4, R0                                                 ; +0x6, 0x78b44a\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x8, 0x78b44c\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xa, 0x78b44e\nLDR             R3, [R5]                                               ; +0xc, 0x78b450\nSTR             R3, [SP,#0x14+var_8]                                   ; +0xe, 0x78b452\nLDR.W           R3, [R0,#0x2F4]                                        ; +0x10, 0x78b454\nCMP             R3, R1                                                 ; +0x14, 0x78b458\nBNE             loc_78B4FA                                             ; +0x16, 0x78b45a\nMOV             R0, SP; this                                           ; +0x18, 0x78b45c\nMOV             R6, SP                                                 ; +0x1a, 0x78b45e\nBL              _ZN15CCTextInputNode9getStringEv; CCTextInputNode::getString(void) ; +0x1c, 0x78b460\nLDRB.W          R2, [SP,#0x14+var_14]                                  ; +0x20, 0x78b464\nLDRB.W          R3, [R4,#0x300]                                        ; +0x24, 0x78b468\nANDS.W          R7, R2, #1                                             ; +0x28, 0x78b46c\nITE EQ                                                                 ; +0x2c, 0x78b470\nASREQ           R2, R2, #1                                             ; +0x2e, 0x78b472\nLDRNE           R2, [SP,#0x14+var_10]; size_t                          ; +0x30, 0x78b474\nANDS.W          R1, R3, #1                                             ; +0x32, 0x78b476\nITE EQ                                                                 ; +0x36, 0x78b47a\nASREQ           R3, R3, #1                                             ; +0x38, 0x78b47c\nLDRNE.W         R3, [R4,#0x304]                                        ; +0x3a, 0x78b47e\nCMP             R2, R3                                                 ; +0x3e, 0x78b482\nBNE             loc_78B4C0                                             ; +0x40, 0x78b484\nCBZ             R7, loc_78B48C                                         ; +0x42, 0x78b486\nLDR             R0, [SP,#0x14+var_C]                                   ; +0x44, 0x78b488\nB               loc_78B490                                             ; +0x46, 0x78b48a\nADD.W           R0, SP, #0x14+var_13; void *                           ; +0x48, 0x78b48c\nCBZ             R1, loc_78B498                                         ; +0x4c, 0x78b490\nLDR.W           R1, [R4,#0x308]                                        ; +0x4e, 0x78b492\nB               loc_78B49C                                             ; +0x52, 0x78b496\nADDW            R1, R4, #0x301; void *                                 ; +0x54, 0x78b498\nCBNZ            R7, loc_78B4A4                                         ; +0x58, 0x78b49c\nSUBS            R0, #1                                                 ; +0x5a, 0x78b49e\nADD             R2, R1                                                 ; +0x5c, 0x78b4a0\nB               loc_78B4BA                                             ; +0x5e, 0x78b4a2\nCBZ             R2, loc_78B4E8                                         ; +0x60, 0x78b4a4\nBLX             memcmp                                                 ; +0x62, 0x78b4a6\nCBZ             R0, loc_78B4E8                                         ; +0x66, 0x78b4aa\nB               loc_78B4C0                                             ; +0x68, 0x78b4ac\nLDRB.W          R7, [R0,#1]!                                           ; +0x6a, 0x78b4ae\nLDRB            R3, [R1]                                               ; +0x6e, 0x78b4b2\nCMP             R7, R3                                                 ; +0x70, 0x78b4b4\nBNE             loc_78B4C0                                             ; +0x72, 0x78b4b6\nADDS            R1, #1                                                 ; +0x74, 0x78b4b8\nCMP             R1, R2                                                 ; +0x76, 0x78b4ba\nBNE             loc_78B4AE                                             ; +0x78, 0x78b4bc\nB               loc_78B4E8                                             ; +0x7a, 0x78b4be\nADD.W           R0, R4, #0x300                                         ; +0x7c, 0x78b4c0\nMOV             R1, R6                                                 ; +0x80, 0x78b4c4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x82, 0x78b4c6\nLDR.W           R0, [R4,#0x310]; this                                  ; +0x86, 0x78b4ca\nCBNZ            R0, loc_78B4E0                                         ; +0x8a, 0x78b4ce\nLDR             R3, [R4]                                               ; +0x8c, 0x78b4d0\nMOV             R0, R4                                                 ; +0x8e, 0x78b4d2\nLDR.W           R1, [R4,#0x30C]                                        ; +0x90, 0x78b4d4\nLDR.W           R3, [R3,#0x2F0]                                        ; +0x94, 0x78b4d8\nBLX             R3                                                     ; +0x98, 0x78b4dc\nB               loc_78B4E8                                             ; +0x9a, 0x78b4de\nMOVS            R1, #0; float                                          ; +0x9c, 0x78b4e0\nBL              _ZN22ScrollableContentLayer8scrollToEf; ScrollableContentLayer::scrollTo(float) ; +0x9e, 0x78b4e2\nB               loc_78B4D0                                             ; +0xa2, 0x78b4e6\nMOV             R0, R6                                                 ; +0xa4, 0x78b4e8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xa6, 0x78b4ea\nB               loc_78B4FA                                             ; +0xaa, 0x78b4ee\nMOV             R0, R6                                                 ; +0xac, 0x78b4f0\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xae, 0x78b4f2\nBL              __cxa_end_cleanup                                      ; +0xb2, 0x78b4f6\nLDR             R2, [SP,#0x14+var_8]                                   ; +0xb6, 0x78b4fa\nLDR             R3, [R5]                                               ; +0xb8, 0x78b4fc\nCMP             R2, R3                                                 ; +0xba, 0x78b4fe\nBEQ             loc_78B506                                             ; +0xbc, 0x78b500\nBLX             __stack_chk_fail                                       ; +0xbe, 0x78b502\nADD             SP, SP, #0x14                                          ; +0xc2, 0x78b506\nPOP             {R4-R7,PC}                                             ; +0xc4, 0x78b508", "xrefs": ["`non-virtual thunk to'EditorSoundsLayer::textChanged @ 0x78b514"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}