//
// cocos2d::CCRipple3D::update from 0x5b3f40 to 0x5b4072 (306 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::CCRipple3D::update(cocos2d::CCRipple3D *a1, float a2)
{
int i; // r7
int j; // r8
float v6; // s21
float v7; // r0
float v8; // s12
float v9; // s22
float v10; // r0
cocos2d::CCPoint v11; // [sp+0h] [bp-20h] BYREF
cocos2d::CCPoint v12; // [sp+8h] [bp-18h] BYREF
cocos2d::ccVertex3F v13; // [sp+10h] [bp-10h] BYREF
for ( i = 0; (float)i < (float)(*(float *)&a1[1].__vftable + 1.0); ++i )
{
for ( j = 0; ; ++j )
{
v6 = (float)j;
if ( (float)j >= (float)(*(float *)&a1[1].m_uID + 1.0) )
break;
cocos2d::CCPoint::CCPoint(&v12, (float)i, (float)j);
cocos2d::CCGrid3DAction::originalVertex(&v13, a1, &v12);
cocos2d::CCPoint::CCPoint(&v12, v13.x, v13.y);
cocos2d::CCPoint::operator-(&v11, &a1[1].m_nLuaID, &v12);
v7 = cocos2d::ccpLength(&v11);
v8 = *(float *)&a1[1].m_uReference;
if ( v7 < v8 )
{
v9 = (float)(v8 - v7) / v8;
v10 = sinf(
(float)((float)((float)(a2 * 3.1416) * (float)a1[1].m_uAutoReleaseCount)
+ (float)((float)(a2 * 3.1416) * (float)a1[1].m_uAutoReleaseCount))
+ (float)((float)(v8 - v7) * 0.1));
v13.z = v13.z
+ (float)((float)((float)(v10 * *(float *)&a1[1].m_eObjType) * *(float *)&a1[1].m_uIndexInArray)
* (float)(v9 * v9));
}
cocos2d::CCPoint::CCPoint(&v12, (float)i, v6);
cocos2d::CCGrid3DAction::setVertex(a1, &v12, &v13);
}
}
}