#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 snd_ctl_enum_info(struct snd_ctl_elem_info *, int, int,
                      char const *const *);
int snd_ac97_stac9758_input_jack_info(struct snd_kcontrol *kcontrol,
                                      struct snd_ctl_elem_info *uinfo) {
  static const char *const texts[7] = {
      "Mic2 Jack", "Mic1 Jack",       "Line In Jack", "Front Jack",
      "Rear Jack", "Center/LFE Jack", "Mute"};
  return snd_ctl_enum_info(uinfo, 1, 7, texts);
}


x86 assembly (clang, -O0):
<snd_ac97_stac9758_input_jack_info>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x1,%esi
mov    $0x7,%edx
lea    0x2cab(%rip),%rcx
call   1030 <snd_ctl_enum_info@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<snd_ac97_stac9758_input_jack_info>:
mov    %rsi,%rdi
lea    0x2cc6(%rip),%rcx
mov    $0x1,%esi
mov    $0x7,%edx
jmp    1030 <snd_ctl_enum_info@plt>

LLVM IR (-O0):
%struct.snd_kcontrol = type { i32 }
%struct.snd_ctl_elem_info = type { i32 }
@snd_ac97_stac9758_input_jack_info.texts = internal constant [7 x i8*] [i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i32 0, i32 0)]
@.str = [10 x i8] c"Mic2 Jack\00"
@.str.1 = [10 x i8] c"Mic1 Jack\00"
@.str.2 = [13 x i8] c"Line In Jack\00"
@.str.3 = [11 x i8] c"Front Jack\00"
@.str.4 = [10 x i8] c"Rear Jack\00"
@.str.5 = [16 x i8] c"Center/LFE Jack\00"
@.str.6 = [5 x i8] c"Mute\00"
define i32 @snd_ac97_stac9758_input_jack_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_ctl_elem_info*, %struct.snd_ctl_elem_info** %4
%6 = call i32 @snd_ctl_enum_info(%struct.snd_ctl_elem_info* %5, i32 1, i32 7, i8** getelementptr inbounds ([7 x i8*], [7 x i8*]* @snd_ac97_stac9758_input_jack_info.texts, i64 0, i64 0))
ret i32 %6
}

LLVM IR (-O2):
%struct.snd_kcontrol = type { i32 }
%struct.snd_ctl_elem_info = type { i32 }
@snd_ac97_stac9758_input_jack_info.texts = internal constant [7 x i8*] [i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i32 0, i32 0)]
@.str = [10 x i8] c"Mic2 Jack\00"
@.str.1 = [10 x i8] c"Mic1 Jack\00"
@.str.2 = [13 x i8] c"Line In Jack\00"
@.str.3 = [11 x i8] c"Front Jack\00"
@.str.4 = [10 x i8] c"Rear Jack\00"
@.str.5 = [16 x i8] c"Center/LFE Jack\00"
@.str.6 = [5 x i8] c"Mute\00"
define i32 @snd_ac97_stac9758_input_jack_info(%struct.snd_kcontrol* nocapture readnone %0, %struct.snd_ctl_elem_info* %1) {
%3 = tail call i32 @snd_ctl_enum_info(%struct.snd_ctl_elem_info* %1, i32 1, i32 7, i8** getelementptr inbounds ([7 x i8*], [7 x i8*]* @snd_ac97_stac9758_input_jack_info.texts, i64 0, i64 0))
ret i32 %3
}