// File: DoubleString[P]RtConverter/src/Rtklib/stream.cpp
// Function: bamboo::statexntripc(bamboo::ntripc_t*, char*)
static int statexntripc(ntripc_t *ntripc, char *msg)
	{
		char *p = msg;
		int i, state = !ntripc ? 0 : ntripc->state;

		p += sprintf(p, "ntripc:\n");
		p += sprintf(p, "  state   = %d\n", ntripc->state);
		if (!state) return 0;
		p += sprintf(p, "  type    = %d\n", ntripc->type);
		p += sprintf(p, "  mntpnt  = %s\n", ntripc->mntpnt);
		p += sprintf(p, "  user    = %s\n", ntripc->user);
		p += sprintf(p, "  passwd  = %s\n", ntripc->passwd);
		p += sprintf(p, "  svr:\n");
		p += statextcp(&ntripc->tcp->svr, p);
		for (i = 0; i < MAXCLI; i++) {
			if (!ntripc->tcp->cli[i].state) continue;
			p += sprintf(p, "  cli#%d:\n", i);
			p += statextcp(ntripc->tcp->cli + i, p);
			p += sprintf(p, "    mntpnt= %s\n", ntripc->con[i].mntpnt);
			p += sprintf(p, "    str   = %s\n", ntripc->con[i].str);
			p += sprintf(p, "    nb    = %d\n", ntripc->con[i].nb);
		}
		return state;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0xa2976
xorl %eax, %eax
movl %eax, -0x2c(%rbp)
jmp 0xa297f
movq -0x10(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0x28(%rbp)
movq -0x20(%rbp), %rdi
leaq 0x27056(%rip), %rsi     # 0xc99e6
movb $0x0, %al
callq 0x9150
movl %eax, %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rax
movl (%rax), %edx
leaq 0x27793(%rip), %rsi     # 0xca14b
movb $0x0, %al
callq 0x9150
movl %eax, %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
cmpl $0x0, -0x28(%rbp)
jne 0xa29e1
movl $0x0, -0x4(%rbp)
jmp 0xa2c44
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x4(%rax), %edx
leaq 0x278b8(%rip), %rsi     # 0xca2ab
movb $0x0, %al
callq 0x9150
movl %eax, %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rdx
addq $0x8, %rdx
leaq 0x278be(%rip), %rsi     # 0xca2db
movb $0x0, %al
callq 0x9150
movl %eax, %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rdx
addq $0x108, %rdx            # imm = 0x108
leaq 0x278a1(%rip), %rsi     # 0xca2eb
movb $0x0, %al
callq 0x9150
movl %eax, %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rdx
addq $0x208, %rdx            # imm = 0x208
leaq 0x27884(%rip), %rsi     # 0xca2fb
movb $0x0, %al
callq 0x9150
movl %eax, %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
leaq 0x277bf(%rip), %rsi     # 0xca258
movb $0x0, %al
callq 0x9150
movl %eax, %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x338(%rax), %rdi
movq -0x20(%rbp), %rsi
callq 0xa8680
movl %eax, %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
cmpl $0x100, -0x24(%rbp)     # imm = 0x100
jge 0xa2c3e
movq -0x10(%rbp), %rax
movq 0x338(%rax), %rax
addq $0x128, %rax            # imm = 0x128
movslq -0x24(%rbp), %rcx
imulq $0x128, %rcx, %rcx      # imm = 0x128
addq %rcx, %rax
cmpl $0x0, (%rax)
jne 0xa2b11
jmp 0xa2c30
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %edx
leaq 0x27741(%rip), %rsi     # 0xca260
movb $0x0, %al
callq 0x9150
movl %eax, %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x338(%rax), %rdi
addq $0x128, %rdi            # imm = 0x128
movslq -0x24(%rbp), %rax
imulq $0x128, %rax, %rax      # imm = 0x128
addq %rax, %rdi
movq -0x20(%rbp), %rsi
callq 0xa8680
movl %eax, %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rdx
addq $0x340, %rdx            # imm = 0x340
movslq -0x24(%rbp), %rax
imulq $0x820c, %rax, %rax     # imm = 0x820C
addq %rax, %rdx
addq $0x4, %rdx
leaq 0x27784(%rip), %rsi     # 0xca31b
movb $0x0, %al
callq 0x9150
movl %eax, %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rdx
addq $0x340, %rdx            # imm = 0x340
movslq -0x24(%rbp), %rax
imulq $0x820c, %rax, %rax     # imm = 0x820C
addq %rax, %rdx
addq $0x104, %rdx            # imm = 0x104
leaq 0x27752(%rip), %rsi     # 0xca32b
movb $0x0, %al
callq 0x9150
movl %eax, %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rax
addq $0x340, %rax            # imm = 0x340
movslq -0x24(%rbp), %rcx
imulq $0x820c, %rcx, %rcx     # imm = 0x820C
addq %rcx, %rax
movl 0x204(%rax), %edx
leaq 0x27722(%rip), %rsi     # 0xca33b
movb $0x0, %al
callq 0x9150
movl %eax, %ecx
movq -0x20(%rbp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xa2adb
movl -0x28(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)