{"type": "func", "start": 5370900384, "end": 5370900562, "name": "FriendsProfilePage::onSwitchList", "pseudocode": "// \n// FriendsProfilePage::onSwitchList from 0x140216fa0 to 0x140217052 (178 bytes)\n// \n// 4 xrefs:\n// > FriendsProfilePage::init @ 0x140213cb5\n// > <???> @ 0x1408a56b0\n// > <???> @ 0x1408a56c0\n// > <???> @ 0x14091b7a0\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\n__int64 __fastcall FriendsProfilePage::onSwitchList(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  __int64 v4; // rcx\n  unsigned int v5; // esi\n  __int64 v6; // rax\n  struct cocos2d::CCObject *v7; // rbx\n  cocos2d::CCTouchDispatcher *v8; // rax\n  __int64 v9; // rcx\n  __int64 v10; // rax\n  cocos2d::CCTouchDispatcher *v11; // rax\n  void *v12; // rax\n  __int64 v13; // rdx\n\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  v5 = result;\n  if ( (_DWORD)result != *(_DWORD *)(a1 + 816) )\n  {\n    v6 = cocos2d::CCDirector::sharedDirector(v4);\n    v7 = *(struct cocos2d::CCObject **)(a1 + 832);\n    v8 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 144LL))(v6);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v8, v7);\n    v10 = cocos2d::CCDirector::sharedDirector(v9);\n    v11 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 144LL))(v10);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v11, (struct cocos2d::CCObject *)a1);\n    v12 = FriendsProfilePage::create(v5);\n    (*(void (__fastcall **)(void *))(*(_QWORD *)v12 + 1064LL))(v12);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);\n    LOBYTE(v13) = 1;\n    return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 520LL))(a1, v13);\n  }\n  return result;\n}", "assembly": "; \n; FriendsProfilePage::onSwitchList from 0x140216fa0 to 0x140217052 (178 bytes)\n; \n; 4 xrefs:\n; > FriendsProfilePage::init @ 0x140213cb5\n; > <???> @ 0x1408a56b0\n; > <???> @ 0x1408a56c0\n; > <???> @ 0x14091b7a0\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; \nmov     [rsp+arg_8], rsi                                               ; +0x0, 0x140216fa0\npush    rdi                                                            ; +0x5, 0x140216fa5\nsub     rsp, 20h                                                       ; +0x6, 0x140216fa6\nmov     rax, [rdx]                                                     ; +0xa, 0x140216faa\nmov     rdi, rcx                                                       ; +0xd, 0x140216fad\nmov     rcx, rdx                                                       ; +0x10, 0x140216fb0\ncall    qword ptr [rax+38h]                                            ; +0x13, 0x140216fb3\nmov     esi, eax                                                       ; +0x16, 0x140216fb6\ncmp     eax, [rdi+330h]                                                ; +0x18, 0x140216fb8\njz      loc_140217047                                                  ; +0x1e, 0x140216fbe\nmov     [rsp+28h+arg_0], rbx                                           ; +0x24, 0x140216fc4\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x29, 0x140216fc9\nmov     rbx, [rdi+340h]                                                ; +0x2f, 0x140216fcf\nmov     rcx, rax                                                       ; +0x36, 0x140216fd6\nmov     r8, [rax]                                                      ; +0x39, 0x140216fd9\ncall    qword ptr [r8+90h]                                             ; +0x3c, 0x140216fdc\nmov     rcx, rax                                                       ; +0x43, 0x140216fe3\nmov     rdx, rbx                                                       ; +0x46, 0x140216fe6\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x49, 0x140216fe9\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x4f, 0x140216fef\nmov     rcx, [rax]                                                     ; +0x55, 0x140216ff5\nmov     rdx, [rcx+90h]                                                 ; +0x58, 0x140216ff8\nmov     rcx, rax                                                       ; +0x5f, 0x140216fff\ncall    rdx                                                            ; +0x62, 0x140217002\nmov     rcx, rax                                                       ; +0x64, 0x140217004\nmov     rdx, rdi                                                       ; +0x67, 0x140217007\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x6a, 0x14021700a\nmov     ecx, esi                                                       ; +0x70, 0x140217010\ncall    FriendsProfilePage__create                                     ; +0x72, 0x140217012\nmov     rcx, [rax]                                                     ; +0x77, 0x140217017\nmov     rdx, [rcx+428h]                                                ; +0x7a, 0x14021701a\nmov     rcx, rax                                                       ; +0x81, 0x140217021\ncall    rdx                                                            ; +0x84, 0x140217024\nmov     rax, [rdi]                                                     ; +0x86, 0x140217026\nxor     edx, edx                                                       ; +0x89, 0x140217029\nmov     rcx, rdi                                                       ; +0x8b, 0x14021702b\ncall    qword ptr [rax+3E0h]                                           ; +0x8e, 0x14021702e\nmov     rax, [rdi]                                                     ; +0x94, 0x140217034\nmov     dl, 1                                                          ; +0x97, 0x140217037\nmov     rcx, rdi                                                       ; +0x99, 0x140217039\ncall    qword ptr [rax+208h]                                           ; +0x9c, 0x14021703c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa2, 0x140217042\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa7, 0x140217047\nadd     rsp, 20h                                                       ; +0xac, 0x14021704c\npop     rdi                                                            ; +0xb0, 0x140217050\nretn                                                                   ; +0xb1, 0x140217051", "xrefs": ["FriendsProfilePage::init @ 0x140213cb5", "<???> @ 0x1408a56b0", "<???> @ 0x1408a56c0", "<???> @ 0x14091b7a0"], "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"}