def METHOD_NAME(packer, es_brake_msg, enabled, brake_value):
  values = {s: es_brake_msg[s] for s in [
    "CHECKSUM",
    "COUNTER",
    "Signal1",
    "Brake_Pressure",
    "AEB_Status",
    "Cruise_Brake_Lights",
    "Cruise_Brake_Fault",
    "Cruise_Brake_Active",
    "Cruise_Activated",
    "Signal3",
  ]}
  if enabled:
    values["Cruise_Activated"] = 1
  values["Brake_Pressure"] = brake_value
  if brake_value > 0:
    values["Cruise_Brake_Active"] = 1
    values["Cruise_Brake_Lights"] = 1 if brake_value >= 70 else 0
  return packer.make_can_msg("ES_Brake", CanBus.main, values)