#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int uint16_t;

/* Variables and functions */
uint16_t _kasumi_FI(uint16_t I, uint16_t skey) {
  static uint16_t S7[] = {
      54,  50,  62,  56,  22,  34,  94,  96, 38,  6,   63,  93,  2,   18,  123,
      33,  55,  113, 39,  114, 21,  67,  65, 12,  47,  73,  46,  27,  25,  111,
      124, 81,  53,  9,   121, 79,  52,  60, 58,  48,  101, 127, 40,  120, 104,
      70,  71,  43,  20,  122, 72,  61,  23, 109, 13,  100, 77,  1,   16,  7,
      82,  10,  105, 98,  117, 116, 76,  11, 89,  106, 0,   125, 118, 99,  86,
      69,  30,  57,  126, 87,  112, 51,  17, 5,   95,  14,  90,  84,  91,  8,
      35,  103, 32,  97,  28,  66,  102, 31, 26,  45,  75,  4,   85,  92,  37,
      74,  80,  49,  68,  29,  115, 44,  64, 107, 108, 24,  110, 83,  36,  78,
      42,  19,  15,  41,  88,  119, 59,  3};
  static uint16_t S9[] = {
      167, 239, 161, 379, 391, 334, 9,   338, 38,  226, 48,  358, 452, 385, 90,
      397, 183, 253, 147, 331, 415, 340, 51,  362, 306, 500, 262, 82,  216, 159,
      356, 177, 175, 241, 489, 37,  206, 17,  0,   333, 44,  254, 378, 58,  143,
      220, 81,  400, 95,  3,   315, 245, 54,  235, 218, 405, 472, 264, 172, 494,
      371, 290, 399, 76,  165, 197, 395, 121, 257, 480, 423, 212, 240, 28,  462,
      176, 406, 507, 288, 223, 501, 407, 249, 265, 89,  186, 221, 428, 164, 74,
      440, 196, 458, 421, 350, 163, 232, 158, 134, 354, 13,  250, 491, 142, 191,
      69,  193, 425, 152, 227, 366, 135, 344, 300, 276, 242, 437, 320, 113, 278,
      11,  243, 87,  317, 36,  93,  496, 27,  487, 446, 482, 41,  68,  156, 457,
      131, 326, 403, 339, 20,  39,  115, 442, 124, 475, 384, 508, 53,  112, 170,
      479, 151, 126, 169, 73,  268, 279, 321, 168, 364, 363, 292, 46,  499, 393,
      327, 324, 24,  456, 267, 157, 460, 488, 426, 309, 229, 439, 506, 208, 271,
      349, 401, 434, 236, 16,  209, 359, 52,  56,  120, 199, 277, 465, 416, 252,
      287, 246, 6,   83,  305, 420, 345, 153, 502, 65,  61,  244, 282, 173, 222,
      418, 67,  386, 368, 261, 101, 476, 291, 195, 430, 49,  79,  166, 330, 280,
      383, 373, 128, 382, 408, 155, 495, 367, 388, 274, 107, 459, 417, 62,  454,
      132, 225, 203, 316, 234, 14,  301, 91,  503, 286, 424, 211, 347, 307, 140,
      374, 35,  103, 125, 427, 19,  214, 453, 146, 498, 314, 444, 230, 256, 329,
      198, 285, 50,  116, 78,  410, 10,  205, 510, 171, 231, 45,  139, 467, 29,
      86,  505, 32,  72,  26,  342, 150, 313, 490, 431, 238, 411, 325, 149, 473,
      40,  119, 174, 355, 185, 233, 389, 71,  448, 273, 372, 55,  110, 178, 322,
      12,  469, 392, 369, 190, 1,   109, 375, 137, 181, 88,  75,  308, 260, 484,
      98,  272, 370, 275, 412, 111, 336, 318, 4,   504, 492, 259, 304, 77,  337,
      435, 21,  357, 303, 332, 483, 18,  47,  85,  25,  497, 474, 289, 100, 269,
      296, 478, 270, 106, 31,  104, 433, 84,  414, 486, 394, 96,  99,  154, 511,
      148, 413, 361, 409, 255, 162, 215, 302, 201, 266, 351, 343, 144, 441, 365,
      108, 298, 251, 34,  182, 509, 138, 210, 335, 133, 311, 352, 328, 141, 396,
      346, 123, 319, 450, 281, 429, 228, 443, 481, 92,  404, 485, 422, 248, 297,
      23,  213, 130, 466, 22,  217, 283, 70,  294, 360, 419, 127, 312, 377, 7,
      468, 194, 2,   117, 295, 463, 258, 224, 447, 247, 187, 80,  398, 284, 353,
      105, 390, 299, 471, 470, 184, 57,  200, 348, 63,  204, 188, 33,  451, 97,
      30,  310, 219, 94,  160, 129, 493, 64,  179, 263, 102, 189, 207, 114, 402,
      438, 477, 387, 122, 192, 42,  381, 5,   145, 118, 180, 449, 293, 323, 136,
      380, 43,  66,  60,  455, 341, 445, 202, 432, 8,   237, 15,  376, 436, 464,
      59,  461};
  uint16_t L, R;
  L = I >> 7;
  R = I & 0x7F;
  L = S9[L] ^ R;
  R = S7[R] ^ (L & 0x7F);
  L ^= (skey & 0x1FF);
  R ^= (skey >> 9);
  L = S9[L] ^ R;
  R = S7[R] ^ (L & 0x7F);
  return (R << 9) + L;
}


