What are smart contract events compiled to in EVM asm?

Under the hood, these are compiled to LOG(N) instructions where N is one of 0-4.