{"type": "func", "start": 4299956768, "end": 4299956880, "name": "EndLevelLayer::onLevelLeaderboard", "pseudocode": "// \n// EndLevelLayer::onLevelLeaderboard from 0x1004c2220 to 0x1004c2290 (112 bytes)\n// \n// 1 xrefs:\n// > EndLevelLayer::customSetup @ 0x1004c1202\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 EndLevelLayer::onLevelLeaderboard(EndLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  PlayLayer *m_playLayer; // rax\n  GJGameLevel *m_level; // rbx\n  GameManager *v4; // rax\n  LevelLeaderboardType IntGameVariable; // r14d\n  GameManager *v6; // rax\n  LevelLeaderboardMode v7; // eax\n  LevelLeaderboard *v8; // rax\n\n  if ( !a1->m_exiting )\n  {\n    m_playLayer = a1->m_playLayer;\n    if ( m_playLayer )\n    {\n      m_level = m_playLayer->m_level;\n      v4 = GameManager::sharedState();\n      IntGameVariable = GameManager::getIntGameVariable(v4, \"0098\");\n      v6 = GameManager::sharedState();\n      v7 = GameManager::getIntGameVariable(v6, \"0164\");\n      v8 = LevelLeaderboard::create(m_level, IntGameVariable, v7);\n      ((void (__fastcall *)(LevelLeaderboard *))v8->show)(v8);\n    }\n  }\n}", "assembly": "; \n; EndLevelLayer::onLevelLeaderboard from 0x1004c2220 to 0x1004c2290 (112 bytes)\n; \n; 1 xrefs:\n; > EndLevelLayer::customSetup @ 0x1004c1202\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, 0x1004c2220\nmov     rbp, rsp                                                       ; +0x1, 0x1004c2221\npush    r14                                                            ; +0x4, 0x1004c2224\npush    rbx                                                            ; +0x6, 0x1004c2226\ncmp     byte ptr [rdi+26Bh], 0                                         ; +0x7, 0x1004c2227\njnz     short loc_1004C228B                                            ; +0xe, 0x1004c222e\nmov     rax, [rdi+260h]                                                ; +0x10, 0x1004c2230\ntest    rax, rax                                                       ; +0x17, 0x1004c2237\njz      short loc_1004C228B                                            ; +0x1a, 0x1004c223a\nmov     rbx, [rax+790h]                                                ; +0x1c, 0x1004c223c\ncall    GameManager__sharedState                                       ; +0x23, 0x1004c2243\nlea     rsi, a0098; \"0098\"                                             ; +0x28, 0x1004c2248\nmov     rdi, rax                                                       ; +0x2f, 0x1004c224f\ncall    GameManager__getIntGameVariable                                ; +0x32, 0x1004c2252\nmov     r14d, eax                                                      ; +0x37, 0x1004c2257\ncall    GameManager__sharedState                                       ; +0x3a, 0x1004c225a\nlea     rsi, a0164; \"0164\"                                             ; +0x3f, 0x1004c225f\nmov     rdi, rax                                                       ; +0x46, 0x1004c2266\ncall    GameManager__getIntGameVariable                                ; +0x49, 0x1004c2269\nmov     rdi, rbx                                                       ; +0x4e, 0x1004c226e\nmov     esi, r14d                                                      ; +0x51, 0x1004c2271\nmov     edx, eax                                                       ; +0x54, 0x1004c2274\ncall    LevelLeaderboard__create                                       ; +0x56, 0x1004c2276\nmov     rcx, [rax]                                                     ; +0x5b, 0x1004c227b\nmov     rdi, rax                                                       ; +0x5e, 0x1004c227e\npop     rbx                                                            ; +0x61, 0x1004c2281\npop     r14                                                            ; +0x62, 0x1004c2282\npop     rbp                                                            ; +0x64, 0x1004c2284\njmp     qword ptr [rcx+508h]                                           ; +0x65, 0x1004c2285\npop     rbx                                                            ; +0x6b, 0x1004c228b\npop     r14                                                            ; +0x6c, 0x1004c228c\npop     rbp                                                            ; +0x6e, 0x1004c228e\nretn                                                                   ; +0x6f, 0x1004c228f", "xrefs": ["EndLevelLayer::customSetup @ 0x1004c1202"], "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"}