//
// cocos2d::CCFadeOutBLTiles::testFunc from 0x1007b6850 to 0x1007b68d1 (129 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009938e0
//
// 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
//
float __fastcall cocos2d::CCFadeOutBLTiles::testFunc(
cocos2d::CCFadeOutBLTiles *a1,
const cocos2d::CCSize *a2,
float a3)
{
__m128 v3; // xmm0
float v4; // xmm1_4
float result; // xmm0_4
unsigned __int64 v6; // [rsp+Ch] [rbp-24h] BYREF
double v7; // [rsp+14h] [rbp-1Ch] BYREF
float v8; // [rsp+1Ch] [rbp-14h]
v8 = a3;
sub_10028CBE0((float *)&v6, *((float *)&a1->m_bFirstTick + 1), *(float *)&a1[1].__vftable);
v3 = (__m128)0x3F800000u;
v3.f32[0] = 1.0 - v8;
sub_10028CD40(&v7, &v6, v3);
v4 = a2->width + a2->height;
result = 1.0;
if ( v4 != 0.0 )
return powf((float)(*(float *)&v7 + *((float *)&v7 + 1)) / v4, 6.0);
return result;
}