// File: /workspace/github_c_makefile_star2_O1/enzo1982[P]smooth/classes/xml/xul/widget.cpp
// Function: smooth::XML::XUL::Widget::Widget(smooth::XML::Node*)
S::XML::XUL::Widget::Widget(Node *node)
{
	defaultWidth  = 100;
	defaultHeight = 20;

	if (node != NIL)
	{
		id	    = GetXMLAttributeValue(node, "id");

		orient	    = (GetXMLAttributeValue(node, "orient") == "vertical") ? VERTICAL : HORIZONTAL;

		left	    = GetXMLAttributeValue(node, "left").ToInt();
		top	    = GetXMLAttributeValue(node, "top").ToInt();

		width	    = GetXMLAttributeValue(node, "width").ToInt();
		height	    = GetXMLAttributeValue(node, "height").ToInt();

		minwidth    = GetXMLAttributeValue(node, "minwidth").ToInt();
		minheight   = GetXMLAttributeValue(node, "minheight").ToInt();

		maxwidth    = GetXMLAttributeValue(node, "maxwidth").ToInt();
		maxheight   = GetXMLAttributeValue(node, "maxheight").ToInt();

		flex	    = GetXMLAttributeValue(node, "flex").ToInt();

		statustext  = GetXMLAttributeValue(node, "statustext");
		tooltiptext = GetXMLAttributeValue(node, "tooltiptext");
	}
	else
	{
		orient	    = HORIZONTAL;

		left	    = 0;
		top	    = 0;

		width	    = 0;
		height	    = 0;

		minwidth    = 0;
		minheight   = 0;

		maxwidth    = 0;
		maxheight   = 0;

		flex	    = 0;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r12
movq %rdi, %r13
movq 0xb5ec6(%rip), %rax     # 0x16cb80
addq $0x10, %rax
movq %rax, (%rdi)
leaq 0x8(%rdi), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0x50(%r13), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x58e20
leaq 0x68(%r13), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x58e20
movabsq $0x1400000064, %rax     # imm = 0x1400000064
movq %rax, 0x48(%r13)
testq %r12, %r12
je 0xb703f
leaq 0x5ddef(%rip), %rsi     # 0x114af8
movq %rsp, %rdi
callq 0x579f0
leaq 0x18(%rsp), %rdi
movq %rsp, %rcx
movq %r12, %rdx
callq 0x56490
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x555f0
leaq 0x18(%rsp), %rdi
callq 0x59200
movq %rsp, %rdi
callq 0x59200
leaq 0x5cd60(%rip), %rsi     # 0x113aa7
movq %rsp, %rdi
callq 0x579f0
leaq 0x18(%rsp), %rdi
movq %rsp, %rcx
movq %r12, %rdx
callq 0x56490
leaq 0x5cd48(%rip), %rsi     # 0x113aae
leaq 0x18(%rsp), %rdi
callq 0x57ef0
movzbl %al, %eax
movw %ax, 0x20(%r13)
leaq 0x18(%rsp), %rdi
callq 0x59200
movq %rsp, %rdi
callq 0x59200
leaq 0x744b1(%rip), %rsi     # 0x12b242
movq %rsp, %rdi
callq 0x579f0
leaq 0x18(%rsp), %rdi
movq %rsp, %rcx
movq %r12, %rdx
callq 0x56490
leaq 0x18(%rsp), %rdi
callq 0x568c0
movl %eax, 0x24(%r13)
leaq 0x18(%rsp), %rdi
callq 0x59200
movq %rsp, %rdi
callq 0x59200
leaq 0x5c7ce(%rip), %rsi     # 0x11359e
movq %rsp, %rdi
callq 0x579f0
leaq 0x18(%rsp), %rdi
movq %rsp, %rcx
movq %r12, %rdx
callq 0x56490
leaq 0x18(%rsp), %rdi
callq 0x568c0
movl %eax, 0x28(%r13)
leaq 0x18(%rsp), %rdi
callq 0x59200
movq %rsp, %rdi
callq 0x59200
leaq 0x72dc1(%rip), %rsi     # 0x129bd0
movq %rsp, %rdi
callq 0x579f0
leaq 0x18(%rsp), %rdi
movq %rsp, %rcx
movq %r12, %rdx
callq 0x56490
leaq 0x18(%rsp), %rdi
callq 0x568c0
movl %eax, 0x2c(%r13)
leaq 0x18(%rsp), %rdi
callq 0x59200
movq %rsp, %rdi
callq 0x59200
leaq 0x7825c(%rip), %rsi     # 0x12f0aa
movq %rsp, %rdi
callq 0x579f0
leaq 0x18(%rsp), %rdi
movq %rsp, %rcx
movq %r12, %rdx
callq 0x56490
leaq 0x18(%rsp), %rdi
callq 0x568c0
movl %eax, 0x30(%r13)
leaq 0x18(%rsp), %rdi
callq 0x59200
movq %rsp, %rdi
callq 0x59200
leaq 0x5cc2a(%rip), %rsi     # 0x113ab7
movq %rsp, %rdi
callq 0x579f0
leaq 0x18(%rsp), %rdi
movq %rsp, %rcx
movq %r12, %rdx
callq 0x56490
leaq 0x18(%rsp), %rdi
callq 0x568c0
movl %eax, 0x34(%r13)
leaq 0x18(%rsp), %rdi
callq 0x59200
movq %rsp, %rdi
callq 0x59200
leaq 0x5cbf4(%rip), %rsi     # 0x113ac0
movq %rsp, %rdi
callq 0x579f0
leaq 0x18(%rsp), %rdi
movq %rsp, %rcx
movq %r12, %rdx
callq 0x56490
leaq 0x18(%rsp), %rdi
callq 0x568c0
movl %eax, 0x38(%r13)
leaq 0x18(%rsp), %rdi
callq 0x59200
movq %rsp, %rdi
callq 0x59200
leaq 0x5cbbf(%rip), %rsi     # 0x113aca
movq %rsp, %rdi
callq 0x579f0
leaq 0x18(%rsp), %rdi
movq %rsp, %rcx
movq %r12, %rdx
callq 0x56490
leaq 0x18(%rsp), %rdi
callq 0x568c0
movl %eax, 0x3c(%r13)
leaq 0x18(%rsp), %rdi
callq 0x59200
movq %rsp, %rdi
callq 0x59200
leaq 0x5cb89(%rip), %rsi     # 0x113ad3
movq %rsp, %rdi
callq 0x579f0
leaq 0x18(%rsp), %rdi
movq %rsp, %rcx
movq %r12, %rdx
callq 0x56490
leaq 0x18(%rsp), %rdi
callq 0x568c0
movl %eax, 0x40(%r13)
leaq 0x18(%rsp), %rdi
callq 0x59200
movq %rsp, %rdi
callq 0x59200
leaq 0x5cb54(%rip), %rsi     # 0x113add
movq %rsp, %rdi
callq 0x579f0
leaq 0x18(%rsp), %rdi
movq %rsp, %rcx
movq %r12, %rdx
callq 0x56490
leaq 0x18(%rsp), %rdi
callq 0x568c0
movl %eax, 0x44(%r13)
leaq 0x18(%rsp), %rdi
callq 0x59200
movq %rsp, %rdi
callq 0x59200
leaq 0x5cb1a(%rip), %rsi     # 0x113ae2
movq %rsp, %rdi
callq 0x579f0
leaq 0x18(%rsp), %rdi
movq %rsp, %rcx
movq %r12, %rdx
callq 0x56490
leaq 0x18(%rsp), %rsi
movq %r14, %rdi
callq 0x555f0
leaq 0x18(%rsp), %rdi
callq 0x59200
movq %rsp, %rdi
callq 0x59200
leaq 0x5cae7(%rip), %rsi     # 0x113aed
movq %rsp, %rdi
callq 0x579f0
leaq 0x18(%rsp), %rdi
movq %rsp, %rcx
movq %r12, %rdx
callq 0x56490
leaq 0x18(%rsp), %rsi
movq %r15, %rdi
callq 0x555f0
leaq 0x18(%rsp), %rdi
callq 0x59200
movq %rsp, %rdi
callq 0x59200
jmp 0xb705b
movw $0x0, 0x20(%r13)
xorps %xmm0, %xmm0
movups %xmm0, 0x24(%r13)
movups %xmm0, 0x34(%r13)
movl $0x0, 0x44(%r13)
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0xb70b1
jmp 0xb70c0
jmp 0xb70cd
jmp 0xb70b1
jmp 0xb70c0
jmp 0xb70cd
jmp 0xb70b1
jmp 0xb70c0
jmp 0xb70cd
jmp 0xb70b1
jmp 0xb70c0
jmp 0xb70cd
jmp 0xb70b1
jmp 0xb70c0
jmp 0xb70cd
jmp 0xb70b1
jmp 0xb70c0
jmp 0xb70cd
jmp 0xb70b1
jmp 0xb70c0
jmp 0xb70cd
jmp 0xb70b1
jmp 0xb70c0
jmp 0xb70cd
jmp 0xb70b1
jmp 0xb70c0
jmp 0xb70cd
jmp 0xb70b1
jmp 0xb70c0
jmp 0xb70cd
jmp 0xb70b1
jmp 0xb70c0
jmp 0xb70cd
jmp 0xb70b1
jmp 0xb70c0
jmp 0xb70cd
movq %rax, %r12
leaq 0x18(%rsp), %rdi
callq 0x59200
jmp 0xb70c3
movq %rax, %r12
movq %rsp, %rdi
callq 0x59200
jmp 0xb70d0
movq %rax, %r12
movq %r15, %rdi
callq 0x59200
movq %r14, %rdi
callq 0x59200
movq %rbx, %rdi
callq 0x59200
movq %r12, %rdi
callq 0x57090
movq %rax, %r12
jmp 0xb70d8
movq %rax, %r12
jmp 0xb70e0