// File: DoubleString[P]RtConverter/src/Rtklib/stream.cpp
// Function: bamboo::send_srctbl(bamboo::ntripc_t*, int)
static void send_srctbl(ntripc_t *ntripc, socket_t sock)
	{
		char buff[1024], *p = buff;
		int len;

		lock(&ntripc->lock_srctbl);
		//string vrs_source = Deploy::s_getInstance()->m_genVrsSourceTable();
		len = ntripc->srctbl ? strlen(ntripc->srctbl) : 0;
		p += sprintf(p, "%s", NTRIP_RSP_SRCTBL);
		p += sprintf(p, "Server: %s %s\r\n", "Bamboo", "ver1.0");
		p += sprintf(p, "Date: %s UTC\r\n", time_str(timeget(), 0));
		p += sprintf(p, "Connection: close\r\n");
		p += sprintf(p, "Content-Type: text/plain\r\n");
		p += sprintf(p, "Content-Length: %d\r\n\r\n", len);// len + vrs_source.size());
		send_nb(sock, (unsigned char *)buff, strlen(buff));
		if (len > 0) {
			send_nb(sock, (unsigned char *)ntripc->srctbl, len);
		}
		//send_nb(sock, (unsigned char*)vrs_source.c_str(), vrs_source.size());
		unlock(&ntripc->lock_srctbl);
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x450, %rsp            # imm = 0x450
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
leaq -0x410(%rbp), %rax
movq %rax, -0x418(%rbp)
movq -0x8(%rbp), %rdi
addq $0x310, %rdi            # imm = 0x310
callq 0x9ad0
movq -0x8(%rbp), %rax
cmpq $0x0, 0x308(%rax)
je 0xa74c7
movq -0x8(%rbp), %rax
movq 0x308(%rax), %rdi
callq 0x92e0
movq %rax, -0x438(%rbp)
jmp 0xa74d2
xorl %eax, %eax
movq %rax, -0x438(%rbp)
jmp 0xa74d2
movq -0x438(%rbp), %rax
movl %eax, -0x41c(%rbp)
movq -0x418(%rbp), %rdi
leaq 0x218fa(%rip), %rsi     # 0xc8de7
leaq 0x2243a(%rip), %rdx     # 0xc992e
movb $0x0, %al
callq 0x9150
movl %eax, %ecx
movq -0x418(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x418(%rbp)
movq -0x418(%rbp), %rdi
leaq 0x22677(%rip), %rsi     # 0xc9b96
leaq 0x22680(%rip), %rdx     # 0xc9ba6
leaq 0x22680(%rip), %rcx     # 0xc9bad
movb $0x0, %al
callq 0x9150
movl %eax, %ecx
movq -0x418(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x418(%rbp)
movq -0x418(%rbp), %rax
movq %rax, -0x450(%rbp)
callq 0x8e920
movq %rax, -0x430(%rbp)
movsd %xmm0, -0x428(%rbp)
movq -0x430(%rbp), %rdi
movsd -0x428(%rbp), %xmm0
xorl %esi, %esi
callq 0x8f6d0
movq -0x450(%rbp), %rdi
movq %rax, %rdx
leaq 0x22621(%rip), %rsi     # 0xc9bb4
movb $0x0, %al
callq 0x9150
movl %eax, %ecx
movq -0x418(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x418(%rbp)
movq -0x418(%rbp), %rdi
leaq 0x221b1(%rip), %rsi     # 0xc976f
movb $0x0, %al
callq 0x9150
movl %eax, %ecx
movq -0x418(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x418(%rbp)
movq -0x418(%rbp), %rdi
leaq 0x225da(%rip), %rsi     # 0xc9bc3
movb $0x0, %al
callq 0x9150
movl %eax, %ecx
movq -0x418(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x418(%rbp)
movq -0x418(%rbp), %rdi
movl -0x41c(%rbp), %edx
leaq 0x225c4(%rip), %rsi     # 0xc9bde
movb $0x0, %al
callq 0x9150
movl %eax, %ecx
movq -0x418(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x418(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x444(%rbp)
leaq -0x410(%rbp), %rax
movq %rax, -0x440(%rbp)
leaq -0x410(%rbp), %rdi
callq 0x92e0
movl -0x444(%rbp), %edi
movq -0x440(%rbp), %rsi
movl %eax, %edx
callq 0xa76b0
cmpl $0x0, -0x41c(%rbp)
jle 0xa7690
movl -0xc(%rbp), %edi
movq -0x8(%rbp), %rax
movq 0x308(%rax), %rsi
movl -0x41c(%rbp), %edx
callq 0xa76b0
movq -0x8(%rbp), %rdi
addq $0x310, %rdi            # imm = 0x310
callq 0x95a0
addq $0x450, %rsp            # imm = 0x450
popq %rbp
retq
nopl (%rax)