// HiiStringToToken - decompiled from Platform.efi
_WORD *__fastcall HiiStringToToken(__int64 a1, _WORD *i)
{
  _WORD *i_1; // rbx

  i_1 = i; /*0x7b92*/
  if ( !i ) /*0x7b98*/
    Assert((__int64)"e:\\hs\\MdePkg\\Library\\DxeHobLib\\HobLib.c", 108, (__int64)"HobStart != ((void *) 0)"); /*0x7bab*/
  while ( 1 ) /*0x7bc4*/
  {
    if ( *i_1 == 0xFFFF ) /*0x7bca*/
      return 0; /*0x7bd3*/
    if ( *i_1 == 4 ) /*0x7bbb*/
      break; /*0x7bbb*/
    i_1 = (_WORD *)((char *)i_1 + (unsigned __int16)i_1[1]); /*0x7bc1*/
  }
  return i_1; /*0x7bce*/
}
