// File: /workspace/github_c_makefile_star2_O0/GangZhuo[P]dohclient/src/http.c
// Function: http_hp_handshake
static int http_hp_handshake(http_ctx_t* ctx, http_conn_t* conn)
{
	int r;
	const proxy_t *proxy = ctx->proxies + conn->proxy_index;
	conn_status cs = conn->conn.status;
	stream_t* s = &conn->proxy_stream;
	int rsize = stream_rsize(s);

	if (stream_rcap(s) < 1024) {
		int new_cap = MAX(s->cap * 2, 1024);
		if (stream_set_cap(s, new_cap)) {
			return -1;
		}
	}

	switch (cs) {
	case cs_connected:
		logv("CONNECT\n");
		if (rsize == 0) {
			const char *target_host = get_sockaddrname(&conn->pool->key.addr);
			const int authorization = strlen(proxy->username) > 0;
			char *auth_code = NULL;
			int auth_code_len = 0;
			if (authorization) {
				char auth_str[PROXY_USERNAME_LEN + PROXY_PASSWORD_LEN];
				sprintf(auth_str, "%s:%s", proxy->username, proxy->password);
				auth_code = base64url_encode((const unsigned char*)auth_str,
						strlen(auth_str), &auth_code_len, TRUE, FALSE);
			}
			r = stream_writef(s,
				"CONNECT %s HTTP/1.1\r\n"
				"Host: %s\r\n"
				"User-Agent: "DOHCLIENT_NAME"/"DOHCLIENT_VERSION"\r\n"
				"Proxy-Connection: keep-alive\r\n"
				"Connection: keep-alive\r\n"
				"%s%s%s"
				"\r\n",
				target_host,
				target_host,
				authorization ? "Proxy-Authorization: Basic " : "",
				authorization ? auth_code : "",
				authorization ? "\r\n" : "");
			if (r == -1) {
				loge("stream_writef()\n");
				free(auth_code);
				return -1;
			}
			logv("send\r\n%s\n", s->array);
			s->pos = 0;
			free(auth_code);
		}
		r = tcp_send(conn->conn.sock, s);
		if (r < 0) {
			loge("tcp_send() error\n");
			return -1;
		}
		conn->keep_alive = TRUE;
		if (stream_rsize(s) > 0) {
			conn->conn.status = cs_hp_sending_connect;
		}
		else {
			conn->conn.status = cs_hp_waiting_connect;
			s->pos = s->size = 0;
		}
		break;
	case cs_hp_waiting_connect:
		logv("receiving connection status\n");
		r = tcp_recv(conn->conn.sock, s->array + s->pos, s->cap - s->pos - 1);
		if (r <= 0) {
			loge("tcp_recv() error\n");
			return -1;
		}
		s->pos += r;
		s->size += r;
		s->array[s->pos] = '\0';
		logv("recv\r\n%s\n", s->array);
		if (s->size >= sizeof("HTTP/1.1 XXX")) {
			char *space;
			if (strncmp(s->array, "HTTP/", 5) == 0 &&
				(space = strchr(s->array, ' ')) != NULL) {
				char http_code_str[4];
				int http_code;
				strncpy(http_code_str, space + 1, sizeof(http_code_str));
				http_code_str[3] = '\0';
				http_code = atoi(http_code_str);
				if (http_code == 200) {
					if (strstr(s->array, "\r\n\r\n")) {
						if (strstr(s->array, "Connection: close"))
							conn->keep_alive = FALSE;
						conn->conn.status = cs_hp_handshaked;
						stream_free(s);
						logd("http proxy handshaked\n");
						return http_ssl_handshake(ctx, conn);
					}
					else {
						conn->conn.status = cs_hp_waiting_data;
					}
				}
				else {
					loge("http_code=%d\n%s\n", http_code, s->array);
					return -1;
				}
			}
			else {
				loge("wrong response \"%s\"\n", s->array);
				return -1;
			}
		}
		else {
			loge("connect error\n");
			return -1;
		}
		break;
	case cs_hp_waiting_data:
		logv("receiving left headers\n");
		r = tcp_recv(conn->conn.sock, s->array + s->pos, s->cap - s->pos - 1);
		if (r <= 0) {
			loge("tcp_recv() error\n");
			return -1;
		}
		s->size += r;
		s->pos += r;
		s->array[s->pos] = '\0';
		if (strstr(s->array, "\r\n\r\n")) {
			if (strstr(s->array, "Connection: close"))
				conn->keep_alive = FALSE;
			conn->conn.status = cs_hp_handshaked;
			stream_free(s);
			logd("http proxy handshaked\n");
			return http_ssl_handshake(ctx, conn);
		}
		else if (s->size >= HTTP_MAX_HEADER_SIZE) {
			loge("received too large (>= %s bytes)"
				" header data from http proxy.\n", s->pos);
			stream_free(s);
			return -1;
		}
		else {
			conn->conn.status = cs_hp_waiting_data;
		}
		break;
	default:
		loge("unknown status\n");
		return -1;
	}

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x18(%rbp), %rcx
movslq 0xc(%rcx), %rcx
imulq $0xf8, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movl 0x48(%rax), %eax
movl %eax, -0x2c(%rbp)
movq -0x18(%rbp), %rax
addq $0x110, %rax            # imm = 0x110
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x38(%rbp), %rcx
subl 0xc(%rcx), %eax
movl %eax, -0x3c(%rbp)
movq -0x38(%rbp), %rax
movl 0x10(%rax), %eax
movq -0x38(%rbp), %rcx
subl 0xc(%rcx), %eax
cmpl $0x400, %eax            # imm = 0x400
jge 0x23913
movq -0x38(%rbp), %rax
movl 0x10(%rax), %eax
shll %eax
cmpl $0x400, %eax            # imm = 0x400
jge 0x238dc
movl $0x400, %eax            # imm = 0x400
movl %eax, -0xd4(%rbp)
jmp 0x238eb
movq -0x38(%rbp), %rax
movl 0x10(%rax), %eax
shll %eax
movl %eax, -0xd4(%rbp)
movl -0xd4(%rbp), %eax
movl %eax, -0x40(%rbp)
movq -0x38(%rbp), %rdi
movl -0x40(%rbp), %esi
callq 0x2d900
cmpl $0x0, %eax
je 0x23911
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x241b1
jmp 0x23913
movl -0x2c(%rbp), %eax
movl %eax, -0xd8(%rbp)
subl $0x2, %eax
je 0x23948
jmp 0x23923
movl -0xd8(%rbp), %eax
subl $0xb, %eax
je 0x23c39
jmp 0x23934
movl -0xd8(%rbp), %eax
subl $0xc, %eax
je 0x23f81
jmp 0x2416b
jmp 0x2394a
movb $0x0, %al
callq 0x242d0
cmpl $0x8, (%rax)
jl 0x2397c
movl $0x8, %edi
leaq 0x13aba(%rip), %rsi     # 0x3741c
leaq 0x14264(%rip), %rdx     # 0x37bcd
movl $0x448, %ecx            # imm = 0x448
leaq 0x13031(%rip), %r8      # 0x369a6
movb $0x0, %al
callq 0x243b0
jmp 0x2397e
cmpl $0x0, -0x3c(%rbp)
jne 0x23b8a
movq -0x18(%rbp), %rax
movq 0x88(%rax), %rdi
callq 0x20440
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rdi
addq $0x94, %rdi
callq 0x3180
cmpq $0x0, %rax
seta %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x4c(%rbp)
movq $0x0, -0x58(%rbp)
movl $0x0, -0x5c(%rbp)
cmpl $0x0, -0x4c(%rbp)
je 0x23a33
leaq -0xc0(%rbp), %rdi
movq -0x28(%rbp), %rdx
addq $0x94, %rdx
movq -0x28(%rbp), %rcx
addq $0xc6, %rcx
leaq 0x12fbb(%rip), %rsi     # 0x369af
movb $0x0, %al
callq 0x30c0
leaq -0xc0(%rbp), %rax
movq %rax, -0xe0(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x3180
movq -0xe0(%rbp), %rdi
movl %eax, %esi
leaq -0x5c(%rbp), %rdx
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0xb860
movq %rax, -0x58(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0xf0(%rbp)
movl -0x4c(%rbp), %edx
leaq 0x13a88(%rip), %rax     # 0x374e6
leaq 0x12fcb(%rip), %rcx     # 0x36a30
cmpl $0x0, %edx
cmovneq %rcx, %rax
movq %rax, -0xe8(%rbp)
cmpl $0x0, -0x4c(%rbp)
je 0x23a86
movq -0x58(%rbp), %rax
movq %rax, -0x108(%rbp)
jmp 0x23a96
leaq 0x13a59(%rip), %rax     # 0x374e6
movq %rax, -0x108(%rbp)
jmp 0x23a96
movq -0xe8(%rbp), %r8
movq -0xf0(%rbp), %rcx
movq -0xf8(%rbp), %rdx
movq -0x100(%rbp), %rdi
movq -0x108(%rbp), %r9
movl -0x4c(%rbp), %r10d
leaq 0x13a22(%rip), %rax     # 0x374e6
leaq 0x13a19(%rip), %rsi     # 0x374e4
cmpl $0x0, %r10d
cmovneq %rsi, %rax
leaq 0x12edb(%rip), %rsi     # 0x369b5
movq %rax, (%rsp)
movb $0x0, %al
callq 0x2e040
movl %eax, -0x1c(%rbp)
cmpl $-0x1, -0x1c(%rbp)
jne 0x23b39
jmp 0x23af0
movb $0x0, %al
callq 0x242d0
cmpl $0x3, (%rax)
jl 0x23b22
movl $0x3, %edi
leaq 0x13914(%rip), %rsi     # 0x3741c
leaq 0x140be(%rip), %rdx     # 0x37bcd
movl $0x462, %ecx            # imm = 0x462
leaq 0x140c4(%rip), %r8      # 0x37bdf
movb $0x0, %al
callq 0x243b0
jmp 0x23b24
movq -0x58(%rbp), %rdi
callq 0x3460
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x241b1
jmp 0x23b3b
movb $0x0, %al
callq 0x242d0
cmpl $0x8, (%rax)
jl 0x23b74
movq -0x38(%rbp), %rax
movq (%rax), %r9
movl $0x8, %edi
leaq 0x138c2(%rip), %rsi     # 0x3741c
leaq 0x1406c(%rip), %rdx     # 0x37bcd
movl $0x466, %ecx            # imm = 0x466
leaq 0x12ef6(%rip), %r8      # 0x36a63
movb $0x0, %al
callq 0x243b0
jmp 0x23b76
movq -0x38(%rbp), %rax
movl $0x0, 0xc(%rax)
movq -0x58(%rbp), %rdi
callq 0x3460
movq -0x18(%rbp), %rax
movl 0x10(%rax), %edi
movq -0x38(%rbp), %rsi
callq 0x265a0
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
jge 0x23be5
jmp 0x23ba5
movb $0x0, %al
callq 0x242d0
cmpl $0x3, (%rax)
jl 0x23bd7
movl $0x3, %edi
leaq 0x1385f(%rip), %rsi     # 0x3741c
leaq 0x14009(%rip), %rdx     # 0x37bcd
movl $0x46c, %ecx            # imm = 0x46C
leaq 0x12cfa(%rip), %r8      # 0x368ca
movb $0x0, %al
callq 0x243b0
jmp 0x23bd9
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x241b1
movq -0x18(%rbp), %rax
movl $0x1, 0x108(%rax)
movq -0x38(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x38(%rbp), %rcx
subl 0xc(%rcx), %eax
cmpl $0x0, %eax
jle 0x23c13
movq -0x18(%rbp), %rax
movl $0xa, 0x48(%rax)
jmp 0x23c34
movq -0x18(%rbp), %rax
movl $0xb, 0x48(%rax)
movq -0x38(%rbp), %rax
movl $0x0, 0x8(%rax)
movq -0x38(%rbp), %rax
movl $0x0, 0xc(%rax)
jmp 0x241aa
jmp 0x23c3b
movb $0x0, %al
callq 0x242d0
cmpl $0x8, (%rax)
jl 0x23c6d
movl $0x8, %edi
leaq 0x137c9(%rip), %rsi     # 0x3741c
leaq 0x13f73(%rip), %rdx     # 0x37bcd
movl $0x479, %ecx            # imm = 0x479
leaq 0x12e07(%rip), %r8      # 0x36a6d
movb $0x0, %al
callq 0x243b0
jmp 0x23c6f
movq -0x18(%rbp), %rax
movl 0x10(%rax), %edi
movq -0x38(%rbp), %rax
movq (%rax), %rsi
movq -0x38(%rbp), %rax
movslq 0xc(%rax), %rax
addq %rax, %rsi
movq -0x38(%rbp), %rax
movl 0x10(%rax), %edx
movq -0x38(%rbp), %rax
subl 0xc(%rax), %edx
subl $0x1, %edx
callq 0x26730
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
jg 0x23ce9
jmp 0x23ca9
movb $0x0, %al
callq 0x242d0
cmpl $0x3, (%rax)
jl 0x23cdb
movl $0x3, %edi
leaq 0x1375b(%rip), %rsi     # 0x3741c
leaq 0x13f05(%rip), %rdx     # 0x37bcd
movl $0x47c, %ecx            # imm = 0x47C
leaq 0x12c7b(%rip), %r8      # 0x3694f
movb $0x0, %al
callq 0x243b0
jmp 0x23cdd
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x241b1
movl -0x1c(%rbp), %ecx
movq -0x38(%rbp), %rax
addl 0xc(%rax), %ecx
movl %ecx, 0xc(%rax)
movl -0x1c(%rbp), %ecx
movq -0x38(%rbp), %rax
addl 0x8(%rax), %ecx
movl %ecx, 0x8(%rax)
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq -0x38(%rbp), %rcx
movslq 0xc(%rcx), %rcx
movb $0x0, (%rax,%rcx)
movb $0x0, %al
callq 0x242d0
cmpl $0x8, (%rax)
jl 0x23d4f
movq -0x38(%rbp), %rax
movq (%rax), %r9
movl $0x8, %edi
leaq 0x136e7(%rip), %rsi     # 0x3741c
leaq 0x13e91(%rip), %rdx     # 0x37bcd
movl $0x482, %ecx            # imm = 0x482
leaq 0x12d42(%rip), %r8      # 0x36a8a
movb $0x0, %al
callq 0x243b0
jmp 0x23d51
movq -0x38(%rbp), %rax
movslq 0x8(%rax), %rax
cmpq $0xd, %rax
jb 0x23f3a
movq -0x38(%rbp), %rax
movq (%rax), %rdi
leaq 0x12d23(%rip), %rsi     # 0x36a94
movl $0x5, %edx
callq 0x31a0
cmpl $0x0, %eax
jne 0x23eef
movq -0x38(%rbp), %rax
movq (%rax), %rdi
movl $0x20, %esi
callq 0x3160
movq %rax, -0xc8(%rbp)
cmpq $0x0, %rax
je 0x23eef
leaq -0xcc(%rbp), %rdi
movq -0xc8(%rbp), %rsi
addq $0x1, %rsi
movl $0x4, %edx
callq 0x31f0
movb $0x0, -0xc9(%rbp)
leaq -0xcc(%rbp), %rdi
callq 0x3580
movl %eax, -0xd0(%rbp)
cmpl $0xc8, -0xd0(%rbp)
jne 0x23e99
movq -0x38(%rbp), %rax
movq (%rax), %rdi
leaq 0x136e9(%rip), %rsi     # 0x374e2
callq 0x30d0
cmpq $0x0, %rax
je 0x23e8c
movq -0x38(%rbp), %rax
movq (%rax), %rdi
leaq 0x13dda(%rip), %rsi     # 0x37bf0
callq 0x30d0
cmpq $0x0, %rax
je 0x23e2f
movq -0x18(%rbp), %rax
movl $0x0, 0x108(%rax)
movq -0x18(%rbp), %rax
movl $0xd, 0x48(%rax)
movq -0x38(%rbp), %rdi
callq 0x2d640
movb $0x0, %al
callq 0x242d0
cmpl $0x7, (%rax)
jl 0x23e75
movl $0x7, %edi
leaq 0x135c1(%rip), %rsi     # 0x3741c
leaq 0x13d6b(%rip), %rdx     # 0x37bcd
movl $0x492, %ecx            # imm = 0x492
leaq 0x12c2c(%rip), %r8      # 0x36a9a
movb $0x0, %al
callq 0x243b0
jmp 0x23e77
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x20730
movl %eax, -0x4(%rbp)
jmp 0x241b1
movq -0x18(%rbp), %rax
movl $0xc, 0x48(%rax)
jmp 0x23eed
jmp 0x23e9b
movb $0x0, %al
callq 0x242d0
cmpl $0x3, (%rax)
jl 0x23edf
movl -0xd0(%rbp), %r9d
movq -0x38(%rbp), %rax
movq (%rax), %rax
movl $0x3, %edi
leaq 0x1355b(%rip), %rsi     # 0x3741c
leaq 0x13d05(%rip), %rdx     # 0x37bcd
movl $0x49a, %ecx            # imm = 0x49A
leaq 0x12bdd(%rip), %r8      # 0x36ab1
movq %rax, (%rsp)
movb $0x0, %al
callq 0x243b0
jmp 0x23ee1
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x241b1
jmp 0x23f38
jmp 0x23ef1
movb $0x0, %al
callq 0x242d0
cmpl $0x3, (%rax)
jl 0x23f2a
movq -0x38(%rbp), %rax
movq (%rax), %r9
movl $0x3, %edi
leaq 0x1350c(%rip), %rsi     # 0x3741c
leaq 0x13cb6(%rip), %rdx     # 0x37bcd
movl $0x49f, %ecx            # imm = 0x49F
leaq 0x12b9f(%rip), %r8      # 0x36ac2
movb $0x0, %al
callq 0x243b0
jmp 0x23f2c
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x241b1
jmp 0x23f7c
jmp 0x23f3c
movb $0x0, %al
callq 0x242d0
cmpl $0x3, (%rax)
jl 0x23f6e
movl $0x3, %edi
leaq 0x134c8(%rip), %rsi     # 0x3741c
leaq 0x13c72(%rip), %rdx     # 0x37bcd
movl $0x4a4, %ecx            # imm = 0x4A4
leaq 0x12a20(%rip), %r8      # 0x36987
movb $0x0, %al
callq 0x243b0
jmp 0x23f70
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x241b1
jmp 0x241aa
jmp 0x23f83
movb $0x0, %al
callq 0x242d0
cmpl $0x8, (%rax)
jl 0x23fb5
movl $0x8, %edi
leaq 0x13481(%rip), %rsi     # 0x3741c
leaq 0x13c2b(%rip), %rdx     # 0x37bcd
movl $0x4a9, %ecx            # imm = 0x4A9
leaq 0x12b29(%rip), %r8      # 0x36ad7
movb $0x0, %al
callq 0x243b0
jmp 0x23fb7
movq -0x18(%rbp), %rax
movl 0x10(%rax), %edi
movq -0x38(%rbp), %rax
movq (%rax), %rsi
movq -0x38(%rbp), %rax
movslq 0xc(%rax), %rax
addq %rax, %rsi
movq -0x38(%rbp), %rax
movl 0x10(%rax), %edx
movq -0x38(%rbp), %rax
subl 0xc(%rax), %edx
subl $0x1, %edx
callq 0x26730
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
jg 0x24031
jmp 0x23ff1
movb $0x0, %al
callq 0x242d0
cmpl $0x3, (%rax)
jl 0x24023
movl $0x3, %edi
leaq 0x13413(%rip), %rsi     # 0x3741c
leaq 0x13bbd(%rip), %rdx     # 0x37bcd
movl $0x4ac, %ecx            # imm = 0x4AC
leaq 0x12933(%rip), %r8      # 0x3694f
movb $0x0, %al
callq 0x243b0
jmp 0x24025
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x241b1
movl -0x1c(%rbp), %ecx
movq -0x38(%rbp), %rax
addl 0x8(%rax), %ecx
movl %ecx, 0x8(%rax)
movl -0x1c(%rbp), %ecx
movq -0x38(%rbp), %rax
addl 0xc(%rax), %ecx
movl %ecx, 0xc(%rax)
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq -0x38(%rbp), %rcx
movslq 0xc(%rcx), %rcx
movb $0x0, (%rax,%rcx)
movq -0x38(%rbp), %rax
movq (%rax), %rdi
leaq 0x13476(%rip), %rsi     # 0x374e2
callq 0x30d0
cmpq $0x0, %rax
je 0x240ff
movq -0x38(%rbp), %rax
movq (%rax), %rdi
leaq 0x13b67(%rip), %rsi     # 0x37bf0
callq 0x30d0
cmpq $0x0, %rax
je 0x240a2
movq -0x18(%rbp), %rax
movl $0x0, 0x108(%rax)
movq -0x18(%rbp), %rax
movl $0xd, 0x48(%rax)
movq -0x38(%rbp), %rdi
callq 0x2d640
movb $0x0, %al
callq 0x242d0
cmpl $0x7, (%rax)
jl 0x240e8
movl $0x7, %edi
leaq 0x1334e(%rip), %rsi     # 0x3741c
leaq 0x13af8(%rip), %rdx     # 0x37bcd
movl $0x4b7, %ecx            # imm = 0x4B7
leaq 0x129b9(%rip), %r8      # 0x36a9a
movb $0x0, %al
callq 0x243b0
jmp 0x240ea
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x20730
movl %eax, -0x4(%rbp)
jmp 0x241b1
movq -0x38(%rbp), %rax
cmpl $0x14000, 0x8(%rax)     # imm = 0x14000
jl 0x2415c
jmp 0x2410e
movb $0x0, %al
callq 0x242d0
cmpl $0x3, (%rax)
jl 0x24148
movq -0x38(%rbp), %rax
movl 0xc(%rax), %r9d
movl $0x3, %edi
leaq 0x132ee(%rip), %rsi     # 0x3741c
leaq 0x13a98(%rip), %rdx     # 0x37bcd
movl $0x4bc, %ecx            # imm = 0x4BC
leaq 0x129ae(%rip), %r8      # 0x36aef
movb $0x0, %al
callq 0x243b0
jmp 0x2414a
movq -0x38(%rbp), %rdi
callq 0x2d640
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x241b1
movq -0x18(%rbp), %rax
movl $0xc, 0x48(%rax)
jmp 0x24169
jmp 0x241aa
jmp 0x2416d
movb $0x0, %al
callq 0x242d0
cmpl $0x3, (%rax)
jl 0x2419f
movl $0x3, %edi
leaq 0x13297(%rip), %rsi     # 0x3741c
leaq 0x13a41(%rip), %rdx     # 0x37bcd
movl $0x4c5, %ecx            # imm = 0x4C5
leaq 0x127fe(%rip), %r8      # 0x36996
movb $0x0, %al
callq 0x243b0
jmp 0x241a1
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x241b1
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nopl (%rax)