// File: /workspace/github_c_makefile_star2_O2/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, 0x134a1(%rip)     # 0x27210
je 0x13d72
retq
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x568, %rsp            # imm = 0x568
leaq 0x63ee(%rip), %rdi      # 0x1a178
callq 0x3040
leaq 0x63c3(%rip), %rbx      # 0x1a159
testq %rax, %rax
je 0x13dbf
leaq 0x5938(%rip), %rdi      # 0x196da
callq 0x3040
testq %rax, %rax
je 0x13db8
movq %rax, %rdi
callq 0x36a0
testl %eax, %eax
jg 0x13dbf
leaq 0x639f(%rip), %rbx      # 0x1a15e
leaq 0x6393(%rip), %rsi      # 0x1a159
movq %rbx, %rdi
callq 0x682f
testl %eax, %eax
je 0x13e18
leaq 0x6385(%rip), %rsi      # 0x1a15e
movq %rbx, %rdi
callq 0x682f
testl %eax, %eax
je 0x13e0b
leaq 0x61fb(%rip), %rsi      # 0x19fe7
movq %rbx, %rdi
callq 0x682f
testl %eax, %eax
je 0x13e0b
leaq 0x6365(%rip), %rdi      # 0x1a164
xorl %eax, %eax
callq 0xa61f
jmp 0x13f3f
pushq $0x1
popq %rdi
callq 0x143f0
jmp 0x13f3f
xorl %edi, %edi
callq 0x143f0
movq 0x133ea(%rip), %rdi     # 0x27210
callq 0x3200
movq %rax, %rbx
leaq 0x58a5(%rip), %rdi      # 0x196da
callq 0x3040
movq %rax, %r14
testq %rax, %rax
jne 0x13e50
leaq 0x633c(%rip), %rdi      # 0x1a185
xorl %eax, %eax
callq 0xa61f
leaq 0x6350(%rip), %rsi      # 0x1a1a7
leaq 0x236aa(%rip), %rdx     # 0x37508
movq %r14, %rdi
xorl %eax, %eax
callq 0x3530
cmpl $0x1, %eax
je 0x13e7b
leaq 0x6337(%rip), %rdi      # 0x1a1ab
xorl %eax, %eax
callq 0xa61f
leaq 0x629f(%rip), %rdi      # 0x1a121
callq 0x3040
testq %rax, %rax
je 0x13ea3
leaq 0x629b(%rip), %rdi      # 0x1a12e
movq %rax, %rsi
callq 0x76a5
testl %eax, %eax
jne 0x13f3f
xorl %eax, %eax
testl %ebx, %ebx
setg %al
addl %ebx, %eax
addl 0x23656(%rip), %eax     # 0x37508
movslq %eax, %rcx
movq %rcx, (%rsp)
leaq 0x1(%rcx), %rdi
callq 0xd87c
movq %rax, %r14
movq 0x12104(%rip), %r12     # 0x25fd0
leaq 0x62f7(%rip), %r15      # 0x1a1ca
xorl %r13d, %r13d
cmpq 0x2362b(%rip), %r13     # 0x37508
jae 0x13f02
movq (%r12), %rdi
callq 0x3740
movl %eax, %ebp
cmpl $-0x1, %eax
jne 0x13ef9
movq %r15, %rdi
xorl %eax, %eax
callq 0xa61f
movb %bpl, (%r14,%r13)
incq %r13
jmp 0x13ed6
movslq %ebx, %rdx
testl %ebx, %ebx
jle 0x13f11
movb $0x26, (%r14,%r13)
incq %r13
movq %r14, %rdi
addq %r13, %rdi
movq 0x132f2(%rip), %rsi     # 0x27210
callq 0x30d0
movq (%rsp), %rax
movb $0x0, (%r14,%rax)
movq 0x132dd(%rip), %rdi     # 0x27210
callq 0xd8f9
movq %r14, 0x132d1(%rip)     # 0x27210
leaq 0x61db(%rip), %rdi      # 0x1a121
callq 0x3040
testq %rax, %rax
je 0x1437f
leaq 0x61d3(%rip), %rdi      # 0x1a12e
movq %rax, %rsi
callq 0x76a5
testl %eax, %eax
je 0x1437f
movl $0x100, %edi            # imm = 0x100
callq 0x9df0
movq %rax, %r14
movq %rax, 0x28(%rsp)
pushq $0x6
popq %rdi
pushq $0x1
popq %rsi
callq 0xb010
andq $0x0, 0x10(%rsp)
movq %rax, (%rsp)
movq 0x12047(%rip), %rax     # 0x25fe0
movq (%rax), %r12
leaq 0x6259(%rip), %r15      # 0x1a1fc
leaq 0x160(%rsp), %r13
leaq 0x62bd(%rip), %rbx      # 0x1a26f
movq (%r12), %rsi
testq %rsi, %rsi
je 0x14050
movq %r15, %rdi
callq 0x76a5
testl %eax, %eax
je 0x14047
movq (%r12), %rcx
movq %r13, %rdi
movl $0x400, %esi            # imm = 0x400
leaq 0x35de(%rip), %rdx      # 0x175bc
xorl %eax, %eax
callq 0x939d
movq %r13, %rdi
pushq $0x5f
popq %rsi
callq 0x3260
movq %rax, %rbp
testq %rax, %rax
jne 0x1400a
movq (%r12), %rsi
leaq 0x6202(%rip), %rdi      # 0x1a205
xorl %eax, %eax
callq 0xa61f
movb $0x2d, (%rbp)
movq %r13, %rdi
pushq $0x3d
popq %rsi
callq 0x3260
movq %rax, %rbp
testq %rax, %rax
jne 0x14033
movq (%r12), %rsi
leaq 0x620e(%rip), %rdi      # 0x1a23a
xorl %eax, %eax
callq 0xa61f
movb $0x3a, (%rbp)
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0xa0eb
addq $0x8, %r12
jmp 0x13fb2
leaq 0x6468(%rip), %rsi      # 0x1a4bf
movq %r14, %rdi
callq 0x9ffe
xorl %edi, %edi
callq 0x149f8
movq %rax, %rbx
movq 0x8(%r14), %rdi
callq 0x5ede
movq %rbx, %rdi
movq %rax, %rsi
callq 0x14cb0
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x9e2b
cmpq $0x0, 0x30(%r14)
jne 0x1409f
leaq 0x61dc(%rip), %rdi      # 0x1a274
xorl %eax, %eax
callq 0xa61f
movq 0x8(%r14), %rdi
leaq 0x61e7(%rip), %rsi      # 0x1a291
callq 0xaf0d
movq %rax, %rbx
leaq 0x6075(%rip), %rdi      # 0x1a12e
movq %rax, %rsi
callq 0x76a5
testl %eax, %eax
jne 0x140d6
leaq 0x61d2(%rip), %rdi      # 0x1a29e
movq %rbx, %rsi
xorl %eax, %eax
callq 0xa61f
addq $0x30, %r14
leaq 0x60(%rsp), %r12
pushq $0x20
popq %r13
xorl %ebp, %ebp
movq (%r14), %r14
testq %r14, %r14
je 0x1435d
andq $0x0, 0x20(%rsp)
andq $0x0, 0x8(%rsp)
andq $0x0, 0x18(%rsp)
movq 0x8(%r14), %rdi
leaq 0x61d9(%rip), %rsi      # 0x1a2e7
callq 0xaf0d
movq %rax, %rbx
movq 0x8(%r14), %rdi
leaq 0x6170(%rip), %rsi      # 0x1a291
callq 0xaf0d
movq %rbx, %rdi
callq 0x14b03
movq %rax, 0x20(%rsp)
movq %rbx, %rdi
leaq 0x61f9(%rip), %rsi      # 0x1a336
callq 0x14b8c
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
leaq 0x61e1(%rip), %rsi      # 0x1a332
callq 0x14b8c
movq %rax, %rbx
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %r15
movq %r15, %rdi
leaq 0x5fcb(%rip), %rsi      # 0x1a138
callq 0x3440
testl %eax, %eax
je 0x1418c
leaq 0x617e(%rip), %rdi      # 0x1a2fb
movq %r15, %rsi
xorl %eax, %eax
callq 0xa61f
movq 0x18(%rsp), %rbx
testq %rbx, %rbx
je 0x1422f
movq %rbx, %rdi
pushq $0x5c
popq %rsi
callq 0x32b0
testq %rax, %rax
jne 0x141c0
movq %rbx, %rdi
pushq $0x2f
popq %rsi
callq 0x32b0
testq %rax, %rax
jne 0x141c0
movq %rbx, %rdi
pushq $0x3a
popq %rsi
callq 0x32b0
movq %rax, %r15
movq 0x8(%rsp), %rcx
movq %r12, %rdi
movl $0x100, %esi            # imm = 0x100
leaq 0x6157(%rip), %rdx      # 0x1a32e
xorl %eax, %eax
callq 0x939d
movq %r13, %rdi
callq 0xd87c
movq %rax, %rbx
testq %r15, %r15
je 0x14200
incq %r15
movq %r15, %rdi
callq 0x5ede
movq 0x10(%rsp), %rbp
jmp 0x1420a
movq 0x18(%rsp), %rdi
callq 0x5ede
movq %rax, 0x10(%rbx)
movq %rbp, (%rbx)
movq %rbx, 0x10(%rsp)
movq %rbx, %rcx
addq $0x8, %rcx
movq (%rsp), %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0xae3b
movq %rbx, %rbp
cmpq $0x0, 0x18(%r14)
je 0x14292
cmpl $0x0, 0x28(%r14)
je 0x142e0
movq 0x8(%rsp), %rcx
movq %r12, %rdi
movl $0x100, %esi            # imm = 0x100
leaq 0x60e6(%rip), %rdx      # 0x1a33b
xorl %eax, %eax
callq 0x939d
movq 0x10(%r14), %r8
movq 0x18(%r14), %rcx
leaq 0x30(%rsp), %r15
movq %r15, %rdi
pushq $0x28
popq %rsi
leaq 0x60d0(%rip), %rdx      # 0x1a346
xorl %eax, %eax
callq 0x939d
movq %r13, %rdi
callq 0xd87c
movq %rax, %rbx
movq %r15, %rdi
callq 0x5ede
jmp 0x142c7
cmpq $0x0, 0x20(%r14)
je 0x14336
movq 0x8(%rsp), %rcx
movq %r12, %rdi
movl $0x100, %esi            # imm = 0x100
leaq 0x609e(%rip), %rdx      # 0x1a34f
xorl %eax, %eax
callq 0x939d
movq %r13, %rdi
callq 0xd87c
movq %rax, %rbx
movq 0x20(%r14), %rax
movq %rax, 0x10(%rbx)
movq %rbp, (%rbx)
movq %rbx, 0x10(%rsp)
leaq 0x8(%rbx), %rcx
movq (%rsp), %rdi
movq %r12, %rsi
jmp 0x14308
movq %r13, %rdi
callq 0xd87c
movq %rax, %rbx
movq 0x18(%r14), %rax
movq %rax, 0x10(%rbx)
movq %rbp, (%rbx)
movq %rbx, 0x10(%rsp)
movq 0x8(%rsp), %rsi
leaq 0x8(%rbx), %rcx
movq (%rsp), %rdi
movq %rbx, %rdx
callq 0xae3b
movq %rbx, %rbp
leaq 0x20(%rsp), %rdi
callq 0xd909
leaq 0x8(%rsp), %rdi
callq 0xd909
leaq 0x18(%rsp), %rdi
callq 0xd909
jmp 0x140e5
cmpq $0x0, 0x30(%r14)
je 0x1434d
leaq 0x6014(%rip), %rdi      # 0x1a358
xorl %eax, %eax
callq 0xa3aa
jmp 0x14313
leaq 0x6026(%rip), %rdi      # 0x1a37a
xorl %eax, %eax
callq 0xa61f
jmp 0x14313
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x613f
movq (%rbx), %rax
movq %rax, 0x12f7c(%rip)     # 0x272f0
movq (%rsp), %rax
movq %rax, 0x12f79(%rip)     # 0x272f8
movq 0x12e8a(%rip), %rdi     # 0x27210
leaq 0x12f6b(%rip), %rsi     # 0x272f8
leaq 0x12f5c(%rip), %rdx     # 0x272f0
callq 0x11a69
callq 0x11910
leaq 0x5d9d(%rip), %rdi      # 0x1a142
callq 0x1203b
testq %rax, %rax
je 0x143be
leaq 0x5d8c(%rip), %rdi      # 0x1a142
movq %rax, %rsi
callq 0x15749
leaq 0x5d89(%rip), %rdi      # 0x1a14e
callq 0x1203b
testq %rax, %rax
je 0x143de
leaq 0x5d78(%rip), %rdi      # 0x1a14e
movq %rax, %rsi
callq 0x15749
addq $0x568, %rsp            # imm = 0x568
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq