{"type": "func", "start": 6442662320, "end": 6442662584, "name": "cocos2d::CCTintTo::copyWithZone", "pseudocode": "// \n// cocos2d::CCTintTo::copyWithZone from 0x1800339b0 to 0x180033ab8 (264 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800efd50\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801ba630\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::CCTintTo::copyWithZone(\n        cocos2d::CCTintTo *this,\n        struct cocos2d::CCZone *a2)\n{\n  struct cocos2d::CCZone *v2; // rax\n  struct cocos2d::CCZone *v4; // rdi\n  __int64 v5; // rbx\n  char v6; // al\n  char v7; // cl\n  char v8; // r8\n  float v9; // xmm1_4\n\n  v2 = a2;\n  v4 = nullptr;\n  if ( !a2 || (v5 = *(_QWORD *)a2) == 0 )\n  {\n    v5 = sub_1800E4AC0(0x68u);\n    if ( v5 )\n    {\n      *(_OWORD *)v5 = 0;\n      *(_OWORD *)(v5 + 16) = 0;\n      *(_OWORD *)(v5 + 32) = 0;\n      *(_OWORD *)(v5 + 48) = 0;\n      *(_OWORD *)(v5 + 64) = 0;\n      *(_OWORD *)(v5 + 80) = 0;\n      *(_QWORD *)(v5 + 96) = 0;\n      cocos2d::CCAction::CCAction((cocos2d::CCAction *)v5);\n      *(_DWORD *)(v5 + 80) = 0;\n      *(_QWORD *)v5 = &cocos2d::CCTintTo::`vftable';\n    }\n    else\n    {\n      v5 = 0;\n    }\n    v2 = (struct cocos2d::CCZone *)sub_1800E4AC0(8u);\n    if ( v2 )\n      v2 = tinyxml2::XMLHandle::XMLHandle(v2, (struct tinyxml2::XMLNode *)v5);\n    v4 = v2;\n  }\n  cocos2d::CCActionInterval::copyWithZone(this, (struct cocos2d::CCObject **)v2);\n  v6 = *((_BYTE *)this + 98);\n  v7 = *((_BYTE *)this + 97);\n  v8 = *((_BYTE *)this + 96);\n  v9 = *((float *)this + 20);\n  *(float *)(v5 + 80) = v9;\n  if ( v9 == 0.0 )\n    *(_DWORD *)(v5 + 80) = 872415232;\n  *(_DWORD *)(v5 + 88) = 0;\n  *(_BYTE *)(v5 + 92) = 1;\n  *(_BYTE *)(v5 + 96) = v8;\n  *(_BYTE *)(v5 + 97) = v7;\n  *(_BYTE *)(v5 + 98) = v6;\n  if ( v4 )\n    j_j_free_0(v4);\n  return (struct cocos2d::CCObject *)v5;\n}", "assembly": "; \n; cocos2d::CCTintTo::copyWithZone from 0x1800339b0 to 0x180033ab8 (264 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800efd50\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801ba630\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, 0x1800339b0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1800339b5\npush    rdi                                                            ; +0xa, 0x1800339ba\nsub     rsp, 20h                                                       ; +0xb, 0x1800339bb\nmov     rax, rdx                                                       ; +0xf, 0x1800339bf\nmov     rsi, rcx                                                       ; +0x12, 0x1800339c2\nxor     edi, edi                                                       ; +0x15, 0x1800339c5\ntest    rdx, rdx                                                       ; +0x17, 0x1800339c7\njz      short loc_1800339D4                                            ; +0x1a, 0x1800339ca\nmov     rbx, [rdx]                                                     ; +0x1c, 0x1800339cc\ntest    rbx, rbx                                                       ; +0x1f, 0x1800339cf\njnz     short loc_180033A4B                                            ; +0x22, 0x1800339d2\nmov     ecx, 68h ; 'h'; Size                                           ; +0x24, 0x1800339d4\ncall    sub_1800E4AC0                                                  ; +0x29, 0x1800339d9\nmov     rbx, rax                                                       ; +0x2e, 0x1800339de\nmov     [rsp+28h+arg_0], rax                                           ; +0x31, 0x1800339e1\ntest    rax, rax                                                       ; +0x36, 0x1800339e6\njz      short loc_180033A26                                            ; +0x39, 0x1800339e9\nxorps   xmm0, xmm0                                                     ; +0x3b, 0x1800339eb\nxor     eax, eax                                                       ; +0x3e, 0x1800339ee\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x40, 0x1800339f0\nmovups  xmmword ptr [rbx+10h], xmm0                                    ; +0x43, 0x1800339f3\nmovups  xmmword ptr [rbx+20h], xmm0                                    ; +0x47, 0x1800339f7\nmovups  xmmword ptr [rbx+30h], xmm0                                    ; +0x4b, 0x1800339fb\nmovups  xmmword ptr [rbx+40h], xmm0                                    ; +0x4f, 0x1800339ff\nmovups  xmmword ptr [rbx+50h], xmm0                                    ; +0x53, 0x180033a03\nmov     [rbx+60h], rax                                                 ; +0x57, 0x180033a07\nmov     rcx, rbx; this                                                 ; +0x5b, 0x180033a0b\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x5e, 0x180033a0e\nmov     dword ptr [rbx+50h], 0                                         ; +0x63, 0x180033a13\nlea     rax, ??_7CCTintTo@cocos2d@@6B@; const cocos2d::CCTintTo::`vftable' ; +0x6a, 0x180033a1a\nmov     [rbx], rax                                                     ; +0x71, 0x180033a21\njmp     short loc_180033A28                                            ; +0x74, 0x180033a24\nxor     ebx, ebx                                                       ; +0x76, 0x180033a26\nmov     ecx, 8; Size                                                   ; +0x78, 0x180033a28\ncall    sub_1800E4AC0                                                  ; +0x7d, 0x180033a2d\nmov     [rsp+28h+arg_0], rax                                           ; +0x82, 0x180033a32\ntest    rax, rax                                                       ; +0x87, 0x180033a37\njz      short loc_180033A48                                            ; +0x8a, 0x180033a3a\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0x8c, 0x180033a3c\nmov     rcx, rax; this                                                 ; +0x8f, 0x180033a3f\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0x92, 0x180033a42\nnop                                                                    ; +0x97, 0x180033a47\nmov     rdi, rax                                                       ; +0x98, 0x180033a48\nmov     rdx, rax; struct cocos2d::CCZone *                             ; +0x9b, 0x180033a4b\nmov     rcx, rsi; this                                                 ; +0x9e, 0x180033a4e\ncall    ?copyWithZone@CCActionInterval@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCActionInterval::copyWithZone(cocos2d::CCZone *) ; +0xa1, 0x180033a51\nmovzx   eax, byte ptr [rsi+62h]                                        ; +0xa6, 0x180033a56\nmovzx   ecx, byte ptr [rsi+61h]                                        ; +0xaa, 0x180033a5a\nmovzx   r8d, byte ptr [rsi+60h]                                        ; +0xae, 0x180033a5e\nmovss   xmm1, dword ptr [rsi+50h]                                      ; +0xb3, 0x180033a63\nmovss   dword ptr [rbx+50h], xmm1                                      ; +0xb8, 0x180033a68\nxorps   xmm0, xmm0                                                     ; +0xbd, 0x180033a6d\nucomiss xmm1, xmm0                                                     ; +0xc0, 0x180033a70\njp      short loc_180033A7E                                            ; +0xc3, 0x180033a73\njnz     short loc_180033A7E                                            ; +0xc5, 0x180033a75\nmov     dword ptr [rbx+50h], 34000000h                                 ; +0xc7, 0x180033a77\nmov     dword ptr [rbx+58h], 0                                         ; +0xce, 0x180033a7e\nmov     byte ptr [rbx+5Ch], 1                                          ; +0xd5, 0x180033a85\nmov     [rbx+60h], r8b                                                 ; +0xd9, 0x180033a89\nmov     [rbx+61h], cl                                                  ; +0xdd, 0x180033a8d\nmov     [rbx+62h], al                                                  ; +0xe0, 0x180033a90\ntest    rdi, rdi                                                       ; +0xe3, 0x180033a93\njz      short loc_180033AA5                                            ; +0xe6, 0x180033a96\nmov     edx, 8                                                         ; +0xe8, 0x180033a98\nmov     rcx, rdi; Block                                                ; +0xed, 0x180033a9d\ncall    j_j_free_0                                                     ; +0xf0, 0x180033aa0\nmov     rax, rbx                                                       ; +0xf5, 0x180033aa5\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xf8, 0x180033aa8\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xfd, 0x180033aad\nadd     rsp, 20h                                                       ; +0x102, 0x180033ab2\npop     rdi                                                            ; +0x106, 0x180033ab6\nretn                                                                   ; +0x107, 0x180033ab7", "xrefs": ["<???> @ 0x1800efd50", "<???> @ 0x18014cf68", "<???> @ 0x1801ba630"], "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"}