#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 */

/* Variables and functions */
unsigned char *analysis_or_forecast_generating_process_identifier_location(
    unsigned char **sec) {
  int p, center;
  p = (((int)((sec[4][7] << 8) + (sec[4][8]))));
  center = ((int)((sec[1][5] << 8) + (sec[1][6])));
  if ((center == 34) || (center == 35)) {
    switch (p) {
    case 50000:
    case 50008:
    case 50009:
    case 50010:
    case 50011:
      return sec[4] + 13;
      break;
    default:
      break;
    }
  }
  if (p <= 15 || (p >= 32 && p <= 34) || p == 60 || p == 61 || p == 1000 ||
      p == 1001 || p == 1002 || p == 1100 || p == 1101)
    return sec[4] + 13;
  if ((p >= 40 && p <= 43))
    return sec[4] + 15;
  if (p >= 44 && p <= 47)
    return sec[4] + 26;
  if (p == 48)
    return sec[4] + 37;
  if (p == 52)
    return sec[4] + 16;
  if (p >= 70 && p <= 73)
    return sec[4] + 18;
  return NULL;
}


x86 assembly (clang, -O0):
<analysis_or_forecast_generating_process_identifier_location>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rax
movzbl 0x7(%rax),%eax
shl    $0x8,%eax
mov    -0x10(%rbp),%rcx
mov    0x20(%rcx),%rcx
movzbl 0x8(%rcx),%ecx
add    %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
movzbl 0x5(%rax),%eax
shl    $0x8,%eax
mov    -0x10(%rbp),%rcx
mov    0x8(%rcx),%rcx
movzbl 0x6(%rcx),%ecx
add    %ecx,%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x22,-0x18(%rbp)
je     115c <analysis_or_forecast_generating_process_identifier_location+0x5c>
cmpl   $0x23,-0x18(%rbp)
jne    11a7 <analysis_or_forecast_generating_process_identifier_location+0xa7>
mov    -0x14(%rbp),%eax
mov    %eax,-0x1c(%rbp)
sub    $0xc350,%eax
je     1188 <analysis_or_forecast_generating_process_identifier_location+0x88>
jmp    1172 <analysis_or_forecast_generating_process_identifier_location+0x72>
mov    -0x1c(%rbp),%eax
add    $0xffff3ca8,%eax
sub    $0x3,%eax
ja     119d <analysis_or_forecast_generating_process_identifier_location+0x9d>
jmp    1188 <analysis_or_forecast_generating_process_identifier_location+0x88>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rax
add    $0xd,%rax
mov    %rax,-0x8(%rbp)
jmp    12f0 <analysis_or_forecast_generating_process_identifier_location+0x1f0>
jmp    11a2 <analysis_or_forecast_generating_process_identifier_location+0xa2>
jmp    11a7 <analysis_or_forecast_generating_process_identifier_location+0xa7>
cmpl   $0xf,-0x14(%rbp)
jle    121a <analysis_or_forecast_generating_process_identifier_location+0x11a>
cmpl   $0x20,-0x14(%rbp)
jl     11c5 <analysis_or_forecast_generating_process_identifier_location+0xc5>
cmpl   $0x22,-0x14(%rbp)
jle    121a <analysis_or_forecast_generating_process_identifier_location+0x11a>
cmpl   $0x3c,-0x14(%rbp)
je     121a <analysis_or_forecast_generating_process_identifier_location+0x11a>
cmpl   $0x3d,-0x14(%rbp)
je     121a <analysis_or_forecast_generating_process_identifier_location+0x11a>
cmpl   $0x3e8,-0x14(%rbp)
je     121a <analysis_or_forecast_generating_process_identifier_location+0x11a>
cmpl   $0x3e9,-0x14(%rbp)
je     121a <analysis_or_forecast_generating_process_identifier_location+0x11a>
cmpl   $0x3ea,-0x14(%rbp)
je     121a <analysis_or_forecast_generating_process_identifier_location+0x11a>
cmpl   $0x44c,-0x14(%rbp)
je     121a <analysis_or_forecast_generating_process_identifier_location+0x11a>
cmpl   $0x44d,-0x14(%rbp)
jne    122f <analysis_or_forecast_generating_process_identifier_location+0x12f>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rax
add    $0xd,%rax
mov    %rax,-0x8(%rbp)
jmp    12f0 <analysis_or_forecast_generating_process_identifier_location+0x1f0>
cmpl   $0x28,-0x14(%rbp)
jl     1258 <analysis_or_forecast_generating_process_identifier_location+0x158>
cmpl   $0x2b,-0x14(%rbp)
jg     1258 <analysis_or_forecast_generating_process_identifier_location+0x158>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rax
add    $0xf,%rax
mov    %rax,-0x8(%rbp)
jmp    12f0 <analysis_or_forecast_generating_process_identifier_location+0x1f0>
cmpl   $0x2c,-0x14(%rbp)
jl     1281 <analysis_or_forecast_generating_process_identifier_location+0x181>
cmpl   $0x2f,-0x14(%rbp)
jg     1281 <analysis_or_forecast_generating_process_identifier_location+0x181>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rax
add    $0x1a,%rax
mov    %rax,-0x8(%rbp)
jmp    12f0 <analysis_or_forecast_generating_process_identifier_location+0x1f0>
cmpl   $0x30,-0x14(%rbp)
jne    12a0 <analysis_or_forecast_generating_process_identifier_location+0x1a0>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rax
add    $0x25,%rax
mov    %rax,-0x8(%rbp)
jmp    12f0 <analysis_or_forecast_generating_process_identifier_location+0x1f0>
cmpl   $0x34,-0x14(%rbp)
jne    12bf <analysis_or_forecast_generating_process_identifier_location+0x1bf>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rax
add    $0x10,%rax
mov    %rax,-0x8(%rbp)
jmp    12f0 <analysis_or_forecast_generating_process_identifier_location+0x1f0>
cmpl   $0x46,-0x14(%rbp)
jl     12e8 <analysis_or_forecast_generating_process_identifier_location+0x1e8>
cmpl   $0x49,-0x14(%rbp)
jg     12e8 <analysis_or_forecast_generating_process_identifier_location+0x1e8>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rax
add    $0x12,%rax
mov    %rax,-0x8(%rbp)
jmp    12f0 <analysis_or_forecast_generating_process_identifier_location+0x1f0>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<analysis_or_forecast_generating_process_identifier_location>:
mov    0x8(%rdi),%rdx
mov    0x20(%rdi),%rax
movzwl 0x7(%rax),%ecx
shl    $0x10,%ecx
bswap  %ecx
movzbl 0x5(%rdx),%esi
shl    $0x8,%esi
movzbl 0x6(%rdx),%edx
and    $0xfffffffe,%edx
or     %esi,%edx
cmp    $0x22,%edx
jne    113d <analysis_or_forecast_generating_process_identifier_location+0x3d>
lea    0x3ca8(%rcx),%edx
cmp    $0x4,%dx
jb     1192 <analysis_or_forecast_generating_process_identifier_location+0x92>
movzwl %cx,%edx
cmp    $0xc350,%edx
je     1192 <analysis_or_forecast_generating_process_identifier_location+0x92>
cmp    $0x10,%ecx
jb     1192 <analysis_or_forecast_generating_process_identifier_location+0x92>
mov    %ecx,%edx
and    $0xfffffffe,%edx
cmp    $0x3c,%edx
je     1192 <analysis_or_forecast_generating_process_identifier_location+0x92>
lea    -0x20(%rcx),%edx
cmp    $0x3,%edx
jb     1192 <analysis_or_forecast_generating_process_identifier_location+0x92>
cmp    $0x3e8,%ecx
je     1192 <analysis_or_forecast_generating_process_identifier_location+0x92>
cmp    $0x3e9,%ecx
je     1192 <analysis_or_forecast_generating_process_identifier_location+0x92>
cmp    $0x3ea,%ecx
je     1192 <analysis_or_forecast_generating_process_identifier_location+0x92>
cmp    $0x44c,%ecx
je     1192 <analysis_or_forecast_generating_process_identifier_location+0x92>
cmp    $0x44d,%ecx
je     1192 <analysis_or_forecast_generating_process_identifier_location+0x92>
mov    %ecx,%edx
and    $0xfffffffc,%edx
cmp    $0x2c,%dx
je     1197 <analysis_or_forecast_generating_process_identifier_location+0x97>
cmp    $0x28,%dx
jne    119c <analysis_or_forecast_generating_process_identifier_location+0x9c>
add    $0xf,%rax
ret
add    $0xd,%rax
ret
add    $0x1a,%rax
ret
cmp    $0x34,%cx
je     11ad <analysis_or_forecast_generating_process_identifier_location+0xad>
cmp    $0x30,%cx
jne    11b2 <analysis_or_forecast_generating_process_identifier_location+0xb2>
add    $0x25,%rax
ret
add    $0x10,%rax
ret
add    $0xffffffba,%ecx
add    $0x12,%rax
xor    %edx,%edx
cmp    $0x4,%ecx
cmovae %rdx,%rax
ret

