/* WARNING: Removing unreachable block (ram,0x00011184) */

undefined4 iptcc_chain_index_alloc(int param_1)

{
  void *__s;
  undefined4 uVar1;
  int iVar2;
  
  iVar2 = (uint)(*(uint *)(param_1 + 0x18) % 0x28 != 0) + *(uint *)(param_1 + 0x18) / 0x28;
  __s = malloc(iVar2 * 4)   //possible issue identified - semgrep
  *(void **)(param_1 + 0x1c) = __s;
  if ((__s == (void *)0x0) && (iVar2 != 0)) {
    *(undefined4 *)(param_1 + 0x20) = 0;
    uVar1 = 0xfffffff4;
  }
  else {
    memset(__s,0,iVar2 * 4)   //possible issue identified - semgrep
    *(int *)(param_1 + 0x20) = iVar2;
    uVar1 = 1;
  }
  return uVar1;
}