Factor out int32 reads