{"type": "func", "start": 6442566784, "end": 6442566934, "name": "sub_18001C480", "pseudocode": "// \n// sub_18001C480 from 0x18001c480 to 0x18001c516 (150 bytes)\n// \n// 4 xrefs:\n// > sub_18001DC68 @ 0x18001dc6f\n// > <???> @ 0x18002b7b8\n// > <???> @ 0x18004ce3c\n// > <???> @ 0x18004ce48\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:43 +0000\n// \n\ncocos2d::CCNode *__fastcall sub_18001C480(cocos2d::CCNode *Block, char a2)\n{\n  int v3; // esi\n\n  v3 = a2 & 1;\n  if ( (a2 & 2) != 0 )\n  {\n    sub_18001F0B0(Block, 336, *((_QWORD *)Block - 1), cocos2d::extension::CCTableViewCell::~CCTableViewCell);\n    if ( v3 )\n      j_j_j_free((char *)Block - 8);\n    return (cocos2d::CCNode *)((char *)Block - 8);\n  }\n  else\n  {\n    *((_QWORD *)Block + 40) = &cocos2d::extension::CCSortableObject::`vftable';\n    cocos2d::CCNode::~CCNode(Block);\n    if ( v3 )\n      j_j_free(Block);\n    return Block;\n  }\n}", "assembly": "; \n; sub_18001C480 from 0x18001c480 to 0x18001c516 (150 bytes)\n; \n; 4 xrefs:\n; > sub_18001DC68 @ 0x18001dc6f\n; > <???> @ 0x18002b7b8\n; > <???> @ 0x18004ce3c\n; > <???> @ 0x18004ce48\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:43 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18001c480\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18001c485\npush    rdi                                                            ; +0xa, 0x18001c48a\nsub     rsp, 20h                                                       ; +0xb, 0x18001c48b\nmov     rbx, rcx                                                       ; +0xf, 0x18001c48f\nmov     esi, edx                                                       ; +0x12, 0x18001c492\nand     esi, 1                                                         ; +0x14, 0x18001c494\ntest    dl, 2                                                          ; +0x17, 0x18001c497\njz      short loc_18001C4DE                                            ; +0x1a, 0x18001c49a\nlea     r9, ??1CCTableViewCell@extension@cocos2d@@UEAA@XZ; cocos2d::extension::CCTableViewCell::~CCTableViewCell(void) ; +0x1c, 0x18001c49c\nmov     r8, [rcx-8]                                                    ; +0x23, 0x18001c4a3\nmov     edx, 150h                                                      ; +0x27, 0x18001c4a7\ncall    sub_18001F0B0                                                  ; +0x2c, 0x18001c4ac\ntest    esi, esi                                                       ; +0x31, 0x18001c4b1\njz      short loc_18001C4CA                                            ; +0x33, 0x18001c4b3\nimul    rdx, [rbx-8], 150h                                             ; +0x35, 0x18001c4b5\nadd     rdx, 8                                                         ; +0x3d, 0x18001c4bd\nlea     rcx, [rbx-8]; Block                                            ; +0x41, 0x18001c4c1\ncall    j_j_j_free                                                     ; +0x45, 0x18001c4c5\nlea     rax, [rbx-8]                                                   ; +0x4a, 0x18001c4ca\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4e, 0x18001c4ce\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x53, 0x18001c4d3\nadd     rsp, 20h                                                       ; +0x58, 0x18001c4d8\npop     rdi                                                            ; +0x5c, 0x18001c4dc\nretn                                                                   ; +0x5d, 0x18001c4dd\nlea     rax, ??_7CCSortableObject@extension@cocos2d@@6B@; const cocos2d::extension::CCSortableObject::`vftable' ; +0x5e, 0x18001c4de\nmov     [rcx+140h], rax                                                ; +0x65, 0x18001c4e5\ncall    cs:??1CCNode@cocos2d@@UEAA@XZ; cocos2d::CCNode::~CCNode(void)  ; +0x6c, 0x18001c4ec\ntest    esi, esi                                                       ; +0x72, 0x18001c4f2\njz      short loc_18001C503                                            ; +0x74, 0x18001c4f4\nmov     edx, 150h                                                      ; +0x76, 0x18001c4f6\nmov     rcx, rbx; Block                                                ; +0x7b, 0x18001c4fb\ncall    j_j_free                                                       ; +0x7e, 0x18001c4fe\nmov     rax, rbx                                                       ; +0x83, 0x18001c503\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x86, 0x18001c506\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x8b, 0x18001c50b\nadd     rsp, 20h                                                       ; +0x90, 0x18001c510\npop     rdi                                                            ; +0x94, 0x18001c514\nretn                                                                   ; +0x95, 0x18001c515", "xrefs": ["sub_18001DC68 @ 0x18001dc6f", "<???> @ 0x18002b7b8", "<???> @ 0x18004ce3c", "<???> @ 0x18004ce48"], "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"}