undefined4 ipv6op_getifindex(char *param_1)

{
  FILE *__stream;
  int iVar1;
  size_t __n;
  char *pcVar2;
  undefined4 local_180;
  undefined1 auStack_17c [4];
  undefined1 auStack_178 [4];
  undefined1 auStack_174 [4];
  undefined1 uStack_170;
  undefined1 uStack_16f;
  undefined1 uStack_16e;
  undefined1 uStack_16d;
  undefined1 uStack_16c;
  undefined1 uStack_16b;
  undefined1 uStack_16a;
  undefined1 uStack_169;
  undefined1 uStack_168;
  undefined1 uStack_167;
  undefined1 uStack_166;
  undefined1 uStack_165;
  undefined1 uStack_164;
  undefined1 uStack_163;
  undefined1 uStack_162;
  undefined1 uStack_161;
  char acStack_160 [16];
  char acStack_150 [256];
  undefined1 *local_50;
  undefined1 *local_4c;
  undefined1 *local_48;
  undefined1 *local_44;
  undefined1 *local_40;
  undefined1 *local_3c;
  undefined1 *local_38;
  undefined1 *local_34;
  undefined1 *local_30;
  
  memset(acStack_150,0,0x100)   //possible issue identified - semgrep
  __stream = fopen(o_ifinet6,"r")   //possible issue identified - semgrep
  if (__stream == (FILE *)0x0) {
    verbose("<< %s: Couldn\'t open %s to get ipv6 address\n","ipv6op_getifindex",o_ifinet6);
    local_180 = 0xffffffff;
  }
  else {
    local_50 = &uStack_170;
    local_4c = &uStack_16f;
    local_48 = &uStack_16e;
    local_44 = &uStack_16d;
    local_40 = &uStack_16c;
    local_3c = &uStack_16b;
    local_38 = &uStack_16a;
    local_34 = &uStack_169;
    local_30 = &uStack_168;
    do {
      while( true ) {
        pcVar2 = fgets(acStack_150,0x100,__stream)   //possible issue identified - semgrep
        if (pcVar2 == (char *)0x0) {
          local_180 = 0xffffffff;
          goto LAB_004037b8;
        }
        iVar1 = sscanf(acStack_150,
                       "%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx %x %x %x %x %8s"
                       ,local_50,local_4c,local_48,local_44,local_40,local_3c,local_38,local_34,
                       local_30,&uStack_167,&uStack_166,&uStack_165,&uStack_164,&uStack_163,
                       &uStack_162,&uStack_161,&local_180,auStack_17c,auStack_178,auStack_174,
                       acStack_160)   //possible issue identified - semgrep
        if (iVar1 == 0x15) break;
        verbose("<< %s: WARNING, %s has a broken line, ignoring","ipv6op_getifindex",o_ifinet6);
      }
      __n = strlen(param_1);
      iVar1 = strncmp(param_1,acStack_160,__n)   //possible issue identified - semgrep
    } while (iVar1 != 0);
LAB_004037b8:
    fclose(__stream);
  }
  return local_180;
}