#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*/ NvCtrlGetMultisampleModeName(int);
int /*<<< orphan*/ nv_msg(char const *, char *, ...);
void print_additional_fsaa_info(const char *name, unsigned int valid_fsaa_modes,
                                const char *indent) {
  int bit;
  nv_msg(indent, "\n");
  nv_msg(indent, "Note to assign 'FSAA' on the commandline, you may also "
                 "need to assign\n");
  nv_msg(indent, "'FSAAAppControlled' and 'FSAAAppEnhanced' to 0.\n");
  nv_msg(indent, "\n");
  nv_msg(indent, "Valid '%s' Values\n", name);
  nv_msg(indent, "  value - description\n");
  for (bit = 0; bit < 32; bit++) {
    if (valid_fsaa_modes & (1 << bit)) {
      nv_msg(indent, "   %2u   -   %s\n", bit,
             NvCtrlGetMultisampleModeName(bit));
    }
  }
}


x86 assembly (clang, -O0):
<print_additional_fsaa_info>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xf38(%rip),%rsi
mov    $0x0,%al
call   1030 <nv_msg@plt>
mov    -0x18(%rbp),%rdi
lea    0xeb0(%rip),%rsi
mov    $0x0,%al
call   1030 <nv_msg@plt>
mov    -0x18(%rbp),%rdi
lea    0xee5(%rip),%rsi
mov    $0x0,%al
call   1030 <nv_msg@plt>
mov    -0x18(%rbp),%rdi
lea    0xf02(%rip),%rsi
mov    $0x0,%al
call   1030 <nv_msg@plt>
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xeee(%rip),%rsi
mov    $0x0,%al
call   1030 <nv_msg@plt>
mov    -0x18(%rbp),%rdi
lea    0xeef(%rip),%rsi
mov    $0x0,%al
call   1030 <nv_msg@plt>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x20,-0x1c(%rbp)
jge    120e <print_additional_fsaa_info+0xee>
mov    -0xc(%rbp),%eax
mov    -0x1c(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     11fb <print_additional_fsaa_info+0xdb>
mov    -0x18(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%edi
call   1040 <NvCtrlGetMultisampleModeName@plt>
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%edx
mov    %eax,%ecx
lea    0xeae(%rip),%rsi
mov    $0x0,%al
call   1030 <nv_msg@plt>
jmp    1200 <print_additional_fsaa_info+0xe0>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11aa <print_additional_fsaa_info+0x8a>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_additional_fsaa_info>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rdx,%r15
mov    %esi,%ebp
mov    %rdi,%r14
lea    0xf40(%rip),%rbx
mov    %rdx,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <nv_msg@plt>
lea    0xeb6(%rip),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <nv_msg@plt>
lea    0xeec(%rip),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <nv_msg@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <nv_msg@plt>
lea    0xeff(%rip),%rsi
mov    %r15,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <nv_msg@plt>
lea    0xefe(%rip),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <nv_msg@plt>
lea    0xf04(%rip),%r14
xor    %ebx,%ebx
jmp    11b8 <print_additional_fsaa_info+0x98>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%ebx
cmp    $0x20,%ebx
je     11d7 <print_additional_fsaa_info+0xb7>
bt     %ebx,%ebp
jae    11b0 <print_additional_fsaa_info+0x90>
mov    %ebx,%edi
call   1040 <NvCtrlGetMultisampleModeName@plt>
mov    %r15,%rdi
mov    %r14,%rsi
mov    %ebx,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1030 <nv_msg@plt>
jmp    11b0 <print_additional_fsaa_info+0x90>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [71 x i8] c"Note to assign 'FSAA' on the commandline, you may also need to assign\0A\00"
@.str.2 = [49 x i8] c"'FSAAAppControlled' and 'FSAAAppEnhanced' to 0.\0A\00"
@.str.3 = [19 x i8] c"Valid '%s' Values\0A\00"
@.str.4 = [23 x i8] c" value - description\0A\00"
@.str.5 = [17 x i8] c" %2u - %s\0A\00"
define void @print_additional_fsaa_info(i8* %0, i32 %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
store i8* %2, i8** %6
%8 = load i8*, i8** %6
%9 = call i32 (i8*, i8*, ...) @nv_msg(i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%10 = load i8*, i8** %6
%11 = call i32 (i8*, i8*, ...) @nv_msg(i8* %10, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.1, i64 0, i64 0))
%12 = load i8*, i8** %6
%13 = call i32 (i8*, i8*, ...) @nv_msg(i8* %12, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0))
%14 = load i8*, i8** %6
%15 = call i32 (i8*, i8*, ...) @nv_msg(i8* %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%16 = load i8*, i8** %6
%17 = load i8*, i8** %4
%18 = call i32 (i8*, i8*, ...) @nv_msg(i8* %16, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %17)
%19 = load i8*, i8** %6
%20 = call i32 (i8*, i8*, ...) @nv_msg(i8* %19, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %7
br label %21
21: ; preds = %37, %3
%22 = load i32, i32* %7
%23 = icmp slt i32 %22, 32
br i1 %23, label %24, label %40
24: ; preds = %21
%25 = load i32, i32* %5
%26 = load i32, i32* %7
%27 = shl i32 1, %26
%28 = and i32 %25, %27
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %36
30: ; preds = %24
%31 = load i8*, i8** %6
%32 = load i32, i32* %7
%33 = load i32, i32* %7
%34 = call i32 @NvCtrlGetMultisampleModeName(i32 %33)
%35 = call i32 (i8*, i8*, ...) @nv_msg(i8* %31, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 %32, i32 %34)
br label %36
36: ; preds = %30, %24
br label %37
37: ; preds = %36
%38 = load i32, i32* %7
%39 = add nsw i32 %38, 1
store i32 %39, i32* %7
br label %21
40: ; preds = %21
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [71 x i8] c"Note to assign 'FSAA' on the commandline, you may also need to assign\0A\00"
@.str.2 = [49 x i8] c"'FSAAAppControlled' and 'FSAAAppEnhanced' to 0.\0A\00"
@.str.3 = [19 x i8] c"Valid '%s' Values\0A\00"
@.str.4 = [23 x i8] c" value - description\0A\00"
@.str.5 = [17 x i8] c" %2u - %s\0A\00"
define void @print_additional_fsaa_info(i8* %0, i32 %1, i8* %2) {
%4 = tail call i32 (i8*, i8*, ...) @nv_msg(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 (i8*, i8*, ...) @nv_msg(i8* %2, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 (i8*, i8*, ...) @nv_msg(i8* %2, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 (i8*, i8*, ...) @nv_msg(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 (i8*, i8*, ...) @nv_msg(i8* %2, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %0)
%9 = tail call i32 (i8*, i8*, ...) @nv_msg(i8* %2, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
br label %10
10: ; preds = %3, %18
%11 = phi i32 [ 0, %3 ], [ %19, %18 ]
%12 = shl nuw i32 1, %11
%13 = and i32 %12, %1
%14 = icmp eq i32 %13, 0
br i1 %14, label %18, label %15
15: ; preds = %10
%16 = tail call i32 @NvCtrlGetMultisampleModeName(i32 %11)
%17 = tail call i32 (i8*, i8*, ...) @nv_msg(i8* %2, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 %11, i32 %16)
br label %18
18: ; preds = %10, %15
%19 = add nuw nsw i32 %11, 1
%20 = icmp eq i32 %19, 32
br i1 %20, label %21, label %10
21: ; preds = %18
ret void
}