The adiabatic processes are impermeable to heat: heat flows rapidly into the loop through the left expanding process, resulting in increasing pressure while volume is increasing; some of it flows back out through the right depressurizing process; the remaining heat does the work.