#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 feature_header {
  int dummy;
};
struct build_feature_devs_info {
  int dummy;
};

/* Variables and functions */
int create_feature_instance(struct build_feature_devs_info *,
                            struct feature_header *, int /*<<< orphan*/,
                            int /*<<< orphan*/, unsigned int, unsigned int);
int /*<<< orphan*/ parse_feature_irqs(struct build_feature_devs_info *,
                                      struct feature_header *, unsigned int *,
                                      unsigned int *);
int parse_feature_fme_private(struct build_feature_devs_info *binfo,
                              struct feature_header *hdr) {
  unsigned int vec_start = 0;
  unsigned int vec_cnt = 0;
  parse_feature_irqs(binfo, hdr, &vec_start, &vec_cnt);
  return create_feature_instance(binfo, hdr, 0, 0, vec_start, vec_cnt);
}


x86 assembly (clang, -O0):
<parse_feature_fme_private>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x14(%rbp),%rdx
lea    -0x18(%rbp),%rcx
call   1040 <parse_feature_irqs@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%r8d
mov    -0x18(%rbp),%r9d
xor    %ecx,%ecx
mov    %ecx,%edx
call   1030 <create_feature_instance@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_feature_fme_private>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
movl   $0x0,0x4(%rsp)
movl   $0x0,(%rsp)
lea    0x4(%rsp),%rdx
mov    %rsp,%rcx
call   1040 <parse_feature_irqs@plt>
mov    0x4(%rsp),%r8d
mov    (%rsp),%r9d
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %edx,%edx
xor    %ecx,%ecx
call   1030 <create_feature_instance@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.build_feature_devs_info = type { i32 }
%struct.feature_header = type { i32 }
define i32 @parse_feature_fme_private(%struct.build_feature_devs_info* %0, %struct.feature_header* %1) {
%3 = alloca %struct.build_feature_devs_info*
%4 = alloca %struct.feature_header*
%5 = alloca i32
%6 = alloca i32
store %struct.build_feature_devs_info* %0, %struct.build_feature_devs_info** %3
store %struct.feature_header* %1, %struct.feature_header** %4
store i32 0, i32* %5
store i32 0, i32* %6
%7 = load %struct.build_feature_devs_info*, %struct.build_feature_devs_info** %3
%8 = load %struct.feature_header*, %struct.feature_header** %4
%9 = call i32 @parse_feature_irqs(%struct.build_feature_devs_info* %7, %struct.feature_header* %8, i32* %5, i32* %6)
%10 = load %struct.build_feature_devs_info*, %struct.build_feature_devs_info** %3
%11 = load %struct.feature_header*, %struct.feature_header** %4
%12 = load i32, i32* %5
%13 = load i32, i32* %6
%14 = call i32 @create_feature_instance(%struct.build_feature_devs_info* %10, %struct.feature_header* %11, i32 0, i32 0, i32 %12, i32 %13)
ret i32 %14
}

LLVM IR (-O2):
%struct.build_feature_devs_info = type { i32 }
%struct.feature_header = type { i32 }
define i32 @parse_feature_fme_private(%struct.build_feature_devs_info* %0, %struct.feature_header* %1) {
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%6 = bitcast i32* %4 to i8*
store i32 0, i32* %4
%7 = call i32 @parse_feature_irqs(%struct.build_feature_devs_info* %0, %struct.feature_header* %1, i32* %3, i32* %4)
%8 = load i32, i32* %3
%9 = load i32, i32* %4
%10 = call i32 @create_feature_instance(%struct.build_feature_devs_info* %0, %struct.feature_header* %1, i32 0, i32 0, i32 %8, i32 %9)
ret i32 %10
}