//
// cocos2d::CCBlink::update from 0x10021fa80 to 0x10021fb08 (136 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008fc2f8
//
// 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:01:07 +0000
//
__int64 __fastcall cocos2d::CCBlink::update(__int64 result, float a2)
{
__int64 v3; // x19
float v4; // s9
float v5; // s0
if ( *(_QWORD *)(result + 64) )
{
v3 = result;
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 80LL))(result);
if ( (result & 1) == 0 )
{
v4 = 1.0 / (float)*(unsigned int *)(v3 + 92);
v5 = fmodf(a2, v4);
return (*(__int64 (__fastcall **)(_QWORD, bool))(**(_QWORD **)(v3 + 64) + 344LL))(
*(_QWORD *)(v3 + 64),
v5 > (float)(v4 * 0.5));
}
}
return result;
}