// // uv_decode from 0x8e9d4c to 0x8e9ebc (368 bytes) // // 3 xrefs: // > LogLuv24toXYZ @ 0x8e9f88 // > sub_8EA294 @ 0x8ea330 // > @ 0x6b56c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:04:11 +0000 // int __fastcall uv_decode(double *a1, double *a2, unsigned int a3) { int v4; // r5 int v6; // [sp+10h] [bp-14h] int v7; // [sp+14h] [bp-10h] if ( a3 > 0x3FA0 ) return -1; v7 = 0; v6 = 163; while ( v6 - v7 > 1 ) { v4 = a3 - *((__int16 *)&unk_D22324 + 4 * ((v7 + v6) >> 1) + 3); if ( v4 <= 0 ) { if ( v4 >= 0 ) { v7 = (v7 + v6) >> 1; break; } v6 = (v7 + v6) >> 1; } else { v7 = (v7 + v6) >> 1; } } *a1 = *((float *)&unk_D22324 + 2 * v7) + ((double)(int)(a3 - *((__int16 *)&unk_D22324 + 4 * v7 + 3)) + 0.5) * 0.00350000011; *a2 = ((double)v7 + 0.5) * 0.00350000011 + 0.0169399995; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source