{"type": "func", "start": 5369588096, "end": 5369588214, "name": "EditLevelLayer::onLevelLeaderboard", "pseudocode": "// \n// EditLevelLayer::onLevelLeaderboard from 0x1400d6980 to 0x1400d69f6 (118 bytes)\n// \n// 2 xrefs:\n// > EditLevelLayer::init @ 0x1400d644a\n// > <???> @ 0x1406c8784\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 EditLevelLayer::onLevelLeaderboard(EditLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // rcx\n  LevelLeaderboardMode IntGameVariable; // eax\n  LevelLeaderboard *v5; // rax\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  v3 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v6 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v3 = (GameManager *)qword_1406C2ED8;\n  }\n  IntGameVariable = GameManager::getIntGameVariable(v3, \"0164\");\n  v5 = LevelLeaderboard::create(a1->m_level, Local, IntGameVariable);\n  v5->show(v5);\n}", "assembly": "; \n; EditLevelLayer::onLevelLeaderboard from 0x1400d6980 to 0x1400d69f6 (118 bytes)\n; \n; 2 xrefs:\n; > EditLevelLayer::init @ 0x1400d644a\n; > <???> @ 0x1406c8784\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\npush    rbx                                                            ; +0x0, 0x1400d6980\nsub     rsp, 20h                                                       ; +0x2, 0x1400d6982\nmov     rbx, rcx                                                       ; +0x6, 0x1400d6986\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x9, 0x1400d6989\ntest    rcx, rcx                                                       ; +0x10, 0x1400d6990\njnz     short loc_1400D69C4                                            ; +0x13, 0x1400d6993\nmov     ecx, 668h; Size                                                ; +0x15, 0x1400d6995\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x1400d699a\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x1400d699f\nmov     rcx, rax                                                       ; +0x24, 0x1400d69a4\ncall    sub_14017AB00                                                  ; +0x27, 0x1400d69a7\nnop                                                                    ; +0x2c, 0x1400d69ac\nmov     cs:qword_1406C2ED8, rax                                        ; +0x2d, 0x1400d69ad\nmov     rdx, [rax]                                                     ; +0x34, 0x1400d69b4\nmov     rcx, rax                                                       ; +0x37, 0x1400d69b7\ncall    qword ptr [rdx+48h]                                            ; +0x3a, 0x1400d69ba\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x3d, 0x1400d69bd\nlea     rdx, a0164; \"0164\"                                             ; +0x44, 0x1400d69c4\ncall    GameManager__getIntGameVariable                                ; +0x4b, 0x1400d69cb\nmov     r8d, eax                                                       ; +0x50, 0x1400d69d0\nmov     edx, 3                                                         ; +0x53, 0x1400d69d3\nmov     rcx, [rbx+1C8h]                                                ; +0x58, 0x1400d69d8\ncall    LevelLeaderboard__create                                       ; +0x5f, 0x1400d69df\nmov     rdx, [rax]                                                     ; +0x64, 0x1400d69e4\nmov     rcx, rax                                                       ; +0x67, 0x1400d69e7\nadd     rsp, 20h                                                       ; +0x6a, 0x1400d69ea\npop     rbx                                                            ; +0x6e, 0x1400d69ee\njmp     qword ptr [rdx+410h]                                           ; +0x6f, 0x1400d69ef", "xrefs": ["EditLevelLayer::init @ 0x1400d644a", "<???> @ 0x1406c8784"], "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"}