// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/xml/xul/textbox.cpp
// Function: smooth::XML::XUL::TextBox::TextBox(smooth::XML::Node*)
S::XML::XUL::TextBox::TextBox(Node *node) : Widget(node)
{
	editBox = NIL;

	if (node != NIL)
	{
		if (GetXMLAttributeValue(node, "multiline") == "true")	editBox = new GUI::MultiEdit(GetXMLAttributeValue(node, "value"), GUI::Point(0, 0), GUI::Size(0, 0), GetXMLAttributeValue(node, "maxlength").ToInt());
		else							editBox = new GUI::EditBox(GetXMLAttributeValue(node, "value"), GUI::Point(0, 0), GUI::Size(0, 0), GetXMLAttributeValue(node, "maxlength").ToInt());

		if (GetXMLAttributeValue(node, "disabled") == "true")	editBox->Deactivate();
		if (GetXMLAttributeValue(node, "type") == "password")	editBox->SetFlags(editBox->GetFlags() | GUI::EDB_ASTERISK);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x58bf0
leaq 0xaf164(%rip), %rax     # 0x15f7c0
movq %rax, (%rbx)
andq $0x0, 0x80(%rbx)
testq %r14, %r14
je 0xb08c8
leaq 0x5248b(%rip), %rsi     # 0x102b02
leaq 0x8(%rsp), %rdi
callq 0x58c40
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x57590
leaq 0x52035(%rip), %rsi     # 0x1026d2
leaq 0x20(%rsp), %rdi
callq 0x59180
movl %eax, %ebp
leaq 0x20(%rsp), %rdi
callq 0x5a588
leaq 0x8(%rsp), %rdi
callq 0x5a588
testb %bpl, %bpl
je 0xb0754
movl $0x5f0, %edi            # imm = 0x5F0
callq 0x56700
movq %rax, %r15
leaq 0x51393(%rip), %rsi     # 0x101a6d
leaq 0x8(%rsp), %rdi
callq 0x58c40
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x57590
andq $0x0, 0x40(%rsp)
andq $0x0, 0x38(%rsp)
leaq 0x52400(%rip), %rsi     # 0x102b0c
leaq 0x48(%rsp), %rdi
callq 0x58c40
leaq 0x60(%rsp), %rdi
leaq 0x48(%rsp), %rcx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x57590
leaq 0x60(%rsp), %rdi
callq 0x57a10
leaq 0x20(%rsp), %rsi
leaq 0x40(%rsp), %rdx
leaq 0x38(%rsp), %rcx
movq %r15, %rdi
movl %eax, %r8d
callq 0x59500
jmp 0xb07dd
movl $0x630, %edi            # imm = 0x630
callq 0x56700
movq %rax, %r15
leaq 0x51305(%rip), %rsi     # 0x101a6d
leaq 0x8(%rsp), %rdi
callq 0x58c40
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x57590
andq $0x0, 0x40(%rsp)
andq $0x0, 0x38(%rsp)
leaq 0x52372(%rip), %rsi     # 0x102b0c
leaq 0x48(%rsp), %rdi
callq 0x58c40
leaq 0x60(%rsp), %rdi
leaq 0x48(%rsp), %rcx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x57590
leaq 0x60(%rsp), %rdi
callq 0x57a10
leaq 0x20(%rsp), %rsi
leaq 0x40(%rsp), %rdx
leaq 0x38(%rsp), %rcx
movq %r15, %rdi
movl %eax, %r8d
callq 0x57eb0
movq %r15, 0x80(%rbx)
leaq 0x60(%rsp), %rdi
callq 0x5a588
leaq 0x48(%rsp), %rdi
callq 0x5a588
leaq 0x20(%rsp), %rdi
callq 0x5a588
leaq 0x8(%rsp), %rdi
callq 0x5a588
leaq 0x521df(%rip), %rsi     # 0x1029f2
leaq 0x8(%rsp), %rdi
callq 0x58c40
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x57590
leaq 0x51e99(%rip), %rsi     # 0x1026d2
leaq 0x20(%rsp), %rdi
callq 0x59180
movl %eax, %ebp
leaq 0x20(%rsp), %rdi
callq 0x5a588
leaq 0x8(%rsp), %rdi
callq 0x5a588
testb %bpl, %bpl
je 0xb086b
movq 0x80(%rbx), %rdi
movq (%rdi), %rax
callq *0x70(%rax)
leaq 0x522a4(%rip), %rsi     # 0x102b16
leaq 0x8(%rsp), %rdi
callq 0x58c40
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x57590
leaq 0x52283(%rip), %rsi     # 0x102b1b
leaq 0x20(%rsp), %rdi
callq 0x59180
movl %eax, %ebp
leaq 0x20(%rsp), %rdi
callq 0x5a588
leaq 0x8(%rsp), %rdi
callq 0x5a588
testb %bpl, %bpl
je 0xb08c8
movq 0x80(%rbx), %rax
orl $0x2, 0x30(%rax)
addq $0x78, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0xb0923
movq %rax, %r14
jmp 0xb0955
movq %rax, %r14
jmp 0xb092d
movq %rax, %r14
jmp 0xb095f
movq %rax, %r14
jmp 0xb0937
movq %rax, %r14
jmp 0xb0969
movq %rax, %r14
jmp 0xb0941
movq %rax, %r14
jmp 0xb0973
jmp 0xb0982
jmp 0xb0991
jmp 0xb09a2
jmp 0xb0982
jmp 0xb0991
jmp 0xb09a2
movq %rax, %r14
leaq 0x60(%rsp), %rdi
callq 0x5a588
leaq 0x48(%rsp), %rdi
callq 0x5a588
leaq 0x20(%rsp), %rdi
callq 0x5a588
leaq 0x8(%rsp), %rdi
callq 0x5a588
movl $0x630, %esi            # imm = 0x630
jmp 0xb0978
movq %rax, %r14
leaq 0x60(%rsp), %rdi
callq 0x5a588
leaq 0x48(%rsp), %rdi
callq 0x5a588
leaq 0x20(%rsp), %rdi
callq 0x5a588
leaq 0x8(%rsp), %rdi
callq 0x5a588
movl $0x5f0, %esi            # imm = 0x5F0
movq %r15, %rdi
callq 0x564c0
jmp 0xb09a5
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x5a588
jmp 0xb0994
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x5a588
jmp 0xb09a5
jmp 0xb09a2
movq %rax, %r14
movq %rbx, %rdi
callq 0x5a3a0
movq %r14, %rdi
callq 0x58260
nop