// File: /workspace/github_c_makefile_star2_O3/wtarreau[P]httpterm/httpterm.c
// Function: cfg_parse_listen
int cfg_parse_listen(const char *file, int linenum, char **args) {
    static struct proxy *curproxy = NULL;
    struct server *newsrv = NULL;

    if (!strcmp(args[0], "listen")) {  /* new proxy */
	if (!*args[1]) {
	    Alert("parsing [%s:%d] : '%s' expects an <id> argument and\n"
		  "  optionnally supports [addr1]:port1[-end1]{,[addr]:port[-end]}...\n",
		  file, linenum, args[0]);
	    return -1;
	}
	
	if ((curproxy = (struct proxy *)calloc(1, sizeof(struct proxy))) == NULL) {
	    Alert("parsing [%s:%d] : out of memory.\n", file, linenum);
	    return -1;
	}
	
	curproxy->next = proxy;
	proxy = curproxy;

	curproxy->id = strdup(args[1]);

	/* parse the listener address if any */
	if (*args[2]) {
	    curproxy->listen = str2listener(args[2], curproxy->listen);
	    if (!curproxy->listen)
		return -1;
	    global.maxsock++;
	}

	/* set default values */
	curproxy->state = defproxy.state;
	curproxy->maxconn = defproxy.maxconn;
	curproxy->options = defproxy.options;

	if (defproxy.errmsg.msg400)
	    curproxy->errmsg.msg400 = strdup(defproxy.errmsg.msg400);
	curproxy->errmsg.len400 = defproxy.errmsg.len400;

	if (defproxy.errmsg.msg403)
	    curproxy->errmsg.msg403 = strdup(defproxy.errmsg.msg403);
	curproxy->errmsg.len403 = defproxy.errmsg.len403;

	if (defproxy.errmsg.msg408)
	    curproxy->errmsg.msg408 = strdup(defproxy.errmsg.msg408);
	curproxy->errmsg.len408 = defproxy.errmsg.len408;

	if (defproxy.errmsg.msg500)
	    curproxy->errmsg.msg500 = strdup(defproxy.errmsg.msg500);
	curproxy->errmsg.len500 = defproxy.errmsg.len500;

	if (defproxy.errmsg.msg502)
	    curproxy->errmsg.msg502 = strdup(defproxy.errmsg.msg502);
	curproxy->errmsg.len502 = defproxy.errmsg.len502;

	if (defproxy.errmsg.msg503)
	    curproxy->errmsg.msg503 = strdup(defproxy.errmsg.msg503);
	curproxy->errmsg.len503 = defproxy.errmsg.len503;

	if (defproxy.errmsg.msg504)
	    curproxy->errmsg.msg504 = strdup(defproxy.errmsg.msg504);
	curproxy->errmsg.len504 = defproxy.errmsg.len504;

	curproxy->clitimeout = defproxy.clitimeout;
	curproxy->grace  = defproxy.grace;
	return 0;
    }
    else if (!strcmp(args[0], "defaults")) {  /* use this one to assign default values */
	/* some variables may have already been initialized earlier */
	if (defproxy.errmsg.msg400) free(defproxy.errmsg.msg400);
	if (defproxy.errmsg.msg403) free(defproxy.errmsg.msg403);
	if (defproxy.errmsg.msg408) free(defproxy.errmsg.msg408);
	if (defproxy.errmsg.msg500) free(defproxy.errmsg.msg500);
	if (defproxy.errmsg.msg502) free(defproxy.errmsg.msg502);
	if (defproxy.errmsg.msg503) free(defproxy.errmsg.msg503);
	if (defproxy.errmsg.msg504) free(defproxy.errmsg.msg504);

	init_default_instance();
	curproxy = &defproxy;
	return 0;
    }
    else if (curproxy == NULL) {
	Alert("parsing [%s:%d] : 'listen' or 'defaults' expected.\n", file, linenum);
	return -1;
    }

    /* ignore disabled listeners so that we don't fail on missing files */
    if (curproxy->state == PR_STSTOPPED)
	return 0;

    if (!strcmp(args[0], "bind")) {  /* new listen addresses */
	if (curproxy == &defproxy) {
	    Alert("parsing [%s:%d] : '%s' not allowed in 'defaults' section.\n", file, linenum, args[0]);
	    return -1;
	}

	if (strchr(args[1], ':') == NULL) {
	    Alert("parsing [%s:%d] : '%s' expects [addr1]:port1[-end1]{,[addr]:port[-end]}... as arguments.\n",
		  file, linenum, args[0]);
	    return -1;
	}
	curproxy->listen = str2listener(args[1], curproxy->listen);
	if (!curproxy->listen)
	    return -1;
	global.maxsock++;
	return 0;
    }
    else if (!strcmp(args[0], "disabled")) {  /* disables this proxy */
	curproxy->state = PR_STSTOPPED;
    }
    else if (!strcmp(args[0], "enabled")) {  /* enables this proxy (used to revert a disabled default) */
	curproxy->state = PR_STNEW;
    }
    else if (!strcmp(args[0], "clitimeout")) {  /*  client timeout */
	if (curproxy->clitimeout != defproxy.clitimeout) {
	    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 <time_in_ms> as argument.\n",
		  file, linenum, args[0]);
	    return -1;
	}
	curproxy->clitimeout = atol(args[1]);
    }
    else if (!strcmp(args[0], "option")) {
	if (*(args[1]) == 0) {
	    Alert("parsing [%s:%d] : '%s' expects an option name.\n", file, linenum, args[0]);
	    return -1;
	}
	if (!strcmp(args[1], "httpclose"))
	    /* force connection: close in both directions in HTTP mode */
	    curproxy->options |= PR_O_HTTP_CLOSE;
	else if (!strcmp(args[1], "forceclose"))
	    /* force connection: close in both directions in HTTP mode and enforce end of session */
	    curproxy->options |= PR_O_FORCE_CLO | PR_O_HTTP_CLOSE;
	else if (!strcmp(args[1], "tcpka")) {
	    /* enable TCP keep-alives on client and server sessions */
	    curproxy->options |= PR_O_TCP_CLI_KA;
	}
	else if (!strcmp(args[1], "clitcpka")) {
	    /* enable TCP keep-alives on client sessions */
	    curproxy->options |= PR_O_TCP_CLI_KA;
	}
	else {
	    Alert("parsing [%s:%d] : unknown option '%s'.\n", file, linenum, args[1]);
	    return -1;
	}
	return 0;
    }
    else if (!strcmp(args[0], "maxconn")) {  /* maxconn */
	if (*(args[1]) == 0) {
	    Alert("parsing [%s:%d] : '%s' expects an integer argument.\n", file, linenum, args[0]);
	    return -1;
	}
	curproxy->maxconn = atol(args[1]);
    }
    else if (!strcmp(args[0], "grace")) {  /* grace time (ms) */
	if (*(args[1]) == 0) {
	    Alert("parsing [%s:%d] : '%s' expects a time in milliseconds.\n", file, linenum, args[0]);
	    return -1;
	}
	curproxy->grace = atol(args[1]);
    }
    else if (!strcmp(args[0], "object")) {
	int cur_arg;

	if (curproxy == &defproxy) {
	    Alert("parsing [%s:%d] : '%s' not allowed in 'defaults' section.\n", file, linenum, args[0]);
	    return -1;
	}

	if (!*args[2]) {
	    Alert("parsing [%s:%d] : '%s' expects <name> as arguments.\n",
		  file, linenum, args[0]);
	    return -1;
	}
	if ((newsrv = (struct server *)calloc(1, sizeof(struct server))) == NULL) {
	    Alert("parsing [%s:%d] : out of memory.\n", file, linenum);
	    return -1;
	}

	/* the servers are linked backwards first */
	newsrv->next = curproxy->srv;
	curproxy->srv = newsrv;
	newsrv->proxy = curproxy;

	newsrv->resp_cache = 1;
	newsrv->resp_code = 200;
	newsrv->resp_size = -1; /* not yet set */

	cur_arg = 1;
	while (*args[cur_arg]) {
	    if (!strcmp(args[cur_arg], "name")) {
		newsrv->id = strdup(args[cur_arg + 1]);
		cur_arg += 2;
	    }
	    else if (!strcmp(args[cur_arg], "cache")) {
		newsrv->resp_cache = 1;
		cur_arg += 1;
	    }
	    else if (!strcmp(args[cur_arg], "no-cache")) {
		newsrv->resp_cache = 0;
		cur_arg += 1;
	    }
	    else if (!strcmp(args[cur_arg], "code")) {
		newsrv->resp_code = atol(args[cur_arg + 1]);
		cur_arg += 2;
	    }
	    else if (!strcmp(args[cur_arg], "size")) {
		newsrv->resp_size = atol(args[cur_arg + 1]);
		cur_arg += 2;
	    }
	    else if (!strcmp(args[cur_arg], "time")) {
		newsrv->resp_time = atol(args[cur_arg + 1]);
		cur_arg += 2;
	    }
	    else if (!strcmp(args[cur_arg], "file")) {
		int ret, hdr, fd;
		char *buf;
		struct stat stat;

		if (*(args[1]) == 0) {
		    Alert("parsing [%s:%d] : <%s> expects a <file> argument.\n", file, linenum, args[0]);
			return -1;
		}

		fd = open(args[cur_arg + 1], O_RDONLY);
		if ((fd < 0) || (fstat(fd, &stat) < 0)) {
			Alert("parsing [%s:%d] : error opening file <%s>.\n",
			      file, linenum, args[cur_arg + 1]);
			if (fd >= 0)
				close(fd);
			return -1;
		}

		if (newsrv->resp_size < 0 || newsrv->resp_size > stat.st_size)
		    newsrv->resp_size = stat.st_size;

		hdr = sprintf(trash,
			       "HTTP/1.1 %03d\r\n"
			       "Connection: close\r\n"
			       "Content-length: %d\r\n"
			       "%s"
			       "X-req: size=%d, time=%d ms\r\n"
			       "X-rsp: id=%s, code=%d, cache=%d, size=%d, time=%d ms\r\n"
			       "\r\n",
			       newsrv->resp_code,
			       newsrv->resp_size,
			       newsrv->resp_cache ? "" : "Cache-Control: no-cache\r\n",
			       newsrv->resp_size, newsrv->resp_time, 
			       newsrv->id, newsrv->resp_code, newsrv->resp_cache,
			       newsrv->resp_size, newsrv->resp_time);

		buf = malloc(hdr + newsrv->resp_size); /* malloc() must succeed during parsing */
		if (!buf) {
			Alert("parsing [%s:%d] : not enough memory to read file <%s>.\n",
			      file, linenum, args[cur_arg + 1]);
			close(fd);
			return -1;
		}

		memcpy(buf, trash, hdr);
		ret = read(fd, buf + hdr, newsrv->resp_size);
		close(fd);
		if (ret != newsrv->resp_size) {
			Alert("parsing [%s:%d] : error reading file <%s>.\n",
			      file, linenum, args[cur_arg + 1]);
			free(buf);
			return -1;
		}

		newsrv->resp_size += hdr;
		newsrv->resp_data = buf;
		cur_arg += 2;
	    }
	    else if (!strcmp(args[cur_arg], "rawfile")) {
		int ret, fd;
		char *buf;
		struct stat stat;

		if (*(args[1]) == 0) {
		    Alert("parsing [%s:%d] : <%s> expects a <file> argument.\n", file, linenum, args[0]);
			return -1;
		}

		fd = open(args[cur_arg + 1], O_RDONLY);
		if ((fd < 0) || (fstat(fd, &stat) < 0)) {
			Alert("parsing [%s:%d] : error opening file <%s>.\n",
			      file, linenum, args[cur_arg + 1]);
			if (fd >= 0)
				close(fd);
			return -1;
		}

		if (newsrv->resp_size < 0 || newsrv->resp_size > stat.st_size)
		    newsrv->resp_size = stat.st_size;

		buf = malloc(newsrv->resp_size); /* malloc() must succeed during parsing */
		if (!buf) {
			Alert("parsing [%s:%d] : not enough memory to read file <%s>.\n",
			      file, linenum, args[cur_arg + 1]);
			close(fd);
			return -1;
		}

		ret = read(fd, buf, newsrv->resp_size);
		close(fd);
		if (ret != newsrv->resp_size) {
			Alert("parsing [%s:%d] : error reading file <%s>.\n",
			      file, linenum, args[cur_arg + 1]);
			free(buf);
			return -1;
		}

		newsrv->resp_data = buf;
		cur_arg += 2;
	    }
	    else if (!strcmp(args[cur_arg], "weight")) {
		int w;
		w = atol(args[cur_arg + 1]);
		if (w < 1 || w > 256) {
		    Alert("parsing [%s:%d] : weight of object %s is not within 1 and 256 (%d).\n",
			  file, linenum, newsrv->id, w);
		    return -1;
		}
		newsrv->uweight = w - 1;
		cur_arg += 2;
	    }
	    else {
		Alert("parsing [%s:%d] : object %s only supports options 'name', 'code', 'size', 'time', 'cache', 'no-cache', 'file', 'rawfile' and 'weight'.\n",
		      file, linenum, newsrv->id);
		return -1;
	    }
	}
    }
    else {
	Alert("parsing [%s:%d] : unknown keyword '%s' in '%s' section\n", file, linenum, args[0], "listen");
	return -1;
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdx, %r15
movl %esi, %ebx
movq %rdi, %r14
movq (%rdx), %r12
leaq 0x3e12(%rip), %rsi      # 0xa66b
movq %r12, %rdi
callq 0x2200
testl %eax, %eax
je 0x6977
leaq 0x3e9c(%rip), %rsi      # 0xa70c
movq %r12, %rdi
callq 0x2200
testl %eax, %eax
je 0x6b31
movq 0x27ca9(%rip), %r13     # 0x2e530
testq %r13, %r13
je 0x6bec
xorl %ebp, %ebp
cmpl $0x3, 0x8(%r13)
je 0x7198
leaq 0x3ea5(%rip), %rsi      # 0xa749
movq %r12, %rdi
callq 0x2200
testl %eax, %eax
je 0x6c13
leaq 0x3f28(%rip), %rsi      # 0xa7e3
movq %r12, %rdi
callq 0x2200
testl %eax, %eax
je 0x6c63
leaq 0x3f1a(%rip), %rsi      # 0xa7ec
movq %r12, %rdi
callq 0x2200
testl %eax, %eax
je 0x6c70
leaq 0x3f0b(%rip), %rsi      # 0xa7f4
movq %r12, %rdi
callq 0x2200
testl %eax, %eax
je 0x6c7d
leaq 0x3f44(%rip), %rsi      # 0xa844
movq %r12, %rdi
callq 0x2200
testl %eax, %eax
je 0x6cb4
leaq 0x3c7b(%rip), %rsi      # 0xa592
movq %r12, %rdi
callq 0x2200
testl %eax, %eax
je 0x6d4f
leaq 0x3f93(%rip), %rsi      # 0xa8c1
movq %r12, %rdi
callq 0x2200
testl %eax, %eax
je 0x6d6a
leaq 0x3fba(%rip), %rsi      # 0xa8ff
movq %r12, %rdi
callq 0x2200
testl %eax, %eax
je 0x6d9d
leaq 0x3cd7(%rip), %rdi      # 0xa633
leaq 0x3d08(%rip), %r8       # 0xa66b
movq %r14, %rsi
movl %ebx, %edx
movq %r12, %rcx
xorl %eax, %eax
callq 0x29fa
jmp 0x7193
movq 0x8(%r15), %r13
cmpb $0x0, (%r13)
je 0x6bf8
movl $0x1, %edi
movl $0xe0, %esi
callq 0x21f0
movq %rax, 0x27b94(%rip)     # 0x2e530
testq %rax, %rax
je 0x7180
movq %rax, %r12
movq 0x69c9(%rip), %rax      # 0xd378
movq %rax, 0x50(%r12)
movq %r12, 0x69bd(%rip)      # 0xd378
movq %r13, %rdi
callq 0x23e0
movq %rax, 0x38(%r12)
movq 0x10(%r15), %rdi
cmpb $0x0, (%rdi)
je 0x69f2
xorl %esi, %esi
callq 0x2ed1
movq 0x27b51(%rip), %r12     # 0x2e530
movq %rax, (%r12)
testq %rax, %rax
je 0x7193
incl 0x69be(%rip)            # 0xd3b0
movl 0x27a60(%rip), %eax     # 0x2e458
movl %eax, 0x8(%r12)
movq 0x27a94(%rip), %rax     # 0x2e498
movq %rax, 0x48(%r12)
movq 0x27ab0(%rip), %rdi     # 0x2e4c0
testq %rdi, %rdi
je 0x6a1f
callq 0x23e0
movq %rax, 0x70(%r12)
movl 0x27aa3(%rip), %eax     # 0x2e4c8
movl %eax, 0x78(%r12)
movq 0x27a9f(%rip), %rdi     # 0x2e4d0
testq %rdi, %rdi
je 0x6a43
callq 0x23e0
movq %rax, 0x80(%r12)
movl 0x27a8f(%rip), %eax     # 0x2e4d8
movl %eax, 0x88(%r12)
movq 0x27a88(%rip), %rdi     # 0x2e4e0
testq %rdi, %rdi
je 0x6a6a
callq 0x23e0
movq %rax, 0x90(%r12)
movl 0x27a78(%rip), %eax     # 0x2e4e8
movl %eax, 0x98(%r12)
movq 0x27a71(%rip), %rdi     # 0x2e4f0
testq %rdi, %rdi
je 0x6a91
callq 0x23e0
movq %rax, 0xa0(%r12)
movl 0x27a61(%rip), %eax     # 0x2e4f8
movl %eax, 0xa8(%r12)
movq 0x27a5a(%rip), %rdi     # 0x2e500
testq %rdi, %rdi
je 0x6ab8
callq 0x23e0
movq %rax, 0xb0(%r12)
movl 0x27a4a(%rip), %eax     # 0x2e508
movl %eax, 0xb8(%r12)
movq 0x27a43(%rip), %rdi     # 0x2e510
testq %rdi, %rdi
je 0x6adf
callq 0x23e0
movq %rax, 0xc0(%r12)
movl 0x27a33(%rip), %eax     # 0x2e518
movl %eax, 0xc8(%r12)
movq 0x27a2c(%rip), %rdi     # 0x2e520
testq %rdi, %rdi
je 0x6b06
callq 0x23e0
movq %rax, 0xd0(%r12)
movl 0x27a1c(%rip), %eax     # 0x2e528
movl %eax, 0xd8(%r12)
movl 0x27966(%rip), %eax     # 0x2e480
movl %eax, 0x30(%r12)
movl 0x27993(%rip), %eax     # 0x2e4b8
movl %eax, 0x68(%r12)
xorl %ebp, %ebp
jmp 0x7198
movq 0x27988(%rip), %rdi     # 0x2e4c0
testq %rdi, %rdi
je 0x6b42
callq 0x2050
movq 0x27987(%rip), %rdi     # 0x2e4d0
testq %rdi, %rdi
je 0x6b53
callq 0x2050
movq 0x27986(%rip), %rdi     # 0x2e4e0
testq %rdi, %rdi
je 0x6b64
callq 0x2050
movq 0x27985(%rip), %rdi     # 0x2e4f0
testq %rdi, %rdi
je 0x6b75
callq 0x2050
movq 0x27984(%rip), %rdi     # 0x2e500
testq %rdi, %rdi
je 0x6b86
callq 0x2050
movq 0x27983(%rip), %rdi     # 0x2e510
testq %rdi, %rdi
je 0x6b97
callq 0x2050
movq 0x27982(%rip), %rdi     # 0x2e520
testq %rdi, %rdi
je 0x6ba8
callq 0x2050
leaq 0x278a1(%rip), %rbx     # 0x2e450
xorl %ebp, %ebp
movl $0xe0, %edx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x21a0
movl 0x676a(%rip), %eax      # 0xd330
testl %eax, %eax
jne 0x6bd0
movl 0x67d8(%rip), %eax      # 0xd3a8
testl %eax, %eax
movl $0x40000000, %ecx       # imm = 0x40000000
cmovnel %eax, %ecx
movl %ecx, 0x278b8(%rip)     # 0x2e498
movq %rbx, 0x27949(%rip)     # 0x2e530
jmp 0x7198
leaq 0x3b22(%rip), %rdi      # 0xa715
jmp 0x7187
leaq 0x3a73(%rip), %rdi      # 0xa672
movq %r14, %rsi
movl %ebx, %edx
movq %r12, %rcx
xorl %eax, %eax
callq 0x29fa
jmp 0x7193
leaq 0x27836(%rip), %rax     # 0x2e450
cmpq %rax, %r13
je 0x71ac
movq 0x8(%r15), %r15
movq %r15, %rdi
movl $0x3a, %esi
callq 0x2160
testq %rax, %rax
je 0x6ca8
movq (%r13), %rsi
movq %r15, %rdi
callq 0x2ed1
movq 0x278e4(%rip), %rcx     # 0x2e530
movq %rax, (%rcx)
testq %rax, %rax
je 0x7193
incl 0x6752(%rip)            # 0xd3b0
jmp 0x7198
movl $0x3, 0x8(%r13)
jmp 0x7198
movl $0x0, 0x8(%r13)
jmp 0x7198
movl 0x30(%r13), %eax
cmpl 0x277f9(%rip), %eax     # 0x2e480
jne 0x6d32
movq 0x8(%r15), %rdi
cmpb $0x0, (%rdi)
je 0x6d91
callq 0x2320
movl %eax, 0x30(%r13)
jmp 0x7198
leaq 0x3ada(%rip), %rdi      # 0xa789
jmp 0x6bff
movq 0x8(%r15), %r15
cmpb $0x0, (%r15)
je 0x6d85
leaq 0x3bb2(%rip), %rsi      # 0xa87b
movq %r15, %rdi
callq 0x2200
testl %eax, %eax
je 0x71b8
leaq 0x3ba5(%rip), %rsi      # 0xa885
movq %r15, %rdi
callq 0x2200
testl %eax, %eax
je 0x71d2
leaq 0x3b9c(%rip), %rsi      # 0xa893
movq %r15, %rdi
callq 0x2200
testl %eax, %eax
je 0x71cb
leaq 0x3b82(%rip), %rsi      # 0xa890
movq %r15, %rdi
callq 0x2200
testl %eax, %eax
je 0x71cb
leaq 0x3b74(%rip), %rdi      # 0xa899
movq %r14, %rsi
movl %ebx, %edx
movq %r15, %rcx
jmp 0x6c07
leaq 0x37e2(%rip), %rdi      # 0xa51b
xorl %ebp, %ebp
movq %r14, %rsi
movl %ebx, %edx
movq %r12, %rcx
xorl %eax, %eax
callq 0x29fa
jmp 0x7198
movq 0x8(%r15), %rdi
cmpb $0x0, (%rdi)
je 0x71bf
callq 0x2320
movl %eax, 0x48(%r13)
jmp 0x7198
movq 0x8(%r15), %rdi
cmpb $0x0, (%rdi)
je 0x71d9
callq 0x2320
movl %eax, 0x68(%r13)
jmp 0x7198
leaq 0x3abf(%rip), %rdi      # 0xa84b
jmp 0x6bff
leaq 0x3a67(%rip), %rdi      # 0xa7ff
jmp 0x6bff
leaq 0x276ac(%rip), %rax     # 0x2e450
cmpq %rax, %r13
je 0x71ac
movq 0x10(%r15), %rax
cmpb $0x0, (%rax)
je 0x71e5
movl $0x1, %edi
movl $0x40, %esi
callq 0x21f0
testq %rax, %rax
je 0x7180
movq %rax, %rcx
movq 0x10(%r13), %rax
movq %rax, (%rcx)
movq %rcx, 0x10(%r13)
movq %r13, 0x20(%rcx)
movl $0x1, 0x34(%rcx)
movabsq $-0xffffff38, %rax      # imm = 0xFFFFFFFF000000C8
movq %rax, 0x2c(%rcx)
movq 0x8(%r15), %r13
cmpb $0x0, (%r13)
je 0x7198
leaq 0x8(%r15), %r12
movl $0x1, %edx
movq %r12, 0x28(%rsp)
movl %edx, 0x8(%rsp)
movq %rcx, %rbp
movq %r13, %rdi
leaq 0x3b14(%rip), %rsi      # 0xa93b
callq 0x2200
testl %eax, %eax
je 0x6f0f
movq %r13, %rdi
leaq 0x3b05(%rip), %rsi      # 0xa943
callq 0x2200
testl %eax, %eax
je 0x6f29
movq %r13, %rdi
leaq 0x3aeb(%rip), %rsi      # 0xa940
callq 0x2200
testl %eax, %eax
je 0x6f35
movq %r13, %rdi
leaq 0x3add(%rip), %rsi      # 0xa949
callq 0x2200
testl %eax, %eax
je 0x6f62
movq %r13, %rdi
leaq 0x37ab(%rip), %rsi      # 0xa62e
callq 0x2200
testl %eax, %eax
je 0x6f74
movq %r13, %rdi
leaq 0x3ab4(%rip), %rsi      # 0xa94e
callq 0x2200
testl %eax, %eax
je 0x6f86
movq %r13, %rdi
leaq 0x3738(%rip), %rsi      # 0xa5e9
callq 0x2200
testl %eax, %eax
je 0x6f98
movq %r13, %rdi
leaq 0x3bf5(%rip), %rsi      # 0xaabd
callq 0x2200
testl %eax, %eax
je 0x70ce
movq %r13, %rdi
leaq 0x3be6(%rip), %rsi      # 0xaac5
callq 0x2200
testl %eax, %eax
jne 0x723f
movq 0x8(%r12), %rdi
callq 0x2320
leal -0x1(%rax), %ecx
cmpl $0xff, %ecx
ja 0x7254
decb %al
movq %rbp, %rcx
movb %al, 0x10(%rbp)
jmp 0x6f20
movq 0x8(%r12), %rdi
callq 0x23e0
movq %rbp, %rcx
movq %rax, 0x8(%rbp)
movl 0x8(%rsp), %edx
addl $0x2, %edx
jmp 0x6f45
movq %rbp, %rcx
movl $0x1, 0x34(%rbp)
jmp 0x6f3f
movq %rbp, %rcx
movl $0x0, 0x34(%rbp)
movl 0x8(%rsp), %edx
incl %edx
movslq %edx, %rax
leaq (%r15,%rax,8), %r12
movq (%r12), %r13
xorl %ebp, %ebp
cmpb $0x0, (%r13)
jne 0x6e16
jmp 0x7198
movq 0x8(%r12), %rdi
callq 0x2320
movq %rbp, %rcx
movl %eax, 0x2c(%rbp)
jmp 0x6f20
movq 0x8(%r12), %rdi
callq 0x2320
movq %rbp, %rcx
movl %eax, 0x30(%rbp)
jmp 0x6f20
movq 0x8(%r12), %rdi
callq 0x2320
movq %rbp, %rcx
movl %eax, 0x28(%rbp)
jmp 0x6f20
movq 0x28(%rsp), %rax
movq (%rax), %rax
cmpb $0x0, (%rax)
je 0x71f1
movq 0x8(%r12), %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x2330
testl %eax, %eax
leaq 0x26470(%rip), %r13     # 0x2d430
js 0x71fd
movl %eax, 0xc(%rsp)
movl %eax, %edi
leaq 0x38(%rsp), %rsi
callq 0x23f0
testl %eax, %eax
js 0x720b
movq %r13, %rdi
movq %rbp, %r13
movl 0x30(%rbp), %ecx
testl %ecx, %ecx
sets %dl
movl %ecx, %esi
movq 0x68(%rsp), %rax
cmpq %rsi, %rax
setl %sil
orb %dl, %sil
cmpb $0x1, %sil
jne 0x7009
movl %eax, 0x30(%r13)
movl %eax, %ecx
movl 0x2c(%r13), %edx
movl 0x34(%r13), %r10d
testl %r10d, %r10d
leaq 0x3225(%rip), %r8       # 0xa240
leaq 0x3a1d(%rip), %rax      # 0xaa3f
cmoveq %rax, %r8
movl 0x28(%r13), %r11d
movq %rdi, %rbp
leaq 0x397e(%rip), %rsi      # 0xa9b2
movl %ecx, %r9d
xorl %eax, %eax
pushq %r11
pushq %rcx
pushq %r10
pushq %rdx
pushq 0x8(%r13)
pushq %r11
callq 0x23a0
addq $0x30, %rsp
movq %r13, 0x10(%rsp)
movslq 0x30(%r13), %rcx
movl %eax, 0x1c(%rsp)
movslq %eax, %r13
movq %rcx, 0x30(%rsp)
leaq (%rcx,%r13), %rdi
callq 0x2290
testq %rax, %rax
je 0x7219
movq %rax, %rdi
movq %rbp, %rsi
movq %r13, %rdx
movq %rax, %rbp
callq 0x2250
movq %rbp, 0x20(%rsp)
movq %rbp, %rsi
addq %r13, %rsi
movl 0xc(%rsp), %ebp
movl %ebp, %edi
movq 0x30(%rsp), %rdx
callq 0x21d0
movq %rax, %r13
movl %ebp, %edi
callq 0x21b0
movq 0x10(%rsp), %rcx
cmpl %r13d, 0x30(%rcx)
jne 0x7273
movl 0x1c(%rsp), %eax
addl %r13d, %eax
movl %eax, 0x30(%rcx)
movq 0x20(%rsp), %rax
jmp 0x7177
movq 0x28(%rsp), %rax
movq (%rax), %rax
cmpb $0x0, (%rax)
je 0x71f1
movq 0x8(%r12), %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x2330
testl %eax, %eax
js 0x71fd
movl %eax, 0xc(%rsp)
movl %eax, %edi
leaq 0x38(%rsp), %rsi
callq 0x23f0
testl %eax, %eax
js 0x720b
movl 0x30(%rbp), %eax
testl %eax, %eax
sets %dl
movl %eax, %esi
movq 0x68(%rsp), %rcx
cmpq %rsi, %rcx
setl %sil
orb %dl, %sil
cmpb $0x1, %sil
jne 0x7131
movl %ecx, 0x30(%rbp)
movl %ecx, %eax
movslq %eax, %r13
movq %r13, %rdi
callq 0x2290
testq %rax, %rax
je 0x7219
movl 0xc(%rsp), %edi
movq %rax, 0x10(%rsp)
movq %rax, %rsi
movq %r13, %rdx
callq 0x21d0
movq %rax, %r13
movl 0xc(%rsp), %edi
callq 0x21b0
cmpl %r13d, 0x30(%rbp)
jne 0x7292
movq %rbp, %rcx
movq 0x10(%rsp), %rax
movq %rax, 0x38(%rcx)
jmp 0x6f20
leaq 0x3563(%rip), %rdi      # 0xa6ea
movq %r14, %rsi
movl %ebx, %edx
xorl %eax, %eax
callq 0x29fa
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x359b(%rip), %rdi      # 0xa74e
jmp 0x6bff
orb $0x1, 0x4e(%r13)
jmp 0x7198
leaq 0x338c(%rip), %rdi      # 0xa552
jmp 0x6bff
orb $0x4, 0x4e(%r13)
jmp 0x7198
orb $0x21, 0x4e(%r13)
jmp 0x7198
leaq 0x36e7(%rip), %rdi      # 0xa8c7
jmp 0x6bff
leaq 0x371a(%rip), %rdi      # 0xa906
jmp 0x6bff
movq (%r15), %rcx
leaq 0x3758(%rip), %rdi      # 0xa953
jmp 0x724a
movq 0x8(%r12), %rcx
leaq 0x377d(%rip), %rdi      # 0xa986
jmp 0x724a
movq 0x8(%r12), %rcx
leaq 0x376f(%rip), %rdi      # 0xa986
jmp 0x7225
movq 0x8(%r12), %rcx
leaq 0x3834(%rip), %rdi      # 0xaa59
movq %r14, %rsi
movl %ebx, %edx
xorl %eax, %eax
callq 0x29fa
movl 0xc(%rsp), %edi
callq 0x21b0
jmp 0x7193
movq 0x8(%rbp), %rcx
leaq 0x38c7(%rip), %rdi      # 0xab11
movq %r14, %rsi
movl %ebx, %edx
jmp 0x6c07
movq 0x8(%rbp), %rcx
leaq 0x386d(%rip), %rdi      # 0xaacc
movq %r14, %rsi
movl %ebx, %edx
movl %eax, %r8d
xorl %eax, %eax
callq 0x29fa
jmp 0x7193
movq 0x8(%r12), %rcx
leaq 0x3812(%rip), %rdi      # 0xaa91
movq %r14, %rsi
movl %ebx, %edx
xorl %eax, %eax
callq 0x29fa
movq 0x20(%rsp), %rdi
jmp 0x72af
movq 0x8(%r12), %rcx
leaq 0x37f3(%rip), %rdi      # 0xaa91
movq %r14, %rsi
movl %ebx, %edx
xorl %eax, %eax
callq 0x29fa
movq 0x10(%rsp), %rdi
callq 0x2050
jmp 0x7193