//
// cocos2d::CCLiquid::update from 0x5b3800 to 0x5b390c (268 bytes)
//
// 0 xrefs:
//
// 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
//
void cocos2d::CCLiquid::update(cocos2d::CCLiquid *a1, float a2)
{
int i; // r7
int v5; // r8
float v6; // s20
float x; // s17
float v8; // s16
float v9; // s16
float v10; // r0
int m_nTag; // s18
float v12; // s24
float y; // s17
cocos2d::CCPoint v14; // [sp+0h] [bp-1Ch] BYREF
cocos2d::ccVertex3F v15; // [sp+8h] [bp-14h] BYREF
for ( i = 1; (float)i < *(float *)&a1[1].__vftable; ++i )
{
v5 = 1;
while ( 1 )
{
v6 = (float)v5;
if ( (float)v5 >= *(float *)&a1[1].m_uID )
break;
cocos2d::CCPoint::CCPoint(&v14, (float)i, (float)v5);
cocos2d::CCGrid3DAction::originalVertex(&v15, a1, &v14);
++v5;
x = v15.x;
v8 = (float)(a2 * 3.1416) * (float)(unsigned int)a1[1].m_nLuaID;
v9 = v8 + v8;
v10 = sinf(v9 + (float)(v15.x * 0.01));
m_nTag = a1[1].cocos2d::CCGrid3DAction::cocos2d::CCGridAction::cocos2d::CCActionInterval::cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::m_nTag;
v12 = *(float *)&a1[1].m_uReference;
v15.x = x + (float)((float)(v10 * *(float *)&m_nTag) * v12);
y = v15.y;
v15.y = y + (float)((float)(sinf(v9 + (float)(v15.y * 0.01)) * *(float *)&m_nTag) * v12);
cocos2d::CCPoint::CCPoint(&v14, (float)i, v6);
cocos2d::CCGrid3DAction::setVertex(a1, &v14, &v15);
}
}
}