#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 */
typedef int GLubyte;
typedef float GLfloat;

/* Variables and functions */
void extract233rev(int isSwap, const void *packedPixel,
                   GLfloat extractComponents[]) {
  GLubyte ubyte = *(const GLubyte *)packedPixel;
  isSwap = isSwap;
  extractComponents[0] = (float)((ubyte & 0x07)) / 7.0;
  extractComponents[1] = (float)((ubyte & 0x38) >> 3) / 7.0;
  extractComponents[2] = (float)((ubyte & 0xC0) >> 6) / 3.0;
}


x86 assembly (clang, -O0):
<extract233rev>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x1c(%rbp),%eax
and    $0x7,%eax
cvtsi2ss %eax,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xed4(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x1c(%rbp),%eax
and    $0x38,%eax
sar    $0x3,%eax
cvtsi2ss %eax,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xeab(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,0x4(%rax)
mov    -0x1c(%rbp),%eax
and    $0xc0,%eax
sar    $0x6,%eax
cvtsi2ss %eax,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe77(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,0x8(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<extract233rev>:
mov    (%rsi),%eax
mov    %eax,%ecx
and    $0x7,%ecx
cvtsi2ss %ecx,%xmm0
movss  0xeed(%rip),%xmm1
mov    %eax,%ecx
shr    $0x3,%ecx
and    $0x7,%ecx
cvtsi2ss %ecx,%xmm2
divss  %xmm1,%xmm0
movss  %xmm0,(%rdx)
divss  %xmm1,%xmm2
shr    $0x6,%eax
and    $0x3,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  %xmm2,0x4(%rdx)
divss  0xebf(%rip),%xmm0
movss  %xmm0,0x8(%rdx)
ret

LLVM IR (-O0):
define void @extract233rev(i32 %0, i8* %1, float* %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca float*
%7 = alloca i32
store i32 %0, i32* %4
store i8* %1, i8** %5
store float* %2, float** %6
%8 = load i8*, i8** %5
%9 = bitcast i8* %8 to i32*
%10 = load i32, i32* %9
store i32 %10, i32* %7
%11 = load i32, i32* %4
store i32 %11, i32* %4
%12 = load i32, i32* %7
%13 = and i32 %12, 7
%14 = sitofp i32 %13 to float
%15 = fpext float %14 to double
%16 = fdiv double %15, 7.000000e+00
%17 = fptrunc double %16 to float
%18 = load float*, float** %6
%19 = getelementptr inbounds float, float* %18, i64 0
store float %17, float* %19
%20 = load i32, i32* %7
%21 = and i32 %20, 56
%22 = ashr i32 %21, 3
%23 = sitofp i32 %22 to float
%24 = fpext float %23 to double
%25 = fdiv double %24, 7.000000e+00
%26 = fptrunc double %25 to float
%27 = load float*, float** %6
%28 = getelementptr inbounds float, float* %27, i64 1
store float %26, float* %28
%29 = load i32, i32* %7
%30 = and i32 %29, 192
%31 = ashr i32 %30, 6
%32 = sitofp i32 %31 to float
%33 = fpext float %32 to double
%34 = fdiv double %33, 3.000000e+00
%35 = fptrunc double %34 to float
%36 = load float*, float** %6
%37 = getelementptr inbounds float, float* %36, i64 2
store float %35, float* %37
ret void
}

LLVM IR (-O2):
define void @extract233rev(i32 %0, i8* nocapture %1, float* nocapture writeonly %2) {
%4 = bitcast i8* %1 to i32*
%5 = load i32, i32* %4
%6 = and i32 %5, 7
%7 = sitofp i32 %6 to float
%8 = fdiv float %7, 7.000000e+00
store float %8, float* %2
%9 = lshr i32 %5, 3
%10 = and i32 %9, 7
%11 = sitofp i32 %10 to float
%12 = fdiv float %11, 7.000000e+00
%13 = getelementptr inbounds float, float* %2, i64 1
store float %12, float* %13
%14 = lshr i32 %5, 6
%15 = and i32 %14, 3
%16 = sitofp i32 %15 to float
%17 = fdiv float %16, 3.000000e+00
%18 = getelementptr inbounds float, float* %2, i64 2
store float %17, float* %18
ret void
}