// // sub_140392390 from 0x140392390 to 0x140392472 (226 bytes) // // 4 xrefs: // > GJPathPage::playUnlockAnimation @ 0x140395fd2 // > GJPathPage::unlockAnimationStep2 @ 0x140396306 // > GJPathPage::unlockAnimationStep3 @ 0x14039675d // > GJPathPage::unlockAnimationStep3 @ 0x1403969d9 // // 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 11:31:11 +0000 // __int64 __fastcall sub_140392390(__int64 a1, int a2) { int v3; // edx int v4; // ecx unsigned int v5; // eax __m128i v6; // xmm1 switch ( a2 ) { case 1: v3 = 255; v4 = 150; goto LABEL_12; case 2: v4 = 255; v3 = 50; v5 = 255; goto LABEL_13; case 3: v3 = 50; v4 = 255; goto LABEL_12; case 4: v3 = 255; v4 = 0; v5 = 255; goto LABEL_13; case 5: v3 = 255; v4 = 100; goto LABEL_12; case 6: v3 = 200; v4 = 150; goto LABEL_12; case 7: v5 = 0; v3 = 255; v4 = 0; goto LABEL_13; case 8: v3 = 255; v4 = 255; v5 = 255; goto LABEL_13; case 9: v3 = 255; v5 = 50; v4 = 255; goto LABEL_13; default: v3 = 255; v4 = 255; LABEL_12: v5 = 0; LABEL_13: *(_DWORD *)(a1 + 12) = 1065353216; v6 = _mm_cvtsi32_si128(v5); *(float *)a1 = (float)v3 / 255.0; *(float *)(a1 + 8) = _mm_cvtepi32_ps(v6).m128_f32[0] / 255.0; *(float *)(a1 + 4) = (float)v4 / 255.0; return a1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source