#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 */
int sceKernelLibcTime(void *);
char *getMonth() {
  int tempy = sceKernelLibcTime((void *)0);
  int days_this_year = (tempy - 1104537600) / (24 * 60 * 60);
  static char *month;
  if (days_this_year <= 31) {
    month = "January";
  } else if (days_this_year > 31 && days_this_year <= 59) {
    month = "Febuary";
  } else if (days_this_year > 59 && days_this_year <= 90) {
    month = "March";
  } else if (days_this_year > 90 && days_this_year <= 120) {
    month = "April";
  } else if (days_this_year > 120 && days_this_year <= 151) {
    month = "May";
  } else if (days_this_year > 151 && days_this_year <= 181) {
    month = "June";
  } else if (days_this_year > 181 && days_this_year <= 212) {
    month = "July";
  } else if (days_this_year > 212 && days_this_year <= 243) {
    month = "August";
  } else if (days_this_year > 243 && days_this_year <= 273) {
    month = "September";
  } else if (days_this_year > 273 && days_this_year <= 304) {
    month = "October";
  } else if (days_this_year > 304 && days_this_year <= 334) {
    month = "November";
  } else if (days_this_year > 334 && days_this_year <= 365) {
    month = "December";
  }
  return month;
}


x86 assembly (clang, -O0):
<getMonth>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %eax,%eax
mov    %eax,%edi
call   1030 <sceKernelLibcTime@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
sub    $0x41d5e800,%eax
mov    $0x15180,%ecx
cltd
idiv   %ecx
mov    %eax,-0x8(%rbp)
cmpl   $0x1f,-0x8(%rbp)
jg     1154 <getMonth+0x44>
lea    0xeb8(%rip),%rax
mov    %rax,0x2ee1(%rip)
jmp    1360 <getMonth+0x250>
cmpl   $0x1f,-0x8(%rbp)
jle    117b <getMonth+0x6b>
cmpl   $0x3b,-0x8(%rbp)
jg     117b <getMonth+0x6b>
lea    0xe99(%rip),%rax
mov    %rax,0x2eba(%rip)
jmp    135b <getMonth+0x24b>
cmpl   $0x3b,-0x8(%rbp)
jle    11a2 <getMonth+0x92>
cmpl   $0x5a,-0x8(%rbp)
jg     11a2 <getMonth+0x92>
lea    0xe7a(%rip),%rax
mov    %rax,0x2e93(%rip)
jmp    1356 <getMonth+0x246>
cmpl   $0x5a,-0x8(%rbp)
jle    11c9 <getMonth+0xb9>
cmpl   $0x78,-0x8(%rbp)
jg     11c9 <getMonth+0xb9>
lea    0xe59(%rip),%rax
mov    %rax,0x2e6c(%rip)
jmp    1351 <getMonth+0x241>
cmpl   $0x78,-0x8(%rbp)
jle    11f3 <getMonth+0xe3>
cmpl   $0x97,-0x8(%rbp)
jg     11f3 <getMonth+0xe3>
lea    0xe35(%rip),%rax
mov    %rax,0x2e42(%rip)
jmp    134c <getMonth+0x23c>
cmpl   $0x97,-0x8(%rbp)
jle    1220 <getMonth+0x110>
cmpl   $0xb5,-0x8(%rbp)
jg     1220 <getMonth+0x110>
lea    0xe0c(%rip),%rax
mov    %rax,0x2e15(%rip)
jmp    1347 <getMonth+0x237>
cmpl   $0xb5,-0x8(%rbp)
jle    124d <getMonth+0x13d>
cmpl   $0xd4,-0x8(%rbp)
jg     124d <getMonth+0x13d>
lea    0xde4(%rip),%rax
mov    %rax,0x2de8(%rip)
jmp    1342 <getMonth+0x232>
cmpl   $0xd4,-0x8(%rbp)
jle    127a <getMonth+0x16a>
cmpl   $0xf3,-0x8(%rbp)
jg     127a <getMonth+0x16a>
lea    0xdbc(%rip),%rax
mov    %rax,0x2dbb(%rip)
jmp    133d <getMonth+0x22d>
cmpl   $0xf3,-0x8(%rbp)
jle    12a7 <getMonth+0x197>
cmpl   $0x111,-0x8(%rbp)
jg     12a7 <getMonth+0x197>
lea    0xd96(%rip),%rax
mov    %rax,0x2d8e(%rip)
jmp    1338 <getMonth+0x228>
cmpl   $0x111,-0x8(%rbp)
jle    12d4 <getMonth+0x1c4>
cmpl   $0x130,-0x8(%rbp)
jg     12d4 <getMonth+0x1c4>
lea    0xd73(%rip),%rax
mov    %rax,0x2d61(%rip)
jmp    1333 <getMonth+0x223>
cmpl   $0x130,-0x8(%rbp)
jle    1301 <getMonth+0x1f1>
cmpl   $0x14e,-0x8(%rbp)
jg     1301 <getMonth+0x1f1>
lea    0xd4e(%rip),%rax
mov    %rax,0x2d34(%rip)
jmp    132e <getMonth+0x21e>
cmpl   $0x14e,-0x8(%rbp)
jle    1329 <getMonth+0x219>
cmpl   $0x16d,-0x8(%rbp)
jg     1329 <getMonth+0x219>
lea    0xd2a(%rip),%rax
mov    %rax,0x2d07(%rip)
jmp    132e <getMonth+0x21e>
jmp    1333 <getMonth+0x223>
jmp    1338 <getMonth+0x228>
jmp    133d <getMonth+0x22d>
jmp    1342 <getMonth+0x232>
jmp    1347 <getMonth+0x237>
jmp    134c <getMonth+0x23c>
jmp    1351 <getMonth+0x241>
jmp    1356 <getMonth+0x246>
jmp    135b <getMonth+0x24b>
jmp    1360 <getMonth+0x250>
mov    0x2cc9(%rip),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getMonth>:
push   %rax
xor    %edi,%edi
call   1030 <sceKernelLibcTime@plt>
cmp    $0x420017ff,%eax
jg     112b <getMonth+0x1b>
lea    0xeda(%rip),%rax
jmp    11df <getMonth+0xcf>
cmp    $0x422501ff,%eax
ja     113e <getMonth+0x2e>
lea    0xecf(%rip),%rax
jmp    11df <getMonth+0xcf>
cmp    $0x424de07f,%eax
ja     1151 <getMonth+0x41>
lea    0xec4(%rip),%rax
jmp    11df <getMonth+0xcf>
cmp    $0x42756d7f,%eax
ja     1161 <getMonth+0x51>
lea    0xeb7(%rip),%rax
jmp    11df <getMonth+0xcf>
cmp    $0x429e4bff,%eax
ja     1171 <getMonth+0x61>
lea    0xead(%rip),%rax
jmp    11df <getMonth+0xcf>
cmp    $0x42c5d8ff,%eax
ja     1181 <getMonth+0x71>
lea    0xea1(%rip),%rax
jmp    11df <getMonth+0xcf>
cmp    $0x42eeb77f,%eax
ja     1191 <getMonth+0x81>
lea    0xe96(%rip),%rax
jmp    11df <getMonth+0xcf>
cmp    $0x431795ff,%eax
ja     11a1 <getMonth+0x91>
lea    0xe8b(%rip),%rax
jmp    11df <getMonth+0xcf>
cmp    $0x433f22ff,%eax
ja     11b1 <getMonth+0xa1>
lea    0xe82(%rip),%rax
jmp    11df <getMonth+0xcf>
cmp    $0x4368017f,%eax
ja     11c1 <getMonth+0xb1>
lea    0xe7c(%rip),%rax
jmp    11df <getMonth+0xcf>
cmp    $0x438f8e7f,%eax
ja     11d1 <getMonth+0xc1>
lea    0xe74(%rip),%rax
jmp    11df <getMonth+0xcf>
cmp    $0x43b86d00,%eax
jae    11e8 <getMonth+0xd8>
lea    0xe6d(%rip),%rax
mov    %rax,0x2e4a(%rip)
pop    %rcx
ret
mov    0x2e41(%rip),%rax
pop    %rcx
ret

