//
// cocos2d::CCLiquid::update from 0xd2c524 to 0xd2c6a8 (388 bytes)
//
// 2 xrefs:
// > ??> @ 0xd3000
// > ??> @ 0x1512b18
//
// 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 13:07:17 +0000
//
__int64 __fastcall cocos2d::CCLiquid::update(cocos2d::CCLiquid *this, float a2)
{
float v3; // s11
float v4; // s8
float v6; // s0
int v7; // w22
float v8; // s14
int v9; // w24
unsigned int v10; // w0
float v11; // s1
float v12; // s15
float v13; // s0
float v14; // s2
float v15; // s8
float v16; // s0
float v17; // s10
float v18; // s9
float v20; // [xsp+90h] [xbp+90h]
_BYTE v21[8]; // [xsp+A0h] [xbp+A0h] BYREF
float v22[4]; // [xsp+A8h] [xbp+A8h] BYREF
v3 = 1.0;
v4 = *((float *)this + 23);
if ( v4 > 1.0 )
{
v6 = *((float *)this + 24);
v7 = 1;
do
{
if ( v6 > 1.0 )
{
v8 = 1.0;
v9 = 1;
do
{
++v9;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, v3, v8);
cocos2d::CCGrid3DAction::originalVertex(this, (const cocos2d::CCPoint *)v21);
v10 = *((_DWORD *)this + 25);
v12 = v11;
v20 = v13;
v22[2] = v14;
v15 = (float)(a2 * 3.1416) * (float)v10;
v16 = sinf((float)(v13 * 0.01) + (float)(v15 * 2.0));
v17 = *((float *)this + 26);
v18 = *((float *)this + 27);
v22[0] = v20 + (float)((float)(v16 * v17) * v18);
v22[1] = v12 + (float)(v18 * (float)(v17 * sinf((float)(v12 * 0.01) + (float)(v15 * 2.0))));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, v3, v8);
cocos2d::CCGrid3DAction::setVertex((__int64)this, (__int64)v21, (__int64)v22);
v8 = (float)v9;
v6 = *((float *)this + 24);
}
while ( (float)v9 < v6 );
v4 = *((float *)this + 23);
}
v3 = (float)++v7;
}
while ( (float)v7 < v4 );
}
return _stack_chk_guard;
}