{"type": "func", "start": 6442627504, "end": 6442627741, "name": "cocos2d::CCGridAction::copyWithZone", "pseudocode": "// \n// cocos2d::CCGridAction::copyWithZone from 0x18002b1b0 to 0x18002b29d (237 bytes)\n// \n// 26 xrefs:\n// > cocos2d::CCFlipX3D::copyWithZone @ 0x18002c34a\n// > cocos2d::CCLens3D::copyWithZone @ 0x18002c556\n// > cocos2d::CCLiquid::copyWithZone @ 0x18002c668\n// > cocos2d::CCRipple3D::copyWithZone @ 0x18002c7a5\n// > cocos2d::CCShaky3D::copyWithZone @ 0x18002c8eb\n// > cocos2d::CCTwirl::copyWithZone @ 0x18002ca0e\n// > cocos2d::CCWaves3D::copyWithZone @ 0x18002cb58\n// > cocos2d::CCWaves::copyWithZone @ 0x18002cc8c\n// > cocos2d::CCJumpTiles3D::copyWithZone @ 0x18003a328\n// > cocos2d::CCShakyTiles3D::copyWithZone @ 0x18003a448\n// > cocos2d::CCShatteredTiles3D::copyWithZone @ 0x18003a558\n// > cocos2d::CCShuffleTiles::copyWithZone @ 0x18003a66c\n// > cocos2d::CCSplitCols::copyWithZone @ 0x18003a788\n// > cocos2d::CCSplitRows::copyWithZone @ 0x18003a898\n// > cocos2d::CCTurnOffTiles::copyWithZone @ 0x18003a99e\n// > cocos2d::CCWavesTiles3D::copyWithZone @ 0x18003aaae\n// > <???> @ 0x1800ee4c8\n// > <???> @ 0x1800ee550\n// > <???> @ 0x1800ee830\n// > <???> @ 0x1800f00f8\n// > <???> @ 0x1800f0440\n// > <???> @ 0x1800f04d8\n// > <???> @ 0x1800f0570\n// > <???> @ 0x1800f0608\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b9b98\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:31 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nstruct cocos2d::CCObject *__fastcall cocos2d::CCGridAction::copyWithZone(\n        cocos2d::CCGridAction *this,\n        struct cocos2d::CCZone *a2)\n{\n  tinyxml2::XMLHandle *v2; // rax\n  tinyxml2::XMLHandle *v4; // rdi\n  _OWORD *v5; // rbx\n  tinyxml2::XMLHandle *v6; // rax\n  __int64 v7; // rdx\n\n  v2 = a2;\n  v4 = nullptr;\n  if ( !a2 || (v5 = *(_OWORD **)a2) == nullptr )\n  {\n    v5 = (_OWORD *)sub_1800E4AC0(0x68u);\n    if ( v5 )\n    {\n      *v5 = 0;\n      v5[1] = 0;\n      v5[2] = 0;\n      v5[3] = 0;\n      v5[4] = 0;\n      v5[5] = 0;\n      *((_QWORD *)v5 + 12) = 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 + 6));\n    }\n    else\n    {\n      v5 = nullptr;\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::CCActionInterval::copyWithZone(this, v2);\n  (*(void (__fastcall **)(_OWORD *, __int64, char *))(*(_QWORD *)v5 + 112LL))(v5, v7, (char *)this + 96);\n  if ( v4 )\n    j_j_free_0(v4);\n  return (struct cocos2d::CCObject *)v5;\n}", "assembly": "; \n; cocos2d::CCGridAction::copyWithZone from 0x18002b1b0 to 0x18002b29d (237 bytes)\n; \n; 26 xrefs:\n; > cocos2d::CCFlipX3D::copyWithZone @ 0x18002c34a\n; > cocos2d::CCLens3D::copyWithZone @ 0x18002c556\n; > cocos2d::CCLiquid::copyWithZone @ 0x18002c668\n; > cocos2d::CCRipple3D::copyWithZone @ 0x18002c7a5\n; > cocos2d::CCShaky3D::copyWithZone @ 0x18002c8eb\n; > cocos2d::CCTwirl::copyWithZone @ 0x18002ca0e\n; > cocos2d::CCWaves3D::copyWithZone @ 0x18002cb58\n; > cocos2d::CCWaves::copyWithZone @ 0x18002cc8c\n; > cocos2d::CCJumpTiles3D::copyWithZone @ 0x18003a328\n; > cocos2d::CCShakyTiles3D::copyWithZone @ 0x18003a448\n; > cocos2d::CCShatteredTiles3D::copyWithZone @ 0x18003a558\n; > cocos2d::CCShuffleTiles::copyWithZone @ 0x18003a66c\n; > cocos2d::CCSplitCols::copyWithZone @ 0x18003a788\n; > cocos2d::CCSplitRows::copyWithZone @ 0x18003a898\n; > cocos2d::CCTurnOffTiles::copyWithZone @ 0x18003a99e\n; > cocos2d::CCWavesTiles3D::copyWithZone @ 0x18003aaae\n; > <???> @ 0x1800ee4c8\n; > <???> @ 0x1800ee550\n; > <???> @ 0x1800ee830\n; > <???> @ 0x1800f00f8\n; > <???> @ 0x1800f0440\n; > <???> @ 0x1800f04d8\n; > <???> @ 0x1800f0570\n; > <???> @ 0x1800f0608\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b9b98\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:31 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18002b1b0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18002b1b5\npush    rdi                                                            ; +0xa, 0x18002b1ba\nsub     rsp, 20h                                                       ; +0xb, 0x18002b1bb\nmov     rax, rdx                                                       ; +0xf, 0x18002b1bf\nmov     rsi, rcx                                                       ; +0x12, 0x18002b1c2\nxor     edi, edi                                                       ; +0x15, 0x18002b1c5\ntest    rdx, rdx                                                       ; +0x17, 0x18002b1c7\njz      short loc_18002B1D8                                            ; +0x1a, 0x18002b1ca\nmov     rbx, [rdx]                                                     ; +0x1c, 0x18002b1cc\ntest    rbx, rbx                                                       ; +0x1f, 0x18002b1cf\njnz     loc_18002B25A                                                  ; +0x22, 0x18002b1d2\nmov     ecx, 68h ; 'h'; Size                                           ; +0x28, 0x18002b1d8\ncall    sub_1800E4AC0                                                  ; +0x2d, 0x18002b1dd\nmov     rbx, rax                                                       ; +0x32, 0x18002b1e2\nmov     [rsp+28h+arg_0], rax                                           ; +0x35, 0x18002b1e5\ntest    rax, rax                                                       ; +0x3a, 0x18002b1ea\njz      short loc_18002B230                                            ; +0x3d, 0x18002b1ed\nxorps   xmm0, xmm0                                                     ; +0x3f, 0x18002b1ef\nxor     eax, eax                                                       ; +0x42, 0x18002b1f2\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x44, 0x18002b1f4\nmovups  xmmword ptr [rbx+10h], xmm0                                    ; +0x47, 0x18002b1f7\nmovups  xmmword ptr [rbx+20h], xmm0                                    ; +0x4b, 0x18002b1fb\nmovups  xmmword ptr [rbx+30h], xmm0                                    ; +0x4f, 0x18002b1ff\nmovups  xmmword ptr [rbx+40h], xmm0                                    ; +0x53, 0x18002b203\nmovups  xmmword ptr [rbx+50h], xmm0                                    ; +0x57, 0x18002b207\nmov     [rbx+60h], rax                                                 ; +0x5b, 0x18002b20b\nmov     rcx, rbx; this                                                 ; +0x5f, 0x18002b20f\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x62, 0x18002b212\nmov     [rbx+50h], edi                                                 ; +0x67, 0x18002b217\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x6a, 0x18002b21a\nmov     [rbx], rax                                                     ; +0x71, 0x18002b221\nlea     rcx, [rbx+60h]; this                                           ; +0x74, 0x18002b224\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x78, 0x18002b228\nnop                                                                    ; +0x7d, 0x18002b22d\njmp     short loc_18002B233                                            ; +0x7e, 0x18002b22e\nmov     rbx, rdi                                                       ; +0x80, 0x18002b230\nmov     ecx, 8; Size                                                   ; +0x83, 0x18002b233\ncall    sub_1800E4AC0                                                  ; +0x88, 0x18002b238\nmov     [rsp+28h+arg_0], rax                                           ; +0x8d, 0x18002b23d\ntest    rax, rax                                                       ; +0x92, 0x18002b242\njz      short loc_18002B254                                            ; +0x95, 0x18002b245\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0x97, 0x18002b247\nmov     rcx, rax; this                                                 ; +0x9a, 0x18002b24a\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0x9d, 0x18002b24d\njmp     short loc_18002B257                                            ; +0xa2, 0x18002b252\nmov     rax, rdi                                                       ; +0xa4, 0x18002b254\nmov     rdi, rax                                                       ; +0xa7, 0x18002b257\nmov     rdx, rax; struct cocos2d::CCZone *                             ; +0xaa, 0x18002b25a\nmov     rcx, rsi; this                                                 ; +0xad, 0x18002b25d\ncall    ?copyWithZone@CCActionInterval@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCActionInterval::copyWithZone(cocos2d::CCZone *) ; +0xb0, 0x18002b260\nlea     r8, [rsi+60h]                                                  ; +0xb5, 0x18002b265\nmov     r9, [rbx]                                                      ; +0xb9, 0x18002b269\nmovss   xmm1, dword ptr [rsi+50h]                                      ; +0xbc, 0x18002b26c\nmov     rcx, rbx                                                       ; +0xc1, 0x18002b271\ncall    qword ptr [r9+70h]                                             ; +0xc4, 0x18002b274\ntest    rdi, rdi                                                       ; +0xc8, 0x18002b278\njz      short loc_18002B28A                                            ; +0xcb, 0x18002b27b\nmov     edx, 8                                                         ; +0xcd, 0x18002b27d\nmov     rcx, rdi; Block                                                ; +0xd2, 0x18002b282\ncall    j_j_free_0                                                     ; +0xd5, 0x18002b285\nmov     rax, rbx                                                       ; +0xda, 0x18002b28a\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xdd, 0x18002b28d\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xe2, 0x18002b292\nadd     rsp, 20h                                                       ; +0xe7, 0x18002b297\npop     rdi                                                            ; +0xeb, 0x18002b29b\nretn                                                                   ; +0xec, 0x18002b29c", "xrefs": ["cocos2d::CCFlipX3D::copyWithZone @ 0x18002c34a", "cocos2d::CCLens3D::copyWithZone @ 0x18002c556", "cocos2d::CCLiquid::copyWithZone @ 0x18002c668", "cocos2d::CCRipple3D::copyWithZone @ 0x18002c7a5", "cocos2d::CCShaky3D::copyWithZone @ 0x18002c8eb", "cocos2d::CCTwirl::copyWithZone @ 0x18002ca0e", "cocos2d::CCWaves3D::copyWithZone @ 0x18002cb58", "cocos2d::CCWaves::copyWithZone @ 0x18002cc8c", "cocos2d::CCJumpTiles3D::copyWithZone @ 0x18003a328", "cocos2d::CCShakyTiles3D::copyWithZone @ 0x18003a448", "cocos2d::CCShatteredTiles3D::copyWithZone @ 0x18003a558", "cocos2d::CCShuffleTiles::copyWithZone @ 0x18003a66c", "cocos2d::CCSplitCols::copyWithZone @ 0x18003a788", "cocos2d::CCSplitRows::copyWithZone @ 0x18003a898", "cocos2d::CCTurnOffTiles::copyWithZone @ 0x18003a99e", "cocos2d::CCWavesTiles3D::copyWithZone @ 0x18003aaae", "<???> @ 0x1800ee4c8", "<???> @ 0x1800ee550", "<???> @ 0x1800ee830", "<???> @ 0x1800f00f8", "<???> @ 0x1800f0440", "<???> @ 0x1800f04d8", "<???> @ 0x1800f0570", "<???> @ 0x1800f0608", "<???> @ 0x18014cf68", "<???> @ 0x1801b9b98"], "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"}