{"type": "func", "start": 3963020, "end": 3963274, "name": "CCPartAnimSprite::tweenToFrame", "pseudocode": "// \n// CCPartAnimSprite::tweenToFrame from 0x3c788c to 0x3c798a (254 bytes)\n// \n// 1 xrefs:\n// > CCAnimatedSprite::tweenToAnimation @ 0x3c3e6e\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::tweenToFrame(CCPartAnimSprite *this, cocos2d::CCSpriteFrame *a2, char *a3, int a4)\n{\n  const char *CString; // r4\n  size_t v8; // r0\n  CCAnimateFrameCache *v9; // r0\n  CCAnimateFrameCache *v10; // r0\n  char *v11; // r1\n  int v12; // r6\n  int v13; // r3\n  int *v14; // r6\n  int v15; // r4\n  int v16; // r10\n  _DWORD *v17; // r2\n  int *v18; // r4\n  int *v19; // r10\n  int v20; // r0\n  int v21; // t1\n  int v22; // r3\n  _DWORD *v23; // r2\n  _DWORD *v24; // r6\n  _DWORD *v25; // r4\n  _BYTE *v26; // r0\n  _BYTE *v27; // t1\n  CCPartAnimSprite *v28; // [sp+0h] [bp-10h] BYREF\n  cocos2d::CCSpriteFrame *v29; // [sp+4h] [bp-Ch]\n  char *v30; // [sp+8h] [bp-8h]\n  int v31; // [sp+Ch] [bp-4h]\n\n  v28 = this;\n  v29 = a2;\n  v30 = a3;\n  v31 = a4;\n  if ( !*((_DWORD *)this + 128) )\n    return (*(int (__fastcall **)(CCPartAnimSprite *))(*(_DWORD *)this + 580))(this);\n  v28 = nullptr;\n  v29 = nullptr;\n  v30 = nullptr;\n  CString = (const char *)cocos2d::CCString::getCString(a2);\n  v8 = strlen(CString);\n  v9 = (CCAnimateFrameCache *)std::string::__init((int *)&v28, CString, v8);\n  v10 = (CCAnimateFrameCache *)CCAnimateFrameCache::sharedSpriteFrameCache(v9);\n  if ( ((unsigned __int8)v28 & 1) != 0 )\n    v11 = v30;\n  else\n    v11 = (char *)&v28 + 1;\n  v12 = CCAnimateFrameCache::spriteFrameByName(v10, v11);\n  if ( v12 )\n  {\n    v13 = *((_DWORD *)this + 132);\n    if ( v13 )\n    {\n      v17 = *(_DWORD **)(v13 + 52);\n      if ( *v17 )\n      {\n        v18 = (int *)v17[3];\n        v19 = &v18[*v17 - 1];\n        while ( v18 <= v19 )\n        {\n          v21 = *v18++;\n          v20 = v21;\n          if ( !v21 )\n            break;\n          CCSpritePart::markAsNotBeingUsed(v20);\n        }\n      }\n    }\n    v14 = *(int **)(v12 + 52);\n    v15 = 0;\n    v16 = *v14;\n    while ( v15 < v16 )\n      CCPartAnimSprite::tweenSpriteTo(\n        (cocos2d::CCArray **)this,\n        *(SpriteDescription **)(v14[3] + 4 * v15++),\n        (cocos2d::CCMoveTo *)a3);\n    v22 = *((_DWORD *)this + 132);\n    if ( v22 )\n    {\n      v23 = *(_DWORD **)(v22 + 52);\n      if ( *v23 )\n      {\n        v24 = (_DWORD *)v23[3];\n        v25 = &v24[*v23 - 1];\n        while ( v24 <= v25 )\n        {\n          v27 = (_BYTE *)*v24++;\n          v26 = v27;\n          if ( !v27 )\n            break;\n          CCSpritePart::hideInactive(v26);\n        }\n      }\n    }\n  }\n  *((_BYTE *)this + 516) = 1;\n  return std::string::~string((int)&v28);\n}", "assembly": "; \n; CCPartAnimSprite::tweenToFrame from 0x3c788c to 0x3c798a (254 bytes)\n; \n; 1 xrefs:\n; > CCAnimatedSprite::tweenToAnimation @ 0x3c3e6e\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          {R0-R10,LR}                                            ; +0x0, 0x3c788c\nMOV             R9, R2                                                 ; +0x4, 0x3c7890\nLDR             R5, =(__stack_chk_guard_ptr - 0x3C789A)                ; +0x6, 0x3c7892\nMOV             R7, R0                                                 ; +0x8, 0x3c7894\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xa, 0x3c7896\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xc, 0x3c7898\nLDR             R2, [R5]                                               ; +0xe, 0x3c789a\nSTR             R2, [SP,#0x10+var_4]                                   ; +0x10, 0x3c789c\nLDR.W           R2, [R0,#0x200]                                        ; +0x12, 0x3c789e\nCBNZ            R2, loc_3C78AE                                         ; +0x16, 0x3c78a2\nLDR             R3, [R0]                                               ; +0x18, 0x3c78a4\nLDR.W           R3, [R3,#0x244]                                        ; +0x1a, 0x3c78a6\nBLX             R3                                                     ; +0x1e, 0x3c78aa\nB               loc_3C7978                                             ; +0x20, 0x3c78ac\nMOV             R0, R1; this                                           ; +0x22, 0x3c78ae\nMOV             R8, SP                                                 ; +0x24, 0x3c78b0\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x26, 0x3c78b2\nMOVS            R3, #0                                                 ; +0x2a, 0x3c78b6\nSTR             R3, [SP,#0x10+var_10]                                  ; +0x2c, 0x3c78b8\nSTR             R3, [SP,#0x10+var_C]                                   ; +0x2e, 0x3c78ba\nSTR             R3, [SP,#0x10+var_8]                                   ; +0x30, 0x3c78bc\nMOV             R4, R0                                                 ; +0x32, 0x3c78be\nBLX             strlen                                                 ; +0x34, 0x3c78c0\nMOV             R1, R4                                                 ; +0x38, 0x3c78c4\nMOV             R2, R0                                                 ; +0x3a, 0x3c78c6\nMOV             R0, SP                                                 ; +0x3c, 0x3c78c8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x3e, 0x3c78ca\nBL              _ZN19CCAnimateFrameCache22sharedSpriteFrameCacheEv; CCAnimateFrameCache::sharedSpriteFrameCache(void) ; +0x42, 0x3c78ce\nLDRB.W          R3, [SP,#0x10+var_10]                                  ; +0x46, 0x3c78d2\nLSLS            R3, R3, #0x1F                                          ; +0x4a, 0x3c78d6\nITE PL                                                                 ; +0x4c, 0x3c78d8\nADDPL.W         R1, SP, #0x10+var_10+1                                 ; +0x4e, 0x3c78da\nLDRMI           R1, [SP,#0x10+var_8]; char *                           ; +0x52, 0x3c78de\nBL              _ZN19CCAnimateFrameCache17spriteFrameByNameEPKc; CCAnimateFrameCache::spriteFrameByName(char const*) ; +0x54, 0x3c78e0\nMOV             R6, R0                                                 ; +0x58, 0x3c78e4\nCBNZ            R0, loc_3C78F6                                         ; +0x5a, 0x3c78e6\nMOVS            R3, #1                                                 ; +0x5c, 0x3c78e8\nMOV             R0, R8                                                 ; +0x5e, 0x3c78ea\nSTRB.W          R3, [R7,#0x204]                                        ; +0x60, 0x3c78ec\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x64, 0x3c78f0\nB               loc_3C7978                                             ; +0x68, 0x3c78f4\nLDR.W           R3, [R7,#0x210]                                        ; +0x6a, 0x3c78f6\nCBNZ            R3, loc_3C7906                                         ; +0x6e, 0x3c78fa\nLDR             R6, [R6,#0x34]                                         ; +0x70, 0x3c78fc\nMOVS            R4, #0                                                 ; +0x72, 0x3c78fe\nLDR.W           R10, [R6]                                              ; +0x74, 0x3c7900\nB               loc_3C7936                                             ; +0x78, 0x3c7904\nLDR             R2, [R3,#0x34]                                         ; +0x7a, 0x3c7906\nLDR             R3, [R2]                                               ; +0x7c, 0x3c7908\nCMP             R3, #0                                                 ; +0x7e, 0x3c790a\nBEQ             loc_3C78FC                                             ; +0x80, 0x3c790c\nADD.W           R3, R3, #0x40000000                                    ; +0x82, 0x3c790e\nLDR             R4, [R2,#0xC]                                          ; +0x86, 0x3c7912\nSUBS            R3, #1                                                 ; +0x88, 0x3c7914\nADD.W           R10, R4, R3,LSL#2                                      ; +0x8a, 0x3c7916\nCMP             R4, R10                                                ; +0x8e, 0x3c791a\nBHI             loc_3C78FC                                             ; +0x90, 0x3c791c\nLDR.W           R0, [R4],#4; this                                      ; +0x92, 0x3c791e\nCBNZ            R0, loc_3C796C                                         ; +0x96, 0x3c7922\nB               loc_3C78FC                                             ; +0x98, 0x3c7924\nLDR             R3, [R6,#0xC]                                          ; +0x9a, 0x3c7926\nMOV             R0, R7; this                                           ; +0x9c, 0x3c7928\nMOV             R2, R9; float                                          ; +0x9e, 0x3c792a\nLDR.W           R1, [R3,R4,LSL#2]; SpriteDescription *                 ; +0xa0, 0x3c792c\nBL              _ZN16CCPartAnimSprite13tweenSpriteToEP17SpriteDescriptionf; CCPartAnimSprite::tweenSpriteTo(SpriteDescription *,float) ; +0xa4, 0x3c7930\nADDS            R4, #1                                                 ; +0xa8, 0x3c7934\nCMP             R4, R10                                                ; +0xaa, 0x3c7936\nBLT             loc_3C7926                                             ; +0xac, 0x3c7938\nLDR.W           R3, [R7,#0x210]                                        ; +0xae, 0x3c793a\nCMP             R3, #0                                                 ; +0xb2, 0x3c793e\nBEQ             loc_3C78E8                                             ; +0xb4, 0x3c7940\nLDR             R2, [R3,#0x34]                                         ; +0xb6, 0x3c7942\nLDR             R3, [R2]                                               ; +0xb8, 0x3c7944\nCMP             R3, #0                                                 ; +0xba, 0x3c7946\nBEQ             loc_3C78E8                                             ; +0xbc, 0x3c7948\nADD.W           R3, R3, #0x40000000                                    ; +0xbe, 0x3c794a\nLDR             R6, [R2,#0xC]                                          ; +0xc2, 0x3c794e\nSUBS            R3, #1                                                 ; +0xc4, 0x3c7950\nADD.W           R4, R6, R3,LSL#2                                       ; +0xc6, 0x3c7952\nCMP             R6, R4                                                 ; +0xca, 0x3c7956\nBHI             loc_3C78E8                                             ; +0xcc, 0x3c7958\nLDR.W           R0, [R6],#4; this                                      ; +0xce, 0x3c795a\nCBNZ            R0, loc_3C7972                                         ; +0xd2, 0x3c795e\nB               loc_3C78E8                                             ; +0xd4, 0x3c7960\nMOV             R0, R8                                                 ; +0xd6, 0x3c7962\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xd8, 0x3c7964\nBL              __cxa_end_cleanup                                      ; +0xdc, 0x3c7968\nBL              _ZN12CCSpritePart18markAsNotBeingUsedEv; CCSpritePart::markAsNotBeingUsed(void) ; +0xe0, 0x3c796c\nB               loc_3C791A                                             ; +0xe4, 0x3c7970\nBL              _ZN12CCSpritePart12hideInactiveEv; CCSpritePart::hideInactive(void) ; +0xe6, 0x3c7972\nB               loc_3C7956                                             ; +0xea, 0x3c7976\nLDR             R2, [SP,#0x10+var_4]                                   ; +0xec, 0x3c7978\nLDR             R3, [R5]                                               ; +0xee, 0x3c797a\nCMP             R2, R3                                                 ; +0xf0, 0x3c797c\nBEQ             loc_3C7984                                             ; +0xf2, 0x3c797e\nBLX             __stack_chk_fail                                       ; +0xf4, 0x3c7980\nADD             SP, SP, #0x10                                          ; +0xf8, 0x3c7984\nPOP.W           {R4-R10,PC}                                            ; +0xfa, 0x3c7986", "xrefs": ["CCAnimatedSprite::tweenToAnimation @ 0x3c3e6e"], "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"}