{"type": "func", "start": 6442631184, "end": 6442631521, "name": "cocos2d::CCRipple3D::copyWithZone", "pseudocode": "// \n// cocos2d::CCRipple3D::copyWithZone from 0x18002c010 to 0x18002c161 (337 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800e8a90\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801afca0\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=4\nstruct cocos2d::CCObject *__fastcall cocos2d::CCRipple3D::copyWithZone(\n        cocos2d::CCRipple3D *this,\n        struct cocos2d::CCZone *a2)\n{\n  tinyxml2::XMLHandle *v2; // rax\n  tinyxml2::XMLHandle *v4; // rdi\n  _OWORD *v5; // rbx\n  _OWORD *v6; // rax\n  tinyxml2::XMLHandle *v7; // rax\n  int v8; // xmm6_4\n  int v9; // ebp\n  int v10; // xmm7_4\n\n  v2 = a2;\n  v4 = nullptr;\n  if ( !a2 || (v5 = *(_OWORD **)a2) == nullptr )\n  {\n    v6 = operator new(0x80u);\n    v5 = v6;\n    if ( v6 )\n    {\n      *v6 = 0;\n      v6[1] = 0;\n      v6[2] = 0;\n      v6[3] = 0;\n      v6[4] = 0;\n      v6[5] = 0;\n      v6[6] = 0;\n      v6[7] = 0;\n      cocos2d::CCAction::CCAction((cocos2d::CCAction *)v6);\n      *((_DWORD *)v5 + 20) = 0;\n      *(_QWORD *)v5 = &cocos2d::CCGridAction::`vftable';\n      cocos2d::CCSize::CCSize((cocos2d::CCSize *)v5 + 12);\n      *(_QWORD *)v5 = &cocos2d::CCRipple3D::`vftable';\n      cocos2d::CCSize::CCSize((cocos2d::CCSize *)v5 + 13);\n    }\n    else\n    {\n      v5 = nullptr;\n    }\n    v7 = (tinyxml2::XMLHandle *)operator new(8u);\n    if ( v7 )\n      v2 = tinyxml2::XMLHandle::XMLHandle(v7, (struct tinyxml2::XMLNode *)v5);\n    else\n      v2 = nullptr;\n    v4 = v2;\n  }\n  cocos2d::CCGridAction::copyWithZone(this, (void **)v2);\n  v8 = *((_DWORD *)this + 30);\n  v9 = *((_DWORD *)this + 29);\n  v10 = *((_DWORD *)this + 28);\n  if ( cocos2d::CCGridAction::initWithDuration(\n         (cocos2d::CCGridAction *)v5,\n         this->m_fDuration,\n         (struct cocos2d::CCSize *)this + 12) )\n  {\n    cocos2d::CCSize::operator=((_DWORD *)v5 + 26, (_DWORD *)this + 26);\n    *((_DWORD *)v5 + 28) = v10;\n    *((_DWORD *)v5 + 29) = v9;\n    *((_DWORD *)v5 + 30) = v8;\n    *((_DWORD *)v5 + 31) = 1065353216;\n  }\n  if ( v4 )\n    j_j_free_0(v4);\n  return (struct cocos2d::CCObject *)v5;\n}", "assembly": "; \n; cocos2d::CCRipple3D::copyWithZone from 0x18002c010 to 0x18002c161 (337 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800e8a90\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801afca0\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, 0x18002c010\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x18002c015\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x18002c01a\npush    rdi                                                            ; +0xf, 0x18002c01f\nsub     rsp, 40h                                                       ; +0x10, 0x18002c020\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x14, 0x18002c024\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x19, 0x18002c029\nmov     rax, rdx                                                       ; +0x1e, 0x18002c02e\nmov     rsi, rcx                                                       ; +0x21, 0x18002c031\nxor     edi, edi                                                       ; +0x24, 0x18002c034\ntest    rdx, rdx                                                       ; +0x26, 0x18002c036\njz      short loc_18002C047                                            ; +0x29, 0x18002c039\nmov     rbx, [rdx]                                                     ; +0x2b, 0x18002c03b\ntest    rbx, rbx                                                       ; +0x2e, 0x18002c03e\njnz     loc_18002C0DF                                                  ; +0x31, 0x18002c041\nmov     ecx, 80h; Size                                                 ; +0x37, 0x18002c047\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3c, 0x18002c04c\nmov     rbx, rax                                                       ; +0x41, 0x18002c051\nmov     [rsp+48h+arg_0], rax                                           ; +0x44, 0x18002c054\ntest    rax, rax                                                       ; +0x49, 0x18002c059\njz      short loc_18002C0B5                                            ; +0x4c, 0x18002c05c\nxorps   xmm0, xmm0                                                     ; +0x4e, 0x18002c05e\nmovups  xmmword ptr [rax], xmm0                                        ; +0x51, 0x18002c061\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x54, 0x18002c064\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x58, 0x18002c068\nmovups  xmmword ptr [rax+30h], xmm0                                    ; +0x5c, 0x18002c06c\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0x60, 0x18002c070\nmovups  xmmword ptr [rax+50h], xmm0                                    ; +0x64, 0x18002c074\nmovups  xmmword ptr [rax+60h], xmm0                                    ; +0x68, 0x18002c078\nmovups  xmmword ptr [rax+70h], xmm0                                    ; +0x6c, 0x18002c07c\nmov     rcx, rax; this                                                 ; +0x70, 0x18002c080\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x73, 0x18002c083\nmov     [rbx+50h], edi                                                 ; +0x78, 0x18002c088\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x7b, 0x18002c08b\nmov     [rbx], rax                                                     ; +0x82, 0x18002c092\nlea     rcx, [rbx+60h]; this                                           ; +0x85, 0x18002c095\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x89, 0x18002c099\nnop                                                                    ; +0x8e, 0x18002c09e\nlea     rax, ??_7CCRipple3D@cocos2d@@6B@; const cocos2d::CCRipple3D::`vftable' ; +0x8f, 0x18002c09f\nmov     [rbx], rax                                                     ; +0x96, 0x18002c0a6\nlea     rcx, [rbx+68h]; this                                           ; +0x99, 0x18002c0a9\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x9d, 0x18002c0ad\nnop                                                                    ; +0xa2, 0x18002c0b2\njmp     short loc_18002C0B8                                            ; +0xa3, 0x18002c0b3\nmov     rbx, rdi                                                       ; +0xa5, 0x18002c0b5\nmov     ecx, 8; Size                                                   ; +0xa8, 0x18002c0b8\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xad, 0x18002c0bd\nmov     [rsp+48h+arg_0], rax                                           ; +0xb2, 0x18002c0c2\ntest    rax, rax                                                       ; +0xb7, 0x18002c0c7\njz      short loc_18002C0D9                                            ; +0xba, 0x18002c0ca\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0xbc, 0x18002c0cc\nmov     rcx, rax; this                                                 ; +0xbf, 0x18002c0cf\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0xc2, 0x18002c0d2\njmp     short loc_18002C0DC                                            ; +0xc7, 0x18002c0d7\nmov     rax, rdi                                                       ; +0xc9, 0x18002c0d9\nmov     rdi, rax                                                       ; +0xcc, 0x18002c0dc\nmov     rdx, rax; struct cocos2d::CCZone *                             ; +0xcf, 0x18002c0df\nmov     rcx, rsi; this                                                 ; +0xd2, 0x18002c0e2\ncall    ?copyWithZone@CCGridAction@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCGridAction::copyWithZone(cocos2d::CCZone *) ; +0xd5, 0x18002c0e5\nmovss   xmm6, dword ptr [rsi+78h]                                      ; +0xda, 0x18002c0ea\nmov     ebp, [rsi+74h]                                                 ; +0xdf, 0x18002c0ef\nmovss   xmm7, dword ptr [rsi+70h]                                      ; +0xe2, 0x18002c0f2\nlea     r8, [rsi+60h]; struct cocos2d::CCSize *                        ; +0xe7, 0x18002c0f7\nmovss   xmm1, dword ptr [rsi+50h]; float                               ; +0xeb, 0x18002c0fb\nmov     rcx, rbx; this                                                 ; +0xf0, 0x18002c100\ncall    ?initWithDuration@CCGridAction@cocos2d@@UEAA_NMAEBVCCSize@2@@Z; cocos2d::CCGridAction::initWithDuration(float,cocos2d::CCSize const &) ; +0xf3, 0x18002c103\ntest    al, al                                                         ; +0xf8, 0x18002c108\njz      short loc_18002C12D                                            ; +0xfa, 0x18002c10a\nlea     rdx, [rsi+68h]                                                 ; +0xfc, 0x18002c10c\nlea     rcx, [rbx+68h]                                                 ; +0x100, 0x18002c110\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x104, 0x18002c114\nmovss   dword ptr [rbx+70h], xmm7                                      ; +0x109, 0x18002c119\nmov     [rbx+74h], ebp                                                 ; +0x10e, 0x18002c11e\nmovss   dword ptr [rbx+78h], xmm6                                      ; +0x111, 0x18002c121\nmov     dword ptr [rbx+7Ch], 3F800000h                                 ; +0x116, 0x18002c126\ntest    rdi, rdi                                                       ; +0x11d, 0x18002c12d\njz      short loc_18002C13F                                            ; +0x120, 0x18002c130\nmov     edx, 8                                                         ; +0x122, 0x18002c132\nmov     rcx, rdi; Block                                                ; +0x127, 0x18002c137\ncall    j_j_free_0                                                     ; +0x12a, 0x18002c13a\nmov     rax, rbx                                                       ; +0x12f, 0x18002c13f\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x132, 0x18002c142\nmov     rbp, [rsp+48h+arg_10]                                          ; +0x137, 0x18002c147\nmov     rsi, [rsp+48h+arg_18]                                          ; +0x13c, 0x18002c14c\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x141, 0x18002c151\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x146, 0x18002c156\nadd     rsp, 40h                                                       ; +0x14b, 0x18002c15b\npop     rdi                                                            ; +0x14f, 0x18002c15f\nretn                                                                   ; +0x150, 0x18002c160", "xrefs": ["<???> @ 0x1800e8a90", "<???> @ 0x1801438a8", "<???> @ 0x1801afca0"], "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"}