#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 */

/* Variables and functions */
float SCE_Decode_Float(unsigned char const **, int, unsigned char,
                       unsigned char, int *);
void SCE_Decode_Floats(float *floats, size_t n_floats, int se, unsigned char ne,
                       unsigned char nm, const unsigned char *in) {
  size_t i;
  int off = 0;
  for (i = 0; i < n_floats; i++)
    floats[i] = SCE_Decode_Float(&in, se, ne, nm, &off);
}


x86 assembly (clang, -O0):
<SCE_Decode_Floats>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %r8b,%al
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %cl,-0x15(%rbp)
mov    %al,-0x16(%rbp)
mov    %r9,-0x20(%rbp)
movl   $0x0,-0x2c(%rbp)
movq   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%rax
cmp    -0x10(%rbp),%rax
jae    1185 <SCE_Decode_Floats+0x75>
mov    -0x14(%rbp),%esi
mov    -0x15(%rbp),%al
lea    -0x20(%rbp),%rdi
lea    -0x2c(%rbp),%r8
movzbl %al,%edx
movzbl -0x16(%rbp),%ecx
call   1030 <SCE_Decode_Float@plt>
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
jmp    113f <SCE_Decode_Floats+0x2f>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SCE_Decode_Floats>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9,0x10(%rsp)
movl   $0x0,0xc(%rsp)
test   %rsi,%rsi
je     1175 <SCE_Decode_Floats+0x65>
mov    %edx,%r14d
mov    %rsi,%r12
mov    %rdi,%r15
xor    %r13d,%r13d
movzbl %cl,%ebp
movzbl %r8b,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    0x10(%rsp),%rdi
mov    %r14d,%esi
mov    %ebp,%edx
mov    %ebx,%ecx
lea    0xc(%rsp),%r8
call   1030 <SCE_Decode_Float@plt>
movss  %xmm0,(%r15,%r13,4)
add    $0x1,%r13
cmp    %r13,%r12
jne    1150 <SCE_Decode_Floats+0x40>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @SCE_Decode_Floats(float* %0, i64 %1, i32 %2, i8 zeroext %3, i8 zeroext %4, i8* %5) {
%7 = alloca float*
%8 = alloca i64
%9 = alloca i32
%10 = alloca i8
%11 = alloca i8
%12 = alloca i8*
%13 = alloca i64
%14 = alloca i32
store float* %0, float** %7
store i64 %1, i64* %8
store i32 %2, i32* %9
store i8 %3, i8* %10
store i8 %4, i8* %11
store i8* %5, i8** %12
store i32 0, i32* %14
store i64 0, i64* %13
br label %15
15: ; preds = %27, %6
%16 = load i64, i64* %13
%17 = load i64, i64* %8
%18 = icmp ult i64 %16, %17
br i1 %18, label %19, label %30
19: ; preds = %15
%20 = load i32, i32* %9
%21 = load i8, i8* %10
%22 = load i8, i8* %11
%23 = call float @SCE_Decode_Float(i8** %12, i32 %20, i8 zeroext %21, i8 zeroext %22, i32* %14)
%24 = load float*, float** %7
%25 = load i64, i64* %13
%26 = getelementptr inbounds float, float* %24, i64 %25
store float %23, float* %26
br label %27
27: ; preds = %19
%28 = load i64, i64* %13
%29 = add i64 %28, 1
store i64 %29, i64* %13
br label %15
30: ; preds = %15
ret void
}

LLVM IR (-O2):
define void @SCE_Decode_Floats(float* nocapture writeonly %0, i64 %1, i32 %2, i8 zeroext %3, i8 zeroext %4, i8* %5) {
%7 = alloca i8*
%8 = alloca i32
store i8* %5, i8** %7
%9 = bitcast i32* %8 to i8*
store i32 0, i32* %8
%10 = icmp eq i64 %1, 0
br i1 %10, label %17, label %11
11: ; preds = %6, %11
%12 = phi i64 [ %15, %11 ], [ 0, %6 ]
%13 = call float @SCE_Decode_Float(i8** %7, i32 %2, i8 zeroext %3, i8 zeroext %4, i32* %8)
%14 = getelementptr inbounds float, float* %0, i64 %12
store float %13, float* %14
%15 = add nuw i64 %12, 1
%16 = icmp eq i64 %15, %1
br i1 %16, label %17, label %11
17: ; preds = %11, %6
ret void
}