Yes, I figured out that the .endm was pushed down by the addition of the Kubfu evolution macro, which was causing the totem boost to not end like you said. However, it still did not solve the error code regarding the failure to build the event_script.o file.
I will work on getting a repo set...