{"type": "func", "start": 5372756336, "end": 5372756692, "name": "LeaderboardsLayer::setupLevelBrowser", "pseudocode": "// \n// LeaderboardsLayer::setupLevelBrowser from 0x1403dc170 to 0x1403dc2d4 (356 bytes)\n// \n// 4 xrefs:\n// > LeaderboardsLayer::selectLeaderboard @ 0x1403dc673\n// > LeaderboardsLayer::selectLeaderboard @ 0x1403dc72a\n// > LeaderboardsLayer::loadLeaderboardFinished @ 0x1403dcb15\n// > <???> @ 0x140924c5c\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:31:39 +0000\n// \n\n__int64 __fastcall LeaderboardsLayer::setupLevelBrowser(__int64 *a1, cocos2d::CCObject *a2)\n{\n  __int64 v4; // rax\n  struct cocos2d::CCObject *v5; // rbx\n  cocos2d::CCTouchDispatcher *v6; // rax\n  __int64 v7; // rax\n  int v8; // eax\n  cocos2d::CCLayerColor *v9; // rax\n  __int64 v10; // rcx\n  __int64 *v11; // rdi\n  __int64 v12; // rbx\n  __int64 v13; // rax\n  __int64 v15; // [rsp+20h] [rbp-38h]\n  float v16; // [rsp+60h] [rbp+8h] BYREF\n  float v17; // [rsp+64h] [rbp+Ch]\n  char v18; // [rsp+68h] [rbp+10h] BYREF\n\n  if ( a1[53] )\n  {\n    v4 = cocos2d::CCDirector::sharedDirector(a1);\n    v5 = (struct cocos2d::CCObject *)a1[53];\n    v6 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 144LL))(v4);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)a1[53] + 528LL))(a1[53]);\n    a1[53] = 0;\n  }\n  v7 = cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(v7, &v16);\n  v8 = 0;\n  if ( a2 )\n    v8 = (unsigned int)CustomListView::create(a2, 0, 220.0, 356.0, v15, 12);\n  v9 = GJListLayer::create(v8, 0, -12684609, 356.0, 1130102784, 0);\n  v10 = *a1;\n  a1[53] = (__int64)v9;\n  (*(void (__fastcall **)(__int64 *, cocos2d::CCLayerColor *))(v10 + 464))(a1, v9);\n  v11 = (__int64 *)a1[53];\n  v12 = *v11;\n  cocos2d::CCPoint::CCPoint(\n    (cocos2d::CCPoint *)&v18,\n    (float)(v16 - 356.0) * 0.5,\n    (float)((float)((float)(v17 - 220.0) * 0.5) - 10.0) + 5.0);\n  (*(void (__fastcall **)(__int64 *, __int64))(v12 + 184))(v11, v13);\n  return LeaderboardsLayer::refreshTabs(a1);\n}", "assembly": "; \n; LeaderboardsLayer::setupLevelBrowser from 0x1403dc170 to 0x1403dc2d4 (356 bytes)\n; \n; 4 xrefs:\n; > LeaderboardsLayer::selectLeaderboard @ 0x1403dc673\n; > LeaderboardsLayer::selectLeaderboard @ 0x1403dc72a\n; > LeaderboardsLayer::loadLeaderboardFinished @ 0x1403dcb15\n; > <???> @ 0x140924c5c\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:31:39 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1403dc170\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x1403dc175\npush    rdi                                                            ; +0xa, 0x1403dc17a\nsub     rsp, 50h                                                       ; +0xb, 0x1403dc17b\ncmp     qword ptr [rcx+1A8h], 0                                        ; +0xf, 0x1403dc17f\nmov     rdi, rdx                                                       ; +0x17, 0x1403dc187\nmovaps  [rsp+58h+var_18], xmm7                                         ; +0x1a, 0x1403dc18a\nmov     rsi, rcx                                                       ; +0x1f, 0x1403dc18f\njz      short loc_1403DC1D5                                            ; +0x22, 0x1403dc192\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x24, 0x1403dc194\nmov     rbx, [rsi+1A8h]                                                ; +0x2a, 0x1403dc19a\nmov     rcx, rax                                                       ; +0x31, 0x1403dc1a1\nmov     r8, [rax]                                                      ; +0x34, 0x1403dc1a4\ncall    qword ptr [r8+90h]                                             ; +0x37, 0x1403dc1a7\nmov     rcx, rax                                                       ; +0x3e, 0x1403dc1ae\nmov     rdx, rbx                                                       ; +0x41, 0x1403dc1b1\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x44, 0x1403dc1b4\nmov     rcx, [rsi+1A8h]                                                ; +0x4a, 0x1403dc1ba\nmov     rax, [rcx]                                                     ; +0x51, 0x1403dc1c1\ncall    qword ptr [rax+210h]                                           ; +0x54, 0x1403dc1c4\nmov     qword ptr [rsi+1A8h], 0                                        ; +0x5a, 0x1403dc1ca\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x65, 0x1403dc1d5\nmov     rcx, rax                                                       ; +0x6b, 0x1403dc1db\nlea     rdx, [rsp+58h+arg_0]                                           ; +0x6e, 0x1403dc1de\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x73, 0x1403dc1e3\nmovss   xmm7, cs:dword_14083591C                                       ; +0x79, 0x1403dc1e9\nxor     eax, eax                                                       ; +0x81, 0x1403dc1f1\ntest    rdi, rdi                                                       ; +0x83, 0x1403dc1f3\njz      short loc_1403DC21E                                            ; +0x86, 0x1403dc1f6\nmovss   xmm3, cs:dword_1408359EC                                       ; +0x88, 0x1403dc1f8\nxorps   xmm0, xmm0                                                     ; +0x90, 0x1403dc200\nmovss   [rsp+58h+var_28], xmm0                                         ; +0x93, 0x1403dc203\nmovaps  xmm2, xmm7                                                     ; +0x99, 0x1403dc209\nxor     edx, edx                                                       ; +0x9c, 0x1403dc20c\nmov     [rsp+58h+var_30], 0Ch                                          ; +0x9e, 0x1403dc20e\nmov     rcx, rdi                                                       ; +0xa6, 0x1403dc216\ncall    CustomListView__create                                         ; +0xa9, 0x1403dc219\nmovss   xmm3, cs:dword_1408359EC                                       ; +0xae, 0x1403dc21e\nxor     edx, edx                                                       ; +0xb6, 0x1403dc226\nmov     [rsp+58h+var_30], 0                                            ; +0xb8, 0x1403dc228\nmov     r8d, 0FF3E72BFh                                                ; +0xc0, 0x1403dc230\nmov     rcx, rax                                                       ; +0xc6, 0x1403dc236\nmovss   dword ptr [rsp+58h+var_38], xmm7                               ; +0xc9, 0x1403dc239\ncall    GJListLayer__create                                            ; +0xcf, 0x1403dc23f\nmov     rcx, [rsi]                                                     ; +0xd4, 0x1403dc244\nmov     rdx, rax                                                       ; +0xd7, 0x1403dc247\nmov     [rsi+1A8h], rax                                                ; +0xda, 0x1403dc24a\nmov     r8, [rcx+1D0h]                                                 ; +0xe1, 0x1403dc251\nmov     rcx, rsi                                                       ; +0xe8, 0x1403dc258\ncall    r8                                                             ; +0xeb, 0x1403dc25b\nmovss   xmm2, [rsp+58h+arg_4]                                          ; +0xee, 0x1403dc25e\nlea     rcx, [rsp+58h+arg_8]                                           ; +0xf4, 0x1403dc264\nmovss   xmm1, [rsp+58h+arg_0]                                          ; +0xf9, 0x1403dc269\nsubss   xmm2, xmm7                                                     ; +0xff, 0x1403dc26f\nsubss   xmm1, cs:dword_1408359EC                                       ; +0x103, 0x1403dc273\nmov     rdi, [rsi+1A8h]                                                ; +0x10b, 0x1403dc27b\nmulss   xmm2, cs:dword_140834F20                                       ; +0x112, 0x1403dc282\nmov     rbx, [rdi]                                                     ; +0x11a, 0x1403dc28a\nmulss   xmm1, cs:dword_140834F20                                       ; +0x11d, 0x1403dc28d\nsubss   xmm2, cs:flt_1408354EC                                         ; +0x125, 0x1403dc295\naddss   xmm2, cs:flt_140835470                                         ; +0x12d, 0x1403dc29d\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x135, 0x1403dc2a5\nmov     rdx, rax                                                       ; +0x13b, 0x1403dc2ab\nmov     rcx, rdi                                                       ; +0x13e, 0x1403dc2ae\ncall    qword ptr [rbx+0B8h]                                           ; +0x141, 0x1403dc2b1\nmov     rcx, rsi                                                       ; +0x147, 0x1403dc2b7\ncall    LeaderboardsLayer__refreshTabs                                 ; +0x14a, 0x1403dc2ba\nmov     rbx, [rsp+58h+arg_10]                                          ; +0x14f, 0x1403dc2bf\nmov     rsi, [rsp+58h+arg_18]                                          ; +0x154, 0x1403dc2c4\nmovaps  xmm7, [rsp+58h+var_18]                                         ; +0x159, 0x1403dc2c9\nadd     rsp, 50h                                                       ; +0x15e, 0x1403dc2ce\npop     rdi                                                            ; +0x162, 0x1403dc2d2\nretn                                                                   ; +0x163, 0x1403dc2d3", "xrefs": ["LeaderboardsLayer::selectLeaderboard @ 0x1403dc673", "LeaderboardsLayer::selectLeaderboard @ 0x1403dc72a", "LeaderboardsLayer::loadLeaderboardFinished @ 0x1403dcb15", "<???> @ 0x140924c5c"], "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"}