{"type": "func", "start": 5371887136, "end": 5371887782, "name": "LevelListLayer::onShare", "pseudocode": "// \n// LevelListLayer::onShare from 0x140307e20 to 0x1403080a6 (646 bytes)\n// \n// 2 xrefs:\n// > LevelListLayer::init @ 0x140304d6d\n// > <???> @ 0x1406d4568\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=2\nvoid LevelListLayer::onShare(LevelListLayer *a1, cocos2d::CCObject *a2)\n{\n  CCTextInputNode *m_titleInput; // rcx\n  GJAccountManager *v4; // rax\n  __int64 v5; // rax\n  FLAlertLayer *v6; // rbx\n  GJLevelList *m_levelList; // rbx\n  ShareListLayer *v8; // rdi\n  void (*show)(FLAlertLayer *); // rdx\n  __int128 v10; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v11; // [rsp+60h] [rbp-38h]\n  __int64 v12; // [rsp+68h] [rbp-30h]\n  _BYTE v13[32]; // [rsp+70h] [rbp-28h] BYREF\n\n  if ( !a1->m_exiting )\n  {\n    m_titleInput = a1->m_titleInput;\n    if ( m_titleInput )\n      m_titleInput->onClickTrackNode(m_titleInput, 0);\n    v4 = GJAccountManager::sharedState();\n    if ( v4->m_accountID - v4->m_unkInt1 > 0 )\n    {\n      m_levelList = a1->m_levelList;\n      v8 = (ShareListLayer *)operator new(0x290u);\n      FLAlertLayer::FLAlertLayer(v8);\n      v8->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (ShareListLayer_vtbl *)&ShareListLayer::`vftable';\n      v8->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&ShareListLayer::`vftable';\n      v8->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&ShareListLayer::`vftable';\n      v8->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&ShareListLayer::`vftable';\n      v8->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&ShareListLayer::`vftable';\n      v8->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&ShareListLayer::`vftable';\n      v8->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&ShareListLayer::`vftable';\n      v8->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&ShareListLayer::`vftable';\n      v8->m_list = nullptr;\n      v8->m_friendsOnlyToggler = nullptr;\n      v8->m_friendsOnlyLabel = nullptr;\n      if ( ShareListLayer::init(v8, m_levelList) )\n      {\n        cocos2d::CCObject::autorelease(v8);\n      }\n      else\n      {\n        ((void (__fastcall *)(ShareListLayer *, __int64))v8->~ShareListLayer)(v8, 1);\n        v8 = nullptr;\n      }\n      show = (void (*)(FLAlertLayer *))v8->show;\n      if ( show == FLAlertLayer::show )\n        FLAlertLayer::show(v8);\n      else\n        show(v8);\n    }\n    else\n    {\n      v10 = 0;\n      *(_QWORD *)&v10 = sub_14003AA10(0x70u);\n      v11 = 111;\n      v12 = 111;\n      strcpy(\n        (char *)v10,\n        \"You need an <cl>account</c> to share <cg>lists</c>. You can create one for free from settings in the main menu.\");\n      v5 = sub_14003BDB0((__int64)v13, (__int64)&v10);\n      v6 = FLAlertLayer::create(0, (int)\"Account Needed\", v5, (__int64)\"Close\", 0, 1133903872, 0, 0, 1065353216);\n      sub_14003A830((__int64)&v10);\n      v6->show(v6);\n    }\n  }\n}", "assembly": "; \n; LevelListLayer::onShare from 0x140307e20 to 0x1403080a6 (646 bytes)\n; \n; 2 xrefs:\n; > LevelListLayer::init @ 0x140304d6d\n; > <???> @ 0x1406d4568\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, 0x140307e20\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x140307e25\npush    rdi                                                            ; +0xa, 0x140307e2a\nsub     rsp, 90h                                                       ; +0xb, 0x140307e2b\nmov     rbx, rcx                                                       ; +0x12, 0x140307e32\ncmp     byte ptr [rcx+398h], 0                                         ; +0x15, 0x140307e35\njnz     loc_140308091                                                  ; +0x1c, 0x140307e3c\nmov     rcx, [rcx+3A0h]                                                ; +0x22, 0x140307e42\ntest    rcx, rcx                                                       ; +0x29, 0x140307e49\njz      short loc_140307E59                                            ; +0x2c, 0x140307e4c\nmov     rax, [rcx]                                                     ; +0x2e, 0x140307e4e\nxor     edx, edx                                                       ; +0x31, 0x140307e51\ncall    qword ptr [rax+3F8h]                                           ; +0x33, 0x140307e53\ncall    GJAccountManager__sharedState                                  ; +0x39, 0x140307e59\nmov     rcx, rax                                                       ; +0x3e, 0x140307e5e\nmov     eax, [rax+168h]                                                ; +0x41, 0x140307e61\nsub     eax, [rcx+16Ch]                                                ; +0x47, 0x140307e67\ntest    eax, eax                                                       ; +0x4d, 0x140307e6d\njg      loc_140307FA0                                                  ; +0x4f, 0x140307e6f\nxorps   xmm0, xmm0                                                     ; +0x55, 0x140307e75\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x58, 0x140307e78\nxor     esi, esi                                                       ; +0x5d, 0x140307e7d\nmov     [rsp+98h+var_38], rsi                                          ; +0x5f, 0x140307e7f\nmov     [rsp+98h+var_30], 0Fh                                          ; +0x64, 0x140307e84\nlea     ecx, [rsi+70h]                                                 ; +0x6d, 0x140307e8d\ncall    sub_14003AA10                                                  ; +0x70, 0x140307e90\nmov     rcx, rax                                                       ; +0x75, 0x140307e95\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x78, 0x140307e98\nmov     [rsp+98h+var_38], 6Fh ; 'o'                                    ; +0x7d, 0x140307e9d\nmov     [rsp+98h+var_30], 6Fh ; 'o'                                    ; +0x86, 0x140307ea6\nmovaps  xmm0, cs:xmmword_140588860                                     ; +0x8f, 0x140307eaf\nmovups  xmmword ptr [rax], xmm0                                        ; +0x96, 0x140307eb6\nmovaps  xmm1, cs:xmmword_140588870                                     ; +0x99, 0x140307eb9\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0xa0, 0x140307ec0\nmovaps  xmm0, cs:xmmword_140588880                                     ; +0xa4, 0x140307ec4\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0xab, 0x140307ecb\nmovaps  xmm1, cs:xmmword_140588890                                     ; +0xaf, 0x140307ecf\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0xb6, 0x140307ed6\nmovaps  xmm0, cs:xmmword_1405888A0                                     ; +0xba, 0x140307eda\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0xc1, 0x140307ee1\nmovaps  xmm1, cs:xmmword_1405888B0                                     ; +0xc5, 0x140307ee5\nmovups  xmmword ptr [rax+50h], xmm1                                    ; +0xcc, 0x140307eec\nmovsd   xmm0, cs:qword_1405888C0                                       ; +0xd0, 0x140307ef0\nmovsd   qword ptr [rax+60h], xmm0                                      ; +0xd8, 0x140307ef8\nmov     eax, cs:dword_1405888C8                                        ; +0xdd, 0x140307efd\nmov     [rcx+68h], eax                                                 ; +0xe3, 0x140307f03\nmovzx   eax, cs:word_1405888CC                                         ; +0xe6, 0x140307f06\nmov     [rcx+6Ch], ax                                                  ; +0xed, 0x140307f0d\nmovzx   eax, cs:byte_1405888CE                                         ; +0xf1, 0x140307f11\nmov     [rcx+6Eh], al                                                  ; +0xf8, 0x140307f18\nmov     [rcx+6Fh], sil                                                 ; +0xfb, 0x140307f1b\nlea     rax, [rsp+98h+var_48]                                          ; +0xff, 0x140307f1f\nmov     [rsp+98h+arg_0], rax                                           ; +0x104, 0x140307f24\nlea     rdx, [rsp+98h+var_48]                                          ; +0x10c, 0x140307f2c\nlea     rcx, [rsp+98h+var_28]                                          ; +0x111, 0x140307f31\ncall    sub_14003BDB0                                                  ; +0x116, 0x140307f36\nmovss   xmm0, cs:flt_140622C24                                         ; +0x11b, 0x140307f3b\nmovss   [rsp+98h+var_58], xmm0                                         ; +0x123, 0x140307f43\nxorps   xmm1, xmm1                                                     ; +0x129, 0x140307f49\nmovss   [rsp+98h+var_60], xmm1                                         ; +0x12c, 0x140307f4c\nmov     [rsp+98h+var_68], sil                                          ; +0x132, 0x140307f52\nmovss   xmm0, cs:dword_14062343C                                       ; +0x137, 0x140307f57\nmovss   [rsp+98h+var_70], xmm0                                         ; +0x13f, 0x140307f5f\nmov     [rsp+98h+var_78], rsi                                          ; +0x145, 0x140307f65\nlea     r9, aClose; \"Close\"                                            ; +0x14a, 0x140307f6a\nmov     r8, rax                                                        ; +0x151, 0x140307f71\nlea     rdx, aAccountNeeded; \"Account Needed\"                          ; +0x154, 0x140307f74\nxor     ecx, ecx                                                       ; +0x15b, 0x140307f7b\ncall    FLAlertLayer__create                                           ; +0x15d, 0x140307f7d\nmov     rbx, rax                                                       ; +0x162, 0x140307f82\nlea     rcx, [rsp+98h+var_48]                                          ; +0x165, 0x140307f85\ncall    sub_14003A830                                                  ; +0x16a, 0x140307f8a\nmov     rdx, [rbx]                                                     ; +0x16f, 0x140307f8f\nmov     rcx, rbx                                                       ; +0x172, 0x140307f92\ncall    qword ptr [rdx+410h]                                           ; +0x175, 0x140307f95\njmp     loc_140308091                                                  ; +0x17b, 0x140307f9b\nmov     rbx, [rbx+368h]                                                ; +0x180, 0x140307fa0\nmov     ecx, 290h; Size                                                ; +0x187, 0x140307fa7\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x18c, 0x140307fac\nmov     rdi, rax                                                       ; +0x191, 0x140307fb1\nmov     [rsp+98h+arg_0], rax                                           ; +0x194, 0x140307fb4\nmov     rcx, rax                                                       ; +0x19c, 0x140307fbc\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x19f, 0x140307fbf\nlea     rax, ??_7ShareListLayer@@6B@; const ShareListLayer::`vftable'  ; +0x1a4, 0x140307fc4\nmov     [rdi], rax                                                     ; +0x1ab, 0x140307fcb\nlea     rax, ??_7ShareListLayer@@6B@_0; const ShareListLayer::`vftable' ; +0x1ae, 0x140307fce\nmov     [rdi+140h], rax                                                ; +0x1b5, 0x140307fd5\nlea     rax, ??_7ShareListLayer@@6B@_1; const ShareListLayer::`vftable' ; +0x1bc, 0x140307fdc\nmov     [rdi+148h], rax                                                ; +0x1c3, 0x140307fe3\nlea     rax, ??_7ShareListLayer@@6B@_2; const ShareListLayer::`vftable' ; +0x1ca, 0x140307fea\nmov     [rdi+150h], rax                                                ; +0x1d1, 0x140307ff1\nlea     rax, ??_7ShareListLayer@@6B@_3; const ShareListLayer::`vftable' ; +0x1d8, 0x140307ff8\nmov     [rdi+158h], rax                                                ; +0x1df, 0x140307fff\nlea     rax, ??_7ShareListLayer@@6B@_4; const ShareListLayer::`vftable' ; +0x1e6, 0x140308006\nmov     [rdi+160h], rax                                                ; +0x1ed, 0x14030800d\nlea     rax, ??_7ShareListLayer@@6B@_5; const ShareListLayer::`vftable' ; +0x1f4, 0x140308014\nmov     [rdi+198h], rax                                                ; +0x1fb, 0x14030801b\nlea     rax, ??_7ShareListLayer@@6B@_6; const ShareListLayer::`vftable' ; +0x202, 0x140308022\nmov     [rdi+1B0h], rax                                                ; +0x209, 0x140308029\nxor     esi, esi                                                       ; +0x210, 0x140308030\nmov     [rdi+278h], rsi                                                ; +0x212, 0x140308032\nmov     [rdi+280h], rsi                                                ; +0x219, 0x140308039\nmov     [rdi+288h], rsi                                                ; +0x220, 0x140308040\nmov     rdx, rbx                                                       ; +0x227, 0x140308047\nmov     rcx, rdi                                                       ; +0x22a, 0x14030804a\ncall    ShareListLayer__init                                           ; +0x22d, 0x14030804d\nmov     rcx, rdi                                                       ; +0x232, 0x140308052\ntest    al, al                                                         ; +0x235, 0x140308055\njz      short loc_140308061                                            ; +0x237, 0x140308057\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x239, 0x140308059\njmp     short loc_14030806F                                            ; +0x23f, 0x14030805f\nmov     rax, [rdi]                                                     ; +0x241, 0x140308061\nmov     edx, 1                                                         ; +0x244, 0x140308064\ncall    qword ptr [rax+8]                                              ; +0x249, 0x140308069\nmov     rdi, rsi                                                       ; +0x24c, 0x14030806c\nmov     rax, [rdi]                                                     ; +0x24f, 0x14030806f\nmov     rdx, [rax+410h]                                                ; +0x252, 0x140308072\nlea     rax, FLAlertLayer__show                                        ; +0x259, 0x140308079\nmov     rcx, rdi                                                       ; +0x260, 0x140308080\ncmp     rdx, rax                                                       ; +0x263, 0x140308083\njnz     short loc_14030808F                                            ; +0x266, 0x140308086\ncall    FLAlertLayer__show                                             ; +0x268, 0x140308088\njmp     short loc_140308091                                            ; +0x26d, 0x14030808d\ncall    rdx                                                            ; +0x26f, 0x14030808f\nlea     r11, [rsp+98h+var_8]                                           ; +0x271, 0x140308091\nmov     rbx, [r11+18h]                                                 ; +0x279, 0x140308099\nmov     rsi, [r11+28h]                                                 ; +0x27d, 0x14030809d\nmov     rsp, r11                                                       ; +0x281, 0x1403080a1\npop     rdi                                                            ; +0x284, 0x1403080a4\nretn                                                                   ; +0x285, 0x1403080a5", "xrefs": ["LevelListLayer::init @ 0x140304d6d", "<???> @ 0x1406d4568"], "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"}