// File: /workspace/github_c_makefile_star2_O0/icebert[P]pblat/lib/htmshell.c
// Function: htmStartWithHead
void _htmStartWithHead(FILE *f, char *head, char *title, boolean printDocType, int dirDepth)
/* Write out bits of header that both stand-alone .htmls
 * and CGI returned .htmls need, including optional head info */
{
if (printDocType)
    {
//#define TOO_TIMID_FOR_CURRENT_HTML_STANDARDS
#ifdef TOO_TIMID_FOR_CURRENT_HTML_STANDARDS
    fputs("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2//EN\">\n", f);
#else///ifndef TOO_TIMID_FOR_CURRENT_HTML_STANDARDS
    char *browserVersion;
    if (btIE == cgiClientBrowser(&browserVersion, NULL, NULL) && *browserVersion < '8')
        fputs("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2//EN\">\n", f);
    else
        fputs("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" "
              "\"http://www.w3.org/TR/html4/loose.dtd\">\n",f);
    // Strict would be nice since it fixes atleast one IE problem (use of :hover CSS pseudoclass)
#endif///ndef TOO_TIMID_FOR_CURRENT_HTML_STANDARDS
    }
fputs("<HTML>\n", f);
fputs("<HEAD>\n", f);
// CSP header
generateCspMetaHeader(f);

fputs(head, f);
htmlFprintf(f,"<TITLE>%s</TITLE>\n", title); 
if (endsWith(title,"Login - UCSC Genome Browser")) 
    fprintf(f,"\t<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html;CHARSET=iso-8859-1\">\n");
fprintf(f, "\t<META http-equiv=\"Content-Script-Type\" content=\"text/javascript\">\n");
if (htmlStyle != NULL)
    fputs(htmlStyle, f);
if (htmlStyleSheet != NULL)
    fprintf(f,"<link href=\"%s\" rel=\"stylesheet\" type=\"text/css\">\n", htmlStyleSheet);
if (htmlStyleTheme != NULL)
    fputs(htmlStyleTheme, f);

fputs("</HEAD>\n\n",f);
printBodyTag(f);
htmlWarnBoxSetup(f);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movl %r8d, -0x20(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x6a0cc
leaq -0x28(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x62c60
movl %eax, %ecx
movl $0x2, %eax
cmpl %ecx, %eax
jne 0x6a0ba
movq -0x28(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x38, %eax
jge 0x6a0ba
movq -0x8(%rbp), %rsi
leaq 0x771c7(%rip), %rdi     # 0xe127a
callq 0x67f0
jmp 0x6a0ca
movq -0x8(%rbp), %rsi
leaq 0x771e8(%rip), %rdi     # 0xe12ad
callq 0x67f0
jmp 0x6a0cc
movq -0x8(%rbp), %rsi
leaq 0x7723e(%rip), %rdi     # 0xe1315
callq 0x67f0
movq -0x8(%rbp), %rsi
leaq 0x77236(%rip), %rdi     # 0xe131d
callq 0x67f0
movq -0x8(%rbp), %rdi
callq 0x6a020
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0x67f0
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq 0x77214(%rip), %rsi     # 0xe1325
movb $0x0, %al
callq 0x6a1d0
movq -0x18(%rbp), %rdi
leaq 0x77215(%rip), %rsi     # 0xe1338
callq 0x2d9a0
cmpl $0x0, %eax
je 0x6a13f
movq -0x8(%rbp), %rdi
leaq 0x7721c(%rip), %rsi     # 0xe1354
movb $0x0, %al
callq 0x6a80
movq -0x8(%rbp), %rdi
leaq 0x77254(%rip), %rsi     # 0xe139e
movb $0x0, %al
callq 0x6a80
cmpq $0x0, 0x9cd5f(%rip)     # 0x106eb8
je 0x6a16b
movq 0x9cd56(%rip), %rdi     # 0x106eb8
movq -0x8(%rbp), %rsi
callq 0x67f0
cmpq $0x0, 0xb0915(%rip)     # 0x11aa88
je 0x6a18e
movq -0x8(%rbp), %rdi
movq 0xb0908(%rip), %rdx     # 0x11aa88
leaq 0x7725b(%rip), %rsi     # 0xe13e2
movb $0x0, %al
callq 0x6a80
cmpq $0x0, 0xb0902(%rip)     # 0x11aa98
je 0x6a1a8
movq 0xb08f9(%rip), %rdi     # 0x11aa98
movq -0x8(%rbp), %rsi
callq 0x67f0
movq -0x8(%rbp), %rsi
leaq 0x77302(%rip), %rdi     # 0xe14b5
callq 0x67f0
movq -0x8(%rbp), %rdi
callq 0x69b20
movq -0x8(%rbp), %rdi
callq 0x69560
addq $0x30, %rsp
popq %rbp
retq