{"type": "func", "start": 3044600, "end": 3044872, "name": "CCPartAnimSprite::tweenSpriteTo", "pseudocode": "// \n// CCPartAnimSprite::tweenSpriteTo from 0x2e74f8 to 0x2e7608 (272 bytes)\n// \n// 1 xrefs:\n// > CCPartAnimSprite::tweenToFrame @ 0x2e7698\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 CCPartAnimSprite::tweenSpriteTo(CCPartAnimSprite *a1, SpriteDescription *a2, float a3)\n{\n  CCSpritePart *v6; // r4\n  float x; // s17\n  cocos2d::CCMoveTo *v8; // r10\n  cocos2d::CCScaleTo *v9; // r9\n  float v10; // r2\n  cocos2d::CCAction *v11; // r6\n  int v12; // [sp+0h] [bp-8h] BYREF\n\n  v6 = (CCSpritePart *)cocos2d::CCArray::objectAtIndex(a1->m_spriteParts, a2->m_tag);\n  cocos2d::CCNode::stopAllActions(v6);\n  x = a2->m_scale.x;\n  if ( a2->m_flipped.x != 0.0 )\n    x = -x;\n  v8 = cocos2d::CCMoveTo::create(a3, &a2->m_position);\n  v9 = cocos2d::CCScaleTo::create(a3, x);\n  v11 = (cocos2d::CCAction *)cocos2d::CCRotateTo::create((cocos2d::CCRotateTo *)LODWORD(a3), a2->m_rotation, v10);\n  cocos2d::CCNode::runAction(v6, v8);\n  cocos2d::CCNode::runAction(v6, v9);\n  cocos2d::CCNode::runAction(v6, v11);\n  if ( a2->m_usesCustomTag )\n  {\n    v6->setDisplayFrame(v6, a2->m_texture);\n    sub_775C20(&v12, &a2->m_texture->m_strFrameName);\n    CCSpritePart::frameChanged((int)v6, (int)&v12);\n    sub_774008(&v12);\n  }\n  if ( v6->getZOrder(v6) != a2->m_zValue )\n    ((void (__fastcall *)(CCPartAnimSprite *, CCSpritePart *))a1->reorderChild)(a1, v6);\n  CCSpritePart::setBeingUsed(v6, 1);\n  v6->setVisible(v6, 1);\n}", "assembly": "; \n; CCPartAnimSprite::tweenSpriteTo from 0x2e74f8 to 0x2e7608 (272 bytes)\n; \n; 1 xrefs:\n; > CCPartAnimSprite::tweenToFrame @ 0x2e7698\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.W          {R4-R10,LR}                                            ; +0x0, 0x2e74f8\nMOV             R5, R1                                                 ; +0x4, 0x2e74fc\nLDR             R7, =(__stack_chk_guard_ptr - 0x2E750C)                ; +0x6, 0x2e74fe\nMOV             R8, R0                                                 ; +0x8, 0x2e7500\nVPUSH           {D8}                                                   ; +0xa, 0x2e7502\nMOV             R6, R2                                                 ; +0xe, 0x2e7506\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0x10, 0x2e7508\nLDR             R7, [R7]; __stack_chk_guard                            ; +0x12, 0x2e750a\nLDR             R1, [R1,#0x54]; unsigned int                           ; +0x14, 0x2e750c\nLDR.W           R0, [R0,#0x210]; this                                  ; +0x16, 0x2e750e\nLDR             R3, [R7]                                               ; +0x1a, 0x2e7512\nSUB             SP, SP, #8                                             ; +0x1c, 0x2e7514\nSTR             R3, [SP,#8+var_4]                                      ; +0x1e, 0x2e7516\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x20, 0x2e7518\nMOV             R4, R0                                                 ; +0x24, 0x2e751c\nBL              _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0x26, 0x2e751e\nVLDR            S15, [R5,#0x44]                                        ; +0x2a, 0x2e7522\nMOV             R0, R6; this                                           ; +0x2e, 0x2e7526\nADD.W           R1, R5, #0x34 ; '4'; float                             ; +0x30, 0x2e7528\nVLDR            S17, [R5,#0x3C]                                        ; +0x34, 0x2e752c\nVCMP.F32        S15, #0.0                                              ; +0x38, 0x2e7530\nVLDR            S15, [R5,#0x48]                                        ; +0x3c, 0x2e7534\nVMRS            APSR_nzcv, FPSCR                                       ; +0x40, 0x2e7538\nVLDR            S16, [R5,#0x40]                                        ; +0x44, 0x2e753c\nVCMP.F32        S15, #0.0                                              ; +0x48, 0x2e7540\nIT NE                                                                  ; +0x4c, 0x2e7544\nVNEGNE.F32      S17, S17                                               ; +0x4e, 0x2e7546\nVMRS            APSR_nzcv, FPSCR                                       ; +0x52, 0x2e754a\nIT NE                                                                  ; +0x56, 0x2e754e\nVNEGNE.F32      S16, S16                                               ; +0x58, 0x2e7550\nBL              _ZN7cocos2d8CCMoveTo6createEfRKNS_7CCPointE; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const&) ; +0x5c, 0x2e7554\nVMOV            R1, S17; float                                         ; +0x60, 0x2e7558\nVMOV            R2, S16; float                                         ; +0x64, 0x2e755c\nMOV             R10, R0                                                ; +0x68, 0x2e7560\nMOV             R0, R6; this                                           ; +0x6a, 0x2e7562\nBL              _ZN7cocos2d9CCScaleTo6createEfff; cocos2d::CCScaleTo::create(float,float,float) ; +0x6c, 0x2e7564\nLDR             R1, [R5,#0x4C]; float                                  ; +0x70, 0x2e7568\nMOV             R9, R0                                                 ; +0x72, 0x2e756a\nMOV             R0, R6; this                                           ; +0x74, 0x2e756c\nBL              _ZN7cocos2d10CCRotateTo6createEff; cocos2d::CCRotateTo::create(float,float) ; +0x76, 0x2e756e\nMOV             R1, R10; cocos2d::CCAction *                           ; +0x7a, 0x2e7572\nMOV             R6, R0                                                 ; +0x7c, 0x2e7574\nMOV             R0, R4; this                                           ; +0x7e, 0x2e7576\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x80, 0x2e7578\nMOV             R1, R9; cocos2d::CCAction *                            ; +0x84, 0x2e757c\nMOV             R0, R4; this                                           ; +0x86, 0x2e757e\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x88, 0x2e7580\nMOV             R0, R4; this                                           ; +0x8c, 0x2e7584\nMOV             R1, R6; cocos2d::CCAction *                            ; +0x8e, 0x2e7586\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x90, 0x2e7588\nLDRB.W          R3, [R5,#0x58]                                         ; +0x94, 0x2e758c\nCBZ             R3, loc_2E75B8                                         ; +0x98, 0x2e7590\nLDR             R3, [R4]                                               ; +0x9a, 0x2e7592\nMOV             R0, R4                                                 ; +0x9c, 0x2e7594\nLDR             R1, [R5,#0x5C]                                         ; +0x9e, 0x2e7596\nMOV             R6, SP                                                 ; +0xa0, 0x2e7598\nLDR.W           R3, [R3,#0x23C]                                        ; +0xa2, 0x2e759a\nBLX             R3                                                     ; +0xa6, 0x2e759e\nLDR             R1, [R5,#0x5C]                                         ; +0xa8, 0x2e75a0\nMOV             R0, SP                                                 ; +0xaa, 0x2e75a2\nADDS            R1, #0x80                                              ; +0xac, 0x2e75a4\nBL              sub_775C20                                             ; +0xae, 0x2e75a6\nMOV             R0, R4                                                 ; +0xb2, 0x2e75aa\nMOV             R1, SP                                                 ; +0xb4, 0x2e75ac\nBL              _ZN12CCSpritePart12frameChangedESs; CCSpritePart::frameChanged(std::string) ; +0xb6, 0x2e75ae\nMOV             R0, SP                                                 ; +0xba, 0x2e75b2\nBL              sub_774008                                             ; +0xbc, 0x2e75b4\nLDR             R3, [R4]                                               ; +0xc0, 0x2e75b8\nMOV             R0, R4                                                 ; +0xc2, 0x2e75ba\nLDR             R3, [R3,#0x34]                                         ; +0xc4, 0x2e75bc\nBLX             R3                                                     ; +0xc6, 0x2e75be\nLDR             R2, [R5,#0x50]                                         ; +0xc8, 0x2e75c0\nCMP             R0, R2                                                 ; +0xca, 0x2e75c2\nBEQ             loc_2E75D4                                             ; +0xcc, 0x2e75c4\nLDR.W           R3, [R8]                                               ; +0xce, 0x2e75c6\nMOV             R0, R8                                                 ; +0xd2, 0x2e75ca\nMOV             R1, R4                                                 ; +0xd4, 0x2e75cc\nLDR.W           R3, [R3,#0x120]                                        ; +0xd6, 0x2e75ce\nBLX             R3                                                     ; +0xda, 0x2e75d2\nMOV             R0, R4; this                                           ; +0xdc, 0x2e75d4\nMOVS            R1, #1; bool                                           ; +0xde, 0x2e75d6\nBL              _ZN12CCSpritePart12setBeingUsedEb; CCSpritePart::setBeingUsed(bool) ; +0xe0, 0x2e75d8\nLDR             R3, [R4]                                               ; +0xe4, 0x2e75dc\nMOV             R0, R4                                                 ; +0xe6, 0x2e75de\nMOVS            R1, #1                                                 ; +0xe8, 0x2e75e0\nLDR.W           R3, [R3,#0xA4]                                         ; +0xea, 0x2e75e2\nBLX             R3                                                     ; +0xee, 0x2e75e6\nLDR             R2, [SP,#8+var_4]                                      ; +0xf0, 0x2e75e8\nLDR             R3, [R7]                                               ; +0xf2, 0x2e75ea\nCMP             R2, R3                                                 ; +0xf4, 0x2e75ec\nBEQ             loc_2E75FE                                             ; +0xf6, 0x2e75ee\nBLX             __stack_chk_fail                                       ; +0xf8, 0x2e75f0\nMOV             R0, R6                                                 ; +0xfc, 0x2e75f4\nBL              sub_774008                                             ; +0xfe, 0x2e75f6\nBL              __cxa_end_cleanup                                      ; +0x102, 0x2e75fa\nADD             SP, SP, #8                                             ; +0x106, 0x2e75fe\nVPOP            {D8}                                                   ; +0x108, 0x2e7600\nPOP.W           {R4-R10,PC}                                            ; +0x10c, 0x2e7604", "xrefs": ["CCPartAnimSprite::tweenToFrame @ 0x2e7698"], "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"}