// // cocos2d::CCSprite::setTextureRect from 0x7f0aec to 0x7f0d4a (606 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:01:04 +0000 // _DWORD *__fastcall cocos2d::CCSprite::setTextureRect( cocos2d::CCSprite *this, const cocos2d::CCRect *a2, float a3, const cocos2d::CCSize *a4) { _DWORD *result; // r0 int v7; // r3 float v8; // s12 float v9; // s10 float v10; // s13 float v11; // s15 float v12; // s9 float v13; // s13 float v14; // s15 float v15; // s12 float v16; // s14 float v17; // s11 float v18; // s10 float v19; // s8 float v20; // s9 float v21; // s10 float v22; // s10 float v23; // s11 float v24; // s10 float v25; // s11 float v26; // s11 float v27; // s13 float v28; // [sp+4h] [bp-Ch] BYREF float v29; // [sp+8h] [bp-8h] const cocos2d::CCSize *v30; // [sp+Ch] [bp-4h] v28 = *(float *)&a2; v29 = a3; v30 = a4; *((_BYTE *)this + 352) = LOBYTE(a3); (*(void (__fastcall **)(cocos2d::CCSprite *, const cocos2d::CCSize *))(*(_DWORD *)this + 160))(this, a4); (*(void (__fastcall **)(cocos2d::CCSprite *, const cocos2d::CCRect *))(*(_DWORD *)this + 576))(this, a2); (*(void (__fastcall **)(cocos2d::CCSprite *, const cocos2d::CCRect *))(*(_DWORD *)this + 604))(this, a2); result = cocos2d::CCPoint::CCPoint(&v28, (cocos2d::CCSprite *)((char *)this + 364)); if ( *((_BYTE *)this + 469) ) v28 = -v28; if ( *((_BYTE *)this + 470) ) v29 = -v29; v7 = *((_DWORD *)this + 73); v8 = *((float *)this + 86); v9 = *((float *)this + 87); v10 = v28 + (float)((float)(*((float *)this + 26) - v8) * 0.5); v11 = v29 + (float)((float)(*((float *)this + 27) - v9) * 0.5); *((float *)this + 89) = v10; *((float *)this + 90) = v11; if ( v7 ) return (_DWORD *)(*(int (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)this + 600))(this, 1); v12 = *((float *)this + 121); v13 = v10 + 0.0; v14 = v11 + 0.0; v15 = v13 + v8; v16 = v14 + v9; if ( v12 == 0.0 ) { *((float *)this + 99) = v13; *((float *)this + 100) = v14; *((_DWORD *)this + 101) = 0; } else { *((_DWORD *)this + 101) = 0; v17 = *((float *)this + 126); *((float *)this + 99) = v13; v18 = 1.0 - v12; v19 = v16 - (float)((float)(v16 - v14) * (float)(1.0 - v12)); v20 = v17 - *((float *)this + 125); *((float *)this + 100) = v19; *((float *)this + 104) = v17 - (float)(v20 * v18); } v21 = *((float *)this + 122); if ( v21 == 0.0 ) { *((float *)this + 111) = v15; *((_DWORD *)this + 113) = 0; *((float *)this + 112) = v14; } else { *((_DWORD *)this + 113) = 0; *((float *)this + 111) = v15; v22 = 1.0 - v21; v23 = *((float *)this + 126); *((float *)this + 112) = v16 - (float)((float)(v16 - v14) * v22); *((float *)this + 116) = v23 - (float)((float)(v23 - *((float *)this + 125)) * v22); } v24 = *((float *)this + 119); if ( v24 == 0.0 ) { *((float *)this + 93) = v13; *((_DWORD *)this + 95) = 0; *((float *)this + 94) = v16; } else { *((_DWORD *)this + 95) = 0; *((float *)this + 93) = v13; v25 = 1.0 - v24; *((float *)this + 94) = v14 + (float)((float)(v16 - v14) * (float)(1.0 - v24)); if ( v24 >= 0.0 ) { if ( *((_BYTE *)this + 352) ) *((float *)this + 97) = *((float *)this + 123) + (float)((float)(*((float *)this + 124) - *((float *)this + 123)) * v25); else *((float *)this + 98) = *((float *)this + 125) + (float)((float)(*((float *)this + 126) - *((float *)this + 125)) * v25); } } v26 = *((float *)this + 120); if ( v26 == 0.0 ) { *((float *)this + 105) = v15; *((_DWORD *)this + 107) = 0; *((float *)this + 106) = v16; } else { *((_DWORD *)this + 107) = 0; *((float *)this + 105) = v15; v27 = 1.0 - v26; *((float *)this + 106) = v14 + (float)((float)(v16 - v14) * (float)(1.0 - v26)); if ( v26 >= 0.0 ) { if ( *((_BYTE *)this + 352) ) *((float *)this + 109) = *((float *)this + 123) + (float)((float)(*((float *)this + 124) - *((float *)this + 123)) * v27); else *((float *)this + 110) = *((float *)this + 125) + (float)((float)(*((float *)this + 126) - *((float *)this + 125)) * v27); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source