void TrackDataOut(antfd, elevation, azimuth) int antfd;
double elevation, azimuth;
{
  int n, port;
  char message[30] = "\n";
  port = antfd;
  sprintf(message, "AZ%3.1f EL%3.1f \x0D\x0A", azimuth, elevation);
  n = write(port, message, 30);
  if (n < 0) {
    bailout("Error Writing To Antenna Port");
    exit(-1);
  }
}


x86 assembly (clang, -O0):
<TrackDataOut>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
mov    0xea4(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xea1(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xe9e(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xe9c(%rip),%eax
mov    %eax,-0x28(%rbp)
mov    0xe96(%rip),%ax
mov    %ax,-0x24(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x20(%rbp)
lea    -0x40(%rbp),%rdi
movsd  -0x18(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
lea    0xe79(%rip),%rsi
mov    $0x2,%al
call   1050 <sprintf@plt>
mov    -0x20(%rbp),%edi
lea    -0x40(%rbp),%rsi
mov    $0x1e,%edx
mov    $0x0,%al
call   1040 <write@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jge    11e4 <TrackDataOut+0xa4>
lea    0xe5e(%rip),%rdi
mov    $0x0,%al
call   1030 <bailout@plt>
mov    $0xffffffff,%edi
call   1060 <exit@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TrackDataOut>:
push   %r14
push   %rbx
sub    $0x28,%rsp
movaps %xmm0,%xmm2
mov    %edi,%ebx
movups 0xebb(%rip),%xmm0
movups %xmm0,0xe(%rsp)
movaps 0xea1(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0xeb4(%rip),%rsi
mov    %rsp,%r14
mov    %r14,%rdi
movaps %xmm1,%xmm0
movaps %xmm2,%xmm1
mov    $0x2,%al
call   1050 <sprintf@plt>
mov    %ebx,%edi
mov    %r14,%rsi
mov    $0x1e,%edx
xor    %eax,%eax
call   1040 <write@plt>
test   %eax,%eax
js     119a <TrackDataOut+0x5a>
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret
lea    0xe90(%rip),%rdi
xor    %eax,%eax
call   1030 <bailout@plt>
mov    $0xffffffff,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@__const.TrackDataOut.message = [30 x i8] c"\0A\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@.str = [19 x i8] c"AZ%3.1f EL%3.1f \0D\0A\00"
@.str.1 = [30 x i8] c"Error Writing To Antenna Port\00"
define void @TrackDataOut(i32 %0, double %1, double %2) {
%4 = alloca i32
%5 = alloca double
%6 = alloca double
%7 = alloca i32
%8 = alloca i32
%9 = alloca [30 x i8]
store i32 %0, i32* %4
store double %1, double* %5
store double %2, double* %6
%10 = bitcast [30 x i8]* %9 to i8*
%11 = load i32, i32* %4
store i32 %11, i32* %8
%12 = getelementptr inbounds [30 x i8], [30 x i8]* %9, i64 0, i64 0
%13 = load double, double* %6
%14 = load double, double* %5
%15 = call i32 (i8*, i8*, ...) @sprintf(i8* %12, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), double %13, double %14)
%16 = load i32, i32* %8
%17 = getelementptr inbounds [30 x i8], [30 x i8]* %9, i64 0, i64 0
%18 = call i32 (i32, i8*, i32, ...) bitcast (i32 (...)* @write to i32 (i32, i8*, i32, ...)*)(i32 %16, i8* %17, i32 30)
store i32 %18, i32* %7
%19 = load i32, i32* %7
%20 = icmp slt i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %3
%22 = call i32 (i8*, ...) bitcast (i32 (...)* @bailout to i32 (i8*, ...)*)(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
unreachable
23: ; preds = %3
ret void
}

LLVM IR (-O2):
@__const.TrackDataOut.message = [30 x i8] c"\0A\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@.str = [19 x i8] c"AZ%3.1f EL%3.1f \0D\0A\00"
@.str.1 = [30 x i8] c"Error Writing To Antenna Port\00"
define void @TrackDataOut(i32 %0, double %1, double %2) {
%4 = alloca [30 x i8]
%5 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 0
%6 = call i32 (i8*, i8*, ...) @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), double %2, double %1)
%7 = call i32 (i32, i8*, i32, ...) bitcast (i32 (...)* @write to i32 (i32, i8*, i32, ...)*)(i32 %0, i8* %5, i32 30)
%8 = icmp slt i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %3
%10 = call i32 (i8*, ...) bitcast (i32 (...)* @bailout to i32 (i8*, ...)*)(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
unreachable
11: ; preds = %3
ret void
}