// // SelectEventLayer::nextPosition from 0x1004091b4 to 0x1004092c0 (268 bytes) // // 1 xrefs: // > SelectEventLayer::addToggle @ 0x100408d1c // // 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 SelectEventLayer::nextPosition(SelectEventLayer *a1) { __int64 v1; // x8 __int64 v3; // x19 cocos2d::CCDirector *v4; // x0 __n128 v5; // q0 __n128 v6; // q1 __n128 v7; // q0 __n128 v8; // q1 int v9; // w20 __int64 *v10; // x1 int v13; // [xsp+8h] [xbp-48h] BYREF _DWORD v14[2]; // [xsp+10h] [xbp-40h] BYREF float v15; // [xsp+18h] [xbp-38h] float v16; // [xsp+1Ch] [xbp-34h] cocos2d::CCPoint result; // 0:s0.4,4:s1.4 v3 = v1; v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v4); v5.n128_f32[0] = (float)(v15 * 0.5) + -140.0; v6.n128_f32[0] = (float)(v16 * 0.5) + 90.0; sub_100022980(v5, v6, v14); v7.n128_f32[0] = (float)(v15 * 0.5) + 40.0; v8.n128_u32[0] = v14[1]; sub_100022980(v7, v8, &v13); v9 = (a1->m_toggleCount - 1) % 12; if ( v9 >= 6 ) v10 = (__int64 *)&v13; else v10 = (__int64 *)v14; sub_1000229B8((__int64 *)v3, v10); result.y = *(float *)(v3 + 4); result.x = result.y - (float)(34 * (char)(v9 - 6 * ((((43 * (char)v9) & 0x8000) != 0) + ((unsigned __int16)(43 * (char)v9) >> 8)))); *(float *)(v3 + 4) = result.x; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source