// // sub_6A0060 from 0x6a0060 to 0x6a0334 (724 bytes) // // 1 xrefs: // > TIFFVGetFieldDefaulted @ 0x6a0ae0 // // 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 // int __fastcall sub_6A0060(int a1) { _WORD *v2; // r4 double v3; // r0 _DWORD *v6; // [sp+8h] [bp-24h] int i; // [sp+Ch] [bp-20h] int v8; // [sp+10h] [bp-1Ch] int v9; // [sp+14h] [bp-18h] v6 = (_DWORD *)(a1 + 160); *(_DWORD *)(a1 + 168) = 0; *(_DWORD *)(a1 + 164) = *(_DWORD *)(a1 + 168); *(_DWORD *)(a1 + 160) = *(_DWORD *)(a1 + 164); if ( *(unsigned __int16 *)(a1 + 44) > 0x1Du ) return 0; v8 = 1 << *(_WORD *)(a1 + 44); v9 = 2 * v8; *v6 = TIFFmalloc(2 * v8); if ( !*v6 ) return 0; *(_WORD *)*v6 = 0; for ( i = 1; i < v8; ++i ) { v2 = (_WORD *)(*v6 + 2 * i); v3 = pow((double)i / ((double)v8 - 1.0), 2.2); *v2 = (unsigned int)floor(v3 * 65535.0 + 0.5); } if ( *(unsigned __int16 *)(a1 + 58) - *(unsigned __int16 *)(a1 + 116) <= 1 ) return 1; v6[1] = TIFFmalloc(v9); if ( v6[1] ) { TIFFmemcpy(v6[1], *v6, v9); v6[2] = TIFFmalloc(v9); if ( v6[2] ) { TIFFmemcpy(v6[2], *v6, v9); return 1; } } if ( *v6 ) TIFFfree(*v6); if ( v6[1] ) TIFFfree(v6[1]); if ( v6[2] ) TIFFfree(v6[2]); v6[2] = 0; v6[1] = v6[2]; *v6 = v6[1]; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source