{"type": "func", "start": 5371864576, "end": 5371864803, "name": "LevelLeaderboard::reloadLeaderboard", "pseudocode": "// \n// LevelLeaderboard::reloadLeaderboard from 0x140302600 to 0x1403026e3 (227 bytes)\n// \n// 3 xrefs:\n// > LevelLeaderboard::onChangeType @ 0x140302779\n// > LevelLeaderboard::onChangeMode @ 0x140302808\n// > <???> @ 0x1406d43b8\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 LevelLeaderboard::reloadLeaderboard(LevelLeaderboard *a1, LevelLeaderboardType a2, LevelLeaderboardMode a3)\n{\n  __int64 v6; // rax\n  cocos2d::CCTouchDispatcher *v7; // rax\n  __int64 v8; // rax\n  cocos2d::CCTouchDispatcher *v9; // rax\n  LevelLeaderboard *v10; // rsi\n  __int64 v11; // rcx\n  cocos2d::CCScene *v12; // rdi\n  __int64 v13; // r8\n  _BOOL8 v14; // rdx\n\n  if ( a1->m_list )\n  {\n    v6 = cocos2d::CCDirector::sharedDirector(a1);\n    v7 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 144LL))(v6);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v7, a1->m_list);\n  }\n  v8 = cocos2d::CCDirector::sharedDirector(a1);\n  v9 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 144LL))(v8);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v9, a1);\n  v10 = LevelLeaderboard::create(a1->m_level, a2, a3);\n  v12 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(v11) + 264);\n  if ( cocos2d::CCScene::getHighestChildZ(v12) + 1 >= 105 )\n    v13 = (unsigned int)(cocos2d::CCScene::getHighestChildZ(v12) + 1);\n  else\n    v13 = 105;\n  v12->addChild_0(v12, v10, v13);\n  a1->setKeypadEnabled(a1, 0);\n  LOBYTE(v14) = 1;\n  a1->removeFromParentAndCleanup(a1, v14);\n}", "assembly": "; \n; LevelLeaderboard::reloadLeaderboard from 0x140302600 to 0x1403026e3 (227 bytes)\n; \n; 3 xrefs:\n; > LevelLeaderboard::onChangeType @ 0x140302779\n; > LevelLeaderboard::onChangeMode @ 0x140302808\n; > <???> @ 0x1406d43b8\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_0], rbx                                               ; +0x0, 0x140302600\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140302605\npush    rdi                                                            ; +0xa, 0x14030260a\nsub     rsp, 20h                                                       ; +0xb, 0x14030260b\ncmp     qword ptr [rcx+2A0h], 0                                        ; +0xf, 0x14030260f\nmov     edi, r8d                                                       ; +0x17, 0x140302617\nmov     esi, edx                                                       ; +0x1a, 0x14030261a\nmov     rbx, rcx                                                       ; +0x1c, 0x14030261c\njz      short loc_140302644                                            ; +0x1f, 0x14030261f\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x21, 0x140302621\nmov     rcx, rax                                                       ; +0x27, 0x140302627\nmov     r9, [rax]                                                      ; +0x2a, 0x14030262a\ncall    qword ptr [r9+90h]                                             ; +0x2d, 0x14030262d\nmov     rdx, [rbx+2A0h]                                                ; +0x34, 0x140302634\nmov     rcx, rax                                                       ; +0x3b, 0x14030263b\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x3e, 0x14030263e\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x44, 0x140302644\nmov     rcx, rax                                                       ; +0x4a, 0x14030264a\nmov     rdx, [rax]                                                     ; +0x4d, 0x14030264d\ncall    qword ptr [rdx+90h]                                            ; +0x50, 0x140302650\nmov     rcx, rax                                                       ; +0x56, 0x140302656\nmov     rdx, rbx                                                       ; +0x59, 0x140302659\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x5c, 0x14030265c\nmov     rcx, [rbx+288h]                                                ; +0x62, 0x140302662\nmov     r8d, edi                                                       ; +0x69, 0x140302669\nmov     edx, esi                                                       ; +0x6c, 0x14030266c\ncall    LevelLeaderboard__create                                       ; +0x6e, 0x14030266e\nmov     rsi, rax                                                       ; +0x73, 0x140302673\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x76, 0x140302676\nmov     rdi, [rax+108h]                                                ; +0x7c, 0x14030267c\nmov     rcx, rdi                                                       ; +0x83, 0x140302683\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0x86, 0x140302686\ninc     eax                                                            ; +0x8c, 0x14030268c\ncmp     eax, 69h ; 'i'                                                 ; +0x8e, 0x14030268e\njge     short loc_14030269B                                            ; +0x91, 0x140302691\nmov     r8d, 69h ; 'i'                                                 ; +0x93, 0x140302693\njmp     short loc_1403026A8                                            ; +0x99, 0x140302699\nmov     rcx, rdi                                                       ; +0x9b, 0x14030269b\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0x9e, 0x14030269e\nlea     r8d, [rax+1]                                                   ; +0xa4, 0x1403026a4\nmov     rax, [rdi]                                                     ; +0xa8, 0x1403026a8\nmov     rdx, rsi                                                       ; +0xab, 0x1403026ab\nmov     rcx, rdi                                                       ; +0xae, 0x1403026ae\ncall    qword ptr [rax+1B8h]                                           ; +0xb1, 0x1403026b1\nmov     rax, [rbx]                                                     ; +0xb7, 0x1403026b7\nxor     edx, edx                                                       ; +0xba, 0x1403026ba\nmov     rcx, rbx                                                       ; +0xbc, 0x1403026bc\ncall    qword ptr [rax+3D0h]                                           ; +0xbf, 0x1403026bf\nmov     rax, [rbx]                                                     ; +0xc5, 0x1403026c5\nmov     dl, 1                                                          ; +0xc8, 0x1403026c8\nmov     rcx, rbx                                                       ; +0xca, 0x1403026ca\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xcd, 0x1403026cd\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xd2, 0x1403026d2\nadd     rsp, 20h                                                       ; +0xd7, 0x1403026d7\npop     rdi                                                            ; +0xdb, 0x1403026db\njmp     qword ptr [rax+1F8h]                                           ; +0xdc, 0x1403026dc", "xrefs": ["LevelLeaderboard::onChangeType @ 0x140302779", "LevelLeaderboard::onChangeMode @ 0x140302808", "<???> @ 0x1406d43b8"], "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"}