// // MoreOptionsLayer::nextPosition from 0x10079dbe0 to 0x10079dcd5 (245 bytes) // // 1 xrefs: // > MoreOptionsLayer::addToggle @ 0x10079cc90 // // 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 // // local variable allocation has failed, the output may be wrong! cocos2d::CCPoint __fastcall MoreOptionsLayer::nextPosition(MoreOptionsLayer *a1, int a2) { int v2; // edx int v3; // r14d float *v4; // r13 int v5; // r14d __m128 v7; // xmm0 int v8; // eax float v9; // [rsp+0h] [rbp-40h] BYREF float v10[2]; // [rsp+8h] [rbp-38h] BYREF float v11[12]; // [rsp+10h] [rbp-30h] BYREF cocos2d::CCPoint result; // 0:xmm0_8.8 v3 = v2; cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v11); sub_10028CBE0(v10, (float)(v11[0] * 0.5) + -160.0, (float)(v11[1] * 0.5) + 80.0); v4 = &v9; sub_10028CBE0(&v9, (float)(0.5 * v11[0]) + 32.0, v10[1]); v5 = MoreOptionsLayer::countForPage(*(MoreOptionsLayer **)&a2, v3); if ( (v5 & 1) == 0 ) v4 = v10; *(double *)&result = sub_10028CC60(a1, (double *)v4); if ( v5 >= 2 ) { v7 = 0; v7.f32[0] = (float)v5 * 0.5; v8 = 48 * (int)_mm_round_ss(v7, v7, 9).f32[0]; result.y = 0.0; result.x = (float)v8; *((float *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + 1) = *((float *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + 1) - (float)v8; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source