{"type": "func", "start": 4301162240, "end": 4301162488, "name": "GJDropDownLayer::hideLayer", "pseudocode": "// \n// GJDropDownLayer::hideLayer from 0x1005e8700 to 0x1005e87f8 (248 bytes)\n// \n// 14 xrefs:\n// > <???> @ 0x1008b57f8\n// > <???> @ 0x1008b88e8\n// > <???> @ 0x1008b9080\n// > <???> @ 0x1008fd468\n// > <???> @ 0x10091d518\n// > <???> @ 0x100922320\n// > <???> @ 0x10094f380\n// > <???> @ 0x100958498\n// > <???> @ 0x10095e640\n// > <???> @ 0x100973e78\n// > <???> @ 0x100978680\n// > <???> @ 0x10097d928\n// > <???> @ 0x10098cbf0\n// > <???> @ 0x100990778\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::hideLayer(GJDropDownLayer *a1, bool a2)\n{\n  GJDropDownLayerDelegate *m_delegate; // rdi\n  GameManager *v4; // rax\n  cocos2d::CCMoveTo *v5; // rax\n  cocos2d::CCEaseInOut *v6; // r14\n  cocos2d::CCCallFunc *v7; // rax\n  cocos2d::CCSequence *v8; // rax\n  cocos2d::CCFadeTo *v9; // rax\n\n  if ( a1->m_closeOnHide )\n  {\n    m_delegate = a1->m_delegate;\n    if ( m_delegate )\n      ((void (__fastcall *)(GJDropDownLayerDelegate *, GJDropDownLayer *))m_delegate->dropDownLayerWillClose)(\n        m_delegate,\n        a1);\n  }\n  cocos2d::CCNode::stopAllActions(a1->m_mainLayer);\n  v4 = GameManager::sharedState();\n  if ( (a2 | GameManager::getGameVariable(v4, \"0168\")) == 1 )\n  {\n    ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCPoint *))a1->m_mainLayer->setPosition)(\n      a1->m_mainLayer,\n      &a1->m_startPosition);\n    ((void (__fastcall *)(GJDropDownLayer *, _QWORD))a1->setOpacity)(a1, 0);\n    ((void (__fastcall *)(GJDropDownLayer *))a1->layerHidden)(a1);\n  }\n  else\n  {\n    v5 = cocos2d::CCMoveTo::create(0.5, &a1->m_startPosition);\n    v6 = cocos2d::CCEaseInOut::create(v5, 2.0);\n    v7 = cocos2d::CCCallFunc::create(a1, (cocos2d::SEL_CallFunc)0x539uLL);\n    v8 = sub_1003B5760(v6, v7, 0);\n    cocos2d::CCNode::runAction(a1->m_mainLayer, v8);\n    v9 = cocos2d::CCFadeTo::create(0.5, 0);\n    cocos2d::CCNode::runAction(a1, v9);\n  }\n}", "assembly": "; \n; GJDropDownLayer::hideLayer from 0x1005e8700 to 0x1005e87f8 (248 bytes)\n; \n; 14 xrefs:\n; > <???> @ 0x1008b57f8\n; > <???> @ 0x1008b88e8\n; > <???> @ 0x1008b9080\n; > <???> @ 0x1008fd468\n; > <???> @ 0x10091d518\n; > <???> @ 0x100922320\n; > <???> @ 0x10094f380\n; > <???> @ 0x100958498\n; > <???> @ 0x10095e640\n; > <???> @ 0x100973e78\n; > <???> @ 0x100978680\n; > <???> @ 0x10097d928\n; > <???> @ 0x10098cbf0\n; > <???> @ 0x100990778\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, 0x1005e8700\nmov     rbp, rsp                                                       ; +0x1, 0x1005e8701\npush    r14                                                            ; +0x4, 0x1005e8704\npush    rbx                                                            ; +0x6, 0x1005e8706\nmov     r14d, esi                                                      ; +0x7, 0x1005e8707\nmov     rbx, rdi                                                       ; +0xa, 0x1005e870a\ncmp     byte ptr [rdi+248h], 1                                         ; +0xd, 0x1005e870d\njnz     short loc_1005E872A                                            ; +0x14, 0x1005e8714\nmov     rdi, [rbx+250h]                                                ; +0x16, 0x1005e8716\ntest    rdi, rdi                                                       ; +0x1d, 0x1005e871d\njz      short loc_1005E872A                                            ; +0x20, 0x1005e8720\nmov     rax, [rdi]                                                     ; +0x22, 0x1005e8722\nmov     rsi, rbx                                                       ; +0x25, 0x1005e8725\ncall    qword ptr [rax]                                                ; +0x28, 0x1005e8728\nmov     rdi, [rbx+240h]                                                ; +0x2a, 0x1005e872a\ncall    cocos2d__CCNode__stopAllActions                                ; +0x31, 0x1005e8731\ncall    GameManager__sharedState                                       ; +0x36, 0x1005e8736\nlea     rsi, a0168; \"0168\"                                             ; +0x3b, 0x1005e873b\nmov     rdi, rax                                                       ; +0x42, 0x1005e8742\ncall    GameManager__getGameVariable                                   ; +0x45, 0x1005e8745\nor      al, r14b                                                       ; +0x4a, 0x1005e874a\ncmp     al, 1                                                          ; +0x4d, 0x1005e874d\njnz     short loc_1005E8786                                            ; +0x4f, 0x1005e874f\nmov     rdi, [rbx+240h]                                                ; +0x51, 0x1005e8751\nlea     rsi, [rbx+228h]                                                ; +0x58, 0x1005e8758\nmov     rax, [rdi]                                                     ; +0x5f, 0x1005e875f\ncall    qword ptr [rax+0B8h]                                           ; +0x62, 0x1005e8762\nmov     rax, [rbx]                                                     ; +0x68, 0x1005e8768\nmov     rdi, rbx                                                       ; +0x6b, 0x1005e876b\nxor     esi, esi                                                       ; +0x6e, 0x1005e876e\ncall    qword ptr [rax+480h]                                           ; +0x70, 0x1005e8770\nmov     rax, [rbx]                                                     ; +0x76, 0x1005e8776\nmov     rdi, rbx                                                       ; +0x79, 0x1005e8779\npop     rbx                                                            ; +0x7c, 0x1005e877c\npop     r14                                                            ; +0x7d, 0x1005e877d\npop     rbp                                                            ; +0x7f, 0x1005e877f\njmp     qword ptr [rax+538h]                                           ; +0x80, 0x1005e8780\nlea     rdi, [rbx+228h]                                                ; +0x86, 0x1005e8786\nmovss   xmm0, cs:dword_100814FA8                                       ; +0x8d, 0x1005e878d\ncall    cocos2d__CCMoveTo__create                                      ; +0x95, 0x1005e8795\nmovss   xmm0, cs:width                                                 ; +0x9a, 0x1005e879a\nmov     rdi, rax                                                       ; +0xa2, 0x1005e87a2\ncall    cocos2d__CCEaseInOut__create                                   ; +0xa5, 0x1005e87a5\nmov     r14, rax                                                       ; +0xaa, 0x1005e87aa\nmov     esi, 539h                                                      ; +0xad, 0x1005e87ad\nmov     rdi, rbx                                                       ; +0xb2, 0x1005e87b2\nxor     edx, edx                                                       ; +0xb5, 0x1005e87b5\ncall    cocos2d__CCCallFunc__create                                    ; +0xb7, 0x1005e87b7\nmov     rdi, r14                                                       ; +0xbc, 0x1005e87bc\nmov     rsi, rax                                                       ; +0xbf, 0x1005e87bf\nxor     edx, edx                                                       ; +0xc2, 0x1005e87c2\nxor     eax, eax                                                       ; +0xc4, 0x1005e87c4\ncall    sub_1003B5760                                                  ; +0xc6, 0x1005e87c6\nmov     rdi, [rbx+240h]                                                ; +0xcb, 0x1005e87cb\nmov     rsi, rax                                                       ; +0xd2, 0x1005e87d2\ncall    cocos2d__CCNode__runAction                                     ; +0xd5, 0x1005e87d5\nmovss   xmm0, cs:dword_100814FA8                                       ; +0xda, 0x1005e87da\nxor     edi, edi                                                       ; +0xe2, 0x1005e87e2\ncall    cocos2d__CCFadeTo__create                                      ; +0xe4, 0x1005e87e4\nmov     rdi, rbx                                                       ; +0xe9, 0x1005e87e9\nmov     rsi, rax                                                       ; +0xec, 0x1005e87ec\npop     rbx                                                            ; +0xef, 0x1005e87ef\npop     r14                                                            ; +0xf0, 0x1005e87f0\npop     rbp                                                            ; +0xf2, 0x1005e87f2\njmp     cocos2d__CCNode__runAction                                     ; +0xf3, 0x1005e87f3", "xrefs": ["<???> @ 0x1008b57f8", "<???> @ 0x1008b88e8", "<???> @ 0x1008b9080", "<???> @ 0x1008fd468", "<???> @ 0x10091d518", "<???> @ 0x100922320", "<???> @ 0x10094f380", "<???> @ 0x100958498", "<???> @ 0x10095e640", "<???> @ 0x100973e78", "<???> @ 0x100978680", "<???> @ 0x10097d928", "<???> @ 0x10098cbf0", "<???> @ 0x100990778"], "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"}