// // sub_140290310 from 0x140290310 to 0x140290414 (260 bytes) // // 4 xrefs: // > GJOptionsLayer::addToggleInternal @ 0x14028ff6a // > GameOptionsLayer::setupOptions @ 0x14029f3bb // > GameOptionsLayer::setupOptions @ 0x14029f6a3 // > @ 0x1406d1940 // // 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 // cocos2d::CCPoint *__fastcall sub_140290310(GJOptionsLayer *a1, cocos2d::CCPoint *a2, int a3) { float v3; // xmm0_4 cocos2d::CCDirector *v7; // rax double v8; // xmm0_8 int v9; // ebp float v11; // [rsp+50h] [rbp+8h] v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v7); v8 = cocos2d::CCPoint::CCPoint(v3, (float)(v11 * 0.5) - 160.0); cocos2d::CCPoint::CCPoint(*(float *)&v8, (float)(v11 * 0.5) + 32.0); v9 = GJOptionsLayer::countForPage(a1, a3); cocos2d::CCPoint::CCPoint(a2); if ( v9 + 1 > 2 ) a2->y = a2->y - (float)((float)(int)floorf((float)v9 * 0.5) * a1->m_gap); return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source