LLVM IR (-O0):
define i8* @analysis_or_forecast_generating_process_identifier_location(i8** %0) {
%2 = alloca i8*
%3 = alloca i8**
%4 = alloca i32
%5 = alloca i32
store i8** %0, i8*** %3
%6 = load i8**, i8*** %3
%7 = getelementptr inbounds i8*, i8** %6, i64 4
%8 = load i8*, i8** %7
%9 = getelementptr inbounds i8, i8* %8, i64 7
%10 = load i8, i8* %9
%11 = zext i8 %10 to i32
%12 = shl i32 %11, 8
%13 = load i8**, i8*** %3
%14 = getelementptr inbounds i8*, i8** %13, i64 4
%15 = load i8*, i8** %14
%16 = getelementptr inbounds i8, i8* %15, i64 8
%17 = load i8, i8* %16
%18 = zext i8 %17 to i32
%19 = add nsw i32 %12, %18
store i32 %19, i32* %4
%20 = load i8**, i8*** %3
%21 = getelementptr inbounds i8*, i8** %20, i64 1
%22 = load i8*, i8** %21
%23 = getelementptr inbounds i8, i8* %22, i64 5
%24 = load i8, i8* %23
%25 = zext i8 %24 to i32
%26 = shl i32 %25, 8
%27 = load i8**, i8*** %3
%28 = getelementptr inbounds i8*, i8** %27, i64 1
%29 = load i8*, i8** %28
%30 = getelementptr inbounds i8, i8* %29, i64 6
%31 = load i8, i8* %30
%32 = zext i8 %31 to i32
%33 = add nsw i32 %26, %32
store i32 %33, i32* %5
%34 = load i32, i32* %5
%35 = icmp eq i32 %34, 34
br i1 %35, label %39, label %36
36: ; preds = %1
%37 = load i32, i32* %5
%38 = icmp eq i32 %37, 35
br i1 %38, label %39, label %48
39: ; preds = %36, %1
%40 = load i32, i32* %4
switch i32 %40, label %46 [
i32 50000, label %41
i32 50008, label %41
i32 50009, label %41
i32 50010, label %41
i32 50011, label %41
]
41: ; preds = %39, %39, %39, %39, %39
%42 = load i8**, i8*** %3
%43 = getelementptr inbounds i8*, i8** %42, i64 4
%44 = load i8*, i8** %43
%45 = getelementptr inbounds i8, i8* %44, i64 13
store i8* %45, i8** %2
br label %133
46: ; preds = %39
br label %47
47: ; preds = %46
br label %48
48: ; preds = %47, %36
%49 = load i32, i32* %4
%50 = icmp sle i32 %49, 15
br i1 %50, label %78, label %51
51: ; preds = %48
%52 = load i32, i32* %4
%53 = icmp sge i32 %52, 32
br i1 %53, label %54, label %57
54: ; preds = %51
%55 = load i32, i32* %4
%56 = icmp sle i32 %55, 34
br i1 %56, label %78, label %57
57: ; preds = %54, %51
%58 = load i32, i32* %4
%59 = icmp eq i32 %58, 60
br i1 %59, label %78, label %60
60: ; preds = %57
%61 = load i32, i32* %4
%62 = icmp eq i32 %61, 61
br i1 %62, label %78, label %63
63: ; preds = %60
%64 = load i32, i32* %4
%65 = icmp eq i32 %64, 1000
br i1 %65, label %78, label %66
66: ; preds = %63
%67 = load i32, i32* %4
%68 = icmp eq i32 %67, 1001
br i1 %68, label %78, label %69
69: ; preds = %66
%70 = load i32, i32* %4
%71 = icmp eq i32 %70, 1002
br i1 %71, label %78, label %72
72: ; preds = %69
%73 = load i32, i32* %4
%74 = icmp eq i32 %73, 1100
br i1 %74, label %78, label %75
75: ; preds = %72
%76 = load i32, i32* %4
%77 = icmp eq i32 %76, 1101
br i1 %77, label %78, label %83
78: ; preds = %75, %72, %69, %66, %63, %60, %57, %54, %48
%79 = load i8**, i8*** %3
%80 = getelementptr inbounds i8*, i8** %79, i64 4
%81 = load i8*, i8** %80
%82 = getelementptr inbounds i8, i8* %81, i64 13
store i8* %82, i8** %2
br label %133
83: ; preds = %75
%84 = load i32, i32* %4
%85 = icmp sge i32 %84, 40
br i1 %85, label %86, label %94
86: ; preds = %83
%87 = load i32, i32* %4
%88 = icmp sle i32 %87, 43
br i1 %88, label %89, label %94
89: ; preds = %86
%90 = load i8**, i8*** %3
%91 = getelementptr inbounds i8*, i8** %90, i64 4
%92 = load i8*, i8** %91
%93 = getelementptr inbounds i8, i8* %92, i64 15
store i8* %93, i8** %2
br label %133
94: ; preds = %86, %83
%95 = load i32, i32* %4
%96 = icmp sge i32 %95, 44
br i1 %96, label %97, label %105
97: ; preds = %94
%98 = load i32, i32* %4
%99 = icmp sle i32 %98, 47
br i1 %99, label %100, label %105
100: ; preds = %97
%101 = load i8**, i8*** %3
%102 = getelementptr inbounds i8*, i8** %101, i64 4
%103 = load i8*, i8** %102
%104 = getelementptr inbounds i8, i8* %103, i64 26
store i8* %104, i8** %2
br label %133
105: ; preds = %97, %94
%106 = load i32, i32* %4
%107 = icmp eq i32 %106, 48
br i1 %107, label %108, label %113
108: ; preds = %105
%109 = load i8**, i8*** %3
%110 = getelementptr inbounds i8*, i8** %109, i64 4
%111 = load i8*, i8** %110
%112 = getelementptr inbounds i8, i8* %111, i64 37
store i8* %112, i8** %2
br label %133
113: ; preds = %105
%114 = load i32, i32* %4
%115 = icmp eq i32 %114, 52
br i1 %115, label %116, label %121
116: ; preds = %113
%117 = load i8**, i8*** %3
%118 = getelementptr inbounds i8*, i8** %117, i64 4
%119 = load i8*, i8** %118
%120 = getelementptr inbounds i8, i8* %119, i64 16
store i8* %120, i8** %2
br label %133
121: ; preds = %113
%122 = load i32, i32* %4
%123 = icmp sge i32 %122, 70
br i1 %123, label %124, label %132
124: ; preds = %121
%125 = load i32, i32* %4
%126 = icmp sle i32 %125, 73
br i1 %126, label %127, label %132
127: ; preds = %124
%128 = load i8**, i8*** %3
%129 = getelementptr inbounds i8*, i8** %128, i64 4
%130 = load i8*, i8** %129
%131 = getelementptr inbounds i8, i8* %130, i64 18
store i8* %131, i8** %2
br label %133
132: ; preds = %124, %121
store i8* null, i8** %2
br label %133
133: ; preds = %132, %127, %116, %108, %100, %89, %78, %41
%134 = load i8*, i8** %2
ret i8* %134
}

