void cryptum(qual, ate) long qual, ate;
{
  long x;
  unsigned char buf[32], senha[32];
  for (x = qual; x <= ate; x++) {
    sprintf((char *)buf, "%06ld", x);
    printf("%s  -  ", buf);
    encrypt(buf, senha);
    printf("%s\n", senha);
  }
}


x86 assembly (clang, -O0):
<cryptum>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmp    -0x10(%rbp),%rax
jg     11b0 <cryptum+0x80>
lea    -0x40(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xe9b(%rip),%rsi
mov    $0x0,%al
call   1050 <sprintf@plt>
lea    -0x40(%rbp),%rsi
lea    0xe8f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x40(%rbp),%rdi
lea    -0x60(%rbp),%rsi
mov    $0x0,%al
call   1040 <encrypt@plt>
lea    -0x60(%rbp),%rsi
lea    0xe76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1148 <cryptum+0x18>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cryptum>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
cmp    %rsi,%rdi
jg     11bb <cryptum+0x7b>
mov    %rsi,%r14
mov    %rdi,%rbx
add    $0x1,%r14
lea    0xe9c(%rip),%r15
lea    0x20(%rsp),%r12
lea    0xe96(%rip),%r13
mov    %rsp,%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r12,%rdi
mov    %r15,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <sprintf@plt>
mov    %r13,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <encrypt@plt>
mov    %rbp,%rdi
call   1030 <puts@plt>
add    $0x1,%rbx
cmp    %rbx,%r14
jne    1180 <cryptum+0x40>
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%06ld\00"
@.str.1 = [8 x i8] c"%s - \00"
@.str.2 = [4 x i8] c"%s\0A\00"
define void @cryptum(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
%6 = alloca [32 x i8]
%7 = alloca [32 x i8]
store i64 %0, i64* %3
store i64 %1, i64* %4
%8 = load i64, i64* %3
store i64 %8, i64* %5
br label %9
9: ; preds = %24, %2
%10 = load i64, i64* %5
%11 = load i64, i64* %4
%12 = icmp sle i64 %10, %11
br i1 %12, label %13, label %27
13: ; preds = %9
%14 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 0
%15 = load i64, i64* %5
%16 = call i32 (i8*, i8*, ...) @sprintf(i8* %14, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i64 %15)
%17 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 0
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %17)
%19 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 0
%20 = getelementptr inbounds [32 x i8], [32 x i8]* %7, i64 0, i64 0
%21 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @encrypt to i32 (i8*, i8*, ...)*)(i8* %19, i8* %20)
%22 = getelementptr inbounds [32 x i8], [32 x i8]* %7, i64 0, i64 0
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %22)
br label %24
24: ; preds = %13
%25 = load i64, i64* %5
%26 = add nsw i64 %25, 1
store i64 %26, i64* %5
br label %9
27: ; preds = %9
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"%06ld\00"
@.str.1 = [8 x i8] c"%s - \00"
define void @cryptum(i64 %0, i64 %1) {
%3 = alloca [32 x i8]
%4 = alloca [32 x i8]
%5 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 0
%7 = icmp sgt i64 %0, %1
br i1 %7, label %16, label %8
8: ; preds = %2, %8
%9 = phi i64 [ %14, %8 ], [ %0, %2 ]
%10 = call i32 (i8*, i8*, ...) @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i64 %9)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%12 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @encrypt to i32 (i8*, i8*, ...)*)(i8* %5, i8* %6)
%13 = call i32 @puts(i8* %6)
%14 = add i64 %9, 1
%15 = icmp eq i64 %9, %1
br i1 %15, label %16, label %8
16: ; preds = %8, %2
ret void
}