// // AudioEffectsLayer::getBGSquare from 0x401cb4 to 0x401dbc (264 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 // cocos2d::CCSprite *AudioEffectsLayer::getBGSquare(AudioEffectsLayer *a1) { unsigned int v1; // r6 float v2; // r1 float v3; // r2 int v4; // r2 bool v5; // r3 float v6; // s16 cocos2d::CCSprite *v7; // r4 cocos2d::CCPoint v9; // [sp+4h] [bp-18h] BYREF cocos2d::CCPoint v10; // [sp+Ch] [bp-10h] BYREF rand(); v1 = lroundf(); cocos2d::CCPoint::CCPoint(&v9); switch ( v1 ) { case 0u: v2 = 60.0; goto LABEL_21; case 1u: v2 = 170.0; v3 = 40.0; break; case 2u: v2 = 280.0; v3 = 60.0; break; case 3u: v2 = 430.0; v3 = 77.0; break; case 4u: v2 = 25.0; goto LABEL_8; case 5u: v2 = 90.0; LABEL_8: v3 = 150.0; break; case 6u: v2 = 170.0; v3 = 380.0; break; case 7u: v2 = 280.0; goto LABEL_19; case 8u: v2 = 360.0; v3 = 186.0; break; case 9u: v2 = 360.0; goto LABEL_14; case 0xAu: v2 = 446.0; LABEL_14: v3 = 230.0; break; case 0xBu: v2 = 40.0; v3 = 234.0; break; case 0xCu: v2 = 150.0; v3 = 250.0; break; case 0xDu: v2 = 300.0; v3 = 325.0; break; case 0xEu: v2 = 0.0; LABEL_19: v3 = 177.0; break; default: v2 = 0.0; LABEL_21: v3 = v2; break; } cocos2d::CCPoint::CCPoint(&v10, v2, v3); cocos2d::CCPoint::operator=((PlayerObject *)&v9, COERCE_FLOAT(&v10), v4, v5); if ( v1 > 0xE ) v6 = 10.0; else v6 = flt_9AB1D8[v1 + 2]; v7 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png"); v7->setPosition(v7, &v9); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD))v7->setScale)(v7, v6 / v7->m_obRect.size.width); return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source