x86 assembly (clang, -O0):
<_kasumi_FI>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x7,%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%eax
and    $0x7f,%eax
mov    %eax,-0x10(%rbp)
movslq -0xc(%rbp),%rcx
lea    0x3109(%rip),%rax
mov    (%rax,%rcx,4),%eax
xor    -0x10(%rbp),%eax
mov    %eax,-0xc(%rbp)
movslq -0x10(%rbp),%rcx
lea    0x2ef5(%rip),%rax
mov    (%rax,%rcx,4),%eax
mov    -0xc(%rbp),%ecx
and    $0x7f,%ecx
xor    %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
and    $0x1ff,%eax
xor    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
sar    $0x9,%eax
xor    -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
movslq -0xc(%rbp),%rcx
lea    0x30c2(%rip),%rax
mov    (%rax,%rcx,4),%eax
xor    -0x10(%rbp),%eax
mov    %eax,-0xc(%rbp)
movslq -0x10(%rbp),%rcx
lea    0x2eae(%rip),%rax
mov    (%rax,%rcx,4),%eax
mov    -0xc(%rbp),%ecx
and    $0x7f,%ecx
xor    %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
shl    $0x9,%eax
add    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_kasumi_FI>:
mov    %edi,%eax
sar    $0x7,%eax
and    $0x7f,%edi
cltq
lea    0x10ef(%rip),%r8
mov    (%r8,%rax,4),%eax
xor    %edi,%eax
lea    0xee2(%rip),%rdx
mov    %esi,%ecx
and    $0x1ff,%ecx
xor    %eax,%ecx
and    $0x7f,%eax
sar    $0x9,%esi
xor    (%rdx,%rdi,4),%esi
xor    %eax,%esi
movslq %ecx,%rax
movslq %esi,%rcx
xor    (%r8,%rax,4),%esi
mov    %esi,%eax
and    $0x7f,%eax
xor    (%rdx,%rcx,4),%eax
shl    $0x9,%eax
add    %esi,%eax
ret

