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, strlen(message));
  if (n < 0) {
    bailout("Error Writing To Antenna Port");
    exit(-1);
  }
}


x86 assembly (clang, -O0):
<TrackDataOut>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
mov    0xe94(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xe91(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xe8e(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xe8c(%rip),%eax
mov    %eax,-0x28(%rbp)
mov    0xe86(%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    0xe69(%rip),%rsi
mov    $0x2,%al
call   1060 <sprintf@plt>
mov    -0x20(%rbp),%eax
mov    %eax,-0x4c(%rbp)
lea    -0x40(%rbp),%rax
mov    %rax,-0x48(%rbp)
lea    -0x40(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x4c(%rbp),%edi
mov    -0x48(%rbp),%rsi
mov    %rax,%rdx
mov    $0x0,%al
call   1040 <write@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jge    1209 <TrackDataOut+0xb9>
lea    0xe39(%rip),%rdi
mov    $0x0,%al
call   1030 <bailout@plt>
mov    $0xffffffff,%edi
call   1070 <exit@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TrackDataOut>:
push   %rbp
push   %rbx
sub    $0x28,%rsp
movaps %xmm0,%xmm2
mov    %edi,%ebp
movups 0xeac(%rip),%xmm0
movups %xmm0,0xe(%rsp)
movaps 0xe92(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0xea5(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
movaps %xmm1,%xmm0
movaps %xmm2,%xmm1
mov    $0x2,%al
call   1060 <sprintf@plt>
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1040 <write@plt>
test   %eax,%eax
js     11ae <TrackDataOut+0x5e>
add    $0x28,%rsp
pop    %rbx
pop    %rbp
ret
lea    0xe7c(%rip),%rdi
xor    %eax,%eax
call   1030 <bailout@plt>
mov    $0xffffffff,%edi
call   1070 <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 = getelementptr inbounds [30 x i8], [30 x i8]* %9, i64 0, i64 0
%19 = call i64 @strlen(i8* %18)
%20 = call i32 (i32, i8*, i64, ...) bitcast (i32 (...)* @write to i32 (i32, i8*, i64, ...)*)(i32 %16, i8* %17, i64 %19)
store i32 %20, i32* %7
%21 = load i32, i32* %7
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %3
%24 = 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
25: ; 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 i64 @strlen(i8* %5)
%8 = call i32 (i32, i8*, i64, ...) bitcast (i32 (...)* @write to i32 (i32, i8*, i64, ...)*)(i32 %0, i8* %5, i64 %7)
%9 = icmp slt i32 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %3
%11 = 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
12: ; preds = %3
ret void
}