// // cocos2d::CCSpriteFrame::initWithTexture from 0x1003431f0 to 0x1003433de (494 bytes) // // 5 xrefs: // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x100307b65 // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x100307e51 // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x100307fd6 // > cocos2d::CCSpriteFrame::initWithTexture_1 @ 0x100343094 // > cocos2d::CCSpriteFrame::createWithTexture @ 0x100343194 // // This function is hookable on this platform (idp: pc, 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:28:44 +0000 // char __fastcall cocos2d::CCSpriteFrame::initWithTexture( __int64 a1, __int64 a2, __int64 a3, char a4, _QWORD *a5, _QWORD *a6) { __int64 v11; // rdi __int64 v12; // rdi __int64 v13; // rdi __int64 v14; // rax __m128 v15; // xmm3 __int64 v16; // rdi float v17; // xmm0_4 __int64 v18; // rax float v19; // xmm0_4 __int64 v20; // rdi float v21; // xmm0_4 __int64 v22; // rax float v23; // xmm0_4 unsigned __int64 v25[2]; // [rsp+8h] [rbp-48h] BYREF float v26; // [rsp+18h] [rbp-38h] float v27; // [rsp+1Ch] [rbp-34h] float v28; // [rsp+20h] [rbp-30h] float v29; // [rsp+24h] [rbp-2Ch] *(_QWORD *)(a1 + 128) = a2; if ( a2 ) cocos2d::CCObject::retain(a2); sub_100278810((__m128 *)(a1 + 72), (unsigned __int64 *)a3); v29 = *(float *)a3; v11 = cocos2d::CCDirector::sharedDirector(a1 + 72, a3); v29 = v29 / sub_100479350(v11); v28 = *(float *)(a3 + 4); v12 = cocos2d::CCDirector::sharedDirector(v11, a3); v28 = v28 / sub_100479350(v12); v27 = *(float *)(a3 + 8); v13 = cocos2d::CCDirector::sharedDirector(v12, a3); v27 = v27 / sub_100479350(v13); v26 = *(float *)(a3 + 12); v14 = cocos2d::CCDirector::sharedDirector(v13, a3); v15 = (__m128)LODWORD(v26); v15.f32[0] = v26 / sub_100479350(v14); sub_100278270((__int64)v25, v29, v28, (__m128)LODWORD(v27), v15); sub_100278810((__m128 *)(a1 + 92), v25); sub_100278300((_QWORD *)(a1 + 108), a5); v29 = *(float *)(a1 + 108); v16 = cocos2d::CCDirector::sharedDirector(a1 + 108, a5); v17 = sub_100479350(v16); v29 = v29 / v17; v28 = *(float *)(a1 + 112); v18 = cocos2d::CCDirector::sharedDirector(v16, a5); v19 = sub_100479350(v18); sub_100278250((float *)v25, v29, v28 / v19); sub_100278300((_QWORD *)(a1 + 56), v25); sub_100278660((_QWORD *)(a1 + 116), a6); v29 = *(float *)(a1 + 116); v20 = cocos2d::CCDirector::sharedDirector(a1 + 116, a6); v21 = sub_100479350(v20); v29 = v29 / v21; v28 = *(float *)(a1 + 120); v22 = cocos2d::CCDirector::sharedDirector(v20, a6); v23 = sub_100479350(v22); sub_100278260((float *)v25, v29, v28 / v23); sub_100278660((_QWORD *)(a1 + 64), v25); *(_BYTE *)(a1 + 88) = a4; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source