LLVM IR (-O0):
@_kasumi_FI.S7 = internal global [128 x i32] [i32 54, i32 50, i32 62, i32 56, i32 22, i32 34, i32 94, i32 96, i32 38, i32 6, i32 63, i32 93, i32 2, i32 18, i32 123, i32 33, i32 55, i32 113, i32 39, i32 114, i32 21, i32 67, i32 65, i32 12, i32 47, i32 73, i32 46, i32 27, i32 25, i32 111, i32 124, i32 81, i32 53, i32 9, i32 121, i32 79, i32 52, i32 60, i32 58, i32 48, i32 101, i32 127, i32 40, i32 120, i32 104, i32 70, i32 71, i32 43, i32 20, i32 122, i32 72, i32 61, i32 23, i32 109, i32 13, i32 100, i32 77, i32 1, i32 16, i32 7, i32 82, i32 10, i32 105, i32 98, i32 117, i32 116, i32 76, i32 11, i32 89, i32 106, i32 0, i32 125, i32 118, i32 99, i32 86, i32 69, i32 30, i32 57, i32 126, i32 87, i32 112, i32 51, i32 17, i32 5, i32 95, i32 14, i32 90, i32 84, i32 91, i32 8, i32 35, i32 103, i32 32, i32 97, i32 28, i32 66, i32 102, i32 31, i32 26, i32 45, i32 75, i32 4, i32 85, i32 92, i32 37, i32 74, i32 80, i32 49, i32 68, i32 29, i32 115, i32 44, i32 64, i32 107, i32 108, i32 24, i32 110, i32 83, i32 36, i32 78, i32 42, i32 19, i32 15, i32 41, i32 88, i32 119, i32 59, i32 3]
@_kasumi_FI.S9 = internal global [512 x i32] [i32 167, i32 239, i32 161, i32 379, i32 391, i32 334, i32 9, i32 338, i32 38, i32 226, i32 48, i32 358, i32 452, i32 385, i32 90, i32 397, i32 183, i32 253, i32 147, i32 331, i32 415, i32 340, i32 51, i32 362, i32 306, i32 500, i32 262, i32 82, i32 216, i32 159, i32 356, i32 177, i32 175, i32 241, i32 489, i32 37, i32 206, i32 17, i32 0, i32 333, i32 44, i32 254, i32 378, i32 58, i32 143, i32 220, i32 81, i32 400, i32 95, i32 3, i32 315, i32 245, i32 54, i32 235, i32 218, i32 405, i32 472, i32 264, i32 172, i32 494, i32 371, i32 290, i32 399, i32 76, i32 165, i32 197, i32 395, i32 121, i32 257, i32 480, i32 423, i32 212, i32 240, i32 28, i32 462, i32 176, i32 406, i32 507, i32 288, i32 223, i32 501, i32 407, i32 249, i32 265, i32 89, i32 186, i32 221, i32 428, i32 164, i32 74, i32 440, i32 196, i32 458, i32 421, i32 350, i32 163, i32 232, i32 158, i32 134, i32 354, i32 13, i32 250, i32 491, i32 142, i32 191, i32 69, i32 193, i32 425, i32 152, i32 227, i32 366, i32 135, i32 344, i32 300, i32 276, i32 242, i32 437, i32 320, i32 113, i32 278, i32 11, i32 243, i32 87, i32 317, i32 36, i32 93, i32 496, i32 27, i32 487, i32 446, i32 482, i32 41, i32 68, i32 156, i32 457, i32 131, i32 326, i32 403, i32 339, i32 20, i32 39, i32 115, i32 442, i32 124, i32 475, i32 384, i32 508, i32 53, i32 112, i32 170, i32 479, i32 151, i32 126, i32 169, i32 73, i32 268, i32 279, i32 321, i32 168, i32 364, i32 363, i32 292, i32 46, i32 499, i32 393, i32 327, i32 324, i32 24, i32 456, i32 267, i32 157, i32 460, i32 488, i32 426, i32 309, i32 229, i32 439, i32 506, i32 208, i32 271, i32 349, i32 401, i32 434, i32 236, i32 16, i32 209, i32 359, i32 52, i32 56, i32 120, i32 199, i32 277, i32 465, i32 416, i32 252, i32 287, i32 246, i32 6, i32 83, i32 305, i32 420, i32 345, i32 153, i32 502, i32 65, i32 61, i32 244, i32 282, i32 173, i32 222, i32 418, i32 67, i32 386, i32 368, i32 261, i32 101, i32 476, i32 291, i32 195, i32 430, i32 49, i32 79, i32 166, i32 330, i32 280, i32 383, i32 373, i32 128, i32 382, i32 408, i32 155, i32 495, i32 367, i32 388, i32 274, i32 107, i32 459, i32 417, i32 62, i32 454, i32 132, i32 225, i32 203, i32 316, i32 234, i32 14, i32 301, i32 91, i32 503, i32 286, i32 424, i32 211, i32 347, i32 307, i32 140, i32 374, i32 35, i32 103, i32 125, i32 427, i32 19, i32 214, i32 453, i32 146, i32 498, i32 314, i32 444, i32 230, i32 256, i32 329, i32 198, i32 285, i32 50, i32 116, i32 78, i32 410, i32 10, i32 205, i32 510, i32 171, i32 231, i32 45, i32 139, i32 467, i32 29, i32 86, i32 505, i32 32, i32 72, i32 26, i32 342, i32 150, i32 313, i32 490, i32 431, i32 238, i32 411, i32 325, i32 149, i32 473, i32 40, i32 119, i32 174, i32 355, i32 185, i32 233, i32 389, i32 71, i32 448, i32 273, i32 372, i32 55, i32 110, i32 178, i32 322, i32 12, i32 469, i32 392, i32 369, i32 190, i32 1, i32 109, i32 375, i32 137, i32 181, i32 88, i32 75, i32 308, i32 260, i32 484, i32 98, i32 272, i32 370, i32 275, i32 412, i32 111, i32 336, i32 318, i32 4, i32 504, i32 492, i32 259, i32 304, i32 77, i32 337, i32 435, i32 21, i32 357, i32 303, i32 332, i32 483, i32 18, i32 47, i32 85, i32 25, i32 497, i32 474, i32 289, i32 100, i32 269, i32 296, i32 478, i32 270, i32 106, i32 31, i32 104, i32 433, i32 84, i32 414, i32 486, i32 394, i32 96, i32 99, i32 154, i32 511, i32 148, i32 413, i32 361, i32 409, i32 255, i32 162, i32 215, i32 302, i32 201, i32 266, i32 351, i32 343, i32 144, i32 441, i32 365, i32 108, i32 298, i32 251, i32 34, i32 182, i32 509, i32 138, i32 210, i32 335, i32 133, i32 311, i32 352, i32 328, i32 141, i32 396, i32 346, i32 123, i32 319, i32 450, i32 281, i32 429, i32 228, i32 443, i32 481, i32 92, i32 404, i32 485, i32 422, i32 248, i32 297, i32 23, i32 213, i32 130, i32 466, i32 22, i32 217, i32 283, i32 70, i32 294, i32 360, i32 419, i32 127, i32 312, i32 377, i32 7, i32 468, i32 194, i32 2, i32 117, i32 295, i32 463, i32 258, i32 224, i32 447, i32 247, i32 187, i32 80, i32 398, i32 284, i32 353, i32 105, i32 390, i32 299, i32 471, i32 470, i32 184, i32 57, i32 200, i32 348, i32 63, i32 204, i32 188, i32 33, i32 451, i32 97, i32 30, i32 310, i32 219, i32 94, i32 160, i32 129, i32 493, i32 64, i32 179, i32 263, i32 102, i32 189, i32 207, i32 114, i32 402, i32 438, i32 477, i32 387, i32 122, i32 192, i32 42, i32 381, i32 5, i32 145, i32 118, i32 180, i32 449, i32 293, i32 323, i32 136, i32 380, i32 43, i32 66, i32 60, i32 455, i32 341, i32 445, i32 202, i32 432, i32 8, i32 237, i32 15, i32 376, i32 436, i32 464, i32 59, i32 461]
define i32 @_kasumi_FI(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%7 = load i32, i32* %3
%8 = ashr i32 %7, 7
store i32 %8, i32* %5
%9 = load i32, i32* %3
%10 = and i32 %9, 127
store i32 %10, i32* %6
%11 = load i32, i32* %5
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [512 x i32], [512 x i32]* @_kasumi_FI.S9, i64 0, i64 %12
%14 = load i32, i32* %13
%15 = load i32, i32* %6
%16 = xor i32 %14, %15
store i32 %16, i32* %5
%17 = load i32, i32* %6
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [128 x i32], [128 x i32]* @_kasumi_FI.S7, i64 0, i64 %18
%20 = load i32, i32* %19
%21 = load i32, i32* %5
%22 = and i32 %21, 127
%23 = xor i32 %20, %22
store i32 %23, i32* %6
%24 = load i32, i32* %4
%25 = and i32 %24, 511
%26 = load i32, i32* %5
%27 = xor i32 %26, %25
store i32 %27, i32* %5
%28 = load i32, i32* %4
%29 = ashr i32 %28, 9
%30 = load i32, i32* %6
%31 = xor i32 %30, %29
store i32 %31, i32* %6
%32 = load i32, i32* %5
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [512 x i32], [512 x i32]* @_kasumi_FI.S9, i64 0, i64 %33
%35 = load i32, i32* %34
%36 = load i32, i32* %6
%37 = xor i32 %35, %36
store i32 %37, i32* %5
%38 = load i32, i32* %6
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [128 x i32], [128 x i32]* @_kasumi_FI.S7, i64 0, i64 %39
%41 = load i32, i32* %40
%42 = load i32, i32* %5
%43 = and i32 %42, 127
%44 = xor i32 %41, %43
store i32 %44, i32* %6
%45 = load i32, i32* %6
%46 = shl i32 %45, 9
%47 = load i32, i32* %5
%48 = add nsw i32 %46, %47
ret i32 %48
}

