<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse(content):
 """ Parse rdma.curren and rdma.max Example contents: mlx4_0 hca_handle=2 hca_object=2000 ocrdma1 hca_handle=3 hca_object=max {'mlx4_0': {'hca_handle': 2, 'hca_object': 2000}, 'ocrdma1': {'hca_handle': 3, 'hca_object': 'max'}} """

        ret = {}
        lines = content.split('\n')
        for line in lines:
            m = RdmaStat._RE.match(line)
            if m is None:
                continue
            name = m.group('name')
            hca_handle = long(m.group('hca_handle'))
            hca_object = m.group('hca_object')
            if hca_object != "max":
                hca_object = long(hca_object)
            ret[name] = {"hca_handle": hca_handle, "hca_object": hca_object}
        return ret