// // AnimatedGameObject::displayFrameChanged from 0x89b3c0 to 0x89b720 (864 bytes) // // 3 xrefs: // > `non-virtual thunk to'AnimatedGameObject::displayFrameChanged @ 0x89b724 // > @ 0xfd7e0 // > @ 0x1449bc0 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:56:12 +0000 // __int64 __fastcall AnimatedGameObject::displayFrameChanged(int a1, cocos2d::CCArray **this, char *a3) { cocos2d::CCSpriteFrameCache **Follower; // x23 char *v5; // x20 char v6; // t1 size_t v7; // x0 unsigned __int8 v8; // w1 size_t v9; // x0 unsigned __int8 v10; // w4 unsigned __int8 v11; // w2 char *v12; // x7 size_t v13; // x1 int v14; // w5 unsigned __int8 *v15; // x8 signed __int64 v16; // x3 size_t v17; // x25 size_t v18; // x2 char *v19; // x3 size_t v20; // x4 size_t v21; // x2 const char *v22; // x1 size_t v23; // x0 void (__fastcall *v24)(cocos2d::CCSpriteFrameCache **, __int64); // x19 cocos2d::CCSpriteFrameCache *v25; // x0 char *v26; // x1 __int64 v27; // x0 char *v29; // x0 char *v30; // x1 char *v31; // x12 char *v32; // x0 unsigned __int8 *v33; // x3 char *v34; // x25 char *v35; // x13 unsigned __int8 *v36; // x6 char *v37; // x9 int v38; // t1 char *v40; // [xsp+58h] [xbp+58h] __int64 v41; // [xsp+60h] [xbp+60h] BYREF size_t v42; // [xsp+68h] [xbp+68h] void *v43; // [xsp+70h] [xbp+70h] __int64 v44; // [xsp+78h] [xbp+78h] BYREF size_t v45; // [xsp+80h] [xbp+80h] void *v46; // [xsp+88h] [xbp+88h] __int64 v47; // [xsp+90h] [xbp+90h] BYREF size_t v48; // [xsp+98h] [xbp+98h] char *v49; // [xsp+A0h] [xbp+A0h] Follower = (cocos2d::CCSpriteFrameCache **)CCSpritePlus::getFollower(this); v6 = *a3; v5 = a3 + 1; if ( (v6 & 1) != 0 ) v5 = *((char **)a3 + 2); v41 = 0; v42 = 0; v43 = nullptr; v7 = strlen(v5); std::string::__init(&v41, v5, v7); v44 = 0; v45 = 0; v46 = nullptr; std::string::__init(&v44, "_001.png", 8u); v47 = 0; v48 = 0; v49 = nullptr; std::string::__init(&v47, "_glow_001.png", 0xDu); v8 = v41; v9 = 0; v10 = v47; if ( (v41 & 1) == 0 ) goto LABEL_16; LABEL_4: v11 = v44; v12 = (char *)v43; v13 = v42; v14 = v44 & 1; if ( (v44 & 1) != 0 ) { LABEL_5: v15 = (unsigned __int8 *)v46; v16 = v45; if ( v9 <= v13 ) goto LABEL_6; } else { while ( 1 ) { v16 = v11 >> 1; v15 = (unsigned __int8 *)&v44 + 1; if ( v9 > v13 ) break; LABEL_6: if ( v13 - v9 < v16 ) break; v17 = v9; if ( v16 ) { v29 = &v12[v9]; v30 = &v12[v13]; if ( v16 > v30 - v29 ) break; v31 = &v30[1 - v16]; if ( v29 == v31 ) break; v32 = v29 + 1; v33 = &v15[v16]; do { v34 = v32 - 1; v35 = v32; if ( (unsigned __int8)*(v32 - 1) == *v15 ) { v36 = v15; v37 = v32 - 1; while ( ++v36 != v33 ) { v38 = (unsigned __int8)*++v37; if ( v38 != *v36 ) goto LABEL_41; } if ( v30 != v34 ) { v17 = v34 - v12; goto LABEL_8; } goto LABEL_18; } LABEL_41: ++v32; } while ( v31 != v35 ); if ( (v10 & 1) == 0 ) goto LABEL_19; goto LABEL_40; } LABEL_8: if ( v17 == -1 ) break; v18 = v11 >> 1; if ( v14 ) v18 = v45; if ( (v10 & 1) != 0 ) { v19 = v49; v20 = v48; } else { v20 = v10 >> 1; v19 = (char *)&v47 + 1; } std::string::replace(&v41, v17, v18, v19, v20); v10 = v47; v21 = (unsigned __int8)v47 >> 1; if ( (v47 & 1) != 0 ) v21 = v48; v8 = v41; v9 = v21 + v17; if ( (v41 & 1) != 0 ) goto LABEL_4; LABEL_16: v11 = v44; v13 = v8 >> 1; v12 = (char *)&v41 + 1; v14 = v44 & 1; if ( (v44 & 1) != 0 ) goto LABEL_5; } } LABEL_18: if ( (v10 & 1) != 0 ) { LABEL_40: operator delete(v49); v14 = v44 & 1; } LABEL_19: if ( v14 ) operator delete(v46); v22 = (char *)&v41 + 1; if ( (v41 & 1) != 0 ) v22 = (const char *)v43; v40 = (char *)v22; v47 = 0; v48 = 0; v49 = nullptr; v23 = strlen(v22); std::string::__init(&v47, v40, v23); if ( (v41 & 1) != 0 ) operator delete(v43); v24 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*Follower + 145); v25 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*Follower); v26 = (char *)&v47 + 1; if ( (v47 & 1) != 0 ) v26 = v49; v27 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v25, v26); v24(Follower, v27); if ( (v47 & 1) != 0 ) operator delete(v49); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source