undefined4 rtmp_ee_flash_reset(void *param_1)

{
  uint uVar1;
  int iVar2;
  undefined4 uVar3;
  undefined1 auStack_20 [16];
  
  RtmpOSFSInfoChange(auStack_20,1);
  uVar1 = RtmpOSFileOpen("/etc/RT5350_AP_1T1R_V1_0.bin",0,0)   //possible issue identified - semgrep
  if ((uVar1 == 0) || (0xfffff000 < uVar1)) {
    uVar3 = 1;
    if (2 < RTDebugLevel) {
      printk("--> Error opening file %s\n","/etc/RT5350_AP_1T1R_V1_0.bin");
      uVar3 = 1;
    }
  }
  else {
    memset(param_1,0,0x200)   //possible issue identified - semgrep
    iVar2 = RtmpOSFileRead(uVar1,param_1,0x200)   //possible issue identified - semgrep
    if (iVar2 < 0) {
      if (2 < RTDebugLevel) {
        printk("--> Read %s error %d\n","/etc/RT5350_AP_1T1R_V1_0.bin",-iVar2);
      }
    }
    else if (2 < RTDebugLevel) {
      printk("--> rtmp_ee_flash_reset copy %s to eeprom buffer\n","/etc/RT5350_AP_1T1R_V1_0.bin");
    }
    iVar2 = RtmpOSFileClose(uVar1);
    if ((iVar2 != 0) && (2 < RTDebugLevel)) {
      printk("--> Error %d closing %s\n",-iVar2,"/etc/RT5350_AP_1T1R_V1_0.bin");
    }
    RtmpOSFSInfoChange(auStack_20,0);
    uVar3 = 0;
  }
  return uVar3;
}