{"type": "func", "start": 6442632448, "end": 6442632771, "name": "cocos2d::CCWaves::copyWithZone", "pseudocode": "// \n// cocos2d::CCWaves::copyWithZone from 0x18002c500 to 0x18002c643 (323 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800e8c28\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801afcd0\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\n// Hidden C++ exception states: #wind=3\nstruct cocos2d::CCObject *__fastcall cocos2d::CCWaves::copyWithZone(cocos2d::CCWaves *this, void **a2)\n{\n  tinyxml2::XMLHandle *v2; // rax\n  tinyxml2::XMLHandle *v4; // rdi\n  void *v5; // rbx\n  tinyxml2::XMLHandle *v6; // rax\n  char v7; // bp\n  char v8; // r14\n  int v9; // xmm6_4\n  int v10; // r15d\n\n  v2 = (tinyxml2::XMLHandle *)a2;\n  v4 = nullptr;\n  if ( !a2 || (v5 = *a2) == nullptr )\n  {\n    v5 = 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::CCWaves::`vftable';\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  v7 = *((_BYTE *)this + 116);\n  v8 = *((_BYTE *)this + 117);\n  v9 = *((_DWORD *)this + 27);\n  v10 = *((_DWORD *)this + 26);\n  if ( cocos2d::CCGridAction::initWithDuration(\n         (cocos2d::CCGridAction *)v5,\n         this->m_fDuration,\n         (struct cocos2d::CCSize *)this + 12) )\n  {\n    *((_DWORD *)v5 + 26) = v10;\n    *((_DWORD *)v5 + 27) = v9;\n    *((_DWORD *)v5 + 28) = 1065353216;\n    *((_BYTE *)v5 + 117) = v8;\n    *((_BYTE *)v5 + 116) = v7;\n  }\n  if ( v4 )\n    j_j_free_0(v4);\n  return (struct cocos2d::CCObject *)v5;\n}", "assembly": "; \n; cocos2d::CCWaves::copyWithZone from 0x18002c500 to 0x18002c643 (323 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800e8c28\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801afcd0\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, 0x18002c500\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x18002c505\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x18002c50a\npush    rdi                                                            ; +0xf, 0x18002c50f\npush    r14                                                            ; +0x10, 0x18002c510\npush    r15                                                            ; +0x12, 0x18002c512\nsub     rsp, 30h                                                       ; +0x14, 0x18002c514\nmovaps  [rsp+48h+var_28], xmm6                                         ; +0x18, 0x18002c518\nmov     rax, rdx                                                       ; +0x1d, 0x18002c51d\nmov     rsi, rcx                                                       ; +0x20, 0x18002c520\nxor     edi, edi                                                       ; +0x23, 0x18002c523\ntest    rdx, rdx                                                       ; +0x25, 0x18002c525\njz      short loc_18002C536                                            ; +0x28, 0x18002c528\nmov     rbx, [rdx]                                                     ; +0x2a, 0x18002c52a\ntest    rbx, rbx                                                       ; +0x2d, 0x18002c52d\njnz     loc_18002C5C6                                                  ; +0x30, 0x18002c530\nmov     ecx, 78h ; 'x'; Size                                           ; +0x36, 0x18002c536\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3b, 0x18002c53b\nmov     rbx, rax                                                       ; +0x40, 0x18002c540\nmov     [rsp+48h+arg_0], rax                                           ; +0x43, 0x18002c543\ntest    rax, rax                                                       ; +0x48, 0x18002c548\njz      short loc_18002C59C                                            ; +0x4b, 0x18002c54b\nxorps   xmm0, xmm0                                                     ; +0x4d, 0x18002c54d\nxor     eax, eax                                                       ; +0x50, 0x18002c550\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x52, 0x18002c552\nmovups  xmmword ptr [rbx+10h], xmm0                                    ; +0x55, 0x18002c555\nmovups  xmmword ptr [rbx+20h], xmm0                                    ; +0x59, 0x18002c559\nmovups  xmmword ptr [rbx+30h], xmm0                                    ; +0x5d, 0x18002c55d\nmovups  xmmword ptr [rbx+40h], xmm0                                    ; +0x61, 0x18002c561\nmovups  xmmword ptr [rbx+50h], xmm0                                    ; +0x65, 0x18002c565\nmovups  xmmword ptr [rbx+60h], xmm0                                    ; +0x69, 0x18002c569\nmov     [rbx+70h], rax                                                 ; +0x6d, 0x18002c56d\nmov     rcx, rbx; this                                                 ; +0x71, 0x18002c571\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x74, 0x18002c574\nmov     [rbx+50h], edi                                                 ; +0x79, 0x18002c579\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x7c, 0x18002c57c\nmov     [rbx], rax                                                     ; +0x83, 0x18002c583\nlea     rcx, [rbx+60h]; this                                           ; +0x86, 0x18002c586\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x8a, 0x18002c58a\nnop                                                                    ; +0x8f, 0x18002c58f\nlea     rax, ??_7CCWaves@cocos2d@@6B@; const cocos2d::CCWaves::`vftable' ; +0x90, 0x18002c590\nmov     [rbx], rax                                                     ; +0x97, 0x18002c597\njmp     short loc_18002C59F                                            ; +0x9a, 0x18002c59a\nmov     rbx, rdi                                                       ; +0x9c, 0x18002c59c\nmov     ecx, 8; Size                                                   ; +0x9f, 0x18002c59f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xa4, 0x18002c5a4\nmov     [rsp+48h+arg_0], rax                                           ; +0xa9, 0x18002c5a9\ntest    rax, rax                                                       ; +0xae, 0x18002c5ae\njz      short loc_18002C5C0                                            ; +0xb1, 0x18002c5b1\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0xb3, 0x18002c5b3\nmov     rcx, rax; this                                                 ; +0xb6, 0x18002c5b6\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0xb9, 0x18002c5b9\njmp     short loc_18002C5C3                                            ; +0xbe, 0x18002c5be\nmov     rax, rdi                                                       ; +0xc0, 0x18002c5c0\nmov     rdi, rax                                                       ; +0xc3, 0x18002c5c3\nmov     rdx, rax; struct cocos2d::CCZone *                             ; +0xc6, 0x18002c5c6\nmov     rcx, rsi; this                                                 ; +0xc9, 0x18002c5c9\ncall    ?copyWithZone@CCGridAction@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCGridAction::copyWithZone(cocos2d::CCZone *) ; +0xcc, 0x18002c5cc\nmovzx   ebp, byte ptr [rsi+74h]                                        ; +0xd1, 0x18002c5d1\nmovzx   r14d, byte ptr [rsi+75h]                                       ; +0xd5, 0x18002c5d5\nmovss   xmm6, dword ptr [rsi+6Ch]                                      ; +0xda, 0x18002c5da\nmov     r15d, [rsi+68h]                                                ; +0xdf, 0x18002c5df\nlea     r8, [rsi+60h]; struct cocos2d::CCSize *                        ; +0xe3, 0x18002c5e3\nmovss   xmm1, dword ptr [rsi+50h]; float                               ; +0xe7, 0x18002c5e7\nmov     rcx, rbx; this                                                 ; +0xec, 0x18002c5ec\ncall    ?initWithDuration@CCGridAction@cocos2d@@UEAA_NMAEBVCCSize@2@@Z; cocos2d::CCGridAction::initWithDuration(float,cocos2d::CCSize const &) ; +0xef, 0x18002c5ef\ntest    al, al                                                         ; +0xf4, 0x18002c5f4\njz      short loc_18002C610                                            ; +0xf6, 0x18002c5f6\nmov     [rbx+68h], r15d                                                ; +0xf8, 0x18002c5f8\nmovss   dword ptr [rbx+6Ch], xmm6                                      ; +0xfc, 0x18002c5fc\nmov     dword ptr [rbx+70h], 3F800000h                                 ; +0x101, 0x18002c601\nmov     [rbx+75h], r14b                                                ; +0x108, 0x18002c608\nmov     [rbx+74h], bpl                                                 ; +0x10c, 0x18002c60c\ntest    rdi, rdi                                                       ; +0x110, 0x18002c610\njz      short loc_18002C622                                            ; +0x113, 0x18002c613\nmov     edx, 8                                                         ; +0x115, 0x18002c615\nmov     rcx, rdi; Block                                                ; +0x11a, 0x18002c61a\ncall    j_j_free_0                                                     ; +0x11d, 0x18002c61d\nmov     rax, rbx                                                       ; +0x122, 0x18002c622\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x125, 0x18002c625\nmov     rbp, [rsp+48h+arg_10]                                          ; +0x12a, 0x18002c62a\nmov     rsi, [rsp+48h+arg_18]                                          ; +0x12f, 0x18002c62f\nmovaps  xmm6, [rsp+48h+var_28]                                         ; +0x134, 0x18002c634\nadd     rsp, 30h                                                       ; +0x139, 0x18002c639\npop     r15                                                            ; +0x13d, 0x18002c63d\npop     r14                                                            ; +0x13f, 0x18002c63f\npop     rdi                                                            ; +0x141, 0x18002c641\nretn                                                                   ; +0x142, 0x18002c642", "xrefs": ["<???> @ 0x1800e8c28", "<???> @ 0x1801438a8", "<???> @ 0x1801afcd0"], "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"}