{"type": "func", "start": 4301161984, "end": 4301162235, "name": "GJDropDownLayer::showLayer", "pseudocode": "// \n// GJDropDownLayer::showLayer from 0x1005e8600 to 0x1005e86fb (251 bytes)\n// \n// 12 xrefs:\n// > <???> @ 0x1008b57f0\n// > <???> @ 0x1008b88e0\n// > <???> @ 0x1008b9078\n// > <???> @ 0x1008fd460\n// > <???> @ 0x10091d510\n// > <???> @ 0x100922318\n// > <???> @ 0x10095e638\n// > <???> @ 0x100973e70\n// > <???> @ 0x100978678\n// > <???> @ 0x10097d920\n// > <???> @ 0x10098cbe8\n// > <???> @ 0x100990770\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\nvoid __fastcall GJDropDownLayer::showLayer(GJDropDownLayer *a1, bool a2)\n{\n  GameManager *v2; // rax\n  cocos2d::CCMoveTo *v3; // rax\n  cocos2d::CCEaseInOut *v4; // r14\n  cocos2d::CCCallFunc *v5; // rax\n  cocos2d::CCSequence *v6; // rax\n  cocos2d::CCFadeTo *v7; // rax\n\n  cocos2d::CCNode::stopAllActions(a1->m_mainLayer);\n  ((void (__fastcall *)(GJDropDownLayer *))a1->layerVisible)(a1);\n  v2 = GameManager::sharedState();\n  if ( (a2 | GameManager::getGameVariable(v2, \"0168\")) == 1 )\n  {\n    ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCPoint *))a1->m_mainLayer->setPosition)(\n      a1->m_mainLayer,\n      &a1->m_endPosition);\n    ((void (__fastcall *)(GJDropDownLayer *, __int64))a1->setOpacity)(a1, 125);\n    ((void (__fastcall *)(GJDropDownLayer *))a1->enterAnimFinished)(a1);\n  }\n  else\n  {\n    v3 = cocos2d::CCMoveTo::create(0.5, &a1->m_endPosition);\n    v4 = cocos2d::CCEaseInOut::create(v3, 2.0);\n    v5 = cocos2d::CCCallFunc::create(a1, (cocos2d::SEL_CallFunc)0x541uLL);\n    v6 = sub_1003B5760(v4, v5, 0);\n    cocos2d::CCNode::runAction(a1->m_mainLayer, v6);\n    ((void (__fastcall *)(GJDropDownLayer *, _QWORD))a1->setOpacity)(a1, 0);\n    v7 = cocos2d::CCFadeTo::create(0.5, 0x7Du);\n    cocos2d::CCNode::runAction(a1, v7);\n  }\n}", "assembly": "; \n; GJDropDownLayer::showLayer from 0x1005e8600 to 0x1005e86fb (251 bytes)\n; \n; 12 xrefs:\n; > <???> @ 0x1008b57f0\n; > <???> @ 0x1008b88e0\n; > <???> @ 0x1008b9078\n; > <???> @ 0x1008fd460\n; > <???> @ 0x10091d510\n; > <???> @ 0x100922318\n; > <???> @ 0x10095e638\n; > <???> @ 0x100973e70\n; > <???> @ 0x100978678\n; > <???> @ 0x10097d920\n; > <???> @ 0x10098cbe8\n; > <???> @ 0x100990770\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    rbp                                                            ; +0x0, 0x1005e8600\nmov     rbp, rsp                                                       ; +0x1, 0x1005e8601\npush    r14                                                            ; +0x4, 0x1005e8604\npush    rbx                                                            ; +0x6, 0x1005e8606\nmov     r14d, esi                                                      ; +0x7, 0x1005e8607\nmov     rbx, rdi                                                       ; +0xa, 0x1005e860a\nmov     rdi, [rdi+240h]                                                ; +0xd, 0x1005e860d\ncall    cocos2d__CCNode__stopAllActions                                ; +0x14, 0x1005e8614\nmov     rax, [rbx]                                                     ; +0x19, 0x1005e8619\nmov     rdi, rbx                                                       ; +0x1c, 0x1005e861c\ncall    qword ptr [rax+530h]                                           ; +0x1f, 0x1005e861f\ncall    GameManager__sharedState                                       ; +0x25, 0x1005e8625\nlea     rsi, a0168; \"0168\"                                             ; +0x2a, 0x1005e862a\nmov     rdi, rax                                                       ; +0x31, 0x1005e8631\ncall    GameManager__getGameVariable                                   ; +0x34, 0x1005e8634\nor      al, r14b                                                       ; +0x39, 0x1005e8639\ncmp     al, 1                                                          ; +0x3c, 0x1005e863c\njnz     short loc_1005E8678                                            ; +0x3e, 0x1005e863e\nmov     rdi, [rbx+240h]                                                ; +0x40, 0x1005e8640\nlea     rsi, [rbx+220h]                                                ; +0x47, 0x1005e8647\nmov     rax, [rdi]                                                     ; +0x4e, 0x1005e864e\ncall    qword ptr [rax+0B8h]                                           ; +0x51, 0x1005e8651\nmov     rax, [rbx]                                                     ; +0x57, 0x1005e8657\nmov     rdi, rbx                                                       ; +0x5a, 0x1005e865a\nmov     esi, 7Dh ; '}'                                                 ; +0x5d, 0x1005e865d\ncall    qword ptr [rax+480h]                                           ; +0x62, 0x1005e8662\nmov     rax, [rbx]                                                     ; +0x68, 0x1005e8668\nmov     rdi, rbx                                                       ; +0x6b, 0x1005e866b\npop     rbx                                                            ; +0x6e, 0x1005e866e\npop     r14                                                            ; +0x6f, 0x1005e866f\npop     rbp                                                            ; +0x71, 0x1005e8671\njmp     qword ptr [rax+540h]                                           ; +0x72, 0x1005e8672\nlea     rdi, [rbx+220h]                                                ; +0x78, 0x1005e8678\nmovss   xmm0, cs:dword_100814FA8                                       ; +0x7f, 0x1005e867f\ncall    cocos2d__CCMoveTo__create                                      ; +0x87, 0x1005e8687\nmovss   xmm0, cs:width                                                 ; +0x8c, 0x1005e868c\nmov     rdi, rax                                                       ; +0x94, 0x1005e8694\ncall    cocos2d__CCEaseInOut__create                                   ; +0x97, 0x1005e8697\nmov     r14, rax                                                       ; +0x9c, 0x1005e869c\nmov     esi, 541h                                                      ; +0x9f, 0x1005e869f\nmov     rdi, rbx                                                       ; +0xa4, 0x1005e86a4\nxor     edx, edx                                                       ; +0xa7, 0x1005e86a7\ncall    cocos2d__CCCallFunc__create                                    ; +0xa9, 0x1005e86a9\nmov     rdi, r14                                                       ; +0xae, 0x1005e86ae\nmov     rsi, rax                                                       ; +0xb1, 0x1005e86b1\nxor     edx, edx                                                       ; +0xb4, 0x1005e86b4\nxor     eax, eax                                                       ; +0xb6, 0x1005e86b6\ncall    sub_1003B5760                                                  ; +0xb8, 0x1005e86b8\nmov     rdi, [rbx+240h]                                                ; +0xbd, 0x1005e86bd\nmov     rsi, rax                                                       ; +0xc4, 0x1005e86c4\ncall    cocos2d__CCNode__runAction                                     ; +0xc7, 0x1005e86c7\nmov     rax, [rbx]                                                     ; +0xcc, 0x1005e86cc\nmov     rdi, rbx                                                       ; +0xcf, 0x1005e86cf\nxor     esi, esi                                                       ; +0xd2, 0x1005e86d2\ncall    qword ptr [rax+480h]                                           ; +0xd4, 0x1005e86d4\nmovss   xmm0, cs:dword_100814FA8                                       ; +0xda, 0x1005e86da\nmov     edi, 7Dh ; '}'                                                 ; +0xe2, 0x1005e86e2\ncall    cocos2d__CCFadeTo__create                                      ; +0xe7, 0x1005e86e7\nmov     rdi, rbx                                                       ; +0xec, 0x1005e86ec\nmov     rsi, rax                                                       ; +0xef, 0x1005e86ef\npop     rbx                                                            ; +0xf2, 0x1005e86f2\npop     r14                                                            ; +0xf3, 0x1005e86f3\npop     rbp                                                            ; +0xf5, 0x1005e86f5\njmp     cocos2d__CCNode__runAction                                     ; +0xf6, 0x1005e86f6", "xrefs": ["<???> @ 0x1008b57f0", "<???> @ 0x1008b88e0", "<???> @ 0x1008b9078", "<???> @ 0x1008fd460", "<???> @ 0x10091d510", "<???> @ 0x100922318", "<???> @ 0x10095e638", "<???> @ 0x100973e70", "<???> @ 0x100978678", "<???> @ 0x10097d920", "<???> @ 0x10098cbe8", "<???> @ 0x100990770"], "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"}