#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 kongou_control {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ kongou_field_init(struct kongou_control *, int, char *, int,
                                     int, int);
int kongou_control_init_short(struct kongou_control *control) {
  kongou_field_init(control, 5, "EZOOM", 0x0000, 0x00e0, 0000);
  kongou_field_init(control, 6, "MIRROR", 0x0000, 0x0003, 0000);
  kongou_field_init(control, 7, "EFFECT", 0x0000, 0x0003, 0000);
  return 0;
}


x86 assembly (clang, -O0):
<kongou_control_init_short>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x5,%esi
lea    0xed4(%rip),%rdx
xor    %r9d,%r9d
mov    $0xe0,%r8d
mov    %r9d,%ecx
call   1030 <kongou_field_init@plt>
mov    -0x8(%rbp),%rdi
mov    $0x6,%esi
lea    0xeb9(%rip),%rdx
xor    %r9d,%r9d
mov    $0x3,%r8d
mov    %r9d,%ecx
call   1030 <kongou_field_init@plt>
mov    -0x8(%rbp),%rdi
mov    $0x7,%esi
lea    0xe9f(%rip),%rdx
xor    %r9d,%r9d
mov    $0x3,%r8d
mov    %r9d,%ecx
call   1030 <kongou_field_init@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<kongou_control_init_short>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rdx
mov    $0x5,%esi
xor    %ecx,%ecx
mov    $0xe0,%r8d
xor    %r9d,%r9d
call   1030 <kongou_field_init@plt>
lea    0xecf(%rip),%rdx
mov    %rbx,%rdi
mov    $0x6,%esi
xor    %ecx,%ecx
mov    $0x3,%r8d
xor    %r9d,%r9d
call   1030 <kongou_field_init@plt>
lea    0xeb7(%rip),%rdx
mov    %rbx,%rdi
mov    $0x7,%esi
xor    %ecx,%ecx
mov    $0x3,%r8d
xor    %r9d,%r9d
call   1030 <kongou_field_init@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
%struct.kongou_control = type { i32 }
@.str = [6 x i8] c"EZOOM\00"
@.str.1 = [7 x i8] c"MIRROR\00"
@.str.2 = [7 x i8] c"EFFECT\00"
define i32 @kongou_control_init_short(%struct.kongou_control* %0) {
%2 = alloca %struct.kongou_control*
store %struct.kongou_control* %0, %struct.kongou_control** %2
%3 = load %struct.kongou_control*, %struct.kongou_control** %2
%4 = call i32 @kongou_field_init(%struct.kongou_control* %3, i32 5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 0, i32 224, i32 0)
%5 = load %struct.kongou_control*, %struct.kongou_control** %2
%6 = call i32 @kongou_field_init(%struct.kongou_control* %5, i32 6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 3, i32 0)
%7 = load %struct.kongou_control*, %struct.kongou_control** %2
%8 = call i32 @kongou_field_init(%struct.kongou_control* %7, i32 7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 3, i32 0)
ret i32 0
}

LLVM IR (-O2):
%struct.kongou_control = type { i32 }
@.str = [6 x i8] c"EZOOM\00"
@.str.1 = [7 x i8] c"MIRROR\00"
@.str.2 = [7 x i8] c"EFFECT\00"
define i32 @kongou_control_init_short(%struct.kongou_control* %0) {
%2 = tail call i32 @kongou_field_init(%struct.kongou_control* %0, i32 5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 0, i32 224, i32 0)
%3 = tail call i32 @kongou_field_init(%struct.kongou_control* %0, i32 6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 3, i32 0)
%4 = tail call i32 @kongou_field_init(%struct.kongou_control* %0, i32 7, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 3, i32 0)
ret i32 0
}