A primitive root; to twine, i.e. (literally) to struggle or (figuratively) be (morally) tortuous -- (shew self) froward, shew self unsavoury, wrestle.
H6617. pathal
[מָּתַל] verb twist (Late Hebrew Pi`el and derivatives; Arabic ; Ethiopic ; Aramaic מְּתַל, chiefly derivatives, in figure senses; Syriac ); —
Niph`al Perfect1singular עִם נִמְּתַּלְתִּי Genesis 30:8 I have wrestled (literally twisted myself) with; Participle נִפְתָּלִים עֲצַת Job 5:13 the plan of the tortuous; וְעִקֵּשׁ נִפְתָּל Proverbs 8:8 anything tortuous and twisted.
Hithpa`el Imperfect2masculine singular תִּתְמַּתָּ֑ל עִקֵּשׁ עִםֿ Psalm 18:27 with the twisted thou dost deal tortuously = 2 Samuel 22:27 (so read for impossible תִּתַּמָּ֑ל).