//
// SelectEventLayer::nextPosition from 0x1005a7930 to 0x1005a7a44 (276 bytes)
//
// 0 xrefs:
//
// 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:32:35 +0000
//
__int64 __fastcall SelectEventLayer::nextPosition(__int64 a1, __int64 a2)
{
__int64 v2; // rax
float *v3; // r12
int v4; // r14d
float v6; // [rsp+8h] [rbp-38h] BYREF
float v7[2]; // [rsp+10h] [rbp-30h] BYREF
__int64 v8; // [rsp+18h] [rbp-28h] BYREF
v2 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v8, v2);
sub_100278250(v7, (float)(*(float *)&v8 * 0.5) + -140.0, (float)(*((float *)&v8 + 1) * 0.5) + 90.0);
v3 = &v6;
sub_100278250(&v6, (float)(0.5 * *(float *)&v8) + 40.0, v7[1]);
v4 = *(_DWORD *)(a2 + 1032) - 12 * ((*(_DWORD *)(a2 + 1032) - 1) / 12) - 1;
if ( v4 < 6 )
v3 = v7;
sub_1002782D0((_QWORD *)a1, v3);
*(float *)(a1 + 4) = *(float *)(a1 + 4)
- (float)(34
* (char)(v4
- 6
* (((unsigned __int16)(43 * (char)v4) >> 8)
+ ((unsigned __int16)(43 * (char)v4) >> 15))));
return a1;
}