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

/* Variables and functions */
int /*<<< orphan*/ default_gen(struct defstate *, int, float *, int);
void default_mix(void *ud, float out[], int count) {
  struct defstate *data = ud;
  int i;
  for (i = 0; i < 16; i++) {
    default_gen(data, i, out, count);
  }
}


x86 assembly (clang, -O0):
<default_mix>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
cmpl   $0x10,-0x24(%rbp)
jge    115d <default_mix+0x4d>
mov    -0x20(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x14(%rbp),%ecx
call   1030 <default_gen@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1132 <default_mix+0x22>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<default_mix>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %rsi,%rbx
mov    %rdi,%rbp
xor    %esi,%esi
mov    %rbx,%rdx
mov    %r14d,%ecx
call   1030 <default_gen@plt>
mov    %rbp,%rdi
mov    $0x1,%esi
mov    %rbx,%rdx
mov    %r14d,%ecx
call   1030 <default_gen@plt>
mov    %rbp,%rdi
mov    $0x2,%esi
mov    %rbx,%rdx
mov    %r14d,%ecx
call   1030 <default_gen@plt>
mov    %rbp,%rdi
mov    $0x3,%esi
mov    %rbx,%rdx
mov    %r14d,%ecx
call   1030 <default_gen@plt>
mov    %rbp,%rdi
mov    $0x4,%esi
mov    %rbx,%rdx
mov    %r14d,%ecx
call   1030 <default_gen@plt>
mov    %rbp,%rdi
mov    $0x5,%esi
mov    %rbx,%rdx
mov    %r14d,%ecx
call   1030 <default_gen@plt>
mov    %rbp,%rdi
mov    $0x6,%esi
mov    %rbx,%rdx
mov    %r14d,%ecx
call   1030 <default_gen@plt>
mov    %rbp,%rdi
mov    $0x7,%esi
mov    %rbx,%rdx
mov    %r14d,%ecx
call   1030 <default_gen@plt>
mov    %rbp,%rdi
mov    $0x8,%esi
mov    %rbx,%rdx
mov    %r14d,%ecx
call   1030 <default_gen@plt>
mov    %rbp,%rdi
mov    $0x9,%esi
mov    %rbx,%rdx
mov    %r14d,%ecx
call   1030 <default_gen@plt>
mov    %rbp,%rdi
mov    $0xa,%esi
mov    %rbx,%rdx
mov    %r14d,%ecx
call   1030 <default_gen@plt>
mov    %rbp,%rdi
mov    $0xb,%esi
mov    %rbx,%rdx
mov    %r14d,%ecx
call   1030 <default_gen@plt>
mov    %rbp,%rdi
mov    $0xc,%esi
mov    %rbx,%rdx
mov    %r14d,%ecx
call   1030 <default_gen@plt>
mov    %rbp,%rdi
mov    $0xd,%esi
mov    %rbx,%rdx
mov    %r14d,%ecx
call   1030 <default_gen@plt>
mov    %rbp,%rdi
mov    $0xe,%esi
mov    %rbx,%rdx
mov    %r14d,%ecx
call   1030 <default_gen@plt>
mov    %rbp,%rdi
mov    $0xf,%esi
mov    %rbx,%rdx
mov    %r14d,%ecx
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <default_gen@plt>

LLVM IR (-O0):
%struct.defstate = type { i32 }
define void @default_mix(i8* %0, float* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca float*
%6 = alloca i32
%7 = alloca %struct.defstate*
%8 = alloca i32
store i8* %0, i8** %4
store float* %1, float** %5
store i32 %2, i32* %6
%9 = load i8*, i8** %4
%10 = bitcast i8* %9 to %struct.defstate*
store %struct.defstate* %10, %struct.defstate** %7
store i32 0, i32* %8
br label %11
11: ; preds = %20, %3
%12 = load i32, i32* %8
%13 = icmp slt i32 %12, 16
br i1 %13, label %14, label %23
14: ; preds = %11
%15 = load %struct.defstate*, %struct.defstate** %7
%16 = load i32, i32* %8
%17 = load float*, float** %5
%18 = load i32, i32* %6
%19 = call i32 @default_gen(%struct.defstate* %15, i32 %16, float* %17, i32 %18)
br label %20
20: ; preds = %14
%21 = load i32, i32* %8
%22 = add nsw i32 %21, 1
store i32 %22, i32* %8
br label %11
23: ; preds = %11
ret void
}

LLVM IR (-O2):
%struct.defstate = type { i32 }
define void @default_mix(i8* %0, float* %1, i32 %2) {
%4 = bitcast i8* %0 to %struct.defstate*
%5 = tail call i32 @default_gen(%struct.defstate* %4, i32 0, float* %1, i32 %2)
%6 = tail call i32 @default_gen(%struct.defstate* %4, i32 1, float* %1, i32 %2)
%7 = tail call i32 @default_gen(%struct.defstate* %4, i32 2, float* %1, i32 %2)
%8 = tail call i32 @default_gen(%struct.defstate* %4, i32 3, float* %1, i32 %2)
%9 = tail call i32 @default_gen(%struct.defstate* %4, i32 4, float* %1, i32 %2)
%10 = tail call i32 @default_gen(%struct.defstate* %4, i32 5, float* %1, i32 %2)
%11 = tail call i32 @default_gen(%struct.defstate* %4, i32 6, float* %1, i32 %2)
%12 = tail call i32 @default_gen(%struct.defstate* %4, i32 7, float* %1, i32 %2)
%13 = tail call i32 @default_gen(%struct.defstate* %4, i32 8, float* %1, i32 %2)
%14 = tail call i32 @default_gen(%struct.defstate* %4, i32 9, float* %1, i32 %2)
%15 = tail call i32 @default_gen(%struct.defstate* %4, i32 10, float* %1, i32 %2)
%16 = tail call i32 @default_gen(%struct.defstate* %4, i32 11, float* %1, i32 %2)
%17 = tail call i32 @default_gen(%struct.defstate* %4, i32 12, float* %1, i32 %2)
%18 = tail call i32 @default_gen(%struct.defstate* %4, i32 13, float* %1, i32 %2)
%19 = tail call i32 @default_gen(%struct.defstate* %4, i32 14, float* %1, i32 %2)
%20 = tail call i32 @default_gen(%struct.defstate* %4, i32 15, float* %1, i32 %2)
ret void
}