{"type": "func", "start": 4298077676, "end": 4298077784, "name": "EndLevelLayer::onLevelLeaderboard", "pseudocode": "// \n// EndLevelLayer::onLevelLeaderboard from 0x1002f75ec to 0x1002f7658 (108 bytes)\n// \n// 1 xrefs:\n// > EndLevelLayer::customSetup @ 0x1002f6714\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; // x8\n  GJGameLevel *m_level; // x19\n  GameManager *v4; // x0\n  LevelLeaderboardType IntGameVariable; // w20\n  GameManager *v6; // x0\n  LevelLeaderboardMode v7; // w0\n  LevelLeaderboard *v8; // x0\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 0x1002f75ec to 0x1002f7658 (108 bytes)\n; \n; 1 xrefs:\n; > EndLevelLayer::customSetup @ 0x1002f6714\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\nLDRB            W8, [X0,#0x26B]                                        ; +0x0, 0x1002f75ec\nTBNZ            W8, #0, locret_1002F7654                               ; +0x4, 0x1002f75f0\nLDR             X8, [X0,#0x260]                                        ; +0x8, 0x1002f75f4\nCBZ             X8, locret_1002F7654                                   ; +0xc, 0x1002f75f8\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x10, 0x1002f75fc\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x14, 0x1002f7600\nADD             X29, SP, #0x10                                         ; +0x18, 0x1002f7604\nLDR             X19, [X8,#0x790]                                       ; +0x1c, 0x1002f7608\nBL              GameManager__sharedState                               ; +0x20, 0x1002f760c\nADRL            X1, a0098; \"0098\"                                      ; +0x24, 0x1002f7610\nBL              GameManager__getIntGameVariable                        ; +0x2c, 0x1002f7618\nMOV             X20, X0                                                ; +0x30, 0x1002f761c\nBL              GameManager__sharedState                               ; +0x34, 0x1002f7620\nADRL            X1, a0164; \"0164\"                                      ; +0x38, 0x1002f7624\nBL              GameManager__getIntGameVariable                        ; +0x40, 0x1002f762c\nMOV             X2, X0                                                 ; +0x44, 0x1002f7630\nMOV             X0, X19                                                ; +0x48, 0x1002f7634\nMOV             X1, X20                                                ; +0x4c, 0x1002f7638\nBL              LevelLeaderboard__create                               ; +0x50, 0x1002f763c\nLDR             X8, [X0]                                               ; +0x54, 0x1002f7640\nLDR             X1, [X8,#0x508]                                        ; +0x58, 0x1002f7644\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x5c, 0x1002f7648\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x60, 0x1002f764c\nBR              X1                                                     ; +0x64, 0x1002f7650\nRET                                                                    ; +0x68, 0x1002f7654", "xrefs": ["EndLevelLayer::customSetup @ 0x1002f6714"], "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"}