Analysis code for XAMS (Xenon Amsterdam) data from two PMTs in a dual-phase xenon time projection chamber