{"type": "func", "start": 5373732848, "end": 5373733130, "name": "OptionsLayer::dOptionsLayer", "pseudocode": "// \n// OptionsLayer::dOptionsLayer from 0x1404ca7f0 to 0x1404ca90a (282 bytes)\n// \n// 3 xrefs:\n// > sub_1404D64FC @ 0x1404d6503\n// > <???> @ 0x1407ce940\n// > <???> @ 0x140929588\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:57 +0000\n// \n\nchar *__fastcall OptionsLayer::dOptionsLayer(char *Block, char a2)\n{\n  char *v4; // rdi\n  __int64 v5; // rax\n  void *v6; // rax\n\n  *(_QWORD *)Block = &OptionsLayer::`vftable';\n  *((_QWORD *)Block + 40) = &OptionsLayer::`vftable';\n  *((_QWORD *)Block + 41) = &OptionsLayer::`vftable';\n  *((_QWORD *)Block + 42) = &OptionsLayer::`vftable';\n  *((_QWORD *)Block + 43) = &OptionsLayer::`vftable';\n  *((_QWORD *)Block + 44) = &OptionsLayer::`vftable';\n  *((_QWORD *)Block + 51) = &OptionsLayer::`vftable';\n  *((_QWORD *)Block + 54) = &OptionsLayer::`vftable';\n  *((_QWORD *)Block + 76) = &OptionsLayer::`vftable';\n  v4 = Block + 616;\n  *((_QWORD *)Block + 77) = &OptionsLayer::`vftable';\n  v5 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v6 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v5 = qword_14090BFD0;\n  }\n  if ( *(char **)(v5 + 984) == v4 )\n    *(_QWORD *)(v5 + 984) = 0;\n  GJDropDownLayer::dGJDropDownLayer((struct cocos2d::CCObject *)Block);\n  if ( (a2 & 1) != 0 )\n    j_j_free(Block);\n  return Block;\n}", "assembly": "; \n; OptionsLayer::dOptionsLayer from 0x1404ca7f0 to 0x1404ca90a (282 bytes)\n; \n; 3 xrefs:\n; > sub_1404D64FC @ 0x1404d6503\n; > <???> @ 0x1407ce940\n; > <???> @ 0x140929588\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:57 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1404ca7f0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1404ca7f5\npush    rdi                                                            ; +0xa, 0x1404ca7fa\nsub     rsp, 20h                                                       ; +0xb, 0x1404ca7fb\nmov     esi, edx                                                       ; +0xf, 0x1404ca7ff\nmov     rbx, rcx                                                       ; +0x11, 0x1404ca801\nlea     rax, ??_7OptionsLayer@@6B@; const OptionsLayer::`vftable'      ; +0x14, 0x1404ca804\nmov     [rcx], rax                                                     ; +0x1b, 0x1404ca80b\nlea     rax, ??_7OptionsLayer@@6B@_0; const OptionsLayer::`vftable'    ; +0x1e, 0x1404ca80e\nmov     [rcx+140h], rax                                                ; +0x25, 0x1404ca815\nlea     rax, ??_7OptionsLayer@@6B@_1; const OptionsLayer::`vftable'    ; +0x2c, 0x1404ca81c\nmov     [rcx+148h], rax                                                ; +0x33, 0x1404ca823\nlea     rax, ??_7OptionsLayer@@6B@_2; const OptionsLayer::`vftable'    ; +0x3a, 0x1404ca82a\nmov     [rcx+150h], rax                                                ; +0x41, 0x1404ca831\nlea     rax, ??_7OptionsLayer@@6B@_3; const OptionsLayer::`vftable'    ; +0x48, 0x1404ca838\nmov     [rcx+158h], rax                                                ; +0x4f, 0x1404ca83f\nlea     rax, ??_7OptionsLayer@@6B@_4; const OptionsLayer::`vftable'    ; +0x56, 0x1404ca846\nmov     [rcx+160h], rax                                                ; +0x5d, 0x1404ca84d\nlea     rax, ??_7OptionsLayer@@6B@_5; const OptionsLayer::`vftable'    ; +0x64, 0x1404ca854\nmov     [rcx+198h], rax                                                ; +0x6b, 0x1404ca85b\nlea     rax, ??_7OptionsLayer@@6B@_6; const OptionsLayer::`vftable'    ; +0x72, 0x1404ca862\nmov     [rcx+1B0h], rax                                                ; +0x79, 0x1404ca869\nlea     rax, ??_7OptionsLayer@@6B@_7; const OptionsLayer::`vftable'    ; +0x80, 0x1404ca870\nmov     [rcx+260h], rax                                                ; +0x87, 0x1404ca877\nlea     rdi, [rcx+268h]                                                ; +0x8e, 0x1404ca87e\nlea     rax, ??_7OptionsLayer@@6B@_8; const OptionsLayer::`vftable'    ; +0x95, 0x1404ca885\nmov     [rdi], rax                                                     ; +0x9c, 0x1404ca88c\nmov     rax, cs:qword_14090BFD0                                        ; +0x9f, 0x1404ca88f\ntest    rax, rax                                                       ; +0xa6, 0x1404ca896\njnz     short loc_1404CA8C7                                            ; +0xa9, 0x1404ca899\nmov     ecx, 6E8h; Size                                                ; +0xab, 0x1404ca89b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb0, 0x1404ca8a0\nmov     rcx, rax                                                       ; +0xb5, 0x1404ca8a5\ncall    GameManager__GameManager                                       ; +0xb8, 0x1404ca8a8\nmov     cs:qword_14090BFD0, rax                                        ; +0xbd, 0x1404ca8ad\nmov     rcx, [rax]                                                     ; +0xc4, 0x1404ca8b4\nmov     rdx, [rcx+48h]                                                 ; +0xc7, 0x1404ca8b7\nmov     rcx, rax                                                       ; +0xcb, 0x1404ca8bb\ncall    rdx                                                            ; +0xce, 0x1404ca8be\nmov     rax, cs:qword_14090BFD0                                        ; +0xd0, 0x1404ca8c0\ncmp     [rax+3D8h], rdi                                                ; +0xd7, 0x1404ca8c7\njnz     short loc_1404CA8DB                                            ; +0xde, 0x1404ca8ce\nmov     qword ptr [rax+3D8h], 0                                        ; +0xe0, 0x1404ca8d0\nmov     rcx, rbx                                                       ; +0xeb, 0x1404ca8db\ncall    GJDropDownLayer__dGJDropDownLayer                              ; +0xee, 0x1404ca8de\nnop                                                                    ; +0xf3, 0x1404ca8e3\ntest    sil, 1                                                         ; +0xf4, 0x1404ca8e4\njz      short loc_1404CA8F7                                            ; +0xf8, 0x1404ca8e8\nmov     edx, 2A0h                                                      ; +0xfa, 0x1404ca8ea\nmov     rcx, rbx; Block                                                ; +0xff, 0x1404ca8ef\ncall    j_j_free                                                       ; +0x102, 0x1404ca8f2\nmov     rax, rbx                                                       ; +0x107, 0x1404ca8f7\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x10a, 0x1404ca8fa\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x10f, 0x1404ca8ff\nadd     rsp, 20h                                                       ; +0x114, 0x1404ca904\npop     rdi                                                            ; +0x118, 0x1404ca908\nretn                                                                   ; +0x119, 0x1404ca909", "xrefs": ["sub_1404D64FC @ 0x1404d6503", "<???> @ 0x1407ce940", "<???> @ 0x140929588"], "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"}