// // AudioEffectsLayer::getBGSquare from 0x8b8700 to 0x8b8938 (568 bytes) // // 1 xrefs: // > @ 0xc0bb0 // // 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:56:26 +0000 // float *__fastcall AudioEffectsLayer::getBGSquare(AudioEffectsLayer *this) { unsigned int v1; // w19 float v2; // s8 const char *v3; // x1 float *v4; // x19 float v6; // s0 float v7; // s1 _BYTE v8[8]; // [xsp+48h] [xbp+48h] BYREF _BYTE v9[8]; // [xsp+50h] [xbp+50h] BYREF v1 = llroundf((float)((float)rand() * 4.6566e-10) * 14.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8); switch ( v1 ) { case 0u: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 60.0, 60.0); cocos2d::CCPoint::operator=(v8, v9); goto LABEL_7; case 1u: v6 = 170.0; v7 = 40.0; goto LABEL_6; case 2u: v6 = 280.0; v7 = 60.0; goto LABEL_6; case 3u: v6 = 430.0; v7 = 77.0; goto LABEL_6; case 4u: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 25.0, 150.0); cocos2d::CCPoint::operator=(v8, v9); goto LABEL_7; case 5u: v6 = 90.0; v7 = 150.0; goto LABEL_6; case 6u: v6 = 170.0; v7 = 380.0; goto LABEL_6; case 7u: v6 = 280.0; goto LABEL_9; case 8u: v6 = 360.0; v7 = 186.0; goto LABEL_6; case 9u: v6 = 360.0; v7 = 230.0; goto LABEL_6; case 0xAu: v6 = 446.0; v7 = 230.0; goto LABEL_6; case 0xBu: v6 = 40.0; v7 = 234.0; goto LABEL_6; case 0xCu: v6 = 150.0; v7 = 250.0; goto LABEL_6; case 0xDu: v6 = 300.0; v7 = 325.0; goto LABEL_6; case 0xEu: v6 = 0.0; LABEL_9: v7 = 177.0; LABEL_6: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, v6, v7); cocos2d::CCPoint::operator=(v8, v9); LABEL_7: v2 = flt_114C7B0[v1]; break; default: v2 = 10.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 0.0, 0.0); cocos2d::CCPoint::operator=(v8, v9); break; } v4 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare60_001.png", v3); (*(void (__fastcall **)(float *, _BYTE *))(*(_QWORD *)v4 + 184LL))(v4, v8); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v4 + 160LL))(v4, v2 / v4[108]); return v4; }