LLVM IR (-O0):
@getMonth.month = internal global i8* null
@.str = [8 x i8] c"January\00"
@.str.1 = [8 x i8] c"Febuary\00"
@.str.2 = [6 x i8] c"March\00"
@.str.3 = [6 x i8] c"April\00"
@.str.4 = [4 x i8] c"May\00"
@.str.5 = [5 x i8] c"June\00"
@.str.6 = [5 x i8] c"July\00"
@.str.7 = [7 x i8] c"August\00"
@.str.8 = [10 x i8] c"September\00"
@.str.9 = [8 x i8] c"October\00"
@.str.10 = [9 x i8] c"November\00"
@.str.11 = [9 x i8] c"December\00"
define i8* @getMonth() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 @sceKernelLibcTime(i8* null)
store i32 %3, i32* %1
%4 = load i32, i32* %1
%5 = sub nsw i32 %4, 1104537600
%6 = sdiv i32 %5, 86400
store i32 %6, i32* %2
%7 = load i32, i32* %2
%8 = icmp sle i32 %7, 31
br i1 %8, label %9, label %10
9: ; preds = %0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8** @getMonth.month
br label %98
10: ; preds = %0
%11 = load i32, i32* %2
%12 = icmp sgt i32 %11, 31
br i1 %12, label %13, label %17
13: ; preds = %10
%14 = load i32, i32* %2
%15 = icmp sle i32 %14, 59
br i1 %15, label %16, label %17
16: ; preds = %13
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8** @getMonth.month
br label %97
17: ; preds = %13, %10
%18 = load i32, i32* %2
%19 = icmp sgt i32 %18, 59
br i1 %19, label %20, label %24
20: ; preds = %17
%21 = load i32, i32* %2
%22 = icmp sle i32 %21, 90
br i1 %22, label %23, label %24
23: ; preds = %20
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8** @getMonth.month
br label %96
24: ; preds = %20, %17
%25 = load i32, i32* %2
%26 = icmp sgt i32 %25, 90
br i1 %26, label %27, label %31
27: ; preds = %24
%28 = load i32, i32* %2
%29 = icmp sle i32 %28, 120
br i1 %29, label %30, label %31
30: ; preds = %27
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8** @getMonth.month
br label %95
31: ; preds = %27, %24
%32 = load i32, i32* %2
%33 = icmp sgt i32 %32, 120
br i1 %33, label %34, label %38
34: ; preds = %31
%35 = load i32, i32* %2
%36 = icmp sle i32 %35, 151
br i1 %36, label %37, label %38
37: ; preds = %34
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8** @getMonth.month
br label %94
38: ; preds = %34, %31
%39 = load i32, i32* %2
%40 = icmp sgt i32 %39, 151
br i1 %40, label %41, label %45
41: ; preds = %38
%42 = load i32, i32* %2
%43 = icmp sle i32 %42, 181
br i1 %43, label %44, label %45
44: ; preds = %41
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8** @getMonth.month
br label %93
45: ; preds = %41, %38
%46 = load i32, i32* %2
%47 = icmp sgt i32 %46, 181
br i1 %47, label %48, label %52
48: ; preds = %45
%49 = load i32, i32* %2
%50 = icmp sle i32 %49, 212
br i1 %50, label %51, label %52
51: ; preds = %48
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8** @getMonth.month
br label %92
52: ; preds = %48, %45
%53 = load i32, i32* %2
%54 = icmp sgt i32 %53, 212
br i1 %54, label %55, label %59
55: ; preds = %52
%56 = load i32, i32* %2
%57 = icmp sle i32 %56, 243
br i1 %57, label %58, label %59
58: ; preds = %55
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8** @getMonth.month
br label %91
59: ; preds = %55, %52
%60 = load i32, i32* %2
%61 = icmp sgt i32 %60, 243
br i1 %61, label %62, label %66
62: ; preds = %59
%63 = load i32, i32* %2
%64 = icmp sle i32 %63, 273
br i1 %64, label %65, label %66
65: ; preds = %62
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8** @getMonth.month
br label %90
66: ; preds = %62, %59
%67 = load i32, i32* %2
%68 = icmp sgt i32 %67, 273
br i1 %68, label %69, label %73
69: ; preds = %66
%70 = load i32, i32* %2
%71 = icmp sle i32 %70, 304
br i1 %71, label %72, label %73
72: ; preds = %69
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8** @getMonth.month
br label %89
73: ; preds = %69, %66
%74 = load i32, i32* %2
%75 = icmp sgt i32 %74, 304
br i1 %75, label %76, label %80
76: ; preds = %73
%77 = load i32, i32* %2
%78 = icmp sle i32 %77, 334
br i1 %78, label %79, label %80
79: ; preds = %76
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8** @getMonth.month
br label %88
80: ; preds = %76, %73
%81 = load i32, i32* %2
%82 = icmp sgt i32 %81, 334
br i1 %82, label %83, label %87
83: ; preds = %80
%84 = load i32, i32* %2
%85 = icmp sle i32 %84, 365
br i1 %85, label %86, label %87
86: ; preds = %83
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i8** @getMonth.month
br label %87
87: ; preds = %86, %83, %80
br label %88
88: ; preds = %87, %79
br label %89
89: ; preds = %88, %72
br label %90
90: ; preds = %89, %65
br label %91
91: ; preds = %90, %58
br label %92
92: ; preds = %91, %51
br label %93
93: ; preds = %92, %44
br label %94
94: ; preds = %93, %37
br label %95
95: ; preds = %94, %30
br label %96
96: ; preds = %95, %23
br label %97
97: ; preds = %96, %16
br label %98
98: ; preds = %97, %9
%99 = load i8*, i8** @getMonth.month
ret i8* %99
}

