[Reverse-engineering] pi_slot_palette_apply