#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 /*<<< orphan*/ format(char *, char *);
int /*<<< orphan*/ rsprintf(char *, char *, char *, ...);
char *strchr(char *, char);
int /*<<< orphan*/ strcpy(char *, char *);
int /*<<< orphan*/ urlEncode(char *);
void display_kumac(char *display_name, char *kumac_name) {
  char str[256], comment_name[256], param_name[256], *p;
  comment_name[0] = 0;
  param_name[0] = 0;
  if (strchr(kumac_name, '?')) {
    p = strchr(kumac_name, '?') + 1;
    while (*p && *p == ' ')
      p++;
    strcpy(comment_name, p);
    p = comment_name;
    while (*p && *p != ' ' && *p != '\r' && *p != '\n')
      p++;
    *p = 0;
  }
  if (strchr(kumac_name, '&')) {
    p = strchr(kumac_name, '&') + 1;
    while (*p && *p == ' ')
      p++;
    strcpy(param_name, p);
    p = param_name;
    while (*p && *p != ' ' && *p != '\r' && *p != '\n')
      p++;
    *p = 0;
  }
  if (strchr(kumac_name, '?'))
    *strchr(kumac_name, '?') = 0;
  if (strchr(kumac_name, '&'))
    *strchr(kumac_name, '&') = 0;
  urlEncode(kumac_name);
  format(display_name, str);
  if (param_name[0]) {
    if (comment_name[0])
      rsprintf("<li><a href=\"/%s.html?comment=%s&param=%s\" "
               "target=_blank>%s</a></li>\r\n",
               kumac_name, comment_name, param_name, str);
    else
      rsprintf(
          "<li><a href=\"/%s.html?param=%s\" target=_blank>%s</a></li>\r\n",
          kumac_name, param_name, str);
  } else if (comment_name[0])
    rsprintf(
        "<li><a href=\"/%s.html?comment=%s\" target=contents>%s</a></li>\r\n",
        kumac_name, comment_name, str);
  else
    rsprintf("<li><a href=\"/%s.html\" target=contents>%s</a></li>\r\n",
             kumac_name, str);
}


