// // sub_6E7B90 from 0x6e7b90 to 0x6e7d88 (504 bytes) // // 2 xrefs: // > sub_6E7DA0 @ 0x6e7df0 // > sub_6E8098 @ 0x6e80e0 // // 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 // bool __fastcall sub_6E7B90(int a1) { int v1; // r3 int v3; // r3 int v4; // r0 _DWORD *v6; // [sp+8h] [bp-Ch] v6 = *(_DWORD **)(a1 + 576); v1 = *v6; if ( *v6 == 2 ) { if ( *(_WORD *)(a1 + 84) != 8 && *(_WORD *)(a1 + 84) != 16 && *(_WORD *)(a1 + 84) != 32 ) { TIFFErrorExt( *(_DWORD *)(a1 + 628), (int)"PredictorSetup", "Horizontal differencing \"Predictor\" not supported with %d-bit samples", *(unsigned __int16 *)(a1 + 84)); return 0; } } else { if ( v1 != 3 ) { if ( v1 == 1 ) return 1; TIFFErrorExt(*(_DWORD *)(a1 + 628), (int)"PredictorSetup", "\"Predictor\" value %d not supported", *v6); return 0; } if ( *(_WORD *)(a1 + 86) != 3 ) { TIFFErrorExt( *(_DWORD *)(a1 + 628), (int)"PredictorSetup", "Floating point \"Predictor\" not supported with %d data format", *(unsigned __int16 *)(a1 + 86)); return 0; } } if ( *(_WORD *)(a1 + 126) == 1 ) v3 = *(unsigned __int16 *)(a1 + 98); else v3 = 1; v6[1] = v3; if ( (*(_DWORD *)(a1 + 12) & 0x400) != 0 ) v4 = TIFFTileRowSize(a1); else v4 = TIFFScanlineSize(a1); v6[2] = v4; return v6[2] != 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source