{"type": "func", "start": 4298496832, "end": 4298497188, "name": "CCPartAnimSprite::transformSprite", "pseudocode": "// \n// CCPartAnimSprite::transformSprite from 0x10035db40 to 0x10035dca4 (356 bytes)\n// \n// 1 xrefs:\n// > CCPartAnimSprite::setDisplayFrame @ 0x10035e3cb\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 12:28:55 +0000\n// \n\n__int64 __fastcall CCPartAnimSprite::transformSprite(_QWORD *a1, __int64 a2)\n{\n  _BYTE *v3; // rbx\n  __m128 v4; // xmm0\n  __m128 v5; // rt1\n  __m128 v6; // xmm1\n  __int64 v7; // rax\n  __int128 *v8; // rax\n  __int128 v10; // [rsp+0h] [rbp-30h] BYREF\n  void *__p; // [rsp+10h] [rbp-20h]\n\n  v3 = (_BYTE *)sub_1007FEFE0(a1[79], *(unsigned int *)(a2 + 88));\n  cocos2d::CCNode::stopAllActions((__int64)v3);\n  (*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)v3 + 184LL))(v3, a2 + 56);\n  v4 = _mm_cmpneq_ss((__m128)*(unsigned int *)(a2 + 72), (__m128)0LL);\n  (*(void (__fastcall **)(_BYTE *, double))(*(_QWORD *)v3 + 128LL))(\n    v3,\n    COERCE_DOUBLE(\n      _mm_andnot_ps(v4, (__m128)*(unsigned int *)(a2 + 64)).u64[0]\n    | (*(unsigned int *)(a2 + 64) ^ 0x8000000080000000LL) & v4.i64[0]));\n  v5.i32[0] = *(_DWORD *)(a2 + 76);\n  v6 = _mm_cmpneq_ss((__m128)0LL, v5);\n  (*(void (__fastcall **)(_BYTE *, double))(*(_QWORD *)v3 + 144LL))(\n    v3,\n    COERCE_DOUBLE(\n      _mm_andnot_ps(v6, (__m128)*(unsigned int *)(a2 + 68)).u64[0]\n    | (*(unsigned int *)(a2 + 68) ^ 0x8000000080000000LL) & v6.i64[0]));\n  (*(void (__fastcall **)(_BYTE *, float))(*(_QWORD *)v3 + 360LL))(v3, *(float *)(a2 + 80));\n  if ( *(_BYTE *)(a2 + 92) == 1 )\n  {\n    (*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)v3 + 1160LL))(v3, *(_QWORD *)(a2 + 96));\n    v7 = *(_QWORD *)(a2 + 96);\n    if ( (*(_BYTE *)(v7 + 160) & 1) != 0 )\n    {\n      sub_10001AD30(&v10, *(const void **)(v7 + 176), *(_QWORD *)(v7 + 168));\n    }\n    else\n    {\n      v8 = (__int128 *)(v7 + 160);\n      __p = *((void **)v8 + 2);\n      v10 = *v8;\n    }\n    CCSpritePart::frameChanged(v3, &v10);\n    if ( (v10 & 1) != 0 )\n      operator delete(__p);\n  }\n  if ( (*(unsigned int (__fastcall **)(_BYTE *))(*(_QWORD *)v3 + 104LL))(v3) != *(_DWORD *)(a2 + 84) )\n    (*(void (__fastcall **)(_QWORD *, _BYTE *))(*a1 + 592LL))(a1, v3);\n  v3[619] = 1;\n  return (*(__int64 (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)v3 + 344LL))(v3, 1);\n}", "assembly": "; \n; CCPartAnimSprite::transformSprite from 0x10035db40 to 0x10035dca4 (356 bytes)\n; \n; 1 xrefs:\n; > CCPartAnimSprite::setDisplayFrame @ 0x10035e3cb\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 12:28:55 +0000\n; \npush    rbp                                                            ; +0x0, 0x10035db40\nmov     rbp, rsp                                                       ; +0x1, 0x10035db41\npush    r15                                                            ; +0x4, 0x10035db44\npush    r14                                                            ; +0x6, 0x10035db46\npush    rbx                                                            ; +0x8, 0x10035db48\nsub     rsp, 18h                                                       ; +0x9, 0x10035db49\nmov     r15, rsi                                                       ; +0xd, 0x10035db4d\nmov     r14, rdi                                                       ; +0x10, 0x10035db50\nmov     rdi, [rdi+278h]                                                ; +0x13, 0x10035db53\nmov     esi, [rsi+58h]                                                 ; +0x1a, 0x10035db5a\ncall    sub_1007FEFE0                                                  ; +0x1d, 0x10035db5d\nmov     rbx, rax                                                       ; +0x22, 0x10035db62\nmov     rdi, rax                                                       ; +0x25, 0x10035db65\ncall    cocos2d__CCNode__stopAllActions                                ; +0x28, 0x10035db68\nlea     rsi, [r15+38h]                                                 ; +0x2d, 0x10035db6d\nmov     rax, [rbx]                                                     ; +0x31, 0x10035db71\nmov     rdi, rbx                                                       ; +0x34, 0x10035db74\ncall    qword ptr [rax+0B8h]                                           ; +0x37, 0x10035db77\nmovss   xmm1, dword ptr [r15+40h]                                      ; +0x3d, 0x10035db7d\nmovaps  xmm2, xmm1                                                     ; +0x43, 0x10035db83\nxorps   xmm2, cs:xmmword_100A035F0                                     ; +0x46, 0x10035db86\nxorps   xmm3, xmm3                                                     ; +0x4d, 0x10035db8d\nmovss   xmm0, dword ptr [r15+48h]                                      ; +0x50, 0x10035db90\ncmpneqss xmm0, xmm3                                                    ; +0x56, 0x10035db96\nandps   xmm2, xmm0                                                     ; +0x5b, 0x10035db9b\nandnps  xmm0, xmm1                                                     ; +0x5e, 0x10035db9e\norps    xmm0, xmm2                                                     ; +0x61, 0x10035dba1\nmov     rax, [rbx]                                                     ; +0x64, 0x10035dba4\nmov     rdi, rbx                                                       ; +0x67, 0x10035dba7\ncall    qword ptr [rax+80h]                                            ; +0x6a, 0x10035dbaa\nmovss   xmm0, dword ptr [r15+44h]                                      ; +0x70, 0x10035dbb0\nmovaps  xmm2, cs:xmmword_100A035F0                                     ; +0x76, 0x10035dbb6\nxorps   xmm2, xmm0                                                     ; +0x7d, 0x10035dbbd\nxorps   xmm1, xmm1                                                     ; +0x80, 0x10035dbc0\ncmpneqss xmm1, dword ptr [r15+4Ch]                                     ; +0x83, 0x10035dbc3\nandps   xmm2, xmm1                                                     ; +0x8a, 0x10035dbca\nandnps  xmm1, xmm0                                                     ; +0x8d, 0x10035dbcd\norps    xmm1, xmm2                                                     ; +0x90, 0x10035dbd0\nmovaps  xmm0, xmm1                                                     ; +0x93, 0x10035dbd3\nmov     rax, [rbx]                                                     ; +0x96, 0x10035dbd6\nmov     rdi, rbx                                                       ; +0x99, 0x10035dbd9\ncall    qword ptr [rax+90h]                                            ; +0x9c, 0x10035dbdc\nmovss   xmm0, dword ptr [r15+50h]                                      ; +0xa2, 0x10035dbe2\nmov     rax, [rbx]                                                     ; +0xa8, 0x10035dbe8\nmov     rdi, rbx                                                       ; +0xab, 0x10035dbeb\ncall    qword ptr [rax+168h]                                           ; +0xae, 0x10035dbee\ncmp     byte ptr [r15+5Ch], 1                                          ; +0xb4, 0x10035dbf4\njnz     short loc_10035DC61                                            ; +0xb9, 0x10035dbf9\nmov     rsi, [r15+60h]                                                 ; +0xbb, 0x10035dbfb\nmov     rax, [rbx]                                                     ; +0xbf, 0x10035dbff\nmov     rdi, rbx                                                       ; +0xc2, 0x10035dc02\ncall    qword ptr [rax+488h]                                           ; +0xc5, 0x10035dc05\nmov     rax, [r15+60h]                                                 ; +0xcb, 0x10035dc0b\ntest    byte ptr [rax+0A0h], 1                                         ; +0xcf, 0x10035dc0f\njnz     short loc_10035DC2F                                            ; +0xd6, 0x10035dc16\nadd     rax, 0A0h                                                      ; +0xd8, 0x10035dc18\nmov     rcx, [rax+10h]                                                 ; +0xde, 0x10035dc1e\nmov     [rbp+__p], rcx                                                 ; +0xe2, 0x10035dc22\nmovups  xmm0, xmmword ptr [rax]                                        ; +0xe6, 0x10035dc26\nmovaps  [rbp+var_30], xmm0                                             ; +0xe9, 0x10035dc29\njmp     short loc_10035DC46                                            ; +0xed, 0x10035dc2d\nmov     rdx, [rax+0A8h]                                                ; +0xef, 0x10035dc2f\nmov     rsi, [rax+0B0h]                                                ; +0xf6, 0x10035dc36\nlea     rdi, [rbp+var_30]                                              ; +0xfd, 0x10035dc3d\ncall    sub_10001AD30                                                  ; +0x101, 0x10035dc41\nlea     rsi, [rbp+var_30]                                              ; +0x106, 0x10035dc46\nmov     rdi, rbx                                                       ; +0x10a, 0x10035dc4a\ncall    CCSpritePart__frameChanged                                     ; +0x10d, 0x10035dc4d\ntest    byte ptr [rbp+var_30], 1                                       ; +0x112, 0x10035dc52\njz      short loc_10035DC61                                            ; +0x116, 0x10035dc56\nmov     rdi, [rbp+__p]; __p                                            ; +0x118, 0x10035dc58\ncall    __ZdlPv; operator delete(void *)                               ; +0x11c, 0x10035dc5c\nmov     rax, [rbx]                                                     ; +0x121, 0x10035dc61\nmov     rdi, rbx                                                       ; +0x124, 0x10035dc64\ncall    qword ptr [rax+68h]                                            ; +0x127, 0x10035dc67\nmov     edx, [r15+54h]                                                 ; +0x12a, 0x10035dc6a\ncmp     eax, edx                                                       ; +0x12e, 0x10035dc6e\njz      short loc_10035DC81                                            ; +0x130, 0x10035dc70\nmov     rax, [r14]                                                     ; +0x132, 0x10035dc72\nmov     rdi, r14                                                       ; +0x135, 0x10035dc75\nmov     rsi, rbx                                                       ; +0x138, 0x10035dc78\ncall    qword ptr [rax+250h]                                           ; +0x13b, 0x10035dc7b\nmov     byte ptr [rbx+26Bh], 1                                         ; +0x141, 0x10035dc81\nmov     rax, [rbx]                                                     ; +0x148, 0x10035dc88\nmov     rdi, rbx                                                       ; +0x14b, 0x10035dc8b\nmov     esi, 1                                                         ; +0x14e, 0x10035dc8e\ncall    qword ptr [rax+158h]                                           ; +0x153, 0x10035dc93\nadd     rsp, 18h                                                       ; +0x159, 0x10035dc99\npop     rbx                                                            ; +0x15d, 0x10035dc9d\npop     r14                                                            ; +0x15e, 0x10035dc9e\npop     r15                                                            ; +0x160, 0x10035dca0\npop     rbp                                                            ; +0x162, 0x10035dca2\nretn                                                                   ; +0x163, 0x10035dca3", "xrefs": ["CCPartAnimSprite::setDisplayFrame @ 0x10035e3cb"], "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"}