{"type": "func", "start": 6442690240, "end": 6442690507, "name": "cocos2d::CCSplitCols::copyWithZone", "pseudocode": "// \n// cocos2d::CCSplitCols::copyWithZone from 0x18003a6c0 to 0x18003a7cb (267 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800f08d8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801baf0c\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:21:36 +0000\n// \n\n// Hidden C++ exception states: #wind=4\nstruct cocos2d::CCObject *__fastcall cocos2d::CCSplitCols::copyWithZone(\n        cocos2d::CCSplitCols *this,\n        struct cocos2d::CCZone *a2)\n{\n  tinyxml2::XMLHandle *v2; // rax\n  tinyxml2::XMLHandle *v4; // rdi\n  __int64 v5; // rbx\n  tinyxml2::XMLHandle *v6; // rax\n  __int64 v7; // rdx\n\n  v2 = a2;\n  v4 = nullptr;\n  if ( !a2 || (v5 = *(_QWORD *)a2) == 0 )\n  {\n    v5 = sub_1800E4AC0(0x78u);\n    if ( v5 )\n    {\n      *(_OWORD *)v5 = 0;\n      *(_OWORD *)(v5 + 16) = 0;\n      *(_OWORD *)(v5 + 32) = 0;\n      *(_OWORD *)(v5 + 48) = 0;\n      *(_OWORD *)(v5 + 64) = 0;\n      *(_OWORD *)(v5 + 80) = 0;\n      *(_OWORD *)(v5 + 96) = 0;\n      *(_QWORD *)(v5 + 112) = 0;\n      cocos2d::CCAction::CCAction((cocos2d::CCAction *)v5);\n      *(_DWORD *)(v5 + 80) = 0;\n      *(_QWORD *)v5 = &cocos2d::CCGridAction::`vftable';\n      cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v5 + 96));\n      *(_QWORD *)v5 = &cocos2d::CCSplitCols::`vftable';\n      cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v5 + 108));\n    }\n    else\n    {\n      v5 = 0;\n    }\n    v6 = (tinyxml2::XMLHandle *)sub_1800E4AC0(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, v2);\n  (*(void (__fastcall **)(__int64, __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::CCSplitCols::copyWithZone from 0x18003a6c0 to 0x18003a7cb (267 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800f08d8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801baf0c\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:21:36 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18003a6c0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18003a6c5\npush    rdi                                                            ; +0xa, 0x18003a6ca\nsub     rsp, 20h                                                       ; +0xb, 0x18003a6cb\nmov     rax, rdx                                                       ; +0xf, 0x18003a6cf\nmov     rsi, rcx                                                       ; +0x12, 0x18003a6d2\nxor     edi, edi                                                       ; +0x15, 0x18003a6d5\ntest    rdx, rdx                                                       ; +0x17, 0x18003a6d7\njz      short loc_18003A6E8                                            ; +0x1a, 0x18003a6da\nmov     rbx, [rdx]                                                     ; +0x1c, 0x18003a6dc\ntest    rbx, rbx                                                       ; +0x1f, 0x18003a6df\njnz     loc_18003A782                                                  ; +0x22, 0x18003a6e2\nmov     ecx, 78h ; 'x'; Size                                           ; +0x28, 0x18003a6e8\ncall    sub_1800E4AC0                                                  ; +0x2d, 0x18003a6ed\nmov     rbx, rax                                                       ; +0x32, 0x18003a6f2\nmov     [rsp+28h+arg_0], rax                                           ; +0x35, 0x18003a6f5\ntest    rax, rax                                                       ; +0x3a, 0x18003a6fa\njz      short loc_18003A758                                            ; +0x3d, 0x18003a6fd\nxorps   xmm0, xmm0                                                     ; +0x3f, 0x18003a6ff\nxor     eax, eax                                                       ; +0x42, 0x18003a702\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x44, 0x18003a704\nmovups  xmmword ptr [rbx+10h], xmm0                                    ; +0x47, 0x18003a707\nmovups  xmmword ptr [rbx+20h], xmm0                                    ; +0x4b, 0x18003a70b\nmovups  xmmword ptr [rbx+30h], xmm0                                    ; +0x4f, 0x18003a70f\nmovups  xmmword ptr [rbx+40h], xmm0                                    ; +0x53, 0x18003a713\nmovups  xmmword ptr [rbx+50h], xmm0                                    ; +0x57, 0x18003a717\nmovups  xmmword ptr [rbx+60h], xmm0                                    ; +0x5b, 0x18003a71b\nmov     [rbx+70h], rax                                                 ; +0x5f, 0x18003a71f\nmov     rcx, rbx; this                                                 ; +0x63, 0x18003a723\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x66, 0x18003a726\nmov     [rbx+50h], edi                                                 ; +0x6b, 0x18003a72b\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x6e, 0x18003a72e\nmov     [rbx], rax                                                     ; +0x75, 0x18003a735\nlea     rcx, [rbx+60h]; this                                           ; +0x78, 0x18003a738\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x7c, 0x18003a73c\nnop                                                                    ; +0x81, 0x18003a741\nlea     rax, ??_7CCSplitCols@cocos2d@@6B@; const cocos2d::CCSplitCols::`vftable' ; +0x82, 0x18003a742\nmov     [rbx], rax                                                     ; +0x89, 0x18003a749\nlea     rcx, [rbx+6Ch]; this                                           ; +0x8c, 0x18003a74c\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x90, 0x18003a750\nnop                                                                    ; +0x95, 0x18003a755\njmp     short loc_18003A75B                                            ; +0x96, 0x18003a756\nmov     rbx, rdi                                                       ; +0x98, 0x18003a758\nmov     ecx, 8; Size                                                   ; +0x9b, 0x18003a75b\ncall    sub_1800E4AC0                                                  ; +0xa0, 0x18003a760\nmov     [rsp+28h+arg_0], rax                                           ; +0xa5, 0x18003a765\ntest    rax, rax                                                       ; +0xaa, 0x18003a76a\njz      short loc_18003A77C                                            ; +0xad, 0x18003a76d\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0xaf, 0x18003a76f\nmov     rcx, rax; this                                                 ; +0xb2, 0x18003a772\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0xb5, 0x18003a775\njmp     short loc_18003A77F                                            ; +0xba, 0x18003a77a\nmov     rax, rdi                                                       ; +0xbc, 0x18003a77c\nmov     rdi, rax                                                       ; +0xbf, 0x18003a77f\nmov     rdx, rax; struct cocos2d::CCZone *                             ; +0xc2, 0x18003a782\nmov     rcx, rsi; this                                                 ; +0xc5, 0x18003a785\ncall    ?copyWithZone@CCGridAction@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCGridAction::copyWithZone(cocos2d::CCZone *) ; +0xc8, 0x18003a788\nmov     r8, [rbx]                                                      ; +0xcd, 0x18003a78d\nmov     r9, [r8+80h]                                                   ; +0xd0, 0x18003a790\nmov     r8d, [rsi+68h]                                                 ; +0xd7, 0x18003a797\nmovss   xmm1, dword ptr [rsi+50h]                                      ; +0xdb, 0x18003a79b\nmov     rcx, rbx                                                       ; +0xe0, 0x18003a7a0\ncall    r9                                                             ; +0xe3, 0x18003a7a3\ntest    rdi, rdi                                                       ; +0xe6, 0x18003a7a6\njz      short loc_18003A7B8                                            ; +0xe9, 0x18003a7a9\nmov     edx, 8                                                         ; +0xeb, 0x18003a7ab\nmov     rcx, rdi; Block                                                ; +0xf0, 0x18003a7b0\ncall    j_j_free_0                                                     ; +0xf3, 0x18003a7b3\nmov     rax, rbx                                                       ; +0xf8, 0x18003a7b8\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xfb, 0x18003a7bb\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x100, 0x18003a7c0\nadd     rsp, 20h                                                       ; +0x105, 0x18003a7c5\npop     rdi                                                            ; +0x109, 0x18003a7c9\nretn                                                                   ; +0x10a, 0x18003a7ca", "xrefs": ["<???> @ 0x1800f08d8", "<???> @ 0x18014cf68", "<???> @ 0x1801baf0c"], "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"}