Tile IDs are stored in data tags with some of the highest bits used to store
information about the flipped state of the tile. You'll need to run the ID through
this function to get those flipped states, along with the actual usable tile ID.
For more info, see:
https://doc.mapeditor.org/en/stable/reference/tmx-map-format/#tile-flipping
(tile-id->map 3221225473)