int kissoptions(i, value, rec)
int i;
char value[];
char rec[];
{
  int err = 255;
  char opt1[12] = "";
  char opt2[12] = "";
  char opt3[12] = "";
  char opt4[12] = "";
  char opt5[12] = "";
  char opt6[12] = "";
  char opt7[12] = "";
  char opt8[12] = "";
  sscanf(value, "%[^,+],%[^,+],%[^,+],%[^,+],%[^,+],%[^,+],%[^,+],%[^,+]", opt1,
         opt2, opt3, opt4, opt5, opt6, opt6, opt8);
  if (opt1[0] != '\0') {
    do_kiss(opt1, rec);
  }
  if (opt2[0] != '\0') {
    do_kiss(opt2, rec);
  }
  if (opt3[0] != '\0') {
    do_kiss(opt3, rec);
  }
  if (opt4[0] != '\0') {
    do_kiss(opt4, rec);
  }
  if (opt5[0] != '\0') {
    do_kiss(opt5, rec);
  }
  if (opt6[0] != '\0') {
    do_kiss(opt6, rec);
  }
  if (opt7[0] != '\0') {
    do_kiss(opt7, rec);
  }
  if (opt8[0] != '\0') {
    do_kiss(opt8, rec);
  }
  return (1);
}


x86 assembly (clang, -O0):
<kissoptions>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0xa8,%rsp
mov    %edi,-0xc(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
movl   $0xff,-0x24(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1030 <memset@plt>
lea    -0x3c(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1030 <memset@plt>
lea    -0x48(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1030 <memset@plt>
lea    -0x54(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1030 <memset@plt>
lea    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1030 <memset@plt>
lea    -0x6c(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1030 <memset@plt>
lea    -0x78(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1030 <memset@plt>
lea    -0x84(%rbp),%rdi
xor    %esi,%esi
mov    $0xc,%edx
call   1030 <memset@plt>
mov    -0x18(%rbp),%rdi
lea    -0x30(%rbp),%rdx
lea    -0x3c(%rbp),%rcx
lea    -0x48(%rbp),%r8
lea    -0x54(%rbp),%r9
lea    -0x60(%rbp),%rbx
lea    -0x6c(%rbp),%r11
lea    -0x6c(%rbp),%r10
lea    -0x84(%rbp),%rax
lea    0xe01(%rip),%rsi
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
mov    $0x0,%al
call   1040 <sscanf@plt>
movsbl -0x30(%rbp),%eax
cmp    $0x0,%eax
je     1235 <kissoptions+0x105>
lea    -0x30(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1050 <do_kiss@plt>
movsbl -0x3c(%rbp),%eax
cmp    $0x0,%eax
je     1251 <kissoptions+0x121>
lea    -0x3c(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1050 <do_kiss@plt>
movsbl -0x48(%rbp),%eax
cmp    $0x0,%eax
je     126d <kissoptions+0x13d>
lea    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1050 <do_kiss@plt>
movsbl -0x54(%rbp),%eax
cmp    $0x0,%eax
je     1289 <kissoptions+0x159>
lea    -0x54(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1050 <do_kiss@plt>
movsbl -0x60(%rbp),%eax
cmp    $0x0,%eax
je     12a5 <kissoptions+0x175>
lea    -0x60(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1050 <do_kiss@plt>
movsbl -0x6c(%rbp),%eax
cmp    $0x0,%eax
je     12c1 <kissoptions+0x191>
lea    -0x6c(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1050 <do_kiss@plt>
movsbl -0x78(%rbp),%eax
cmp    $0x0,%eax
je     12dd <kissoptions+0x1ad>
lea    -0x78(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1050 <do_kiss@plt>
movsbl -0x84(%rbp),%eax
cmp    $0x0,%eax
je     12ff <kissoptions+0x1cf>
lea    -0x84(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1050 <do_kiss@plt>
mov    $0x1,%eax
add    $0xa8,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<kissoptions>:
push   %r14
push   %rbx
sub    $0x78,%rsp
mov    %rdx,%rbx
mov    %rsi,%rdi
movl   $0x0,0x70(%rsp)
movq   $0x0,0x68(%rsp)
movl   $0x0,0x60(%rsp)
movq   $0x0,0x58(%rsp)
movl   $0x0,0x50(%rsp)
movq   $0x0,0x48(%rsp)
movl   $0x0,0x40(%rsp)
movq   $0x0,0x38(%rsp)
movl   $0x0,0x30(%rsp)
movq   $0x0,0x28(%rsp)
movl   $0x0,0x20(%rsp)
movq   $0x0,0x18(%rsp)
movl   $0x0,0x10(%rsp)
movq   $0x0,0x8(%rsp)
lea    0x8(%rsp),%r10
lea    0x18(%rsp),%r11
lea    0x28(%rsp),%r14
lea    0xe46(%rip),%rsi
lea    0x68(%rsp),%rdx
lea    0x58(%rsp),%rcx
lea    0x48(%rsp),%r8
lea    0x38(%rsp),%r9
xor    %eax,%eax
push   %r10
push   %r11
push   %r11
push   %r14
call   1030 <sscanf@plt>
add    $0x20,%rsp
cmpb   $0x0,0x68(%rsp)
je     11f7 <kissoptions+0xd7>
lea    0x68(%rsp),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <do_kiss@plt>
cmpb   $0x0,0x58(%rsp)
je     120d <kissoptions+0xed>
lea    0x58(%rsp),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <do_kiss@plt>
cmpb   $0x0,0x48(%rsp)
je     1223 <kissoptions+0x103>
lea    0x48(%rsp),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <do_kiss@plt>
cmpb   $0x0,0x38(%rsp)
je     1239 <kissoptions+0x119>
lea    0x38(%rsp),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <do_kiss@plt>
cmpb   $0x0,0x28(%rsp)
je     124f <kissoptions+0x12f>
lea    0x28(%rsp),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <do_kiss@plt>
cmpb   $0x0,0x18(%rsp)
je     1265 <kissoptions+0x145>
lea    0x18(%rsp),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <do_kiss@plt>
cmpb   $0x0,0x8(%rsp)
je     127b <kissoptions+0x15b>
lea    0x8(%rsp),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <do_kiss@plt>
mov    $0x1,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [56 x i8] c"%[^,+],%[^,+],%[^,+],%[^,+],%[^,+],%[^,+],%[^,+],%[^,+]\00"
define i32 @kissoptions(i32 %0, i8* %1, i8* %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca [12 x i8]
%9 = alloca [12 x i8]
%10 = alloca [12 x i8]
%11 = alloca [12 x i8]
%12 = alloca [12 x i8]
%13 = alloca [12 x i8]
%14 = alloca [12 x i8]
%15 = alloca [12 x i8]
store i32 %0, i32* %4
store i8* %1, i8** %5
store i8* %2, i8** %6
store i32 255, i32* %7
%16 = bitcast [12 x i8]* %8 to i8*
%17 = bitcast [12 x i8]* %9 to i8*
%18 = bitcast [12 x i8]* %10 to i8*
%19 = bitcast [12 x i8]* %11 to i8*
%20 = bitcast [12 x i8]* %12 to i8*
%21 = bitcast [12 x i8]* %13 to i8*
%22 = bitcast [12 x i8]* %14 to i8*
%23 = bitcast [12 x i8]* %15 to i8*
%24 = load i8*, i8** %5
%25 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 0
%26 = getelementptr inbounds [12 x i8], [12 x i8]* %9, i64 0, i64 0
%27 = getelementptr inbounds [12 x i8], [12 x i8]* %10, i64 0, i64 0
%28 = getelementptr inbounds [12 x i8], [12 x i8]* %11, i64 0, i64 0
%29 = getelementptr inbounds [12 x i8], [12 x i8]* %12, i64 0, i64 0
%30 = getelementptr inbounds [12 x i8], [12 x i8]* %13, i64 0, i64 0
%31 = getelementptr inbounds [12 x i8], [12 x i8]* %13, i64 0, i64 0
%32 = getelementptr inbounds [12 x i8], [12 x i8]* %15, i64 0, i64 0
%33 = call i32 (i8*, i8*, ...) @sscanf(i8* %24, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0), i8* %25, i8* %26, i8* %27, i8* %28, i8* %29, i8* %30, i8* %31, i8* %32)
%34 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 0
%35 = load i8, i8* %34
%36 = sext i8 %35 to i32
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %42
38: ; preds = %3
%39 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 0
%40 = load i8*, i8** %6
%41 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @do_kiss to i32 (i8*, i8*, ...)*)(i8* %39, i8* %40)
br label %42
42: ; preds = %38, %3
%43 = getelementptr inbounds [12 x i8], [12 x i8]* %9, i64 0, i64 0
%44 = load i8, i8* %43
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 0
br i1 %46, label %47, label %51
47: ; preds = %42
%48 = getelementptr inbounds [12 x i8], [12 x i8]* %9, i64 0, i64 0
%49 = load i8*, i8** %6
%50 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @do_kiss to i32 (i8*, i8*, ...)*)(i8* %48, i8* %49)
br label %51
51: ; preds = %47, %42
%52 = getelementptr inbounds [12 x i8], [12 x i8]* %10, i64 0, i64 0
%53 = load i8, i8* %52
%54 = sext i8 %53 to i32
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %60
56: ; preds = %51
%57 = getelementptr inbounds [12 x i8], [12 x i8]* %10, i64 0, i64 0
%58 = load i8*, i8** %6
%59 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @do_kiss to i32 (i8*, i8*, ...)*)(i8* %57, i8* %58)
br label %60
60: ; preds = %56, %51
%61 = getelementptr inbounds [12 x i8], [12 x i8]* %11, i64 0, i64 0
%62 = load i8, i8* %61
%63 = sext i8 %62 to i32
%64 = icmp ne i32 %63, 0
br i1 %64, label %65, label %69
65: ; preds = %60
%66 = getelementptr inbounds [12 x i8], [12 x i8]* %11, i64 0, i64 0
%67 = load i8*, i8** %6
%68 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @do_kiss to i32 (i8*, i8*, ...)*)(i8* %66, i8* %67)
br label %69
69: ; preds = %65, %60
%70 = getelementptr inbounds [12 x i8], [12 x i8]* %12, i64 0, i64 0
%71 = load i8, i8* %70
%72 = sext i8 %71 to i32
%73 = icmp ne i32 %72, 0
br i1 %73, label %74, label %78
74: ; preds = %69
%75 = getelementptr inbounds [12 x i8], [12 x i8]* %12, i64 0, i64 0
%76 = load i8*, i8** %6
%77 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @do_kiss to i32 (i8*, i8*, ...)*)(i8* %75, i8* %76)
br label %78
78: ; preds = %74, %69
%79 = getelementptr inbounds [12 x i8], [12 x i8]* %13, i64 0, i64 0
%80 = load i8, i8* %79
%81 = sext i8 %80 to i32
%82 = icmp ne i32 %81, 0
br i1 %82, label %83, label %87
83: ; preds = %78
%84 = getelementptr inbounds [12 x i8], [12 x i8]* %13, i64 0, i64 0
%85 = load i8*, i8** %6
%86 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @do_kiss to i32 (i8*, i8*, ...)*)(i8* %84, i8* %85)
br label %87
87: ; preds = %83, %78
%88 = getelementptr inbounds [12 x i8], [12 x i8]* %14, i64 0, i64 0
%89 = load i8, i8* %88
%90 = sext i8 %89 to i32
%91 = icmp ne i32 %90, 0
br i1 %91, label %92, label %96
92: ; preds = %87
%93 = getelementptr inbounds [12 x i8], [12 x i8]* %14, i64 0, i64 0
%94 = load i8*, i8** %6
%95 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @do_kiss to i32 (i8*, i8*, ...)*)(i8* %93, i8* %94)
br label %96
96: ; preds = %92, %87
%97 = getelementptr inbounds [12 x i8], [12 x i8]* %15, i64 0, i64 0
%98 = load i8, i8* %97
%99 = sext i8 %98 to i32
%100 = icmp ne i32 %99, 0
br i1 %100, label %101, label %105
101: ; preds = %96
%102 = getelementptr inbounds [12 x i8], [12 x i8]* %15, i64 0, i64 0
%103 = load i8*, i8** %6
%104 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @do_kiss to i32 (i8*, i8*, ...)*)(i8* %102, i8* %103)
br label %105
105: ; preds = %101, %96
ret i32 1
}

LLVM IR (-O2):
@.str = [56 x i8] c"%[^,+],%[^,+],%[^,+],%[^,+],%[^,+],%[^,+],%[^,+],%[^,+]\00"
define i32 @kissoptions(i32 %0, i8* nocapture %1, i8* %2) {
%4 = alloca [12 x i8]
%5 = alloca [12 x i8]
%6 = alloca [12 x i8]
%7 = alloca [12 x i8]
%8 = alloca [12 x i8]
%9 = alloca [12 x i8]
%10 = alloca [12 x i8]
%11 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 0
%12 = getelementptr inbounds [12 x i8], [12 x i8]* %5, i64 0, i64 0
%13 = getelementptr inbounds [12 x i8], [12 x i8]* %6, i64 0, i64 0
%14 = getelementptr inbounds [12 x i8], [12 x i8]* %7, i64 0, i64 0
%15 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 0
%16 = getelementptr inbounds [12 x i8], [12 x i8]* %9, i64 0, i64 0
%17 = getelementptr inbounds [12 x i8], [12 x i8]* %10, i64 0, i64 0
%18 = call i32 (i8*, i8*, ...) @sscanf(i8* %1, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0), i8* %11, i8* %12, i8* %13, i8* %14, i8* %15, i8* %16, i8* %16, i8* %17)
%19 = load i8, i8* %11
%20 = icmp eq i8 %19, 0
br i1 %20, label %23, label %21
21: ; preds = %3
%22 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @do_kiss to i32 (i8*, i8*, ...)*)(i8* %11, i8* %2)
br label %23
23: ; preds = %21, %3
%24 = load i8, i8* %12
%25 = icmp eq i8 %24, 0
br i1 %25, label %28, label %26
26: ; preds = %23
%27 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @do_kiss to i32 (i8*, i8*, ...)*)(i8* %12, i8* %2)
br label %28
28: ; preds = %26, %23
%29 = load i8, i8* %13
%30 = icmp eq i8 %29, 0
br i1 %30, label %33, label %31
31: ; preds = %28
%32 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @do_kiss to i32 (i8*, i8*, ...)*)(i8* %13, i8* %2)
br label %33
33: ; preds = %31, %28
%34 = load i8, i8* %14
%35 = icmp eq i8 %34, 0
br i1 %35, label %38, label %36
36: ; preds = %33
%37 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @do_kiss to i32 (i8*, i8*, ...)*)(i8* %14, i8* %2)
br label %38
38: ; preds = %36, %33
%39 = load i8, i8* %15
%40 = icmp eq i8 %39, 0
br i1 %40, label %43, label %41
41: ; preds = %38
%42 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @do_kiss to i32 (i8*, i8*, ...)*)(i8* %15, i8* %2)
br label %43
43: ; preds = %41, %38
%44 = load i8, i8* %16
%45 = icmp eq i8 %44, 0
br i1 %45, label %48, label %46
46: ; preds = %43
%47 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @do_kiss to i32 (i8*, i8*, ...)*)(i8* %16, i8* %2)
br label %48
48: ; preds = %46, %43
%49 = load i8, i8* %17
%50 = icmp eq i8 %49, 0
br i1 %50, label %53, label %51
51: ; preds = %48
%52 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @do_kiss to i32 (i8*, i8*, ...)*)(i8* %17, i8* %2)
br label %53
53: ; preds = %51, %48
ret i32 1
}