// // GJOptionsLayer::nextPosition from 0x14039b640 to 0x14039b754 (276 bytes) // // 2 xrefs: // > GJOptionsLayer::addToggleInternal @ 0x14039b235 // > @ 0x140923324 // // 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 11:31:15 +0000 // float *__fastcall GJOptionsLayer::nextPosition(float *a1, float *a2, unsigned int a3) { __int64 v6; // rax int v7; // ebp const struct cocos2d::CCPoint *v8; // rdx float v10; // [rsp+50h] [rbp+8h] BYREF float v11; // [rsp+54h] [rbp+Ch] char v12; // [rsp+58h] [rbp+10h] BYREF float v13; // [rsp+5Ch] [rbp+14h] char v14; // [rsp+68h] [rbp+20h] BYREF v6 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v6, &v10); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v12, (float)(v10 * 0.5) - 160.0, (float)((float)((float)(a1[184] * 0.5) + (float)(v11 * 0.5)) - 60.0) + a1[266]); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v14, (float)(v10 * 0.5) + 32.0, v13); v7 = GJOptionsLayer::countForPage(a1, a3); v8 = (const struct cocos2d::CCPoint *)&v12; if ( (((_BYTE)v7 + 1) & 1) == 0 ) v8 = (const struct cocos2d::CCPoint *)&v14; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)a2, v8); if ( v7 + 1 > 2 ) a2[1] = a2[1] - (float)((float)(int)floorf((float)v7 * 0.5) * a1[250]); return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source