LLVM IR (-O2):
define i8* @analysis_or_forecast_generating_process_identifier_location(i8** nocapture %0) {
%2 = getelementptr inbounds i8*, i8** %0, i64 4
%3 = load i8*, i8** %2
%4 = getelementptr inbounds i8, i8* %3, i64 7
%5 = load i8, i8* %4
%6 = zext i8 %5 to i32
%7 = shl nuw nsw i32 %6, 8
%8 = getelementptr inbounds i8, i8* %3, i64 8
%9 = load i8, i8* %8
%10 = zext i8 %9 to i32
%11 = or i32 %7, %10
%12 = getelementptr inbounds i8*, i8** %0, i64 1
%13 = load i8*, i8** %12
%14 = getelementptr inbounds i8, i8* %13, i64 5
%15 = load i8, i8* %14
%16 = zext i8 %15 to i32
%17 = shl nuw nsw i32 %16, 8
%18 = getelementptr inbounds i8, i8* %13, i64 6
%19 = load i8, i8* %18
%20 = and i8 %19, -2
%21 = zext i8 %20 to i32
%22 = or i32 %17, %21
%23 = icmp eq i32 %22, 34
br i1 %23, label %24, label %28
24: ; preds = %1
%25 = trunc i32 %11 to i16
switch i16 %25, label %28 [
i16 -15536, label %26
i16 -15528, label %26
i16 -15527, label %26
i16 -15526, label %26
i16 -15525, label %26
]
26: ; preds = %24, %24, %24, %24, %24
%27 = getelementptr inbounds i8, i8* %3, i64 13
br label %65
28: ; preds = %24, %1
%29 = icmp ult i32 %11, 16
br i1 %29, label %46, label %30
30: ; preds = %28
%31 = add nsw i32 %11, -32
%32 = icmp ult i32 %31, 3
%33 = and i32 %11, 65534
%34 = icmp eq i32 %33, 60
%35 = or i1 %34, %32
%36 = icmp eq i32 %11, 1000
%37 = select i1 %35, i1 true, i1 %36
%38 = icmp eq i32 %11, 1001
%39 = select i1 %37, i1 true, i1 %38
%40 = icmp eq i32 %11, 1002
%41 = select i1 %39, i1 true, i1 %40
%42 = icmp eq i32 %11, 1100
%43 = select i1 %41, i1 true, i1 %42
%44 = icmp eq i32 %11, 1101
%45 = select i1 %43, i1 true, i1 %44
br i1 %45, label %46, label %48
46: ; preds = %30, %28
%47 = getelementptr inbounds i8, i8* %3, i64 13
br label %65
48: ; preds = %30
%49 = trunc i32 %11 to i16
%50 = and i16 %49, -4
switch i16 %50, label %55 [
i16 40, label %51
i16 44, label %53
]
51: ; preds = %48
%52 = getelementptr inbounds i8, i8* %3, i64 15
br label %65
53: ; preds = %48
%54 = getelementptr inbounds i8, i8* %3, i64 26
br label %65
55: ; preds = %48
switch i16 %49, label %60 [
i16 48, label %56
i16 52, label %58
]
56: ; preds = %55
%57 = getelementptr inbounds i8, i8* %3, i64 37
br label %65
58: ; preds = %55
%59 = getelementptr inbounds i8, i8* %3, i64 16
br label %65
60: ; preds = %55
%61 = add nsw i32 %11, -70
%62 = icmp ult i32 %61, 4
%63 = getelementptr inbounds i8, i8* %3, i64 18
%64 = select i1 %62, i8* %63, i8* null
br label %65
65: ; preds = %60, %58, %56, %53, %51, %46, %26
%66 = phi i8* [ %47, %46 ], [ %52, %51 ], [ %54, %53 ], [ %57, %56 ], [ %59, %58 ], [ %27, %26 ], [ %64, %60 ]
ret i8* %66
}