//
// sub_1002F8B30 from 0x1002f8b30 to 0x1002f8ba8 (120 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::processAreaFadeGroupAction @ 0x100291f08
// > GJBaseGameLayer::processAreaFadeGroupAction @ 0x100291f2c
//
// 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_1002F8B30(__int64 result, int a2, float a3, float a4)
{
__int64 v6; // x20
unsigned int v7; // w21
v6 = result;
if ( *(_DWORD *)(result + 1336) != a2 || *(float *)(result + 1332) > a4 )
{
v7 = *(unsigned __int8 *)(result + 1328);
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 912LL))(
result,
(unsigned int)(int)(float)((float)v7 * a3));
*(_BYTE *)(v6 + 1328) = v7;
*(_DWORD *)(v6 + 1336) = a2;
*(float *)(v6 + 1332) = a4;
}
return result;
}