// File: /workspace/github_c_makefile_star2_O0/wtarreau[P]httpterm/httpterm.c
// Function: cfg_parse_global
int cfg_parse_global(char *file, int linenum, char **args) {

    if (!strcmp(args[0], "global")) {  /* new section */
	/* no option, nothing special to do */
	return 0;
    }
    else if (!strcmp(args[0], "daemon")) {
	global.mode |= MODE_DAEMON;
    }
    else if (!strcmp(args[0], "debug")) {
	global.mode |= MODE_DEBUG;
    }
    else if (!strcmp(args[0], "sendzero")) {
	global.flags |= GFLAGS_SEND_ZERO;
    }
    else if (!strcmp(args[0], "nosplice")) {
	global.flags |= GFLAGS_NO_SPLICE;
    }
    else if (!strcmp(args[0], "noepoll")) {
	cfg_polling_mechanism &= ~POLL_USE_EPOLL;
    }
    else if (!strcmp(args[0], "nopoll")) {
	cfg_polling_mechanism &= ~POLL_USE_POLL;
    }
    else if (!strcmp(args[0], "quiet")) {
	global.mode |= MODE_QUIET;
    }
    else if (!strcmp(args[0], "uid")) {
	if (global.uid != 0) {
	    Alert("parsing [%s:%d] : '%s' already specified. Continuing.\n", file, linenum, args[0]);
	    return 0;
	}
	if (*(args[1]) == 0) {
	    Alert("parsing [%s:%d] : '%s' expects an integer argument.\n", file, linenum, args[0]);
	    return -1;
	}
	global.uid = atol(args[1]);
    }
    else if (!strcmp(args[0], "gid")) {
	if (global.gid != 0) {
	    Alert("parsing [%s:%d] : '%s' already specified. Continuing.\n", file, linenum, args[0]);
	    return 0;
	}
	if (*(args[1]) == 0) {
	    Alert("parsing [%s:%d] : '%s' expects an integer argument.\n", file, linenum, args[0]);
	    return -1;
	}
	global.gid = atol(args[1]);
    }
    else if (!strcmp(args[0], "nbproc")) {
	if (global.nbproc != 0) {
	    Alert("parsing [%s:%d] : '%s' already specified. Continuing.\n", file, linenum, args[0]);
	    return 0;
	}
	if (*(args[1]) == 0) {
	    Alert("parsing [%s:%d] : '%s' expects an integer argument.\n", file, linenum, args[0]);
	    return -1;
	}
	global.nbproc = atol(args[1]);
    }
    else if (!strcmp(args[0], "maxconn")) {
	if (global.maxconn != 0) {
	    Alert("parsing [%s:%d] : '%s' already specified. Continuing.\n", file, linenum, args[0]);
	    return 0;
	}
	if (*(args[1]) == 0) {
	    Alert("parsing [%s:%d] : '%s' expects an integer argument.\n", file, linenum, args[0]);
	    return -1;
	}
	global.maxconn = atol(args[1]);
#ifdef SYSTEM_MAXCONN
	if (global.maxconn > DEFAULT_MAXCONN && cfg_maxconn <= DEFAULT_MAXCONN) {
	    Alert("parsing [%s:%d] : maxconn value %d too high for this system.\nLimiting to %d. Please use '-n' to force the value.\n", file, linenum, global.maxconn, DEFAULT_MAXCONN);
	    global.maxconn = DEFAULT_MAXCONN;
	}
#endif /* SYSTEM_MAXCONN */
	/* we want to update the default instance's maxconn too */
	if (!cfg_maxconn)
	    defproxy.maxconn = global.maxconn;
    }
    else if (!strcmp(args[0], "ulimit-n")) {
	if (global.rlimit_nofile != 0) {
	    Alert("parsing [%s:%d] : '%s' already specified. Continuing.\n", file, linenum, args[0]);
	    return 0;
	}
	if (*(args[1]) == 0) {
	    Alert("parsing [%s:%d] : '%s' expects an integer argument.\n", file, linenum, args[0]);
	    return -1;
	}
	global.rlimit_nofile = atol(args[1]);
    }
    else if (!strcmp(args[0], "chroot")) {
	if (global.chroot != NULL) {
	    Alert("parsing [%s:%d] : '%s' already specified. Continuing.\n", file, linenum, args[0]);
	    return 0;
	}
	if (*(args[1]) == 0) {
	    Alert("parsing [%s:%d] : '%s' expects a directory as an argument.\n", file, linenum, args[0]);
	    return -1;
	}
	global.chroot = strdup(args[1]);
    }
    else if (!strcmp(args[0], "pidfile")) {
	if (global.pidfile != NULL) {
	    Alert("parsing [%s:%d] : '%s' already specified. Continuing.\n", file, linenum, args[0]);
	    return 0;
	}
	if (*(args[1]) == 0) {
	    Alert("parsing [%s:%d] : '%s' expects a file name as an argument.\n", file, linenum, args[0]);
	    return -1;
	}
	global.pidfile = strdup(args[1]);
    }
    else if (!strcmp(args[0], "pipesize")) {
	if (*(args[1]) == 0) {
	    Alert("parsing [%s:%d] : '%s' expects an integer argument.\n", file, linenum, args[0]);
	    return -1;
	}
	pipesize = atol(args[1]);
    }
    else {
	Alert("parsing [%s:%d] : unknown keyword '%s' in '%s' section\n", file, linenum, args[0], "global");
	return -1;
    }
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq 0x560e(%rip), %rsi      # 0xe50f
callq 0x2220
cmpl $0x0, %eax
jne 0x8f17
movl $0x0, -0x4(%rbp)
jmp 0x9562
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq 0x55f1(%rip), %rsi      # 0xe516
callq 0x2220
cmpl $0x0, %eax
jne 0x8f43
movl 0x84a7(%rip), %eax      # 0x113dc
orl $0x8, %eax
movl %eax, 0x849e(%rip)      # 0x113dc
jmp 0x9559
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq 0x55cc(%rip), %rsi      # 0xe51d
callq 0x2220
cmpl $0x0, %eax
jne 0x8f6f
movl 0x847b(%rip), %eax      # 0x113dc
orl $0x1, %eax
movl %eax, 0x8472(%rip)      # 0x113dc
jmp 0x9557
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq 0x55a6(%rip), %rsi      # 0xe523
callq 0x2220
cmpl $0x0, %eax
jne 0x8f9b
movl 0x8463(%rip), %eax      # 0x113f0
orl $0x1, %eax
movl %eax, 0x845a(%rip)      # 0x113f0
jmp 0x9555
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq 0x5583(%rip), %rsi      # 0xe52c
callq 0x2220
cmpl $0x0, %eax
jne 0x8fc7
movl 0x8437(%rip), %eax      # 0x113f0
orl $0x2, %eax
movl %eax, 0x842e(%rip)      # 0x113f0
jmp 0x9553
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq 0x5560(%rip), %rsi      # 0xe535
callq 0x2220
cmpl $0x0, %eax
jne 0x8ff3
movl 0x839f(%rip), %eax      # 0x11384
andl $-0x5, %eax
movl %eax, 0x8396(%rip)      # 0x11384
jmp 0x9551
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq 0x553c(%rip), %rsi      # 0xe53d
callq 0x2220
cmpl $0x0, %eax
jne 0x901f
movl 0x8373(%rip), %eax      # 0x11384
andl $-0x3, %eax
movl %eax, 0x836a(%rip)      # 0x11384
jmp 0x954f
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq 0x5517(%rip), %rsi      # 0xe544
callq 0x2220
cmpl $0x0, %eax
jne 0x904b
movl 0x839f(%rip), %eax      # 0x113dc
orl $0x10, %eax
movl %eax, 0x8396(%rip)      # 0x113dc
jmp 0x954d
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq 0x54f1(%rip), %rsi      # 0xe54a
callq 0x2220
cmpl $0x0, %eax
jne 0x90e8
cmpl $0x0, 0x8352(%rip)      # 0x113c0
je 0x9098
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movq -0x20(%rbp), %rax
movq (%rax), %rcx
leaq 0x54c9(%rip), %rdi      # 0xe54e
movb $0x0, %al
callq 0x2d40
movl $0x0, -0x4(%rbp)
jmp 0x9562
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x90d0
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movq -0x20(%rbp), %rax
movq (%rax), %rcx
leaq 0x54c8(%rip), %rdi      # 0xe585
movb $0x0, %al
callq 0x2d40
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9562
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x2350
movl %eax, 0x82dd(%rip)      # 0x113c0
jmp 0x954b
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq 0x54c4(%rip), %rsi      # 0xe5ba
callq 0x2220
cmpl $0x0, %eax
jne 0x9185
cmpl $0x0, 0x82b9(%rip)      # 0x113c4
je 0x9135
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movq -0x20(%rbp), %rax
movq (%rax), %rcx
leaq 0x542c(%rip), %rdi      # 0xe54e
movb $0x0, %al
callq 0x2d40
movl $0x0, -0x4(%rbp)
jmp 0x9562
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x916d
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movq -0x20(%rbp), %rax
movq (%rax), %rcx
leaq 0x542b(%rip), %rdi      # 0xe585
movb $0x0, %al
callq 0x2d40
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9562
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x2350
movl %eax, 0x8244(%rip)      # 0x113c4
jmp 0x9549
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq 0x542b(%rip), %rsi      # 0xe5be
callq 0x2220
cmpl $0x0, %eax
jne 0x9222
cmpl $0x0, 0x8220(%rip)      # 0x113c8
je 0x91d2
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movq -0x20(%rbp), %rax
movq (%rax), %rcx
leaq 0x538f(%rip), %rdi      # 0xe54e
movb $0x0, %al
callq 0x2d40
movl $0x0, -0x4(%rbp)
jmp 0x9562
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x920a
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movq -0x20(%rbp), %rax
movq (%rax), %rcx
leaq 0x538e(%rip), %rdi      # 0xe585
movb $0x0, %al
callq 0x2d40
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9562
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x2350
movl %eax, 0x81ab(%rip)      # 0x113c8
jmp 0x9547
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq 0x5395(%rip), %rsi      # 0xe5c5
callq 0x2220
cmpl $0x0, %eax
jne 0x92d4
cmpl $0x0, 0x8187(%rip)      # 0x113cc
je 0x926f
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movq -0x20(%rbp), %rax
movq (%rax), %rcx
leaq 0x52f2(%rip), %rdi      # 0xe54e
movb $0x0, %al
callq 0x2d40
movl $0x0, -0x4(%rbp)
jmp 0x9562
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x92a7
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movq -0x20(%rbp), %rax
movq (%rax), %rcx
leaq 0x52f1(%rip), %rdi      # 0xe585
movb $0x0, %al
callq 0x2d40
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9562
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x2350
movl %eax, 0x8112(%rip)      # 0x113cc
cmpl $0x0, 0x809f(%rip)      # 0x11360
jne 0x92cf
movl 0x8103(%rip), %eax      # 0x113cc
movl %eax, 0x291d9(%rip)     # 0x324a8
jmp 0x9545
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq 0x52eb(%rip), %rsi      # 0xe5cd
callq 0x2220
cmpl $0x0, %eax
jne 0x9371
cmpl $0x0, 0x80dd(%rip)      # 0x113d4
je 0x9321
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movq -0x20(%rbp), %rax
movq (%rax), %rcx
leaq 0x5240(%rip), %rdi      # 0xe54e
movb $0x0, %al
callq 0x2d40
movl $0x0, -0x4(%rbp)
jmp 0x9562
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x9359
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movq -0x20(%rbp), %rax
movq (%rax), %rcx
leaq 0x523f(%rip), %rdi      # 0xe585
movb $0x0, %al
callq 0x2d40
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9562
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x2350
movl %eax, 0x8068(%rip)      # 0x113d4
jmp 0x9543
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq 0x5257(%rip), %rsi      # 0xe5d6
callq 0x2220
cmpl $0x0, %eax
jne 0x9410
cmpq $0x0, 0x804b(%rip)      # 0x113e0
je 0x93bf
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movq -0x20(%rbp), %rax
movq (%rax), %rcx
leaq 0x51a2(%rip), %rdi      # 0xe54e
movb $0x0, %al
callq 0x2d40
movl $0x0, -0x4(%rbp)
jmp 0x9562
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x93f7
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movq -0x20(%rbp), %rax
movq (%rax), %rcx
leaq 0x51f9(%rip), %rdi      # 0xe5dd
movb $0x0, %al
callq 0x2d40
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9562
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x2420
movq %rax, 0x7fd5(%rip)      # 0x113e0
jmp 0x9541
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq 0x51fb(%rip), %rsi      # 0xe619
callq 0x2220
cmpl $0x0, %eax
jne 0x94af
cmpq $0x0, 0x7fb4(%rip)      # 0x113e8
je 0x945e
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movq -0x20(%rbp), %rax
movq (%rax), %rcx
leaq 0x5103(%rip), %rdi      # 0xe54e
movb $0x0, %al
callq 0x2d40
movl $0x0, -0x4(%rbp)
jmp 0x9562
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x9496
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movq -0x20(%rbp), %rax
movq (%rax), %rcx
leaq 0x519e(%rip), %rdi      # 0xe621
movb $0x0, %al
callq 0x2d40
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9562
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x2420
movq %rax, 0x7f3e(%rip)      # 0x113e8
jmp 0x953f
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq 0x51a0(%rip), %rsi      # 0xe65d
callq 0x2220
cmpl $0x0, %eax
jne 0x9511
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x94fc
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movq -0x20(%rbp), %rax
movq (%rax), %rcx
leaq 0x5099(%rip), %rdi      # 0xe585
movb $0x0, %al
callq 0x2d40
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9562
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x2350
movl %eax, 0x7d41(%rip)      # 0x11250
jmp 0x953d
movq -0x10(%rbp), %rsi
movl -0x14(%rbp), %edx
movq -0x20(%rbp), %rax
movq (%rax), %rcx
leaq 0x5140(%rip), %rdi      # 0xe666
leaq 0x4fe2(%rip), %r8       # 0xe50f
movb $0x0, %al
callq 0x2d40
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x9562
jmp 0x953f
jmp 0x9541
jmp 0x9543
jmp 0x9545
jmp 0x9547
jmp 0x9549
jmp 0x954b
jmp 0x954d
jmp 0x954f
jmp 0x9551
jmp 0x9553
jmp 0x9555
jmp 0x9557
jmp 0x9559
jmp 0x955b
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)