{"type": "func", "start": 4298589808, "end": 4298590164, "name": "CCPartAnimSprite::transformSprite", "pseudocode": "// \n// CCPartAnimSprite::transformSprite from 0x100374670 to 0x1003747d4 (356 bytes)\n// \n// 1 xrefs:\n// > CCPartAnimSprite::setDisplayFrame @ 0x100374efb\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\nvoid __fastcall CCPartAnimSprite::transformSprite(CCPartAnimSprite *a1, SpriteDescription *a2)\n{\n  __int64 v3; // rbx\n  __m128 v4; // xmm0\n  __m128 v5; // rt1\n  __m128 v6; // xmm1\n  double v7; // xmm0_8\n  cocos2d::CCSpriteFrame *m_texture; // rax\n  std::string *p_m_strFrameName; // rax\n  __int128 v10; // [rsp+0h] [rbp-30h] BYREF\n  void *__p; // [rsp+10h] [rbp-20h]\n\n  v3 = sub_1007200C0(a1->m_spriteParts, (unsigned int)a2->m_tag);\n  cocos2d::CCNode::stopAllActions((cocos2d::CCNode *)v3);\n  (*(void (__fastcall **)(__int64, cocos2d::CCPoint *))(*(_QWORD *)v3 + 184LL))(v3, &a2->m_position);\n  v4 = _mm_cmpneq_ss((__m128)LODWORD(a2->m_flipped.x), (__m128)0LL);\n  (*(void (__fastcall **)(__int64, double))(*(_QWORD *)v3 + 128LL))(\n    v3,\n    COERCE_DOUBLE(\n      _mm_andnot_ps(v4, (__m128)LODWORD(a2->m_scale.x)).u64[0]\n    | (LODWORD(a2->m_scale.x) ^ 0x8000000080000000LL) & v4.i64[0]));\n  v5.i32[0] = LODWORD(a2->m_flipped.y);\n  v6 = _mm_cmpneq_ss((__m128)0LL, v5);\n  (*(void (__fastcall **)(__int64, double))(*(_QWORD *)v3 + 144LL))(\n    v3,\n    COERCE_DOUBLE(\n      _mm_andnot_ps(v6, (__m128)LODWORD(a2->m_scale.y)).u64[0]\n    | (LODWORD(a2->m_scale.y) ^ 0x8000000080000000LL) & v6.i64[0]));\n  *(_QWORD *)&v7 = LODWORD(a2->m_rotation);\n  (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v3 + 344LL))(v3, *(float *)&v7);\n  if ( a2->m_usesCustomTag )\n  {\n    (*(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v3 + 1144LL))(v3, a2->m_texture);\n    m_texture = a2->m_texture;\n    if ( (m_texture->m_strFrameName.m_data.m_short.sizex2 & 1) != 0 )\n    {\n      sub_100006B70(\n        &v10,\n        m_texture->m_strFrameName.m_data.m_long.longStorage,\n        m_texture->m_strFrameName.m_data.m_long.size,\n        v7);\n    }\n    else\n    {\n      p_m_strFrameName = &m_texture->m_strFrameName;\n      __p = p_m_strFrameName->m_data.m_long.longStorage;\n      v10 = *(_OWORD *)&p_m_strFrameName->m_data.m_short.sizex2;\n    }\n    CCSpritePart::frameChanged(v3, &v10);\n    if ( (v10 & 1) != 0 )\n      operator delete(__p);\n  }\n  if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v3 + 104LL))(v3) != a2->m_zValue )\n    ((void (__fastcall *)(CCPartAnimSprite *, __int64))a1->reorderChild)(a1, v3);\n  *(_BYTE *)(v3 + 619) = 1;\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 328LL))(v3, 1);\n}", "assembly": "; \n; CCPartAnimSprite::transformSprite from 0x100374670 to 0x1003747d4 (356 bytes)\n; \n; 1 xrefs:\n; > CCPartAnimSprite::setDisplayFrame @ 0x100374efb\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\npush    rbp                                                            ; +0x0, 0x100374670\nmov     rbp, rsp                                                       ; +0x1, 0x100374671\npush    r15                                                            ; +0x4, 0x100374674\npush    r14                                                            ; +0x6, 0x100374676\npush    rbx                                                            ; +0x8, 0x100374678\nsub     rsp, 18h                                                       ; +0x9, 0x100374679\nmov     r15, rsi                                                       ; +0xd, 0x10037467d\nmov     r14, rdi                                                       ; +0x10, 0x100374680\nmov     rdi, [rdi+278h]                                                ; +0x13, 0x100374683\nmov     esi, [rsi+58h]                                                 ; +0x1a, 0x10037468a\ncall    sub_1007200C0                                                  ; +0x1d, 0x10037468d\nmov     rbx, rax                                                       ; +0x22, 0x100374692\nmov     rdi, rax                                                       ; +0x25, 0x100374695\ncall    cocos2d__CCNode__stopAllActions                                ; +0x28, 0x100374698\nlea     rsi, [r15+38h]                                                 ; +0x2d, 0x10037469d\nmov     rax, [rbx]                                                     ; +0x31, 0x1003746a1\nmov     rdi, rbx                                                       ; +0x34, 0x1003746a4\ncall    qword ptr [rax+0B8h]                                           ; +0x37, 0x1003746a7\nmovss   xmm1, dword ptr [r15+40h]                                      ; +0x3d, 0x1003746ad\nmovaps  xmm2, xmm1                                                     ; +0x43, 0x1003746b3\nxorps   xmm2, cs:xmmword_1008150B0                                     ; +0x46, 0x1003746b6\nxorps   xmm3, xmm3                                                     ; +0x4d, 0x1003746bd\nmovss   xmm0, dword ptr [r15+48h]                                      ; +0x50, 0x1003746c0\ncmpneqss xmm0, xmm3                                                    ; +0x56, 0x1003746c6\nandps   xmm2, xmm0                                                     ; +0x5b, 0x1003746cb\nandnps  xmm0, xmm1                                                     ; +0x5e, 0x1003746ce\norps    xmm0, xmm2                                                     ; +0x61, 0x1003746d1\nmov     rax, [rbx]                                                     ; +0x64, 0x1003746d4\nmov     rdi, rbx                                                       ; +0x67, 0x1003746d7\ncall    qword ptr [rax+80h]                                            ; +0x6a, 0x1003746da\nmovss   xmm0, dword ptr [r15+44h]                                      ; +0x70, 0x1003746e0\nmovaps  xmm2, cs:xmmword_1008150B0                                     ; +0x76, 0x1003746e6\nxorps   xmm2, xmm0                                                     ; +0x7d, 0x1003746ed\nxorps   xmm1, xmm1                                                     ; +0x80, 0x1003746f0\ncmpneqss xmm1, dword ptr [r15+4Ch]                                     ; +0x83, 0x1003746f3\nandps   xmm2, xmm1                                                     ; +0x8a, 0x1003746fa\nandnps  xmm1, xmm0                                                     ; +0x8d, 0x1003746fd\norps    xmm1, xmm2                                                     ; +0x90, 0x100374700\nmovaps  xmm0, xmm1                                                     ; +0x93, 0x100374703\nmov     rax, [rbx]                                                     ; +0x96, 0x100374706\nmov     rdi, rbx                                                       ; +0x99, 0x100374709\ncall    qword ptr [rax+90h]                                            ; +0x9c, 0x10037470c\nmovss   xmm0, dword ptr [r15+50h]                                      ; +0xa2, 0x100374712\nmov     rax, [rbx]                                                     ; +0xa8, 0x100374718\nmov     rdi, rbx                                                       ; +0xab, 0x10037471b\ncall    qword ptr [rax+158h]                                           ; +0xae, 0x10037471e\ncmp     byte ptr [r15+5Ch], 1                                          ; +0xb4, 0x100374724\njnz     short loc_100374791                                            ; +0xb9, 0x100374729\nmov     rsi, [r15+60h]                                                 ; +0xbb, 0x10037472b\nmov     rax, [rbx]                                                     ; +0xbf, 0x10037472f\nmov     rdi, rbx                                                       ; +0xc2, 0x100374732\ncall    qword ptr [rax+478h]                                           ; +0xc5, 0x100374735\nmov     rax, [r15+60h]                                                 ; +0xcb, 0x10037473b\ntest    byte ptr [rax+0A0h], 1                                         ; +0xcf, 0x10037473f\njnz     short loc_10037475F                                            ; +0xd6, 0x100374746\nadd     rax, 0A0h                                                      ; +0xd8, 0x100374748\nmov     rcx, [rax+10h]                                                 ; +0xde, 0x10037474e\nmov     [rbp+__p], rcx                                                 ; +0xe2, 0x100374752\nmovups  xmm0, xmmword ptr [rax]                                        ; +0xe6, 0x100374756\nmovaps  [rbp+var_30], xmm0                                             ; +0xe9, 0x100374759\njmp     short loc_100374776                                            ; +0xed, 0x10037475d\nmov     rdx, [rax+0A8h]                                                ; +0xef, 0x10037475f\nmov     rsi, [rax+0B0h]                                                ; +0xf6, 0x100374766\nlea     rdi, [rbp+var_30]                                              ; +0xfd, 0x10037476d\ncall    sub_100006B70                                                  ; +0x101, 0x100374771\nlea     rsi, [rbp+var_30]                                              ; +0x106, 0x100374776\nmov     rdi, rbx                                                       ; +0x10a, 0x10037477a\ncall    CCSpritePart__frameChanged                                     ; +0x10d, 0x10037477d\ntest    byte ptr [rbp+var_30], 1                                       ; +0x112, 0x100374782\njz      short loc_100374791                                            ; +0x116, 0x100374786\nmov     rdi, [rbp+__p]; __p                                            ; +0x118, 0x100374788\ncall    __ZdlPv; operator delete(void *)                               ; +0x11c, 0x10037478c\nmov     rax, [rbx]                                                     ; +0x121, 0x100374791\nmov     rdi, rbx                                                       ; +0x124, 0x100374794\ncall    qword ptr [rax+68h]                                            ; +0x127, 0x100374797\nmov     edx, [r15+54h]                                                 ; +0x12a, 0x10037479a\ncmp     eax, edx                                                       ; +0x12e, 0x10037479e\njz      short loc_1003747B1                                            ; +0x130, 0x1003747a0\nmov     rax, [r14]                                                     ; +0x132, 0x1003747a2\nmov     rdi, r14                                                       ; +0x135, 0x1003747a5\nmov     rsi, rbx                                                       ; +0x138, 0x1003747a8\ncall    qword ptr [rax+240h]                                           ; +0x13b, 0x1003747ab\nmov     byte ptr [rbx+26Bh], 1                                         ; +0x141, 0x1003747b1\nmov     rax, [rbx]                                                     ; +0x148, 0x1003747b8\nmov     rdi, rbx                                                       ; +0x14b, 0x1003747bb\nmov     esi, 1                                                         ; +0x14e, 0x1003747be\ncall    qword ptr [rax+148h]                                           ; +0x153, 0x1003747c3\nadd     rsp, 18h                                                       ; +0x159, 0x1003747c9\npop     rbx                                                            ; +0x15d, 0x1003747cd\npop     r14                                                            ; +0x15e, 0x1003747ce\npop     r15                                                            ; +0x160, 0x1003747d0\npop     rbp                                                            ; +0x162, 0x1003747d2\nretn                                                                   ; +0x163, 0x1003747d3", "xrefs": ["CCPartAnimSprite::setDisplayFrame @ 0x100374efb"], "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"}