{"type": "func", "start": 6442614576, "end": 6442614828, "name": "cocos2d::CCEaseElasticOut::copyWithZone", "pseudocode": "// \n// cocos2d::CCEaseElasticOut::copyWithZone from 0x180027f30 to 0x18002802c (252 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800e7f78\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801af628\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::CCEaseElasticOut::copyWithZone(\n        cocos2d::CCEaseElasticOut *this,\n        struct cocos2d::CCZone *a2)\n{\n  tinyxml2::XMLHandle *v3; // rdi\n  _OWORD *v4; // rbx\n  _OWORD *v5; // rax\n  tinyxml2::XMLHandle *v6; // rax\n  int v7; // xmm6_4\n  cocos2d::CCObject *v8; // rax\n  struct cocos2d::CCObject *v9; // rsi\n\n  v3 = nullptr;\n  if ( !a2 || (v4 = *(_OWORD **)a2) == nullptr )\n  {\n    v5 = operator new(0x70u);\n    v4 = v5;\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      v5[6] = 0;\n      cocos2d::CCAction::CCAction((cocos2d::CCAction *)v5);\n      *((_DWORD *)v4 + 20) = 0;\n      *(_QWORD *)v4 = &cocos2d::CCEaseElasticOut::`vftable';\n    }\n    else\n    {\n      v4 = nullptr;\n    }\n    v6 = (tinyxml2::XMLHandle *)operator new(8u);\n    if ( v6 )\n      v3 = tinyxml2::XMLHandle::XMLHandle(v6, (struct tinyxml2::XMLNode *)v4);\n  }\n  v7 = *((_DWORD *)this + 26);\n  v8 = cocos2d::CCObject::copy(*((cocos2d::CCObject **)this + 12));\n  v9 = cocos2d::CCObject::autorelease(v8);\n  if ( cocos2d::CCActionInterval::initWithDuration(\n         (cocos2d::CCActionInterval *)v4,\n         *(float *)&v9[1].m_uAutoReleaseCount) )\n  {\n    *((_QWORD *)v4 + 12) = v9;\n    cocos2d::CCObject::retain(v9);\n    *((_DWORD *)v4 + 26) = v7;\n  }\n  if ( v3 )\n    j_j_free_0(v3);\n  return (struct cocos2d::CCObject *)v4;\n}", "assembly": "; \n; cocos2d::CCEaseElasticOut::copyWithZone from 0x180027f30 to 0x18002802c (252 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800e7f78\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801af628\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, 0x180027f30\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180027f35\npush    rdi                                                            ; +0xa, 0x180027f3a\nsub     rsp, 30h                                                       ; +0xb, 0x180027f3b\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xf, 0x180027f3f\nmov     rsi, rcx                                                       ; +0x14, 0x180027f44\nxor     edi, edi                                                       ; +0x17, 0x180027f47\ntest    rdx, rdx                                                       ; +0x19, 0x180027f49\njz      short loc_180027F56                                            ; +0x1c, 0x180027f4c\nmov     rbx, [rdx]                                                     ; +0x1e, 0x180027f4e\ntest    rbx, rbx                                                       ; +0x21, 0x180027f51\njnz     short loc_180027FC7                                            ; +0x24, 0x180027f54\nmov     ecx, 70h ; 'p'; Size                                           ; +0x26, 0x180027f56\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2b, 0x180027f5b\nmov     rbx, rax                                                       ; +0x30, 0x180027f60\nmov     [rsp+38h+arg_0], rax                                           ; +0x33, 0x180027f63\ntest    rax, rax                                                       ; +0x38, 0x180027f68\njz      short loc_180027FA2                                            ; +0x3b, 0x180027f6b\nxorps   xmm0, xmm0                                                     ; +0x3d, 0x180027f6d\nmovups  xmmword ptr [rax], xmm0                                        ; +0x40, 0x180027f70\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x43, 0x180027f73\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x47, 0x180027f77\nmovups  xmmword ptr [rax+30h], xmm0                                    ; +0x4b, 0x180027f7b\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0x4f, 0x180027f7f\nmovups  xmmword ptr [rax+50h], xmm0                                    ; +0x53, 0x180027f83\nmovups  xmmword ptr [rax+60h], xmm0                                    ; +0x57, 0x180027f87\nmov     rcx, rax; this                                                 ; +0x5b, 0x180027f8b\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x5e, 0x180027f8e\nmov     [rbx+50h], edi                                                 ; +0x63, 0x180027f93\nlea     rax, ??_7CCEaseElasticOut@cocos2d@@6B@; const cocos2d::CCEaseElasticOut::`vftable' ; +0x66, 0x180027f96\nmov     [rbx], rax                                                     ; +0x6d, 0x180027f9d\njmp     short loc_180027FA5                                            ; +0x70, 0x180027fa0\nmov     rbx, rdi                                                       ; +0x72, 0x180027fa2\nmov     ecx, 8; Size                                                   ; +0x75, 0x180027fa5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x7a, 0x180027faa\nmov     [rsp+38h+arg_0], rax                                           ; +0x7f, 0x180027faf\ntest    rax, rax                                                       ; +0x84, 0x180027fb4\njz      short loc_180027FC7                                            ; +0x87, 0x180027fb7\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0x89, 0x180027fb9\nmov     rcx, rax; this                                                 ; +0x8c, 0x180027fbc\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0x8f, 0x180027fbf\nmov     rdi, rax                                                       ; +0x94, 0x180027fc4\nmovss   xmm6, dword ptr [rsi+68h]                                      ; +0x97, 0x180027fc7\nmov     rcx, [rsi+60h]; this                                           ; +0x9c, 0x180027fcc\ncall    ?copy@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::copy(void) ; +0xa0, 0x180027fd0\nmov     rcx, rax; this                                                 ; +0xa5, 0x180027fd5\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xa8, 0x180027fd8\nmov     rsi, rax                                                       ; +0xad, 0x180027fdd\nmovss   xmm1, dword ptr [rax+50h]; float                               ; +0xb0, 0x180027fe0\nmov     rcx, rbx; this                                                 ; +0xb5, 0x180027fe5\ncall    ?initWithDuration@CCActionInterval@cocos2d@@QEAA_NM@Z; cocos2d::CCActionInterval::initWithDuration(float) ; +0xb8, 0x180027fe8\ntest    al, al                                                         ; +0xbd, 0x180027fed\njz      short loc_180028002                                            ; +0xbf, 0x180027fef\nmov     [rbx+60h], rsi                                                 ; +0xc1, 0x180027ff1\nmov     rcx, rsi; this                                                 ; +0xc5, 0x180027ff5\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xc8, 0x180027ff8\nmovss   dword ptr [rbx+68h], xmm6                                      ; +0xcd, 0x180027ffd\ntest    rdi, rdi                                                       ; +0xd2, 0x180028002\njz      short loc_180028014                                            ; +0xd5, 0x180028005\nmov     edx, 8                                                         ; +0xd7, 0x180028007\nmov     rcx, rdi; Block                                                ; +0xdc, 0x18002800c\ncall    j_j_free_0                                                     ; +0xdf, 0x18002800f\nmov     rax, rbx                                                       ; +0xe4, 0x180028014\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xe7, 0x180028017\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xec, 0x18002801c\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xf1, 0x180028021\nadd     rsp, 30h                                                       ; +0xf6, 0x180028026\npop     rdi                                                            ; +0xfa, 0x18002802a\nretn                                                                   ; +0xfb, 0x18002802b", "xrefs": ["<???> @ 0x1800e7f78", "<???> @ 0x1801438a8", "<???> @ 0x1801af628"], "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"}