{"type": "func", "start": 4299928096, "end": 4299928208, "name": "EndLevelLayer::onLevelLeaderboard", "pseudocode": "// \n// EndLevelLayer::onLevelLeaderboard from 0x1004bb220 to 0x1004bb290 (112 bytes)\n// \n// 1 xrefs:\n// > EndLevelLayer::customSetup @ 0x1004ba15b\n// \n// This function is hookable on this platform (idp: pc, 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:31:03 +0000\n// \n\nvoid __fastcall EndLevelLayer::onLevelLeaderboard(__int64 a1)\n{\n  __int64 v1; // rax\n  __int64 v2; // rbx\n  __int64 v3; // rax\n  unsigned int IntGameVariable; // r14d\n  __int64 v5; // rax\n  unsigned int v6; // eax\n  char *v7; // rax\n\n  if ( !*(_BYTE *)(a1 + 619) )\n  {\n    v1 = *(_QWORD *)(a1 + 608);\n    if ( v1 )\n    {\n      v2 = *(_QWORD *)(v1 + 1936);\n      v3 = GameManager::sharedState();\n      IntGameVariable = GameManager::getIntGameVariable(v3, \"0098\");\n      v5 = GameManager::sharedState();\n      v6 = GameManager::getIntGameVariable(v5, \"0164\");\n      v7 = LevelLeaderboard::create(v2, IntGameVariable, v6);\n      (*(void (__fastcall **)(char *))(*(_QWORD *)v7 + 1312LL))(v7);\n    }\n  }\n}", "assembly": "; \n; EndLevelLayer::onLevelLeaderboard from 0x1004bb220 to 0x1004bb290 (112 bytes)\n; \n; 1 xrefs:\n; > EndLevelLayer::customSetup @ 0x1004ba15b\n; \n; This function is hookable on this platform (idp: pc, 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:31:03 +0000\n; \npush    rbp                                                            ; +0x0, 0x1004bb220\nmov     rbp, rsp                                                       ; +0x1, 0x1004bb221\npush    r14                                                            ; +0x4, 0x1004bb224\npush    rbx                                                            ; +0x6, 0x1004bb226\ncmp     byte ptr [rdi+26Bh], 0                                         ; +0x7, 0x1004bb227\njnz     short loc_1004BB28B                                            ; +0xe, 0x1004bb22e\nmov     rax, [rdi+260h]                                                ; +0x10, 0x1004bb230\ntest    rax, rax                                                       ; +0x17, 0x1004bb237\njz      short loc_1004BB28B                                            ; +0x1a, 0x1004bb23a\nmov     rbx, [rax+790h]                                                ; +0x1c, 0x1004bb23c\ncall    GameManager__sharedState                                       ; +0x23, 0x1004bb243\nlea     rsi, a0098; \"0098\"                                             ; +0x28, 0x1004bb248\nmov     rdi, rax                                                       ; +0x2f, 0x1004bb24f\ncall    GameManager__getIntGameVariable                                ; +0x32, 0x1004bb252\nmov     r14d, eax                                                      ; +0x37, 0x1004bb257\ncall    GameManager__sharedState                                       ; +0x3a, 0x1004bb25a\nlea     rsi, a0164; \"0164\"                                             ; +0x3f, 0x1004bb25f\nmov     rdi, rax                                                       ; +0x46, 0x1004bb266\ncall    GameManager__getIntGameVariable                                ; +0x49, 0x1004bb269\nmov     rdi, rbx                                                       ; +0x4e, 0x1004bb26e\nmov     esi, r14d                                                      ; +0x51, 0x1004bb271\nmov     edx, eax                                                       ; +0x54, 0x1004bb274\ncall    LevelLeaderboard__create                                       ; +0x56, 0x1004bb276\nmov     rcx, [rax]                                                     ; +0x5b, 0x1004bb27b\nmov     rdi, rax                                                       ; +0x5e, 0x1004bb27e\npop     rbx                                                            ; +0x61, 0x1004bb281\npop     r14                                                            ; +0x62, 0x1004bb282\npop     rbp                                                            ; +0x64, 0x1004bb284\njmp     qword ptr [rcx+520h]                                           ; +0x65, 0x1004bb285\npop     rbx                                                            ; +0x6b, 0x1004bb28b\npop     r14                                                            ; +0x6c, 0x1004bb28c\npop     rbp                                                            ; +0x6e, 0x1004bb28e\nretn                                                                   ; +0x6f, 0x1004bb28f", "xrefs": ["EndLevelLayer::customSetup @ 0x1004ba15b"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}