{"type": "func", "start": 6442632336, "end": 6442632608, "name": "cocos2d::CCLens3D::copyWithZone", "pseudocode": "// \n// cocos2d::CCLens3D::copyWithZone from 0x18002c490 to 0x18002c5a0 (272 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800eea70\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b9d9c\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:32 +0000\n// \n\n// Hidden C++ exception states: #wind=4\nstruct cocos2d::CCObject *__fastcall cocos2d::CCLens3D::copyWithZone(\n        cocos2d::CCLens3D *this,\n        struct cocos2d::CCZone *a2)\n{\n  tinyxml2::XMLHandle *v2; // rax\n  tinyxml2::XMLHandle *v4; // rdi\n  _DWORD *v5; // rbx\n  _OWORD *v6; // rax\n  tinyxml2::XMLHandle *v7; // rax\n\n  v2 = a2;\n  v4 = nullptr;\n  if ( !a2 || (v5 = *(_DWORD **)a2) == nullptr )\n  {\n    v6 = (_OWORD *)sub_1800E4AC0(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      v5[20] = 0;\n      *(_QWORD *)v5 = &cocos2d::CCGridAction::`vftable';\n      cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v5 + 24));\n      *(_QWORD *)v5 = &cocos2d::CCLens3D::`vftable';\n      cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v5 + 26));\n    }\n    else\n    {\n      v5 = nullptr;\n    }\n    v7 = (tinyxml2::XMLHandle *)sub_1800E4AC0(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, v2);\n  cocos2d::CCLens3D::initWithDuration(\n    (cocos2d::CCLens3D *)v5,\n    *((float *)this + 20),\n    (cocos2d::CCLens3D *)((char *)this + 96),\n    (cocos2d::CCLens3D *)((char *)this + 104),\n    *((float *)this + 28));\n  if ( v4 )\n    j_j_free_0(v4);\n  return (struct cocos2d::CCObject *)v5;\n}", "assembly": "; \n; cocos2d::CCLens3D::copyWithZone from 0x18002c490 to 0x18002c5a0 (272 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800eea70\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b9d9c\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:32 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18002c490\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18002c495\npush    rdi                                                            ; +0xa, 0x18002c49a\nsub     rsp, 30h                                                       ; +0xb, 0x18002c49b\nmov     rax, rdx                                                       ; +0xf, 0x18002c49f\nmov     rsi, rcx                                                       ; +0x12, 0x18002c4a2\nxor     edi, edi                                                       ; +0x15, 0x18002c4a5\ntest    rdx, rdx                                                       ; +0x17, 0x18002c4a7\njz      short loc_18002C4B8                                            ; +0x1a, 0x18002c4aa\nmov     rbx, [rdx]                                                     ; +0x1c, 0x18002c4ac\ntest    rbx, rbx                                                       ; +0x1f, 0x18002c4af\njnz     loc_18002C550                                                  ; +0x22, 0x18002c4b2\nmov     ecx, 80h; Size                                                 ; +0x28, 0x18002c4b8\ncall    sub_1800E4AC0                                                  ; +0x2d, 0x18002c4bd\nmov     rbx, rax                                                       ; +0x32, 0x18002c4c2\nmov     [rsp+38h+arg_0], rax                                           ; +0x35, 0x18002c4c5\ntest    rax, rax                                                       ; +0x3a, 0x18002c4ca\njz      short loc_18002C526                                            ; +0x3d, 0x18002c4cd\nxorps   xmm0, xmm0                                                     ; +0x3f, 0x18002c4cf\nmovups  xmmword ptr [rax], xmm0                                        ; +0x42, 0x18002c4d2\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x45, 0x18002c4d5\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x49, 0x18002c4d9\nmovups  xmmword ptr [rax+30h], xmm0                                    ; +0x4d, 0x18002c4dd\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0x51, 0x18002c4e1\nmovups  xmmword ptr [rax+50h], xmm0                                    ; +0x55, 0x18002c4e5\nmovups  xmmword ptr [rax+60h], xmm0                                    ; +0x59, 0x18002c4e9\nmovups  xmmword ptr [rax+70h], xmm0                                    ; +0x5d, 0x18002c4ed\nmov     rcx, rax; this                                                 ; +0x61, 0x18002c4f1\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x64, 0x18002c4f4\nmov     [rbx+50h], edi                                                 ; +0x69, 0x18002c4f9\nlea     rax, ??_7CCGridAction@cocos2d@@6B@; const cocos2d::CCGridAction::`vftable' ; +0x6c, 0x18002c4fc\nmov     [rbx], rax                                                     ; +0x73, 0x18002c503\nlea     rcx, [rbx+60h]; this                                           ; +0x76, 0x18002c506\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x7a, 0x18002c50a\nnop                                                                    ; +0x7f, 0x18002c50f\nlea     rax, ??_7CCLens3D@cocos2d@@6B@; const cocos2d::CCLens3D::`vftable' ; +0x80, 0x18002c510\nmov     [rbx], rax                                                     ; +0x87, 0x18002c517\nlea     rcx, [rbx+68h]; this                                           ; +0x8a, 0x18002c51a\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x8e, 0x18002c51e\nnop                                                                    ; +0x93, 0x18002c523\njmp     short loc_18002C529                                            ; +0x94, 0x18002c524\nmov     rbx, rdi                                                       ; +0x96, 0x18002c526\nmov     ecx, 8; Size                                                   ; +0x99, 0x18002c529\ncall    sub_1800E4AC0                                                  ; +0x9e, 0x18002c52e\nmov     [rsp+38h+arg_0], rax                                           ; +0xa3, 0x18002c533\ntest    rax, rax                                                       ; +0xa8, 0x18002c538\njz      short loc_18002C54A                                            ; +0xab, 0x18002c53b\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0xad, 0x18002c53d\nmov     rcx, rax; this                                                 ; +0xb0, 0x18002c540\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0xb3, 0x18002c543\njmp     short loc_18002C54D                                            ; +0xb8, 0x18002c548\nmov     rax, rdi                                                       ; +0xba, 0x18002c54a\nmov     rdi, rax                                                       ; +0xbd, 0x18002c54d\nmov     rdx, rax; struct cocos2d::CCZone *                             ; +0xc0, 0x18002c550\nmov     rcx, rsi; this                                                 ; +0xc3, 0x18002c553\ncall    ?copyWithZone@CCGridAction@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCGridAction::copyWithZone(cocos2d::CCZone *) ; +0xc6, 0x18002c556\nlea     r9, [rsi+68h]; struct cocos2d::CCPoint *                       ; +0xcb, 0x18002c55b\nlea     r8, [rsi+60h]; struct cocos2d::CCSize *                        ; +0xcf, 0x18002c55f\nmovss   xmm0, dword ptr [rsi+70h]                                      ; +0xd3, 0x18002c563\nmovss   [rsp+38h+var_18], xmm0; float                                  ; +0xd8, 0x18002c568\nmovss   xmm1, dword ptr [rsi+50h]; float                               ; +0xde, 0x18002c56e\nmov     rcx, rbx; this                                                 ; +0xe3, 0x18002c573\ncall    ?initWithDuration@CCLens3D@cocos2d@@QEAA_NMAEBVCCSize@2@AEBVCCPoint@2@M@Z; cocos2d::CCLens3D::initWithDuration(float,cocos2d::CCSize const &,cocos2d::CCPoint const &,float) ; +0xe6, 0x18002c576\ntest    rdi, rdi                                                       ; +0xeb, 0x18002c57b\njz      short loc_18002C58D                                            ; +0xee, 0x18002c57e\nmov     edx, 8                                                         ; +0xf0, 0x18002c580\nmov     rcx, rdi; Block                                                ; +0xf5, 0x18002c585\ncall    j_j_free_0                                                     ; +0xf8, 0x18002c588\nmov     rax, rbx                                                       ; +0xfd, 0x18002c58d\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x100, 0x18002c590\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x105, 0x18002c595\nadd     rsp, 30h                                                       ; +0x10a, 0x18002c59a\npop     rdi                                                            ; +0x10e, 0x18002c59e\nretn                                                                   ; +0x10f, 0x18002c59f", "xrefs": ["<???> @ 0x1800eea70", "<???> @ 0x18014cf68", "<???> @ 0x1801b9d9c"], "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"}