{"type": "func", "start": 5369495776, "end": 5369496039, "name": "LevelListCell::onClick", "pseudocode": "// \n// LevelListCell::onClick from 0x1400c00e0 to 0x1400c01e7 (263 bytes)\n// \n// 2 xrefs:\n// > LevelListCell::loadFromList @ 0x1400bf3aa\n// > <???> @ 0x1406c7ecc\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 LevelListCell::onClick(LevelListCell *a1, cocos2d::CCObject *a2)\n{\n  TableViewCellDelegate *m_cellDelegate; // rcx\n  GJLevelList *m_levelList; // rcx\n  struct cocos2d::CCScene *v5; // rax\n  struct cocos2d::CCTransitionFade *v6; // rbx\n  __int64 v7; // rcx\n  cocos2d::CCDirector *v8; // rax\n  struct cocos2d::CCScene *v9; // rax\n  struct cocos2d::CCTransitionFade *v10; // rbx\n  __int64 v11; // rcx\n  cocos2d::CCDirector *v12; // rax\n  void *v13; // [rsp+40h] [rbp+8h]\n\n  if ( a1->m_addingLevel )\n  {\n    m_cellDelegate = a1->m_tableView->m_cellDelegate;\n    if ( m_cellDelegate )\n      ((void (__fastcall *)(TableViewCellDelegate *, LevelListCell *, __int64))m_cellDelegate->cellPerformedAction)(\n        m_cellDelegate,\n        a1,\n        30);\n  }\n  else\n  {\n    m_levelList = a1->m_levelList;\n    if ( m_levelList->m_listType == Editor )\n    {\n      v5 = LevelListLayer::scene(m_levelList);\n      v6 = cocos2d::CCTransitionFade::create(0.5, v5);\n      v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);\n      cocos2d::CCDirector::replaceScene(v8, v6);\n    }\n    else\n    {\n      if ( !qword_1406C2EC0 )\n      {\n        v13 = operator new(0x3D0u);\n        qword_1406C2EC0 = sub_140141280(v13);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      }\n      GameLevelManager::updateSavedLevelList((GameLevelManager *)m_levelList, a1->m_levelList);\n      v9 = LevelListLayer::scene(a1->m_levelList);\n      v10 = cocos2d::CCTransitionFade::create(0.5, v9);\n      v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v11);\n      cocos2d::CCDirector::pushScene(v12, v10);\n    }\n  }\n}", "assembly": "; \n; LevelListCell::onClick from 0x1400c00e0 to 0x1400c01e7 (263 bytes)\n; \n; 2 xrefs:\n; > LevelListCell::loadFromList @ 0x1400bf3aa\n; > <???> @ 0x1406c7ecc\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\npush    rbx                                                            ; +0x0, 0x1400c00e0\nsub     rsp, 30h                                                       ; +0x2, 0x1400c00e2\nmov     rbx, rcx                                                       ; +0x6, 0x1400c00e6\ncmp     byte ptr [rcx+238h], 0                                         ; +0x9, 0x1400c00e9\njz      short loc_1400C012A                                            ; +0x10, 0x1400c00f0\nmov     rax, [rcx+1A0h]                                                ; +0x12, 0x1400c00f2\nmov     rcx, [rax+260h]                                                ; +0x19, 0x1400c00f9\ntest    rcx, rcx                                                       ; +0x20, 0x1400c0100\njz      loc_1400C01E1                                                  ; +0x23, 0x1400c0103\nmov     rax, [rcx]                                                     ; +0x29, 0x1400c0109\nmov     [rsp+38h+var_18], 0                                            ; +0x2c, 0x1400c010c\nmov     r9d, 1                                                         ; +0x35, 0x1400c0115\nlea     r8d, [r9+1Dh]                                                  ; +0x3b, 0x1400c011b\nmov     rdx, rbx                                                       ; +0x3f, 0x1400c011f\ncall    qword ptr [rax]                                                ; +0x42, 0x1400c0122\nadd     rsp, 30h                                                       ; +0x44, 0x1400c0124\npop     rbx                                                            ; +0x48, 0x1400c0128\nretn                                                                   ; +0x49, 0x1400c0129\nmov     rcx, [rcx+230h]                                                ; +0x4a, 0x1400c012a\ncmp     dword ptr [rcx+240h], 2                                        ; +0x51, 0x1400c0131\njnz     short loc_1400C016B                                            ; +0x58, 0x1400c0138\ncall    LevelListLayer__scene                                          ; +0x5a, 0x1400c013a\nmov     rdx, rax                                                       ; +0x5f, 0x1400c013f\nmovss   xmm0, cs:dword_140622B08                                       ; +0x62, 0x1400c0142\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x6a, 0x1400c014a\nmov     rbx, rax                                                       ; +0x70, 0x1400c0150\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x73, 0x1400c0153\nmov     rcx, rax                                                       ; +0x79, 0x1400c0159\nmov     rdx, rbx                                                       ; +0x7c, 0x1400c015c\nadd     rsp, 30h                                                       ; +0x7f, 0x1400c015f\npop     rbx                                                            ; +0x83, 0x1400c0163\njmp     cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x84, 0x1400c0164\ncmp     cs:qword_1406C2EC0, 0                                          ; +0x8b, 0x1400c016b\njnz     short loc_1400C019D                                            ; +0x93, 0x1400c0173\nmov     ecx, 3D0h; Size                                                ; +0x95, 0x1400c0175\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x9a, 0x1400c017a\nmov     [rsp+38h+arg_0], rax                                           ; +0x9f, 0x1400c017f\nmov     rcx, rax                                                       ; +0xa4, 0x1400c0184\ncall    sub_140141280                                                  ; +0xa7, 0x1400c0187\nnop                                                                    ; +0xac, 0x1400c018c\nmov     cs:qword_1406C2EC0, rax                                        ; +0xad, 0x1400c018d\nmov     rdx, [rax]                                                     ; +0xb4, 0x1400c0194\nmov     rcx, rax                                                       ; +0xb7, 0x1400c0197\ncall    qword ptr [rdx+48h]                                            ; +0xba, 0x1400c019a\nmov     rdx, [rbx+230h]                                                ; +0xbd, 0x1400c019d\ncall    GameLevelManager__updateSavedLevelList                         ; +0xc4, 0x1400c01a4\nmov     rcx, [rbx+230h]                                                ; +0xc9, 0x1400c01a9\ncall    LevelListLayer__scene                                          ; +0xd0, 0x1400c01b0\nmov     rdx, rax                                                       ; +0xd5, 0x1400c01b5\nmovss   xmm0, cs:dword_140622B08                                       ; +0xd8, 0x1400c01b8\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0xe0, 0x1400c01c0\nmov     rbx, rax                                                       ; +0xe6, 0x1400c01c6\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xe9, 0x1400c01c9\nmov     rcx, rax                                                       ; +0xef, 0x1400c01cf\nmov     rdx, rbx                                                       ; +0xf2, 0x1400c01d2\nadd     rsp, 30h                                                       ; +0xf5, 0x1400c01d5\npop     rbx                                                            ; +0xf9, 0x1400c01d9\njmp     cs:?pushScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::pushScene(cocos2d::CCScene *) ; +0xfa, 0x1400c01da\nadd     rsp, 30h                                                       ; +0x101, 0x1400c01e1\npop     rbx                                                            ; +0x105, 0x1400c01e5\nretn                                                                   ; +0x106, 0x1400c01e6", "xrefs": ["LevelListCell::loadFromList @ 0x1400bf3aa", "<???> @ 0x1406c7ecc"], "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"}