#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 */
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ fpf_get_glyph_position(char const, unsigned int *,
                                          unsigned int *);
void fpf_get_glyph_dx_texture_coordinates(const char character,
                                          float *const left, float *const top,
                                          float *const right,
                                          float *const bottom) {
  unsigned int x;
  unsigned int y;
  assert(NULL != left);
  assert(NULL != top);
  assert(NULL != right);
  assert(NULL != bottom);
  fpf_get_glyph_position(character, &x, &y);
  *left = (float)x / 64u;
  *top = (float)y / 64u;
  *right = (float)(x + 6u) / 64u;
  *bottom = (float)(y + 6u) / 64u;
}


x86 assembly (clang, -O0):
<fpf_get_glyph_dx_texture_coordinates>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x10(%rbp),%rax
test   %rax,%rax
setne  %al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x18(%rbp),%rax
test   %rax,%rax
setne  %al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x20(%rbp),%rax
test   %rax,%rax
setne  %al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x28(%rbp),%rax
test   %rax,%rax
setne  %al
movzbl %al,%edi
call   1030 <assert@plt>
movsbl -0x1(%rbp),%edi
lea    -0x2c(%rbp),%rsi
lea    -0x30(%rbp),%rdx
call   1040 <fpf_get_glyph_position@plt>
mov    -0x2c(%rbp),%eax
cvtsi2ss %rax,%xmm0
movss  0xe59(%rip),%xmm1
divss  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x30(%rbp),%eax
cvtsi2ss %rax,%xmm0
divss  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x2c(%rbp),%eax
add    $0x6,%eax
cvtsi2ss %rax,%xmm0
divss  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x30(%rbp),%eax
add    $0x6,%eax
cvtsi2ss %rax,%xmm0
movss  0xe0f(%rip),%xmm1
divss  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movss  %xmm0,(%rax)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fpf_get_glyph_dx_texture_coordinates>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %r8,%r14
mov    %rcx,%r15
mov    %rdx,%r12
mov    %rsi,%rbx
mov    %edi,%ebp
xor    %edi,%edi
test   %rsi,%rsi
setne  %dil
call   1030 <assert@plt>
xor    %edi,%edi
test   %r12,%r12
setne  %dil
call   1030 <assert@plt>
xor    %edi,%edi
test   %r15,%r15
setne  %dil
call   1030 <assert@plt>
xor    %edi,%edi
test   %r14,%r14
setne  %dil
call   1030 <assert@plt>
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
mov    %ebp,%edi
call   1040 <fpf_get_glyph_position@plt>
mov    0xc(%rsp),%eax
cvtsi2ss %rax,%xmm0
movss  0xe6c(%rip),%xmm1
mulss  %xmm1,%xmm0
movss  %xmm0,(%rbx)
mov    0x8(%rsp),%ecx
xorps  %xmm0,%xmm0
cvtsi2ss %rcx,%xmm0
mulss  %xmm1,%xmm0
movss  %xmm0,(%r12)
add    $0x6,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
lea    0x6(%rcx),%eax
cvtsi2ss %rax,%xmm2
mulss  %xmm1,%xmm0
movss  %xmm0,(%r15)
mulss  %xmm1,%xmm2
movss  %xmm2,(%r14)
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @fpf_get_glyph_dx_texture_coordinates(i8 signext %0, float* %1, float* %2, float* %3, float* %4) {
%6 = alloca i8
%7 = alloca float*
%8 = alloca float*
%9 = alloca float*
%10 = alloca float*
%11 = alloca i32
%12 = alloca i32
store i8 %0, i8* %6
store float* %1, float** %7
store float* %2, float** %8
store float* %3, float** %9
store float* %4, float** %10
%13 = load float*, float** %7
%14 = icmp ne float* null, %13
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 %15)
%17 = load float*, float** %8
%18 = icmp ne float* null, %17
%19 = zext i1 %18 to i32
%20 = call i32 @assert(i32 %19)
%21 = load float*, float** %9
%22 = icmp ne float* null, %21
%23 = zext i1 %22 to i32
%24 = call i32 @assert(i32 %23)
%25 = load float*, float** %10
%26 = icmp ne float* null, %25
%27 = zext i1 %26 to i32
%28 = call i32 @assert(i32 %27)
%29 = load i8, i8* %6
%30 = call i32 @fpf_get_glyph_position(i8 signext %29, i32* %11, i32* %12)
%31 = load i32, i32* %11
%32 = uitofp i32 %31 to float
%33 = fdiv float %32, 6.400000e+01
%34 = load float*, float** %7
store float %33, float* %34
%35 = load i32, i32* %12
%36 = uitofp i32 %35 to float
%37 = fdiv float %36, 6.400000e+01
%38 = load float*, float** %8
store float %37, float* %38
%39 = load i32, i32* %11
%40 = add i32 %39, 6
%41 = uitofp i32 %40 to float
%42 = fdiv float %41, 6.400000e+01
%43 = load float*, float** %9
store float %42, float* %43
%44 = load i32, i32* %12
%45 = add i32 %44, 6
%46 = uitofp i32 %45 to float
%47 = fdiv float %46, 6.400000e+01
%48 = load float*, float** %10
store float %47, float* %48
ret void
}

LLVM IR (-O2):
define void @fpf_get_glyph_dx_texture_coordinates(i8 signext %0, float* writeonly %1, float* writeonly %2, float* writeonly %3, float* writeonly %4) {
%6 = alloca i32
%7 = alloca i32
%8 = bitcast i32* %6 to i8*
%9 = bitcast i32* %7 to i8*
%10 = icmp ne float* %1, null
%11 = zext i1 %10 to i32
%12 = tail call i32 @assert(i32 %11)
%13 = icmp ne float* %2, null
%14 = zext i1 %13 to i32
%15 = tail call i32 @assert(i32 %14)
%16 = icmp ne float* %3, null
%17 = zext i1 %16 to i32
%18 = tail call i32 @assert(i32 %17)
%19 = icmp ne float* %4, null
%20 = zext i1 %19 to i32
%21 = tail call i32 @assert(i32 %20)
%22 = call i32 @fpf_get_glyph_position(i8 signext %0, i32* %6, i32* %7)
%23 = load i32, i32* %6
%24 = uitofp i32 %23 to float
%25 = fmul float %24, 1.562500e-02
store float %25, float* %1
%26 = load i32, i32* %7
%27 = uitofp i32 %26 to float
%28 = fmul float %27, 1.562500e-02
store float %28, float* %2
%29 = add i32 %23, 6
%30 = uitofp i32 %29 to float
%31 = fmul float %30, 1.562500e-02
store float %31, float* %3
%32 = add i32 %26, 6
%33 = uitofp i32 %32 to float
%34 = fmul float %33, 1.562500e-02
store float %34, float* %4
ret void
}