{"type": "func", "start": 13458652, "end": 13458792, "name": "EditorSoundsLayer::onClearSearch", "pseudocode": "// \n// EditorSoundsLayer::onClearSearch from 0xcd5cdc to 0xcd5d68 (140 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x100048\n// > EditorSoundsLayer::init @ 0xcd703c\n// > <???> @ 0x1547d08\n// \n// This function is hookable on this platform (idp: arm, 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 13:06:30 +0000\n// \n\n__int64 __fastcall EditorSoundsLayer::onClearSearch(EditorSoundsLayer *this, cocos2d::CCObject *a2)\n{\n  _QWORD *v2; // x0\n  _QWORD v4[2]; // [xsp+20h] [xbp+20h] BYREF\n  void *v5; // [xsp+30h] [xbp+30h]\n\n  v2 = *((_QWORD **)this + 137);\n  if ( v2 )\n  {\n    v4[0] = 0;\n    v4[1] = 0;\n    v5 = nullptr;\n    CCTextInputNode::setString(v2, (char *)v4);\n    if ( (v4[0] & 1) != 0 )\n      operator delete(v5);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorSoundsLayer::onClearSearch from 0xcd5cdc to 0xcd5d68 (140 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x100048\n; > EditorSoundsLayer::init @ 0xcd703c\n; > <???> @ 0x1547d08\n; \n; This function is hookable on this platform (idp: arm, 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 13:06:30 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0xcd5cdc\nMOV             X29, SP                                                ; +0x4, 0xcd5ce0\nSTR             X19, [SP,#0x40+var_30]                                 ; +0x8, 0xcd5ce4\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xcd5ce8\nLDR             X0, [X0,#0x448]                                        ; +0x10, 0xcd5cec\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x14, 0xcd5cf0\nLDR             X1, [X1]                                               ; +0x18, 0xcd5cf4\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x1c, 0xcd5cf8\nCBZ             X0, loc_CD5D1C                                         ; +0x20, 0xcd5cfc\nADD             X1, X29, #0x40+var_20                                  ; +0x24, 0xcd5d00\nSTR             XZR, [X29,#0x40+var_20]                                ; +0x28, 0xcd5d04\nSTR             XZR, [X29,#0x40+var_18]                                ; +0x2c, 0xcd5d08\nSTR             XZR, [X29,#0x40+var_10]                                ; +0x30, 0xcd5d0c\nBL              _ZN15CCTextInputNode9setStringENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCTextInputNode::setString(std::string) ; +0x34, 0xcd5d10\nLDRB            W0, [X29,#0x40+var_20]                                 ; +0x38, 0xcd5d14\nTBNZ            W0, #0, loc_CD5D3C                                     ; +0x3c, 0xcd5d18\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x40, 0xcd5d1c\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x44, 0xcd5d20\nLDR             X0, [X19]                                              ; +0x48, 0xcd5d24\nCMP             X1, X0                                                 ; +0x4c, 0xcd5d28\nB.NE            loc_CD5D48                                             ; +0x50, 0xcd5d2c\nLDR             X19, [SP,#0x40+var_30]                                 ; +0x54, 0xcd5d30\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x58, 0xcd5d34\nRET                                                                    ; +0x5c, 0xcd5d38\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0x60, 0xcd5d3c\nBL              _ZdlPv; operator delete(void *)                        ; +0x64, 0xcd5d40\nB               loc_CD5D1C                                             ; +0x68, 0xcd5d44\nBL              .__stack_chk_fail                                      ; +0x6c, 0xcd5d48\nLDRB            W1, [X29,#0x40+var_20]                                 ; +0x70, 0xcd5d4c\nMOV             X19, X0                                                ; +0x74, 0xcd5d50\nTBZ             W1, #0, loc_CD5D60                                     ; +0x78, 0xcd5d54\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0x7c, 0xcd5d58\nBL              _ZdlPv; operator delete(void *)                        ; +0x80, 0xcd5d5c\nMOV             X0, X19                                                ; +0x84, 0xcd5d60\nBL              _Unwind_Resume                                         ; +0x88, 0xcd5d64", "xrefs": ["<???> @ 0x100048", "EditorSoundsLayer::init @ 0xcd703c", "<???> @ 0x1547d08"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}