{"type": "func", "start": 4356320, "end": 4356388, "name": "EndLevelLayer::onLevelLeaderboard", "pseudocode": "// \n// EndLevelLayer::onLevelLeaderboard from 0x4278e0 to 0x427924 (68 bytes)\n// \n// 0 xrefs:\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; // r3\n  GJGameLevel *m_level; // r5\n  GameManager *v4; // r0\n  LevelLeaderboardType IntGameVariable; // r4\n  GameManager *v6; // r0\n  LevelLeaderboardMode v7; // r0\n  LevelLeaderboard *v8; // r0\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 0x4278e0 to 0x427924 (68 bytes)\n; \n; 0 xrefs:\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.W          R3, [R0,#0x1E7]                                        ; +0x0, 0x4278e0\nPUSH            {R4-R6,LR}                                             ; +0x4, 0x4278e4\nCBNZ            R3, locret_427922                                      ; +0x6, 0x4278e6\nLDR.W           R3, [R0,#0x1E0]                                        ; +0x8, 0x4278e8\nCBZ             R3, locret_427922                                      ; +0xc, 0x4278ec\nLDR.W           R5, [R3,#0x608]                                        ; +0xe, 0x4278ee\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x12, 0x4278f2\nLDR             R1, =(a0098 - 0x4278FC); \"0098\"                        ; +0x16, 0x4278f6\nADD             R1, PC; \"0098\"                                         ; +0x18, 0x4278f8\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x1a, 0x4278fa\nMOV             R4, R0                                                 ; +0x1e, 0x4278fe\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x20, 0x427900\nLDR             R1, =(a0164 - 0x42790A); \"0164\"                        ; +0x24, 0x427904\nADD             R1, PC; \"0164\"                                         ; +0x26, 0x427906\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x28, 0x427908\nMOV             R1, R4                                                 ; +0x2c, 0x42790c\nMOV             R2, R0                                                 ; +0x2e, 0x42790e\nMOV             R0, R5                                                 ; +0x30, 0x427910\nBL              _ZN16LevelLeaderboard6createEP11GJGameLevel20LevelLeaderboardType20LevelLeaderboardMode; LevelLeaderboard::create(GJGameLevel *,LevelLeaderboardType,LevelLeaderboardMode) ; +0x32, 0x427912\nPOP.W           {R4-R6,LR}                                             ; +0x36, 0x427916\nLDR             R3, [R0]                                               ; +0x3a, 0x42791a\nLDR.W           R3, [R3,#0x284]                                        ; +0x3c, 0x42791c\nBX              R3                                                     ; +0x40, 0x427920\nPOP             {R4-R6,PC}                                             ; +0x42, 0x427922", "xrefs": [], "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"}