// File: /workspace/github_cpp_makefile_star2_O3/tomfunkhouser[P]gaps/apps/confview/confview.cpp
// Function: GLUTRedraw()
void GLUTRedraw(void)
{
  // Set viewing transformation
  viewer.Camera().Load();

  // Clear window 
  // glClearColor(0.0, 0.0, 0.0, 1.0);
  glClearColor(background.R(), background.G(), background.B(), 1.0);
  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

  // Draw everything
  if (show_cameras) DrawCameras(color_scheme);
  if (show_bboxes) DrawBBoxes(color_scheme);
  if (show_images) DrawImages(color_scheme);
  if (show_patches) DrawPatches(color_scheme);
  if (show_faces) DrawFaces(color_scheme);
  if (show_edges) DrawEdges(color_scheme);
  if (show_vertices) DrawVertices(color_scheme);
  if (show_points) DrawPoints(color_scheme);
  if (show_surfels) DrawSurfels(color_scheme);
  if (show_quads) DrawQuads(color_scheme);
  if (show_textures) DrawTextures(color_scheme);
  if (show_overlaps) DrawOverlaps();
  if (show_selected_position) DrawSelectedPosition();
  if (show_axes) DrawAxes();

  // Capture screenshot image 
  if (screenshot_image_name) {
    if (print_verbose) printf("Creating image %s\n", screenshot_image_name);
    R2Image image(GLUTwindow_width, GLUTwindow_height, 3);
    image.Capture();
    image.Write(screenshot_image_name);
    screenshot_image_name = NULL;
  }

  // Swap buffers 
  glutSwapBuffers();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
leaq 0x144287(%rip), %rdi    # 0x16b9b8
xorl %esi, %esi
callq 0x3b0e0
cvtsd2ss 0x144240(%rip), %xmm0   # 0x16b980
cvtsd2ss 0x144240(%rip), %xmm1   # 0x16b988
cvtsd2ss 0x144240(%rip), %xmm2   # 0x16b990
movss 0xd28ac(%rip), %xmm3    # 0xfa004
callq 0x23e50
movl $0x4100, %edi           # imm = 0x4100
callq 0x231e0
cmpl $0x0, 0x13f262(%rip)    # 0x1669d0
je 0x2777b
movl 0x13f25e(%rip), %edi    # 0x1669d4
callq 0x27f9b
cmpl $0x0, 0x1442e2(%rip)    # 0x16ba64
je 0x2778f
movl 0x13f24a(%rip), %edi    # 0x1669d4
callq 0x2800e
cmpl $0x0, 0x1442d2(%rip)    # 0x16ba68
je 0x2780f
cmpl $0x0, 0x144125(%rip)    # 0x16b8c4
jle 0x2780f
movl 0x13f22d(%rip), %ebp    # 0x1669d4
xorl %r14d, %r14d
movl $0x4, %r15d
movq 0x144101(%rip), %rax    # 0x16b8b8
movq (%rax,%r14,8), %rbx
cmpl $0x0, 0x24(%rbx)
jle 0x27800
movq 0x18(%rbx), %rax
cmpq $0x0, (%rax)
je 0x27800
movq %rbx, %rdi
callq 0x2abb9
testl %eax, %eax
je 0x27800
movl 0x13f20b(%rip), %eax    # 0x1669e8
cmpq %rax, %r14
movl %ebp, %esi
cmovel %r15d, %esi
cmpl $0x3, %ebp
movq (%rbx), %rax
cmovel %ebp, %esi
movq %rbx, %rdi
movsd 0xd2816(%rip), %xmm0    # 0xfa010
callq *0xd0(%rax)
incq %r14
movslq 0x1440ba(%rip), %rax    # 0x16b8c4
cmpq %rax, %r14
jl 0x277b0
cmpl $0x0, 0x144256(%rip)    # 0x16ba6c
je 0x27a34
movl 0x13f1b2(%rip), %ebx    # 0x1669d4
leaq 0x14411f(%rip), %rdi    # 0x16b948
leaq 0x1477c0(%rip), %rsi    # 0x16eff0
callq 0x879dc
testl %eax, %eax
jne 0x27a34
movl $0x1701, %edi           # imm = 0x1701
callq 0x23ce0
callq 0x23f90
callq 0x23c70
xorps %xmm1, %xmm1
cvtsi2sdl 0x13f180(%rip), %xmm1 # 0x1669dc
xorps %xmm3, %xmm3
cvtsi2sdl 0x13f179(%rip), %xmm3 # 0x1669e0
xorps %xmm0, %xmm0
xorps %xmm2, %xmm2
callq 0x23570
movl $0x1700, %edi           # imm = 0x1700
callq 0x23ce0
callq 0x23f90
callq 0x23c70
cmpl $0x0, 0x144037(%rip)    # 0x16b8c4
jle 0x27a01
xorl %ebp, %ebp
leaq 0x28(%rsp), %r14
movq %rsp, %r12
xorl %r15d, %r15d
movq 0x144011(%rip), %rax    # 0x16b8b8
movq (%rax,%rbp,8), %r13
cmpl $0x0, 0x24(%r13)
jle 0x279ee
movq 0x18(%r13), %rax
cmpq $0x0, (%rax)
je 0x279ee
movq %r13, %rdi
callq 0x2abb9
testl %eax, %eax
je 0x279ee
movq %r14, %rdi
callq 0xa1034
movq (%r13), %rax
movq %r13, %rdi
leaq 0x14405e(%rip), %rsi    # 0x16b948
movq %r14, %rdx
callq *0xb0(%rax)
testl %eax, %eax
je 0x279ee
imull $0x64, %r15d, %edi
xorl %esi, %esi
movl $0x64, %edx
movl $0x64, %ecx
callq 0x23200
movss 0xd26ec(%rip), %xmm0    # 0xfa004
movaps %xmm0, %xmm1
movaps %xmm0, %xmm2
callq 0x24330
callq 0x23f90
xorps %xmm0, %xmm0
cvtsi2sdl 0x13f0a9(%rip), %xmm0 # 0x1669dc
movsd 0xd26dd(%rip), %xmm2    # 0xfa018
mulsd %xmm2, %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0x13f096(%rip), %xmm1 # 0x1669e0
mulsd %xmm2, %xmm1
xorpd %xmm2, %xmm2
callq 0x23990
movsd 0xd26c1(%rip), %xmm0    # 0xfa020
movaps %xmm0, %xmm1
movaps %xmm0, %xmm2
callq 0x23980
movsd 0x28(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
movaps 0xd2733(%rip), %xmm2    # 0xfa0b0
xorps %xmm2, %xmm0
xorps %xmm2, %xmm1
xorps %xmm2, %xmm2
callq 0x23990
movq (%r13), %rax
xorps %xmm0, %xmm0
movq %r13, %rdi
movl %ebx, %esi
callq *0xd0(%rax)
callq 0x241f0
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
callq 0x24330
xorps %xmm2, %xmm2
cvtsi2sdl 0x13f021(%rip), %xmm2 # 0x1669dc
cvtsi2sdl 0x13f01d(%rip), %xmm3 # 0x1669e0
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
movq %r12, %rdi
callq 0x9e324
leaq 0xd7298(%rip), %rax     # 0xfec70
movq (%rax), %rsi
movq %r12, %rdi
callq 0x8e4f4
movq %r12, %rdi
callq 0x9eb9c
incl %r15d
incq %rbp
movslq 0x143ecc(%rip), %rax    # 0x16b8c4
cmpq %rax, %rbp
jl 0x278a0
movl 0x13efd5(%rip), %edx    # 0x1669dc
movl 0x13efd3(%rip), %ecx    # 0x1669e0
xorl %edi, %edi
xorl %esi, %esi
callq 0x23200
movl $0x1701, %edi           # imm = 0x1701
callq 0x23ce0
callq 0x241f0
movl $0x1700, %edi           # imm = 0x1700
callq 0x23ce0
callq 0x241f0
cmpl $0x0, 0x144035(%rip)    # 0x16ba70
je 0x27a48
movl 0x13ef91(%rip), %edi    # 0x1669d4
callq 0x28061
cmpl $0x0, 0x144025(%rip)    # 0x16ba74
je 0x27a9c
cmpl $0x0, 0x143e7c(%rip)    # 0x16b8d4
jle 0x27a9c
movl 0x13ef74(%rip), %ebx    # 0x1669d4
xorl %r14d, %r14d
movl $0x4, %ebp
movl 0x13ef7a(%rip), %eax    # 0x1669e8
cmpq %rax, %r14
movl %ebx, %esi
cmovel %ebp, %esi
cmpl $0x3, %ebx
movq 0x143e48(%rip), %rax    # 0x16b8c8
movq (%rax,%r14,8), %rdi
movq (%rdi), %rax
cmovel %ebx, %esi
callq *0x68(%rax)
incq %r14
movslq 0x143e3d(%rip), %rax    # 0x16b8d4
cmpq %rax, %r14
jl 0x27a68
cmpl $0x0, 0x143fd5(%rip)    # 0x16ba78
je 0x27af0
cmpl $0x0, 0x143e28(%rip)    # 0x16b8d4
jle 0x27af0
movl 0x13ef20(%rip), %ebx    # 0x1669d4
xorl %r14d, %r14d
movl $0x4, %ebp
movl 0x13ef26(%rip), %eax    # 0x1669e8
cmpq %rax, %r14
movl %ebx, %esi
cmovel %ebp, %esi
cmpl $0x3, %ebx
movq 0x143df4(%rip), %rax    # 0x16b8c8
movq (%rax,%r14,8), %rdi
movq (%rdi), %rax
cmovel %ebx, %esi
callq *0x70(%rax)
incq %r14
movslq 0x143de9(%rip), %rax    # 0x16b8d4
cmpq %rax, %r14
jl 0x27abc
cmpl $0x0, 0x143f85(%rip)    # 0x16ba7c
je 0x27b04
movl 0x13eed5(%rip), %edi    # 0x1669d4
callq 0x280b1
cmpl $0x0, 0x143f75(%rip)    # 0x16ba80
je 0x27b18
movl 0x13eec1(%rip), %edi    # 0x1669d4
callq 0x2811a
cmpl $0x0, 0x143f65(%rip)    # 0x16ba84
je 0x27b2c
movl 0x13eead(%rip), %edi    # 0x1669d4
callq 0x28183
cmpl $0x0, 0x143f55(%rip)    # 0x16ba88
je 0x27b80
cmpl $0x0, 0x143d98(%rip)    # 0x16b8d4
jle 0x27b80
movl 0x13ee90(%rip), %ebx    # 0x1669d4
xorl %r14d, %r14d
movl $0x4, %ebp
movl 0x13ee96(%rip), %eax    # 0x1669e8
cmpq %rax, %r14
movl %ebx, %esi
cmovel %ebp, %esi
cmpl $0x3, %ebx
movq 0x143d64(%rip), %rax    # 0x16b8c8
movq (%rax,%r14,8), %rdi
movq (%rdi), %rax
cmovel %ebx, %esi
callq *0x78(%rax)
incq %r14
movslq 0x143d59(%rip), %rax    # 0x16b8d4
cmpq %rax, %r14
jl 0x27b4c
cmpl $0x0, 0x143f05(%rip)    # 0x16ba8c
je 0x27cbd
cmpq $0x0, 0x143fbb(%rip)    # 0x16bb50
je 0x27cbd
cmpl $0x0, 0x143d32(%rip)    # 0x16b8d4
jle 0x27cbd
movq 0x143d19(%rip), %rax    # 0x16b8c8
movq (%rax), %rax
movq 0x88(%rax), %r15
cmpl $0x0, 0x14(%r15)
jle 0x27cbd
movsd 0xd245c(%rip), %xmm0    # 0xfa028
xorl %r12d, %r12d
leaq 0x143dc2(%rip), %r14    # 0x16b998
xorl %ebx, %ebx
movsd %xmm0, 0x40(%rsp)
movq 0x8(%r15), %rax
movq (%rax,%r12,8), %r13
leaq 0x18(%r13), %rdi
movq %r14, %rsi
callq 0x5e7a7
movsd 0x40(%rsp), %xmm1
ucomisd %xmm0, %xmm1
cmovaq %r13, %rbx
minsd %xmm1, %xmm0
incq %r12
movslq 0x14(%r15), %rax
cmpq %rax, %r12
jl 0x27bd8
testq %rbx, %rbx
je 0x27cbd
movss 0xd23e7(%rip), %xmm0    # 0xfa008
callq 0x24170
movss 0xd23d6(%rip), %xmm0    # 0xfa004
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
callq 0x24330
movl $0x1, %edi
callq 0x23190
movslq 0x70(%rbx), %r12
movq 0x143f02(%rip), %rax    # 0x16bb50
shlq $0x4, %r12
cmpl $0x0, 0xc(%rax,%r12)
jle 0x27cab
addq $0x18, %rbx
addq %r12, %rax
xorl %r13d, %r13d
leaq 0x147295(%rip), %r14    # 0x16ef00
movq %rsp, %r15
movq (%rax), %rax
movq (%rax,%r13,8), %rsi
addq $0x38, %rsi
movq %r15, %rdi
movq %r14, %rdx
callq 0x8630e
movq %r15, %rdi
callq 0x231b0
movq %rbx, %rdi
callq 0x231b0
incq %r13
movq 0x143eb2(%rip), %rax    # 0x16bb50
movslq 0xc(%rax,%r12), %rcx
addq %r12, %rax
cmpq %rcx, %r13
jl 0x27c6e
callq 0x23c80
movss 0xd234c(%rip), %xmm0    # 0xfa004
callq 0x24170
cmpl $0x0, 0x13ed14(%rip)    # 0x1669d8
je 0x27d1f
leaq 0x143c7b(%rip), %rdi    # 0x16b948
leaq 0x14731c(%rip), %rsi    # 0x16eff0
callq 0x879dc
testl %eax, %eax
jne 0x27d1f
movss 0xd231f(%rip), %xmm0    # 0xfa004
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
callq 0x24330
leaq 0x143c51(%rip), %rsi    # 0x16b948
movq %rsp, %rbx
movsd 0xd232e(%rip), %xmm0    # 0xfa030
movq %rbx, %rdi
callq 0x7ccb2
movl $0x772, %esi            # imm = 0x772
movq %rbx, %rdi
callq 0x571b2
movq %rsp, %rdi
callq 0x80048
cmpl $0x0, 0x143d6a(%rip)    # 0x16ba90
je 0x27ef1
movss 0xd22d4(%rip), %xmm0    # 0xfa008
callq 0x24170
movl $0x3, %edi
callq 0x23190
movss 0xd22b9(%rip), %xmm0    # 0xfa004
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
callq 0x24330
leaq 0xd5f5b(%rip), %rsi     # 0xfdcb8
leaq 0x28(%rsp), %r14
movsd 0xd22ae(%rip), %xmm0    # 0xfa018
movq %r14, %rdi
callq 0x88d46
leaq 0x147187(%rip), %rbx    # 0x16ef00
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x87c5b
movq %r15, %rdi
callq 0x231b0
leaq 0xd5ed7(%rip), %rsi     # 0xfdc70
leaq 0x28(%rsp), %r14
movsd 0xd226a(%rip), %xmm0    # 0xfa010
movq %r14, %rdi
callq 0x88d46
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x87c5b
movq %r15, %rdi
callq 0x231b0
callq 0x23c80
movl $0x3, %edi
callq 0x23190
xorps %xmm0, %xmm0
xorps %xmm2, %xmm2
movss 0xd2220(%rip), %xmm1    # 0xfa004
callq 0x24330
leaq 0xd5ee0(%rip), %rsi     # 0xfdcd0
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movsd 0xd2218(%rip), %xmm0    # 0xfa018
callq 0x88d46
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x87c5b
movq %r15, %rdi
callq 0x231b0
leaq 0xd5e63(%rip), %rsi     # 0xfdc88
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movsd 0xd21db(%rip), %xmm0    # 0xfa010
callq 0x88d46
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x87c5b
movq %r15, %rdi
callq 0x231b0
callq 0x23c80
movl $0x3, %edi
callq 0x23190
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
movss 0xd2194(%rip), %xmm2    # 0xfa004
callq 0x24330
leaq 0xd5e6c(%rip), %rsi     # 0xfdce8
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movsd 0xd218c(%rip), %xmm0    # 0xfa018
callq 0x88d46
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x87c5b
movq %r15, %rdi
callq 0x231b0
leaq 0xd5def(%rip), %rsi     # 0xfdca0
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movsd 0xd214f(%rip), %xmm0    # 0xfa010
callq 0x88d46
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x87c5b
movq %r15, %rdi
callq 0x231b0
callq 0x23c80
movss 0xd2118(%rip), %xmm0    # 0xfa004
callq 0x24170
movq 0x143ba0(%rip), %rsi    # 0x16ba98
testq %rsi, %rsi
je 0x27f5a
cmpb $0x1, 0x143b9c(%rip)    # 0x16baa0
jne 0x27f14
leaq 0xd22db(%rip), %rdi     # 0xfa1e8
xorl %eax, %eax
callq 0x23080
movl 0x13eac2(%rip), %esi    # 0x1669dc
movl 0x13eac0(%rip), %edx    # 0x1669e0
movq %rsp, %rbx
movq %rbx, %rdi
movl $0x3, %ecx
callq 0xa1bea
movq %rbx, %rdi
callq 0xa2674
movq 0x143b59(%rip), %rsi    # 0x16ba98
movq %rsp, %rdi
callq 0xa3a68
movq $0x0, 0x143b46(%rip) # 0x16ba98
movq %rsp, %rdi
callq 0xa1e44
callq 0xecc42
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x80048
jmp 0x27f93
movq %rax, %rbx
movq %rsp, %rdi
callq 0x9eb9c
jmp 0x27f93
movq %rax, %rbx
movq %rsp, %rdi
callq 0xa1e44
movq %rbx, %rdi
callq 0x240f0