bool RTMPSoftEncryptCCMP(undefined4 param_1,byte *param_2,undefined4 param_3,undefined4 param_4,
                        undefined4 param_5,int param_6)

{
  uint uVar1;
  bool bVar2;
  int iVar3;
  uint uVar4;
  undefined4 local_68;
  undefined4 local_64;
  int local_60;
  undefined1 auStack_5c [16];
  undefined1 auStack_4c [36];
  
  local_60 = param_6 + 8;
  local_68 = 0;
  local_64 = 0;
  memset(auStack_4c,0,0x1e)   //possible issue identified - semgrep
  memset(auStack_5c,0,0xd)   //possible issue identified - semgrep
  uVar4 = (uint)param_2[1] & ((uint)param_2[1] << 0x1e) >> 0x1f;
  uVar1 = ((uint)*param_2 << 0x1c) >> 0x1e;
  bVar2 = (byte)((*param_2 >> 4) - 8) < 4;
  RTMPConstructCCMPAAD(param_2,uVar1 == 2,uVar4,bVar2,auStack_4c,&local_68);
  RTMPConstructCCMPNonce(param_2,uVar4,bVar2,uVar1 == 0,param_3,auStack_5c,&local_64);
  iVar3 = AES_CCM_Encrypt(param_5,param_6,param_4,0x10,auStack_5c,local_64,auStack_4c,local_68,8,
                          param_5,&local_60);
  return iVar3 == 0;
}