// // sub_10048085C from 0x10048085c to 0x1004809e4 (392 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 // __int64 __fastcall sub_10048085C(_DWORD *a1, float32x2_t *a2, int a3, unsigned int a4, int a5) { int32x2_t v5; // d21 unsigned int v6; // w8 __int64 v7; // x12 int v8; // w16 int v9; // w14 int v10; // w17 int v11; // w15 int32x2_t v12; // d7 unsigned int v13; // w16 _DWORD *v14; // x17 int8x8_t v15; // t1 int8x8_t v16; // d16 int v17; // w3 int v18; // w4 __int16 *v19; // x6 int32x2_t v20; // d17 int32x2_t v21; // d18 int32x2_t v22; // d19 __int16 *v23; // x7 int32x2_t v24; // d20 int32x2_t v25; // d17 if ( !a3 ) return 0; v6 = a5 - 1; v7 = a4; while ( 1 ) { v8 = *a1; v9 = (unsigned __int8)BYTE2(*a1); if ( (unsigned int)v9 > 0x58 ) break; v10 = a1[1]; v11 = BYTE2(v10); if ( BYTE2(v10) > 0x58u ) break; --a3; v12 = (int32x2_t)__PAIR64__((__int16)v10, (__int16)v8); *a2++ = vmul_f32(vcvt_f32_s32((int32x2_t)__PAIR64__((__int16)v10, (__int16)v8)), (float32x2_t)0x3800000038000000LL); if ( v6 ) { v13 = v6; v14 = a1; do { v15 = *(int8x8_t *)(v14 + 2); v14 += 2; v16 = v15; if ( v13 >= 8 ) v17 = 8; else v17 = v13; v18 = v17; do { v19 = &asc_10064A26C[v9]; v20 = (int32x2_t)vand_s8(v16, (int8x8_t)0x200000002LL); v21 = (int32x2_t)vand_s8(v16, (int8x8_t)0x100000001LL); v22 = (int32x2_t)vand_s8(v16, (int8x8_t)0x800000008LL); v9 += dword_10064A320[v16.i8[0] & 0xF]; if ( v9 >= 88 ) v9 = 88; if ( v9 <= 0 ) v9 = 0; v23 = &asc_10064A26C[v11]; v24 = (int32x2_t)vand_s8(v16, (int8x8_t)0x400000004LL); v11 += dword_10064A320[v16.i8[4] & 0xF]; if ( v11 >= 88 ) v11 = 88; if ( v11 <= 0 ) v11 = 0; v5.i16[0] = *v19; v5.i16[2] = *v23; v5 = vshr_n_s32(vshl_n_s32(v5, 0x10u), 0x10u); v25 = vadd_s32( vadd_s32( vsra_n_s32((int32x2_t)vbic_s8((int8x8_t)v5, (int8x8_t)vceqz_s32(v24)), v5, 3u), (int32x2_t)vbic_s8((int8x8_t)vshr_n_s32(v5, 1u), (int8x8_t)vceqz_s32(v20))), (int32x2_t)vbic_s8((int8x8_t)vshr_n_s32(v5, 2u), (int8x8_t)vceqz_s32(v21))); v12 = vmin_s32( vmax_s32( vadd_s32((int32x2_t)vbsl_s8((int8x8_t)vceqz_s32(v22), (int8x8_t)v25, (int8x8_t)vneg_s32(v25)), v12), (int32x2_t)0x7F0000007FLL), (int32x2_t)0x7F0000007FLL); *a2++ = vmul_f32(vcvt_f32_s32(v12), (float32x2_t)0x3800000038000000LL); v16 = (int8x8_t)vshr_n_u32((uint32x2_t)v16, 4u); --v18; } while ( v18 ); v13 -= v17; } while ( v13 ); } a1 = (_DWORD *)((char *)a1 + v7); if ( !a3 ) return 0; } return 13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source