// // cocos2d::CCSpriteFrame::setRect from 0x100358300 to 0x1003583d5 (213 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall cocos2d::CCSpriteFrame::setRect(cocos2d::CCSpriteFrame *a1, const cocos2d::CCRect *a2) { cocos2d::CCDirector *v2; // rax cocos2d::CCDirector *v3; // rax cocos2d::CCDirector *v4; // rax cocos2d::CCDirector *v5; // rax __m128 v6; // xmm3 unsigned __int64 v7[2]; // [rsp+0h] [rbp-30h] BYREF float v8; // [rsp+10h] [rbp-20h] float height; // [rsp+14h] [rbp-1Ch] float width; // [rsp+18h] [rbp-18h] float x; // [rsp+1Ch] [rbp-14h] sub_10028D1A0((__m128 *)&a1->m_obRect, (unsigned __int64 *)a2); x = a1->m_obRect.origin.x; v2 = cocos2d::CCDirector::sharedDirector(); v8 = sub_1004849C0(v2) * x; x = a1->m_obRect.origin.y; v3 = cocos2d::CCDirector::sharedDirector(); x = x * sub_1004849C0(v3); width = a1->m_obRect.size.width; v4 = cocos2d::CCDirector::sharedDirector(); width = width * sub_1004849C0(v4); height = a1->m_obRect.size.height; v5 = cocos2d::CCDirector::sharedDirector(); v6 = (__m128)LODWORD(height); v6.f32[0] = height * sub_1004849C0(v5); sub_10028CC00((__int64)v7, v8, x, (__m128)LODWORD(width), v6); sub_10028D1A0((__m128 *)&a1->m_obRectInPixels, v7); }
GD Web Decomp Icon

GD Web Decomp

Raw Source