//
// AudioEffectsLayer::getBGSquare from 0x78f66c to 0x78f8a4 (568 bytes)
//
// 1 xrefs:
// > ??> @ 0x91c98
//
// 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
//
cocos2d::CCSprite *AudioEffectsLayer::getBGSquare(AudioEffectsLayer *a1)
{
unsigned int v1; // w19
float v2; // s8
float v3; // s0
float v4; // s1
cocos2d::CCSprite *v5; // x19
float v7; // s0
float v8; // s1
float v9; // s0
float v10; // s1
float v11; // s0
float v12; // s1
float v13; // s0
float v14; // s1
cocos2d::CCPoint v15; // [xsp+48h] [xbp+48h] BYREF
cocos2d::CCPoint v16; // [xsp+50h] [xbp+50h] BYREF
v1 = llroundf((float)((float)rand() * 4.6566e-10) * 14.0);
cocos2d::CCPoint::CCPoint(&v15);
switch ( v1 )
{
case 0u:
cocos2d::CCPoint::CCPoint(&v16, 60.0, 60.0);
cocos2d::CCPoint::operator=(&v15, v11, v12);
goto LABEL_7;
case 1u:
v7 = 170.0;
v8 = 40.0;
goto LABEL_6;
case 2u:
v7 = 280.0;
v8 = 60.0;
goto LABEL_6;
case 3u:
v7 = 430.0;
v8 = 77.0;
goto LABEL_6;
case 4u:
cocos2d::CCPoint::CCPoint(&v16, 25.0, 150.0);
cocos2d::CCPoint::operator=(&v15, v13, v14);
goto LABEL_7;
case 5u:
v7 = 90.0;
v8 = 150.0;
goto LABEL_6;
case 6u:
v7 = 170.0;
v8 = 380.0;
goto LABEL_6;
case 7u:
v7 = 280.0;
goto LABEL_9;
case 8u:
v7 = 360.0;
v8 = 186.0;
goto LABEL_6;
case 9u:
v7 = 360.0;
v8 = 230.0;
goto LABEL_6;
case 0xAu:
v7 = 446.0;
v8 = 230.0;
goto LABEL_6;
case 0xBu:
v7 = 40.0;
v8 = 234.0;
goto LABEL_6;
case 0xCu:
v7 = 150.0;
v8 = 250.0;
goto LABEL_6;
case 0xDu:
v7 = 300.0;
v8 = 325.0;
goto LABEL_6;
case 0xEu:
v7 = 0.0;
LABEL_9:
v8 = 177.0;
LABEL_6:
cocos2d::CCPoint::CCPoint(&v16, v7, v8);
cocos2d::CCPoint::operator=(&v15, v9, v10);
LABEL_7:
v2 = flt_ECEBF0[v1];
break;
default:
v2 = 10.0;
cocos2d::CCPoint::CCPoint(&v16, 0.0, 0.0);
cocos2d::CCPoint::operator=(&v15, v3, v4);
break;
}
v5 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png");
v5->setPosition(v5, &v15);
v5->setScale(v5, v2 / v5->m_obRect.size.width);
return v5;
}