{"type": "func", "start": 7906212, "end": 7906294, "name": "EditorSoundsLayer::onClearSearch", "pseudocode": "// \n// EditorSoundsLayer::onClearSearch from 0x78a3a4 to 0x78a3f6 (82 bytes)\n// \n// 0 xrefs:\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::onClearSearch(int this, cocos2d::CCObject *a2, int a3, int a4)\n{\n  int v4; // r6\n  int v5; // [sp+0h] [bp-10h] BYREF\n  cocos2d::CCObject *v6; // [sp+4h] [bp-Ch]\n  int v7; // [sp+8h] [bp-8h]\n  int v8; // [sp+Ch] [bp-4h]\n\n  v5 = this;\n  v6 = a2;\n  v7 = a3;\n  v8 = a4;\n  v4 = *(_DWORD *)(this + 756);\n  if ( v4 )\n  {\n    v5 = 0;\n    v6 = nullptr;\n    v7 = 0;\n    std::string::__init(&v5, &unk_B6B226, 0);\n    CCTextInputNode::setString(v4, (int)&v5);\n    return std::string::~string((int)&v5);\n  }\n  return this;\n}", "assembly": "; \n; EditorSoundsLayer::onClearSearch from 0x78a3a4 to 0x78a3f6 (82 bytes)\n; \n; 0 xrefs:\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            {R0-R6,LR}                                             ; +0x0, 0x78a3a4\nLDR             R3, =(__stack_chk_guard_ptr - 0x78A3B0)                ; +0x2, 0x78a3a6\nLDR.W           R6, [R0,#0x2F4]                                        ; +0x4, 0x78a3a8\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x8, 0x78a3ac\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xa, 0x78a3ae\nLDR             R2, [R3]                                               ; +0xc, 0x78a3b0\nMOV             R4, R3                                                 ; +0xe, 0x78a3b2\nSTR             R2, [SP,#0x10+var_4]                                   ; +0x10, 0x78a3b4\nCBZ             R6, loc_78A3E6                                         ; +0x12, 0x78a3b6\nLDR             R1, =(unk_B6B226 - 0x78A3C4)                           ; +0x14, 0x78a3b8\nMOVS            R2, #0                                                 ; +0x16, 0x78a3ba\nMOV             R0, SP                                                 ; +0x18, 0x78a3bc\nSTR             R2, [SP,#0x10+var_10]                                  ; +0x1a, 0x78a3be\nADD             R1, PC; unk_B6B226                                     ; +0x1c, 0x78a3c0\nSTR             R2, [SP,#0x10+var_C]                                   ; +0x1e, 0x78a3c2\nSTR             R2, [SP,#0x10+var_8]                                   ; +0x20, 0x78a3c4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x22, 0x78a3c6\nMOV             R0, R6                                                 ; +0x26, 0x78a3ca\nMOV             R1, SP                                                 ; +0x28, 0x78a3cc\nMOV             R5, SP                                                 ; +0x2a, 0x78a3ce\nBL              _ZN15CCTextInputNode9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::setString(std::string) ; +0x2c, 0x78a3d0\nMOV             R0, SP                                                 ; +0x30, 0x78a3d4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x32, 0x78a3d6\nB               loc_78A3E6                                             ; +0x36, 0x78a3da\nMOV             R0, R5                                                 ; +0x38, 0x78a3dc\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x3a, 0x78a3de\nBL              __cxa_end_cleanup                                      ; +0x3e, 0x78a3e2\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x42, 0x78a3e6\nLDR             R3, [R4]                                               ; +0x44, 0x78a3e8\nCMP             R2, R3                                                 ; +0x46, 0x78a3ea\nBEQ             loc_78A3F2                                             ; +0x48, 0x78a3ec\nBLX             __stack_chk_fail                                       ; +0x4a, 0x78a3ee\nADD             SP, SP, #0x10                                          ; +0x4e, 0x78a3f2\nPOP             {R4-R6,PC}                                             ; +0x50, 0x78a3f4", "xrefs": [], "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"}