The origin is the part of the "local" object that is placed into the object's global position.
The origin is only used at the time of drawing (or manual use of the object's transform) so only the last set value for the origin is used.
If you want to rotate around a separate origin to the translation origin (the one you use for position), for example, you will need to combine your own transform.