@จอห์นนี่ ******
, depends on which gate you go through. If you go through Gate 2, you will go to passport control after you get a re-entry stamp. The re-entry permit counter itself wouldn't give you anything other than a re-entry permit stamp.
If you go through another gate, you tell the officer you need a re-entry permit, you will be stamped out, and then you have to go to the re-entry permit counter all the way to gate 2 from the air side. in this case, you already have a departure stamp before the re-entry permit.