Associative Yang-Baxter equation and Fukaya categories of square-tiled surfaces