{"type": "func", "start": 4299785016, "end": 4299785120, "name": "LevelBrowserLayer::onClearSearch", "pseudocode": "// \n// LevelBrowserLayer::onClearSearch from 0x100498338 to 0x1004983a0 (104 bytes)\n// \n// 1 xrefs:\n// > LevelBrowserLayer::init @ 0x100496ac4\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 11:05:57 +0000\n// \n\n__int64 __fastcall LevelBrowserLayer::onClearSearch(__int64 result)\n{\n  __int64 v1; // x20\n  __int64 v2; // x19\n  __int64 v3; // x1\n  std::string __str; // [xsp+8h] [xbp-28h] BYREF\n\n  v1 = *(_QWORD *)(result + 664);\n  if ( v1 )\n  {\n    v2 = result;\n    sub_100009900(&__str, \"\");\n    std::string::operator=((std::string *)(v1 + 320), &__str);\n    if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )\n      operator delete(__str.__r_.__value_.__l.__data_);\n    v3 = *(_QWORD *)(v2 + 664);\n    *(_DWORD *)(v3 + 392) = 0;\n    return LevelBrowserLayer::loadPage(v2, v3);\n  }\n  return result;\n}", "assembly": "; \n; LevelBrowserLayer::onClearSearch from 0x100498338 to 0x1004983a0 (104 bytes)\n; \n; 1 xrefs:\n; > LevelBrowserLayer::init @ 0x100496ac4\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 11:05:57 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x100498338\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x10049833c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x100498340\nADD             X29, SP, #0x30                                         ; +0xc, 0x100498344\nLDR             X20, [X0,#0x298]                                       ; +0x10, 0x100498348\nCBZ             X20, loc_100498390                                     ; +0x14, 0x10049834c\nMOV             X19, X0                                                ; +0x18, 0x100498350\nADRL            X1, asc_10088BE68; \"\"                                  ; +0x1c, 0x100498354\nADD             X0, SP, #0x30+__str; int                               ; +0x24, 0x10049835c\nBL              sub_100009900                                          ; +0x28, 0x100498360\nADD             X0, X20, #0x140; this                                  ; +0x2c, 0x100498364\nADD             X1, SP, #0x30+__str; __str                             ; +0x30, 0x100498368\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x34, 0x10049836c\nLDRSB           W8, [SP,#0x30+__str.__r_.__value_+0x17]                ; +0x38, 0x100498370\nTBZ             W8, #0x1F, loc_100498380                               ; +0x3c, 0x100498374\nLDR             X0, [SP,#0x30+__str]; __p                              ; +0x40, 0x100498378\nBL              __ZdlPv; operator delete(void *)                       ; +0x44, 0x10049837c\nLDR             X1, [X19,#0x298]                                       ; +0x48, 0x100498380\nSTR             WZR, [X1,#0x188]                                       ; +0x4c, 0x100498384\nMOV             X0, X19                                                ; +0x50, 0x100498388\nBL              LevelBrowserLayer__loadPage                            ; +0x54, 0x10049838c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x58, 0x100498390\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x5c, 0x100498394\nADD             SP, SP, #0x40 ; '@'                                    ; +0x60, 0x100498398\nRET                                                                    ; +0x64, 0x10049839c", "xrefs": ["LevelBrowserLayer::init @ 0x100496ac4"], "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"}