{"type": "func", "start": 6442688640, "end": 6442688904, "name": "cocos2d::CCSplitRows::copyWithZone", "pseudocode": "// \n// cocos2d::CCSplitRows::copyWithZone from 0x18003a080 to 0x18003a188 (264 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800ea7e8\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b0dec\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\nstruct cocos2d::CCObject *__fastcall cocos2d::CCSplitRows::copyWithZone(cocos2d::CCSplitRows *this, void **a2)\n{\n  tinyxml2::XMLHandle *v2; // rax\n  tinyxml2::XMLHandle *v4; // rdi\n  char *v5; // rbx\n  tinyxml2::XMLHandle *v6; // rax\n  __int64 v7; // rdx\n\n  v2 = (tinyxml2::XMLHandle *)a2;\n  v4 = nullptr;\n  if ( !a2 || (v5 = (char *)*a2) == nullptr )\n  {\n    v5 = (char *)operator new(0x78u);\n    if ( v5 )\n    {\n      *(_OWORD *)v5 = 0;\n      *((_OWORD *)v5 + 1) = 0;\n      *((_OWORD *)v5 + 2) = 0;\n      *((_OWORD *)v5 + 3) = 0;\n      *((_OWORD *)v5 + 4) = 0;\n      *((_OWORD *)v5 + 5) = 0;\n      *((_OWORD *)v5 + 6) = 0;\n      *((_QWORD *)v5 + 14) = 0;\n      cocos2d::CCAction::CCAction((cocos2d::CCAction *)v5);\n      *((_DWORD *)v5 + 20) = 0;\n      *(_QWORD *)v5 = &cocos2d::CCGridAction::`vftable';\n      cocos2d::CCSize::CCSize((cocos2d::CCSize *)v5 + 12);\n      *(_QWORD *)v5 = &cocos2d::CCSplitRows::`vftable';\n      cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v5 + 108));\n    }\n    else\n    {\n      v5 = nullptr;\n    }\n    v6 = (tinyxml2::XMLHandle *)operator new(8u);\n    if ( v6 )\n      v2 = tinyxml2::XMLHandle::XMLHandle(v6, (struct tinyxml2::XMLNode *)v5);\n    else\n      v2 = nullptr;\n    v4 = v2;\n  }\n  cocos2d::CCGridAction::copyWithZone(this, (void **)v2);\n  (*(void (__fastcall **)(char *, __int64, _QWORD))(*(_QWORD *)v5 + 128LL))(v5, v7, *((unsigned int *)this + 26));\n  if ( v4 )\n    j_j_free_0(v4);\n  return (struct cocos2d::CCObject *)v5;\n}", "assembly": "; \n; cocos2d::CCSplitRows::copyWithZone from 0x18003a080 to 0x18003a188 (264 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800ea7e8\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b0dec\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_8], rbx                                               ; +0x0, 0x18003a080\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18003a085\npush    rdi                                                            ; +0xa, 0x18003a08a\nsub     rsp, 20h                                                       ; +0xb, 0x18003a08b\nmov     rax, rdx                                                       ; +0xf, 0x18003a08f\nmov     rsi, rcx                                                       ; +0x12, 0x18003a092\nxor     edi, edi                                                       ; +0x15, 0x18003a095\ntest    rdx, rdx                                                       ; +0x17, 0x18003a097\njz      short loc_18003A0A8                                            ; +0x1a, 0x18003a09a\nmov     rbx, [rdx]                                                     ; +0x1c, 0x18003a09c\ntest    rbx, rbx                                                       ; +0x1f, 0x18003a09f\njnz     loc_18003A142                                                  ; +0x22, 0x18003a0a2\nmov     ecx, 78h ; 'x'; Size                                           ; +0x28, 0x18003a0a8\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2d, 0x18003a0ad\nmov     rbx, rax                                                       ; +0x32, 0x18003a0b2\nmov     [rsp+28h+arg_0], rax                                           ; +0x35, 0x18003a0b5\ntest    rax, rax                                                       ; +0x3a, 0x18003a0ba\njz      short loc_18003A118                                            ; +0x3d, 0x18003a0bd\nxorps   xmm0, xmm0                                                     ; +0x3f, 0x18003a0bf\nxor     eax, eax                                                       ; +0x42, 0x18003a0c2\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x44, 0x18003a0c4\nmovups  xmmword ptr [rbx+10h], xmm0                                    ; +0x47, 0x18003a0c7\nmovups  xmmword ptr [rbx+20h], xmm0                                    ; +0x4b, 0x18003a0cb\nmovups  xmmword ptr [rbx+30h], xmm0                                    ; +0x4f, 0x18003a0cf\nmovups  xmmword ptr [rbx+40h], xmm0                                    ; +0x53, 0x18003a0d3\nmovups  xmmword ptr [rbx+50h], xmm0                                    ; +0x57, 0x18003a0d7\nmovups  xmmword ptr [rbx+60h], xmm0                                    ; +0x5b, 0x18003a0db\nmov     [rbx+70h], rax                                                 ; +0x5f, 0x18003a0df\nmov     rcx, rbx; this                                                 ; +0x63, 0x18003a0e3\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x66, 0x18003a0e6\nmov     [rbx+50h], edi                                                 ; +0x6b, 0x18003a0eb\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x6e, 0x18003a0ee\nmov     [rbx], rax                                                     ; +0x75, 0x18003a0f5\nlea     rcx, [rbx+60h]; this                                           ; +0x78, 0x18003a0f8\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x7c, 0x18003a0fc\nnop                                                                    ; +0x81, 0x18003a101\nlea     rax, ??_7CCSplitRows@cocos2d@@6B@; const cocos2d::CCSplitRows::`vftable' ; +0x82, 0x18003a102\nmov     [rbx], rax                                                     ; +0x89, 0x18003a109\nlea     rcx, [rbx+6Ch]; this                                           ; +0x8c, 0x18003a10c\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x90, 0x18003a110\nnop                                                                    ; +0x95, 0x18003a115\njmp     short loc_18003A11B                                            ; +0x96, 0x18003a116\nmov     rbx, rdi                                                       ; +0x98, 0x18003a118\nmov     ecx, 8; Size                                                   ; +0x9b, 0x18003a11b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xa0, 0x18003a120\nmov     [rsp+28h+arg_0], rax                                           ; +0xa5, 0x18003a125\ntest    rax, rax                                                       ; +0xaa, 0x18003a12a\njz      short loc_18003A13C                                            ; +0xad, 0x18003a12d\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0xaf, 0x18003a12f\nmov     rcx, rax; this                                                 ; +0xb2, 0x18003a132\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0xb5, 0x18003a135\njmp     short loc_18003A13F                                            ; +0xba, 0x18003a13a\nmov     rax, rdi                                                       ; +0xbc, 0x18003a13c\nmov     rdi, rax                                                       ; +0xbf, 0x18003a13f\nmov     rdx, rax; struct cocos2d::CCZone *                             ; +0xc2, 0x18003a142\nmov     rcx, rsi; this                                                 ; +0xc5, 0x18003a145\ncall    ?copyWithZone@CCGridAction@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCGridAction::copyWithZone(cocos2d::CCZone *) ; +0xc8, 0x18003a148\nmov     r9, [rbx]                                                      ; +0xcd, 0x18003a14d\nmov     r8d, [rsi+68h]                                                 ; +0xd0, 0x18003a150\nmovss   xmm1, dword ptr [rsi+50h]                                      ; +0xd4, 0x18003a154\nmov     rcx, rbx                                                       ; +0xd9, 0x18003a159\ncall    qword ptr [r9+80h]                                             ; +0xdc, 0x18003a15c\ntest    rdi, rdi                                                       ; +0xe3, 0x18003a163\njz      short loc_18003A175                                            ; +0xe6, 0x18003a166\nmov     edx, 8                                                         ; +0xe8, 0x18003a168\nmov     rcx, rdi; Block                                                ; +0xed, 0x18003a16d\ncall    j_j_free_0                                                     ; +0xf0, 0x18003a170\nmov     rax, rbx                                                       ; +0xf5, 0x18003a175\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xf8, 0x18003a178\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xfd, 0x18003a17d\nadd     rsp, 20h                                                       ; +0x102, 0x18003a182\npop     rdi                                                            ; +0x106, 0x18003a186\nretn                                                                   ; +0x107, 0x18003a187", "xrefs": ["<???> @ 0x1800ea7e8", "<???> @ 0x1801438a8", "<???> @ 0x1801b0dec"], "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"}