{"type": "func", "start": 8204516, "end": 8204624, "name": "EndLevelLayer::onLevelLeaderboard", "pseudocode": "// \n// EndLevelLayer::onLevelLeaderboard from 0x7d30e4 to 0x7d3150 (108 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x42dc8\n// > EndLevelLayer::customSetup @ 0x7d608c\n// > <???> @ 0x122a1d8\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 EndLevelLayer::onLevelLeaderboard(EndLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  PlayLayer *m_playLayer; // x0\n  GJGameLevel *m_level; // x20\n  GameManager *v4; // x0\n  LevelLeaderboardType IntGameVariable; // w19\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      v8->show(v8);\n    }\n  }\n}", "assembly": "; \n; EndLevelLayer::onLevelLeaderboard from 0x7d30e4 to 0x7d3150 (108 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x42dc8\n; > EndLevelLayer::customSetup @ 0x7d608c\n; > <???> @ 0x122a1d8\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\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x7d30e4\nMOV             X29, SP                                                ; +0x4, 0x7d30e8\nLDRB            W1, [X0,#0x26B]                                        ; +0x8, 0x7d30ec\nSTP             X19, X20, [SP,#var_s10]                                ; +0xc, 0x7d30f0\nCBNZ            W1, loc_7D3144                                         ; +0x10, 0x7d30f4\nLDR             X0, [X0,#0x260]; this                                  ; +0x14, 0x7d30f8\nCBZ             X0, loc_7D3144                                         ; +0x18, 0x7d30fc\nLDR             X20, [X0,#0x8A0]                                       ; +0x1c, 0x7d3100\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x20, 0x7d3104\nADRL            X1, a0098; \"0098\"                                      ; +0x24, 0x7d3108\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x2c, 0x7d3110\nMOV             W19, W0                                                ; +0x30, 0x7d3114\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x34, 0x7d3118\nADRL            X1, a0164; \"0164\"                                      ; +0x38, 0x7d311c\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x40, 0x7d3124\nMOV             W2, W0                                                 ; +0x44, 0x7d3128\nMOV             W1, W19                                                ; +0x48, 0x7d312c\nMOV             X0, X20                                                ; +0x4c, 0x7d3130\nBL              _ZN16LevelLeaderboard6createEP11GJGameLevel20LevelLeaderboardType20LevelLeaderboardMode; LevelLeaderboard::create(GJGameLevel *,LevelLeaderboardType,LevelLeaderboardMode) ; +0x50, 0x7d3134\nLDR             X1, [X0]                                               ; +0x54, 0x7d3138\nLDR             X1, [X1,#0x508]                                        ; +0x58, 0x7d313c\nBLR             X1                                                     ; +0x5c, 0x7d3140\nLDP             X19, X20, [SP,#var_s10]                                ; +0x60, 0x7d3144\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x64, 0x7d3148\nRET                                                                    ; +0x68, 0x7d314c", "xrefs": ["<???> @ 0x42dc8", "EndLevelLayer::customSetup @ 0x7d608c", "<???> @ 0x122a1d8"], "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"}