{"type": "func", "start": 6442662048, "end": 6442662313, "name": "cocos2d::CCTintBy::copyWithZone", "pseudocode": "// \n// cocos2d::CCTintBy::copyWithZone from 0x1800338a0 to 0x1800339a9 (265 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800efdc8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801ba624\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:34 +0000\n// \n\nstruct cocos2d::CCObject *__fastcall cocos2d::CCTintBy::copyWithZone(\n        cocos2d::CCTintBy *this,\n        struct cocos2d::CCZone *a2)\n{\n  struct cocos2d::CCZone *v2; // rax\n  struct cocos2d::CCZone *v4; // rdi\n  cocos2d::CCAction *v5; // rbx\n  cocos2d::CCAction *v6; // rax\n  __int16 v7; // ax\n  __int16 v8; // cx\n  __int16 v9; // r8\n  float v10; // xmm1_4\n\n  v2 = a2;\n  v4 = nullptr;\n  if ( !a2 || (v5 = *(cocos2d::CCAction **)a2) == nullptr )\n  {\n    v6 = (cocos2d::CCAction *)sub_1800E4AC0(0x70u);\n    v5 = v6;\n    if ( v6 )\n    {\n      *(_OWORD *)v6 = 0;\n      *((_OWORD *)v6 + 1) = 0;\n      *((_OWORD *)v6 + 2) = 0;\n      *((_OWORD *)v6 + 3) = 0;\n      *((_OWORD *)v6 + 4) = 0;\n      *((_OWORD *)v6 + 5) = 0;\n      *((_OWORD *)v6 + 6) = 0;\n      cocos2d::CCAction::CCAction(v6);\n      *((_DWORD *)v5 + 20) = 0;\n      *(_QWORD *)v5 = &cocos2d::CCTintBy::`vftable';\n    }\n    else\n    {\n      v5 = nullptr;\n    }\n    v2 = (struct cocos2d::CCZone *)sub_1800E4AC0(8u);\n    if ( v2 )\n      v2 = tinyxml2::XMLHandle::XMLHandle(v2, v5);\n    v4 = v2;\n  }\n  cocos2d::CCActionInterval::copyWithZone(this, (struct cocos2d::CCObject **)v2);\n  v7 = *((unsigned __int8 *)this + 100);\n  v8 = *((unsigned __int8 *)this + 98);\n  v9 = *((unsigned __int8 *)this + 96);\n  v10 = *((float *)this + 20);\n  *((float *)v5 + 20) = v10;\n  if ( v10 == 0.0 )\n    *((_DWORD *)v5 + 20) = 872415232;\n  *((_DWORD *)v5 + 22) = 0;\n  *((_BYTE *)v5 + 92) = 1;\n  *((_WORD *)v5 + 48) = v9;\n  *((_WORD *)v5 + 49) = v8;\n  *((_WORD *)v5 + 50) = v7;\n  if ( v4 )\n    j_j_free_0(v4);\n  return v5;\n}", "assembly": "; \n; cocos2d::CCTintBy::copyWithZone from 0x1800338a0 to 0x1800339a9 (265 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800efdc8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801ba624\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:34 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800338a0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1800338a5\npush    rdi                                                            ; +0xa, 0x1800338aa\nsub     rsp, 20h                                                       ; +0xb, 0x1800338ab\nmov     rax, rdx                                                       ; +0xf, 0x1800338af\nmov     rsi, rcx                                                       ; +0x12, 0x1800338b2\nxor     edi, edi                                                       ; +0x15, 0x1800338b5\ntest    rdx, rdx                                                       ; +0x17, 0x1800338b7\njz      short loc_1800338C4                                            ; +0x1a, 0x1800338ba\nmov     rbx, [rdx]                                                     ; +0x1c, 0x1800338bc\ntest    rbx, rbx                                                       ; +0x1f, 0x1800338bf\njnz     short loc_180033939                                            ; +0x22, 0x1800338c2\nmov     ecx, 70h ; 'p'; Size                                           ; +0x24, 0x1800338c4\ncall    sub_1800E4AC0                                                  ; +0x29, 0x1800338c9\nmov     rbx, rax                                                       ; +0x2e, 0x1800338ce\nmov     [rsp+28h+arg_0], rax                                           ; +0x31, 0x1800338d1\ntest    rax, rax                                                       ; +0x36, 0x1800338d6\njz      short loc_180033914                                            ; +0x39, 0x1800338d9\nxorps   xmm0, xmm0                                                     ; +0x3b, 0x1800338db\nmovups  xmmword ptr [rax], xmm0                                        ; +0x3e, 0x1800338de\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x41, 0x1800338e1\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x45, 0x1800338e5\nmovups  xmmword ptr [rax+30h], xmm0                                    ; +0x49, 0x1800338e9\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0x4d, 0x1800338ed\nmovups  xmmword ptr [rax+50h], xmm0                                    ; +0x51, 0x1800338f1\nmovups  xmmword ptr [rax+60h], xmm0                                    ; +0x55, 0x1800338f5\nmov     rcx, rax; this                                                 ; +0x59, 0x1800338f9\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x5c, 0x1800338fc\nmov     dword ptr [rbx+50h], 0                                         ; +0x61, 0x180033901\nlea     rax, ??_7CCTintBy@cocos2d@@6B@; const cocos2d::CCTintBy::`vftable' ; +0x68, 0x180033908\nmov     [rbx], rax                                                     ; +0x6f, 0x18003390f\njmp     short loc_180033916                                            ; +0x72, 0x180033912\nxor     ebx, ebx                                                       ; +0x74, 0x180033914\nmov     ecx, 8; Size                                                   ; +0x76, 0x180033916\ncall    sub_1800E4AC0                                                  ; +0x7b, 0x18003391b\nmov     [rsp+28h+arg_0], rax                                           ; +0x80, 0x180033920\ntest    rax, rax                                                       ; +0x85, 0x180033925\njz      short loc_180033936                                            ; +0x88, 0x180033928\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0x8a, 0x18003392a\nmov     rcx, rax; this                                                 ; +0x8d, 0x18003392d\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0x90, 0x180033930\nnop                                                                    ; +0x95, 0x180033935\nmov     rdi, rax                                                       ; +0x96, 0x180033936\nmov     rdx, rax; struct cocos2d::CCZone *                             ; +0x99, 0x180033939\nmov     rcx, rsi; this                                                 ; +0x9c, 0x18003393c\ncall    ?copyWithZone@CCActionInterval@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCActionInterval::copyWithZone(cocos2d::CCZone *) ; +0x9f, 0x18003393f\nmovzx   eax, byte ptr [rsi+64h]                                        ; +0xa4, 0x180033944\nmovzx   ecx, byte ptr [rsi+62h]                                        ; +0xa8, 0x180033948\nmovzx   r8d, byte ptr [rsi+60h]                                        ; +0xac, 0x18003394c\nmovss   xmm1, dword ptr [rsi+50h]                                      ; +0xb1, 0x180033951\nmovss   dword ptr [rbx+50h], xmm1                                      ; +0xb6, 0x180033956\nxorps   xmm0, xmm0                                                     ; +0xbb, 0x18003395b\nucomiss xmm1, xmm0                                                     ; +0xbe, 0x18003395e\njp      short loc_18003396C                                            ; +0xc1, 0x180033961\njnz     short loc_18003396C                                            ; +0xc3, 0x180033963\nmov     dword ptr [rbx+50h], 34000000h                                 ; +0xc5, 0x180033965\nmov     dword ptr [rbx+58h], 0                                         ; +0xcc, 0x18003396c\nmov     byte ptr [rbx+5Ch], 1                                          ; +0xd3, 0x180033973\nmov     [rbx+60h], r8w                                                 ; +0xd7, 0x180033977\nmov     [rbx+62h], cx                                                  ; +0xdc, 0x18003397c\nmov     [rbx+64h], ax                                                  ; +0xe0, 0x180033980\ntest    rdi, rdi                                                       ; +0xe4, 0x180033984\njz      short loc_180033996                                            ; +0xe7, 0x180033987\nmov     edx, 8                                                         ; +0xe9, 0x180033989\nmov     rcx, rdi; Block                                                ; +0xee, 0x18003398e\ncall    j_j_free_0                                                     ; +0xf1, 0x180033991\nmov     rax, rbx                                                       ; +0xf6, 0x180033996\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xf9, 0x180033999\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xfe, 0x18003399e\nadd     rsp, 20h                                                       ; +0x103, 0x1800339a3\npop     rdi                                                            ; +0x107, 0x1800339a7\nretn                                                                   ; +0x108, 0x1800339a8", "xrefs": ["<???> @ 0x1800efdc8", "<???> @ 0x18014cf68", "<???> @ 0x1801ba624"], "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"}