{"type": "func", "start": 4301620368, "end": 4301621005, "name": "FriendsProfilePage::setupUsersBrowser", "pseudocode": "// \n// FriendsProfilePage::setupUsersBrowser from 0x100658490 to 0x10065870d (637 bytes)\n// \n// 4 xrefs:\n// > FriendsProfilePage::init @ 0x1006582a4\n// > FriendsProfilePage::getUserListFinished @ 0x10065875f\n// > FriendsProfilePage::forceReloadList @ 0x1006589e8\n// > sub_100658A10 @ 0x100658a62\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall FriendsProfilePage::setupUsersBrowser(FriendsProfilePage *a1, cocos2d::CCArray *a2, UserListType a3)\n{\n  cocos2d::CCDirector *v5; // rax\n  cocos2d::CCTouchDispatcher *v6; // rax\n  BoomListType v7; // ecx\n  CustomListView *v8; // rdi\n  GJCommentListLayer *v9; // rax\n  GJCommentListLayer *m_listLayer; // r12\n  int v11; // eax\n  cocos2d::CCLabelBMFont *m_totalFriends; // r14\n  cocos2d::CCString *v13; // rax\n  const char *CString; // rax\n  GameManager *v15; // rax\n  int v16; // eax\n  unsigned int v17; // ebx\n  GameManager *v18; // rax\n  GameManager *v19; // rax\n  GameManager *v20; // rax\n  char v21; // [rsp+0h] [rbp-40h]\n  float v22[2]; // [rsp+4h] [rbp-3Ch] BYREF\n  float v23[2]; // [rsp+Ch] [rbp-34h] BYREF\n  UserListType v24; // [rsp+14h] [rbp-2Ch]\n\n  if ( a1->m_listLayer )\n  {\n    v5 = cocos2d::CCDirector::sharedDirector();\n    v6 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v5->getTouchDispatcher)(v5);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1->m_listLayer);\n    ((void (__fastcall *)(GJCommentListLayer *))a1->m_listLayer->removeMeAndCleanup)(a1->m_listLayer);\n    a1->m_listLayer = nullptr;\n  }\n  cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v23);\n  v24 = a3;\n  if ( a2 )\n  {\n    v7 = User2;\n    if ( !a3 )\n      v7 = User;\n    v8 = CustomListView::create(a2, nullptr, 196.0, 340.0, 0, v7, 0.0);\n  }\n  else\n  {\n    v8 = nullptr;\n  }\n  v9 = GJCommentListLayer::create(v8, nullptr, (cocos2d::ccColor4B)-12684609, 340.0, 196.0, 0);\n  a1->m_listLayer = v9;\n  ((void (__fastcall *)(cocos2d::CCLayer *, GJCommentListLayer *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v9);\n  m_listLayer = a1->m_listLayer;\n  sub_10028CBE0(v22, (float)(v23[0] + -340.0) * 0.5, (float)((float)((float)(v23[1] + -196.0) * 0.5) + -10.0) + 5.0);\n  ((void (__fastcall *)(GJCommentListLayer *, float *))m_listLayer->setPosition)(m_listLayer, v22);\n  if ( a2 == nullptr || v24 != 0 )\n  {\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const std::string::value_type *))a1->m_totalFriends->setString)(\n      a1->m_totalFriends,\n      \" \");\n    return;\n  }\n  v11 = sub_100720070(a2);\n  m_totalFriends = a1->m_totalFriends;\n  if ( v11 )\n  {\n    sub_100720070(a2);\n    v13 = (cocos2d::CCString *)sub_1007AB580(\"Total friends: %i\", v21);\n    CString = cocos2d::CCString::getCString(v13);\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))m_totalFriends->setString)(m_totalFriends, CString);\n    if ( !(unsigned int)sub_100720070(a2) )\n      return;\n  }\n  else\n  {\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const std::string::value_type *))m_totalFriends->setString)(\n      m_totalFriends,\n      \" \");\n    if ( !(unsigned int)sub_100720070(a2) )\n      return;\n  }\n  v15 = GameManager::sharedState();\n  GameManager::reportAchievementWithID(v15, \"geometry.ach.friends01\", 100, 0);\n  v16 = sub_100720070(a2);\n  if ( v16 >= 10 )\n  {\n    v17 = v16;\n    v18 = GameManager::sharedState();\n    GameManager::reportAchievementWithID(v18, \"geometry.ach.friends02\", 100, 0);\n    if ( v17 >= 0x19 )\n    {\n      v19 = GameManager::sharedState();\n      GameManager::reportAchievementWithID(v19, \"geometry.ach.friends03\", 100, 0);\n      if ( v17 >= 0x32 )\n      {\n        v20 = GameManager::sharedState();\n        GameManager::reportAchievementWithID(v20, \"geometry.ach.friends04\", 100, 0);\n      }\n    }\n  }\n}", "assembly": "; \n; FriendsProfilePage::setupUsersBrowser from 0x100658490 to 0x10065870d (637 bytes)\n; \n; 4 xrefs:\n; > FriendsProfilePage::init @ 0x1006582a4\n; > FriendsProfilePage::getUserListFinished @ 0x10065875f\n; > FriendsProfilePage::forceReloadList @ 0x1006589e8\n; > sub_100658A10 @ 0x100658a62\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x100658490\nmov     rbp, rsp                                                       ; +0x1, 0x100658491\npush    r15                                                            ; +0x4, 0x100658494\npush    r14                                                            ; +0x6, 0x100658496\npush    r13                                                            ; +0x8, 0x100658498\npush    r12                                                            ; +0xa, 0x10065849a\npush    rbx                                                            ; +0xc, 0x10065849c\nsub     rsp, 18h                                                       ; +0xd, 0x10065849d\nmov     r15d, edx                                                      ; +0x11, 0x1006584a1\nmov     rbx, rsi                                                       ; +0x14, 0x1006584a4\nmov     r14, rdi                                                       ; +0x17, 0x1006584a7\ncmp     qword ptr [rdi+2B0h], 0                                        ; +0x1a, 0x1006584aa\njz      short loc_1006584EF                                            ; +0x22, 0x1006584b2\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x24, 0x1006584b4\nmov     rcx, [rax]                                                     ; +0x29, 0x1006584b9\nmov     rdi, rax                                                       ; +0x2c, 0x1006584bc\ncall    qword ptr [rcx+0A0h]                                           ; +0x2f, 0x1006584bf\nmov     rsi, [r14+2B0h]                                                ; +0x35, 0x1006584c5\nmov     rdi, rax                                                       ; +0x3c, 0x1006584cc\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x3f, 0x1006584cf\nmov     rdi, [r14+2B0h]                                                ; +0x44, 0x1006584d4\nmov     rax, [rdi]                                                     ; +0x4b, 0x1006584db\ncall    qword ptr [rax+208h]                                           ; +0x4e, 0x1006584de\nmov     qword ptr [r14+2B0h], 0                                        ; +0x54, 0x1006584e4\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x5f, 0x1006584ef\nlea     rdi, [rbp+var_34]                                              ; +0x64, 0x1006584f4\nmov     rsi, rax                                                       ; +0x68, 0x1006584f8\ncall    cocos2d__CCDirector__getWinSize                                ; +0x6b, 0x1006584fb\ntest    rbx, rbx                                                       ; +0x70, 0x100658500\nmov     [rbp+var_2C], r15d                                             ; +0x73, 0x100658503\njz      short loc_10065853D                                            ; +0x77, 0x100658507\ntest    r15d, r15d                                                     ; +0x79, 0x100658509\nmov     eax, 2                                                         ; +0x7c, 0x10065850c\nmov     ecx, 11h                                                       ; +0x81, 0x100658511\ncmovz   ecx, eax                                                       ; +0x86, 0x100658516\nmovss   xmm0, cs:dword_100817E04                                       ; +0x89, 0x100658519\nmovss   xmm1, cs:dword_1008152B0                                       ; +0x91, 0x100658521\nxorps   xmm2, xmm2                                                     ; +0x99, 0x100658529\nmov     rdi, rbx                                                       ; +0x9c, 0x10065852c\nxor     esi, esi                                                       ; +0x9f, 0x10065852f\nxor     edx, edx                                                       ; +0xa1, 0x100658531\ncall    CustomListView__create                                         ; +0xa3, 0x100658533\nmov     rdi, rax                                                       ; +0xa8, 0x100658538\njmp     short loc_10065853F                                            ; +0xab, 0x10065853b\nxor     edi, edi                                                       ; +0xad, 0x10065853d\ntest    rbx, rbx                                                       ; +0xaf, 0x10065853f\nsetz    r15b                                                           ; +0xb2, 0x100658542\nmovss   xmm0, cs:dword_1008152B0                                       ; +0xb6, 0x100658546\nmovss   xmm1, cs:dword_100817E04                                       ; +0xbe, 0x10065854e\nxor     esi, esi                                                       ; +0xc6, 0x100658556\nmov     edx, 0FF3E72BFh                                                ; +0xc8, 0x100658558\nxor     ecx, ecx                                                       ; +0xcd, 0x10065855d\ncall    GJCommentListLayer__create                                     ; +0xcf, 0x10065855f\nmov     [r14+2B0h], rax                                                ; +0xd4, 0x100658564\nmov     rdi, [r14+240h]                                                ; +0xdb, 0x10065856b\nmov     rcx, [rdi]                                                     ; +0xe2, 0x100658572\nmov     rsi, rax                                                       ; +0xe5, 0x100658575\ncall    qword ptr [rcx+1B8h]                                           ; +0xe8, 0x100658578\nmovss   xmm0, [rbp+var_34]                                             ; +0xee, 0x10065857e\nmovss   xmm1, [rbp+var_30]                                             ; +0xf3, 0x100658583\naddss   xmm0, cs:dword_100817E08                                       ; +0xf8, 0x100658588\naddss   xmm1, cs:dword_100817E0C                                       ; +0x100, 0x100658590\nmovss   xmm2, cs:dword_100814FA8                                       ; +0x108, 0x100658598\nmulss   xmm1, xmm2                                                     ; +0x110, 0x1006585a0\naddss   xmm1, cs:dword_100815064                                       ; +0x114, 0x1006585a4\nmulss   xmm0, xmm2                                                     ; +0x11c, 0x1006585ac\nmov     r12, [r14+2B0h]                                                ; +0x120, 0x1006585b0\naddss   xmm1, cs:flt_100815088                                         ; +0x127, 0x1006585b7\nlea     r13, [rbp+var_3C]                                              ; +0x12f, 0x1006585bf\nmov     rdi, r13                                                       ; +0x133, 0x1006585c3\ncall    sub_10028CBE0                                                  ; +0x136, 0x1006585c6\nmov     rax, [r12]                                                     ; +0x13b, 0x1006585cb\nmov     rdi, r12                                                       ; +0x13f, 0x1006585cf\nmov     rsi, r13                                                       ; +0x142, 0x1006585d2\ncall    qword ptr [rax+0B8h]                                           ; +0x145, 0x1006585d5\ncmp     [rbp+var_2C], 0                                                ; +0x14b, 0x1006585db\nsetnz   al                                                             ; +0x14f, 0x1006585df\nor      al, r15b                                                       ; +0x152, 0x1006585e2\njnz     short loc_10065863A                                            ; +0x155, 0x1006585e5\nmov     rdi, rbx                                                       ; +0x157, 0x1006585e7\ncall    sub_100720070                                                  ; +0x15a, 0x1006585ea\nmov     r14, [r14+2A8h]                                                ; +0x15f, 0x1006585ef\ntest    eax, eax                                                       ; +0x166, 0x1006585f6\njz      short loc_100658656                                            ; +0x168, 0x1006585f8\nmov     rdi, rbx                                                       ; +0x16a, 0x1006585fa\ncall    sub_100720070                                                  ; +0x16d, 0x1006585fd\nlea     rdi, aTotalFriendsI; \"Total friends: %i\"                       ; +0x172, 0x100658602\nmov     esi, eax                                                       ; +0x179, 0x100658609\nxor     eax, eax                                                       ; +0x17b, 0x10065860b\ncall    sub_1007AB580                                                  ; +0x17d, 0x10065860d\nmov     rdi, rax                                                       ; +0x182, 0x100658612\ncall    cocos2d__CCString__getCString                                  ; +0x185, 0x100658615\nmov     rcx, [r14]                                                     ; +0x18a, 0x10065861a\nmov     rdi, r14                                                       ; +0x18d, 0x10065861d\nmov     rsi, rax                                                       ; +0x190, 0x100658620\ncall    qword ptr [rcx+390h]                                           ; +0x193, 0x100658623\nmov     rdi, rbx                                                       ; +0x199, 0x100658629\ncall    sub_100720070                                                  ; +0x19c, 0x10065862c\ntest    eax, eax                                                       ; +0x1a1, 0x100658631\njnz     short loc_100658679                                            ; +0x1a3, 0x100658633\njmp     loc_1006586FE                                                  ; +0x1a5, 0x100658635\nmov     rdi, [r14+2A8h]                                                ; +0x1aa, 0x10065863a\nmov     rax, [rdi]                                                     ; +0x1b1, 0x100658641\nlea     rsi, asc_100823F54; \" \"                                        ; +0x1b4, 0x100658644\ncall    qword ptr [rax+390h]                                           ; +0x1bb, 0x10065864b\njmp     loc_1006586FE                                                  ; +0x1c1, 0x100658651\nmov     rax, [r14]                                                     ; +0x1c6, 0x100658656\nlea     rsi, asc_100823F54; \" \"                                        ; +0x1c9, 0x100658659\nmov     rdi, r14                                                       ; +0x1d0, 0x100658660\ncall    qword ptr [rax+390h]                                           ; +0x1d3, 0x100658663\nmov     rdi, rbx                                                       ; +0x1d9, 0x100658669\ncall    sub_100720070                                                  ; +0x1dc, 0x10065866c\ntest    eax, eax                                                       ; +0x1e1, 0x100658671\njz      loc_1006586FE                                                  ; +0x1e3, 0x100658673\ncall    GameManager__sharedState                                       ; +0x1e9, 0x100658679\nlea     rsi, aGeometryAchFri; \"geometry.ach.friends01\"                 ; +0x1ee, 0x10065867e\nmov     rdi, rax                                                       ; +0x1f5, 0x100658685\nmov     edx, 64h ; 'd'                                                 ; +0x1f8, 0x100658688\nxor     ecx, ecx                                                       ; +0x1fd, 0x10065868d\ncall    GameManager__reportAchievementWithID                           ; +0x1ff, 0x10065868f\nmov     rdi, rbx                                                       ; +0x204, 0x100658694\ncall    sub_100720070                                                  ; +0x207, 0x100658697\ncmp     eax, 0Ah                                                       ; +0x20c, 0x10065869c\njl      short loc_1006586FE                                            ; +0x20f, 0x10065869f\nmov     ebx, eax                                                       ; +0x211, 0x1006586a1\ncall    GameManager__sharedState                                       ; +0x213, 0x1006586a3\nlea     rsi, aGeometryAchFri_0; \"geometry.ach.friends02\"               ; +0x218, 0x1006586a8\nmov     rdi, rax                                                       ; +0x21f, 0x1006586af\nmov     edx, 64h ; 'd'                                                 ; +0x222, 0x1006586b2\nxor     ecx, ecx                                                       ; +0x227, 0x1006586b7\ncall    GameManager__reportAchievementWithID                           ; +0x229, 0x1006586b9\ncmp     ebx, 19h                                                       ; +0x22e, 0x1006586be\njb      short loc_1006586FE                                            ; +0x231, 0x1006586c1\ncall    GameManager__sharedState                                       ; +0x233, 0x1006586c3\nlea     rsi, aGeometryAchFri_1; \"geometry.ach.friends03\"               ; +0x238, 0x1006586c8\nmov     rdi, rax                                                       ; +0x23f, 0x1006586cf\nmov     edx, 64h ; 'd'                                                 ; +0x242, 0x1006586d2\nxor     ecx, ecx                                                       ; +0x247, 0x1006586d7\ncall    GameManager__reportAchievementWithID                           ; +0x249, 0x1006586d9\ncmp     ebx, 32h ; '2'                                                 ; +0x24e, 0x1006586de\njb      short loc_1006586FE                                            ; +0x251, 0x1006586e1\ncall    GameManager__sharedState                                       ; +0x253, 0x1006586e3\nlea     rsi, aGeometryAchFri_2; \"geometry.ach.friends04\"               ; +0x258, 0x1006586e8\nmov     rdi, rax                                                       ; +0x25f, 0x1006586ef\nmov     edx, 64h ; 'd'                                                 ; +0x262, 0x1006586f2\nxor     ecx, ecx                                                       ; +0x267, 0x1006586f7\ncall    GameManager__reportAchievementWithID                           ; +0x269, 0x1006586f9\nadd     rsp, 18h                                                       ; +0x26e, 0x1006586fe\npop     rbx                                                            ; +0x272, 0x100658702\npop     r12                                                            ; +0x273, 0x100658703\npop     r13                                                            ; +0x275, 0x100658705\npop     r14                                                            ; +0x277, 0x100658707\npop     r15                                                            ; +0x279, 0x100658709\npop     rbp                                                            ; +0x27b, 0x10065870b\nretn                                                                   ; +0x27c, 0x10065870c", "xrefs": ["FriendsProfilePage::init @ 0x1006582a4", "FriendsProfilePage::getUserListFinished @ 0x10065875f", "FriendsProfilePage::forceReloadList @ 0x1006589e8", "sub_100658A10 @ 0x100658a62"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}