#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_dx_texture_coordinates(char const, float *const, float *const,
                                     float *const, float *const);
void fpf_get_glyph_gl_texture_coordinates(const char character,
                                          float *const left, float *const top,
                                          float *const right,
                                          float *const bottom) {
  assert(NULL != left);
  assert(NULL != top);
  assert(NULL != right);
  assert(NULL != bottom);
  fpf_get_glyph_dx_texture_coordinates(character, left, top, right, bottom);
  *top = 1.0f - *top;
  *bottom = 1.0f - *bottom;
}


x86 assembly (clang, -O0):
<fpf_get_glyph_gl_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)
xor    %eax,%eax
cmp    -0x10(%rbp),%rax
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
xor    %eax,%eax
cmp    -0x18(%rbp),%rax
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
xor    %eax,%eax
cmp    -0x20(%rbp),%rax
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
xor    %eax,%eax
cmp    -0x28(%rbp),%rax
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x1(%rbp),%al
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
movsbl %al,%edi
call   1040 <fpf_get_glyph_dx_texture_coordinates@plt>
mov    -0x18(%rbp),%rax
movss  0xe4f(%rip),%xmm0
subss  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x28(%rbp),%rax
movss  0xe37(%rip),%xmm0
subss  (%rax),%xmm0
mov    -0x28(%rbp),%rax
movss  %xmm0,(%rax)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fpf_get_glyph_gl_texture_coordinates>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %r8,%r14
mov    %rcx,%r15
mov    %rdx,%rbx
mov    %rsi,%r12
mov    %edi,%ebp
xor    %edi,%edi
test   %rsi,%rsi
setne  %dil
call   1030 <assert@plt>
xor    %edi,%edi
test   %rbx,%rbx
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>
mov    %ebp,%edi
mov    %r12,%rsi
mov    %rbx,%rdx
mov    %r15,%rcx
mov    %r14,%r8
call   1040 <fpf_get_glyph_dx_texture_coordinates@plt>
movss  0xe77(%rip),%xmm0
movaps %xmm0,%xmm1
subss  (%rbx),%xmm1
movss  %xmm1,(%rbx)
subss  (%r14),%xmm0
movss  %xmm0,(%r14)
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @fpf_get_glyph_gl_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*
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
%11 = load float*, float** %7
%12 = icmp ne float* null, %11
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 %13)
%15 = load float*, float** %8
%16 = icmp ne float* null, %15
%17 = zext i1 %16 to i32
%18 = call i32 @assert(i32 %17)
%19 = load float*, float** %9
%20 = icmp ne float* null, %19
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 %21)
%23 = load float*, float** %10
%24 = icmp ne float* null, %23
%25 = zext i1 %24 to i32
%26 = call i32 @assert(i32 %25)
%27 = load i8, i8* %6
%28 = load float*, float** %7
%29 = load float*, float** %8
%30 = load float*, float** %9
%31 = load float*, float** %10
%32 = call i32 @fpf_get_glyph_dx_texture_coordinates(i8 signext %27, float* %28, float* %29, float* %30, float* %31)
%33 = load float*, float** %8
%34 = load float, float* %33
%35 = fsub float 1.000000e+00, %34
%36 = load float*, float** %8
store float %35, float* %36
%37 = load float*, float** %10
%38 = load float, float* %37
%39 = fsub float 1.000000e+00, %38
%40 = load float*, float** %10
store float %39, float* %40
ret void
}

LLVM IR (-O2):
define void @fpf_get_glyph_gl_texture_coordinates(i8 signext %0, float* %1, float* %2, float* %3, float* %4) {
%6 = icmp ne float* %1, null
%7 = zext i1 %6 to i32
%8 = tail call i32 @assert(i32 %7)
%9 = icmp ne float* %2, null
%10 = zext i1 %9 to i32
%11 = tail call i32 @assert(i32 %10)
%12 = icmp ne float* %3, null
%13 = zext i1 %12 to i32
%14 = tail call i32 @assert(i32 %13)
%15 = icmp ne float* %4, null
%16 = zext i1 %15 to i32
%17 = tail call i32 @assert(i32 %16)
%18 = tail call i32 @fpf_get_glyph_dx_texture_coordinates(i8 signext %0, float* %1, float* %2, float* %3, float* %4)
%19 = load float, float* %2
%20 = fsub float 1.000000e+00, %19
store float %20, float* %2
%21 = load float, float* %4
%22 = fsub float 1.000000e+00, %21
store float %22, float* %4
ret void
}