{"type": "func", "start": 5371604896, "end": 5371605240, "name": "LeaderboardsLayer::setupLevelBrowser", "pseudocode": "// \n// LeaderboardsLayer::setupLevelBrowser from 0x1402c2fa0 to 0x1402c30f8 (344 bytes)\n// \n// 4 xrefs:\n// > LeaderboardsLayer::selectLeaderboard @ 0x1402c348b\n// > LeaderboardsLayer::selectLeaderboard @ 0x1402c3530\n// > LeaderboardsLayer::loadLeaderboardFinished @ 0x1402c38f5\n// > <???> @ 0x1406d29f0\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 LeaderboardsLayer::setupLevelBrowser(LeaderboardsLayer *a1, cocos2d::CCArray *a2)\n{\n  __int64 v4; // rax\n  cocos2d::CCTouchDispatcher *v5; // rax\n  cocos2d::CCDirector *v6; // rax\n  CustomListView *v7; // rax\n  GJListLayer *v8; // rax\n  LeaderboardsLayer_vtbl *v9; // r8\n  float v10; // xmm0_4\n  GJListLayer_vtbl *v11; // rbx\n  const cocos2d::CCPoint *v12; // rax\n  int v13; // [rsp+20h] [rbp-38h]\n  float v14; // [rsp+60h] [rbp+8h]\n\n  if ( a1->m_list )\n  {\n    v4 = cocos2d::CCDirector::sharedDirector(a1);\n    v5 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 144LL))(v4);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, a1->m_list);\n    a1->m_list->removeMeAndCleanup(a1->m_list);\n    a1->m_list = nullptr;\n  }\n  v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(v6);\n  v7 = nullptr;\n  if ( a2 )\n    v7 = CustomListView::create(a2, nullptr, 220.0, 356.0, v13, Score, 0.0);\n  v8 = GJListLayer::create(v7, nullptr, (cocos2d::ccColor4B)-12684609, 356.0, 220.0, 0);\n  v9 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  a1->m_list = v8;\n  v10 = ((float (__fastcall *)(LeaderboardsLayer *, GJListLayer *))v9->addChild_1)(a1, v8);\n  v11 = a1->m_list->__vftable;\n  cocos2d::CCPoint::CCPoint(v10, (float)(v14 - 356.0) * 0.5);\n  v11->setPosition_0(a1->m_list, v12);\n  LeaderboardsLayer::refreshTabs(a1);\n}", "assembly": "; \n; LeaderboardsLayer::setupLevelBrowser from 0x1402c2fa0 to 0x1402c30f8 (344 bytes)\n; \n; 4 xrefs:\n; > LeaderboardsLayer::selectLeaderboard @ 0x1402c348b\n; > LeaderboardsLayer::selectLeaderboard @ 0x1402c3530\n; > LeaderboardsLayer::loadLeaderboardFinished @ 0x1402c38f5\n; > <???> @ 0x1406d29f0\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\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1402c2fa0\npush    rdi                                                            ; +0x5, 0x1402c2fa5\nsub     rsp, 50h                                                       ; +0x6, 0x1402c2fa6\ncmp     qword ptr [rcx+1A8h], 0                                        ; +0xa, 0x1402c2faa\nmov     rbx, rdx                                                       ; +0x12, 0x1402c2fb2\nmovaps  [rsp+58h+var_18], xmm7                                         ; +0x15, 0x1402c2fb5\nmov     rdi, rcx                                                       ; +0x1a, 0x1402c2fba\njz      short loc_1402C2FFD                                            ; +0x1d, 0x1402c2fbd\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1f, 0x1402c2fbf\nmov     rcx, rax                                                       ; +0x25, 0x1402c2fc5\nmov     r8, [rax]                                                      ; +0x28, 0x1402c2fc8\ncall    qword ptr [r8+90h]                                             ; +0x2b, 0x1402c2fcb\nmov     rdx, [rdi+1A8h]                                                ; +0x32, 0x1402c2fd2\nmov     rcx, rax                                                       ; +0x39, 0x1402c2fd9\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x3c, 0x1402c2fdc\nmov     rcx, [rdi+1A8h]                                                ; +0x42, 0x1402c2fe2\nmov     rax, [rcx]                                                     ; +0x49, 0x1402c2fe9\ncall    qword ptr [rax+200h]                                           ; +0x4c, 0x1402c2fec\nmov     qword ptr [rdi+1A8h], 0                                        ; +0x52, 0x1402c2ff2\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x5d, 0x1402c2ffd\nmov     rcx, rax                                                       ; +0x63, 0x1402c3003\nlea     rdx, [rsp+58h+arg_0]                                           ; +0x66, 0x1402c3006\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x6b, 0x1402c300b\nmovss   xmm7, cs:dword_1406233F4                                       ; +0x71, 0x1402c3011\nxor     eax, eax                                                       ; +0x79, 0x1402c3019\ntest    rbx, rbx                                                       ; +0x7b, 0x1402c301b\njz      short loc_1402C3046                                            ; +0x7e, 0x1402c301e\nmovss   xmm3, cs:dword_140623468                                       ; +0x80, 0x1402c3020\nxorps   xmm0, xmm0                                                     ; +0x88, 0x1402c3028\nmovss   [rsp+58h+var_28], xmm0                                         ; +0x8b, 0x1402c302b\nmovaps  xmm2, xmm7                                                     ; +0x91, 0x1402c3031\nxor     edx, edx                                                       ; +0x94, 0x1402c3034\nmov     [rsp+58h+var_30], 0Dh                                          ; +0x96, 0x1402c3036\nmov     rcx, rbx                                                       ; +0x9e, 0x1402c303e\ncall    CustomListView__create                                         ; +0xa1, 0x1402c3041\nmovss   xmm3, cs:dword_140623468                                       ; +0xa6, 0x1402c3046\nmov     r8d, 0FF3E72BFh                                                ; +0xae, 0x1402c304e\nmov     [rsp+58h+var_30], 0                                            ; +0xb4, 0x1402c3054\nxor     edx, edx                                                       ; +0xbc, 0x1402c305c\nmov     rcx, rax                                                       ; +0xbe, 0x1402c305e\nmovss   [rsp+58h+var_38], xmm7                                         ; +0xc1, 0x1402c3061\ncall    GJListLayer__create                                            ; +0xc7, 0x1402c3067\nmov     r8, [rdi]                                                      ; +0xcc, 0x1402c306c\nmov     rdx, rax                                                       ; +0xcf, 0x1402c306f\nmov     rcx, rdi                                                       ; +0xd2, 0x1402c3072\nmov     [rdi+1A8h], rax                                                ; +0xd5, 0x1402c3075\ncall    qword ptr [r8+1C0h]                                            ; +0xdc, 0x1402c307c\nmovss   xmm2, [rsp+58h+arg_4]                                          ; +0xe3, 0x1402c3083\nlea     rcx, [rsp+58h+arg_8]                                           ; +0xe9, 0x1402c3089\nmovss   xmm1, [rsp+58h+arg_0]                                          ; +0xee, 0x1402c308e\nsubss   xmm2, xmm7                                                     ; +0xf4, 0x1402c3094\nsubss   xmm1, cs:dword_140623468                                       ; +0xf8, 0x1402c3098\nmov     rax, [rdi+1A8h]                                                ; +0x100, 0x1402c30a0\nmulss   xmm2, cs:dword_140622B08                                       ; +0x107, 0x1402c30a7\nmov     rbx, [rax]                                                     ; +0x10f, 0x1402c30af\nmulss   xmm1, cs:dword_140622B08                                       ; +0x112, 0x1402c30b2\nsubss   xmm2, cs:flt_14062307C                                         ; +0x11a, 0x1402c30ba\naddss   xmm2, cs:flt_140623010                                         ; +0x122, 0x1402c30c2\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x12a, 0x1402c30ca\nmov     rcx, [rdi+1A8h]                                                ; +0x130, 0x1402c30d0\nmov     rdx, rax                                                       ; +0x137, 0x1402c30d7\ncall    qword ptr [rbx+0B8h]                                           ; +0x13a, 0x1402c30da\nmov     rcx, rdi                                                       ; +0x140, 0x1402c30e0\ncall    LeaderboardsLayer__refreshTabs                                 ; +0x143, 0x1402c30e3\nmov     rbx, [rsp+58h+arg_10]                                          ; +0x148, 0x1402c30e8\nmovaps  xmm7, [rsp+58h+var_18]                                         ; +0x14d, 0x1402c30ed\nadd     rsp, 50h                                                       ; +0x152, 0x1402c30f2\npop     rdi                                                            ; +0x156, 0x1402c30f6\nretn                                                                   ; +0x157, 0x1402c30f7", "xrefs": ["LeaderboardsLayer::selectLeaderboard @ 0x1402c348b", "LeaderboardsLayer::selectLeaderboard @ 0x1402c3530", "LeaderboardsLayer::loadLeaderboardFinished @ 0x1402c38f5", "<???> @ 0x1406d29f0"], "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"}