// File: /workspace/github_c_makefile_star2_O0/enzo1982[P]smooth/classes/xml/node.cpp
// Function: smooth::XML::Node::Node(smooth::XML::Node const&)
S::XML::Node::Node(const Node &oNode)
{
	nodeID		= -1;

	nameIndex	= oNode.nameIndex;
	content		= oNode.content;

	attributes	= NIL;
	subnodes	= NIL;

	/* Copy attributes.
	 */
	if (oNode.attributes != NIL)
	{
		foreach (Attribute *oAttribute, *oNode.attributes)
		{
			Attribute	*attribute = new Attribute(*oAttribute);

			if (attributes == NIL) attributes = new Array<Attribute *, Void *>();

			attribute->SetAttributeID(attributes->Add(attribute));
		}
	}

	/* Copy subnodes.
	 */
	if (oNode.subnodes != NIL)
	{
		foreach (Node *oSubnode, *oNode.subnodes)
		{
			Node	*node = new Node(*oSubnode);

			if (subnodes == NIL) subnodes = new Array<Node *, Void *>();

			node->SetNodeID(subnodes->Add(node));
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x60(%rbp)
addq $0x18, %rdi
movq %rdi, -0x58(%rbp)
xorl %esi, %esi
callq 0x5da90
movq -0x60(%rbp), %rax
movq -0x58(%rbp), %rdi
movl $0xffffffff, 0x10(%rax) # imm = 0xFFFFFFFF
movq -0x10(%rbp), %rcx
movl 0x14(%rcx), %ecx
movl %ecx, 0x14(%rax)
movq -0x10(%rbp), %rsi
addq $0x18, %rsi
callq 0x59760
jmp 0x10f352
movq -0x60(%rbp), %rax
movq $0x0, (%rax)
movq $0x0, 0x8(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, (%rax)
je 0x10f508
movl $0x0, -0x20(%rbp)
movl $0xffffffff, -0x24(%rbp) # imm = 0xFFFFFFFF
xorl %eax, %eax
cmpl $0x0, -0x20(%rbp)
movb %al, -0x61(%rbp)
jne 0x10f3b4
movl -0x24(%rbp), %eax
movl %eax, -0x6c(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x5c990
movl %eax, -0x68(%rbp)
jmp 0x10f3a3
movl -0x6c(%rbp), %eax
movl -0x68(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
setl %al
movb %al, -0x61(%rbp)
movb -0x61(%rbp), %al
testb $0x1, %al
jne 0x10f3c0
jmp 0x10f506
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movl -0x24(%rbp), %esi
incl %esi
movl %esi, -0x24(%rbp)
callq 0x1101f0
movq %rax, -0x78(%rbp)
jmp 0x10f3da
movq -0x78(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
cmpl $0x0, -0x20(%rbp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x10f3f7
jmp 0x10f4f6
movl $0x20, %edi
callq 0x59820
movq %rax, -0x80(%rbp)
jmp 0x10f407
movq -0x80(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x5ad90
jmp 0x10f416
movq -0x60(%rbp), %rax
movq -0x80(%rbp), %rcx
movq %rcx, -0x38(%rbp)
cmpq $0x0, (%rax)
jne 0x10f4af
movl $0x58, %edi
callq 0x59820
movq %rax, -0x88(%rbp)
jmp 0x10f43f
movq -0x88(%rbp), %rdi
callq 0x110260
jmp 0x10f44d
movq -0x60(%rbp), %rax
movq -0x88(%rbp), %rcx
movq %rcx, (%rax)
jmp 0x10f4af
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x10f6c9
movq -0x80(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
movl $0x20, %esi
callq 0x595b0
jmp 0x10f6c9
movq -0x88(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
movl $0x58, %esi
callq 0x595b0
jmp 0x10f6c9
movq -0x60(%rbp), %rax
movq -0x38(%rbp), %rcx
movq %rcx, -0x98(%rbp)
movq (%rax), %rdi
leaq -0x38(%rbp), %rsi
callq 0x1102a0
movl %eax, -0x8c(%rbp)
jmp 0x10f4d2
movl -0x8c(%rbp), %esi
movq -0x98(%rbp), %rdi
callq 0x599f0
jmp 0x10f4e6
jmp 0x10f4e8
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x10f3e5
jmp 0x10f4f8
movl -0x20(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x10f381
jmp 0x10f508
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x10f6c0
movl $0x0, -0x3c(%rbp)
movl $0xffffffff, -0x40(%rbp) # imm = 0xFFFFFFFF
xorl %eax, %eax
cmpl $0x0, -0x3c(%rbp)
movb %al, -0x99(%rbp)
jne 0x10f56b
movl -0x40(%rbp), %eax
movl %eax, -0xa4(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x5c990
movl %eax, -0xa0(%rbp)
jmp 0x10f551
movl -0xa4(%rbp), %eax
movl -0xa0(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
setl %al
movb %al, -0x99(%rbp)
movb -0x99(%rbp), %al
testb $0x1, %al
jne 0x10f57a
jmp 0x10f6be
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movl -0x40(%rbp), %esi
incl %esi
movl %esi, -0x40(%rbp)
callq 0x1102d0
movq %rax, -0xb0(%rbp)
jmp 0x10f598
movq -0xb0(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x48(%rbp)
cmpl $0x0, -0x3c(%rbp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x10f5b8
jmp 0x10f6ae
movl $0x30, %edi
callq 0x59820
movq %rax, -0xb8(%rbp)
jmp 0x10f5cb
movq -0xb8(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x5b080
jmp 0x10f5dd
movq -0x60(%rbp), %rax
movq -0xb8(%rbp), %rcx
movq %rcx, -0x50(%rbp)
cmpq $0x0, 0x8(%rax)
jne 0x10f666
movl $0x58, %edi
callq 0x59820
movq %rax, -0xc0(%rbp)
jmp 0x10f606
movq -0xc0(%rbp), %rdi
callq 0x110300
jmp 0x10f614
movq -0x60(%rbp), %rax
movq -0xc0(%rbp), %rcx
movq %rcx, 0x8(%rax)
jmp 0x10f666
movq -0xb8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
movl $0x30, %esi
callq 0x595b0
jmp 0x10f6c9
movq -0xc0(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
movl $0x58, %esi
callq 0x595b0
jmp 0x10f6c9
movq -0x60(%rbp), %rax
movq -0x50(%rbp), %rcx
movq %rcx, -0xd0(%rbp)
movq 0x8(%rax), %rdi
leaq -0x50(%rbp), %rsi
callq 0x110340
movl %eax, -0xc4(%rbp)
jmp 0x10f68a
movl -0xc4(%rbp), %esi
movq -0xd0(%rbp), %rdi
callq 0x5a340
jmp 0x10f69e
jmp 0x10f6a0
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x10f5a6
jmp 0x10f6b0
movl -0x3c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x10f525
jmp 0x10f6c0
addq $0xd0, %rsp
popq %rbp
retq
movq -0x58(%rbp), %rdi
callq 0x5df00
movq -0x18(%rbp), %rdi
callq 0x5b6b0
nopl (%rax,%rax)