// File: /workspace/github_cpp_makefile_star2_O1/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 0x146256(%rip), %rdi    # 0x16d9b8
xorl %esi, %esi
callq 0x3b5a0
cvtsd2ss 0x14620f(%rip), %xmm0   # 0x16d980
cvtsd2ss 0x14620f(%rip), %xmm1   # 0x16d988
cvtsd2ss 0x14620f(%rip), %xmm2   # 0x16d990
movss 0xd487b(%rip), %xmm3    # 0xfc004
callq 0x23e60
movl $0x4100, %edi           # imm = 0x4100
callq 0x231e0
cmpl $0x0, 0x141231(%rip)    # 0x1689d0
je 0x277ac
movl 0x14122d(%rip), %edi    # 0x1689d4
callq 0x27fcc
cmpl $0x0, 0x1462b1(%rip)    # 0x16da64
je 0x277c0
movl 0x141219(%rip), %edi    # 0x1689d4
callq 0x2803f
cmpl $0x0, 0x1462a1(%rip)    # 0x16da68
je 0x27840
cmpl $0x0, 0x1460f4(%rip)    # 0x16d8c4
jle 0x27840
movl 0x1411fc(%rip), %ebp    # 0x1689d4
xorl %r14d, %r14d
movl $0x4, %r15d
movq 0x1460d0(%rip), %rax    # 0x16d8b8
movq (%rax,%r14,8), %rbx
cmpl $0x0, 0x24(%rbx)
jle 0x27831
movq 0x18(%rbx), %rax
cmpq $0x0, (%rax)
je 0x27831
movq %rbx, %rdi
callq 0x2ae1c
testl %eax, %eax
je 0x27831
movl 0x1411da(%rip), %eax    # 0x1689e8
cmpq %rax, %r14
movl %ebp, %esi
cmovel %r15d, %esi
cmpl $0x3, %ebp
movq (%rbx), %rax
cmovel %ebp, %esi
movq %rbx, %rdi
movsd 0xd47e5(%rip), %xmm0    # 0xfc010
callq *0xd0(%rax)
incq %r14
movslq 0x146089(%rip), %rax    # 0x16d8c4
cmpq %rax, %r14
jl 0x277e1
cmpl $0x0, 0x146225(%rip)    # 0x16da6c
je 0x27a65
movl 0x141181(%rip), %ebx    # 0x1689d4
leaq 0x1460ee(%rip), %rdi    # 0x16d948
leaq 0x14978f(%rip), %rsi    # 0x170ff0
callq 0x88db4
testl %eax, %eax
jne 0x27a65
movl $0x1701, %edi           # imm = 0x1701
callq 0x23cf0
callq 0x23fa0
callq 0x23c80
xorps %xmm1, %xmm1
cvtsi2sdl 0x14114f(%rip), %xmm1 # 0x1689dc
xorps %xmm3, %xmm3
cvtsi2sdl 0x141148(%rip), %xmm3 # 0x1689e0
xorps %xmm0, %xmm0
xorps %xmm2, %xmm2
callq 0x23570
movl $0x1700, %edi           # imm = 0x1700
callq 0x23cf0
callq 0x23fa0
callq 0x23c80
cmpl $0x0, 0x146006(%rip)    # 0x16d8c4
jle 0x27a32
xorl %ebp, %ebp
leaq 0x28(%rsp), %r14
movq %rsp, %r12
xorl %r15d, %r15d
movq 0x145fe0(%rip), %rax    # 0x16d8b8
movq (%rax,%rbp,8), %r13
cmpl $0x0, 0x24(%r13)
jle 0x27a1f
movq 0x18(%r13), %rax
cmpq $0x0, (%rax)
je 0x27a1f
movq %r13, %rdi
callq 0x2ae1c
testl %eax, %eax
je 0x27a1f
movq %r14, %rdi
callq 0xa25d4
movq (%r13), %rax
movq %r13, %rdi
leaq 0x14602d(%rip), %rsi    # 0x16d948
movq %r14, %rdx
callq *0xb0(%rax)
testl %eax, %eax
je 0x27a1f
imull $0x64, %r15d, %edi
xorl %esi, %esi
movl $0x64, %edx
movl $0x64, %ecx
callq 0x23200
movss 0xd46bb(%rip), %xmm0    # 0xfc004
movaps %xmm0, %xmm1
movaps %xmm0, %xmm2
callq 0x24340
callq 0x23fa0
xorps %xmm0, %xmm0
cvtsi2sdl 0x141078(%rip), %xmm0 # 0x1689dc
movsd 0xd46ac(%rip), %xmm2    # 0xfc018
mulsd %xmm2, %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0x141065(%rip), %xmm1 # 0x1689e0
mulsd %xmm2, %xmm1
xorpd %xmm2, %xmm2
callq 0x23990
movsd 0xd4690(%rip), %xmm0    # 0xfc020
movaps %xmm0, %xmm1
movaps %xmm0, %xmm2
callq 0x23980
movsd 0x28(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
movaps 0xd4702(%rip), %xmm2    # 0xfc0b0
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 0x24200
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
callq 0x24340
xorps %xmm2, %xmm2
cvtsi2sdl 0x140ff0(%rip), %xmm2 # 0x1689dc
cvtsi2sdl 0x140fec(%rip), %xmm3 # 0x1689e0
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
movq %r12, %rdi
callq 0x9f8bc
leaq 0xd925f(%rip), %rax     # 0x100c68
movq (%rax), %rsi
movq %r12, %rdi
callq 0x8f9a8
movq %r12, %rdi
callq 0xa013c
incl %r15d
incq %rbp
movslq 0x145e9b(%rip), %rax    # 0x16d8c4
cmpq %rax, %rbp
jl 0x278d1
movl 0x140fa4(%rip), %edx    # 0x1689dc
movl 0x140fa2(%rip), %ecx    # 0x1689e0
xorl %edi, %edi
xorl %esi, %esi
callq 0x23200
movl $0x1701, %edi           # imm = 0x1701
callq 0x23cf0
callq 0x24200
movl $0x1700, %edi           # imm = 0x1700
callq 0x23cf0
callq 0x24200
cmpl $0x0, 0x146004(%rip)    # 0x16da70
je 0x27a79
movl 0x140f60(%rip), %edi    # 0x1689d4
callq 0x28092
cmpl $0x0, 0x145ff4(%rip)    # 0x16da74
je 0x27acd
cmpl $0x0, 0x145e4b(%rip)    # 0x16d8d4
jle 0x27acd
movl 0x140f43(%rip), %ebx    # 0x1689d4
xorl %r14d, %r14d
movl $0x4, %ebp
movl 0x140f49(%rip), %eax    # 0x1689e8
cmpq %rax, %r14
movl %ebx, %esi
cmovel %ebp, %esi
cmpl $0x3, %ebx
movq 0x145e17(%rip), %rax    # 0x16d8c8
movq (%rax,%r14,8), %rdi
movq (%rdi), %rax
cmovel %ebx, %esi
callq *0x68(%rax)
incq %r14
movslq 0x145e0c(%rip), %rax    # 0x16d8d4
cmpq %rax, %r14
jl 0x27a99
cmpl $0x0, 0x145fa4(%rip)    # 0x16da78
je 0x27b21
cmpl $0x0, 0x145df7(%rip)    # 0x16d8d4
jle 0x27b21
movl 0x140eef(%rip), %ebx    # 0x1689d4
xorl %r14d, %r14d
movl $0x4, %ebp
movl 0x140ef5(%rip), %eax    # 0x1689e8
cmpq %rax, %r14
movl %ebx, %esi
cmovel %ebp, %esi
cmpl $0x3, %ebx
movq 0x145dc3(%rip), %rax    # 0x16d8c8
movq (%rax,%r14,8), %rdi
movq (%rdi), %rax
cmovel %ebx, %esi
callq *0x70(%rax)
incq %r14
movslq 0x145db8(%rip), %rax    # 0x16d8d4
cmpq %rax, %r14
jl 0x27aed
cmpl $0x0, 0x145f54(%rip)    # 0x16da7c
je 0x27b35
movl 0x140ea4(%rip), %edi    # 0x1689d4
callq 0x280e2
cmpl $0x0, 0x145f44(%rip)    # 0x16da80
je 0x27b49
movl 0x140e90(%rip), %edi    # 0x1689d4
callq 0x2814b
cmpl $0x0, 0x145f34(%rip)    # 0x16da84
je 0x27b5d
movl 0x140e7c(%rip), %edi    # 0x1689d4
callq 0x281b4
cmpl $0x0, 0x145f24(%rip)    # 0x16da88
je 0x27bb1
cmpl $0x0, 0x145d67(%rip)    # 0x16d8d4
jle 0x27bb1
movl 0x140e5f(%rip), %ebx    # 0x1689d4
xorl %r14d, %r14d
movl $0x4, %ebp
movl 0x140e65(%rip), %eax    # 0x1689e8
cmpq %rax, %r14
movl %ebx, %esi
cmovel %ebp, %esi
cmpl $0x3, %ebx
movq 0x145d33(%rip), %rax    # 0x16d8c8
movq (%rax,%r14,8), %rdi
movq (%rdi), %rax
cmovel %ebx, %esi
callq *0x78(%rax)
incq %r14
movslq 0x145d28(%rip), %rax    # 0x16d8d4
cmpq %rax, %r14
jl 0x27b7d
cmpl $0x0, 0x145ed4(%rip)    # 0x16da8c
je 0x27cee
cmpq $0x0, 0x145f8a(%rip)    # 0x16db50
je 0x27cee
cmpl $0x0, 0x145d01(%rip)    # 0x16d8d4
jle 0x27cee
movq 0x145ce8(%rip), %rax    # 0x16d8c8
movq (%rax), %rax
movq 0x88(%rax), %r15
cmpl $0x0, 0x14(%r15)
jle 0x27c3f
movsd 0xd442f(%rip), %xmm0    # 0xfc028
xorl %r12d, %r12d
leaq 0x145d95(%rip), %r14    # 0x16d998
xorl %ebx, %ebx
movsd %xmm0, 0x40(%rsp)
movq 0x8(%r15), %rax
movq (%rax,%r12,8), %r13
leaq 0x18(%r13), %rdi
movq %r14, %rsi
callq 0x5f837
movsd 0x40(%rsp), %xmm1
ucomisd %xmm0, %xmm1
cmovaq %r13, %rbx
minsd %xmm1, %xmm0
incq %r12
movslq 0x14(%r15), %rax
cmpq %rax, %r12
jl 0x27c05
jmp 0x27c41
xorl %ebx, %ebx
testq %rbx, %rbx
je 0x27cee
movss 0xd43b6(%rip), %xmm0    # 0xfc008
callq 0x24180
movss 0xd43a5(%rip), %xmm0    # 0xfc004
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
callq 0x24340
movl $0x1, %edi
callq 0x23190
movslq 0x70(%rbx), %r12
movq 0x145ed1(%rip), %rax    # 0x16db50
shlq $0x4, %r12
cmpl $0x0, 0xc(%rax,%r12)
jle 0x27cdc
addq $0x18, %rbx
addq %r12, %rax
xorl %r13d, %r13d
leaq 0x149264(%rip), %r14    # 0x170f00
movq %rsp, %r15
movq (%rax), %rax
movq (%rax,%r13,8), %rsi
addq $0x38, %rsi
movq %r15, %rdi
movq %r14, %rdx
callq 0x876e6
movq %r15, %rdi
callq 0x231b0
movq %rbx, %rdi
callq 0x231b0
incq %r13
movq 0x145e81(%rip), %rax    # 0x16db50
movslq 0xc(%rax,%r12), %rcx
addq %r12, %rax
cmpq %rcx, %r13
jl 0x27c9f
callq 0x23c90
movss 0xd431b(%rip), %xmm0    # 0xfc004
callq 0x24180
cmpl $0x0, 0x140ce3(%rip)    # 0x1689d8
je 0x27d50
leaq 0x145c4a(%rip), %rdi    # 0x16d948
leaq 0x1492eb(%rip), %rsi    # 0x170ff0
callq 0x88db4
testl %eax, %eax
jne 0x27d50
movss 0xd42ee(%rip), %xmm0    # 0xfc004
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
callq 0x24340
leaq 0x145c20(%rip), %rsi    # 0x16d948
movq %rsp, %rbx
movsd 0xd42fd(%rip), %xmm0    # 0xfc030
movq %rbx, %rdi
callq 0x7df6a
movl $0x772, %esi            # imm = 0x772
movq %rbx, %rdi
callq 0x57c9c
movq %rsp, %rdi
callq 0x81378
cmpl $0x0, 0x145d39(%rip)    # 0x16da90
je 0x27f22
movss 0xd42a3(%rip), %xmm0    # 0xfc008
callq 0x24180
movl $0x3, %edi
callq 0x23190
movss 0xd4288(%rip), %xmm0    # 0xfc004
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
callq 0x24340
leaq 0xd7f3a(%rip), %rsi     # 0xffcc8
leaq 0x28(%rsp), %r14
movsd 0xd427d(%rip), %xmm0    # 0xfc018
movq %r14, %rdi
callq 0x8a156
leaq 0x149156(%rip), %rbx    # 0x170f00
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x89039
movq %r15, %rdi
callq 0x231b0
leaq 0xd7eb6(%rip), %rsi     # 0xffc80
leaq 0x28(%rsp), %r14
movsd 0xd4239(%rip), %xmm0    # 0xfc010
movq %r14, %rdi
callq 0x8a156
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x89039
movq %r15, %rdi
callq 0x231b0
callq 0x23c90
movl $0x3, %edi
callq 0x23190
xorps %xmm0, %xmm0
xorps %xmm2, %xmm2
movss 0xd41ef(%rip), %xmm1    # 0xfc004
callq 0x24340
leaq 0xd7ebf(%rip), %rsi     # 0xffce0
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movsd 0xd41e7(%rip), %xmm0    # 0xfc018
callq 0x8a156
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x89039
movq %r15, %rdi
callq 0x231b0
leaq 0xd7e42(%rip), %rsi     # 0xffc98
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movsd 0xd41aa(%rip), %xmm0    # 0xfc010
callq 0x8a156
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x89039
movq %r15, %rdi
callq 0x231b0
callq 0x23c90
movl $0x3, %edi
callq 0x23190
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
movss 0xd4163(%rip), %xmm2    # 0xfc004
callq 0x24340
leaq 0xd7e4b(%rip), %rsi     # 0xffcf8
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movsd 0xd415b(%rip), %xmm0    # 0xfc018
callq 0x8a156
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x89039
movq %r15, %rdi
callq 0x231b0
leaq 0xd7dce(%rip), %rsi     # 0xffcb0
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movsd 0xd411e(%rip), %xmm0    # 0xfc010
callq 0x8a156
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x89039
movq %r15, %rdi
callq 0x231b0
callq 0x23c90
movss 0xd40e7(%rip), %xmm0    # 0xfc004
callq 0x24180
movq 0x145b6f(%rip), %rsi    # 0x16da98
testq %rsi, %rsi
je 0x27f8b
cmpb $0x1, 0x145b6b(%rip)    # 0x16daa0
jne 0x27f45
leaq 0xd42aa(%rip), %rdi     # 0xfc1e8
xorl %eax, %eax
callq 0x23080
movl 0x140a91(%rip), %esi    # 0x1689dc
movl 0x140a8f(%rip), %edx    # 0x1689e0
movq %rsp, %rbx
movq %rbx, %rdi
movl $0x3, %ecx
callq 0xa31ee
movq %rbx, %rdi
callq 0xa3c78
movq 0x145b28(%rip), %rsi    # 0x16da98
movq %rsp, %rdi
callq 0xa5028
movq $0x0, 0x145b15(%rip) # 0x16da98
movq %rsp, %rdi
callq 0xa3456
callq 0xeef68
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x81378
jmp 0x27fc4
movq %rax, %rbx
movq %rsp, %rdi
callq 0xa013c
jmp 0x27fc4
movq %rax, %rbx
movq %rsp, %rdi
callq 0xa3456
movq %rbx, %rdi
callq 0x24100