int organizational_identifier(fascn)
char fascn[40];
{
  int temp;
  temp = toint(fascn[33]) * 1000;
  temp += toint(fascn[34]) * 100;
  temp += toint(fascn[35]) * 10;
  temp += toint(fascn[36]);
  return (temp);
}


x86 assembly (clang, -O0):
<organizational_identifier>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl 0x21(%rax),%edi
mov    $0x0,%al
call   1030 <toint@plt>
imul   $0x3e8,%eax,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movsbl 0x22(%rax),%edi
mov    $0x0,%al
call   1030 <toint@plt>
imul   $0x64,%eax,%eax
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movsbl 0x23(%rax),%edi
mov    $0x0,%al
call   1030 <toint@plt>
imul   $0xa,%eax,%eax
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movsbl 0x24(%rax),%edi
mov    $0x0,%al
call   1030 <toint@plt>
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<organizational_identifier>:
push   %rbp
push   %r14
push   %rbx
mov    %rdi,%rbx
movsbl 0x21(%rdi),%edi
xor    %eax,%eax
call   1030 <toint@plt>
imul   $0x3e8,%eax,%r14d
movsbl 0x22(%rbx),%edi
xor    %eax,%eax
call   1030 <toint@plt>
imul   $0x64,%eax,%ebp
add    %r14d,%ebp
movsbl 0x23(%rbx),%edi
xor    %eax,%eax
call   1030 <toint@plt>
lea    (%rax,%rax,4),%eax
lea    0x0(%rbp,%rax,2),%ebp
movsbl 0x24(%rbx),%edi
xor    %eax,%eax
call   1030 <toint@plt>
add    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @organizational_identifier(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = getelementptr inbounds i8, i8* %4, i64 33
%6 = load i8, i8* %5
%7 = sext i8 %6 to i32
%8 = call i32 (i32, ...) bitcast (i32 (...)* @toint to i32 (i32, ...)*)(i32 %7)
%9 = mul nsw i32 %8, 1000
store i32 %9, i32* %3
%10 = load i8*, i8** %2
%11 = getelementptr inbounds i8, i8* %10, i64 34
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = call i32 (i32, ...) bitcast (i32 (...)* @toint to i32 (i32, ...)*)(i32 %13)
%15 = mul nsw i32 %14, 100
%16 = load i32, i32* %3
%17 = add nsw i32 %16, %15
store i32 %17, i32* %3
%18 = load i8*, i8** %2
%19 = getelementptr inbounds i8, i8* %18, i64 35
%20 = load i8, i8* %19
%21 = sext i8 %20 to i32
%22 = call i32 (i32, ...) bitcast (i32 (...)* @toint to i32 (i32, ...)*)(i32 %21)
%23 = mul nsw i32 %22, 10
%24 = load i32, i32* %3
%25 = add nsw i32 %24, %23
store i32 %25, i32* %3
%26 = load i8*, i8** %2
%27 = getelementptr inbounds i8, i8* %26, i64 36
%28 = load i8, i8* %27
%29 = sext i8 %28 to i32
%30 = call i32 (i32, ...) bitcast (i32 (...)* @toint to i32 (i32, ...)*)(i32 %29)
%31 = load i32, i32* %3
%32 = add nsw i32 %31, %30
store i32 %32, i32* %3
%33 = load i32, i32* %3
ret i32 %33
}

LLVM IR (-O2):
define i32 @organizational_identifier(i8* nocapture %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 33
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = tail call i32 (i32, ...) bitcast (i32 (...)* @toint to i32 (i32, ...)*)(i32 %4)
%6 = mul nsw i32 %5, 1000
%7 = getelementptr inbounds i8, i8* %0, i64 34
%8 = load i8, i8* %7
%9 = sext i8 %8 to i32
%10 = tail call i32 (i32, ...) bitcast (i32 (...)* @toint to i32 (i32, ...)*)(i32 %9)
%11 = mul nsw i32 %10, 100
%12 = add nsw i32 %11, %6
%13 = getelementptr inbounds i8, i8* %0, i64 35
%14 = load i8, i8* %13
%15 = sext i8 %14 to i32
%16 = tail call i32 (i32, ...) bitcast (i32 (...)* @toint to i32 (i32, ...)*)(i32 %15)
%17 = mul nsw i32 %16, 10
%18 = add nsw i32 %12, %17
%19 = getelementptr inbounds i8, i8* %0, i64 36
%20 = load i8, i8* %19
%21 = sext i8 %20 to i32
%22 = tail call i32 (i32, ...) bitcast (i32 (...)* @toint to i32 (i32, ...)*)(i32 %21)
%23 = add nsw i32 %18, %22
ret i32 %23
}