{"type": "func", "start": 5371864976, "end": 5371865101, "name": "LevelLeaderboard::onChangeMode", "pseudocode": "// \n// LevelLeaderboard::onChangeMode from 0x140302790 to 0x14030280d (125 bytes)\n// \n// 3 xrefs:\n// > LevelLeaderboard::init @ 0x140300ff6\n// > LevelLeaderboard::init @ 0x1403010ce\n// > <???> @ 0x1406d43d0\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\n// Hidden C++ exception states: #wind=1\nvoid LevelLeaderboard::onChangeMode(LevelLeaderboard *a1, cocos2d::CCObject *a2)\n{\n  LevelLeaderboardMode v3; // edi\n  GameManager *v4; // rcx\n  void *v5; // [rsp+30h] [rbp+8h]\n\n  v3 = a2->getTag(a2);\n  v4 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v5 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v4 = (GameManager *)qword_1406C2ED8;\n  }\n  GameManager::setIntGameVariable(v4, \"0164\", v3);\n  LevelLeaderboard::reloadLeaderboard(a1, a1->m_type, v3);\n}", "assembly": "; \n; LevelLeaderboard::onChangeMode from 0x140302790 to 0x14030280d (125 bytes)\n; \n; 3 xrefs:\n; > LevelLeaderboard::init @ 0x140300ff6\n; > LevelLeaderboard::init @ 0x1403010ce\n; > <???> @ 0x1406d43d0\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140302790\npush    rdi                                                            ; +0x5, 0x140302795\nsub     rsp, 20h                                                       ; +0x6, 0x140302796\nmov     rbx, rcx                                                       ; +0xa, 0x14030279a\nmov     rax, [rdx]                                                     ; +0xd, 0x14030279d\nmov     rcx, rdx                                                       ; +0x10, 0x1403027a0\ncall    qword ptr [rax+38h]                                            ; +0x13, 0x1403027a3\nmov     edi, eax                                                       ; +0x16, 0x1403027a6\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x18, 0x1403027a8\ntest    rcx, rcx                                                       ; +0x1f, 0x1403027af\njnz     short loc_1403027E3                                            ; +0x22, 0x1403027b2\nmov     ecx, 668h; Size                                                ; +0x24, 0x1403027b4\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x29, 0x1403027b9\nmov     [rsp+28h+arg_0], rax                                           ; +0x2e, 0x1403027be\nmov     rcx, rax                                                       ; +0x33, 0x1403027c3\ncall    sub_14017AB00                                                  ; +0x36, 0x1403027c6\nnop                                                                    ; +0x3b, 0x1403027cb\nmov     cs:qword_1406C2ED8, rax                                        ; +0x3c, 0x1403027cc\nmov     rdx, [rax]                                                     ; +0x43, 0x1403027d3\nmov     rcx, rax                                                       ; +0x46, 0x1403027d6\ncall    qword ptr [rdx+48h]                                            ; +0x49, 0x1403027d9\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x4c, 0x1403027dc\nmov     r8d, edi                                                       ; +0x53, 0x1403027e3\nlea     rdx, a0164; \"0164\"                                             ; +0x56, 0x1403027e6\ncall    GameManager__setIntGameVariable                                ; +0x5d, 0x1403027ed\nmov     r8d, edi                                                       ; +0x62, 0x1403027f2\nmov     edx, [rbx+290h]                                                ; +0x65, 0x1403027f5\nmov     rcx, rbx                                                       ; +0x6b, 0x1403027fb\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x6e, 0x1403027fe\nadd     rsp, 20h                                                       ; +0x73, 0x140302803\npop     rdi                                                            ; +0x77, 0x140302807\njmp     LevelLeaderboard__reloadLeaderboard                            ; +0x78, 0x140302808", "xrefs": ["LevelLeaderboard::init @ 0x140300ff6", "LevelLeaderboard::init @ 0x1403010ce", "<???> @ 0x1406d43d0"], "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"}