// // sub_6DB6F8 from 0x6db6f8 to 0x6db938 (576 bytes) // // 2 xrefs: // > sub_6DBD90 @ 0x6dbf04 // > sub_6DC010 @ 0x6dc144 // // 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_6DB6F8(_DWORD *a1) { int v1; // r3 int v3; // r0 unsigned __int16 *v6; // [sp+8h] [bp-Ch] int *v7; // [sp+Ch] [bp-8h] v6 = (unsigned __int16 *)(a1 + 10); v7 = (int *)a1[144]; if ( !v7 ) _assert2(); if ( v6[25] != 32844 ) _assert2(); if ( *v7 == -1 ) *v7 = sub_6DB5E4(v6); v1 = *v7; if ( *v7 == 1 ) { v7[2] = 2; } else if ( v1 == 3 ) { v7[2] = 1; } else { if ( v1 ) { TIFFErrorExt(a1[157], (int)"LogL16InitState", "No support for converting user data format to LogL"); return 0; } v7[2] = 4; } if ( (a1[3] & 0x400) != 0 ) v3 = sub_6DB690(*((_DWORD *)v6 + 7), *((_DWORD *)v6 + 8)); else v3 = sub_6DB690(*((_DWORD *)v6 + 4), *((_DWORD *)v6 + 15)); v7[4] = v3; if ( sub_6DB690(v7[4], 2) ) { v7[3] = TIFFmalloc(2 * v7[4]); if ( v7[3] ) return 1; } TIFFErrorExt(a1[157], (int)"LogL16InitState", "No space for SGILog translation buffer"); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source