// File: /workspace/github_c_makefile_star2_O3/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 0xb5ef6(%rip), %rax     # 0x16bb80
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 0xb600f
leaq 0x5e02f(%rip), %rsi     # 0x113d08
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 0x5cf54(%rip), %rsi     # 0x112c6b
movq %rsp, %rdi
callq 0x579f0
leaq 0x18(%rsp), %rdi
movq %rsp, %rcx
movq %r12, %rdx
callq 0x56490
leaq 0x5cf3c(%rip), %rsi     # 0x112c72
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 0x746f3(%rip), %rsi     # 0x12a454
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 0x5c9c3(%rip), %rsi     # 0x112763
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 0x73011(%rip), %rsi     # 0x128df0
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 0x78469(%rip), %rsi     # 0x12e287
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 0x5ce1e(%rip), %rsi     # 0x112c7b
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 0x5cde8(%rip), %rsi     # 0x112c84
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 0x5cdb3(%rip), %rsi     # 0x112c8e
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 0x5cd7d(%rip), %rsi     # 0x112c97
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 0x5cd48(%rip), %rsi     # 0x112ca1
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 0x5cd0e(%rip), %rsi     # 0x112ca6
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 0x5ccdb(%rip), %rsi     # 0x112cb1
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 0xb602b
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 0xb6081
jmp 0xb6090
jmp 0xb609d
jmp 0xb6081
jmp 0xb6090
jmp 0xb609d
jmp 0xb6081
jmp 0xb6090
jmp 0xb609d
jmp 0xb6081
jmp 0xb6090
jmp 0xb609d
jmp 0xb6081
jmp 0xb6090
jmp 0xb609d
jmp 0xb6081
jmp 0xb6090
jmp 0xb609d
jmp 0xb6081
jmp 0xb6090
jmp 0xb609d
jmp 0xb6081
jmp 0xb6090
jmp 0xb609d
jmp 0xb6081
jmp 0xb6090
jmp 0xb609d
jmp 0xb6081
jmp 0xb6090
jmp 0xb609d
jmp 0xb6081
jmp 0xb6090
jmp 0xb609d
jmp 0xb6081
jmp 0xb6090
jmp 0xb609d
movq %rax, %r12
leaq 0x18(%rsp), %rdi
callq 0x59200
jmp 0xb6093
movq %rax, %r12
movq %rsp, %rdi
callq 0x59200
jmp 0xb60a0
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 0xb60a8
movq %rax, %r12
jmp 0xb60b0