x86 assembly (clang, -O0):
<display_kumac>:
push   %rbp
mov    %rsp,%rbp
sub    $0x320,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movb   $0x0,-0x210(%rbp)
movb   $0x0,-0x310(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x3f,%esi
call   1050 <strchr@plt>
cmp    $0x0,%rax
je     12b9 <display_kumac+0x169>
mov    -0x10(%rbp),%rdi
mov    $0x3f,%esi
call   1050 <strchr@plt>
add    $0x1,%rax
mov    %rax,-0x318(%rbp)
mov    -0x318(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x319(%rbp)
je     11d3 <display_kumac+0x83>
mov    -0x318(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
sete   %al
mov    %al,-0x319(%rbp)
mov    -0x319(%rbp),%al
test   $0x1,%al
jne    11e6 <display_kumac+0x96>
jmp    11fd <display_kumac+0xad>
mov    -0x318(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x318(%rbp)
jmp    11a2 <display_kumac+0x52>
lea    -0x210(%rbp),%rdi
mov    -0x318(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x210(%rbp),%rax
mov    %rax,-0x318(%rbp)
mov    -0x318(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x31a(%rbp)
je     1285 <display_kumac+0x135>
mov    -0x318(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x20,%ecx
mov    %al,-0x31a(%rbp)
je     1285 <display_kumac+0x135>
mov    -0x318(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0xd,%ecx
mov    %al,-0x31a(%rbp)
je     1285 <display_kumac+0x135>
mov    -0x318(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
setne  %al
mov    %al,-0x31a(%rbp)
mov    -0x31a(%rbp),%al
test   $0x1,%al
jne    1298 <display_kumac+0x148>
jmp    12af <display_kumac+0x15f>
mov    -0x318(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x318(%rbp)
jmp    121e <display_kumac+0xce>
mov    -0x318(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rdi
mov    $0x26,%esi
call   1050 <strchr@plt>
cmp    $0x0,%rax
je     1401 <display_kumac+0x2b1>
mov    -0x10(%rbp),%rdi
mov    $0x26,%esi
call   1050 <strchr@plt>
add    $0x1,%rax
mov    %rax,-0x318(%rbp)
mov    -0x318(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x31b(%rbp)
je     131b <display_kumac+0x1cb>
mov    -0x318(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
sete   %al
mov    %al,-0x31b(%rbp)
mov    -0x31b(%rbp),%al
test   $0x1,%al
jne    132e <display_kumac+0x1de>
jmp    1345 <display_kumac+0x1f5>
mov    -0x318(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x318(%rbp)
jmp    12ea <display_kumac+0x19a>
lea    -0x310(%rbp),%rdi
mov    -0x318(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x310(%rbp),%rax
mov    %rax,-0x318(%rbp)
mov    -0x318(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x31c(%rbp)
je     13cd <display_kumac+0x27d>
mov    -0x318(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x20,%ecx
mov    %al,-0x31c(%rbp)
je     13cd <display_kumac+0x27d>
mov    -0x318(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0xd,%ecx
mov    %al,-0x31c(%rbp)
je     13cd <display_kumac+0x27d>
mov    -0x318(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
setne  %al
mov    %al,-0x31c(%rbp)
mov    -0x31c(%rbp),%al
test   $0x1,%al
jne    13e0 <display_kumac+0x290>
jmp    13f7 <display_kumac+0x2a7>
mov    -0x318(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x318(%rbp)
jmp    1366 <display_kumac+0x216>
mov    -0x318(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rdi
mov    $0x3f,%esi
call   1050 <strchr@plt>
cmp    $0x0,%rax
je     142a <display_kumac+0x2da>
mov    -0x10(%rbp),%rdi
mov    $0x3f,%esi
call   1050 <strchr@plt>
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rdi
mov    $0x26,%esi
call   1050 <strchr@plt>
cmp    $0x0,%rax
je     1453 <display_kumac+0x303>
mov    -0x10(%rbp),%rdi
mov    $0x26,%esi
call   1050 <strchr@plt>
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rdi
call   1060 <urlEncode@plt>
mov    -0x8(%rbp),%rdi
lea    -0x110(%rbp),%rsi
call   1070 <format@plt>
cmpb   $0x0,-0x310(%rbp)
je     14d7 <display_kumac+0x387>
cmpb   $0x0,-0x210(%rbp)
je     14b2 <display_kumac+0x362>
mov    -0x10(%rbp),%rsi
lea    -0x210(%rbp),%rdx
lea    -0x310(%rbp),%rcx
lea    -0x110(%rbp),%r8
lea    0xb5a(%rip),%rdi
mov    $0x0,%al
call   1040 <rsprintf@plt>
jmp    14d2 <display_kumac+0x382>
mov    -0x10(%rbp),%rsi
lea    -0x310(%rbp),%rdx
lea    -0x110(%rbp),%rcx
lea    0xb7c(%rip),%rdi
mov    $0x0,%al
call   1040 <rsprintf@plt>
jmp    1527 <display_kumac+0x3d7>
cmpb   $0x0,-0x210(%rbp)
je     1509 <display_kumac+0x3b9>
mov    -0x10(%rbp),%rsi
lea    -0x210(%rbp),%rdx
lea    -0x110(%rbp),%rcx
lea    0xb86(%rip),%rdi
mov    $0x0,%al
call   1040 <rsprintf@plt>
jmp    1522 <display_kumac+0x3d2>
mov    -0x10(%rbp),%rsi
lea    -0x110(%rbp),%rdx
lea    0xba8(%rip),%rdi
mov    $0x0,%al
call   1040 <rsprintf@plt>
jmp    1527 <display_kumac+0x3d7>
add    $0x320,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<display_kumac>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x308,%rsp
mov    %rsi,%r15
mov    %rdi,%r14
movb   $0x0,0x100(%rsp)
movb   $0x0,(%rsp)
mov    %rsi,%rdi
mov    $0x3f,%esi
call   1050 <strchr@plt>
movabs $0x100002401,%r12
test   %rax,%rax
je     11c6 <display_kumac+0x76>
nopl   0x0(%rax)
cmpb   $0x20,0x1(%rax)
lea    0x1(%rax),%rax
je     1190 <display_kumac+0x40>
lea    0x100(%rsp),%rbx
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
jmp    11b4 <display_kumac+0x64>
nop
add    $0x1,%rbx
movzbl (%rbx),%eax
cmp    $0x20,%rax
ja     11b0 <display_kumac+0x60>
bt     %rax,%r12
jae    11b0 <display_kumac+0x60>
movb   $0x0,(%rbx)
mov    %r15,%rdi
mov    $0x26,%esi
call   1050 <strchr@plt>
test   %rax,%rax
je     1216 <display_kumac+0xc6>
nopl   0x0(%rax,%rax,1)
cmpb   $0x20,0x1(%rax)
lea    0x1(%rax),%rax
je     11e0 <display_kumac+0x90>
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
jmp    1204 <display_kumac+0xb4>
nopw   0x0(%rax,%rax,1)
add    $0x1,%rbx
movzbl (%rbx),%eax
cmp    $0x20,%rax
ja     1200 <display_kumac+0xb0>
bt     %rax,%r12
jae    1200 <display_kumac+0xb0>
movb   $0x0,(%rbx)
mov    %r15,%rdi
mov    $0x3f,%esi
call   1050 <strchr@plt>
test   %rax,%rax
je     122b <display_kumac+0xdb>
movb   $0x0,(%rax)
mov    %r15,%rdi
mov    $0x26,%esi
call   1050 <strchr@plt>
test   %rax,%rax
je     1240 <display_kumac+0xf0>
movb   $0x0,(%rax)
mov    %r15,%rdi
call   1060 <urlEncode@plt>
lea    0x200(%rsp),%rsi
mov    %r14,%rdi
call   1070 <format@plt>
cmpb   $0x0,(%rsp)
mov    0x100(%rsp),%al
je     128f <display_kumac+0x13f>
test   %al,%al
je     12a4 <display_kumac+0x154>
lea    0xd90(%rip),%rdi
lea    0x100(%rsp),%rdx
mov    %rsp,%rcx
lea    0x200(%rsp),%r8
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <rsprintf@plt>
jmp    12db <display_kumac+0x18b>
test   %al,%al
je     12c2 <display_kumac+0x172>
lea    0xde9(%rip),%rdi
lea    0x100(%rsp),%rdx
jmp    12ae <display_kumac+0x15e>
lea    0xd9c(%rip),%rdi
mov    %rsp,%rdx
lea    0x200(%rsp),%rcx
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <rsprintf@plt>
jmp    12db <display_kumac+0x18b>
lea    0xdfa(%rip),%rdi
lea    0x200(%rsp),%rdx
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <rsprintf@plt>
add    $0x308,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [71 x i8] c"<li><a href=\22/%s.html?comment=%s&param=%s\22 target=_blank>%s</a></li>\0D\0A\00"
@.str.1 = [60 x i8] c"<li><a href=\22/%s.html?param=%s\22 target=_blank>%s</a></li>\0D\0A\00"
@.str.2 = [64 x i8] c"<li><a href=\22/%s.html?comment=%s\22 target=contents>%s</a></li>\0D\0A\00"
@.str.3 = [53 x i8] c"<li><a href=\22/%s.html\22 target=contents>%s</a></li>\0D\0A\00"
define void @display_kumac(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca [256 x i8]
%6 = alloca [256 x i8]
%7 = alloca [256 x i8]
%8 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%9 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
store i8 0, i8* %9
%10 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
store i8 0, i8* %10
%11 = load i8*, i8** %4
%12 = call i8* @strchr(i8* %11, i8 signext 63)
%13 = icmp ne i8* %12, null
br i1 %13, label %14, label %65
14: ; preds = %2
%15 = load i8*, i8** %4
%16 = call i8* @strchr(i8* %15, i8 signext 63)
%17 = getelementptr inbounds i8, i8* %16, i64 1
store i8* %17, i8** %8
br label %18
18: ; preds = %30, %14
%19 = load i8*, i8** %8
%20 = load i8, i8* %19
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %28
23: ; preds = %18
%24 = load i8*, i8** %8
%25 = load i8, i8* %24
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 32
br label %28
28: ; preds = %23, %18
%29 = phi i1 [ false, %18 ], [ %27, %23 ]
br i1 %29, label %30, label %33
30: ; preds = %28
%31 = load i8*, i8** %8
%32 = getelementptr inbounds i8, i8* %31, i32 1
store i8* %32, i8** %8
br label %18
33: ; preds = %28
%34 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%35 = load i8*, i8** %8
%36 = call i32 @strcpy(i8* %34, i8* %35)
%37 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
store i8* %37, i8** %8
br label %38
38: ; preds = %60, %33
%39 = load i8*, i8** %8
%40 = load i8, i8* %39
%41 = sext i8 %40 to i32
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %58
43: ; preds = %38
%44 = load i8*, i8** %8
%45 = load i8, i8* %44
%46 = sext i8 %45 to i32
%47 = icmp ne i32 %46, 32
br i1 %47, label %48, label %58
48: ; preds = %43
%49 = load i8*, i8** %8
%50 = load i8, i8* %49
%51 = sext i8 %50 to i32
%52 = icmp ne i32 %51, 13
br i1 %52, label %53, label %58
53: ; preds = %48
%54 = load i8*, i8** %8
%55 = load i8, i8* %54
%56 = sext i8 %55 to i32
%57 = icmp ne i32 %56, 10
br label %58
58: ; preds = %53, %48, %43, %38
%59 = phi i1 [ false, %48 ], [ false, %43 ], [ false, %38 ], [ %57, %53 ]
br i1 %59, label %60, label %63
60: ; preds = %58
%61 = load i8*, i8** %8
%62 = getelementptr inbounds i8, i8* %61, i32 1
store i8* %62, i8** %8
br label %38
63: ; preds = %58
%64 = load i8*, i8** %8
store i8 0, i8* %64
br label %65
65: ; preds = %63, %2
%66 = load i8*, i8** %4
%67 = call i8* @strchr(i8* %66, i8 signext 38)
%68 = icmp ne i8* %67, null
br i1 %68, label %69, label %120
69: ; preds = %65
%70 = load i8*, i8** %4
%71 = call i8* @strchr(i8* %70, i8 signext 38)
%72 = getelementptr inbounds i8, i8* %71, i64 1
store i8* %72, i8** %8
br label %73
73: ; preds = %85, %69
%74 = load i8*, i8** %8
%75 = load i8, i8* %74
%76 = sext i8 %75 to i32
%77 = icmp ne i32 %76, 0
br i1 %77, label %78, label %83
78: ; preds = %73
%79 = load i8*, i8** %8
%80 = load i8, i8* %79
%81 = sext i8 %80 to i32
%82 = icmp eq i32 %81, 32
br label %83
83: ; preds = %78, %73
%84 = phi i1 [ false, %73 ], [ %82, %78 ]
br i1 %84, label %85, label %88
85: ; preds = %83
%86 = load i8*, i8** %8
%87 = getelementptr inbounds i8, i8* %86, i32 1
store i8* %87, i8** %8
br label %73
88: ; preds = %83
%89 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%90 = load i8*, i8** %8
%91 = call i32 @strcpy(i8* %89, i8* %90)
%92 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
store i8* %92, i8** %8
br label %93
93: ; preds = %115, %88
%94 = load i8*, i8** %8
%95 = load i8, i8* %94
%96 = sext i8 %95 to i32
%97 = icmp ne i32 %96, 0
br i1 %97, label %98, label %113
98: ; preds = %93
%99 = load i8*, i8** %8
%100 = load i8, i8* %99
%101 = sext i8 %100 to i32
%102 = icmp ne i32 %101, 32
br i1 %102, label %103, label %113
103: ; preds = %98
%104 = load i8*, i8** %8
%105 = load i8, i8* %104
%106 = sext i8 %105 to i32
%107 = icmp ne i32 %106, 13
br i1 %107, label %108, label %113
108: ; preds = %103
%109 = load i8*, i8** %8
%110 = load i8, i8* %109
%111 = sext i8 %110 to i32
%112 = icmp ne i32 %111, 10
br label %113
113: ; preds = %108, %103, %98, %93
%114 = phi i1 [ false, %103 ], [ false, %98 ], [ false, %93 ], [ %112, %108 ]
br i1 %114, label %115, label %118
115: ; preds = %113
%116 = load i8*, i8** %8
%117 = getelementptr inbounds i8, i8* %116, i32 1
store i8* %117, i8** %8
br label %93
118: ; preds = %113
%119 = load i8*, i8** %8
store i8 0, i8* %119
br label %120
120: ; preds = %118, %65
%121 = load i8*, i8** %4
%122 = call i8* @strchr(i8* %121, i8 signext 63)
%123 = icmp ne i8* %122, null
br i1 %123, label %124, label %127
124: ; preds = %120
%125 = load i8*, i8** %4
%126 = call i8* @strchr(i8* %125, i8 signext 63)
store i8 0, i8* %126
br label %127
127: ; preds = %124, %120
%128 = load i8*, i8** %4
%129 = call i8* @strchr(i8* %128, i8 signext 38)
%130 = icmp ne i8* %129, null
br i1 %130, label %131, label %134
131: ; preds = %127
%132 = load i8*, i8** %4
%133 = call i8* @strchr(i8* %132, i8 signext 38)
store i8 0, i8* %133
br label %134
134: ; preds = %131, %127
%135 = load i8*, i8** %4
%136 = call i32 @urlEncode(i8* %135)
%137 = load i8*, i8** %3
%138 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%139 = call i32 @format(i8* %137, i8* %138)
%140 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%141 = load i8, i8* %140
%142 = icmp ne i8 %141, 0
br i1 %142, label %143, label %159
143: ; preds = %134
%144 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%145 = load i8, i8* %144
%146 = icmp ne i8 %145, 0
br i1 %146, label %147, label %153
147: ; preds = %143
%148 = load i8*, i8** %4
%149 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%150 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%151 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%152 = call i32 (i8*, i8*, i8*, ...) @rsprintf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* %148, i8* %149, i8* %150, i8* %151)
br label %158
153: ; preds = %143
%154 = load i8*, i8** %4
%155 = getelementptr inbounds [256 x i8], [256 x i8]* %7, i64 0, i64 0
%156 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%157 = call i32 (i8*, i8*, i8*, ...) @rsprintf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0), i8* %154, i8* %155, i8* %156)
br label %158
158: ; preds = %153, %147
br label %173
159: ; preds = %134
%160 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%161 = load i8, i8* %160
%162 = icmp ne i8 %161, 0
br i1 %162, label %163, label %168
163: ; preds = %159
%164 = load i8*, i8** %4
%165 = getelementptr inbounds [256 x i8], [256 x i8]* %6, i64 0, i64 0
%166 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%167 = call i32 (i8*, i8*, i8*, ...) @rsprintf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0), i8* %164, i8* %165, i8* %166)
br label %172
168: ; preds = %159
%169 = load i8*, i8** %4
%170 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%171 = call i32 (i8*, i8*, i8*, ...) @rsprintf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0), i8* %169, i8* %170)
br label %172
172: ; preds = %168, %163
br label %173
173: ; preds = %172, %158
ret void
}

LLVM IR (-O2):
@.str = [71 x i8] c"<li><a href=\22/%s.html?comment=%s&param=%s\22 target=_blank>%s</a></li>\0D\0A\00"
@.str.1 = [60 x i8] c"<li><a href=\22/%s.html?param=%s\22 target=_blank>%s</a></li>\0D\0A\00"
@.str.2 = [64 x i8] c"<li><a href=\22/%s.html?comment=%s\22 target=contents>%s</a></li>\0D\0A\00"
@.str.3 = [53 x i8] c"<li><a href=\22/%s.html\22 target=contents>%s</a></li>\0D\0A\00"
define void @display_kumac(i8* %0, i8* %1) {
%3 = alloca [256 x i8]
%4 = alloca [256 x i8]
%5 = alloca [256 x i8]
%6 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%8 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
store i8 0, i8* %7
store i8 0, i8* %8
%9 = tail call i8* @strchr(i8* dereferenceable(1) %1, i8 signext 63)
%10 = icmp eq i8* %9, null
br i1 %10, label %24, label %11
11: ; preds = %2, %11
%12 = phi i8* [ %13, %11 ], [ %9, %2 ]
%13 = getelementptr inbounds i8, i8* %12, i64 1
%14 = load i8, i8* %13
%15 = icmp eq i8 %14, 32
br i1 %15, label %11, label %16
16: ; preds = %11
%17 = call i32 @strcpy(i8* %7, i8* %13)
br label %18
18: ; preds = %21, %16
%19 = phi i8* [ %7, %16 ], [ %22, %21 ]
%20 = load i8, i8* %19
switch i8 %20, label %21 [
i8 0, label %23
i8 32, label %23
i8 13, label %23
i8 10, label %23
]
21: ; preds = %18
%22 = getelementptr inbounds i8, i8* %19, i64 1
br label %18
23: ; preds = %18, %18, %18, %18
store i8 0, i8* %19
br label %24
24: ; preds = %23, %2
%25 = call i8* @strchr(i8* dereferenceable(1) %1, i8 signext 38)
%26 = icmp eq i8* %25, null
br i1 %26, label %40, label %27
27: ; preds = %24, %27
%28 = phi i8* [ %29, %27 ], [ %25, %24 ]
%29 = getelementptr inbounds i8, i8* %28, i64 1
%30 = load i8, i8* %29
%31 = icmp eq i8 %30, 32
br i1 %31, label %27, label %32
32: ; preds = %27
%33 = call i32 @strcpy(i8* %8, i8* %29)
br label %34
34: ; preds = %37, %32
%35 = phi i8* [ %8, %32 ], [ %38, %37 ]
%36 = load i8, i8* %35
switch i8 %36, label %37 [
i8 0, label %39
i8 32, label %39
i8 13, label %39
i8 10, label %39
]
37: ; preds = %34
%38 = getelementptr inbounds i8, i8* %35, i64 1
br label %34
39: ; preds = %34, %34, %34, %34
store i8 0, i8* %35
br label %40
40: ; preds = %39, %24
%41 = call i8* @strchr(i8* dereferenceable(1) %1, i8 signext 63)
%42 = icmp eq i8* %41, null
br i1 %42, label %44, label %43
43: ; preds = %40
store i8 0, i8* %41
br label %44
44: ; preds = %43, %40
%45 = call i8* @strchr(i8* dereferenceable(1) %1, i8 signext 38)
%46 = icmp eq i8* %45, null
br i1 %46, label %48, label %47
47: ; preds = %44
store i8 0, i8* %45
br label %48
48: ; preds = %47, %44
%49 = call i32 @urlEncode(i8* %1)
%50 = call i32 @format(i8* %0, i8* %6)
%51 = load i8, i8* %8
%52 = icmp eq i8 %51, 0
%53 = load i8, i8* %7
%54 = icmp eq i8 %53, 0
br i1 %52, label %60, label %55
55: ; preds = %48
br i1 %54, label %58, label %56
56: ; preds = %55
%57 = call i32 (i8*, i8*, i8*, ...) @rsprintf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0), i8* %1, i8* %7, i8* %8, i8* %6)
br label %65
58: ; preds = %55
%59 = call i32 (i8*, i8*, i8*, ...) @rsprintf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.1, i64 0, i64 0), i8* %1, i8* %8, i8* %6)
br label %65
60: ; preds = %48
br i1 %54, label %63, label %61
61: ; preds = %60
%62 = call i32 (i8*, i8*, i8*, ...) @rsprintf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0), i8* %1, i8* %7, i8* %6)
br label %65
63: ; preds = %60
%64 = call i32 (i8*, i8*, i8*, ...) @rsprintf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.3, i64 0, i64 0), i8* %1, i8* %6)
br label %65
65: ; preds = %61, %63, %56, %58
ret void
}