LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_structure.c
// Function: fgEnumSubWindows
void fgEnumSubWindows( SFG_Window* window, FGCBenumerator enumCallback,
                       SFG_Enumerator* enumerator )
{
    SFG_Window *child;

    FREEGLUT_INTERNAL_ERROR_EXIT ( enumCallback && enumerator,
                                   "Enumerator or callback missing from subwindow enumerator call",
                                   "fgEnumSubWindows" );
    FREEGLUT_INTERNAL_ERROR_EXIT_IF_NOT_INITIALISED ( "Window Enumeration" );

    for( child = ( SFG_Window * )window->Children.First;
         child;
         child = ( SFG_Window * )child->Node.Next )
    {
        enumCallback( child, enumerator );
        if( enumerator->found )
            return;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testq %rsi, %rsi
setne %al
testq %rdx, %rdx
setne %cl
testb %cl, %al
jne 0xd4c39
leaq 0x2733a(%rip), %rdi     # 0xfbf5e
leaq 0x27e87(%rip), %rsi     # 0xfcab2
leaq 0x27ebe(%rip), %rdx     # 0xfcaf0
xorl %eax, %eax
callq 0xd1cf7
leaq 0x6f580(%rip), %rax     # 0x1441c0
cmpb $0x0, 0x1c(%rax)
jne 0xd4c5b
leaq 0x16bfe(%rip), %rdi     # 0xeb84b
leaq 0x27ead(%rip), %rsi     # 0xfcb01
xorl %eax, %eax
callq 0xd1cf7
addq $0x160, %r15            # imm = 0x160
movq (%r15), %r15
testq %r15, %r15
je 0xd4c78
movq %r15, %rdi
movq %rbx, %rsi
callq *%r14
cmpb $0x0, (%rbx)
je 0xd4c62
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_structure.c
// Function: fgWindowByHandle
SFG_Window* fgWindowByHandle ( SFG_WindowHandleType hWindow )
{
    SFG_Enumerator enumerator;

    /* This is easy and makes use of the windows enumeration defined above */
    enumerator.found = GL_FALSE;
    enumerator.data = (void *)hWindow;
    fgEnumWindows( fghcbWindowByHandle, &enumerator );

    if( enumerator.found )
        return( SFG_Window *) enumerator.data;
    return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
leaq 0x8(%rsp), %rbx
movb $0x0, (%rbx)
movq %rdi, 0x8(%rbx)
leaq 0x73bd8(%rip), %r14     # 0x148870
movq (%r14), %r14
testq %r14, %r14
je 0xd4cb2
movq %r14, %rdi
movq %rbx, %rsi
callq 0xd4cca
cmpb $0x0, 0x8(%rsp)
je 0xd4c98
cmpb $0x0, 0x8(%rsp)
je 0xd4cc0
movq 0x10(%rsp), %rax
jmp 0xd4cc2
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_structure.c
// Function: fgWindowByID
SFG_Window* fgWindowByID( int windowID )
{
    SFG_Enumerator enumerator;

    /* Uses a method very similiar for fgWindowByHandle... */
    enumerator.found = GL_FALSE;
    enumerator.data = ( void * )&windowID;
    fgEnumWindows( fghcbWindowByID, &enumerator );
    if( enumerator.found )
        return ( SFG_Window * )enumerator.data;
    return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
leaq 0x14(%rsp), %rax
movl %edi, (%rax)
movq %rsp, %rbx
movb $0x0, (%rbx)
movq %rax, 0x8(%rbx)
leaq 0x73b60(%rip), %r14     # 0x148870
movq (%r14), %r14
testq %r14, %r14
je 0xd4d29
movq %r14, %rdi
movq %rbx, %rsi
callq 0xd4d40
cmpb $0x0, (%rsp)
je 0xd4d10
cmpb $0x0, (%rsp)
je 0xd4d36
movq 0x8(%rsp), %rax
jmp 0xd4d38
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_window.c
// Function: glutCreateWindow
int FGAPIENTRY glutCreateWindow( const char* title )
{
    /* XXX GLUT does not exit; it simply calls "glutInit" quietly if the
     * XXX application has not already done so.  The "freeglut" community
     * XXX decided not to go this route (freeglut-developer e-mail from
     * XXX Steve Baker, 12/16/04, 4:22 PM CST, "Re: [Freeglut-developer]
     * XXX Desired 'freeglut' behaviour when there is no current window"
     */
    FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutCreateWindow" );

    return fgCreateWindow( NULL, title, fgState.Position.Use,
                           fgState.Position.X, fgState.Position.Y,
                           fgState.Size.Use, fgState.Size.X, fgState.Size.Y,
                           GL_FALSE, GL_FALSE )->ID;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x6ebaa(%rip), %r14     # 0x1441c0
cmpb $0x0, 0x1c(%r14)
jne 0xd5632
leaq 0x15f42(%rip), %rdi     # 0xeb566
leaq 0x2759a(%rip), %rsi     # 0xfcbc5
xorl %eax, %eax
callq 0xd1cf7
movzbl 0x8(%r14), %edx
movl (%r14), %ecx
movl 0x4(%r14), %r8d
movzbl 0x14(%r14), %r9d
movl 0xc(%r14), %eax
movl 0x10(%r14), %r10d
xorl %r11d, %r11d
xorl %edi, %edi
movq %rbx, %rsi
pushq %r11
pushq %r11
pushq %r10
pushq %rax
callq 0xd4584
addq $0x20, %rsp
movl 0x10(%rax), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_window.c
// Function: glutCreateSubWindow
int FGAPIENTRY glutCreateSubWindow( int parentID, int x, int y, int w, int h )
{
    int ret = 0;
    SFG_Window* window = NULL;
    SFG_Window* parent = NULL;

    FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutCreateSubWindow" );
    parent = fgWindowByID( parentID );
    freeglut_return_val_if_fail( parent != NULL, 0 );
    if ( x < 0 )
    {
        x = parent->State.Width + x ;
        if ( w >= 0 ) x -= w ;
    }

    if ( w < 0 ) w = parent->State.Width - x + w ;
    if ( w < 0 )
    {
        x += w ;
        w = -w ;
    }

    if ( y < 0 )
    {
        y = parent->State.Height + y ;
        if ( h >= 0 ) y -= h ;
    }

    if ( h < 0 ) h = parent->State.Height - y + h ;
    if ( h < 0 )
    {
        y += h ;
        h = -h ;
    }

    window = fgCreateWindow( parent, "", GL_TRUE, x, y, GL_TRUE, w, h, GL_FALSE, GL_FALSE );
    ret = window->ID;

    return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %r8d, %ebx
movl %ecx, %r15d
movl %edx, %ebp
movl %esi, %r14d
movl %edi, %r12d
leaq 0x6eb35(%rip), %rax     # 0x1441c0
cmpb $0x0, 0x1c(%rax)
jne 0xd56a6
leaq 0x15ece(%rip), %rdi     # 0xeb566
leaq 0x27537(%rip), %rsi     # 0xfcbd6
xorl %eax, %eax
callq 0xd1cf7
movl %r12d, %edi
callq 0xd4cf1
testq %rax, %rax
je 0xd5749
testl %r14d, %r14d
jns 0xd56cc
xorl %ecx, %ecx
testl %r15d, %r15d
cmovgl %r15d, %ecx
subl %ecx, %r14d
addl 0x38(%rax), %r14d
testl %r15d, %r15d
jns 0xd56d8
subl %r14d, %r15d
addl 0x38(%rax), %r15d
movl %r15d, %ecx
sarl $0x1f, %ecx
andl %r15d, %ecx
movl %r15d, %r10d
negl %r10d
cmovsl %r15d, %r10d
testl %ebp, %ebp
jns 0xd56fb
xorl %edx, %edx
testl %ebx, %ebx
cmovgl %ebx, %edx
subl %edx, %ebp
addl 0x3c(%rax), %ebp
addl %r14d, %ecx
testl %ebx, %ebx
jns 0xd5707
subl %ebp, %ebx
addl 0x3c(%rax), %ebx
movl %ebx, %r8d
sarl $0x1f, %r8d
andl %ebx, %r8d
addl %ebp, %r8d
movl %ebx, %r11d
negl %r11d
cmovsl %ebx, %r11d
xorl %ebx, %ebx
leaq 0x77c0(%rip), %rsi      # 0xdcee7
movq %rax, %rdi
movl $0x1, %edx
movl $0x1, %r9d
pushq %rbx
pushq %rbx
pushq %r11
pushq %r10
callq 0xd4584
addq $0x20, %rsp
movl 0x10(%rax), %eax
jmp 0xd574b
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_window.c
// Function: glutDestroyWindow
void FGAPIENTRY glutDestroyWindow( int windowID )
{
    SFG_Window* window;
    FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutDestroyWindow" );
    window = fgWindowByID( windowID );
    freeglut_return_if_fail( window != NULL );
    {
        fgExecutionState ExecState = fgState.ExecState;
        fgAddToWindowDestroyList( window );
        fgState.ExecState = ExecState;
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
leaq 0x6ea5f(%rip), %r14     # 0x1441c0
cmpb $0x0, 0x1c(%r14)
jne 0xd577d
leaq 0x15df7(%rip), %rdi     # 0xeb566
leaq 0x27474(%rip), %rsi     # 0xfcbea
xorl %eax, %eax
callq 0xd1cf7
movl %ebx, %edi
callq 0xd4cf1
testq %rax, %rax
je 0xd579f
movl 0xa0(%r14), %ebx
movq %rax, %rdi
callq 0xd47e8
movl %ebx, 0xa0(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_window.c
// Function: glutSetWindow
void FGAPIENTRY glutSetWindow( int ID )
{
    SFG_Window* window = NULL;

    FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutSetWindow" );
    if( fgStructure.CurrentWindow != NULL )
        if( fgStructure.CurrentWindow->ID == ID )
            return;

    window = fgWindowByID( ID );
    if( window == NULL )
    {
        fgWarning( "glutSetWindow(): window ID %d not found!", ID );
        return;
    }

    fgSetWindow( window );
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edi, %ebx
leaq 0x6ea0b(%rip), %rax     # 0x1441c0
cmpb $0x0, 0x1c(%rax)
jne 0xd57d0
leaq 0x15da4(%rip), %rdi     # 0xeb566
leaq 0x27433(%rip), %rsi     # 0xfcbfc
xorl %eax, %eax
callq 0xd1cf7
leaq 0x73099(%rip), %r15     # 0x148870
movq 0x30(%r15), %rax
testq %rax, %rax
je 0xd57e5
cmpl %ebx, 0x10(%rax)
je 0xd581a
movl %ebx, %edi
callq 0xd4cf1
testq %rax, %rax
je 0xd5820
movq %rax, %r14
leaq 0x72fd5(%rip), %rax     # 0x1487d0
movq (%rax), %rdi
movq 0x18(%r14), %rdx
movq 0x20(%r14), %rcx
movq %rdx, %rsi
callq 0x21820
movq %r14, %rdi
callq 0xd0d5d
movq %r14, 0x30(%r15)
popq %rbx
popq %r14
popq %r15
retq
leaq 0x273e3(%rip), %rdi     # 0xfcc0a
movl %ebx, %esi
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x22aab
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_window.c
// Function: glutGetWindow
int FGAPIENTRY glutGetWindow( void )
{
    SFG_Window *win = fgStructure.CurrentWindow;
    /*
     * Since GLUT did not throw an error if this function was called without a prior call to
     * "glutInit", this function shouldn't do so here.  Instead let us return a zero.
     * See Feature Request "[ 1307049 ] glutInit check".
     */
    if ( ! fgState.Initialised )
        return 0;

    while ( win && win->IsMenu )
        win = win->Parent;
    return win ? win->ID : 0;
}

// Assembly:
leaq 0x6e984(%rip), %rax     # 0x1441c0
cmpb $0x0, 0x1c(%rax)
sete %dl
leaq 0x73026(%rip), %rax     # 0x148870
movq 0x30(%rax), %rcx
testq %rcx, %rcx
sete %sil
xorl %eax, %eax
orb %dl, %sil
jne 0xd5871
cmpb $0x0, 0x170(%rcx)
je 0xd5872
movq 0x158(%rcx), %rcx
testq %rcx, %rcx
jne 0xd585c
retq
movl 0x10(%rcx), %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_window.c
// Function: glutShowWindow
void FGAPIENTRY glutShowWindow( void )
{
    FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutShowWindow" );
    FREEGLUT_EXIT_IF_NO_WINDOW ( "glutShowWindow" );

#if TARGET_HOST_POSIX_X11

    XMapWindow( fgDisplay.Display, fgStructure.CurrentWindow->Window.Handle );
    XFlush( fgDisplay.Display ); /* XXX Shouldn't need this */

#elif TARGET_HOST_MS_WINDOWS

    ShowWindow( fgStructure.CurrentWindow->Window.Handle, SW_SHOW );

#endif

    fgStructure.CurrentWindow->State.Redisplay = GL_TRUE;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0x6e93f(%rip), %rax     # 0x1441c0
cmpb $0x0, 0x1c(%rax)
jne 0xd589c
leaq 0x15cd8(%rip), %rdi     # 0xeb566
leaq 0x2739e(%rip), %rsi     # 0xfcc33
xorl %eax, %eax
callq 0xd1cf7
leaq 0x72fcd(%rip), %rbx     # 0x148870
cmpq $0x0, 0x30(%rbx)
jne 0xd58bf
leaq 0x1600d(%rip), %rdi     # 0xeb8be
leaq 0x2737b(%rip), %rsi     # 0xfcc33
xorl %eax, %eax
callq 0xd1cf7
leaq 0x72f0a(%rip), %r14     # 0x1487d0
movq (%r14), %rdi
movq 0x30(%rbx), %rax
movq 0x18(%rax), %rsi
callq 0x21a10
movq (%r14), %rdi
callq 0x21eb0
movq 0x30(%rbx), %rax
movb $0x1, 0x48(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_window.c
// Function: glutHideWindow
void FGAPIENTRY glutHideWindow( void )
{
    FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutHideWindow" );
    FREEGLUT_EXIT_IF_NO_WINDOW ( "glutHideWindow" );

#if TARGET_HOST_POSIX_X11

    if( fgStructure.CurrentWindow->Parent == NULL )
        XWithdrawWindow( fgDisplay.Display,
                         fgStructure.CurrentWindow->Window.Handle,
                         fgDisplay.Screen );
    else
        XUnmapWindow( fgDisplay.Display,
                      fgStructure.CurrentWindow->Window.Handle );
    XFlush( fgDisplay.Display ); /* XXX Shouldn't need this */

#elif TARGET_HOST_MS_WINDOWS

    ShowWindow( fgStructure.CurrentWindow->Window.Handle, SW_HIDE );

#endif

    fgStructure.CurrentWindow->State.Redisplay = GL_FALSE;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0x6e8c7(%rip), %rax     # 0x1441c0
cmpb $0x0, 0x1c(%rax)
jne 0xd5914
leaq 0x15c60(%rip), %rdi     # 0xeb566
leaq 0x27335(%rip), %rsi     # 0xfcc42
xorl %eax, %eax
callq 0xd1cf7
leaq 0x72f55(%rip), %rbx     # 0x148870
cmpq $0x0, 0x30(%rbx)
jne 0xd5937
leaq 0x15f95(%rip), %rdi     # 0xeb8be
leaq 0x27312(%rip), %rsi     # 0xfcc42
xorl %eax, %eax
callq 0xd1cf7
movq 0x30(%rbx), %rax
cmpq $0x0, 0x158(%rax)
leaq 0x72e86(%rip), %r14     # 0x1487d0
movq (%r14), %rdi
movq 0x18(%rax), %rsi
je 0xd595a
callq 0x21e40
jmp 0xd5963
movl 0x8(%r14), %edx
callq 0x216f0
movq (%r14), %rdi
callq 0x21eb0
movq 0x30(%rbx), %rax
movb $0x0, 0x48(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_window.c
// Function: glutIconifyWindow
void FGAPIENTRY glutIconifyWindow( void )
{
    FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutIconifyWindow" );
    FREEGLUT_EXIT_IF_NO_WINDOW ( "glutIconifyWindow" );

    fgStructure.CurrentWindow->State.Visible   = GL_FALSE;
#if TARGET_HOST_POSIX_X11

    XIconifyWindow( fgDisplay.Display, fgStructure.CurrentWindow->Window.Handle,
                    fgDisplay.Screen );
    XFlush( fgDisplay.Display ); /* XXX Shouldn't need this */

#elif TARGET_HOST_MS_WINDOWS

    ShowWindow( fgStructure.CurrentWindow->Window.Handle, SW_MINIMIZE );

#endif

    fgStructure.CurrentWindow->State.Redisplay = GL_FALSE;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
leaq 0x6e83a(%rip), %rax     # 0x1441c0
cmpb $0x0, 0x1c(%rax)
jne 0xd59a1
leaq 0x15bd3(%rip), %rdi     # 0xeb566
leaq 0x272b7(%rip), %rsi     # 0xfcc51
xorl %eax, %eax
callq 0xd1cf7
leaq 0x72ec8(%rip), %rbx     # 0x148870
cmpq $0x0, 0x30(%rbx)
jne 0xd59c4
leaq 0x15f08(%rip), %rdi     # 0xeb8be
leaq 0x27294(%rip), %rsi     # 0xfcc51
xorl %eax, %eax
callq 0xd1cf7
movq 0x30(%rbx), %rax
xorl %ebp, %ebp
movb %bpl, 0x49(%rax)
leaq 0x72dfb(%rip), %r14     # 0x1487d0
movq (%r14), %rdi
movq 0x18(%rax), %rsi
movl 0x8(%r14), %edx
callq 0x21420
movq (%r14), %rdi
callq 0x21eb0
movq 0x30(%rbx), %rax
movb %bpl, 0x48(%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_window.c
// Function: glutSetWindowTitle
void FGAPIENTRY glutSetWindowTitle( const char* title )
{
    FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutSetWindowTitle" );
    FREEGLUT_EXIT_IF_NO_WINDOW ( "glutSetWindowTitle" );
    if( ! fgStructure.CurrentWindow->Parent )
    {
#if TARGET_HOST_POSIX_X11

        XTextProperty text;

        text.value = (unsigned char *) title;
        text.encoding = XA_STRING;
        text.format = 8;
        text.nitems = strlen( title );

        XSetWMName(
            fgDisplay.Display,
            fgStructure.CurrentWindow->Window.Handle,
            &text
        );

        XFlush( fgDisplay.Display ); /* XXX Shouldn't need this */

#elif TARGET_HOST_MS_WINDOWS
#    ifdef _WIN32_WCE
        {
            wchar_t* wstr = fghWstrFromStr(title);
            SetWindowText( fgStructure.CurrentWindow->Window.Handle, wstr );
            free(wstr);
        }
#    else
        SetWindowText( fgStructure.CurrentWindow->Window.Handle, title );
#    endif

#endif
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0x6e7b3(%rip), %rax     # 0x1441c0
cmpb $0x0, 0x1c(%rax)
jne 0xd5a28
leaq 0x15b4c(%rip), %rdi     # 0xeb566
leaq 0x27242(%rip), %rsi     # 0xfcc63
xorl %eax, %eax
callq 0xd1cf7
leaq 0x72e41(%rip), %r14     # 0x148870
cmpq $0x0, 0x30(%r14)
jne 0xd5a4b
leaq 0x15e81(%rip), %rdi     # 0xeb8be
leaq 0x2721f(%rip), %rsi     # 0xfcc63
xorl %eax, %eax
callq 0xd1cf7
movq 0x30(%r14), %r15
cmpq $0x0, 0x158(%r15)
jne 0xd5a99
movq %rsp, %r14
movq %rbx, (%r14)
movq $0x1f, 0x8(%r14)
movl $0x8, 0x10(%r14)
movq %rbx, %rdi
callq 0x21380
movq %rax, 0x18(%r14)
leaq 0x72d4e(%rip), %rbx     # 0x1487d0
movq (%rbx), %rdi
movq 0x18(%r15), %rsi
movq %r14, %rdx
callq 0x21b60
movq (%rbx), %rdi
callq 0x21eb0
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_window.c
// Function: glutSetIconTitle
void FGAPIENTRY glutSetIconTitle( const char* title )
{
    FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutSetIconTitle" );
    FREEGLUT_EXIT_IF_NO_WINDOW ( "glutSetIconTitle" );

    if( ! fgStructure.CurrentWindow->Parent )
    {
#if TARGET_HOST_POSIX_X11

        XTextProperty text;

        text.value = (unsigned char *) title;
        text.encoding = XA_STRING;
        text.format = 8;
        text.nitems = strlen( title );

        XSetWMIconName(
            fgDisplay.Display,
            fgStructure.CurrentWindow->Window.Handle,
            &text
        );

        XFlush( fgDisplay.Display ); /* XXX Shouldn't need this */

#elif TARGET_HOST_MS_WINDOWS
#    ifdef _WIN32_WCE
        {
            wchar_t* wstr = fghWstrFromStr(title);
            SetWindowText( fgStructure.CurrentWindow->Window.Handle, wstr );
            free(wstr);
        }
#    else
        SetWindowText( fgStructure.CurrentWindow->Window.Handle, title );
#    endif

#endif
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0x6e70a(%rip), %rax     # 0x1441c0
cmpb $0x0, 0x1c(%rax)
jne 0xd5ad1
leaq 0x15aa3(%rip), %rdi     # 0xeb566
leaq 0x271ac(%rip), %rsi     # 0xfcc76
xorl %eax, %eax
callq 0xd1cf7
leaq 0x72d98(%rip), %r14     # 0x148870
cmpq $0x0, 0x30(%r14)
jne 0xd5af4
leaq 0x15dd8(%rip), %rdi     # 0xeb8be
leaq 0x27189(%rip), %rsi     # 0xfcc76
xorl %eax, %eax
callq 0xd1cf7
movq 0x30(%r14), %r15
cmpq $0x0, 0x158(%r15)
jne 0xd5b42
movq %rsp, %r14
movq %rbx, (%r14)
movq $0x1f, 0x8(%r14)
movl $0x8, 0x10(%r14)
movq %rbx, %rdi
callq 0x21380
movq %rax, 0x18(%r14)
leaq 0x72ca5(%rip), %rbx     # 0x1487d0
movq (%rbx), %rdi
movq 0x18(%r15), %rsi
movq %r14, %rdx
callq 0x219a0
movq (%rbx), %rdi
callq 0x21eb0
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_window.c
// Function: glutReshapeWindow
void FGAPIENTRY glutReshapeWindow( int width, int height )
{
    FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutReshapeWindow" );
    FREEGLUT_EXIT_IF_NO_WINDOW ( "glutReshapeWindow" );

    if (glutGet(GLUT_FULL_SCREEN))
    {
      /*  Leave full screen state before resizing. */
      glutFullScreenToggle();
    }

    fgStructure.CurrentWindow->State.NeedToResize = GL_TRUE;
    fgStructure.CurrentWindow->State.Width  = width ;
    fgStructure.CurrentWindow->State.Height = height;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movl %edi, %ebp
leaq 0x6e665(%rip), %rax     # 0x1441c0
cmpb $0x0, 0x1c(%rax)
jne 0xd5b76
leaq 0x159fe(%rip), %rdi     # 0xeb566
leaq 0x27118(%rip), %rsi     # 0xfcc87
xorl %eax, %eax
callq 0xd1cf7
leaq 0x72cf3(%rip), %r14     # 0x148870
cmpq $0x0, 0x30(%r14)
jne 0xd5b99
leaq 0x15d33(%rip), %rdi     # 0xeb8be
leaq 0x270f5(%rip), %rsi     # 0xfcc87
xorl %eax, %eax
callq 0xd1cf7
movl $0x1ff, %edi            # imm = 0x1FF
callq 0xd3cc4
testl %eax, %eax
je 0xd5bac
callq 0xd5bbf
movq 0x30(%r14), %rax
movb $0x1, 0x6a(%rax)
movl %ebp, 0x38(%rax)
movl %ebx, 0x3c(%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_window.c
// Function: glutFullScreenToggle
void FGAPIENTRY glutFullScreenToggle( void )
{
    SFG_Window *win;

    FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutFullScreenToggle" );
    FREEGLUT_EXIT_IF_NO_WINDOW ( "glutFullScreenToggle" );

    win = fgStructure.CurrentWindow;

#if TARGET_HOST_POSIX_X11
    if(toggle_fullscreen() != -1) {
        win->State.IsFullscreen = !win->State.IsFullscreen;
    }
#elif TARGET_HOST_MS_WINDOWS
    glutFullScreen();
    win->State.IsFullscreen = !win->State.IsFullscreen;
#endif
}

// Assembly:
pushq %rbx
leaq 0x6e5f9(%rip), %rax     # 0x1441c0
cmpb $0x0, 0x1c(%rax)
jne 0xd5be2
leaq 0x15992(%rip), %rdi     # 0xeb566
leaq 0x270fd(%rip), %rsi     # 0xfccd8
xorl %eax, %eax
callq 0xd1cf7
leaq 0x72c87(%rip), %rbx     # 0x148870
cmpq $0x0, 0x30(%rbx)
jne 0xd5c05
leaq 0x15cc7(%rip), %rdi     # 0xeb8be
leaq 0x270da(%rip), %rsi     # 0xfccd8
xorl %eax, %eax
callq 0xd1cf7
movq 0x30(%rbx), %rbx
callq 0xd5dc7
cmpb $0x0, 0x6b(%rbx)
sete 0x6b(%rbx)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_window.c
// Function: glutPositionWindow
void FGAPIENTRY glutPositionWindow( int x, int y )
{
    FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutPositionWindow" );
    FREEGLUT_EXIT_IF_NO_WINDOW ( "glutPositionWindow" );

    if (glutGet(GLUT_FULL_SCREEN))
    {
      /*  Leave full screen state before moving. */
      glutFullScreenToggle();
    }

#if TARGET_HOST_POSIX_X11

    XMoveWindow( fgDisplay.Display, fgStructure.CurrentWindow->Window.Handle,
                 x, y );
    XFlush( fgDisplay.Display ); /* XXX Shouldn't need this */

#elif TARGET_HOST_MS_WINDOWS

    {
        RECT winRect;

        /* "GetWindowRect" returns the pixel coordinates of the outside of the window */
        GetWindowRect( fgStructure.CurrentWindow->Window.Handle, &winRect );
        MoveWindow(
            fgStructure.CurrentWindow->Window.Handle,
            x,
            y,
            winRect.right - winRect.left,
            winRect.bottom - winRect.top,
            TRUE
        );
    }

#endif
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movl %edi, %ebp
leaq 0x6e596(%rip), %rax     # 0x1441c0
cmpb $0x0, 0x1c(%rax)
jne 0xd5c45
leaq 0x1592f(%rip), %rdi     # 0xeb566
leaq 0x2705b(%rip), %rsi     # 0xfcc99
xorl %eax, %eax
callq 0xd1cf7
leaq 0x72c24(%rip), %r14     # 0x148870
cmpq $0x0, 0x30(%r14)
jne 0xd5c68
leaq 0x15c64(%rip), %rdi     # 0xeb8be
leaq 0x27038(%rip), %rsi     # 0xfcc99
xorl %eax, %eax
callq 0xd1cf7
movl $0x1ff, %edi            # imm = 0x1FF
callq 0xd3cc4
testl %eax, %eax
je 0xd5c7b
callq 0xd5bbf
leaq 0x72b4e(%rip), %r15     # 0x1487d0
movq (%r15), %rdi
movq 0x30(%r14), %rax
movq 0x18(%rax), %rsi
movl %ebp, %edx
movl %ebx, %ecx
callq 0x21750
movq (%r15), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x21eb0
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_window.c
// Function: toggle_fullscreen
static int ewmh_fullscr_toggle(void)
{
    XEvent xev;
    long evmask = SubstructureRedirectMask | SubstructureNotifyMask;

    if(!fgDisplay.State || !fgDisplay.StateFullScreen) {
        return -1;
    }

    xev.type = ClientMessage;
    xev.xclient.window = fgStructure.CurrentWindow->Window.Handle;
    xev.xclient.message_type = fgDisplay.State;
    xev.xclient.format = 32;
    xev.xclient.data.l[0] = _NET_WM_STATE_TOGGLE;
    xev.xclient.data.l[1] = fgDisplay.StateFullScreen;
    xev.xclient.data.l[2] = 0;	/* no second property to toggle */
    xev.xclient.data.l[3] = 1;	/* source indication: application */
    xev.xclient.data.l[4] = 0;	/* unused */

    if(!XSendEvent(fgDisplay.Display, fgDisplay.RootWindow, 0, evmask, &xev)) {
        return -1;
    }
    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xc0, %rsp
leaq 0x729f6(%rip), %r14     # 0x1487d0
movq 0x28(%r14), %rcx
movq 0x30(%r14), %rax
testq %rcx, %rcx
setne %dl
testq %rax, %rax
setne %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0xd5e56
movq %rsp, %r8
movl $0x21, (%r8)
leaq 0x72a67(%rip), %rdx     # 0x148870
movq 0x30(%rdx), %rdx
movq 0x18(%rdx), %rdx
movq %rdx, 0x20(%r8)
movq %rcx, 0x28(%r8)
movl $0x20, 0x30(%r8)
movq $0x2, 0x38(%r8)
movq %rax, 0x40(%r8)
xorl %eax, %eax
movq %rax, 0x48(%r8)
movq $0x1, 0x50(%r8)
movq %rax, 0x58(%r8)
movq (%r14), %rdi
movq 0x10(%r14), %rsi
movl $0x180000, %ecx         # imm = 0x180000
xorl %edx, %edx
callq 0x21210
testl %eax, %eax
jne 0xd5ebb
movl $0x1ff, %edi            # imm = 0x1FF
callq 0xd3cc4
testl %eax, %eax
je 0xd5e7d
leaq 0x72a05(%rip), %rax     # 0x148870
movq 0x30(%rax), %rax
movb $0x1, 0x6a(%rax)
movq 0x40(%rax), %rcx
movq %rcx, 0x38(%rax)
jmp 0xd5ebb
movq (%r14), %rdi
leaq 0x729e9(%rip), %r15     # 0x148870
movq 0x30(%r15), %rax
movq 0x18(%rax), %rsi
movq %rsp, %rbx
movq %rbx, %rdx
callq 0x220f0
movq (%r14), %rdi
movq 0x30(%r15), %rax
movq 0x18(%rax), %rsi
xorl %ecx, %ecx
xorl %edx, %edx
subl (%rbx), %edx
subl 0x4(%rbx), %ecx
movl 0x38(%r14), %r8d
movl 0x3c(%r14), %r9d
callq 0x217c0
addq $0xc0, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_gamemode.c
// Function: glutLeaveGameMode
void FGAPIENTRY glutLeaveGameMode( void )
{
    FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutLeaveGameMode" );

    freeglut_return_if_fail( fgStructure.GameModeWindow );

    fgAddToWindowDestroyList( fgStructure.GameModeWindow );
    fgStructure.GameModeWindow = NULL;

#if TARGET_HOST_POSIX_X11

    XUngrabPointer( fgDisplay.Display, CurrentTime );
    XUngrabKeyboard( fgDisplay.Display, CurrentTime );

#endif

    fghRestoreState();
}

// Assembly:
pushq %rbx
leaq 0x6c9b6(%rip), %rax     # 0x1441c0
cmpb $0x0, 0x1c(%rax)
jne 0xd7825
leaq 0x13d4f(%rip), %rdi     # 0xeb566
leaq 0x2591b(%rip), %rsi     # 0xfd139
xorl %eax, %eax
callq 0xd1cf7
leaq 0x71044(%rip), %rbx     # 0x148870
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
je 0xd785e
callq 0xd47e8
movq $0x0, 0x48(%rbx)
leaq 0x70f87(%rip), %rbx     # 0x1487d0
movq (%rbx), %rdi
xorl %esi, %esi
callq 0x21830
movq (%rbx), %rdi
xorl %esi, %esi
popq %rbx
jmp 0x21c20
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_gamemode.c
// Function: glutGameModeGet
int FGAPIENTRY glutGameModeGet( GLenum eWhat )
{
    FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutGameModeGet" );

    switch( eWhat )
    {
    case GLUT_GAME_MODE_ACTIVE:
        return !!fgStructure.GameModeWindow;

    case GLUT_GAME_MODE_POSSIBLE:
        return fghChangeDisplayMode( GL_TRUE );

    case GLUT_GAME_MODE_WIDTH:
        return fgState.GameModeSize.X;

    case GLUT_GAME_MODE_HEIGHT:
        return fgState.GameModeSize.Y;

    case GLUT_GAME_MODE_PIXEL_DEPTH:
        return fgState.GameModeDepth;

    case GLUT_GAME_MODE_REFRESH_RATE:
        return fgState.GameModeRefresh;

    case GLUT_GAME_MODE_DISPLAY_CHANGED:
        /*
         * This is true if the game mode has been activated successfully..
         */
        return !!fgStructure.GameModeWindow;
    }

    fgWarning( "Unknown gamemode get: %d", eWhat );
    return -1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
leaq 0x6c953(%rip), %r14     # 0x1441c0
cmpb $0x0, 0x1c(%r14)
jne 0xd7889
leaq 0x13ceb(%rip), %rdi     # 0xeb566
leaq 0x258c9(%rip), %rsi     # 0xfd14b
xorl %eax, %eax
callq 0xd1cf7
cmpl $0x6, %ebx
ja 0xd78c5
movl %ebx, %eax
leaq 0x25999(%rip), %rcx     # 0xfd230
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x70fc9(%rip), %rax     # 0x148870
xorl %ebx, %ebx
cmpq $0x0, 0x48(%rax)
setne %bl
jmp 0xd78ec
movl 0x8c(%r14), %ebx
jmp 0xd78ec
movl 0x88(%r14), %ebx
jmp 0xd78ec
leaq 0x259d3(%rip), %rdi     # 0xfd29f
movl %ebx, %esi
xorl %eax, %eax
callq 0x22aab
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0xd78ec
movl 0x94(%r14), %ebx
jmp 0xd78ec
movl 0x98(%r14), %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_geometry.c
// Function: fghCircleTable
static void fghCircleTable(double **sint,double **cost,const int n)
{
    int i;

    /* Table size, the sign of n flips the circle direction */

    const int size = abs(n);

    /* Determine the angle between samples */

    const double angle = 2*M_PI/(double)( ( n == 0 ) ? 1 : n );

    /* Allocate memory for n samples, plus duplicate of first entry at the end */

    *sint = (double *) calloc(sizeof(double), size+1);
    *cost = (double *) calloc(sizeof(double), size+1);

    /* Bail out if memory allocation fails, fgError never returns */

    if (!(*sint) || !(*cost))
    {
        free(*sint);
        free(*cost);
        fgError("Failed to allocate memory in fghCircleTable");
    }

    /* Compute cos and sin around the circle */

    (*sint)[0] = 0.0;
    (*cost)[0] = 1.0;

    for (i=1; i<size; i++)
    {
        (*sint)[i] = sin(angle*i);
        (*cost)[i] = cos(angle*i);
    }

    /* Last sample is duplicate of the first */

    (*sint)[size] = (*sint)[0];
    (*cost)[size] = (*cost)[0];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
movl %edx, %r12d
negl %r12d
cmovsl %edx, %r12d
cmpl $0x1, %edx
adcl $0x0, %ebp
leal 0x1(%r12), %r15d
movl $0x8, %edi
movq %r15, %rsi
callq 0x21600
movq %rax, (%r14)
movl $0x8, %edi
movq %r15, %rsi
callq 0x21600
movq %rax, (%rbx)
movq (%r14), %rdi
testq %rdi, %rdi
setne %cl
testq %rax, %rax
setne %al
testb %cl, %al
jne 0xd8235
callq 0x21ae0
movq (%rbx), %rdi
callq 0x21ae0
leaq 0x250da(%rip), %rdi     # 0xfd308
xorl %eax, %eax
callq 0xd1cf7
movq (%r14), %rax
movq $0x0, (%rax)
movq (%rbx), %rax
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, (%rax)
movl %r12d, %r15d
cmpl $0x2, %r12d
jb 0xd82b0
cvtsi2sd %ebp, %xmm0
movsd 0x7b2c(%rip), %xmm1     # 0xdfd90
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movl $0x1, %r12d
xorps %xmm0, %xmm0
cvtsi2sd %r12d, %xmm0
mulsd (%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
callq 0x21170
movq (%r14), %rax
movsd %xmm0, (%rax,%r12,8)
movsd 0x8(%rsp), %xmm0
callq 0x221e0
movq (%rbx), %rax
movsd %xmm0, (%rax,%r12,8)
incq %r12
cmpq %r12, %r15
jne 0xd8273
movq (%r14), %rax
movsd (%rax), %xmm0
movsd %xmm0, (%rax,%r15,8)
movq (%rbx), %rax
movsd (%rax), %xmm0
movsd %xmm0, (%rax,%r15,8)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_geometry.c
// Function: glutWireTetrahedron
void FGAPIENTRY glutWireTetrahedron( void )
{
  FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutWireTetrahedron" );

  glBegin( GL_LINE_LOOP ) ;
    glNormal3d ( -tet_r[0][0], -tet_r[0][1], -tet_r[0][2] ) ; glVertex3dv ( tet_r[1] ) ; glVertex3dv ( tet_r[3] ) ; glVertex3dv ( tet_r[2] ) ;
    glNormal3d ( -tet_r[1][0], -tet_r[1][1], -tet_r[1][2] ) ; glVertex3dv ( tet_r[0] ) ; glVertex3dv ( tet_r[2] ) ; glVertex3dv ( tet_r[3] ) ;
    glNormal3d ( -tet_r[2][0], -tet_r[2][1], -tet_r[2][2] ) ; glVertex3dv ( tet_r[0] ) ; glVertex3dv ( tet_r[3] ) ; glVertex3dv ( tet_r[1] ) ;
    glNormal3d ( -tet_r[3][0], -tet_r[3][1], -tet_r[3][2] ) ; glVertex3dv ( tet_r[0] ) ; glVertex3dv ( tet_r[1] ) ; glVertex3dv ( tet_r[2] ) ;
  glEnd() ;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
leaq 0x6977d(%rip), %rax     # 0x1441c0
cmpb $0x0, 0x1c(%rax)
jne 0xdaa5e
leaq 0x10b16(%rip), %rdi     # 0xeb566
leaq 0x225c2(%rip), %rsi     # 0xfd019
xorl %eax, %eax
callq 0xd1cf7
movl $0x2, %edi
callq 0x21190
leaq 0x69871(%rip), %rbx     # 0x1442e0
movsd 0x69869(%rip), %xmm0    # 0x1442e0
movaps 0x1ab2(%rip), %xmm3     # 0xdc530
xorps %xmm3, %xmm0
movsd 0x6985f(%rip), %xmm1    # 0x1442e8
xorps %xmm3, %xmm1
movsd 0x6985c(%rip), %xmm2    # 0x1442f0
xorps %xmm3, %xmm2
callq 0x21310
leaq 0x69855(%rip), %r14     # 0x1442f8
movq %r14, %rdi
callq 0x211b0
leaq 0x69876(%rip), %r12     # 0x144328
movq %r12, %rdi
callq 0x211b0
leaq 0x6984f(%rip), %r15     # 0x144310
movq %r15, %rdi
callq 0x211b0
movsd 0x69827(%rip), %xmm0    # 0x1442f8
movaps 0x1a58(%rip), %xmm3     # 0xdc530
xorps %xmm3, %xmm0
movsd 0x6981d(%rip), %xmm1    # 0x144300
xorps %xmm3, %xmm1
movsd 0x6981a(%rip), %xmm2    # 0x144308
xorps %xmm3, %xmm2
callq 0x21310
movq %rbx, %rdi
callq 0x211b0
movq %r15, %rdi
callq 0x211b0
movq %r12, %rdi
callq 0x211b0
movsd 0x697fa(%rip), %xmm0    # 0x144310
movaps 0x1a13(%rip), %xmm3     # 0xdc530
xorps %xmm3, %xmm0
movsd 0x697f0(%rip), %xmm1    # 0x144318
xorps %xmm3, %xmm1
movsd 0x697ed(%rip), %xmm2    # 0x144320
xorps %xmm3, %xmm2
callq 0x21310
movq %rbx, %rdi
callq 0x211b0
movq %r12, %rdi
callq 0x211b0
movq %r14, %rdi
callq 0x211b0
movsd 0x697cd(%rip), %xmm0    # 0x144328
movaps 0x19ce(%rip), %xmm2     # 0xdc530
xorps %xmm2, %xmm0
movsd 0x697c3(%rip), %xmm1    # 0x144330
xorps %xmm2, %xmm1
movaps %xmm2, %xmm3
movsd 0x697bd(%rip), %xmm2    # 0x144338
xorps %xmm3, %xmm2
callq 0x21310
movq %rbx, %rdi
callq 0x211b0
movq %r14, %rdi
callq 0x211b0
movq %r15, %rdi
callq 0x211b0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x21c60
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_geometry.c
// Function: glutSolidTetrahedron
void FGAPIENTRY glutSolidTetrahedron( void )
{
  FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutSolidTetrahedron" );

  glBegin( GL_TRIANGLES ) ;
    glNormal3d ( -tet_r[0][0], -tet_r[0][1], -tet_r[0][2] ) ; glVertex3dv ( tet_r[1] ) ; glVertex3dv ( tet_r[3] ) ; glVertex3dv ( tet_r[2] ) ;
    glNormal3d ( -tet_r[1][0], -tet_r[1][1], -tet_r[1][2] ) ; glVertex3dv ( tet_r[0] ) ; glVertex3dv ( tet_r[2] ) ; glVertex3dv ( tet_r[3] ) ;
    glNormal3d ( -tet_r[2][0], -tet_r[2][1], -tet_r[2][2] ) ; glVertex3dv ( tet_r[0] ) ; glVertex3dv ( tet_r[3] ) ; glVertex3dv ( tet_r[1] ) ;
    glNormal3d ( -tet_r[3][0], -tet_r[3][1], -tet_r[3][2] ) ; glVertex3dv ( tet_r[0] ) ; glVertex3dv ( tet_r[1] ) ; glVertex3dv ( tet_r[2] ) ;
  glEnd() ;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
leaq 0x69606(%rip), %rax     # 0x1441c0
cmpb $0x0, 0x1c(%rax)
jne 0xdabd5
leaq 0x1099f(%rip), %rdi     # 0xeb566
leaq 0x2245f(%rip), %rsi     # 0xfd02d
xorl %eax, %eax
callq 0xd1cf7
movl $0x4, %edi
callq 0x21190
leaq 0x696fa(%rip), %rbx     # 0x1442e0
movsd 0x696f2(%rip), %xmm0    # 0x1442e0
movaps 0x193b(%rip), %xmm3     # 0xdc530
xorps %xmm3, %xmm0
movsd 0x696e8(%rip), %xmm1    # 0x1442e8
xorps %xmm3, %xmm1
movsd 0x696e5(%rip), %xmm2    # 0x1442f0
xorps %xmm3, %xmm2
callq 0x21310
leaq 0x696de(%rip), %r14     # 0x1442f8
movq %r14, %rdi
callq 0x211b0
leaq 0x696ff(%rip), %r12     # 0x144328
movq %r12, %rdi
callq 0x211b0
leaq 0x696d8(%rip), %r15     # 0x144310
movq %r15, %rdi
callq 0x211b0
movsd 0x696b0(%rip), %xmm0    # 0x1442f8
movaps 0x18e1(%rip), %xmm3     # 0xdc530
xorps %xmm3, %xmm0
movsd 0x696a6(%rip), %xmm1    # 0x144300
xorps %xmm3, %xmm1
movsd 0x696a3(%rip), %xmm2    # 0x144308
xorps %xmm3, %xmm2
callq 0x21310
movq %rbx, %rdi
callq 0x211b0
movq %r15, %rdi
callq 0x211b0
movq %r12, %rdi
callq 0x211b0
movsd 0x69683(%rip), %xmm0    # 0x144310
movaps 0x189c(%rip), %xmm3     # 0xdc530
xorps %xmm3, %xmm0
movsd 0x69679(%rip), %xmm1    # 0x144318
xorps %xmm3, %xmm1
movsd 0x69676(%rip), %xmm2    # 0x144320
xorps %xmm3, %xmm2
callq 0x21310
movq %rbx, %rdi
callq 0x211b0
movq %r12, %rdi
callq 0x211b0
movq %r14, %rdi
callq 0x211b0
movsd 0x69656(%rip), %xmm0    # 0x144328
movaps 0x1857(%rip), %xmm2     # 0xdc530
xorps %xmm2, %xmm0
movsd 0x6964c(%rip), %xmm1    # 0x144330
xorps %xmm2, %xmm1
movaps %xmm2, %xmm3
movsd 0x69646(%rip), %xmm2    # 0x144338
xorps %xmm3, %xmm2
callq 0x21310
movq %rbx, %rdi
callq 0x211b0
movq %r14, %rdi
callq 0x211b0
movq %r15, %rdi
callq 0x211b0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x21c60
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_geometry.c
// Function: glutWireIcosahedron
void FGAPIENTRY glutWireIcosahedron( void )
{
  int i ;

  FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutWireIcosahedron" );

  for ( i = 0; i < 20; i++ )
  {
    double normal[3] ;
    normal[0] = ( icos_r[icos_v[i][1]][1] - icos_r[icos_v[i][0]][1] ) * ( icos_r[icos_v[i][2]][2] - icos_r[icos_v[i][0]][2] ) - ( icos_r[icos_v[i][1]][2] - icos_r[icos_v[i][0]][2] ) * ( icos_r[icos_v[i][2]][1] - icos_r[icos_v[i][0]][1] ) ;
    normal[1] = ( icos_r[icos_v[i][1]][2] - icos_r[icos_v[i][0]][2] ) * ( icos_r[icos_v[i][2]][0] - icos_r[icos_v[i][0]][0] ) - ( icos_r[icos_v[i][1]][0] - icos_r[icos_v[i][0]][0] ) * ( icos_r[icos_v[i][2]][2] - icos_r[icos_v[i][0]][2] ) ;
    normal[2] = ( icos_r[icos_v[i][1]][0] - icos_r[icos_v[i][0]][0] ) * ( icos_r[icos_v[i][2]][1] - icos_r[icos_v[i][0]][1] ) - ( icos_r[icos_v[i][1]][1] - icos_r[icos_v[i][0]][1] ) * ( icos_r[icos_v[i][2]][0] - icos_r[icos_v[i][0]][0] ) ;
    glBegin ( GL_LINE_LOOP ) ;
      glNormal3dv ( normal ) ;
      glVertex3dv ( icos_r[icos_v[i][0]] ) ;
      glVertex3dv ( icos_r[icos_v[i][1]] ) ;
      glVertex3dv ( icos_r[icos_v[i][2]] ) ;
    glEnd () ;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
leaq 0x69489(%rip), %rax     # 0x1441c0
cmpb $0x0, 0x1c(%rax)
jne 0xdad52
leaq 0x10822(%rip), %rdi     # 0xeb566
leaq 0x222f7(%rip), %rsi     # 0xfd042
xorl %eax, %eax
callq 0xd1cf7
movl $0x8, %r13d
leaq 0x225e1(%rip), %rbp     # 0xfd340
leaq 0x695da(%rip), %rbx     # 0x144340
movslq -0x4(%r13,%rbp), %rax
leaq (%rax,%rax,2), %rax
leaq (%rbx,%rax,8), %r14
movslq -0x8(%r13,%rbp), %rax
leaq (%rax,%rax,2), %rax
leaq (%rbx,%rax,8), %r12
movslq (%r13,%rbp), %rax
leaq (%rax,%rax,2), %rax
leaq (%rbx,%rax,8), %r15
movsd 0x8(%r15), %xmm1
movsd (%r12), %xmm2
movsd (%r14), %xmm0
subsd %xmm2, %xmm0
movupd 0x8(%r12), %xmm3
movupd 0x8(%r14), %xmm4
subpd %xmm3, %xmm4
movsd 0x10(%r15), %xmm5
movhpd (%r15), %xmm5           # xmm5 = xmm5[0],mem[0]
subsd %xmm3, %xmm1
shufpd $0x1, %xmm2, %xmm3      # xmm3 = xmm3[1],xmm2[0]
subpd %xmm3, %xmm5
movapd %xmm4, %xmm2
shufpd $0x1, %xmm0, %xmm2      # xmm2 = xmm2[1],xmm0[0]
mulsd %xmm1, %xmm0
unpcklpd %xmm5, %xmm1            # xmm1 = xmm1[0],xmm5[0]
mulpd %xmm2, %xmm1
movapd %xmm4, %xmm2
mulpd %xmm5, %xmm2
subpd %xmm1, %xmm2
movapd %xmm2, (%rsp)
unpckhpd %xmm5, %xmm5            # xmm5 = xmm5[1,1]
mulsd %xmm4, %xmm5
subsd %xmm5, %xmm0
movsd %xmm0, 0x10(%rsp)
movl $0x2, %edi
callq 0x21190
movq %rsp, %rdi
callq 0x21e10
movq %r12, %rdi
callq 0x211b0
movq %r14, %rdi
callq 0x211b0
movq %r15, %rdi
callq 0x211b0
callq 0x21c60
addq $0xc, %r13
cmpq $0xf8, %r13
jne 0xdad66
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_geometry.c
// Function: glutSolidIcosahedron
void FGAPIENTRY glutSolidIcosahedron( void )
{
  int i ;

  FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutSolidIcosahedron" );

  glBegin ( GL_TRIANGLES ) ;
  for ( i = 0; i < 20; i++ )
  {
    double normal[3] ;
    normal[0] = ( icos_r[icos_v[i][1]][1] - icos_r[icos_v[i][0]][1] ) * ( icos_r[icos_v[i][2]][2] - icos_r[icos_v[i][0]][2] ) - ( icos_r[icos_v[i][1]][2] - icos_r[icos_v[i][0]][2] ) * ( icos_r[icos_v[i][2]][1] - icos_r[icos_v[i][0]][1] ) ;
    normal[1] = ( icos_r[icos_v[i][1]][2] - icos_r[icos_v[i][0]][2] ) * ( icos_r[icos_v[i][2]][0] - icos_r[icos_v[i][0]][0] ) - ( icos_r[icos_v[i][1]][0] - icos_r[icos_v[i][0]][0] ) * ( icos_r[icos_v[i][2]][2] - icos_r[icos_v[i][0]][2] ) ;
    normal[2] = ( icos_r[icos_v[i][1]][0] - icos_r[icos_v[i][0]][0] ) * ( icos_r[icos_v[i][2]][1] - icos_r[icos_v[i][0]][1] ) - ( icos_r[icos_v[i][1]][1] - icos_r[icos_v[i][0]][1] ) * ( icos_r[icos_v[i][2]][0] - icos_r[icos_v[i][0]][0] ) ;
      glNormal3dv ( normal ) ;
      glVertex3dv ( icos_r[icos_v[i][0]] ) ;
      glVertex3dv ( icos_r[icos_v[i][1]] ) ;
      glVertex3dv ( icos_r[icos_v[i][2]] ) ;
  }

  glEnd () ;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
leaq 0x69359(%rip), %rax     # 0x1441c0
cmpb $0x0, 0x1c(%rax)
jne 0xdae82
leaq 0x106f2(%rip), %rdi     # 0xeb566
leaq 0x221db(%rip), %rsi     # 0xfd056
xorl %eax, %eax
callq 0xd1cf7
movl $0x4, %edi
callq 0x21190
movl $0x8, %r13d
leaq 0x224a7(%rip), %rbp     # 0xfd340
leaq 0x694a0(%rip), %rbx     # 0x144340
movslq -0x4(%r13,%rbp), %rax
leaq (%rax,%rax,2), %rax
leaq (%rbx,%rax,8), %r14
movslq -0x8(%r13,%rbp), %rax
leaq (%rax,%rax,2), %rax
leaq (%rbx,%rax,8), %r12
movslq (%r13,%rbp), %rax
leaq (%rax,%rax,2), %rax
leaq (%rbx,%rax,8), %r15
movsd 0x8(%r15), %xmm1
movsd (%r12), %xmm2
movsd (%r14), %xmm0
subsd %xmm2, %xmm0
movupd 0x8(%r12), %xmm3
movupd 0x8(%r14), %xmm4
subpd %xmm3, %xmm4
movsd 0x10(%r15), %xmm5
movhpd (%r15), %xmm5           # xmm5 = xmm5[0],mem[0]
subsd %xmm3, %xmm1
shufpd $0x1, %xmm2, %xmm3      # xmm3 = xmm3[1],xmm2[0]
subpd %xmm3, %xmm5
movapd %xmm4, %xmm2
shufpd $0x1, %xmm0, %xmm2      # xmm2 = xmm2[1],xmm0[0]
mulsd %xmm1, %xmm0
unpcklpd %xmm5, %xmm1            # xmm1 = xmm1[0],xmm5[0]
mulpd %xmm2, %xmm1
movapd %xmm4, %xmm2
mulpd %xmm5, %xmm2
subpd %xmm1, %xmm2
movapd %xmm2, (%rsp)
unpckhpd %xmm5, %xmm5            # xmm5 = xmm5[1,1]
mulsd %xmm4, %xmm5
subsd %xmm5, %xmm0
movsd %xmm0, 0x10(%rsp)
movq %rsp, %rdi
callq 0x21e10
movq %r12, %rdi
callq 0x211b0
movq %r14, %rdi
callq 0x211b0
movq %r15, %rdi
callq 0x211b0
addq $0xc, %r13
cmpq $0xf8, %r13
jne 0xdaea0
callq 0x21c60
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_geometry.c
// Function: glutWireRhombicDodecahedron
void FGAPIENTRY glutWireRhombicDodecahedron( void )
{
  int i ;

  FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutWireRhombicDodecahedron" );

  for ( i = 0; i < 12; i++ )
  {
    glBegin ( GL_LINE_LOOP ) ;
      glNormal3dv ( rdod_n[i] ) ;
      glVertex3dv ( rdod_r[rdod_v[i][0]] ) ;
      glVertex3dv ( rdod_r[rdod_v[i][1]] ) ;
      glVertex3dv ( rdod_r[rdod_v[i][2]] ) ;
      glVertex3dv ( rdod_r[rdod_v[i][3]] ) ;
    glEnd () ;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
leaq 0x6922f(%rip), %rax     # 0x1441c0
cmpb $0x0, 0x1c(%rax)
jne 0xdafac
leaq 0x105c8(%rip), %rdi     # 0xeb566
leaq 0x221b6(%rip), %rsi     # 0xfd15b
xorl %eax, %eax
callq 0xd1cf7
movl $0xc, %r14d
leaq 0x694a7(%rip), %rbx     # 0x144460
leaq 0x22470(%rip), %r15     # 0xfd430
leaq 0x695b9(%rip), %r12     # 0x144580
movl $0x2, %edi
callq 0x21190
movq %rbx, %rdi
callq 0x21e10
movslq -0xc(%r14,%r15), %rax
leaq (%rax,%rax,2), %rax
leaq (%r12,%rax,8), %rdi
callq 0x211b0
movslq -0x8(%r14,%r15), %rax
leaq (%rax,%rax,2), %rax
leaq (%r12,%rax,8), %rdi
callq 0x211b0
movslq -0x4(%r14,%r15), %rax
leaq (%rax,%rax,2), %rax
leaq (%r12,%rax,8), %rdi
callq 0x211b0
movslq (%r14,%r15), %rax
leaq (%rax,%rax,2), %rax
leaq (%r12,%rax,8), %rdi
callq 0x211b0
callq 0x21c60
addq $0x10, %r14
addq $0x18, %rbx
cmpq $0xcc, %r14
jne 0xdafc7
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_geometry.c
// Function: glutSolidRhombicDodecahedron
void FGAPIENTRY glutSolidRhombicDodecahedron( void )
{
  int i ;

  FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutSolidRhombicDodecahedron" );

  glBegin ( GL_QUADS ) ;
  for ( i = 0; i < 12; i++ )
  {
      glNormal3dv ( rdod_n[i] ) ;
      glVertex3dv ( rdod_r[rdod_v[i][0]] ) ;
      glVertex3dv ( rdod_r[rdod_v[i][1]] ) ;
      glVertex3dv ( rdod_r[rdod_v[i][2]] ) ;
      glVertex3dv ( rdod_r[rdod_v[i][3]] ) ;
  }

  glEnd () ;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
leaq 0x6916f(%rip), %rax     # 0x1441c0
cmpb $0x0, 0x1c(%rax)
jne 0xdb06c
leaq 0x10508(%rip), %rdi     # 0xeb566
leaq 0x22112(%rip), %rsi     # 0xfd177
xorl %eax, %eax
callq 0xd1cf7
movl $0x7, %edi
callq 0x21190
movl $0xc, %r14d
leaq 0x693dd(%rip), %rbx     # 0x144460
leaq 0x223a6(%rip), %r15     # 0xfd430
leaq 0x694ef(%rip), %r12     # 0x144580
movq %rbx, %rdi
callq 0x21e10
movslq -0xc(%r14,%r15), %rax
leaq (%rax,%rax,2), %rax
leaq (%r12,%rax,8), %rdi
callq 0x211b0
movslq -0x8(%r14,%r15), %rax
leaq (%rax,%rax,2), %rax
leaq (%r12,%rax,8), %rdi
callq 0x211b0
movslq -0x4(%r14,%r15), %rax
leaq (%rax,%rax,2), %rax
leaq (%r12,%rax,8), %rdi
callq 0x211b0
movslq (%r14,%r15), %rax
leaq (%rax,%rax,2), %rax
leaq (%r12,%rax,8), %rdi
callq 0x211b0
addq $0x10, %r14
addq $0x18, %rbx
cmpq $0xcc, %r14
jne 0xdb091
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x21c60
// File: /workspace/github_cpp_makefile_star2_O1/tomfunkhouser[P]gaps/pkgs/fglut/freeglut_geometry.c
// Function: glutWireSierpinskiSponge
void FGAPIENTRY glutWireSierpinskiSponge ( int num_levels, GLdouble offset[3], GLdouble scale )
{
  int i, j ;

  FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutWireSierpinskiSponge" );

  if ( num_levels == 0 )
  {

    for ( i = 0 ; i < NUM_TETR_FACES ; i++ )
    {
      glBegin ( GL_LINE_LOOP ) ;
      glNormal3d ( -tet_r[i][0], -tet_r[i][1], -tet_r[i][2] ) ;
      for ( j = 0; j < 3; j++ )
      {
        double x = offset[0] + scale * tet_r[tet_i[i][j]][0] ;
        double y = offset[1] + scale * tet_r[tet_i[i][j]][1] ;
        double z = offset[2] + scale * tet_r[tet_i[i][j]][2] ;
        glVertex3d ( x, y, z ) ;
      }

      glEnd () ;
    }
  }
  else if ( num_levels > 0 )
  {
    GLdouble local_offset[3] ;  /* Use a local variable to avoid buildup of roundoff errors */
    num_levels -- ;
    scale /= 2.0 ;
    for ( i = 0 ; i < NUM_TETR_FACES ; i++ )
    {
      local_offset[0] = offset[0] + scale * tet_r[i][0] ;
      local_offset[1] = offset[1] + scale * tet_r[i][1] ;
      local_offset[2] = offset[2] + scale * tet_r[i][2] ;
      glutWireSierpinskiSponge ( num_levels, local_offset, scale ) ;
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movapd %xmm0, (%rsp)
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x690a0(%rip), %rax     # 0x1441c0
cmpb $0x0, 0x1c(%rax)
jne 0xdb13b
leaq 0x10439(%rip), %rdi     # 0xeb566
leaq 0x22060(%rip), %rsi     # 0xfd194
xorl %eax, %eax
callq 0xd1cf7
testl %ebp, %ebp
je 0xdb1cb
jle 0xdb275
decl %ebp
movapd (%rsp), %xmm0
mulsd 0xec8(%rip), %xmm0      # 0xdc020
movapd %xmm0, %xmm1
unpcklpd %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
movapd %xmm1, 0x10(%rsp)
movl $0x10, %r15d
leaq 0x6916d(%rip), %r12     # 0x1442e0
leaq 0x20(%rsp), %r14
movapd %xmm0, (%rsp)
movupd (%rbx), %xmm2
movupd -0x10(%r15,%r12), %xmm1
mulpd 0x10(%rsp), %xmm1
addpd %xmm2, %xmm1
movapd %xmm1, 0x20(%rsp)
movsd (%r15,%r12), %xmm1
mulsd %xmm0, %xmm1
addsd 0x10(%rbx), %xmm1
movsd %xmm1, 0x30(%rsp)
movl %ebp, %edi
movq %r14, %rsi
callq 0xdb101
movapd (%rsp), %xmm0
addq $0x18, %r15
cmpq $0x70, %r15
jne 0xdb17d
jmp 0xdb275
leaq 0x2231e(%rip), %r14     # 0xfd4f0
xorl %r15d, %r15d
leaq 0x69104(%rip), %r12     # 0x1442e0
movl $0x2, %edi
callq 0x21190
leaq (%r15,%r15,2), %rax
movsd (%r12,%rax,8), %xmm0
movsd 0x8(%r12,%rax,8), %xmm1
movsd 0x10(%r12,%rax,8), %xmm2
movaps 0x132b(%rip), %xmm3     # 0xdc530
xorps %xmm3, %xmm0
xorps %xmm3, %xmm1
xorps %xmm3, %xmm2
callq 0x21310
xorl %r13d, %r13d
movslq (%r14,%r13,4), %rax
leaq (%rax,%rax,2), %rax
movsd (%r12,%rax,8), %xmm0
movapd (%rsp), %xmm3
mulsd %xmm3, %xmm0
addsd (%rbx), %xmm0
movsd 0x8(%r12,%rax,8), %xmm1
mulsd %xmm3, %xmm1
addsd 0x8(%rbx), %xmm1
movsd 0x10(%r12,%rax,8), %xmm2
mulsd %xmm3, %xmm2
addsd 0x10(%rbx), %xmm2
callq 0x21e70
incq %r13
cmpq $0x3, %r13
jne 0xdb216
callq 0x21c60
incq %r15
addq $0xc, %r14
cmpq $0x4, %r15
jne 0xdb1dc
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq