// // TIFFNumberOfTiles from 0xc622d0 to 0xc62414 (324 bytes) // // 3 xrefs: // > TIFFReadDirectory @ 0xc3c844 // > TIFFSetupStrips @ 0xc62d28 // > @ 0x866e8 // // 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 TIFFNumberOfTiles(_DWORD *a1) { _DWORD *v1; // x19 unsigned int v2; // w2 unsigned int v4; // w20 unsigned int v5; // w0 unsigned int v6; // w4 unsigned int v7; // w1 unsigned int v8; // w3 unsigned int v9; // w2 int v10; // w1 unsigned int v11; // w0 unsigned int v12; // w2 unsigned int v13; // w1 v1 = a1 + 14; v2 = a1[25]; v4 = a1[27]; v5 = a1[26]; if ( v2 == -1 ) v2 = v1[8]; if ( v5 == -1 ) v5 = v1[9]; if ( v4 == -1 ) v4 = v1[10]; if ( v5 != 0 && v2 != 0 && v4 ) { v6 = v1[8]; v7 = 0; if ( v6 < -v2 ) v7 = (v6 - 1 + v2) / v2; v8 = v1[9]; v9 = 0; if ( v8 < -v5 ) v9 = (v8 - 1 + v5) / v5; v10 = TIFFMultiply32((__int64)a1, v7, v9, "TIFFNumberOfTiles"); v11 = v1[10]; v12 = 0; if ( v11 < -v4 ) v12 = (v11 - 1 + v4) / v4; v13 = TIFFMultiply32((__int64)a1, v10, v12, "TIFFNumberOfTiles"); if ( *((_WORD *)v1 + 57) == 2 ) return TIFFMultiply32((__int64)a1, v13, *((unsigned __int16 *)v1 + 37), "TIFFNumberOfTiles"); } else { v13 = 0; if ( *((_WORD *)v1 + 57) == 2 ) return TIFFMultiply32((__int64)a1, v13, *((unsigned __int16 *)v1 + 37), "TIFFNumberOfTiles"); } return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source