// File: DoubleString[P]RtConverter/src/Rtklib/stream.cpp
// Function: bamboo::statexntrip(bamboo::ntrip_t*, char*)
static int statexntrip(ntrip_t *ntrip, char *msg)
	{
		char *p = msg;
		int state = !ntrip ? 0 : (ntrip->state == 0 ? ntrip->tcp->svr.state : ntrip->state);

		p += sprintf(p, "ntrip:\n");
		p += sprintf(p, "  state   = %d\n", state);
		if (!state) return 0;
		p += sprintf(p, "  state   = %d\n", state);
		p += sprintf(p, "  type    = %d\n", ntrip->type);
		p += sprintf(p, "  nb      = %d\n", ntrip->nb);
		p += sprintf(p, "  url     = %s\n", ntrip->url);
		p += sprintf(p, "  mntpnt  = %s\n", ntrip->mntpnt);
		p += sprintf(p, "  user    = %s\n", ntrip->user);
		p += sprintf(p, "  passwd  = %s\n", ntrip->passwd);
		p += sprintf(p, "  str     = %s\n", ntrip->str);
		p += sprintf(p, "  svr:\n");
		p += statextcp(&ntrip->tcp->svr, p);
		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 0xa2716
xorl %eax, %eax
movl %eax, -0x28(%rbp)
jmp 0xa2740
movq -0x10(%rbp), %rax
cmpl $0x0, (%rax)
jne 0xa2731
movq -0x10(%rbp), %rax
movq 0x8510(%rax), %rax
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
jmp 0xa273a
movq -0x10(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x20(%rbp), %rdi
leaq 0x26ef9(%rip), %rsi     # 0xc964a
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
movl -0x24(%rbp), %edx
leaq 0x279d5(%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, -0x24(%rbp)
jne 0xa279f
movl $0x0, -0x4(%rbp)
jmp 0xa2940
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %edx
leaq 0x2799e(%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)
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x4(%rax), %edx
leaq 0x27ad5(%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), %rax
movl 0x8(%rax), %edx
leaq 0x27abc(%rip), %rsi     # 0xca2bb
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 $0xc, %rdx
leaq 0x27aa2(%rip), %rsi     # 0xca2cb
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 $0x10c, %rdx            # imm = 0x10C
leaq 0x27a85(%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 $0x20c, %rdx            # imm = 0x20C
leaq 0x27a68(%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 $0x30c, %rdx            # imm = 0x30C
leaq 0x27a4b(%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
movq -0x10(%rbp), %rdx
addq $0x40c, %rdx            # imm = 0x40C
leaq 0x27a2e(%rip), %rsi     # 0xca30b
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 0x27959(%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 0x8510(%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 -0x24(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)