conjunction form (te-form) of the verb もがく (moga-ku), irregular verb
Analysis. もがく is a simple verb without internal morphemic composition; the te-form もがいて expresses an ongoing action or creates a clause linking to a following verb.
Dictionary entry by Claude.
Lite mode — plain HTML for e-readers and old browsers. Full version