int compose_final_consonants(int c1, int c2) {
  if (c1 == 1 && c2 == 19)
    return 3;
  if (c1 == 4 && c2 == 22)
    return 5;
  if (c1 == 4 && c2 == 27)
    return 6;
  if (c1 == 8 && c2 == 1)
    return 9;
  if (c1 == 8 && c2 == 16)
    return 10;
  if (c1 == 8 && c2 == 17)
    return 11;
  if (c1 == 8 && c2 == 19)
    return 12;
  if (c1 == 8 && c2 == 25)
    return 13;
  if (c1 == 8 && c2 == 26)
    return 14;
  if (c1 == 8 && c2 == 27)
    return 15;
  if (c1 == 17 && c2 == 19)
    return 18;
  return -1;
}


x86 assembly (clang, -O0):
<compose_final_consonants>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    112a <compose_final_consonants+0x2a>
cmpl   $0x13,-0xc(%rbp)
jne    112a <compose_final_consonants+0x2a>
movl   $0x3,-0x4(%rbp)
jmp    1271 <compose_final_consonants+0x171>
cmpl   $0x4,-0x8(%rbp)
jne    114a <compose_final_consonants+0x4a>
cmpl   $0x16,-0xc(%rbp)
jne    114a <compose_final_consonants+0x4a>
movl   $0x5,-0x4(%rbp)
jmp    1271 <compose_final_consonants+0x171>
cmpl   $0x4,-0x8(%rbp)
jne    116a <compose_final_consonants+0x6a>
cmpl   $0x1b,-0xc(%rbp)
jne    116a <compose_final_consonants+0x6a>
movl   $0x6,-0x4(%rbp)
jmp    1271 <compose_final_consonants+0x171>
cmpl   $0x8,-0x8(%rbp)
jne    118a <compose_final_consonants+0x8a>
cmpl   $0x1,-0xc(%rbp)
jne    118a <compose_final_consonants+0x8a>
movl   $0x9,-0x4(%rbp)
jmp    1271 <compose_final_consonants+0x171>
cmpl   $0x8,-0x8(%rbp)
jne    11aa <compose_final_consonants+0xaa>
cmpl   $0x10,-0xc(%rbp)
jne    11aa <compose_final_consonants+0xaa>
movl   $0xa,-0x4(%rbp)
jmp    1271 <compose_final_consonants+0x171>
cmpl   $0x8,-0x8(%rbp)
jne    11ca <compose_final_consonants+0xca>
cmpl   $0x11,-0xc(%rbp)
jne    11ca <compose_final_consonants+0xca>
movl   $0xb,-0x4(%rbp)
jmp    1271 <compose_final_consonants+0x171>
cmpl   $0x8,-0x8(%rbp)
jne    11ea <compose_final_consonants+0xea>
cmpl   $0x13,-0xc(%rbp)
jne    11ea <compose_final_consonants+0xea>
movl   $0xc,-0x4(%rbp)
jmp    1271 <compose_final_consonants+0x171>
cmpl   $0x8,-0x8(%rbp)
jne    120a <compose_final_consonants+0x10a>
cmpl   $0x19,-0xc(%rbp)
jne    120a <compose_final_consonants+0x10a>
movl   $0xd,-0x4(%rbp)
jmp    1271 <compose_final_consonants+0x171>
cmpl   $0x8,-0x8(%rbp)
jne    122a <compose_final_consonants+0x12a>
cmpl   $0x1a,-0xc(%rbp)
jne    122a <compose_final_consonants+0x12a>
movl   $0xe,-0x4(%rbp)
jmp    1271 <compose_final_consonants+0x171>
cmpl   $0x8,-0x8(%rbp)
jne    124a <compose_final_consonants+0x14a>
cmpl   $0x1b,-0xc(%rbp)
jne    124a <compose_final_consonants+0x14a>
movl   $0xf,-0x4(%rbp)
jmp    1271 <compose_final_consonants+0x171>
cmpl   $0x11,-0x8(%rbp)
jne    126a <compose_final_consonants+0x16a>
cmpl   $0x13,-0xc(%rbp)
jne    126a <compose_final_consonants+0x16a>
movl   $0x12,-0x4(%rbp)
jmp    1271 <compose_final_consonants+0x171>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<compose_final_consonants>:
cmp    $0x1,%edi
jne    1110 <compose_final_consonants+0x10>
mov    $0x3,%eax
cmp    $0x13,%esi
jne    1110 <compose_final_consonants+0x10>
ret
cmp    $0x4,%edi
jne    111f <compose_final_consonants+0x1f>
mov    $0x5,%eax
cmp    $0x16,%esi
je     110f <compose_final_consonants+0xf>
cmp    $0x4,%edi
jne    112e <compose_final_consonants+0x2e>
mov    $0x6,%eax
cmp    $0x1b,%esi
je     110f <compose_final_consonants+0xf>
cmp    $0x8,%edi
jne    113d <compose_final_consonants+0x3d>
mov    $0x9,%eax
cmp    $0x1,%esi
je     110f <compose_final_consonants+0xf>
cmp    $0x8,%edi
jne    114c <compose_final_consonants+0x4c>
mov    $0xa,%eax
cmp    $0x10,%esi
je     110f <compose_final_consonants+0xf>
cmp    $0x8,%edi
jne    115b <compose_final_consonants+0x5b>
mov    $0xb,%eax
cmp    $0x11,%esi
je     110f <compose_final_consonants+0xf>
cmp    $0x8,%edi
jne    116a <compose_final_consonants+0x6a>
mov    $0xc,%eax
cmp    $0x13,%esi
je     110f <compose_final_consonants+0xf>
cmp    $0x8,%edi
jne    1179 <compose_final_consonants+0x79>
mov    $0xd,%eax
cmp    $0x19,%esi
je     110f <compose_final_consonants+0xf>
cmp    $0x8,%edi
jne    1188 <compose_final_consonants+0x88>
mov    $0xe,%eax
cmp    $0x1a,%esi
je     110f <compose_final_consonants+0xf>
cmp    $0x8,%edi
jne    119b <compose_final_consonants+0x9b>
mov    $0xf,%eax
cmp    $0x1b,%esi
je     110f <compose_final_consonants+0xf>
xor    $0x13,%esi
xor    $0x11,%edi
or     %esi,%edi
mov    $0x12,%ecx
mov    $0xffffffff,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @compose_final_consonants(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%6 = load i32, i32* %4
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load i32, i32* %5
%10 = icmp eq i32 %9, 19
br i1 %10, label %11, label %12
11: ; preds = %8
store i32 3, i32* %3
br label %83
12: ; preds = %8, %2
%13 = load i32, i32* %4
%14 = icmp eq i32 %13, 4
br i1 %14, label %15, label %19
15: ; preds = %12
%16 = load i32, i32* %5
%17 = icmp eq i32 %16, 22
br i1 %17, label %18, label %19
18: ; preds = %15
store i32 5, i32* %3
br label %83
19: ; preds = %15, %12
%20 = load i32, i32* %4
%21 = icmp eq i32 %20, 4
br i1 %21, label %22, label %26
22: ; preds = %19
%23 = load i32, i32* %5
%24 = icmp eq i32 %23, 27
br i1 %24, label %25, label %26
25: ; preds = %22
store i32 6, i32* %3
br label %83
26: ; preds = %22, %19
%27 = load i32, i32* %4
%28 = icmp eq i32 %27, 8
br i1 %28, label %29, label %33
29: ; preds = %26
%30 = load i32, i32* %5
%31 = icmp eq i32 %30, 1
br i1 %31, label %32, label %33
32: ; preds = %29
store i32 9, i32* %3
br label %83
33: ; preds = %29, %26
%34 = load i32, i32* %4
%35 = icmp eq i32 %34, 8
br i1 %35, label %36, label %40
36: ; preds = %33
%37 = load i32, i32* %5
%38 = icmp eq i32 %37, 16
br i1 %38, label %39, label %40
39: ; preds = %36
store i32 10, i32* %3
br label %83
40: ; preds = %36, %33
%41 = load i32, i32* %4
%42 = icmp eq i32 %41, 8
br i1 %42, label %43, label %47
43: ; preds = %40
%44 = load i32, i32* %5
%45 = icmp eq i32 %44, 17
br i1 %45, label %46, label %47
46: ; preds = %43
store i32 11, i32* %3
br label %83
47: ; preds = %43, %40
%48 = load i32, i32* %4
%49 = icmp eq i32 %48, 8
br i1 %49, label %50, label %54
50: ; preds = %47
%51 = load i32, i32* %5
%52 = icmp eq i32 %51, 19
br i1 %52, label %53, label %54
53: ; preds = %50
store i32 12, i32* %3
br label %83
54: ; preds = %50, %47
%55 = load i32, i32* %4
%56 = icmp eq i32 %55, 8
br i1 %56, label %57, label %61
57: ; preds = %54
%58 = load i32, i32* %5
%59 = icmp eq i32 %58, 25
br i1 %59, label %60, label %61
60: ; preds = %57
store i32 13, i32* %3
br label %83
61: ; preds = %57, %54
%62 = load i32, i32* %4
%63 = icmp eq i32 %62, 8
br i1 %63, label %64, label %68
64: ; preds = %61
%65 = load i32, i32* %5
%66 = icmp eq i32 %65, 26
br i1 %66, label %67, label %68
67: ; preds = %64
store i32 14, i32* %3
br label %83
68: ; preds = %64, %61
%69 = load i32, i32* %4
%70 = icmp eq i32 %69, 8
br i1 %70, label %71, label %75
71: ; preds = %68
%72 = load i32, i32* %5
%73 = icmp eq i32 %72, 27
br i1 %73, label %74, label %75
74: ; preds = %71
store i32 15, i32* %3
br label %83
75: ; preds = %71, %68
%76 = load i32, i32* %4
%77 = icmp eq i32 %76, 17
br i1 %77, label %78, label %82
78: ; preds = %75
%79 = load i32, i32* %5
%80 = icmp eq i32 %79, 19
br i1 %80, label %81, label %82
81: ; preds = %78
store i32 18, i32* %3
br label %83
82: ; preds = %78, %75
store i32 -1, i32* %3
br label %83
83: ; preds = %82, %81, %74, %67, %60, %53, %46, %39, %32, %25, %18, %11
%84 = load i32, i32* %3
ret i32 %84
}

