def METHOD_NAME(tr):
    argspec_ptr_type = argspec_type.get_type().pointer()
    s = []
    for arg in lists.list_for_each_entry(tr['pargs'], argspec_ptr_type, 'list'):
        t = arg['type']
        if t == ARG_TYPE_INDEX:
            idx = int(arg['idx'])
            if idx == 0:
                a = 'retval'
            else:
                a = 'arg{i}'.format(i=int(arg['idx']))
        elif t == ARG_TYPE_FLOAT:
            a = 'fparg{i}'.format(i=int(arg['idx']))
        elif t == ARG_TYPE_REG:
            a = 'reg{i}'.format(i=int(arg['reg_idx']))
        elif t == ARG_TYPE_STACK:
            a = 'stack+{i}'.format(i=int(arg['stack_ofs']))
        f = arg['fmt']
        if f != ARG_FMT_AUTO:
            a += "/{fmt}{sz}".format(fmt=ARG_FMT_STR[f], sz=arg['size']*8)
        s.append(a)
    return ','.join(s)