{"type": "func", "start": 6442890448, "end": 6442890582, "name": "sub_18006B4D0", "pseudocode": "// \n// sub_18006B4D0 from 0x18006b4d0 to 0x18006b556 (134 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180100278\n// > <???> @ 0x1801b3dd4\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_QWORD *__fastcall sub_18006B4D0(_QWORD *a1, char a2)\n{\n  int v3; // edi\n\n  v3 = a2 & 1;\n  if ( (a2 & 2) != 0 )\n  {\n    `eh vector destructor iterator'(\n      a1,\n      0x78u,\n      *(a1 - 1),\n      (void (*)(void *))cocos2d::CCEGLViewProtocol::~CCEGLViewProtocol);\n    if ( v3 )\n      j_j_j_free_0(a1 - 1);\n    return a1 - 1;\n  }\n  else\n  {\n    *a1 = &cocos2d::CCEGLViewProtocol::`vftable';\n    if ( (a2 & 1) != 0 )\n      j_j_free_0(a1);\n    return a1;\n  }\n}", "assembly": "; \n; sub_18006B4D0 from 0x18006b4d0 to 0x18006b556 (134 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180100278\n; > <???> @ 0x1801b3dd4\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_0], rbx                                               ; +0x0, 0x18006b4d0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18006b4d5\npush    rdi                                                            ; +0xa, 0x18006b4da\nsub     rsp, 20h                                                       ; +0xb, 0x18006b4db\nmov     rbx, rcx                                                       ; +0xf, 0x18006b4df\nmov     edi, edx                                                       ; +0x12, 0x18006b4e2\nand     edi, 1                                                         ; +0x14, 0x18006b4e4\ntest    dl, 2                                                          ; +0x17, 0x18006b4e7\njz      short loc_18006B52B                                            ; +0x1a, 0x18006b4ea\nlea     r9, ??1CCEGLViewProtocol@cocos2d@@UEAA@XZ; void (*)(void *)    ; +0x1c, 0x18006b4ec\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x23, 0x18006b4f3\nmov     edx, 78h ; 'x'; unsigned __int64                               ; +0x27, 0x18006b4f7\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x2c, 0x18006b4fc\ntest    edi, edi                                                       ; +0x31, 0x18006b501\njz      short loc_18006B517                                            ; +0x33, 0x18006b503\nimul    rdx, [rbx-8], 78h ; 'x'                                        ; +0x35, 0x18006b505\nadd     rdx, 8                                                         ; +0x3a, 0x18006b50a\nlea     rcx, [rbx-8]; Block                                            ; +0x3e, 0x18006b50e\ncall    j_j_j_free_0                                                   ; +0x42, 0x18006b512\nlea     rax, [rbx-8]                                                   ; +0x47, 0x18006b517\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4b, 0x18006b51b\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x50, 0x18006b520\nadd     rsp, 20h                                                       ; +0x55, 0x18006b525\npop     rdi                                                            ; +0x59, 0x18006b529\nretn                                                                   ; +0x5a, 0x18006b52a\nlea     rax, ??_7CCEGLViewProtocol@cocos2d@@6B@; const cocos2d::CCEGLViewProtocol::`vftable' ; +0x5b, 0x18006b52b\nmov     [rcx], rax                                                     ; +0x62, 0x18006b532\ntest    edi, edi                                                       ; +0x65, 0x18006b535\njz      short loc_18006B543                                            ; +0x67, 0x18006b537\nmov     edx, 78h ; 'x'                                                 ; +0x69, 0x18006b539\ncall    j_j_free_0                                                     ; +0x6e, 0x18006b53e\nmov     rax, rbx                                                       ; +0x73, 0x18006b543\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x76, 0x18006b546\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x7b, 0x18006b54b\nadd     rsp, 20h                                                       ; +0x80, 0x18006b550\npop     rdi                                                            ; +0x84, 0x18006b554\nretn                                                                   ; +0x85, 0x18006b555", "xrefs": ["<???> @ 0x180100278", "<???> @ 0x1801b3dd4"], "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"}