{"type": "func", "start": 3962424, "end": 3962696, "name": "CCPartAnimSprite::tweenSpriteTo", "pseudocode": "// \n// CCPartAnimSprite::tweenSpriteTo from 0x3c7638 to 0x3c7748 (272 bytes)\n// \n// 1 xrefs:\n// > CCPartAnimSprite::tweenToFrame @ 0x3c7930\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:46:35 +0000\n// \n\nint __fastcall CCPartAnimSprite::tweenSpriteTo(cocos2d::CCArray **this, SpriteDescription *a2, cocos2d::CCMoveTo *a3)\n{\n  cocos2d::CCNode *v6; // r4\n  const cocos2d::CCPoint *v7; // r2\n  float v8; // s17\n  float v9; // s16\n  cocos2d::CCAction *v10; // r10\n  float v11; // r3\n  cocos2d::CCAction *v12; // r9\n  float v13; // r2\n  cocos2d::CCAction *v14; // r6\n  int v15; // r2\n  int v16; // r3\n  int v18[3]; // [sp+0h] [bp-10h] BYREF\n\n  v6 = (cocos2d::CCNode *)cocos2d::CCArray::objectAtIndex(*(this + 132), *((_DWORD *)a2 + 21));\n  cocos2d::CCNode::stopAllActions(v6);\n  v8 = *((float *)a2 + 15);\n  v9 = *((float *)a2 + 16);\n  if ( *((float *)a2 + 17) != 0.0 )\n    v8 = -v8;\n  if ( *((float *)a2 + 18) != 0.0 )\n    v9 = -v9;\n  v10 = (cocos2d::CCAction *)cocos2d::CCMoveTo::create(a3, COERCE_FLOAT((SpriteDescription *)((char *)a2 + 52)), v7);\n  v12 = (cocos2d::CCAction *)cocos2d::CCScaleTo::create(a3, v8, v9, v11);\n  v14 = (cocos2d::CCAction *)cocos2d::CCRotateTo::create(a3, *((float *)a2 + 19), v13);\n  cocos2d::CCNode::runAction(v6, v10);\n  cocos2d::CCNode::runAction(v6, v12);\n  cocos2d::CCNode::runAction(v6, v14);\n  if ( *((_BYTE *)a2 + 88) )\n  {\n    (*(void (__fastcall **)(cocos2d::CCNode *, _DWORD))(*(_DWORD *)v6 + 580))(v6, *((_DWORD *)a2 + 23));\n    std::string::basic_string(v18, *((_DWORD *)a2 + 23) + 136);\n    CCSpritePart::frameChanged((int)v6, (unsigned __int8 *)v18, v15, v16);\n    std::string::~string((int)v18);\n  }\n  if ( (*(int (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)v6 + 52))(v6) != *((_DWORD *)a2 + 20) )\n    (*((void (__fastcall **)(cocos2d::CCArray **, cocos2d::CCNode *))*this + 74))(this, v6);\n  CCSpritePart::setBeingUsed((int)v6, 1);\n  return (*(int (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v6 + 172))(v6, 1);\n}", "assembly": "; \n; CCPartAnimSprite::tweenSpriteTo from 0x3c7638 to 0x3c7748 (272 bytes)\n; \n; 1 xrefs:\n; > CCPartAnimSprite::tweenToFrame @ 0x3c7930\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:46:35 +0000\n; \nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x3c7638\nMOV             R5, R1                                                 ; +0x4, 0x3c763c\nLDR             R7, =(__stack_chk_guard_ptr - 0x3C764C)                ; +0x6, 0x3c763e\nMOV             R8, R0                                                 ; +0x8, 0x3c7640\nVPUSH           {D8}                                                   ; +0xa, 0x3c7642\nMOV             R6, R2                                                 ; +0xe, 0x3c7646\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0x10, 0x3c7648\nLDR             R7, [R7]; __stack_chk_guard                            ; +0x12, 0x3c764a\nLDR             R3, [R7]                                               ; +0x14, 0x3c764c\nSUB             SP, SP, #0x10                                          ; +0x16, 0x3c764e\nLDR             R1, [R1,#0x54]; unsigned int                           ; +0x18, 0x3c7650\nLDR.W           R0, [R0,#0x210]; this                                  ; +0x1a, 0x3c7652\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x1e, 0x3c7656\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x20, 0x3c7658\nMOV             R4, R0                                                 ; +0x24, 0x3c765c\nBL              _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0x26, 0x3c765e\nVLDR            S15, [R5,#0x44]                                        ; +0x2a, 0x3c7662\nMOV             R0, R6; this                                           ; +0x2e, 0x3c7666\nADD.W           R1, R5, #0x34 ; '4'; float                             ; +0x30, 0x3c7668\nVLDR            S17, [R5,#0x3C]                                        ; +0x34, 0x3c766c\nVCMP.F32        S15, #0.0                                              ; +0x38, 0x3c7670\nVLDR            S15, [R5,#0x48]                                        ; +0x3c, 0x3c7674\nVMRS            APSR_nzcv, FPSCR                                       ; +0x40, 0x3c7678\nVLDR            S16, [R5,#0x40]                                        ; +0x44, 0x3c767c\nVCMP.F32        S15, #0.0                                              ; +0x48, 0x3c7680\nIT NE                                                                  ; +0x4c, 0x3c7684\nVNEGNE.F32      S17, S17                                               ; +0x4e, 0x3c7686\nVMRS            APSR_nzcv, FPSCR                                       ; +0x52, 0x3c768a\nIT NE                                                                  ; +0x56, 0x3c768e\nVNEGNE.F32      S16, S16                                               ; +0x58, 0x3c7690\nBL              _ZN7cocos2d8CCMoveTo6createEfRKNS_7CCPointE; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const&) ; +0x5c, 0x3c7694\nVMOV            R1, S17; float                                         ; +0x60, 0x3c7698\nVMOV            R2, S16; float                                         ; +0x64, 0x3c769c\nMOV             R10, R0                                                ; +0x68, 0x3c76a0\nMOV             R0, R6; this                                           ; +0x6a, 0x3c76a2\nBL              _ZN7cocos2d9CCScaleTo6createEfff; cocos2d::CCScaleTo::create(float,float,float) ; +0x6c, 0x3c76a4\nLDR             R1, [R5,#0x4C]; float                                  ; +0x70, 0x3c76a8\nMOV             R9, R0                                                 ; +0x72, 0x3c76aa\nMOV             R0, R6; this                                           ; +0x74, 0x3c76ac\nBL              _ZN7cocos2d10CCRotateTo6createEff; cocos2d::CCRotateTo::create(float,float) ; +0x76, 0x3c76ae\nMOV             R1, R10; cocos2d::CCAction *                           ; +0x7a, 0x3c76b2\nMOV             R6, R0                                                 ; +0x7c, 0x3c76b4\nMOV             R0, R4; this                                           ; +0x7e, 0x3c76b6\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x80, 0x3c76b8\nMOV             R1, R9; cocos2d::CCAction *                            ; +0x84, 0x3c76bc\nMOV             R0, R4; this                                           ; +0x86, 0x3c76be\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x88, 0x3c76c0\nMOV             R0, R4; this                                           ; +0x8c, 0x3c76c4\nMOV             R1, R6; cocos2d::CCAction *                            ; +0x8e, 0x3c76c6\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x90, 0x3c76c8\nLDRB.W          R3, [R5,#0x58]                                         ; +0x94, 0x3c76cc\nCBZ             R3, loc_3C76F8                                         ; +0x98, 0x3c76d0\nLDR             R3, [R4]                                               ; +0x9a, 0x3c76d2\nMOV             R0, R4                                                 ; +0x9c, 0x3c76d4\nLDR             R1, [R5,#0x5C]                                         ; +0x9e, 0x3c76d6\nMOV             R6, SP                                                 ; +0xa0, 0x3c76d8\nLDR.W           R3, [R3,#0x244]                                        ; +0xa2, 0x3c76da\nBLX             R3                                                     ; +0xa6, 0x3c76de\nLDR             R1, [R5,#0x5C]                                         ; +0xa8, 0x3c76e0\nMOV             R0, SP                                                 ; +0xaa, 0x3c76e2\nADDS            R1, #0x88                                              ; +0xac, 0x3c76e4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0xae, 0x3c76e6\nMOV             R0, R4                                                 ; +0xb2, 0x3c76ea\nMOV             R1, SP                                                 ; +0xb4, 0x3c76ec\nBL              _ZN12CCSpritePart12frameChangedENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; CCSpritePart::frameChanged(std::string) ; +0xb6, 0x3c76ee\nMOV             R0, SP                                                 ; +0xba, 0x3c76f2\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xbc, 0x3c76f4\nLDR             R3, [R4]                                               ; +0xc0, 0x3c76f8\nMOV             R0, R4                                                 ; +0xc2, 0x3c76fa\nLDR             R3, [R3,#0x34]                                         ; +0xc4, 0x3c76fc\nBLX             R3                                                     ; +0xc6, 0x3c76fe\nLDR             R2, [R5,#0x50]                                         ; +0xc8, 0x3c7700\nCMP             R0, R2                                                 ; +0xca, 0x3c7702\nBEQ             loc_3C7714                                             ; +0xcc, 0x3c7704\nLDR.W           R3, [R8]                                               ; +0xce, 0x3c7706\nMOV             R0, R8                                                 ; +0xd2, 0x3c770a\nMOV             R1, R4                                                 ; +0xd4, 0x3c770c\nLDR.W           R3, [R3,#0x128]                                        ; +0xd6, 0x3c770e\nBLX             R3                                                     ; +0xda, 0x3c7712\nMOV             R0, R4; this                                           ; +0xdc, 0x3c7714\nMOVS            R1, #1; bool                                           ; +0xde, 0x3c7716\nBL              _ZN12CCSpritePart12setBeingUsedEb; CCSpritePart::setBeingUsed(bool) ; +0xe0, 0x3c7718\nLDR             R3, [R4]                                               ; +0xe4, 0x3c771c\nMOV             R0, R4                                                 ; +0xe6, 0x3c771e\nMOVS            R1, #1                                                 ; +0xe8, 0x3c7720\nLDR.W           R3, [R3,#0xAC]                                         ; +0xea, 0x3c7722\nBLX             R3                                                     ; +0xee, 0x3c7726\nLDR             R2, [SP,#0x10+var_4]                                   ; +0xf0, 0x3c7728\nLDR             R3, [R7]                                               ; +0xf2, 0x3c772a\nCMP             R2, R3                                                 ; +0xf4, 0x3c772c\nBEQ             loc_3C773E                                             ; +0xf6, 0x3c772e\nBLX             __stack_chk_fail                                       ; +0xf8, 0x3c7730\nMOV             R0, R6                                                 ; +0xfc, 0x3c7734\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xfe, 0x3c7736\nBL              __cxa_end_cleanup                                      ; +0x102, 0x3c773a\nADD             SP, SP, #0x10                                          ; +0x106, 0x3c773e\nVPOP            {D8}                                                   ; +0x108, 0x3c7740\nPOP.W           {R4-R10,PC}                                            ; +0x10c, 0x3c7744", "xrefs": ["CCPartAnimSprite::tweenToFrame @ 0x3c7930"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}