{"type": "func", "start": 6442544128, "end": 6442544265, "name": "sub_180016C00", "pseudocode": "// \n// sub_180016C00 from 0x180016c00 to 0x180016c89 (137 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18002b368\n// > <???> @ 0x18002b740\n// > <???> @ 0x18004c8fc\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 12:15:42 +0000\n// \n\n_QWORD *__fastcall sub_180016C00(_QWORD *a1, char a2)\n{\n  int v3; // esi\n\n  v3 = a2 & 1;\n  if ( (a2 & 2) != 0 )\n  {\n    sub_18001F0B0(a1, 8, *(a1 - 1), cocos2d::extension::CCTableViewDelegate::~CCTableViewDelegate);\n    if ( v3 )\n      j_j_j_free(a1 - 1);\n    return a1 - 1;\n  }\n  else\n  {\n    *a1 = &cocos2d::extension::CCScrollViewDelegate::`vftable';\n    if ( (a2 & 1) != 0 )\n      j_j_free(a1);\n    return a1;\n  }\n}", "assembly": "; \n; sub_180016C00 from 0x180016c00 to 0x180016c89 (137 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18002b368\n; > <???> @ 0x18002b740\n; > <???> @ 0x18004c8fc\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 12:15:42 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180016c00\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180016c05\npush    rdi                                                            ; +0xa, 0x180016c0a\nsub     rsp, 20h                                                       ; +0xb, 0x180016c0b\nmov     rbx, rcx                                                       ; +0xf, 0x180016c0f\nmov     esi, edx                                                       ; +0x12, 0x180016c12\nand     esi, 1                                                         ; +0x14, 0x180016c14\ntest    dl, 2                                                          ; +0x17, 0x180016c17\njz      short loc_180016C5E                                            ; +0x1a, 0x180016c1a\nlea     r9, ??1CCTableViewDelegate@extension@cocos2d@@UEAA@XZ; cocos2d::extension::CCTableViewDelegate::~CCTableViewDelegate(void) ; +0x1c, 0x180016c1c\nmov     r8, [rcx-8]                                                    ; +0x23, 0x180016c23\nmov     edx, 8                                                         ; +0x27, 0x180016c27\ncall    sub_18001F0B0                                                  ; +0x2c, 0x180016c2c\ntest    esi, esi                                                       ; +0x31, 0x180016c31\njz      short loc_180016C4A                                            ; +0x33, 0x180016c33\nmov     rdx, [rbx-8]                                                   ; +0x35, 0x180016c35\nlea     rdx, ds:8[rdx*8]                                               ; +0x39, 0x180016c39\nlea     rcx, [rbx-8]; Block                                            ; +0x41, 0x180016c41\ncall    j_j_j_free                                                     ; +0x45, 0x180016c45\nlea     rax, [rbx-8]                                                   ; +0x4a, 0x180016c4a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4e, 0x180016c4e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x53, 0x180016c53\nadd     rsp, 20h                                                       ; +0x58, 0x180016c58\npop     rdi                                                            ; +0x5c, 0x180016c5c\nretn                                                                   ; +0x5d, 0x180016c5d\nlea     rax, ??_7CCScrollViewDelegate@extension@cocos2d@@6B@; const cocos2d::extension::CCScrollViewDelegate::`vftable' ; +0x5e, 0x180016c5e\nmov     [rcx], rax                                                     ; +0x65, 0x180016c65\ntest    esi, esi                                                       ; +0x68, 0x180016c68\njz      short loc_180016C76                                            ; +0x6a, 0x180016c6a\nmov     edx, 8                                                         ; +0x6c, 0x180016c6c\ncall    j_j_free                                                       ; +0x71, 0x180016c71\nmov     rax, rbx                                                       ; +0x76, 0x180016c76\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x79, 0x180016c79\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x7e, 0x180016c7e\nadd     rsp, 20h                                                       ; +0x83, 0x180016c83\npop     rdi                                                            ; +0x87, 0x180016c87\nretn                                                                   ; +0x88, 0x180016c88", "xrefs": ["<???> @ 0x18002b368", "<???> @ 0x18002b740", "<???> @ 0x18004c8fc"], "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"}