void ProcessUPRFile(fileName, filePath) char *fileName;
char *filePath;
{
  int len;
  if (fileName[0] == '.')
    return;
  len = strlen(fileName);
  if (len < 4)
    return;
  if (strcmp(".upr", fileName + len - 4) != 0)
    return;
  PreprocessResourceDirectory(filePath);
}


x86 assembly (clang, -O0):
<ProcessUPRFile>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2e,%eax
jne    1155 <ProcessUPRFile+0x25>
jmp    11a4 <ProcessUPRFile+0x74>
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x4,-0x14(%rbp)
jge    1170 <ProcessUPRFile+0x40>
jmp    11a4 <ProcessUPRFile+0x74>
mov    -0x8(%rbp),%rsi
movslq -0x14(%rbp),%rax
add    %rax,%rsi
add    $0xfffffffffffffffc,%rsi
lea    0xe7a(%rip),%rdi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
je     1199 <ProcessUPRFile+0x69>
jmp    11a4 <ProcessUPRFile+0x74>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1040 <PreprocessResourceDirectory@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ProcessUPRFile>:
push   %r14
push   %rbx
push   %rax
cmpb   $0x2e,(%rdi)
je     1163 <ProcessUPRFile+0x33>
mov    %rsi,%r14
mov    %rdi,%rbx
call   1030 <strlen@plt>
cmp    $0x4,%eax
jl     1163 <ProcessUPRFile+0x33>
cltq
lea    (%rbx,%rax,1),%rsi
add    $0xfffffffffffffffc,%rsi
lea    0xea6(%rip),%rdi
call   1050 <strcmp@plt>
test   %eax,%eax
je     116b <ProcessUPRFile+0x3b>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
mov    %r14,%rdi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <PreprocessResourceDirectory@plt>

LLVM IR (-O0):
@.str = [5 x i8] c".upr\00"
define void @ProcessUPRFile(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
store i8* %0, i8** %3
store i8* %1, i8** %4
%6 = load i8*, i8** %3
%7 = getelementptr inbounds i8, i8* %6, i64 0
%8 = load i8, i8* %7
%9 = sext i8 %8 to i32
%10 = icmp eq i32 %9, 46
br i1 %10, label %11, label %12
11: ; preds = %2
br label %31
12: ; preds = %2
%13 = load i8*, i8** %3
%14 = call i64 @strlen(i8* %13)
%15 = trunc i64 %14 to i32
store i32 %15, i32* %5
%16 = load i32, i32* %5
%17 = icmp slt i32 %16, 4
br i1 %17, label %18, label %19
18: ; preds = %12
br label %31
19: ; preds = %12
%20 = load i8*, i8** %3
%21 = load i32, i32* %5
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, i8* %20, i64 %22
%24 = getelementptr inbounds i8, i8* %23, i64 -4
%25 = call i32 @strcmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %24)
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %19
br label %31
28: ; preds = %19
%29 = load i8*, i8** %4
%30 = call i32 (i8*, ...) bitcast (i32 (...)* @PreprocessResourceDirectory to i32 (i8*, ...)*)(i8* %29)
br label %31
31: ; preds = %28, %27, %18, %11
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c".upr\00"
define void @ProcessUPRFile(i8* nocapture %0, i8* %1) {
%3 = load i8, i8* %0
%4 = icmp eq i8 %3, 46
br i1 %4, label %18, label %5
5: ; preds = %2
%6 = tail call i64 @strlen(i8* %0)
%7 = trunc i64 %6 to i32
%8 = icmp slt i32 %7, 4
br i1 %8, label %18, label %9
9: ; preds = %5
%10 = shl i64 %6, 32
%11 = ashr exact i64 %10, 32
%12 = getelementptr inbounds i8, i8* %0, i64 %11
%13 = getelementptr inbounds i8, i8* %12, i64 -4
%14 = tail call i32 @strcmp(i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %13)
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %9
%17 = tail call i32 (i8*, ...) bitcast (i32 (...)* @PreprocessResourceDirectory to i32 (i8*, ...)*)(i8* %1)
br label %18
18: ; preds = %9, %5, %2, %16
ret void
}