{"type": "func", "start": 9410636, "end": 9410744, "name": "EndLevelLayer::onLevelLeaderboard", "pseudocode": "// \n// EndLevelLayer::onLevelLeaderboard from 0x8f984c to 0x8f98b8 (108 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x5f890\n// > EndLevelLayer::customSetup @ 0x8fc600\n// > <???> @ 0x15423e8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:57:02 +0000\n// \n\n__int64 __fastcall EndLevelLayer::onLevelLeaderboard(__int64 this, cocos2d::CCObject *a2)\n{\n  __int64 v2; // x20\n  GameManager *v3; // x0\n  GameManager *IntGameVariable; // x0\n  unsigned int v5; // w19\n  GameManager *v6; // x0\n  unsigned int v7; // w0\n  __int64 v8; // x0\n\n  if ( !*(_BYTE *)(this + 619) )\n  {\n    this = *(_QWORD *)(this + 608);\n    if ( this )\n    {\n      v2 = *(_QWORD *)(this + 1936);\n      v3 = (GameManager *)GameManager::sharedState((GameManager *)this);\n      IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v3, \"0098\");\n      v5 = (unsigned int)IntGameVariable;\n      v6 = (GameManager *)GameManager::sharedState(IntGameVariable);\n      v7 = GameManager::getIntGameVariable(v6, \"0164\");\n      v8 = LevelLeaderboard::create(v2, v5, v7);\n      return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 1312LL))(v8);\n    }\n  }\n  return this;\n}", "assembly": "; \n; EndLevelLayer::onLevelLeaderboard from 0x8f984c to 0x8f98b8 (108 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x5f890\n; > EndLevelLayer::customSetup @ 0x8fc600\n; > <???> @ 0x15423e8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:57:02 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x8f984c\nMOV             X29, SP                                                ; +0x4, 0x8f9850\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x8f9854\nLDRB            W1, [X0,#0x26B]                                        ; +0xc, 0x8f9858\nCBNZ            W1, loc_8F98AC                                         ; +0x10, 0x8f985c\nLDR             X0, [X0,#0x260]; this                                  ; +0x14, 0x8f9860\nCBZ             X0, loc_8F98AC                                         ; +0x18, 0x8f9864\nLDR             X20, [X0,#0x790]                                       ; +0x1c, 0x8f9868\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x20, 0x8f986c\nADRL            X1, a0098; \"0098\"                                      ; +0x24, 0x8f9870\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x2c, 0x8f9878\nMOV             W19, W0                                                ; +0x30, 0x8f987c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x34, 0x8f9880\nADRL            X1, a0164; \"0164\"                                      ; +0x38, 0x8f9884\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x40, 0x8f988c\nMOV             W2, W0                                                 ; +0x44, 0x8f9890\nMOV             W1, W19                                                ; +0x48, 0x8f9894\nMOV             X0, X20                                                ; +0x4c, 0x8f9898\nBL              _ZN16LevelLeaderboard6createEP11GJGameLevel20LevelLeaderboardType20LevelLeaderboardMode; LevelLeaderboard::create(GJGameLevel *,LevelLeaderboardType,LevelLeaderboardMode) ; +0x50, 0x8f989c\nLDR             X1, [X0]                                               ; +0x54, 0x8f98a0\nLDR             X1, [X1,#0x520]                                        ; +0x58, 0x8f98a4\nBLR             X1                                                     ; +0x5c, 0x8f98a8\nLDP             X19, X20, [SP,#var_s10]                                ; +0x60, 0x8f98ac\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x64, 0x8f98b0\nRET                                                                    ; +0x68, 0x8f98b4", "xrefs": ["<???> @ 0x5f890", "EndLevelLayer::customSetup @ 0x8fc600", "<???> @ 0x15423e8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}