LLVM IR (-O2):
@_kasumi_FI.S7 = internal unnamed_addr constant [128 x i32] [i32 54, i32 50, i32 62, i32 56, i32 22, i32 34, i32 94, i32 96, i32 38, i32 6, i32 63, i32 93, i32 2, i32 18, i32 123, i32 33, i32 55, i32 113, i32 39, i32 114, i32 21, i32 67, i32 65, i32 12, i32 47, i32 73, i32 46, i32 27, i32 25, i32 111, i32 124, i32 81, i32 53, i32 9, i32 121, i32 79, i32 52, i32 60, i32 58, i32 48, i32 101, i32 127, i32 40, i32 120, i32 104, i32 70, i32 71, i32 43, i32 20, i32 122, i32 72, i32 61, i32 23, i32 109, i32 13, i32 100, i32 77, i32 1, i32 16, i32 7, i32 82, i32 10, i32 105, i32 98, i32 117, i32 116, i32 76, i32 11, i32 89, i32 106, i32 0, i32 125, i32 118, i32 99, i32 86, i32 69, i32 30, i32 57, i32 126, i32 87, i32 112, i32 51, i32 17, i32 5, i32 95, i32 14, i32 90, i32 84, i32 91, i32 8, i32 35, i32 103, i32 32, i32 97, i32 28, i32 66, i32 102, i32 31, i32 26, i32 45, i32 75, i32 4, i32 85, i32 92, i32 37, i32 74, i32 80, i32 49, i32 68, i32 29, i32 115, i32 44, i32 64, i32 107, i32 108, i32 24, i32 110, i32 83, i32 36, i32 78, i32 42, i32 19, i32 15, i32 41, i32 88, i32 119, i32 59, i32 3]
@_kasumi_FI.S9 = internal unnamed_addr constant [512 x i32] [i32 167, i32 239, i32 161, i32 379, i32 391, i32 334, i32 9, i32 338, i32 38, i32 226, i32 48, i32 358, i32 452, i32 385, i32 90, i32 397, i32 183, i32 253, i32 147, i32 331, i32 415, i32 340, i32 51, i32 362, i32 306, i32 500, i32 262, i32 82, i32 216, i32 159, i32 356, i32 177, i32 175, i32 241, i32 489, i32 37, i32 206, i32 17, i32 0, i32 333, i32 44, i32 254, i32 378, i32 58, i32 143, i32 220, i32 81, i32 400, i32 95, i32 3, i32 315, i32 245, i32 54, i32 235, i32 218, i32 405, i32 472, i32 264, i32 172, i32 494, i32 371, i32 290, i32 399, i32 76, i32 165, i32 197, i32 395, i32 121, i32 257, i32 480, i32 423, i32 212, i32 240, i32 28, i32 462, i32 176, i32 406, i32 507, i32 288, i32 223, i32 501, i32 407, i32 249, i32 265, i32 89, i32 186, i32 221, i32 428, i32 164, i32 74, i32 440, i32 196, i32 458, i32 421, i32 350, i32 163, i32 232, i32 158, i32 134, i32 354, i32 13, i32 250, i32 491, i32 142, i32 191, i32 69, i32 193, i32 425, i32 152, i32 227, i32 366, i32 135, i32 344, i32 300, i32 276, i32 242, i32 437, i32 320, i32 113, i32 278, i32 11, i32 243, i32 87, i32 317, i32 36, i32 93, i32 496, i32 27, i32 487, i32 446, i32 482, i32 41, i32 68, i32 156, i32 457, i32 131, i32 326, i32 403, i32 339, i32 20, i32 39, i32 115, i32 442, i32 124, i32 475, i32 384, i32 508, i32 53, i32 112, i32 170, i32 479, i32 151, i32 126, i32 169, i32 73, i32 268, i32 279, i32 321, i32 168, i32 364, i32 363, i32 292, i32 46, i32 499, i32 393, i32 327, i32 324, i32 24, i32 456, i32 267, i32 157, i32 460, i32 488, i32 426, i32 309, i32 229, i32 439, i32 506, i32 208, i32 271, i32 349, i32 401, i32 434, i32 236, i32 16, i32 209, i32 359, i32 52, i32 56, i32 120, i32 199, i32 277, i32 465, i32 416, i32 252, i32 287, i32 246, i32 6, i32 83, i32 305, i32 420, i32 345, i32 153, i32 502, i32 65, i32 61, i32 244, i32 282, i32 173, i32 222, i32 418, i32 67, i32 386, i32 368, i32 261, i32 101, i32 476, i32 291, i32 195, i32 430, i32 49, i32 79, i32 166, i32 330, i32 280, i32 383, i32 373, i32 128, i32 382, i32 408, i32 155, i32 495, i32 367, i32 388, i32 274, i32 107, i32 459, i32 417, i32 62, i32 454, i32 132, i32 225, i32 203, i32 316, i32 234, i32 14, i32 301, i32 91, i32 503, i32 286, i32 424, i32 211, i32 347, i32 307, i32 140, i32 374, i32 35, i32 103, i32 125, i32 427, i32 19, i32 214, i32 453, i32 146, i32 498, i32 314, i32 444, i32 230, i32 256, i32 329, i32 198, i32 285, i32 50, i32 116, i32 78, i32 410, i32 10, i32 205, i32 510, i32 171, i32 231, i32 45, i32 139, i32 467, i32 29, i32 86, i32 505, i32 32, i32 72, i32 26, i32 342, i32 150, i32 313, i32 490, i32 431, i32 238, i32 411, i32 325, i32 149, i32 473, i32 40, i32 119, i32 174, i32 355, i32 185, i32 233, i32 389, i32 71, i32 448, i32 273, i32 372, i32 55, i32 110, i32 178, i32 322, i32 12, i32 469, i32 392, i32 369, i32 190, i32 1, i32 109, i32 375, i32 137, i32 181, i32 88, i32 75, i32 308, i32 260, i32 484, i32 98, i32 272, i32 370, i32 275, i32 412, i32 111, i32 336, i32 318, i32 4, i32 504, i32 492, i32 259, i32 304, i32 77, i32 337, i32 435, i32 21, i32 357, i32 303, i32 332, i32 483, i32 18, i32 47, i32 85, i32 25, i32 497, i32 474, i32 289, i32 100, i32 269, i32 296, i32 478, i32 270, i32 106, i32 31, i32 104, i32 433, i32 84, i32 414, i32 486, i32 394, i32 96, i32 99, i32 154, i32 511, i32 148, i32 413, i32 361, i32 409, i32 255, i32 162, i32 215, i32 302, i32 201, i32 266, i32 351, i32 343, i32 144, i32 441, i32 365, i32 108, i32 298, i32 251, i32 34, i32 182, i32 509, i32 138, i32 210, i32 335, i32 133, i32 311, i32 352, i32 328, i32 141, i32 396, i32 346, i32 123, i32 319, i32 450, i32 281, i32 429, i32 228, i32 443, i32 481, i32 92, i32 404, i32 485, i32 422, i32 248, i32 297, i32 23, i32 213, i32 130, i32 466, i32 22, i32 217, i32 283, i32 70, i32 294, i32 360, i32 419, i32 127, i32 312, i32 377, i32 7, i32 468, i32 194, i32 2, i32 117, i32 295, i32 463, i32 258, i32 224, i32 447, i32 247, i32 187, i32 80, i32 398, i32 284, i32 353, i32 105, i32 390, i32 299, i32 471, i32 470, i32 184, i32 57, i32 200, i32 348, i32 63, i32 204, i32 188, i32 33, i32 451, i32 97, i32 30, i32 310, i32 219, i32 94, i32 160, i32 129, i32 493, i32 64, i32 179, i32 263, i32 102, i32 189, i32 207, i32 114, i32 402, i32 438, i32 477, i32 387, i32 122, i32 192, i32 42, i32 381, i32 5, i32 145, i32 118, i32 180, i32 449, i32 293, i32 323, i32 136, i32 380, i32 43, i32 66, i32 60, i32 455, i32 341, i32 445, i32 202, i32 432, i32 8, i32 237, i32 15, i32 376, i32 436, i32 464, i32 59, i32 461]
define i32 @_kasumi_FI(i32 %0, i32 %1) {
%3 = ashr i32 %0, 7
%4 = and i32 %0, 127
%5 = sext i32 %3 to i64
%6 = getelementptr inbounds [512 x i32], [512 x i32]* @_kasumi_FI.S9, i64 0, i64 %5
%7 = load i32, i32* %6
%8 = xor i32 %7, %4
%9 = zext i32 %4 to i64
%10 = getelementptr inbounds [128 x i32], [128 x i32]* @_kasumi_FI.S7, i64 0, i64 %9
%11 = load i32, i32* %10
%12 = and i32 %8, 127
%13 = and i32 %1, 511
%14 = xor i32 %8, %13
%15 = ashr i32 %1, 9
%16 = xor i32 %11, %15
%17 = xor i32 %16, %12
%18 = sext i32 %14 to i64
%19 = getelementptr inbounds [512 x i32], [512 x i32]* @_kasumi_FI.S9, i64 0, i64 %18
%20 = load i32, i32* %19
%21 = xor i32 %17, %20
%22 = sext i32 %17 to i64
%23 = getelementptr inbounds [128 x i32], [128 x i32]* @_kasumi_FI.S7, i64 0, i64 %22
%24 = load i32, i32* %23
%25 = and i32 %21, 127
%26 = xor i32 %25, %24
%27 = shl i32 %26, 9
%28 = add nsw i32 %27, %21
ret i32 %28
}