// File: /workspace/github_c_makefile_star2_O0/liuhaotian[P]xmppsh/libstrophe/src/conn.c
// Function: xmpp_send_raw_string
void xmpp_send_raw_string(xmpp_conn_t * const conn, 
			  const char * const fmt, ...)
{
    va_list ap;
    size_t len;
    char buf[1024]; /* small buffer for common case */
    char *bigbuf;

    va_start(ap, fmt);
    len = xmpp_vsnprintf(buf, 1024, fmt, ap);
    va_end(ap);

    if (len >= 1024) {
	/* we need more space for this data, so we allocate a big 
	 * enough buffer and print to that */
	len++; /* account for trailing \0 */
	bigbuf = xmpp_alloc(conn->ctx, len);
	if (!bigbuf) {
	    xmpp_debug(conn->ctx, "xmpp", "Could not allocate memory for send_raw_string");
	    return;
	}
	va_start(ap, fmt);
	xmpp_vsnprintf(bigbuf, len, fmt, ap);
	va_end(ap);

	xmpp_debug(conn->ctx, "conn", "SENT: %s", bigbuf);

	/* len - 1 so we don't send trailing \0 */
	xmpp_send_raw(conn, bigbuf, len - 1);

	xmpp_free(conn->ctx, bigbuf);
    } else {
	xmpp_debug(conn->ctx, "conn", "SENT: %s", buf);

	xmpp_send_raw(conn, buf, len);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x500, %rsp            # imm = 0x500
testb %al, %al
je 0x5fb7
movaps %xmm0, -0x4d0(%rbp)
movaps %xmm1, -0x4c0(%rbp)
movaps %xmm2, -0x4b0(%rbp)
movaps %xmm3, -0x4a0(%rbp)
movaps %xmm4, -0x490(%rbp)
movaps %xmm5, -0x480(%rbp)
movaps %xmm6, -0x470(%rbp)
movaps %xmm7, -0x460(%rbp)
movq %r9, -0x4d8(%rbp)
movq %r8, -0x4e0(%rbp)
movq %rcx, -0x4e8(%rbp)
movq %rdx, -0x4f0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq -0x30(%rbp), %rax
leaq -0x500(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x10, (%rax)
leaq -0x440(%rbp), %rdi
movq -0x10(%rbp), %rdx
leaq -0x30(%rbp), %rcx
movl $0x400, %esi            # imm = 0x400
callq 0xedf0
cltq
movq %rax, -0x38(%rbp)
leaq -0x30(%rbp), %rax
cmpq $0x400, -0x38(%rbp)     # imm = 0x400
jb 0x6112
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x38(%rbp), %rsi
callq 0x6680
movq %rax, -0x448(%rbp)
cmpq $0x0, -0x448(%rbp)
jne 0x6080
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0xdfdc(%rip), %rsi      # 0x14049
leaq 0xe9de(%rip), %rdx      # 0x14a52
movb $0x0, %al
callq 0x6a80
jmp 0x614a
leaq -0x30(%rbp), %rax
leaq -0x500(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x10, (%rax)
movq -0x448(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x10(%rbp), %rdx
leaq -0x30(%rbp), %rcx
callq 0xedf0
leaq -0x30(%rbp), %rax
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x448(%rbp), %rcx
leaq 0xe9aa(%rip), %rsi      # 0x14a80
leaq 0xe9a8(%rip), %rdx      # 0x14a85
movb $0x0, %al
callq 0x6a80
movq -0x8(%rbp), %rdi
movq -0x448(%rbp), %rsi
movq -0x38(%rbp), %rdx
subq $0x1, %rdx
callq 0x6160
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x448(%rbp), %rsi
callq 0x66c0
jmp 0x614a
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
leaq -0x440(%rbp), %rcx
leaq 0xe958(%rip), %rsi      # 0x14a80
leaq 0xe956(%rip), %rdx      # 0x14a85
movb $0x0, %al
callq 0x6a80
movq -0x8(%rbp), %rdi
leaq -0x440(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x6160
addq $0x500, %rsp            # imm = 0x500
popq %rbp
retq
nopw %cs:(%rax,%rax)