// // cocos2d::CCSprite::setTextureCoords from 0xd8655c to 0xd86760 (516 bytes) // // 82 xrefs: // > @ 0x7e6e8 // > @ 0x1413a98 // > @ 0x1414058 // > @ 0x1414e08 // > @ 0x1417678 // > @ 0x1417c18 // > @ 0x141b538 // > @ 0x141bb68 // > @ 0x141cfe8 // > @ 0x1421c18 // > @ 0x14221c8 // > @ 0x1423b88 // > @ 0x1424138 // > @ 0x1424708 // > @ 0x14290e8 // > @ 0x1433758 // > @ 0x1433f58 // > @ 0x1434548 // > @ 0x1434d28 // > @ 0x1435538 // > @ 0x143a4c8 // > @ 0x1443898 // > @ 0x14440a8 // > @ 0x14448b8 // > @ 0x14450c8 // > @ 0x14458d8 // > @ 0x14460e8 // > @ 0x14468f8 // > @ 0x1447108 // > @ 0x14478e8 // > @ 0x14480f8 // > @ 0x1448908 // > @ 0x1449118 // > @ 0x1449928 // > @ 0x144a178 // > @ 0x144a988 // > @ 0x144b198 // > @ 0x144b9a8 // > @ 0x144c1b8 // > @ 0x144c9d8 // > @ 0x144d1e8 // > @ 0x144d9f8 // > @ 0x144e208 // > @ 0x144ea18 // > @ 0x144f228 // > @ 0x144fa38 // > @ 0x1450248 // > @ 0x1450a58 // > @ 0x1451268 // > @ 0x1451a78 // > @ 0x1452288 // > @ 0x1452a98 // > @ 0x14532a8 // > @ 0x1453ab8 // > @ 0x14542c8 // > @ 0x1454ad8 // > @ 0x14552e8 // > @ 0x1455af8 // > @ 0x1456308 // > @ 0x1456b18 // > @ 0x1457328 // > @ 0x1457b38 // > @ 0x1458348 // > @ 0x1458b58 // > @ 0x1459388 // > @ 0x145b278 // > @ 0x145b818 // > @ 0x1477908 // > @ 0x14799b8 // > @ 0x1486e18 // > @ 0x14873c8 // > @ 0x1491cf8 // > @ 0x1497138 // > @ 0x1499688 // > @ 0x14c1fb8 // > @ 0x14d99b8 // > @ 0x150cdd8 // > @ 0x1517c98 // > @ 0x1518238 // > @ 0x1518db8 // > @ 0x152e818 // > @ 0x1530018 // // 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 13:08:13 +0000 // __int64 __fastcall cocos2d::CCSprite::setTextureCoords(cocos2d::CCSprite *this, const cocos2d::CCRect *a2) { float v4; // s10 cocos2d::CCDirector *v5; // x0 float ContentScaleFactor; // s0 float v7; // s8 float v8; // s10 cocos2d::CCDirector *v9; // x0 cocos2d::CCDirector *v10; // x0 float v11; // s0 float v12; // s9 cocos2d::CCDirector *v13; // x0 cocos2d::CCDirector *v14; // x0 float v15; // s0 float v16; // s8 cocos2d::CCDirector *v17; // x0 cocos2d::CCDirector *v18; // x0 float v19; // s0 __int64 v20; // x21 float v21; // s8 float v22; // s5 float v23; // s4 float v24; // s1 float v25; // s3 float v26; // s0 float v28; // [xsp+40h] [xbp+40h] float v29; // [xsp+50h] [xbp+50h] float v30; // [xsp+68h] [xbp+68h] BYREF float v31; // [xsp+6Ch] [xbp+6Ch] float v32; // [xsp+70h] [xbp+70h] float v33; // [xsp+74h] [xbp+74h] v4 = *(float *)a2; v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v5); v7 = *((float *)a2 + 1); v8 = v4 * ContentScaleFactor; v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9); v11 = cocos2d::CCDirector::getContentScaleFactor(v10); v12 = *((float *)a2 + 2); v28 = v7 * v11; v14 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v13); v15 = cocos2d::CCDirector::getContentScaleFactor(v14); v16 = *((float *)a2 + 3); v29 = v12 * v15; v18 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v17); v19 = cocos2d::CCDirector::getContentScaleFactor(v18); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v30, v8, v28, v29, v16 * v19); if ( *((_QWORD *)this + 46) ) v20 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 44) + 96LL))(*((_QWORD *)this + 44)); else v20 = *((_QWORD *)this + 52); if ( v20 ) { v21 = (float)(*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v20 + 88LL))(v20); v22 = (float)(*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v20 + 96LL))(v20); if ( *((_BYTE *)this + 440) ) { v23 = v30 / v21; v24 = (float)(v30 + v33) / v21; v25 = v31 / v22; v26 = (float)(v31 + v32) / v22; if ( *((_BYTE *)this + 557) ) { v25 = (float)(v31 + v32) / v22; v26 = v31 / v22; } if ( *((_BYTE *)this + 558) ) { v23 = (float)(v30 + v33) / v21; v24 = v30 / v21; } *((float *)this + 125) = v23; *((float *)this + 126) = v25; *((float *)this + 137) = v23; *((float *)this + 138) = v26; *((float *)this + 119) = v24; *((float *)this + 120) = v25; *((float *)this + 131) = v24; *((float *)this + 132) = v26; } else { v23 = v30 / v21; v24 = (float)(v30 + v32) / v21; v25 = v31 / v22; v26 = (float)(v31 + v33) / v22; if ( *((_BYTE *)this + 557) ) { v23 = (float)(v30 + v32) / v21; v24 = v30 / v21; } if ( *((_BYTE *)this + 558) ) { v25 = (float)(v31 + v33) / v22; v26 = v31 / v22; } *((float *)this + 125) = v23; *((float *)this + 126) = v26; *((float *)this + 137) = v24; *((float *)this + 138) = v26; *((float *)this + 119) = v23; *((float *)this + 120) = v25; *((float *)this + 131) = v24; *((float *)this + 132) = v25; } *((float *)this + 145) = v23; *((float *)this + 146) = v24; *((float *)this + 147) = v26; *((float *)this + 148) = v25; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source