//
// sub_1002F83F0 from 0x1002f83f0 to 0x1002f847c (140 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::processRotationActions @ 0x10029460c
// > GJBaseGameLayer::processRotationActions @ 0x1002946cc
// > GJBaseGameLayer::rotateObject @ 0x100295068
// > sub_1002FEE1C @ 0x1002fee44
//
// This function is hookable on this platform (idp: arm, 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:03:00 +0000
//
__int64 __fastcall sub_1002F83F0(float *a1, float a2)
{
__int64 v4; // x8
float v5; // s0
float (__fastcall **v6)(float *); // x8
__int64 v7; // x20
float v8; // s0
v4 = *(_QWORD *)a1;
if ( a1[14] == a1[15] )
{
v6 = (float (__fastcall **)(float *))(v4 + 368);
v7 = 360;
}
else
{
v5 = (*(float (__fastcall **)(float *))(v4 + 384))(a1);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)a1 + 376LL))(a1, v5 + a2);
v6 = (float (__fastcall **)(float *))(*(_QWORD *)a1 + 400LL);
v7 = 392;
}
v8 = (*v6)(a1) + a2;
return (*(__int64 (__fastcall **)(float *, float))(*(_QWORD *)a1 + v7))(a1, v8);
}