{"type": "func", "start": 5455924, "end": 5455992, "name": "EndLevelLayer::onLevelLeaderboard", "pseudocode": "// \n// EndLevelLayer::onLevelLeaderboard from 0x534034 to 0x534078 (68 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:52:06 +0000\n// \n\nint __fastcall EndLevelLayer::onLevelLeaderboard(int this, cocos2d::CCObject *a2)\n{\n  int v2; // r3\n  int v3; // r5\n  GameManager *v4; // r0\n  GameManager *IntGameVariable; // r4\n  GameManager *v6; // r0\n  int v7; // r0\n  int v8; // r0\n\n  if ( !*(_BYTE *)(this + 487) )\n  {\n    v2 = *(_DWORD *)(this + 480);\n    if ( v2 )\n    {\n      v3 = *(_DWORD *)(v2 + 1408);\n      v4 = (GameManager *)GameManager::sharedState((GameManager *)this);\n      IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v4, \"0098\");\n      v6 = (GameManager *)GameManager::sharedState(IntGameVariable);\n      v7 = GameManager::getIntGameVariable(v6, \"0164\");\n      v8 = LevelLeaderboard::create(v3, IntGameVariable, v7);\n      return (*(int (__fastcall **)(int))(*(_DWORD *)v8 + 656))(v8);\n    }\n  }\n  return this;\n}", "assembly": "; \n; EndLevelLayer::onLevelLeaderboard from 0x534034 to 0x534078 (68 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:52:06 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x534034\nLDRB.W          R3, [R0,#0x1E7]                                        ; +0x2, 0x534036\nCBNZ            R3, locret_534076                                      ; +0x6, 0x53403a\nLDR.W           R3, [R0,#0x1E0]                                        ; +0x8, 0x53403c\nCBZ             R3, locret_534076                                      ; +0xc, 0x534040\nLDR.W           R5, [R3,#0x580]                                        ; +0xe, 0x534042\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x12, 0x534046\nLDR             R1, =(a0098 - 0x534050); \"0098\"                        ; +0x16, 0x53404a\nADD             R1, PC; \"0098\"                                         ; +0x18, 0x53404c\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x1a, 0x53404e\nMOV             R4, R0                                                 ; +0x1e, 0x534052\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x20, 0x534054\nLDR             R1, =(a0164 - 0x53405E); \"0164\"                        ; +0x24, 0x534058\nADD             R1, PC; \"0164\"                                         ; +0x26, 0x53405a\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x28, 0x53405c\nMOV             R1, R4                                                 ; +0x2c, 0x534060\nMOV             R2, R0                                                 ; +0x2e, 0x534062\nMOV             R0, R5                                                 ; +0x30, 0x534064\nBL              _ZN16LevelLeaderboard6createEP11GJGameLevel20LevelLeaderboardType20LevelLeaderboardMode; LevelLeaderboard::create(GJGameLevel *,LevelLeaderboardType,LevelLeaderboardMode) ; +0x32, 0x534066\nPOP.W           {R4-R6,LR}                                             ; +0x36, 0x53406a\nLDR             R3, [R0]                                               ; +0x3a, 0x53406e\nLDR.W           R3, [R3,#0x290]                                        ; +0x3c, 0x534070\nBX              R3                                                     ; +0x40, 0x534074\nPOP             {R4-R6,PC}                                             ; +0x42, 0x534076", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}