{"type": "func", "start": 5373740432, "end": 5373740910, "name": "OptionsLayer::layerHidden", "pseudocode": "// \n// OptionsLayer::layerHidden from 0x1404cc590 to 0x1404cc76e (478 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1407ced88\n// > <???> @ 0x14092966c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:32:58 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall OptionsLayer::layerHidden(_BYTE *a1)\n{\n  int v2; // ecx\n  int v3; // ecx\n  cocos2d::CCNode *v4; // rax\n  cocos2d::CCObject *v5; // rbx\n  __int64 v6; // rax\n  struct cocos2d::CCAction *(__fastcall *v7)(cocos2d::CCNode *, char); // r8\n  cocos2d::CCNode *v8; // rcx\n  cocos2d::CCNode *v9; // rbx\n  __int64 v10; // rax\n  __int64 result; // rax\n  __int64 v12; // rdx\n\n  v2 = *((_DWORD *)a1 + 160) - 1;\n  if ( !v2 )\n  {\n    v4 = (cocos2d::CCNode *)SongsLayer::create();\nLABEL_11:\n    v9 = v4;\n    v10 = (*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 504LL))(a1);\n    (*(void (__fastcall **)(__int64, cocos2d::CCNode *, __int64))(*(_QWORD *)v10 + 456LL))(v10, v9, 100);\n    v7 = *(struct cocos2d::CCAction *(__fastcall **)(cocos2d::CCNode *, char))(*(_QWORD *)v9 + 1080LL);\n    v8 = v9;\n    goto LABEL_12;\n  }\n  v3 = v2 - 1;\n  if ( v3 )\n  {\n    if ( v3 != 1 )\n      goto LABEL_13;\n    v4 = (cocos2d::CCNode *)AccountLayer::create();\n    goto LABEL_11;\n  }\n  v5 = (cocos2d::CCObject *)operator new(0x280u);\n  GJDropDownLayer::GJDropDownLayer((__int64)v5);\n  *(_QWORD *)v5 = &SupportLayer::`vftable';\n  *((_QWORD *)v5 + 40) = &SupportLayer::`vftable';\n  *((_QWORD *)v5 + 41) = &SupportLayer::`vftable';\n  *((_QWORD *)v5 + 42) = &SupportLayer::`vftable';\n  *((_QWORD *)v5 + 43) = &SupportLayer::`vftable';\n  *((_QWORD *)v5 + 44) = &SupportLayer::`vftable';\n  *((_QWORD *)v5 + 51) = &SupportLayer::`vftable';\n  *((_QWORD *)v5 + 54) = &SupportLayer::`vftable';\n  *((_QWORD *)v5 + 76) = &SupportLayer::`vftable';\n  *((_QWORD *)v5 + 77) = &SupportLayer::`vftable';\n  *((_QWORD *)v5 + 78) = &SupportLayer::`vftable';\n  *((_QWORD *)v5 + 79) = 0;\n  if ( GJDropDownLayer::init((__int64 *)v5, (int)\"Support\", 220.0, 0) )\n  {\n    cocos2d::CCObject::autorelease(v5);\n  }\n  else\n  {\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);\n    v5 = nullptr;\n  }\n  v6 = (*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 504LL))(a1);\n  (*(void (__fastcall **)(__int64, cocos2d::CCObject *, __int64))(*(_QWORD *)v6 + 456LL))(v6, v5, 100);\n  v7 = *(struct cocos2d::CCAction *(__fastcall **)(cocos2d::CCNode *, char))(*(_QWORD *)v5 + 1080LL);\n  v8 = v5;\n  if ( v7 == GJDropDownLayer::showLayer )\n  {\n    GJDropDownLayer::showLayer(v5, 0);\n    goto LABEL_13;\n  }\nLABEL_12:\n  v7(v8, 0);\nLABEL_13:\n  result = (*(__int64 (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)a1 + 336LL))(a1, 0);\n  if ( a1[584] )\n  {\n    LOBYTE(v12) = 1;\n    return (*(__int64 (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 520LL))(a1, v12);\n  }\n  return result;\n}", "assembly": "; \n; OptionsLayer::layerHidden from 0x1404cc590 to 0x1404cc76e (478 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1407ced88\n; > <???> @ 0x14092966c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:32:58 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1404cc590\npush    rdi                                                            ; +0x5, 0x1404cc595\nsub     rsp, 20h                                                       ; +0x6, 0x1404cc596\nmov     rdi, rcx                                                       ; +0xa, 0x1404cc59a\nmov     ecx, [rcx+280h]                                                ; +0xd, 0x1404cc59d\nsub     ecx, 1                                                         ; +0x13, 0x1404cc5a3\njz      loc_1404CC6FC                                                  ; +0x16, 0x1404cc5a6\nsub     ecx, 1                                                         ; +0x1c, 0x1404cc5ac\njz      short loc_1404CC5C4                                            ; +0x1f, 0x1404cc5af\ncmp     ecx, 1                                                         ; +0x21, 0x1404cc5b1\njnz     loc_1404CC73E                                                  ; +0x24, 0x1404cc5b4\ncall    AccountLayer__create                                           ; +0x2a, 0x1404cc5ba\njmp     loc_1404CC701                                                  ; +0x2f, 0x1404cc5bf\nmov     ecx, 280h; Size                                                ; +0x34, 0x1404cc5c4\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x39, 0x1404cc5c9\nmov     rbx, rax                                                       ; +0x3e, 0x1404cc5ce\nmov     [rsp+28h+arg_0], rax                                           ; +0x41, 0x1404cc5d1\nmov     rcx, rax                                                       ; +0x46, 0x1404cc5d6\ncall    GJDropDownLayer__GJDropDownLayer                               ; +0x49, 0x1404cc5d9\nlea     rax, ??_7SupportLayer@@6B@; const SupportLayer::`vftable'      ; +0x4e, 0x1404cc5de\nmov     [rbx], rax                                                     ; +0x55, 0x1404cc5e5\nlea     rax, ??_7SupportLayer@@6B@_0; const SupportLayer::`vftable'    ; +0x58, 0x1404cc5e8\nmov     [rbx+140h], rax                                                ; +0x5f, 0x1404cc5ef\nlea     rax, ??_7SupportLayer@@6B@_1; const SupportLayer::`vftable'    ; +0x66, 0x1404cc5f6\nmov     [rbx+148h], rax                                                ; +0x6d, 0x1404cc5fd\nlea     rax, ??_7SupportLayer@@6B@_2; const SupportLayer::`vftable'    ; +0x74, 0x1404cc604\nmov     [rbx+150h], rax                                                ; +0x7b, 0x1404cc60b\nlea     rax, ??_7SupportLayer@@6B@_3; const SupportLayer::`vftable'    ; +0x82, 0x1404cc612\nmov     [rbx+158h], rax                                                ; +0x89, 0x1404cc619\nlea     rax, ??_7SupportLayer@@6B@_4; const SupportLayer::`vftable'    ; +0x90, 0x1404cc620\nmov     [rbx+160h], rax                                                ; +0x97, 0x1404cc627\nlea     rax, ??_7SupportLayer@@6B@_5; const SupportLayer::`vftable'    ; +0x9e, 0x1404cc62e\nmov     [rbx+198h], rax                                                ; +0xa5, 0x1404cc635\nlea     rax, ??_7SupportLayer@@6B@_6; const SupportLayer::`vftable'    ; +0xac, 0x1404cc63c\nmov     [rbx+1B0h], rax                                                ; +0xb3, 0x1404cc643\nlea     rax, ??_7SupportLayer@@6B@_7; const SupportLayer::`vftable'    ; +0xba, 0x1404cc64a\nmov     [rbx+260h], rax                                                ; +0xc1, 0x1404cc651\nlea     rax, ??_7SupportLayer@@6B@_8; const SupportLayer::`vftable'    ; +0xc8, 0x1404cc658\nmov     [rbx+268h], rax                                                ; +0xcf, 0x1404cc65f\nlea     rax, ??_7SupportLayer@@6B@_9; const SupportLayer::`vftable'    ; +0xd6, 0x1404cc666\nmov     [rbx+270h], rax                                                ; +0xdd, 0x1404cc66d\nmov     qword ptr [rbx+278h], 0                                        ; +0xe4, 0x1404cc674\nxor     r9d, r9d                                                       ; +0xef, 0x1404cc67f\nmovss   xmm2, cs:dword_14083591C                                       ; +0xf2, 0x1404cc682\nlea     rdx, aSupport; \"Support\"                                       ; +0xfa, 0x1404cc68a\nmov     rcx, rbx                                                       ; +0x101, 0x1404cc691\ncall    GJDropDownLayer__init                                          ; +0x104, 0x1404cc694\nmov     rcx, rbx                                                       ; +0x109, 0x1404cc699\ntest    al, al                                                         ; +0x10c, 0x1404cc69c\njz      short loc_1404CC6A8                                            ; +0x10e, 0x1404cc69e\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x110, 0x1404cc6a0\njmp     short loc_1404CC6B5                                            ; +0x116, 0x1404cc6a6\nmov     rax, [rbx]                                                     ; +0x118, 0x1404cc6a8\nmov     edx, 1                                                         ; +0x11b, 0x1404cc6ab\ncall    qword ptr [rax+8]                                              ; +0x120, 0x1404cc6b0\nxor     ebx, ebx                                                       ; +0x123, 0x1404cc6b3\nmov     rax, [rdi]                                                     ; +0x125, 0x1404cc6b5\nmov     rcx, rdi                                                       ; +0x128, 0x1404cc6b8\ncall    qword ptr [rax+1F8h]                                           ; +0x12b, 0x1404cc6bb\nmov     rdx, [rax]                                                     ; +0x131, 0x1404cc6c1\nmov     r9, [rdx+1C8h]                                                 ; +0x134, 0x1404cc6c4\nmov     r8d, 64h ; 'd'                                                 ; +0x13b, 0x1404cc6cb\nmov     rdx, rbx                                                       ; +0x141, 0x1404cc6d1\nmov     rcx, rax                                                       ; +0x144, 0x1404cc6d4\ncall    r9                                                             ; +0x147, 0x1404cc6d7\nmov     rax, [rbx]                                                     ; +0x14a, 0x1404cc6da\nmov     r8, [rax+438h]                                                 ; +0x14d, 0x1404cc6dd\nlea     rax, GJDropDownLayer__showLayer                                ; +0x154, 0x1404cc6e4\nxor     edx, edx                                                       ; +0x15b, 0x1404cc6eb\nmov     rcx, rbx                                                       ; +0x15d, 0x1404cc6ed\ncmp     r8, rax                                                        ; +0x160, 0x1404cc6f0\njnz     short loc_1404CC73B                                            ; +0x163, 0x1404cc6f3\ncall    GJDropDownLayer__showLayer                                     ; +0x165, 0x1404cc6f5\njmp     short loc_1404CC73E                                            ; +0x16a, 0x1404cc6fa\ncall    SongsLayer__create                                             ; +0x16c, 0x1404cc6fc\nmov     rcx, [rdi]                                                     ; +0x171, 0x1404cc701\nmov     rdx, [rcx+1F8h]                                                ; +0x174, 0x1404cc704\nmov     rbx, rax                                                       ; +0x17b, 0x1404cc70b\nmov     rcx, rdi                                                       ; +0x17e, 0x1404cc70e\ncall    rdx                                                            ; +0x181, 0x1404cc711\nmov     rcx, [rax]                                                     ; +0x183, 0x1404cc713\nmov     r9, [rcx+1C8h]                                                 ; +0x186, 0x1404cc716\nmov     r8d, 64h ; 'd'                                                 ; +0x18d, 0x1404cc71d\nmov     rdx, rbx                                                       ; +0x193, 0x1404cc723\nmov     rcx, rax                                                       ; +0x196, 0x1404cc726\ncall    r9                                                             ; +0x199, 0x1404cc729\nmov     rcx, [rbx]                                                     ; +0x19c, 0x1404cc72c\nmov     r8, [rcx+438h]                                                 ; +0x19f, 0x1404cc72f\nxor     edx, edx                                                       ; +0x1a6, 0x1404cc736\nmov     rcx, rbx                                                       ; +0x1a8, 0x1404cc738\ncall    r8                                                             ; +0x1ab, 0x1404cc73b\nmov     rax, [rdi]                                                     ; +0x1ae, 0x1404cc73e\nxor     edx, edx                                                       ; +0x1b1, 0x1404cc741\nmov     rcx, rdi                                                       ; +0x1b3, 0x1404cc743\ncall    qword ptr [rax+150h]                                           ; +0x1b6, 0x1404cc746\ncmp     byte ptr [rdi+248h], 0                                         ; +0x1bc, 0x1404cc74c\njz      short loc_1404CC763                                            ; +0x1c3, 0x1404cc753\nmov     rax, [rdi]                                                     ; +0x1c5, 0x1404cc755\nmov     dl, 1                                                          ; +0x1c8, 0x1404cc758\nmov     rcx, rdi                                                       ; +0x1ca, 0x1404cc75a\ncall    qword ptr [rax+208h]                                           ; +0x1cd, 0x1404cc75d\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x1d3, 0x1404cc763\nadd     rsp, 20h                                                       ; +0x1d8, 0x1404cc768\npop     rdi                                                            ; +0x1dc, 0x1404cc76c\nretn                                                                   ; +0x1dd, 0x1404cc76d", "xrefs": ["<???> @ 0x1407ced88", "<???> @ 0x14092966c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}