char *_nl_find_language(name) const char *name;
{
  while (name[0] != '\0' && name[0] != '_' && name[0] != '@' &&
         name[0] != '+' && name[0] != ',')
    ++name;
  return (char *)name;
}


x86 assembly (clang, -O0):
<_nl_find_language>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x9(%rbp)
je     116c <_nl_find_language+0x6c>
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x5f,%ecx
mov    %al,-0x9(%rbp)
je     116c <_nl_find_language+0x6c>
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x40,%ecx
mov    %al,-0x9(%rbp)
je     116c <_nl_find_language+0x6c>
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x2b,%ecx
mov    %al,-0x9(%rbp)
je     116c <_nl_find_language+0x6c>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2c,%eax
setne  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
test   $0x1,%al
jne    117c <_nl_find_language+0x7c>
jmp    118d <_nl_find_language+0x8d>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1108 <_nl_find_language+0x8>
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_nl_find_language>:
mov    %rdi,%rax
movabs $0x10000000200003,%rcx
nopl   (%rax)
movzbl (%rax),%edx
lea    -0x2b(%rdx),%esi
cmp    $0x34,%sil
ja     1126 <_nl_find_language+0x26>
movzbl %sil,%esi
bt     %rsi,%rcx
jb     1130 <_nl_find_language+0x30>
test   %dl,%dl
je     1130 <_nl_find_language+0x30>
add    $0x1,%rax
jmp    1110 <_nl_find_language+0x10>
ret

LLVM IR (-O0):
define i8* @_nl_find_language(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %35, %1
%4 = load i8*, i8** %2
%5 = getelementptr inbounds i8, i8* %4, i64 0
%6 = load i8, i8* %5
%7 = sext i8 %6 to i32
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %33
9: ; preds = %3
%10 = load i8*, i8** %2
%11 = getelementptr inbounds i8, i8* %10, i64 0
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 95
br i1 %14, label %15, label %33
15: ; preds = %9
%16 = load i8*, i8** %2
%17 = getelementptr inbounds i8, i8* %16, i64 0
%18 = load i8, i8* %17
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 64
br i1 %20, label %21, label %33
21: ; preds = %15
%22 = load i8*, i8** %2
%23 = getelementptr inbounds i8, i8* %22, i64 0
%24 = load i8, i8* %23
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 43
br i1 %26, label %27, label %33
27: ; preds = %21
%28 = load i8*, i8** %2
%29 = getelementptr inbounds i8, i8* %28, i64 0
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %31, 44
br label %33
33: ; preds = %27, %21, %15, %9, %3
%34 = phi i1 [ false, %21 ], [ false, %15 ], [ false, %9 ], [ false, %3 ], [ %32, %27 ]
br i1 %34, label %35, label %38
35: ; preds = %33
%36 = load i8*, i8** %2
%37 = getelementptr inbounds i8, i8* %36, i32 1
store i8* %37, i8** %2
br label %3
38: ; preds = %33
%39 = load i8*, i8** %2
ret i8* %39
}

LLVM IR (-O2):
define i8* @_nl_find_language(i8* %0) {
br label %2
2: ; preds = %5, %1
%3 = phi i8* [ %0, %1 ], [ %6, %5 ]
%4 = load i8, i8* %3
switch i8 %4, label %5 [
i8 0, label %7
i8 95, label %7
i8 64, label %7
i8 43, label %7
i8 44, label %7
]
5: ; preds = %2
%6 = getelementptr inbounds i8, i8* %3, i64 1
br label %2
7: ; preds = %2, %2, %2, %2, %2
ret i8* %3
}