PopPepGetReadyActivityType

INT64 __fastcall PopPepGetReadyActivityType(INT64 a1, UINT64 a2, INT64 a3){
  int v3; 
  int **v4; 
  int v5; 
  v3 = a3;
  if( (int)a2 > (int)a3 )
  {
LABEL_7:
    LODWORD(a2) = 6;
  }
  else
  {
    v4 = (int **)(a1 + 8i64 * (int)a2);
    while( 1 )
    {
      v5 = **v4;
      if( (v5 & 2) != 0 || (v5 & 8) != 0 )
        break;
      LODWORD(a2) = a2 + 1;
      ++v4;
      if( (int)a2 > v3 )
        goto LABEL_7;
    }
  }
  return(unsigned int)a2;
}

Referenced by:

PopPepComponentGetWork
PopPepWork