LLVM IR (-O2):
define i32 @compose_final_consonants(i32 %0, i32 %1) {
%3 = icmp eq i32 %0, 1
%4 = icmp eq i32 %1, 19
%5 = and i1 %3, %4
br i1 %5, label %37, label %6
6: ; preds = %2
%7 = icmp eq i32 %0, 4
%8 = icmp eq i32 %1, 22
%9 = and i1 %7, %8
br i1 %9, label %37, label %10
10: ; preds = %6
%11 = icmp eq i32 %1, 27
%12 = and i1 %7, %11
br i1 %12, label %37, label %13
13: ; preds = %10
%14 = icmp eq i32 %0, 8
%15 = icmp eq i32 %1, 1
%16 = and i1 %14, %15
br i1 %16, label %37, label %17
17: ; preds = %13
%18 = icmp eq i32 %1, 16
%19 = and i1 %14, %18
br i1 %19, label %37, label %20
20: ; preds = %17
%21 = icmp eq i32 %1, 17
%22 = and i1 %14, %21
br i1 %22, label %37, label %23
23: ; preds = %20
%24 = and i1 %14, %4
br i1 %24, label %37, label %25
25: ; preds = %23
%26 = icmp eq i32 %1, 25
%27 = and i1 %14, %26
br i1 %27, label %37, label %28
28: ; preds = %25
%29 = icmp eq i32 %1, 26
%30 = and i1 %14, %29
br i1 %30, label %37, label %31
31: ; preds = %28
%32 = and i1 %14, %11
br i1 %32, label %37, label %33
33: ; preds = %31
%34 = icmp eq i32 %0, 17
%35 = and i1 %34, %4
%36 = select i1 %35, i32 18, i32 -1
br label %37
37: ; preds = %33, %31, %28, %25, %23, %20, %17, %13, %10, %6, %2
%38 = phi i32 [ 3, %2 ], [ 5, %6 ], [ 6, %10 ], [ 9, %13 ], [ 10, %17 ], [ 11, %20 ], [ 12, %23 ], [ 13, %25 ], [ 14, %28 ], [ 15, %31 ], [ %36, %33 ]
ret i32 %38
}