void LoadDTable(array, table) int *array;
struct Modified_Decoder_Huffman *table;
{
  static char RoutineName[] = "LoadDTable";
  while (*array >= 0) {
    AddCode(array[1], array[2], array[0], table);
    array += 3;
  }
}


x86 assembly (clang, -O0):
<LoadDTable>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmpl   $0x0,(%rax)
jl     115d <LoadDTable+0x4d>
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%esi
mov    -0x8(%rbp),%rax
mov    (%rax),%edx
mov    -0x10(%rbp),%rcx
mov    $0x0,%al
call   1030 <AddCode@plt>
mov    -0x8(%rbp),%rax
add    $0xc,%rax
mov    %rax,-0x8(%rbp)
jmp    1120 <LoadDTable+0x10>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<LoadDTable>:
push   %r14
push   %rbx
push   %rax
mov    (%rdi),%edx
test   %edx,%edx
js     114a <LoadDTable+0x3a>
mov    %rsi,%r14
mov    %rdi,%rbx
add    $0xc,%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    -0x8(%rbx),%edi
mov    -0x4(%rbx),%esi
mov    %r14,%rcx
xor    %eax,%eax
call   1030 <AddCode@plt>
mov    (%rbx),%edx
add    $0xc,%rbx
test   %edx,%edx
jns    1130 <LoadDTable+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.Modified_Decoder_Huffman = type opaque
@LoadDTable.RoutineName = internal global [11 x i8] c"LoadDTable\00"
define void @LoadDTable(i32* %0, %struct.Modified_Decoder_Huffman* %1) {
%3 = alloca i32*
%4 = alloca %struct.Modified_Decoder_Huffman*
store i32* %0, i32** %3
store %struct.Modified_Decoder_Huffman* %1, %struct.Modified_Decoder_Huffman** %4
br label %5
5: ; preds = %9, %2
%6 = load i32*, i32** %3
%7 = load i32, i32* %6
%8 = icmp sge i32 %7, 0
br i1 %8, label %9, label %23
9: ; preds = %5
%10 = load i32*, i32** %3
%11 = getelementptr inbounds i32, i32* %10, i64 1
%12 = load i32, i32* %11
%13 = load i32*, i32** %3
%14 = getelementptr inbounds i32, i32* %13, i64 2
%15 = load i32, i32* %14
%16 = load i32*, i32** %3
%17 = getelementptr inbounds i32, i32* %16, i64 0
%18 = load i32, i32* %17
%19 = load %struct.Modified_Decoder_Huffman*, %struct.Modified_Decoder_Huffman** %4
%20 = call i32 (i32, i32, i32, %struct.Modified_Decoder_Huffman*, ...) bitcast (i32 (...)* @AddCode to i32 (i32, i32, i32, %struct.Modified_Decoder_Huffman*, ...)*)(i32 %12, i32 %15, i32 %18, %struct.Modified_Decoder_Huffman* %19)
%21 = load i32*, i32** %3
%22 = getelementptr inbounds i32, i32* %21, i64 3
store i32* %22, i32** %3
br label %5
23: ; preds = %5
ret void
}

LLVM IR (-O2):
%struct.Modified_Decoder_Huffman = type opaque
define void @LoadDTable(i32* nocapture %0, %struct.Modified_Decoder_Huffman* %1) {
%3 = load i32, i32* %0
%4 = icmp sgt i32 %3, -1
br i1 %4, label %5, label %16
5: ; preds = %2, %5
%6 = phi i32 [ %14, %5 ], [ %3, %2 ]
%7 = phi i32* [ %13, %5 ], [ %0, %2 ]
%8 = getelementptr inbounds i32, i32* %7, i64 1
%9 = load i32, i32* %8
%10 = getelementptr inbounds i32, i32* %7, i64 2
%11 = load i32, i32* %10
%12 = tail call i32 (i32, i32, i32, %struct.Modified_Decoder_Huffman*, ...) bitcast (i32 (...)* @AddCode to i32 (i32, i32, i32, %struct.Modified_Decoder_Huffman*, ...)*)(i32 %9, i32 %11, i32 %6, %struct.Modified_Decoder_Huffman* %1)
%13 = getelementptr inbounds i32, i32* %7, i64 3
%14 = load i32, i32* %13
%15 = icmp sgt i32 %14, -1
br i1 %15, label %5, label %16
16: ; preds = %5, %2
ret void
}