{"type": "func", "start": 6442600928, "end": 6442601172, "name": "cocos2d::CCOrbitCamera::copyWithZone", "pseudocode": "// \n// cocos2d::CCOrbitCamera::copyWithZone from 0x1800249e0 to 0x180024ad4 (244 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800e7600\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801af214\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=2\ncocos2d::CCOrbitCamera *__fastcall cocos2d::CCOrbitCamera::copyWithZone(\n        cocos2d::CCOrbitCamera *this,\n        cocos2d::CCOrbitCamera **a2)\n{\n  tinyxml2::XMLHandle *v2; // rax\n  tinyxml2::XMLHandle *v4; // rdi\n  cocos2d::CCOrbitCamera *v5; // rbx\n  cocos2d::CCOrbitCamera *v6; // rax\n  tinyxml2::XMLHandle *v7; // rax\n\n  v2 = (tinyxml2::XMLHandle *)a2;\n  v4 = nullptr;\n  if ( !a2 || (v5 = *a2) == nullptr )\n  {\n    v6 = (cocos2d::CCOrbitCamera *)operator new(0xB0u);\n    if ( v6 )\n      v5 = cocos2d::CCOrbitCamera::CCOrbitCamera(v6);\n    else\n      v5 = nullptr;\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::CCActionInterval::copyWithZone(this, v2);\n  cocos2d::CCOrbitCamera::initWithDuration(\n    v5,\n    this->m_fDuration,\n    *((float *)this + 34),\n    *((float *)this + 35),\n    *((float *)this + 36),\n    *((float *)this + 37),\n    *((float *)this + 38),\n    *((float *)this + 39));\n  if ( v4 )\n    j_j_free_0(v4);\n  return v5;\n}", "assembly": "; \n; cocos2d::CCOrbitCamera::copyWithZone from 0x1800249e0 to 0x180024ad4 (244 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800e7600\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801af214\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, 0x1800249e0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1800249e5\npush    rdi                                                            ; +0xa, 0x1800249ea\nsub     rsp, 40h                                                       ; +0xb, 0x1800249eb\nmov     rax, rdx                                                       ; +0xf, 0x1800249ef\nmov     rsi, rcx                                                       ; +0x12, 0x1800249f2\nxor     edi, edi                                                       ; +0x15, 0x1800249f5\ntest    rdx, rdx                                                       ; +0x17, 0x1800249f7\njz      short loc_180024A04                                            ; +0x1a, 0x1800249fa\nmov     rbx, [rdx]                                                     ; +0x1c, 0x1800249fc\ntest    rbx, rbx                                                       ; +0x1f, 0x1800249ff\njnz     short loc_180024A4F                                            ; +0x22, 0x180024a02\nmov     ecx, 0B0h; Size                                                ; +0x24, 0x180024a04\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x29, 0x180024a09\nmov     [rsp+48h+arg_0], rax                                           ; +0x2e, 0x180024a0e\ntest    rax, rax                                                       ; +0x33, 0x180024a13\njz      short loc_180024A25                                            ; +0x36, 0x180024a16\nmov     rcx, rax; this                                                 ; +0x38, 0x180024a18\ncall    ??0CCOrbitCamera@cocos2d@@QEAA@XZ; cocos2d::CCOrbitCamera::CCOrbitCamera(void) ; +0x3b, 0x180024a1b\nmov     rbx, rax                                                       ; +0x40, 0x180024a20\njmp     short loc_180024A28                                            ; +0x43, 0x180024a23\nmov     rbx, rdi                                                       ; +0x45, 0x180024a25\nmov     ecx, 8; Size                                                   ; +0x48, 0x180024a28\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x4d, 0x180024a2d\nmov     [rsp+48h+arg_0], rax                                           ; +0x52, 0x180024a32\ntest    rax, rax                                                       ; +0x57, 0x180024a37\njz      short loc_180024A49                                            ; +0x5a, 0x180024a3a\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0x5c, 0x180024a3c\nmov     rcx, rax; this                                                 ; +0x5f, 0x180024a3f\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0x62, 0x180024a42\njmp     short loc_180024A4C                                            ; +0x67, 0x180024a47\nmov     rax, rdi                                                       ; +0x69, 0x180024a49\nmov     rdi, rax                                                       ; +0x6c, 0x180024a4c\nmov     rdx, rax; struct cocos2d::CCZone *                             ; +0x6f, 0x180024a4f\nmov     rcx, rsi; this                                                 ; +0x72, 0x180024a52\ncall    ?copyWithZone@CCActionInterval@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCActionInterval::copyWithZone(cocos2d::CCZone *) ; +0x75, 0x180024a55\nmovss   xmm0, dword ptr [rsi+9Ch]                                      ; +0x7a, 0x180024a5a\nmovss   [rsp+48h+var_10], xmm0; float                                  ; +0x82, 0x180024a62\nmovss   xmm1, dword ptr [rsi+98h]                                      ; +0x88, 0x180024a68\nmovss   [rsp+48h+var_18], xmm1; float                                  ; +0x90, 0x180024a70\nmovss   xmm0, dword ptr [rsi+94h]                                      ; +0x96, 0x180024a76\nmovss   [rsp+48h+var_20], xmm0; float                                  ; +0x9e, 0x180024a7e\nmovss   xmm1, dword ptr [rsi+90h]                                      ; +0xa4, 0x180024a84\nmovss   [rsp+48h+var_28], xmm1; float                                  ; +0xac, 0x180024a8c\nmovss   xmm3, dword ptr [rsi+8Ch]; float                               ; +0xb2, 0x180024a92\nmovss   xmm2, dword ptr [rsi+88h]; float                               ; +0xba, 0x180024a9a\nmovss   xmm1, dword ptr [rsi+50h]; float                               ; +0xc2, 0x180024aa2\nmov     rcx, rbx; this                                                 ; +0xc7, 0x180024aa7\ncall    ?initWithDuration@CCOrbitCamera@cocos2d@@QEAA_NMMMMMMM@Z; cocos2d::CCOrbitCamera::initWithDuration(float,float,float,float,float,float,float) ; +0xca, 0x180024aaa\ntest    rdi, rdi                                                       ; +0xcf, 0x180024aaf\njz      short loc_180024AC1                                            ; +0xd2, 0x180024ab2\nmov     edx, 8                                                         ; +0xd4, 0x180024ab4\nmov     rcx, rdi; Block                                                ; +0xd9, 0x180024ab9\ncall    j_j_free_0                                                     ; +0xdc, 0x180024abc\nmov     rax, rbx                                                       ; +0xe1, 0x180024ac1\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xe4, 0x180024ac4\nmov     rsi, [rsp+48h+arg_10]                                          ; +0xe9, 0x180024ac9\nadd     rsp, 40h                                                       ; +0xee, 0x180024ace\npop     rdi                                                            ; +0xf2, 0x180024ad2\nretn                                                                   ; +0xf3, 0x180024ad3", "xrefs": ["<???> @ 0x1800e7600", "<???> @ 0x1801438a8", "<???> @ 0x1801af214"], "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"}