void YesNoPullDown(char *cFieldName, unsigned uSelect, unsigned uMode) {
  char cHidden[100] = {""};
  char *cMode = "";
  if (!uMode)
    cMode = "disabled";
  printf("<select name=cYesNo%s %s>\n", cFieldName, cMode);
  if (uSelect == 0)
    printf("<option selected>No</option>\n");
  else
    printf("<option>No</option>\n");
  if (uSelect == 1) {
    printf("<option selected>Yes</option>\n");
    if (!uMode)
      sprintf(cHidden, "<input type=hidden name=cYesNo%s value='Yes'>\n",
              cFieldName);
  } else {
    printf("<option>Yes</option>\n");
  }
  printf("</select>\n");
  if (cHidden[0])
    printf("%s", cHidden);
}


x86 assembly (clang, -O0):
<YesNoPullDown>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
lea    -0x80(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1040 <memset@plt>
lea    0xf48(%rip),%rax
mov    %rax,-0x88(%rbp)
cmpl   $0x0,-0x10(%rbp)
jne    117b <YesNoPullDown+0x4b>
lea    0xe8c(%rip),%rax
mov    %rax,-0x88(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x88(%rbp),%rdx
lea    0xe7c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0xc(%rbp)
jne    11b1 <YesNoPullDown+0x81>
lea    0xe7f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11bf <YesNoPullDown+0x8f>
lea    0xe8a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x1,-0xc(%rbp)
jne    11fc <YesNoPullDown+0xcc>
lea    0xe87(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x10(%rbp)
jne    11f7 <YesNoPullDown+0xc7>
lea    -0x80(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xe86(%rip),%rsi
mov    $0x0,%al
call   1050 <sprintf@plt>
jmp    120a <YesNoPullDown+0xda>
lea    0xea2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpb   $0x0,-0x80(%rbp)
je     1234 <YesNoPullDown+0x104>
lea    -0x80(%rbp),%rsi
lea    0xe99(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<YesNoPullDown>:
push   %rbp
push   %r14
push   %rbx
sub    $0x70,%rsp
mov    %edx,%ebp
mov    %esi,%ebx
mov    %rdi,%r14
xorps  %xmm0,%xmm0
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
movl   $0x0,0x60(%rsp)
test   %edx,%edx
lea    0xe90(%rip),%rax
lea    0xedb(%rip),%rdx
cmove  %rax,%rdx
lea    0xe87(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
test   %ebx,%ebx
je     11f2 <YesNoPullDown+0xc2>
lea    0xebf(%rip),%rdi
call   1030 <puts@plt>
cmp    $0x1,%ebx
jne    11fe <YesNoPullDown+0xce>
lea    0xee1(%rip),%rdi
call   1030 <puts@plt>
test   %ebp,%ebp
jne    120a <YesNoPullDown+0xda>
lea    0xe6c(%rip),%rsi
mov    %rsp,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1050 <sprintf@plt>
mov    (%rsp),%bl
lea    0xeb0(%rip),%rdi
call   1030 <puts@plt>
test   %bl,%bl
je     11e9 <YesNoPullDown+0xb9>
lea    0xe74(%rip),%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x70,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret
lea    0xeae(%rip),%rdi
call   1030 <puts@plt>
lea    0xe65(%rip),%rdi
call   1030 <puts@plt>
lea    0xe6e(%rip),%rdi
add    $0x70,%rsp
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [9 x i8] c"disabled\00"
@.str.2 = [27 x i8] c"<select name=cYesNo%s %s>\0A\00"
@.str.3 = [30 x i8] c"<option selected>No</option>\0A\00"
@.str.4 = [21 x i8] c"<option>No</option>\0A\00"
@.str.5 = [31 x i8] c"<option selected>Yes</option>\0A\00"
@.str.6 = [47 x i8] c"<input type=hidden name=cYesNo%s value='Yes'>\0A\00"
@.str.7 = [22 x i8] c"<option>Yes</option>\0A\00"
@.str.8 = [11 x i8] c"</select>\0A\00"
@.str.9 = [3 x i8] c"%s\00"
define void @YesNoPullDown(i8* %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca [100 x i8]
%8 = alloca i8*
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%9 = bitcast [100 x i8]* %7 to i8*
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %8
%10 = load i32, i32* %6
%11 = icmp ne i32 %10, 0
br i1 %11, label %13, label %12
12: ; preds = %3
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8** %8
br label %13
13: ; preds = %12, %3
%14 = load i8*, i8** %4
%15 = load i8*, i8** %8
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %14, i8* %15)
%17 = load i32, i32* %5
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %13
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
br label %23
21: ; preds = %13
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
br label %23
23: ; preds = %21, %19
%24 = load i32, i32* %5
%25 = icmp eq i32 %24, 1
br i1 %25, label %26, label %35
26: ; preds = %23
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0))
%28 = load i32, i32* %6
%29 = icmp ne i32 %28, 0
br i1 %29, label %34, label %30
30: ; preds = %26
%31 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%32 = load i8*, i8** %4
%33 = call i32 (i8*, i8*, ...) @sprintf(i8* %31, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0), i8* %32)
br label %34
34: ; preds = %30, %26
br label %37
35: ; preds = %23
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
br label %37
37: ; preds = %35, %34
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
%39 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%40 = load i8, i8* %39
%41 = icmp ne i8 %40, 0
br i1 %41, label %42, label %45
42: ; preds = %37
%43 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %43)
br label %45
45: ; preds = %42, %37
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [9 x i8] c"disabled\00"
@.str.2 = [27 x i8] c"<select name=cYesNo%s %s>\0A\00"
@.str.6 = [47 x i8] c"<input type=hidden name=cYesNo%s value='Yes'>\0A\00"
@.str.9 = [3 x i8] c"%s\00"
@str = [20 x i8] c"<option>No</option>\00"
@str.10 = [21 x i8] c"<option>Yes</option>\00"
@str.11 = [10 x i8] c"</select>\00"
@str.12 = [30 x i8] c"<option selected>Yes</option>\00"
@str.13 = [29 x i8] c"<option selected>No</option>\00"
define void @YesNoPullDown(i8* %0, i32 %1, i32 %2) {
%4 = alloca [100 x i8]
%5 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%6 = icmp eq i32 %2, 0
%7 = select i1 %6, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %0, i8* %7)
%9 = icmp eq i32 %1, 0
br i1 %9, label %10, label %12
10: ; preds = %3
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.13, i64 0, i64 0))
br label %17
12: ; preds = %3
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
%14 = icmp eq i32 %1, 1
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.12, i64 0, i64 0))
br i1 %6, label %21, label %19
17: ; preds = %10, %12
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.10, i64 0, i64 0))
br label %19
19: ; preds = %15, %17
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.11, i64 0, i64 0))
br label %28
21: ; preds = %15
%22 = call i32 (i8*, i8*, ...) @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0), i8* %0)
%23 = load i8, i8* %5
%24 = icmp eq i8 %23, 0
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.11, i64 0, i64 0))
br i1 %24, label %28, label %26
26: ; preds = %21
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %5)
br label %28
28: ; preds = %19, %26, %21
ret void
}