// // AudioEffectsLayer::getBGSquare from 0x1004afc80 to 0x1004affe3 (867 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 *__fastcall AudioEffectsLayer::getBGSquare(AudioEffectsLayer *a1) { __m128 v1; // xmm0 __m128 v2; // xmm1 float v3; // xmm0_4 __int64 v4; // xmm0_8 float v5; // xmm0_4 float v6; // xmm1_4 float v7; // xmm1_4 cocos2d::CCSprite *v8; // rbx double v10; // [rsp+4h] [rbp-1Ch] BYREF __int64 v11; // [rsp+Ch] [rbp-14h] BYREF float v12; // [rsp+14h] [rbp-Ch] v1.f32[0] = (float)((float)rand() * 4.6566129e-10) * 14.0; v2 = _mm_or_ps(_mm_and_ps((__m128)xmmword_1008150B0, v1), (__m128)xmmword_1008150C0); v2.f32[0] = v2.f32[0] + v1.f32[0]; sub_10028CC30(&v11); switch ( (int)_mm_round_ss((__m128)0LL, v2, 11).f32[0] ) { case 0: v3 = 60.0; goto LABEL_9; case 1: v7 = 40.0; goto LABEL_18; case 2: v3 = 280.0; LABEL_9: sub_10028CBE0((float *)&v10, v3, 60.0); sub_10028CC90(&v11, &v10); v4 = 1123024896; goto LABEL_22; case 3: sub_10028CBE0((float *)&v10, 430.0, 77.0); sub_10028CC90(&v11, &v10); v4 = 1125515264; goto LABEL_22; case 4: v5 = 25.0; goto LABEL_15; case 5: v5 = 90.0; LABEL_15: sub_10028CBE0((float *)&v10, v5, 150.0); sub_10028CC90(&v11, &v10); v4 = 1112014848; goto LABEL_22; case 6: v7 = 380.0; LABEL_18: sub_10028CBE0((float *)&v10, 170.0, v7); sub_10028CC90(&v11, &v10); v4 = 1117782016; goto LABEL_22; case 7: sub_10028CBE0((float *)&v10, 280.0, 177.0); sub_10028CC90(&v11, &v10); v4 = 1121714176; goto LABEL_22; case 8: v6 = 186.0; goto LABEL_21; case 9: v6 = 230.0; LABEL_21: sub_10028CBE0((float *)&v10, 360.0, v6); sub_10028CC90(&v11, &v10); v4 = 1106247680; goto LABEL_22; case 10: sub_10028CBE0((float *)&v10, 446.0, 230.0); sub_10028CC90(&v11, &v10); v4 = 1122762752; goto LABEL_22; case 11: sub_10028CBE0((float *)&v10, 40.0, 234.0); sub_10028CC90(&v11, &v10); v4 = 1118044160; goto LABEL_22; case 12: sub_10028CBE0((float *)&v10, 150.0, 250.0); sub_10028CC90(&v11, &v10); v4 = 1122631680; goto LABEL_22; case 13: sub_10028CBE0((float *)&v10, 300.0, 325.0); sub_10028CC90(&v11, &v10); v4 = 1125711872; goto LABEL_22; case 14: v12 = 0.0; sub_10028CBE0((float *)&v10, 0.0, 177.0); *(double *)&v4 = sub_10028CC90(&v11, &v10); goto LABEL_23; default: sub_10028CBE0((float *)&v10, 0.0, 0.0); sub_10028CC90(&v11, &v10); v4 = 1092616192; LABEL_22: v12 = *(float *)&v4; LABEL_23: v8 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, __int64 *, double))v8->setPosition)(v8, &v11, *(double *)&v4); ((void (__fastcall *)(cocos2d::CCSprite *, float))v8->setScale)(v8, v12 / v8->m_obRect.size.width); return v8; } }