Program: 187479
Project: 187479
Buggy source:
public void n(){
  if (this.jumpDelay > 0) {
    --this.jumpDelay;
  }
  if (this.bi > 0 && !this.bA()) {
    double d0=this.locX + (this.bj - this.locX) / (double)this.bi;
    double d1=this.locY + (this.bk - this.locY) / (double)this.bi;
    double d2=this.locZ + (this.bl - this.locZ) / (double)this.bi;
    double d3=MathHelper.g(this.bm - (double)this.yaw);
    this.yaw=(float)((double)this.yaw + d3 / (double)this.bi);
    this.pitch=(float)((double)this.pitch + (this.bm - (double)this.pitch) / (double)this.bi);
    --this.bi;
    this.setPosition(d0,d1,d2);
    this.setYawPitch(this.yaw,this.pitch);
  }
 else   if (!this.ct()) {
    this.motX*=0.98D;
    this.motY*=0.98D;
    this.motZ*=0.98D;
  }
  if (Math.abs(this.motX) < 0.003D) {
    this.motX=0.0D;
  }
  if (Math.abs(this.motY) < 0.003D) {
    this.motY=0.0D;
  }
  if (Math.abs(this.motZ) < 0.003D) {
    this.motZ=0.0D;
  }
  this.world.methodProfiler.a("String_Node_Str");
  if (this.cj()) {
    this.be=false;
    this.bf=0.0F;
    this.bg=0.0F;
    this.bh=0.0F;
  }
 else   if (this.ct()) {
    this.world.methodProfiler.a("String_Node_Str");
    this.doMyPetTick();
    this.world.methodProfiler.b();
  }
  this.world.methodProfiler.b();
  this.world.methodProfiler.a("String_Node_Str");
  if (this.be) {
    if (this.isInWater() || this.ao()) {
      this.cj();
    }
 else     if (this.onGround && this.jumpDelay == 0) {
      this.ci();
      this.jumpDelay=10;
    }
  }
 else {
    this.jumpDelay=0;
  }
  this.world.methodProfiler.b();
  this.world.methodProfiler.a("String_Node_Str");
  this.bf*=0.98F;
  this.bg*=0.98F;
  this.bh*=0.9F;
  this.r();
  this.g(this.bf,this.bg);
  this.world.methodProfiler.b();
  this.world.methodProfiler.a("String_Node_Str");
  this.co();
  this.world.methodProfiler.b();
}

Fixed version (ground truth):
public void n(){
  if (this.jumpDelay > 0) {
    --this.jumpDelay;
  }
  if (this.bi > 0 && !this.bA()) {
    double d0=this.locX + (this.bj - this.locX) / (double)this.bi;
    double d1=this.locY + (this.bk - this.locY) / (double)this.bi;
    double d2=this.locZ + (this.bl - this.locZ) / (double)this.bi;
    double d3=MathHelper.g(this.bm - (double)this.yaw);
    this.yaw=(float)((double)this.yaw + d3 / (double)this.bi);
    this.pitch=(float)((double)this.pitch + (this.bm - (double)this.pitch) / (double)this.bi);
    --this.bi;
    this.setPosition(d0,d1,d2);
    this.setYawPitch(this.yaw,this.pitch);
  }
 else   if (!this.ct()) {
    this.motX*=0.98D;
    this.motY*=0.98D;
    this.motZ*=0.98D;
  }
  if (Math.abs(this.motX) < 0.003D) {
    this.motX=0.0D;
  }
  if (Math.abs(this.motY) < 0.003D) {
    this.motY=0.0D;
  }
  if (Math.abs(this.motZ) < 0.003D) {
    this.motZ=0.0D;
  }
  this.world.methodProfiler.a("String_Node_Str");
  if (this.cj()) {
    this.be=false;
    this.bf=0.0F;
    this.bg=0.0F;
    this.bh=0.0F;
  }
 else   if (this.ct()) {
    this.world.methodProfiler.a("String_Node_Str");
    this.doMyPetTick();
    this.world.methodProfiler.b();
  }
  this.world.methodProfiler.b();
  this.world.methodProfiler.a("String_Node_Str");
  if (this.be) {
    if (this.isInWater() || this.ao()) {
      this.cm();
    }
 else     if (this.onGround && this.jumpDelay == 0) {
      this.cl();
      this.jumpDelay=10;
    }
  }
 else {
    this.jumpDelay=0;
  }
  this.world.methodProfiler.b();
  this.world.methodProfiler.a("String_Node_Str");
  this.bf*=0.98F;
  this.bg*=0.98F;
  this.bh*=0.9F;
  this.r();
  this.g(this.bf,this.bg);
  this.world.methodProfiler.b();
  this.world.methodProfiler.a("String_Node_Str");
  this.co();
  this.world.methodProfiler.b();
}