{"type": "func", "start": 5370899328, "end": 5370899538, "name": "FriendsProfilePage::onClearSearch", "pseudocode": "// \n// FriendsProfilePage::onClearSearch from 0x140216b80 to 0x140216c52 (210 bytes)\n// \n// 4 xrefs:\n// > FriendsProfilePage::init @ 0x140213eec\n// > <???> @ 0x1408a55f8\n// > <???> @ 0x1408a5608\n// > <???> @ 0x14091b764\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 11:28:21 +0000\n// \n\nvoid __fastcall FriendsProfilePage::onClearSearch(__int64 a1)\n{\n  _QWORD *v2; // rcx\n  cocos2d::CCObject *v3; // rcx\n  __int64 v4; // rcx\n  __int128 v5; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v6; // [rsp+30h] [rbp-18h]\n  __int64 v7; // [rsp+38h] [rbp-10h]\n\n  v2 = *(_QWORD **)(a1 + 920);\n  if ( v2 )\n  {\n    v6 = 0;\n    v5 = 0;\n    LOBYTE(v5) = 0;\n    v7 = 15;\n    CCTextInputNode::setString(v2, &v5);\n  }\n  if ( *(_BYTE *)(a1 + 928) || *(_QWORD *)(a1 + 896) )\n  {\n    v3 = *(cocos2d::CCObject **)(a1 + 872);\n    *(_BYTE *)(a1 + 928) = 0;\n    if ( v3 )\n    {\n      cocos2d::CCObject::release(v3);\n      *(_QWORD *)(a1 + 872) = 0;\n    }\n    v4 = *(_QWORD *)(a1 + 760);\n    if ( v4 )\n    {\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 512LL))(v4);\n      *(_QWORD *)(a1 + 760) = 0;\n    }\n    sub_1400405A0((void **)(a1 + 880), &byte_1406ED6E0, 0);\n    FriendsProfilePage::filterUsersWithQuery(a1);\n    FriendsProfilePage::updateCountLabel(a1);\n  }\n}", "assembly": "; \n; FriendsProfilePage::onClearSearch from 0x140216b80 to 0x140216c52 (210 bytes)\n; \n; 4 xrefs:\n; > FriendsProfilePage::init @ 0x140213eec\n; > <???> @ 0x1408a55f8\n; > <???> @ 0x1408a5608\n; > <???> @ 0x14091b764\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 11:28:21 +0000\n; \npush    rbx                                                            ; +0x0, 0x140216b80\nsub     rsp, 40h                                                       ; +0x2, 0x140216b82\nmov     rbx, rcx                                                       ; +0x6, 0x140216b86\nmov     rcx, [rcx+398h]                                                ; +0x9, 0x140216b89\ntest    rcx, rcx                                                       ; +0x10, 0x140216b90\njz      short loc_140216BBE                                            ; +0x13, 0x140216b93\nxorps   xmm0, xmm0                                                     ; +0x15, 0x140216b95\nmov     [rsp+48h+var_18], 0                                            ; +0x18, 0x140216b98\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x21, 0x140216ba1\nlea     rdx, [rsp+48h+var_28]                                          ; +0x26, 0x140216ba6\nmov     byte ptr [rsp+48h+var_28], 0                                   ; +0x2b, 0x140216bab\nmov     [rsp+48h+var_10], 0Fh                                          ; +0x30, 0x140216bb0\ncall    CCTextInputNode__setString                                     ; +0x39, 0x140216bb9\ncmp     byte ptr [rbx+3A0h], 0                                         ; +0x3e, 0x140216bbe\njnz     short loc_140216BD1                                            ; +0x45, 0x140216bc5\ncmp     qword ptr [rbx+380h], 0                                        ; +0x47, 0x140216bc7\njz      short loc_140216C4C                                            ; +0x4f, 0x140216bcf\nmov     rcx, [rbx+368h]                                                ; +0x51, 0x140216bd1\nmov     [rsp+48h+arg_8], rdi                                           ; +0x58, 0x140216bd8\nmov     byte ptr [rbx+3A0h], 0                                         ; +0x5d, 0x140216bdd\ntest    rcx, rcx                                                       ; +0x64, 0x140216be4\njz      short loc_140216BFA                                            ; +0x67, 0x140216be7\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x69, 0x140216be9\nmov     qword ptr [rbx+368h], 0                                        ; +0x6f, 0x140216bef\nmov     rcx, [rbx+2F8h]                                                ; +0x7a, 0x140216bfa\ntest    rcx, rcx                                                       ; +0x81, 0x140216c01\njz      short loc_140216C1A                                            ; +0x84, 0x140216c04\nmov     rax, [rcx]                                                     ; +0x86, 0x140216c06\ncall    qword ptr [rax+200h]                                           ; +0x89, 0x140216c09\nmov     qword ptr [rbx+2F8h], 0                                        ; +0x8f, 0x140216c0f\nxor     r8d, r8d; Size                                                 ; +0x9a, 0x140216c1a\nlea     rdx, byte_1406ED6E0; Src                                       ; +0x9d, 0x140216c1d\nlea     rcx, [rbx+370h]; void *                                        ; +0xa4, 0x140216c24\ncall    sub_1400405A0                                                  ; +0xab, 0x140216c2b\nlea     rdx, [rbx+370h]                                                ; +0xb0, 0x140216c30\nmov     rcx, rbx                                                       ; +0xb7, 0x140216c37\ncall    FriendsProfilePage__filterUsersWithQuery                       ; +0xba, 0x140216c3a\nmov     rcx, rbx                                                       ; +0xbf, 0x140216c3f\ncall    FriendsProfilePage__updateCountLabel                           ; +0xc2, 0x140216c42\nmov     rdi, [rsp+48h+arg_8]                                           ; +0xc7, 0x140216c47\nadd     rsp, 40h                                                       ; +0xcc, 0x140216c4c\npop     rbx                                                            ; +0xd0, 0x140216c50\nretn                                                                   ; +0xd1, 0x140216c51", "xrefs": ["FriendsProfilePage::init @ 0x140213eec", "<???> @ 0x1408a55f8", "<???> @ 0x1408a5608", "<???> @ 0x14091b764"], "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"}