{"type": "func", "start": 5371857360, "end": 5371857675, "name": "LevelLeaderboard::create", "pseudocode": "// \n// LevelLeaderboard::create from 0x1403009d0 to 0x140300b0b (315 bytes)\n// \n// 5 xrefs:\n// > EditLevelLayer::onLevelLeaderboard @ 0x1400d69df\n// > EndLevelLayer::onLevelLeaderboard @ 0x14013493a\n// > LevelInfoLayer::onLevelLeaderboard @ 0x1402f9dbd\n// > LevelLeaderboard::reloadLeaderboard @ 0x14030266e\n// > <???> @ 0x1406d4364\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\nLevelLeaderboard *LevelLeaderboard::create(GJGameLevel *a1, LevelLeaderboardType a2, LevelLeaderboardMode a3)\n{\n  LevelLeaderboard *v6; // r14\n\n  v6 = (LevelLeaderboard *)operator new(0x2D0u);\n  FLAlertLayer::FLAlertLayer(v6);\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (LevelLeaderboard_vtbl *)&LevelLeaderboard::`vftable';\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&LevelLeaderboard::`vftable';\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&LevelLeaderboard::`vftable';\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&LevelLeaderboard::`vftable';\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&LevelLeaderboard::`vftable';\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&LevelLeaderboard::`vftable';\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&LevelLeaderboard::`vftable';\n  v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&LevelLeaderboard::`vftable';\n  v6->LeaderboardManagerDelegate::__vftable = (LeaderboardManagerDelegate_vtbl *)&LevelLeaderboard::`vftable';\n  v6->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&LevelLeaderboard::`vftable';\n  v6->m_level = nullptr;\n  v6->m_type = 0;\n  v6->m_scores = nullptr;\n  v6->m_list = nullptr;\n  v6->m_circle = nullptr;\n  v6->m_noInternet = nullptr;\n  v6->m_timeBtn = nullptr;\n  v6->m_pointsBtn = nullptr;\n  if ( LevelLeaderboard::init(v6, a1, a2, a3) )\n  {\n    cocos2d::CCObject::autorelease(v6);\n    return v6;\n  }\n  else\n  {\n    ((void (__fastcall *)(LevelLeaderboard *, __int64))v6->~LevelLeaderboard)(v6, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; LevelLeaderboard::create from 0x1403009d0 to 0x140300b0b (315 bytes)\n; \n; 5 xrefs:\n; > EditLevelLayer::onLevelLeaderboard @ 0x1400d69df\n; > EndLevelLayer::onLevelLeaderboard @ 0x14013493a\n; > LevelInfoLayer::onLevelLeaderboard @ 0x1402f9dbd\n; > LevelLeaderboard::reloadLeaderboard @ 0x14030266e\n; > <???> @ 0x1406d4364\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, 0x1403009d0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1403009d5\npush    rsi                                                            ; +0xa, 0x1403009da\npush    rdi                                                            ; +0xb, 0x1403009db\npush    r14                                                            ; +0xc, 0x1403009dc\nsub     rsp, 20h                                                       ; +0xe, 0x1403009de\nmov     ebx, r8d                                                       ; +0x12, 0x1403009e2\nmov     edi, edx                                                       ; +0x15, 0x1403009e5\nmov     rsi, rcx                                                       ; +0x17, 0x1403009e7\nmov     ecx, 2D0h; Size                                                ; +0x1a, 0x1403009ea\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1f, 0x1403009ef\nmov     r14, rax                                                       ; +0x24, 0x1403009f4\nmov     [rsp+38h+arg_18], rax                                          ; +0x27, 0x1403009f7\nmov     rcx, rax                                                       ; +0x2c, 0x1403009fc\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x2f, 0x1403009ff\nlea     rax, ??_7LevelLeaderboard@@6B@; const LevelLeaderboard::`vftable' ; +0x34, 0x140300a04\nmov     [r14], rax                                                     ; +0x3b, 0x140300a0b\nlea     rax, ??_7LevelLeaderboard@@6B@_0; const LevelLeaderboard::`vftable' ; +0x3e, 0x140300a0e\nmov     [r14+140h], rax                                                ; +0x45, 0x140300a15\nlea     rax, ??_7LevelLeaderboard@@6B@_1; const LevelLeaderboard::`vftable' ; +0x4c, 0x140300a1c\nmov     [r14+148h], rax                                                ; +0x53, 0x140300a23\nlea     rax, ??_7LevelLeaderboard@@6B@_2; const LevelLeaderboard::`vftable' ; +0x5a, 0x140300a2a\nmov     [r14+150h], rax                                                ; +0x61, 0x140300a31\nlea     rax, ??_7LevelLeaderboard@@6B@_3; const LevelLeaderboard::`vftable' ; +0x68, 0x140300a38\nmov     [r14+158h], rax                                                ; +0x6f, 0x140300a3f\nlea     rax, ??_7LevelLeaderboard@@6B@_4; const LevelLeaderboard::`vftable' ; +0x76, 0x140300a46\nmov     [r14+160h], rax                                                ; +0x7d, 0x140300a4d\nlea     rax, ??_7LevelLeaderboard@@6B@_5; const LevelLeaderboard::`vftable' ; +0x84, 0x140300a54\nmov     [r14+198h], rax                                                ; +0x8b, 0x140300a5b\nlea     rax, ??_7LevelLeaderboard@@6B@_6; const LevelLeaderboard::`vftable' ; +0x92, 0x140300a62\nmov     [r14+1B0h], rax                                                ; +0x99, 0x140300a69\nlea     rax, ??_7LevelLeaderboard@@6B@_7; const LevelLeaderboard::`vftable' ; +0xa0, 0x140300a70\nmov     [r14+278h], rax                                                ; +0xa7, 0x140300a77\nlea     rax, ??_7LevelLeaderboard@@6B@_8; const LevelLeaderboard::`vftable' ; +0xae, 0x140300a7e\nmov     [r14+280h], rax                                                ; +0xb5, 0x140300a85\nxor     ebp, ebp                                                       ; +0xbc, 0x140300a8c\nmov     [r14+288h], rbp                                                ; +0xbe, 0x140300a8e\nmov     [r14+290h], ebp                                                ; +0xc5, 0x140300a95\nmov     [r14+298h], rbp                                                ; +0xcc, 0x140300a9c\nmov     [r14+2A0h], rbp                                                ; +0xd3, 0x140300aa3\nmov     [r14+2A8h], rbp                                                ; +0xda, 0x140300aaa\nmov     [r14+2B0h], rbp                                                ; +0xe1, 0x140300ab1\nmov     [r14+2C0h], rbp                                                ; +0xe8, 0x140300ab8\nmov     [r14+2C8h], rbp                                                ; +0xef, 0x140300abf\nmov     r9d, ebx                                                       ; +0xf6, 0x140300ac6\nmov     r8d, edi                                                       ; +0xf9, 0x140300ac9\nmov     rdx, rsi                                                       ; +0xfc, 0x140300acc\nmov     rcx, r14                                                       ; +0xff, 0x140300acf\ncall    LevelLeaderboard__init                                         ; +0x102, 0x140300ad2\nmov     rcx, r14                                                       ; +0x107, 0x140300ad7\ntest    al, al                                                         ; +0x10a, 0x140300ada\njz      short loc_140300AE9                                            ; +0x10c, 0x140300adc\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x10e, 0x140300ade\nmov     rax, r14                                                       ; +0x114, 0x140300ae4\njmp     short loc_140300AF8                                            ; +0x117, 0x140300ae7\nmov     r8, [r14]                                                      ; +0x119, 0x140300ae9\nmov     edx, 1                                                         ; +0x11c, 0x140300aec\ncall    qword ptr [r8+8]                                               ; +0x121, 0x140300af1\nmov     rax, rbp                                                       ; +0x125, 0x140300af5\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x128, 0x140300af8\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x12d, 0x140300afd\nadd     rsp, 20h                                                       ; +0x132, 0x140300b02\npop     r14                                                            ; +0x136, 0x140300b06\npop     rdi                                                            ; +0x138, 0x140300b08\npop     rsi                                                            ; +0x139, 0x140300b09\nretn                                                                   ; +0x13a, 0x140300b0a", "xrefs": ["EditLevelLayer::onLevelLeaderboard @ 0x1400d69df", "EndLevelLayer::onLevelLeaderboard @ 0x14013493a", "LevelInfoLayer::onLevelLeaderboard @ 0x1402f9dbd", "LevelLeaderboard::reloadLeaderboard @ 0x14030266e", "<???> @ 0x1406d4364"], "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"}