{"type": "func", "start": 4295486568, "end": 4295486928, "name": "CCPartAnimSprite::transformSprite", "pseudocode": "// \n// CCPartAnimSprite::transformSprite from 0x10007ec68 to 0x10007edd0 (360 bytes)\n// \n// 1 xrefs:\n// > CCPartAnimSprite::setDisplayFrame @ 0x10007f178\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 v4; // x19\n  __n128 v5; // q0\n  __n128 v6; // q0\n  cocos2d::CCSpriteFrame *m_texture; // x8\n  std::string __p; // [xsp+0h] [xbp-40h] BYREF\n\n  v4 = sub_10024A388(a1->m_spriteParts, (unsigned int)a2->m_tag);\n  cocos2d::CCNode::stopAllActions((cocos2d::CCNode *)v4);\n  (*(void (__fastcall **)(__int64, cocos2d::CCPoint *))(*(_QWORD *)v4 + 184LL))(v4, &a2->m_position);\n  if ( a2->m_flipped.x == 0.0 )\n    v5.n128_u32[0] = LODWORD(a2->m_scale.x);\n  else\n    v5.n128_f32[0] = -a2->m_scale.x;\n  (*(void (__fastcall **)(__int64, __n128))(*(_QWORD *)v4 + 128LL))(v4, v5);\n  if ( a2->m_flipped.y == 0.0 )\n    v6.n128_u32[0] = LODWORD(a2->m_scale.y);\n  else\n    v6.n128_f32[0] = -a2->m_scale.y;\n  (*(void (__fastcall **)(__int64, __n128))(*(_QWORD *)v4 + 144LL))(v4, v6);\n  (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 344LL))(v4, a2->m_rotation);\n  if ( a2->m_usesCustomTag )\n  {\n    (*(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v4 + 1144LL))(v4, a2->m_texture);\n    m_texture = a2->m_texture;\n    if ( m_texture->m_strFrameName.m_data.m_short.shortStorage.__elems_[22] < 0 )\n      sub_1000097D0(\n        &__p,\n        (void *)m_texture->m_strFrameName.m_data.m_long.capacitym1,\n        m_texture->m_strFrameName.m_data.m_long.size);\n    else\n      __p = m_texture->m_strFrameName;\n    CCSpritePart::frameChanged(v4, (std::string *)&__p);\n    if ( __p.m_data.m_short.shortStorage.__elems_[22] < 0 )\n      operator delete((void *)__p.m_data.m_long.capacitym1);\n  }\n  if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v4 + 104LL))(v4) != a2->m_zValue )\n    ((void (__fastcall *)(CCPartAnimSprite *, __int64))a1->reorderChild)(a1, v4);\n  *(_BYTE *)(v4 + 619) = 1;\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 328LL))(v4, 1);\n}", "assembly": "; \n; CCPartAnimSprite::transformSprite from 0x10007ec68 to 0x10007edd0 (360 bytes)\n; \n; 1 xrefs:\n; > CCPartAnimSprite::setDisplayFrame @ 0x10007f178\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\nSUB             SP, SP, #0x50                                          ; +0x0, 0x10007ec68\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x10007ec6c\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x10007ec70\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x10007ec74\nADD             X29, SP, #0x40                                         ; +0x10, 0x10007ec78\nMOV             X21, X1                                                ; +0x14, 0x10007ec7c\nMOV             X20, X0                                                ; +0x18, 0x10007ec80\nLDR             X0, [X0,#0x278]                                        ; +0x1c, 0x10007ec84\nLDR             W1, [X1,#0x58]                                         ; +0x20, 0x10007ec88\nBL              sub_10024A388                                          ; +0x24, 0x10007ec8c\nMOV             X19, X0                                                ; +0x28, 0x10007ec90\nBL              cocos2d__CCNode__stopAllActions                        ; +0x2c, 0x10007ec94\nLDR             X8, [X19]                                              ; +0x30, 0x10007ec98\nLDR             X8, [X8,#0xB8]                                         ; +0x34, 0x10007ec9c\nADD             X1, X21, #0x38 ; '8'                                   ; +0x38, 0x10007eca0\nMOV             X0, X19                                                ; +0x3c, 0x10007eca4\nBLR             X8                                                     ; +0x40, 0x10007eca8\nLDR             S0, [X21,#0x48]                                        ; +0x44, 0x10007ecac\nLDR             S1, [X21,#0x40]                                        ; +0x48, 0x10007ecb0\nFNEG            S2, S1                                                 ; +0x4c, 0x10007ecb4\nFCMP            S0, #0.0                                               ; +0x50, 0x10007ecb8\nFCSEL           S0, S2, S1, NE                                         ; +0x54, 0x10007ecbc\nLDR             X8, [X19]                                              ; +0x58, 0x10007ecc0\nLDR             X8, [X8,#0x80]                                         ; +0x5c, 0x10007ecc4\nMOV             X0, X19                                                ; +0x60, 0x10007ecc8\nBLR             X8                                                     ; +0x64, 0x10007eccc\nLDR             S0, [X21,#0x4C]                                        ; +0x68, 0x10007ecd0\nLDR             S1, [X21,#0x44]                                        ; +0x6c, 0x10007ecd4\nFNEG            S2, S1                                                 ; +0x70, 0x10007ecd8\nFCMP            S0, #0.0                                               ; +0x74, 0x10007ecdc\nFCSEL           S0, S2, S1, NE                                         ; +0x78, 0x10007ece0\nLDR             X8, [X19]                                              ; +0x7c, 0x10007ece4\nLDR             X8, [X8,#0x90]                                         ; +0x80, 0x10007ece8\nMOV             X0, X19                                                ; +0x84, 0x10007ecec\nBLR             X8                                                     ; +0x88, 0x10007ecf0\nLDR             S0, [X21,#0x50]                                        ; +0x8c, 0x10007ecf4\nLDR             X8, [X19]                                              ; +0x90, 0x10007ecf8\nLDR             X8, [X8,#0x158]                                        ; +0x94, 0x10007ecfc\nMOV             X0, X19                                                ; +0x98, 0x10007ed00\nBLR             X8                                                     ; +0x9c, 0x10007ed04\nLDRB            W8, [X21,#0x5C]                                        ; +0xa0, 0x10007ed08\nCMP             W8, #1                                                 ; +0xa4, 0x10007ed0c\nB.NE            loc_10007ED70                                          ; +0xa8, 0x10007ed10\nLDR             X1, [X21,#0x60]                                        ; +0xac, 0x10007ed14\nLDR             X8, [X19]                                              ; +0xb0, 0x10007ed18\nLDR             X8, [X8,#0x478]                                        ; +0xb4, 0x10007ed1c\nMOV             X0, X19                                                ; +0xb8, 0x10007ed20\nBLR             X8                                                     ; +0xbc, 0x10007ed24\nLDR             X8, [X21,#0x60]                                        ; +0xc0, 0x10007ed28\nLDRSB           W9, [X8,#0xB7]                                         ; +0xc4, 0x10007ed2c\nTBNZ            W9, #0x1F, loc_10007ED48                               ; +0xc8, 0x10007ed30\nLDUR            Q0, [X8,#0xA0]                                         ; +0xcc, 0x10007ed34\nSTR             Q0, [SP,#0x40+__p]                                     ; +0xd0, 0x10007ed38\nLDUR            X8, [X8,#0xB0]                                         ; +0xd4, 0x10007ed3c\nSTR             X8, [SP,#0x40+var_30]                                  ; +0xd8, 0x10007ed40\nB               loc_10007ED54                                          ; +0xdc, 0x10007ed44\nLDP             X1, X2, [X8,#0xA0]; __src                              ; +0xe0, 0x10007ed48\nMOV             X0, SP; __dst                                          ; +0xe4, 0x10007ed4c\nBL              sub_1000097D0                                          ; +0xe8, 0x10007ed50\nMOV             X1, SP; __str                                          ; +0xec, 0x10007ed54\nMOV             X0, X19; int                                           ; +0xf0, 0x10007ed58\nBL              CCSpritePart__frameChanged                             ; +0xf4, 0x10007ed5c\nLDRSB           W8, [SP,#0x40+var_30+7]                                ; +0xf8, 0x10007ed60\nTBZ             W8, #0x1F, loc_10007ED70                               ; +0xfc, 0x10007ed64\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x100, 0x10007ed68\nBL              __ZdlPv; operator delete(void *)                       ; +0x104, 0x10007ed6c\nLDR             X8, [X19]                                              ; +0x108, 0x10007ed70\nLDR             X8, [X8,#0x68]                                         ; +0x10c, 0x10007ed74\nMOV             X0, X19                                                ; +0x110, 0x10007ed78\nBLR             X8                                                     ; +0x114, 0x10007ed7c\nLDR             W2, [X21,#0x54]                                        ; +0x118, 0x10007ed80\nCMP             W0, W2                                                 ; +0x11c, 0x10007ed84\nB.EQ            loc_10007EDA0                                          ; +0x120, 0x10007ed88\nLDR             X8, [X20]                                              ; +0x124, 0x10007ed8c\nLDR             X8, [X8,#0x240]                                        ; +0x128, 0x10007ed90\nMOV             X0, X20                                                ; +0x12c, 0x10007ed94\nMOV             X1, X19                                                ; +0x130, 0x10007ed98\nBLR             X8                                                     ; +0x134, 0x10007ed9c\nMOV             W8, #1                                                 ; +0x138, 0x10007eda0\nSTRB            W8, [X19,#0x26B]                                       ; +0x13c, 0x10007eda4\nLDR             X8, [X19]                                              ; +0x140, 0x10007eda8\nLDR             X8, [X8,#0x148]                                        ; +0x144, 0x10007edac\nMOV             X0, X19                                                ; +0x148, 0x10007edb0\nMOV             W1, #1                                                 ; +0x14c, 0x10007edb4\nBLR             X8                                                     ; +0x150, 0x10007edb8\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x154, 0x10007edbc\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x158, 0x10007edc0\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x15c, 0x10007edc4\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x160, 0x10007edc8\nRET                                                                    ; +0x164, 0x10007edcc", "xrefs": ["CCPartAnimSprite::setDisplayFrame @ 0x10007f178"], "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"}