// // cocos2d::CCSpriteFrame::initWithTexture_1 from 0x1003578b0 to 0x100357996 (230 bytes) // // 1 xrefs: // > cocos2d::CCSpriteFrame::createWithTexture_1 @ 0x10035785b // // 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 // bool __fastcall cocos2d::CCSpriteFrame::initWithTexture_1( cocos2d::CCSpriteFrame *a1, cocos2d::CCTexture2D *a2, const cocos2d::CCRect *a3) { cocos2d::CCDirector *v4; // rax cocos2d::CCDirector *v5; // rax cocos2d::CCDirector *v6; // rax cocos2d::CCDirector *v7; // rax __m128 v8; // xmm3 cocos2d::CCRect v10; // [rsp+8h] [rbp-38h] BYREF float v11; // [rsp+18h] [rbp-28h] float height; // [rsp+1Ch] [rbp-24h] float width; // [rsp+20h] [rbp-20h] float x; // [rsp+24h] [rbp-1Ch] x = a3->origin.x; v4 = cocos2d::CCDirector::sharedDirector(); v11 = sub_1004849C0(v4) * x; x = a3->origin.y; v5 = cocos2d::CCDirector::sharedDirector(); x = x * sub_1004849C0(v5); width = a3->size.width; v6 = cocos2d::CCDirector::sharedDirector(); width = width * sub_1004849C0(v6); height = a3->size.height; v7 = cocos2d::CCDirector::sharedDirector(); v8 = (__m128)LODWORD(height); v8.f32[0] = height * sub_1004849C0(v7); sub_10028CC00((__int64)&v10, v11, x, (__m128)LODWORD(width), v8); cocos2d::CCSpriteFrame::initWithTexture(a1, a2, &v10, 0, &stru_1009A0BA0, &v10.size); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source