undefined4 * xs_fopen(char *param_1,char *param_2)

{
  FILE *__stream;
  undefined4 *__s;
  
  __stream = fopen(param_1,param_2)   //possible issue identified - semgrep
  __s = (undefined4 *)0x0;
  if (__stream != (FILE *)0x0) {
    __s = (undefined4 *)malloc(0x214)   //possible issue identified - semgrep
    if (__s == (undefined4 *)0x0) {
      fclose(__stream);
      __s = (undefined4 *)0x0;
    }
    else {
      memset(__s,0,0x214)   //possible issue identified - semgrep
      *__s = 1;
      __s[1] = __stream;
    }
  }
  return __s;
}