#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 */
struct snd_kcontrol {
  int dummy;
};
struct snd_ctl_elem_info {
  int dummy;
};

/* Variables and functions */
int ac97_enum_text_info(struct snd_kcontrol *, struct snd_ctl_elem_info *,
                        char const **, int);
int snd_ac97_vt1617a_smart51_info(struct snd_kcontrol *kcontrol,
                                  struct snd_ctl_elem_info *uinfo) {
  static const char *texts[] = {"LineIn Mic1",     "LineIn Mic1 Mic3",
                                "Surr LFE/C Mic3", "LineIn LFE/C Mic3",
                                "LineIn Mic2",     "LineIn Mic2 Mic1",
                                "Surr LFE Mic1",   "Surr LFE Mic1 Mic2"};
  return ac97_enum_text_info(kcontrol, uinfo, texts, 8);
}


x86 assembly (clang, -O0):
<snd_ac97_vt1617a_smart51_info>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0x2f01(%rip),%rdx
mov    $0x8,%ecx
call   1030 <ac97_enum_text_info@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<snd_ac97_vt1617a_smart51_info>:
lea    0x2f19(%rip),%rdx
mov    $0x8,%ecx
jmp    1030 <ac97_enum_text_info@plt>

LLVM IR (-O0):
%struct.snd_kcontrol = type { i32 }
%struct.snd_ctl_elem_info = type { i32 }
@snd_ac97_vt1617a_smart51_info.texts = internal global [8 x i8*] [i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i32 0, i32 0)]
@.str = [12 x i8] c"LineIn Mic1\00"
@.str.1 = [17 x i8] c"LineIn Mic1 Mic3\00"
@.str.2 = [16 x i8] c"Surr LFE/C Mic3\00"
@.str.3 = [18 x i8] c"LineIn LFE/C Mic3\00"
@.str.4 = [12 x i8] c"LineIn Mic2\00"
@.str.5 = [17 x i8] c"LineIn Mic2 Mic1\00"
@.str.6 = [14 x i8] c"Surr LFE Mic1\00"
@.str.7 = [19 x i8] c"Surr LFE Mic1 Mic2\00"
define i32 @snd_ac97_vt1617a_smart51_info(%struct.snd_kcontrol* %0, %struct.snd_ctl_elem_info* %1) {
%3 = alloca %struct.snd_kcontrol*
%4 = alloca %struct.snd_ctl_elem_info*
store %struct.snd_kcontrol* %0, %struct.snd_kcontrol** %3
store %struct.snd_ctl_elem_info* %1, %struct.snd_ctl_elem_info** %4
%5 = load %struct.snd_kcontrol*, %struct.snd_kcontrol** %3
%6 = load %struct.snd_ctl_elem_info*, %struct.snd_ctl_elem_info** %4
%7 = call i32 @ac97_enum_text_info(%struct.snd_kcontrol* %5, %struct.snd_ctl_elem_info* %6, i8** getelementptr inbounds ([8 x i8*], [8 x i8*]* @snd_ac97_vt1617a_smart51_info.texts, i64 0, i64 0), i32 8)
ret i32 %7
}

LLVM IR (-O2):
%struct.snd_kcontrol = type { i32 }
%struct.snd_ctl_elem_info = type { i32 }
@snd_ac97_vt1617a_smart51_info.texts = internal global [8 x i8*] [i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i32 0, i32 0)]
@.str = [12 x i8] c"LineIn Mic1\00"
@.str.1 = [17 x i8] c"LineIn Mic1 Mic3\00"
@.str.2 = [16 x i8] c"Surr LFE/C Mic3\00"
@.str.3 = [18 x i8] c"LineIn LFE/C Mic3\00"
@.str.4 = [12 x i8] c"LineIn Mic2\00"
@.str.5 = [17 x i8] c"LineIn Mic2 Mic1\00"
@.str.6 = [14 x i8] c"Surr LFE Mic1\00"
@.str.7 = [19 x i8] c"Surr LFE Mic1 Mic2\00"
define i32 @snd_ac97_vt1617a_smart51_info(%struct.snd_kcontrol* %0, %struct.snd_ctl_elem_info* %1) {
%3 = tail call i32 @ac97_enum_text_info(%struct.snd_kcontrol* %0, %struct.snd_ctl_elem_info* %1, i8** getelementptr inbounds ([8 x i8*], [8 x i8*]* @snd_ac97_vt1617a_smart51_info.texts, i64 0, i64 0), i32 8)
ret i32 %3
}