{"type": "func", "start": 5371163488, "end": 5371163819, "name": "GJDropDownLayer::showLayer", "pseudocode": "// \n// GJDropDownLayer::showLayer from 0x140257360 to 0x1402574ab (331 bytes)\n// \n// 22 xrefs:\n// > AccountLayer::layerHidden @ 0x14007f5d6\n// > MenuLayer::onAchievements @ 0x14033595a\n// > MenuLayer::openOptions @ 0x140335bd2\n// > MenuLayer::onStats @ 0x140335d13\n// > OptionsLayer::layerHidden @ 0x1403736c2\n// > AccountLayer::layerHidden @ 0x14007f5c5\n// > MenuLayer::onAchievements @ 0x14033593a\n// > MenuLayer::openOptions @ 0x140335bbf\n// > MenuLayer::onStats @ 0x140335cf8\n// > OptionsLayer::layerHidden @ 0x1403736b1\n// > <???> @ 0x14053ac20\n// > <???> @ 0x14053b110\n// > <???> @ 0x14053b6f8\n// > <???> @ 0x14053c3a8\n// > <???> @ 0x14056c630\n// > <???> @ 0x140576e30\n// > <???> @ 0x14057f9f0\n// > <???> @ 0x1405c4848\n// > <???> @ 0x14060d280\n// > <???> @ 0x140620678\n// > <???> @ 0x140621218\n// > <???> @ 0x1406cfa14\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 GJDropDownLayer::showLayer(GJDropDownLayer *a1, bool a2)\n{\n  float v2; // xmm3_4\n  GameManager *v5; // rcx\n  struct cocos2d::CCMoveTo *v6; // rax\n  struct cocos2d::CCEaseInOut *v7; // rbx\n  __int64 v8; // rax\n  struct cocos2d::CCSequence *v9; // rax\n  cocos2d::ccColor3B *v10; // r8\n  struct cocos2d::CCFadeTo *v11; // rax\n  cocos2d::ccColor3B *v12; // r8\n  __int64 v13; // rdx\n  float v14; // [rsp+20h] [rbp-8h]\n  void *v15; // [rsp+30h] [rbp+8h]\n  float v16; // [rsp+50h] [rbp+28h]\n\n  cocos2d::CCNode::stopAllActions(a1->m_mainLayer);\n  a1->layerVisible(a1);\n  v5 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v15 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v15);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v5 = (GameManager *)qword_1406C2ED8;\n  }\n  if ( GameManager::getGameVariable(v5, \"0168\") || a2 )\n  {\n    a1->m_mainLayer->setPosition_0(a1->m_mainLayer, &a1->m_endPosition);\n    LOBYTE(v13) = 125;\n    a1->setOpacity(&a1->cocos2d::CCRGBAProtocol, v13);\n    a1->enterAnimFinished(a1);\n  }\n  else\n  {\n    v6 = cocos2d::CCMoveTo::create(0.5, &a1->m_endPosition);\n    v7 = cocos2d::CCEaseInOut::create(v6, 2.0);\n    v8 = cocos2d::CCCallFunc::create(a1, sub_1401377B4);\n    v9 = cocos2d::CCSequence::create(v7, v8, 0);\n    cocos2d::CCNode::runAction((CCLightFlash *)a1->m_mainLayer, (cocos2d::CCPoint)v9, v10, v2, v14);\n    a1->setOpacity(&a1->cocos2d::CCRGBAProtocol, 0);\n    v11 = cocos2d::CCFadeTo::create(0.5, 0x7Du);\n    cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v11, v12, v2, v16);\n  }\n}", "assembly": "; \n; GJDropDownLayer::showLayer from 0x140257360 to 0x1402574ab (331 bytes)\n; \n; 22 xrefs:\n; > AccountLayer::layerHidden @ 0x14007f5d6\n; > MenuLayer::onAchievements @ 0x14033595a\n; > MenuLayer::openOptions @ 0x140335bd2\n; > MenuLayer::onStats @ 0x140335d13\n; > OptionsLayer::layerHidden @ 0x1403736c2\n; > AccountLayer::layerHidden @ 0x14007f5c5\n; > MenuLayer::onAchievements @ 0x14033593a\n; > MenuLayer::openOptions @ 0x140335bbf\n; > MenuLayer::onStats @ 0x140335cf8\n; > OptionsLayer::layerHidden @ 0x1403736b1\n; > <???> @ 0x14053ac20\n; > <???> @ 0x14053b110\n; > <???> @ 0x14053b6f8\n; > <???> @ 0x14053c3a8\n; > <???> @ 0x14056c630\n; > <???> @ 0x140576e30\n; > <???> @ 0x14057f9f0\n; > <???> @ 0x1405c4848\n; > <???> @ 0x14060d280\n; > <???> @ 0x140620678\n; > <???> @ 0x140621218\n; > <???> @ 0x1406cfa14\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, 0x140257360\npush    rdi                                                            ; +0x5, 0x140257365\nsub     rsp, 20h                                                       ; +0x6, 0x140257366\nmovzx   ebx, dl                                                        ; +0xa, 0x14025736a\nmov     rdi, rcx                                                       ; +0xd, 0x14025736d\nmov     rcx, [rcx+240h]                                                ; +0x10, 0x140257370\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0x17, 0x140257377\nmov     rax, [rdi]                                                     ; +0x1d, 0x14025737d\nmov     rcx, rdi                                                       ; +0x20, 0x140257380\ncall    qword ptr [rax+438h]                                           ; +0x23, 0x140257383\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x29, 0x140257389\ntest    rcx, rcx                                                       ; +0x30, 0x140257390\njnz     short loc_1402573C4                                            ; +0x33, 0x140257393\nmov     ecx, 668h; Size                                                ; +0x35, 0x140257395\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3a, 0x14025739a\nmov     [rsp+28h+arg_0], rax                                           ; +0x3f, 0x14025739f\nmov     rcx, rax                                                       ; +0x44, 0x1402573a4\ncall    sub_14017AB00                                                  ; +0x47, 0x1402573a7\nnop                                                                    ; +0x4c, 0x1402573ac\nmov     cs:qword_1406C2ED8, rax                                        ; +0x4d, 0x1402573ad\nmov     rdx, [rax]                                                     ; +0x54, 0x1402573b4\nmov     rcx, rax                                                       ; +0x57, 0x1402573b7\ncall    qword ptr [rdx+48h]                                            ; +0x5a, 0x1402573ba\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x5d, 0x1402573bd\nlea     rdx, a0168; \"0168\"                                             ; +0x64, 0x1402573c4\ncall    GameManager__getGameVariable                                   ; +0x6b, 0x1402573cb\ntest    al, al                                                         ; +0x70, 0x1402573d0\njnz     loc_14025746E                                                  ; +0x72, 0x1402573d2\ntest    bl, bl                                                         ; +0x78, 0x1402573d8\njnz     loc_14025746E                                                  ; +0x7a, 0x1402573da\nlea     rdx, [rdi+220h]                                                ; +0x80, 0x1402573e0\nmovss   xmm0, cs:dword_140622B08                                       ; +0x87, 0x1402573e7\ncall    cs:?create@CCMoveTo@cocos2d@@SAPEAV12@MAEBVCCPoint@2@@Z; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const &) ; +0x8f, 0x1402573ef\nmovss   xmm1, cs:width                                                 ; +0x95, 0x1402573f5\nmov     rcx, rax                                                       ; +0x9d, 0x1402573fd\ncall    cs:?create@CCEaseInOut@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@M@Z; cocos2d::CCEaseInOut::create(cocos2d::CCActionInterval *,float) ; +0xa0, 0x140257400\nmov     rbx, rax                                                       ; +0xa6, 0x140257406\nlea     rdx, sub_1401377B4                                             ; +0xa9, 0x140257409\nmov     rcx, rdi                                                       ; +0xb0, 0x140257410\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0xb3, 0x140257413\nxor     r8d, r8d                                                       ; +0xb9, 0x140257419\nmov     rdx, rax                                                       ; +0xbc, 0x14025741c\nmov     rcx, rbx                                                       ; +0xbf, 0x14025741f\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0xc2, 0x140257422\nmov     rdx, rax                                                       ; +0xc8, 0x140257428\nmov     rcx, [rdi+240h]                                                ; +0xcb, 0x14025742b\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xd2, 0x140257432\nlea     rcx, [rdi+198h]                                                ; +0xd8, 0x140257438\nmov     rax, [rcx]                                                     ; +0xdf, 0x14025743f\nxor     edx, edx                                                       ; +0xe2, 0x140257442\ncall    qword ptr [rax+28h]                                            ; +0xe4, 0x140257444\nmov     dl, 7Dh ; '}'                                                  ; +0xe7, 0x140257447\nmovss   xmm0, cs:dword_140622B08                                       ; +0xe9, 0x140257449\ncall    cs:?create@CCFadeTo@cocos2d@@SAPEAV12@ME@Z; cocos2d::CCFadeTo::create(float,uchar) ; +0xf1, 0x140257451\nmov     rdx, rax                                                       ; +0xf7, 0x140257457\nmov     rcx, rdi                                                       ; +0xfa, 0x14025745a\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xfd, 0x14025745d\nadd     rsp, 20h                                                       ; +0x102, 0x140257462\npop     rdi                                                            ; +0x106, 0x140257466\njmp     cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x107, 0x140257467\nmov     rcx, [rdi+240h]                                                ; +0x10e, 0x14025746e\nmov     rax, [rcx]                                                     ; +0x115, 0x140257475\nlea     rdx, [rdi+220h]                                                ; +0x118, 0x140257478\ncall    qword ptr [rax+0B8h]                                           ; +0x11f, 0x14025747f\nlea     rcx, [rdi+198h]                                                ; +0x125, 0x140257485\nmov     rax, [rcx]                                                     ; +0x12c, 0x14025748c\nmov     dl, 7Dh ; '}'                                                  ; +0x12f, 0x14025748f\ncall    qword ptr [rax+28h]                                            ; +0x131, 0x140257491\nmov     rax, [rdi]                                                     ; +0x134, 0x140257494\nmov     rcx, rdi                                                       ; +0x137, 0x140257497\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x13a, 0x14025749a\nadd     rsp, 20h                                                       ; +0x13f, 0x14025749f\npop     rdi                                                            ; +0x143, 0x1402574a3\njmp     qword ptr [rax+448h]                                           ; +0x144, 0x1402574a4", "xrefs": ["AccountLayer::layerHidden @ 0x14007f5d6", "MenuLayer::onAchievements @ 0x14033595a", "MenuLayer::openOptions @ 0x140335bd2", "MenuLayer::onStats @ 0x140335d13", "OptionsLayer::layerHidden @ 0x1403736c2", "AccountLayer::layerHidden @ 0x14007f5c5", "MenuLayer::onAchievements @ 0x14033593a", "MenuLayer::openOptions @ 0x140335bbf", "MenuLayer::onStats @ 0x140335cf8", "OptionsLayer::layerHidden @ 0x1403736b1", "<???> @ 0x14053ac20", "<???> @ 0x14053b110", "<???> @ 0x14053b6f8", "<???> @ 0x14053c3a8", "<???> @ 0x14056c630", "<???> @ 0x140576e30", "<???> @ 0x14057f9f0", "<???> @ 0x1405c4848", "<???> @ 0x14060d280", "<???> @ 0x140620678", "<???> @ 0x140621218", "<???> @ 0x1406cfa14"], "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"}