// File: /workspace/github_c_makefile_star2_O0/liuhaotian[P]xmppsh/libstrophe/src/parser_libxml2.c
// Function: start_element
static void _start_element(void *userdata, 
                           const xmlChar *name, const xmlChar **attrs)
{
    parser_t *parser = (parser_t *)userdata;
    xmpp_stanza_t *child;

    if (parser->depth == 0) {
        /* notify the owner */
        if (parser->startcb)
            parser->startcb((char *)name, (char **)attrs, 
                            parser->userdata);
    } else {
	/* build stanzas at depth 1 */
	if (!parser->stanza && parser->depth != 1) {
	    /* something terrible happened */
	    /* FIXME: we should probably trigger a disconnect */
	    xmpp_error(parser->ctx, "parser", "oops, where did our stanza go?");
	} else if (!parser->stanza) {
	    /* starting a new toplevel stanza */
	    parser->stanza = xmpp_stanza_new(parser->ctx);
	    if (!parser->stanza) {
		/* FIXME: can't allocate, disconnect */
	    }
	    xmpp_stanza_set_name(parser->stanza, (char *)name);
	    _set_attributes(parser->stanza, attrs);
	} else {
	    /* starting a child of conn->stanza */
	    child = xmpp_stanza_new(parser->ctx);
	    if (!child) {
		/* FIXME: can't allocate, disconnect */
	    }
	    xmpp_stanza_set_name(child, (char *)name);
	    _set_attributes(child, attrs);

	    /* add child to parent */
	    xmpp_stanza_add_child(parser->stanza, child);
	    
	    /* the child is owned by the toplevel stanza now */
	    xmpp_stanza_release(child);

	    /* make child the current stanza */
	    parser->stanza = child;
	}
    }

    parser->depth++;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x0, 0x130(%rax)
jne 0xa57c
movq -0x20(%rbp), %rax
cmpq $0x0, 0x110(%rax)
je 0xa577
movq -0x20(%rbp), %rax
movq 0x110(%rax), %rax
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rcx
movq 0x128(%rcx), %rdx
callq *%rax
jmp 0xa67d
movq -0x20(%rbp), %rax
cmpq $0x0, 0x138(%rax)
jne 0xa5b8
movq -0x20(%rbp), %rax
cmpl $0x1, 0x130(%rax)
je 0xa5b8
movq -0x20(%rbp), %rax
movq (%rax), %rdi
leaq 0xa7cb(%rip), %rsi      # 0x14d70
leaq 0xa7cb(%rip), %rdx      # 0x14d77
movb $0x0, %al
callq 0x68a0
jmp 0xa67b
movq -0x20(%rbp), %rax
cmpq $0x0, 0x138(%rax)
jne 0xa61a
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0x11cb0
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x138(%rax)
movq -0x20(%rbp), %rax
cmpq $0x0, 0x138(%rax)
jne 0xa5f0
jmp 0xa5f0
movq -0x20(%rbp), %rax
movq 0x138(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x12550
movq -0x20(%rbp), %rax
movq 0x138(%rax), %rdi
movq -0x18(%rbp), %rsi
callq 0xa950
jmp 0xa679
movq -0x20(%rbp), %rax
movq (%rax), %rdi
callq 0x11cb0
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0xa633
jmp 0xa633
movq -0x28(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x12550
movq -0x28(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xa950
movq -0x20(%rbp), %rax
movq 0x138(%rax), %rdi
movq -0x28(%rbp), %rsi
callq 0x12850
movq -0x28(%rbp), %rdi
callq 0x11f80
movq -0x28(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x138(%rax)
jmp 0xa67b
jmp 0xa67d
movq -0x20(%rbp), %rax
movl 0x130(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x130(%rax)
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)