RaspMapGlyphIndexToLocation
NTSTATUS __fastcall RaspMapGlyphIndexToLocation(__int64 a1, int a2, _DWORD *a3){
__int16 v5;
UINT64 v6;
NTSTATUS result;
__int64 v8;
int v9;
UINT64 v10;
__int64 v11;
UINT16 Buffer;
UINT64 v13;
LODWORD(v13) = 0;
Buffer = 0;
if( !a1 )
return -1073741823;
v5 = *(_WORD *)(a1 + 76);
if( !v5 )
{
v6 = (unsigned int)(*(_DWORD *)(a1 + 72) + 2 * a2);
result = FioFwReadUshortAtOffset(*(_FILE_IMAGE **)(*(_QWORD *)(a1 + 16) + 16i64), v6, &Buffer);
if( result < 0 )
return result;
v8 = *(_QWORD *)(a1 + 16);
*a3 = 2 * Buffer;
result = FioFwReadUshortAtOffset(*(_FILE_IMAGE **)(v8 + 16), (unsigned int)(v6 + 2), &Buffer);
if( result < 0 )
return result;
v9 = 2 * Buffer;
goto LABEL_6;
}
if( v5 != 1 )
return -1073741701;
v10 = (unsigned int)(*(_DWORD *)(a1 + 72) + 4 * a2);
result = FioFwReadUlongAtOffset(*(_FILE_IMAGE **)(*(_QWORD *)(a1 + 16) + 16i64), v10, &v13);
if( result >= 0 )
{
v11 = *(_QWORD *)(a1 + 16);
*a3 = v13;
result = FioFwReadUlongAtOffset(*(_FILE_IMAGE **)(v11 + 16), (unsigned int)(v10 + 4), &v13);
if( result >= 0 )
{
v9 = v13;
LABEL_6:
if( *a3 == v9 )
*a3 = -1;
return 0;
}
}
return result;
}Referenced by:
RaspGetCompositeGlyphList
RaspGetUnscaledGlyphData