//
// GJBaseGameLayer::shakeCamera from 0x9a91ac to 0x9a9238 (140 bytes)
//
// 4 xrefs:
// > PlayLayer::showCompleteEffect @ 0x6f81ec
// > PlayLayer::destroyPlayer @ 0x6ff7dc
// > EffectGameObject::triggerObject @ 0x89828c
// > ??> @ 0x71080
//
// 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 12:58:11 +0000
//
long double __fastcall GJBaseGameLayer::shakeCamera(GJBaseGameLayer *this, long double result, float a3, float a4)
{
char *v5; // x20
float v7; // [xsp+30h] [xbp+30h]
long double v8; // [xsp+40h] [xbp+40h]
if ( *(float *)&result > 0.0 && a3 > 0.0 )
{
v5 = (char *)this + 12288;
if ( !*((_BYTE *)this + 12649) )
{
if ( a3 > 100.0 )
a3 = 100.0;
v7 = a3;
v8 = result;
*((_QWORD *)this + 155) = 0;
cocos2d::CCPoint::operator=((char *)this + 1248, &unk_155D2C8);
*((_DWORD *)this + 306) = LODWORD(v8);
*((float *)this + 308) = a4;
v5[360] = 0;
*((float *)this + 307) = v7;
return v8;
}
}
return result;
}