undefined8 APAutoChannelInit(int param_1)

{
  char cVar1;
  bool bVar2;
  int iVar3;
  uint uVar4;
  
  if (*(void **)(param_1 + 0x1695c) == (void *)0x0) {
    if (RTDebugLevel != 0) {
      printk("pAd->pBssInfoTab equal NULL.\n");
    }
  }
  else {
    memset(*(void **)(param_1 + 0x1695c),0,0xa81)   //possible issue identified - semgrep
  }
  if (*(void **)(param_1 + 0x16960) == (void *)0x0) {
    if (RTDebugLevel != 0) {
      printk("pAd->pChannelInfo equal NULL.\n");
    }
  }
  else {
    memset(*(void **)(param_1 + 0x16960),0,0x3ac)   //possible issue identified - semgrep
  }
  cVar1 = *(char *)(param_1 + 0x16982)   //possible issue identified - semgrep
  if ((((byte)(cVar1 - 2U) < 2) || (cVar1 == '\x05')) || (cVar1 == '\b')) {
    bVar2 = true;
  }
  else {
    bVar2 = cVar1 == '\n';
  }
  *(bool *)(*(int *)(param_1 + 0x16960) + 0x3a8) = bVar2;
  uVar4 = (uint)*(byte *)(param_1 + 0xec);
  iVar3 = param_1 + 0x10000;
  *(undefined1 *)(param_1 + 0x16625) = 0;
  if (uVar4 == 0) {
    uVar4 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x1000);
    iVar3 = *(int *)(*(int *)(param_1 + 0xdc) + 0x1134);
  }
  return CONCAT44(uVar4,iVar3);
}