//
// cocos2d::CCLiquid::update from 0x7ba048 to 0x7ba154 (268 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:14 +0000
//
int __fastcall cocos2d::CCLiquid::update(int this, float a2)
{
int v2; // r4
int i; // r7
int v5; // r8
float v6; // s20
float v7; // s17
float v8; // s16
float v9; // s16
float v10; // r0
float v11; // s18
float v12; // s24
float v13; // s17
int v14; // r3
_BYTE v15[8]; // [sp+0h] [bp-1Ch] BYREF
float v16; // [sp+8h] [bp-14h] BYREF
float v17; // [sp+Ch] [bp-10h]
v2 = this;
for ( i = 1; (float)i < *(float *)(v2 + 80); ++i )
{
v5 = 1;
while ( 1 )
{
v6 = (float)v5;
if ( (float)v5 >= *(float *)(v2 + 84) )
break;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, (float)i, (float)v5);
cocos2d::CCGrid3DAction::originalVertex((cocos2d::CCGrid3DAction *)&v16, (const cocos2d::CCPoint *)v2);
++v5;
v7 = v16;
v8 = (float)(a2 * 3.1416) * (float)*(unsigned int *)(v2 + 88);
v9 = v8 + v8;
v10 = sinf(v9 + (float)(v16 * 0.01));
v11 = *(float *)(v2 + 92);
v12 = *(float *)(v2 + 96);
v16 = v7 + (float)((float)(v10 * v11) * v12);
v13 = v17;
v17 = v13 + (float)((float)(sinf(v9 + (float)(v17 * 0.01)) * v11) * v12);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, (float)i, v6);
this = cocos2d::CCGrid3DAction::setVertex(v2, (int)v15, (int)&v16, v14);
}
}
return this;
}