// File: /workspace/github_c_makefile_star2_O1/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, 0x126ea(%rip)     # 0x281f0
je 0x15b09
retq
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x568, %rsp            # imm = 0x568
leaq 0x664a(%rip), %rdi      # 0x1c16b
callq 0x3040
leaq 0x661f(%rip), %rbx      # 0x1c14c
testq %rax, %rax
je 0x15b56
leaq 0x5b94(%rip), %rdi      # 0x1b6cd
callq 0x3040
testq %rax, %rax
je 0x15b4f
movq %rax, %rdi
callq 0x36a0
testl %eax, %eax
jg 0x15b56
leaq 0x65fb(%rip), %rbx      # 0x1c151
leaq 0x65ef(%rip), %rsi      # 0x1c14c
movq %rbx, %rdi
callq 0x6f18
testl %eax, %eax
je 0x15bb1
leaq 0x65e1(%rip), %rsi      # 0x1c151
movq %rbx, %rdi
callq 0x6f18
testl %eax, %eax
je 0x15ba2
leaq 0x6457(%rip), %rsi      # 0x1bfda
movq %rbx, %rdi
callq 0x6f18
testl %eax, %eax
je 0x15ba2
leaq 0x65c1(%rip), %rdi      # 0x1c157
xorl %eax, %eax
callq 0xb8d7
jmp 0x15ce6
movl $0x1, %edi
callq 0x161cd
jmp 0x15ce6
xorl %edi, %edi
callq 0x161cd
movq 0x12631(%rip), %rdi     # 0x281f0
callq 0x3200
movq %rax, %rbx
leaq 0x5aff(%rip), %rdi      # 0x1b6cd
callq 0x3040
movq %rax, %r14
testq %rax, %rax
jne 0x15be9
leaq 0x6596(%rip), %rdi      # 0x1c178
xorl %eax, %eax
callq 0xb8d7
leaq 0x65aa(%rip), %rsi      # 0x1c19a
leaq 0x228f1(%rip), %rdx     # 0x384e8
movq %r14, %rdi
xorl %eax, %eax
callq 0x3530
cmpl $0x1, %eax
je 0x15c14
leaq 0x6591(%rip), %rdi      # 0x1c19e
xorl %eax, %eax
callq 0xb8d7
leaq 0x64f9(%rip), %rdi      # 0x1c114
callq 0x3040
testq %rax, %rax
je 0x15c3c
leaq 0x64f5(%rip), %rdi      # 0x1c121
movq %rax, %rsi
callq 0x8214
testl %eax, %eax
jne 0x15ce6
xorl %eax, %eax
testl %ebx, %ebx
setg %al
addl %ebx, %eax
addl 0x2289d(%rip), %eax     # 0x384e8
cltq
movq %rax, 0x20(%rsp)
leaq 0x1(%rax), %rdi
callq 0xf07d
movq %rax, %r14
cmpq $0x0, 0x22882(%rip)     # 0x384e8
je 0x15ca5
movq 0x11361(%rip), %r12     # 0x26fd0
leaq 0x6547(%rip), %r15      # 0x1c1bd
xorl %r13d, %r13d
movq (%r12), %rdi
callq 0x3740
movl %eax, %ebp
cmpl $-0x1, %eax
jne 0x15c93
movq %r15, %rdi
xorl %eax, %eax
callq 0xb8d7
movb %bpl, (%r14,%r13)
incq %r13
cmpq 0x22847(%rip), %r13     # 0x384e8
jb 0x15c79
jmp 0x15ca8
xorl %r13d, %r13d
movslq %ebx, %rdx
testl %ebx, %ebx
jle 0x15cb7
movb $0x26, (%r14,%r13)
incq %r13
movq 0x20(%rsp), %rbx
movq %r14, %rdi
addq %r13, %rdi
movq 0x12527(%rip), %rsi     # 0x281f0
callq 0x30d0
movb $0x0, (%r14,%rbx)
movq 0x12516(%rip), %rdi     # 0x281f0
callq 0xf129
movq %r14, 0x1250a(%rip)     # 0x281f0
leaq 0x6427(%rip), %rdi      # 0x1c114
callq 0x3040
testq %rax, %rax
je 0x1615c
leaq 0x641f(%rip), %rdi      # 0x1c121
movq %rax, %rsi
callq 0x8214
testl %eax, %eax
je 0x1615c
movl $0x100, %edi            # imm = 0x100
callq 0xaf38
movq %rax, 0x28(%rsp)
movl $0x6, %edi
movl $0x1, %esi
callq 0xc3f1
movq %rax, %rbx
movq $0x0, (%rsp)
movq 0x1129e(%rip), %rax     # 0x26fe0
movq (%rax), %r15
movq (%r15), %rsi
testq %rsi, %rsi
je 0x15e03
leaq 0x6497(%rip), %r14      # 0x1c1ef
leaq 0x160(%rsp), %r12
leaq 0x64fb(%rip), %r13      # 0x1c262
movq %r14, %rdi
callq 0x8214
testl %eax, %eax
je 0x15df2
movq (%r15), %rcx
movq %r12, %rdi
movl $0x400, %esi            # imm = 0x400
leaq 0x3827(%rip), %rdx      # 0x195ac
xorl %eax, %eax
callq 0xa2ce
movq %r12, %rdi
movl $0x5f, %esi
callq 0x3260
movq %rax, %rbp
testq %rax, %rax
jne 0x15db2
movq (%r15), %rsi
leaq 0x644d(%rip), %rdi      # 0x1c1f8
xorl %eax, %eax
callq 0xb8d7
movb $0x2d, (%rbp)
movq %r12, %rdi
movl $0x3d, %esi
callq 0x3260
movq %rax, %rbp
testq %rax, %rax
jne 0x15ddc
movq (%r15), %rsi
leaq 0x6458(%rip), %rdi      # 0x1c22d
xorl %eax, %eax
callq 0xb8d7
movb $0x3a, (%rbp)
movq 0x28(%rsp), %rdi
movq %r13, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0xb2d2
movq 0x8(%r15), %rsi
addq $0x8, %r15
testq %rsi, %rsi
jne 0x15d67
leaq 0x28(%rsp), %r15
movq (%r15), %rdi
leaq 0x66d1(%rip), %rsi      # 0x1c4e3
callq 0xb18d
xorl %edi, %edi
callq 0x167d0
movq %rax, %r14
movq (%r15), %rax
movq 0x8(%rax), %rdi
callq 0x647e
movq %r14, %rdi
movq %rax, %rsi
callq 0x16af5
movq %rax, %r14
movq %r15, %rdi
callq 0xaf75
cmpq $0x0, 0x30(%r14)
jne 0x15e58
leaq 0x6416(%rip), %rdi      # 0x1c267
xorl %eax, %eax
callq 0xb8d7
movq 0x8(%r14), %rdi
leaq 0x6421(%rip), %rsi      # 0x1c284
callq 0xc2ba
movq %rax, %r15
leaq 0x62af(%rip), %rdi      # 0x1c121
movq %rax, %rsi
callq 0x8214
testl %eax, %eax
jne 0x15e8f
leaq 0x640c(%rip), %rdi      # 0x1c291
movq %r15, %rsi
xorl %eax, %eax
callq 0xb8d7
movq 0x30(%r14), %r12
testq %r12, %r12
je 0x16140
xorl %r13d, %r13d
leaq 0x60(%rsp), %r14
movq %r13, 0x18(%rsp)
movq %r13, 0x8(%rsp)
movq %r13, 0x10(%rsp)
movq 0x8(%r12), %rdi
leaq 0x641b(%rip), %rsi      # 0x1c2da
callq 0xc2ba
movq %rax, %r15
movq 0x8(%r12), %rdi
leaq 0x63b1(%rip), %rsi      # 0x1c284
callq 0xc2ba
movq %r15, %rdi
callq 0x16912
movq %rax, 0x18(%rsp)
movq %r15, %rdi
leaq 0x643a(%rip), %rsi      # 0x1c329
callq 0x169ae
movq %rax, 0x8(%rsp)
movq %r15, %rdi
leaq 0x6422(%rip), %rsi      # 0x1c325
callq 0x169ae
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %r15
movq %r15, %rdi
leaq 0x620f(%rip), %rsi      # 0x1c12b
callq 0x3440
testl %eax, %eax
je 0x15f36
leaq 0x63c2(%rip), %rdi      # 0x1c2ee
movq %r15, %rsi
xorl %eax, %eax
callq 0xb8d7
movq 0x10(%rsp), %r15
testq %r15, %r15
je 0x15fe1
movq %r15, %rdi
movl $0x5c, %esi
callq 0x32b0
movq %rax, %rbp
testq %rax, %rax
jne 0x15f69
movq %r15, %rdi
movl $0x2f, %esi
callq 0x32b0
movq %rax, %rbp
testq %rbp, %rbp
jne 0x15f7e
movq %r15, %rdi
movl $0x3a, %esi
callq 0x32b0
movq %rax, %rbp
movq 0x8(%rsp), %rcx
movq %r14, %rdi
movl $0x100, %esi            # imm = 0x100
leaq 0x638f(%rip), %rdx      # 0x1c321
xorl %eax, %eax
callq 0xa2ce
movl $0x20, %edi
callq 0xf07d
movq %rax, %r15
testq %rbp, %rbp
je 0x15fb3
incq %rbp
movq %rbp, %rdi
jmp 0x15fb8
movq 0x10(%rsp), %rdi
callq 0x647e
movq %rax, 0x10(%r15)
movq (%rsp), %rax
movq %rax, (%r15)
movq %r15, (%rsp)
movq %r15, %rcx
addq $0x8, %rcx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0xc1a7
cmpq $0x0, 0x18(%r12)
je 0x16068
cmpl $0x0, 0x28(%r12)
je 0x160b9
movq 0x8(%rsp), %rcx
movq %r14, %rdi
movl $0x100, %esi            # imm = 0x100
leaq 0x6325(%rip), %rdx      # 0x1c32e
xorl %eax, %eax
callq 0xa2ce
movq 0x10(%r12), %r8
movq 0x18(%r12), %rcx
leaq 0x30(%rsp), %rbp
movq %rbp, %rdi
movl $0x28, %esi
leaq 0x630b(%rip), %rdx      # 0x1c339
xorl %eax, %eax
callq 0xa2ce
movl $0x20, %edi
callq 0xf07d
movq %rax, %r15
movq %rbp, %rdi
callq 0x647e
movq %rax, 0x10(%r15)
movq (%rsp), %rax
movq %rax, (%r15)
movq %r15, (%rsp)
leaq 0x8(%r15), %rcx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
jmp 0x160e6
cmpq $0x0, 0x20(%r12)
je 0x16118
movq 0x8(%rsp), %rcx
movq %r14, %rdi
movl $0x100, %esi            # imm = 0x100
leaq 0x62ba(%rip), %rdx      # 0x1c342
xorl %eax, %eax
callq 0xa2ce
movl $0x20, %edi
callq 0xf07d
movq 0x20(%r12), %rcx
movq %rcx, 0x10(%rax)
movq (%rsp), %rcx
movq %rcx, (%rax)
movq %rax, (%rsp)
leaq 0x8(%rax), %rcx
movq %rbx, %rdi
movq %r14, %rsi
jmp 0x160e3
movl $0x20, %edi
callq 0xf07d
movq 0x18(%r12), %rcx
movq %rcx, 0x10(%rax)
movq (%rsp), %rcx
movq %rcx, (%rax)
movq %rax, (%rsp)
movq 0x8(%rsp), %rsi
leaq 0x8(%rax), %rcx
movq %rbx, %rdi
movq %rax, %rdx
callq 0xc1a7
leaq 0x18(%rsp), %rdi
callq 0xf139
leaq 0x8(%rsp), %rdi
callq 0xf139
leaq 0x10(%rsp), %rdi
callq 0xf139
movq (%r12), %r12
testq %r12, %r12
jne 0x15ea4
jmp 0x16140
cmpq $0x0, 0x30(%r12)
je 0x16130
leaq 0x6224(%rip), %rdi      # 0x1c34b
xorl %eax, %eax
callq 0xb632
jmp 0x160eb
leaq 0x6236(%rip), %rdi      # 0x1c36d
xorl %eax, %eax
callq 0xb8d7
jmp 0x160eb
movq %rsp, %r14
movq %r14, %rdi
callq 0x673b
movq (%r14), %rax
movq %rax, 0x1217b(%rip)     # 0x282d0
movq %rbx, 0x1217c(%rip)     # 0x282d8
movq 0x1208d(%rip), %rdi     # 0x281f0
leaq 0x1216e(%rip), %rsi     # 0x282d8
leaq 0x1215f(%rip), %rdx     # 0x282d0
callq 0x136c9
callq 0x13574
leaq 0x5fb3(%rip), %rdi      # 0x1c135
callq 0x13c60
testq %rax, %rax
je 0x1619b
leaq 0x5fa2(%rip), %rdi      # 0x1c135
movq %rax, %rsi
callq 0x175b5
leaq 0x5f9f(%rip), %rdi      # 0x1c141
callq 0x13c60
testq %rax, %rax
je 0x161bb
leaq 0x5f8e(%rip), %rdi      # 0x1c141
movq %rax, %rsi
callq 0x175b5
addq $0x568, %rsp            # imm = 0x568
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq