//
// cocos2d::CCShaky3D::update from 0x5b4080 to 0x5b419e (286 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::CCShaky3D::update(cocos2d::CCShaky3D *a1, float a2)
{
int i; // r8
int j; // r9
float v5; // s17
int v6; // r0
int m_nTag_low; // r3
cocos2d::CCPoint v8; // [sp+0h] [bp-18h] BYREF
cocos2d::ccVertex3F v9; // [sp+8h] [bp-10h] BYREF
for ( i = 0; (float)i < (float)(*(float *)&a1[1].__vftable + 1.0); ++i )
{
for ( j = 0; ; ++j )
{
v5 = (float)j;
if ( (float)j >= (float)(*(float *)&a1[1].m_uID + 1.0) )
break;
cocos2d::CCPoint::CCPoint(&v8, (float)i, (float)j);
cocos2d::CCGrid3DAction::originalVertex(&v9, a1, &v8);
v9.x = v9.x + (float)(rand() % (2 * a1[1].m_nLuaID) - a1[1].m_nLuaID);
v6 = rand();
m_nTag_low = LOBYTE(a1[1].cocos2d::CCGrid3DAction::cocos2d::CCGridAction::cocos2d::CCActionInterval::cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::m_nTag);
v9.y = v9.y + (float)(v6 % (2 * a1[1].m_nLuaID) - a1[1].m_nLuaID);
if ( m_nTag_low )
v9.z = v9.z + (float)(rand() % (2 * a1[1].m_nLuaID) - a1[1].m_nLuaID);
cocos2d::CCPoint::CCPoint(&v8, (float)i, v5);
cocos2d::CCGrid3DAction::setVertex(a1, &v8, &v9);
}
}
}