{"type": "func", "start": 5373075472, "end": 5373075715, "name": "LevelLeaderboard::reloadLeaderboard", "pseudocode": "// \n// LevelLeaderboard::reloadLeaderboard from 0x14042a010 to 0x14042a103 (243 bytes)\n// \n// 3 xrefs:\n// > LevelLeaderboard::onChangeType @ 0x14042a269\n// > LevelLeaderboard::onChangeMode @ 0x14042a3cd\n// > <???> @ 0x140926a74\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 11:32:12 +0000\n// \n\n__int64 __fastcall LevelLeaderboard::reloadLeaderboard(__int64 *a1, unsigned int a2, unsigned int a3)\n{\n  __int64 v6; // rax\n  struct cocos2d::CCObject *v7; // rbx\n  cocos2d::CCTouchDispatcher *v8; // rax\n  __int64 v9; // rax\n  cocos2d::CCTouchDispatcher *v10; // rax\n  _QWORD *v11; // rsi\n  __int64 v12; // rcx\n  cocos2d::CCScene *v13; // rbx\n  __int64 v14; // r8\n  __int64 v15; // rdx\n\n  if ( a1[88] )\n  {\n    v6 = cocos2d::CCDirector::sharedDirector(a1);\n    v7 = (struct cocos2d::CCObject *)a1[88];\n    v8 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 144LL))(v6);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v8, v7);\n  }\n  v9 = cocos2d::CCDirector::sharedDirector(a1);\n  v10 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 144LL))(v9);\n  cocos2d::CCTouchDispatcher::unregisterForcePrio(v10, (struct cocos2d::CCObject *)a1);\n  v11 = LevelLeaderboard::create(a1[85], a2, a3);\n  v13 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(v12) + 272);\n  if ( cocos2d::CCScene::getHighestChildZ(v13) + 1 >= 105 )\n    v14 = (unsigned int)(cocos2d::CCScene::getHighestChildZ(v13) + 1);\n  else\n    v14 = 105;\n  (*(void (__fastcall **)(cocos2d::CCScene *, _QWORD *, __int64))(*(_QWORD *)v13 + 456LL))(v13, v11, v14);\n  (*(void (__fastcall **)(__int64 *, _QWORD))(*a1 + 992))(a1, 0);\n  LOBYTE(v15) = 1;\n  return (*(__int64 (__fastcall **)(__int64 *, __int64))(*a1 + 520))(a1, v15);\n}", "assembly": "; \n; LevelLeaderboard::reloadLeaderboard from 0x14042a010 to 0x14042a103 (243 bytes)\n; \n; 3 xrefs:\n; > LevelLeaderboard::onChangeType @ 0x14042a269\n; > LevelLeaderboard::onChangeMode @ 0x14042a3cd\n; > <???> @ 0x140926a74\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 11:32:12 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14042a010\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x14042a015\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x14042a01a\npush    rdi                                                            ; +0xf, 0x14042a01f\nsub     rsp, 20h                                                       ; +0x10, 0x14042a020\ncmp     qword ptr [rcx+2C0h], 0                                        ; +0x14, 0x14042a024\nmov     esi, r8d                                                       ; +0x1c, 0x14042a02c\nmov     ebp, edx                                                       ; +0x1f, 0x14042a02f\nmov     rdi, rcx                                                       ; +0x21, 0x14042a031\njz      short loc_14042A05C                                            ; +0x24, 0x14042a034\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x26, 0x14042a036\nmov     rbx, [rdi+2C0h]                                                ; +0x2c, 0x14042a03c\nmov     rcx, rax                                                       ; +0x33, 0x14042a043\nmov     r9, [rax]                                                      ; +0x36, 0x14042a046\ncall    qword ptr [r9+90h]                                             ; +0x39, 0x14042a049\nmov     rcx, rax                                                       ; +0x40, 0x14042a050\nmov     rdx, rbx                                                       ; +0x43, 0x14042a053\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x46, 0x14042a056\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x4c, 0x14042a05c\nmov     rcx, [rax]                                                     ; +0x52, 0x14042a062\nmov     rdx, [rcx+90h]                                                 ; +0x55, 0x14042a065\nmov     rcx, rax                                                       ; +0x5c, 0x14042a06c\ncall    rdx                                                            ; +0x5f, 0x14042a06f\nmov     rcx, rax                                                       ; +0x61, 0x14042a071\nmov     rdx, rdi                                                       ; +0x64, 0x14042a074\ncall    cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x67, 0x14042a077\nmov     rcx, [rdi+2A8h]                                                ; +0x6d, 0x14042a07d\nmov     r8d, esi                                                       ; +0x74, 0x14042a084\nmov     edx, ebp                                                       ; +0x77, 0x14042a087\ncall    LevelLeaderboard__create                                       ; +0x79, 0x14042a089\nmov     rsi, rax                                                       ; +0x7e, 0x14042a08e\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x81, 0x14042a091\nmov     rbx, [rax+110h]                                                ; +0x87, 0x14042a097\nmov     rcx, rbx                                                       ; +0x8e, 0x14042a09e\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0x91, 0x14042a0a1\ninc     eax                                                            ; +0x97, 0x14042a0a7\ncmp     eax, 69h ; 'i'                                                 ; +0x99, 0x14042a0a9\njge     short loc_14042A0B6                                            ; +0x9c, 0x14042a0ac\nmov     r8d, 69h ; 'i'                                                 ; +0x9e, 0x14042a0ae\njmp     short loc_14042A0C3                                            ; +0xa4, 0x14042a0b4\nmov     rcx, rbx                                                       ; +0xa6, 0x14042a0b6\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0xa9, 0x14042a0b9\nlea     r8d, [rax+1]                                                   ; +0xaf, 0x14042a0bf\nmov     rax, [rbx]                                                     ; +0xb3, 0x14042a0c3\nmov     rdx, rsi                                                       ; +0xb6, 0x14042a0c6\nmov     rcx, rbx                                                       ; +0xb9, 0x14042a0c9\ncall    qword ptr [rax+1C8h]                                           ; +0xbc, 0x14042a0cc\nmov     rax, [rdi]                                                     ; +0xc2, 0x14042a0d2\nxor     edx, edx                                                       ; +0xc5, 0x14042a0d5\nmov     rcx, rdi                                                       ; +0xc7, 0x14042a0d7\ncall    qword ptr [rax+3E0h]                                           ; +0xca, 0x14042a0da\nmov     rax, [rdi]                                                     ; +0xd0, 0x14042a0e0\nmov     dl, 1                                                          ; +0xd3, 0x14042a0e3\nmov     rcx, rdi                                                       ; +0xd5, 0x14042a0e5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xd8, 0x14042a0e8\nmov     rbp, [rsp+28h+arg_8]                                           ; +0xdd, 0x14042a0ed\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xe2, 0x14042a0f2\nadd     rsp, 20h                                                       ; +0xe7, 0x14042a0f7\npop     rdi                                                            ; +0xeb, 0x14042a0fb\njmp     qword ptr [rax+208h]                                           ; +0xec, 0x14042a0fc", "xrefs": ["LevelLeaderboard::onChangeType @ 0x14042a269", "LevelLeaderboard::onChangeMode @ 0x14042a3cd", "<???> @ 0x140926a74"], "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"}