// // AudioEffectsLayer::getBGSquare from 0x1004a8e60 to 0x1004a91c3 (867 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: pc, 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:30:55 +0000 // float *__fastcall AudioEffectsLayer::getBGSquare(__m128 a1) { __m128 v1; // xmm1 float v2; // xmm0_4 __int64 v3; // xmm0_8 float v4; // xmm0_4 float v5; // xmm1_4 float v6; // xmm1_4 float *v7; // rbx __int64 v9; // [rsp+4h] [rbp-1Ch] BYREF __int64 v10; // [rsp+Ch] [rbp-14h] BYREF float v11; // [rsp+14h] [rbp-Ch] a1.f32[0] = (float)((float)rand() * 4.6566129e-10) * 14.0; v1 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, a1), (__m128)xmmword_100A03600); v1.f32[0] = v1.f32[0] + a1.f32[0]; sub_1002782A0(&v10); switch ( (int)_mm_round_ss((__m128)0LL, v1, 11).f32[0] ) { case 0: v2 = 60.0; goto LABEL_9; case 1: v6 = 40.0; goto LABEL_18; case 2: v2 = 280.0; LABEL_9: sub_100278250((float *)&v9, v2, 60.0); sub_100278300(&v10, &v9); v3 = 1123024896; goto LABEL_22; case 3: sub_100278250((float *)&v9, 430.0, 77.0); sub_100278300(&v10, &v9); v3 = 1125515264; goto LABEL_22; case 4: v4 = 25.0; goto LABEL_15; case 5: v4 = 90.0; LABEL_15: sub_100278250((float *)&v9, v4, 150.0); sub_100278300(&v10, &v9); v3 = 1112014848; goto LABEL_22; case 6: v6 = 380.0; LABEL_18: sub_100278250((float *)&v9, 170.0, v6); sub_100278300(&v10, &v9); v3 = 1117782016; goto LABEL_22; case 7: sub_100278250((float *)&v9, 280.0, 177.0); sub_100278300(&v10, &v9); v3 = 1121714176; goto LABEL_22; case 8: v5 = 186.0; goto LABEL_21; case 9: v5 = 230.0; LABEL_21: sub_100278250((float *)&v9, 360.0, v5); sub_100278300(&v10, &v9); v3 = 1106247680; goto LABEL_22; case 10: sub_100278250((float *)&v9, 446.0, 230.0); sub_100278300(&v10, &v9); v3 = 1122762752; goto LABEL_22; case 11: sub_100278250((float *)&v9, 40.0, 234.0); sub_100278300(&v10, &v9); v3 = 1118044160; goto LABEL_22; case 12: sub_100278250((float *)&v9, 150.0, 250.0); sub_100278300(&v10, &v9); v3 = 1122631680; goto LABEL_22; case 13: sub_100278250((float *)&v9, 300.0, 325.0); sub_100278300(&v10, &v9); v3 = 1125711872; goto LABEL_22; case 14: v3 = 0; v11 = 0.0; sub_100278250((float *)&v9, 0.0, 177.0); sub_100278300(&v10, &v9); goto LABEL_23; default: sub_100278250((float *)&v9, 0.0, 0.0); sub_100278300(&v10, &v9); v3 = 1092616192; LABEL_22: v11 = *(float *)&v3; LABEL_23: v7 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"whiteSquare60_001.png", *(double *)&v3); (*(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v7 + 184LL))(v7, &v10); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v7 + 160LL))(v7, v11 / v7[108]); return v7; } }