// // AudioEffectsLayer::getBGSquare from 0x50a3e0 to 0x50a4e8 (264 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:51:27 +0000 // float *__fastcall AudioEffectsLayer::getBGSquare(AudioEffectsLayer *this) { unsigned int v1; // r6 float v2; // r1 float v3; // r2 const char *v4; // r1 float v5; // s16 float *v6; // r4 _BYTE v8[8]; // [sp+4h] [bp-18h] BYREF _BYTE v9[8]; // [sp+Ch] [bp-10h] BYREF rand(); v1 = lroundf(); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8); 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((cocos2d::CCPoint *)v9, v2, v3); cocos2d::CCPoint::operator=(v8, v9); if ( v1 > 0xE ) v5 = 10.0; else v5 = flt_BECAB0[v1]; v6 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare60_001.png", v4); (*(void (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v6 + 92))(v6, v8); (*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v6 + 80))(v6, v5 / v6[86]); return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source