LLVM IR (-O2):
@getMonth.month = internal unnamed_addr global i8* null
@.str = [8 x i8] c"January\00"
@.str.1 = [8 x i8] c"Febuary\00"
@.str.2 = [6 x i8] c"March\00"
@.str.3 = [6 x i8] c"April\00"
@.str.4 = [4 x i8] c"May\00"
@.str.5 = [5 x i8] c"June\00"
@.str.6 = [5 x i8] c"July\00"
@.str.7 = [7 x i8] c"August\00"
@.str.8 = [10 x i8] c"September\00"
@.str.9 = [8 x i8] c"October\00"
@.str.10 = [9 x i8] c"November\00"
@.str.11 = [9 x i8] c"December\00"
define i8* @getMonth() {
%1 = tail call i32 @sceKernelLibcTime(i8* null)
%2 = icmp slt i32 %1, 1107302400
br i1 %2, label %3, label %4
3: ; preds = %0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8** @getMonth.month
br label %39
4: ; preds = %0
%5 = icmp ult i32 %1, 1109721600
br i1 %5, label %6, label %7
6: ; preds = %4
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8** @getMonth.month
br label %39
7: ; preds = %4
%8 = icmp ult i32 %1, 1112400000
br i1 %8, label %9, label %10
9: ; preds = %7
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8** @getMonth.month
br label %39
10: ; preds = %7
%11 = icmp ult i32 %1, 1114992000
br i1 %11, label %12, label %13
12: ; preds = %10
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8** @getMonth.month
br label %39
13: ; preds = %10
%14 = icmp ult i32 %1, 1117670400
br i1 %14, label %15, label %16
15: ; preds = %13
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8** @getMonth.month
br label %39
16: ; preds = %13
%17 = icmp ult i32 %1, 1120262400
br i1 %17, label %18, label %19
18: ; preds = %16
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8** @getMonth.month
br label %39
19: ; preds = %16
%20 = icmp ult i32 %1, 1122940800
br i1 %20, label %21, label %22
21: ; preds = %19
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8** @getMonth.month
br label %39
22: ; preds = %19
%23 = icmp ult i32 %1, 1125619200
br i1 %23, label %24, label %25
24: ; preds = %22
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8** @getMonth.month
br label %39
25: ; preds = %22
%26 = icmp ult i32 %1, 1128211200
br i1 %26, label %27, label %28
27: ; preds = %25
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8** @getMonth.month
br label %39
28: ; preds = %25
%29 = icmp ult i32 %1, 1130889600
br i1 %29, label %30, label %31
30: ; preds = %28
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8** @getMonth.month
br label %39
31: ; preds = %28
%32 = icmp ult i32 %1, 1133481600
br i1 %32, label %33, label %34
33: ; preds = %31
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8** @getMonth.month
br label %39
34: ; preds = %31
%35 = icmp ult i32 %1, 1136160000
br i1 %35, label %38, label %36
36: ; preds = %34
%37 = load i8*, i8** @getMonth.month
br label %39
38: ; preds = %34
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i8** @getMonth.month
br label %39
39: ; preds = %36, %6, %12, %18, %24, %30, %38, %33, %27, %21, %15, %9, %3
%40 = phi i8* [ %37, %36 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), %6 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), %12 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), %18 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), %24 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), %30 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), %38 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), %33 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), %27 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), %21 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), %15 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), %9 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), %3 ]
ret i8* %40
}