// File: /workspace/github_c_makefile_star2_O3/JimKent[P]linearSat/lib/cheapcgi.c
// Function: initCgiInput
static void initCgiInput()
/* Initialize CGI input stuff.  After this CGI vars are
 * stored in an internal hash/list regardless of how they
 * were passed to the program. */
{
char* s;

if (inputString != NULL)
    return;

_cgiFindInput(NULL);

#ifndef GBROWSE
/* check to see if the input is a multipart form */
s = getenv("CONTENT_TYPE");
if (s != NULL && startsWith("multipart/form-data", s))
    {
    cgiParseMultipart(&inputHash, &inputList);
    }
#endif /* GBROWSE */

cgiParseInputAbort(inputString, &inputHash, &inputList);

/* now parse the cookies */
parseCookies(&cookieHash, &cookieList);

/* Set enviroment variables CGIs to enable sql tracing and/or profiling */
s = cgiOptionalString("JKSQL_TRACE");
if (s != NULL)
    envUpdate("JKSQL_TRACE", s);
s = cgiOptionalString("JKSQL_PROF");
if (s != NULL)
    envUpdate("JKSQL_PROF", s);

}

// Assembly:
cmpq $0x0, 0x1296c(%rip)     # 0x281f0
je 0x15887
retq
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x568, %rsp            # imm = 0x568
leaq 0x68d9(%rip), %rdi      # 0x1c178
callq 0x3040
leaq 0x68ae(%rip), %rbx      # 0x1c159
testq %rax, %rax
je 0x158d4
leaq 0x5e23(%rip), %rdi      # 0x1b6da
callq 0x3040
testq %rax, %rax
je 0x158cd
movq %rax, %rdi
callq 0x36a0
testl %eax, %eax
jg 0x158d4
leaq 0x688a(%rip), %rbx      # 0x1c15e
leaq 0x687e(%rip), %rsi      # 0x1c159
movq %rbx, %rdi
callq 0x6e58
testl %eax, %eax
je 0x1592f
leaq 0x6870(%rip), %rsi      # 0x1c15e
movq %rbx, %rdi
callq 0x6e58
testl %eax, %eax
je 0x15920
leaq 0x66e6(%rip), %rsi      # 0x1bfe7
movq %rbx, %rdi
callq 0x6e58
testl %eax, %eax
je 0x15920
leaq 0x6850(%rip), %rdi      # 0x1c164
xorl %eax, %eax
callq 0xb6c8
jmp 0x15a62
movl $0x1, %edi
callq 0x15f42
jmp 0x15a62
xorl %edi, %edi
callq 0x15f42
movq 0x128b3(%rip), %rdi     # 0x281f0
callq 0x3200
movq %rax, %rbx
leaq 0x5d8e(%rip), %rdi      # 0x1b6da
callq 0x3040
movq %rax, %r14
testq %rax, %rax
jne 0x15967
leaq 0x6825(%rip), %rdi      # 0x1c185
xorl %eax, %eax
callq 0xb6c8
leaq 0x6839(%rip), %rsi      # 0x1c1a7
leaq 0x22b73(%rip), %rdx     # 0x384e8
movq %r14, %rdi
xorl %eax, %eax
callq 0x3530
cmpl $0x1, %eax
je 0x15992
leaq 0x6820(%rip), %rdi      # 0x1c1ab
xorl %eax, %eax
callq 0xb6c8
leaq 0x6788(%rip), %rdi      # 0x1c121
callq 0x3040
testq %rax, %rax
je 0x159ba
leaq 0x6784(%rip), %rdi      # 0x1c12e
movq %rax, %rsi
callq 0x8038
testl %eax, %eax
jne 0x15a62
xorl %eax, %eax
testl %ebx, %ebx
setg %al
addl %ebx, %eax
addl 0x22b1f(%rip), %eax     # 0x384e8
cltq
movq %rax, (%rsp)
leaq 0x1(%rax), %rdi
callq 0xee10
movq %rax, %r14
cmpq $0x0, 0x22b05(%rip)     # 0x384e8
je 0x15a22
movq 0x115e4(%rip), %r12     # 0x26fd0
leaq 0x67d7(%rip), %r15      # 0x1c1ca
xorl %r13d, %r13d
movq (%r12), %rdi
callq 0x3740
movl %eax, %ebp
cmpl $-0x1, %eax
jne 0x15a10
movq %r15, %rdi
xorl %eax, %eax
callq 0xb6c8
movb %bpl, (%r14,%r13)
incq %r13
cmpq 0x22aca(%rip), %r13     # 0x384e8
jb 0x159f6
jmp 0x15a25
xorl %r13d, %r13d
movslq %ebx, %rdx
testl %ebx, %ebx
jle 0x15a34
movb $0x26, (%r14,%r13)
incq %r13
movq (%rsp), %rbx
movq %r14, %rdi
addq %r13, %rdi
movq 0x127ab(%rip), %rsi     # 0x281f0
callq 0x30d0
movb $0x0, (%r14,%rbx)
movq 0x1279a(%rip), %rdi     # 0x281f0
callq 0xeebc
movq %r14, 0x1278e(%rip)     # 0x281f0
leaq 0x66b8(%rip), %rdi      # 0x1c121
callq 0x3040
testq %rax, %rax
je 0x15ed1
leaq 0x66b0(%rip), %rdi      # 0x1c12e
movq %rax, %rsi
callq 0x8038
testl %eax, %eax
je 0x15ed1
movl $0x100, %edi            # imm = 0x100
callq 0xad14
movq %rax, %r14
movq %rax, 0x28(%rsp)
movl $0x6, %edi
movl $0x1, %esi
callq 0xc1ee
movq %rax, (%rsp)
movq $0x0, 0x10(%rsp)
movq 0x1151d(%rip), %rax     # 0x26fe0
movq (%rax), %rbx
movq (%rbx), %rsi
testq %rsi, %rsi
je 0x15b84
leaq 0x6723(%rip), %r15      # 0x1c1fc
leaq 0x160(%rsp), %r13
leaq 0x6787(%rip), %rbp      # 0x1c26f
movq %r15, %rdi
callq 0x8038
testl %eax, %eax
je 0x15b73
movq (%rbx), %rcx
movq %r13, %rdi
movl $0x400, %esi            # imm = 0x400
leaq 0x3ab6(%rip), %rdx      # 0x195bc
xorl %eax, %eax
callq 0xa0ca
movq %r13, %rdi
movl $0x5f, %esi
callq 0x3260
movq %rax, %r12
testq %rax, %rax
jne 0x15b33
movq (%rbx), %rsi
leaq 0x66d9(%rip), %rdi      # 0x1c205
xorl %eax, %eax
callq 0xb6c8
movb $0x2d, (%r12)
movq %r13, %rdi
movl $0x3d, %esi
callq 0x3260
movq %rax, %r12
testq %rax, %rax
jne 0x15b5e
movq (%rbx), %rsi
leaq 0x66e3(%rip), %rdi      # 0x1c23a
xorl %eax, %eax
callq 0xb6c8
movb $0x3a, (%r12)
movq %r14, %rdi
movq %rbp, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0xb0b7
movq 0x8(%rbx), %rsi
addq $0x8, %rbx
testq %rsi, %rsi
jne 0x15ae8
leaq 0x6934(%rip), %rsi      # 0x1c4bf
movq %r14, %rdi
callq 0xaf83
xorl %edi, %edi
callq 0x16558
movq %rax, %r15
movq 0x8(%r14), %rdi
callq 0x6402
movq %r15, %rdi
movq %rax, %rsi
callq 0x16882
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0xad51
cmpq $0x0, 0x30(%r14)
jne 0x15bd3
leaq 0x66a8(%rip), %rdi      # 0x1c274
xorl %eax, %eax
callq 0xb6c8
movq 0x8(%r14), %rdi
leaq 0x66b3(%rip), %rsi      # 0x1c291
callq 0xc0b1
movq %rax, %r15
leaq 0x6541(%rip), %rdi      # 0x1c12e
movq %rax, %rsi
callq 0x8038
testl %eax, %eax
jne 0x15c0a
leaq 0x669e(%rip), %rdi      # 0x1c29e
movq %r15, %rsi
xorl %eax, %eax
callq 0xb6c8
movq 0x30(%r14), %r12
testq %r12, %r12
je 0x15eaf
xorl %r13d, %r13d
leaq 0x60(%rsp), %r14
xorl %ebx, %ebx
movq %r13, 0x20(%rsp)
movq %r13, 0x8(%rsp)
movq %r13, 0x18(%rsp)
movq 0x8(%r12), %rdi
leaq 0x66ab(%rip), %rsi      # 0x1c2e7
callq 0xc0b1
movq %rax, %r15
movq 0x8(%r12), %rdi
leaq 0x6641(%rip), %rsi      # 0x1c291
callq 0xc0b1
movq %r15, %rdi
callq 0x166ab
movq %rax, 0x20(%rsp)
movq %r15, %rdi
leaq 0x66ca(%rip), %rsi      # 0x1c336
callq 0x1673b
movq %rax, 0x8(%rsp)
movq %r15, %rdi
leaq 0x66b2(%rip), %rsi      # 0x1c332
callq 0x1673b
movq %rax, %rbp
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %r15
movq %r15, %rdi
leaq 0x649c(%rip), %rsi      # 0x1c138
callq 0x3440
testl %eax, %eax
je 0x15cbb
leaq 0x664f(%rip), %rdi      # 0x1c2fb
movq %r15, %rsi
xorl %eax, %eax
callq 0xb6c8
movq 0x18(%rsp), %rbp
testq %rbp, %rbp
je 0x15d67
movq %rbp, %rdi
movl $0x5c, %esi
callq 0x32b0
testq %rax, %rax
jne 0x15cf5
movq %rbp, %rdi
movl $0x2f, %esi
callq 0x32b0
testq %rax, %rax
jne 0x15cf5
movq %rbp, %rdi
movl $0x3a, %esi
callq 0x32b0
movq %rax, %r15
movq 0x8(%rsp), %rcx
movq %r14, %rdi
movl $0x100, %esi            # imm = 0x100
leaq 0x6622(%rip), %rdx      # 0x1c32e
xorl %eax, %eax
callq 0xa0ca
movl $0x20, %edi
callq 0xee10
movq %rax, %rbp
testq %r15, %r15
je 0x15d37
incq %r15
movq %r15, %rdi
callq 0x6402
movq 0x10(%rsp), %rbx
jmp 0x15d41
movq 0x18(%rsp), %rdi
callq 0x6402
movq %rax, 0x10(%rbp)
movq %rbx, (%rbp)
movq %rbp, 0x10(%rsp)
movq %rbp, %rcx
addq $0x8, %rcx
movq (%rsp), %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0xbf9e
movq %rbp, %rbx
cmpq $0x0, 0x18(%r12)
je 0x15dd2
cmpl $0x0, 0x28(%r12)
je 0x15e24
movq 0x8(%rsp), %rcx
movq %r14, %rdi
movl $0x100, %esi            # imm = 0x100
leaq 0x65ac(%rip), %rdx      # 0x1c33b
xorl %eax, %eax
callq 0xa0ca
movq 0x10(%r12), %r8
movq 0x18(%r12), %rcx
leaq 0x30(%rsp), %rbp
movq %rbp, %rdi
movl $0x28, %esi
leaq 0x6592(%rip), %rdx      # 0x1c346
xorl %eax, %eax
callq 0xa0ca
movl $0x20, %edi
callq 0xee10
movq %rax, %r15
movq %rbp, %rdi
callq 0x6402
jmp 0x15e0b
cmpq $0x0, 0x20(%r12)
je 0x15e87
movq 0x8(%rsp), %rcx
movq %r14, %rdi
movl $0x100, %esi            # imm = 0x100
leaq 0x655d(%rip), %rdx      # 0x1c34f
xorl %eax, %eax
callq 0xa0ca
movl $0x20, %edi
callq 0xee10
movq %rax, %r15
movq 0x20(%r12), %rax
movq %rax, 0x10(%r15)
movq %rbx, (%r15)
movq %r15, 0x10(%rsp)
leaq 0x8(%r15), %rcx
movq (%rsp), %rdi
movq %r14, %rsi
jmp 0x15e4f
movl $0x20, %edi
callq 0xee10
movq %rax, %r15
movq 0x18(%r12), %rax
movq %rax, 0x10(%r15)
movq %rbx, (%r15)
movq %r15, 0x10(%rsp)
movq 0x8(%rsp), %rsi
leaq 0x8(%r15), %rcx
movq (%rsp), %rdi
movq %r15, %rdx
callq 0xbf9e
movq %r15, %rbx
leaq 0x20(%rsp), %rdi
callq 0xeecc
leaq 0x8(%rsp), %rdi
callq 0xeecc
leaq 0x18(%rsp), %rdi
callq 0xeecc
movq (%r12), %r12
testq %r12, %r12
jne 0x15c21
jmp 0x15eaf
cmpq $0x0, 0x30(%r12)
je 0x15e9f
leaq 0x64c2(%rip), %rdi      # 0x1c358
xorl %eax, %eax
callq 0xb41e
jmp 0x15e5a
leaq 0x64d4(%rip), %rdi      # 0x1c37a
xorl %eax, %eax
callq 0xb6c8
jmp 0x15e5a
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x66bb
movq (%r14), %rax
movq %rax, 0x1240a(%rip)     # 0x282d0
movq (%rsp), %rax
movq %rax, 0x12407(%rip)     # 0x282d8
movq 0x12318(%rip), %rdi     # 0x281f0
leaq 0x123f9(%rip), %rsi     # 0x282d8
leaq 0x123ea(%rip), %rdx     # 0x282d0
callq 0x1345f
callq 0x132ff
leaq 0x624b(%rip), %rdi      # 0x1c142
callq 0x139f0
testq %rax, %rax
je 0x15f10
leaq 0x623a(%rip), %rdi      # 0x1c142
movq %rax, %rsi
callq 0x17341
leaq 0x6237(%rip), %rdi      # 0x1c14e
callq 0x139f0
testq %rax, %rax
je 0x15f30
leaq 0x6226(%rip), %rdi      # 0x1c14e
movq %rax, %rsi
callq 0x17341
addq $0x568, %rsp            # imm = 0x568
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq