Remove offending function in assembly with hopes of implementing the functionality in C