// File: /workspace/github_c_makefile_star2_O3/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 0x579a0
leaq 0xb3edc(%rip), %rax     # 0x1697a0
movq %rax, (%rbx)
movq $0x0, 0x80(%rbx)
testq %r14, %r14
je 0xb5b33
leaq 0x5d330(%rip), %rsi     # 0x112c12
leaq 0x8(%rsp), %rdi
callq 0x579f0
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x56490
leaq 0x5ceda(%rip), %rsi     # 0x1127e2
leaq 0x20(%rsp), %rdi
callq 0x57ef0
movl %eax, %ebp
leaq 0x20(%rsp), %rdi
callq 0x59200
leaq 0x8(%rsp), %rdi
callq 0x59200
testb %bpl, %bpl
je 0xb59bf
movl $0x5f0, %edi            # imm = 0x5F0
callq 0x556b0
movq %rax, %r15
leaq 0x5c228(%rip), %rsi     # 0x111b6d
leaq 0x8(%rsp), %rdi
callq 0x579f0
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x56490
xorl %eax, %eax
movq %rax, 0x40(%rsp)
movq %rax, 0x38(%rsp)
leaq 0x5d2a5(%rip), %rsi     # 0x112c1c
leaq 0x48(%rsp), %rdi
callq 0x579f0
leaq 0x60(%rsp), %rdi
leaq 0x48(%rsp), %rcx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x56490
leaq 0x60(%rsp), %rdi
callq 0x568c0
leaq 0x20(%rsp), %rsi
leaq 0x40(%rsp), %rdx
leaq 0x38(%rsp), %rcx
movq %r15, %rdi
movl %eax, %r8d
callq 0x58250
jmp 0xb5a48
movl $0x630, %edi            # imm = 0x630
callq 0x556b0
movq %rax, %r15
leaq 0x5c19a(%rip), %rsi     # 0x111b6d
leaq 0x8(%rsp), %rdi
callq 0x579f0
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x56490
xorl %eax, %eax
movq %rax, 0x40(%rsp)
movq %rax, 0x38(%rsp)
leaq 0x5d217(%rip), %rsi     # 0x112c1c
leaq 0x48(%rsp), %rdi
callq 0x579f0
leaq 0x60(%rsp), %rdi
leaq 0x48(%rsp), %rcx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x56490
leaq 0x60(%rsp), %rdi
callq 0x568c0
leaq 0x20(%rsp), %rsi
leaq 0x40(%rsp), %rdx
leaq 0x38(%rsp), %rcx
movq %r15, %rdi
movl %eax, %r8d
callq 0x56d20
movq %r15, 0x80(%rbx)
leaq 0x60(%rsp), %rdi
callq 0x59200
leaq 0x48(%rsp), %rdi
callq 0x59200
leaq 0x20(%rsp), %rdi
callq 0x59200
leaq 0x8(%rsp), %rdi
callq 0x59200
leaq 0x5d084(%rip), %rsi     # 0x112b02
leaq 0x8(%rsp), %rdi
callq 0x579f0
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x56490
leaq 0x5cd3e(%rip), %rsi     # 0x1127e2
leaq 0x20(%rsp), %rdi
callq 0x57ef0
movl %eax, %ebp
leaq 0x20(%rsp), %rdi
callq 0x59200
leaq 0x8(%rsp), %rdi
callq 0x59200
testb %bpl, %bpl
je 0xb5ad6
movq 0x80(%rbx), %rdi
movq (%rdi), %rax
callq *0x70(%rax)
leaq 0x5d149(%rip), %rsi     # 0x112c26
leaq 0x8(%rsp), %rdi
callq 0x579f0
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x56490
leaq 0x5d128(%rip), %rsi     # 0x112c2b
leaq 0x20(%rsp), %rdi
callq 0x57ef0
movl %eax, %ebp
leaq 0x20(%rsp), %rdi
callq 0x59200
leaq 0x8(%rsp), %rdi
callq 0x59200
testb %bpl, %bpl
je 0xb5b33
movq 0x80(%rbx), %rax
orl $0x2, 0x30(%rax)
addq $0x78, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0xb5b8e
movq %rax, %r14
jmp 0xb5bc0
movq %rax, %r14
jmp 0xb5b98
movq %rax, %r14
jmp 0xb5bca
movq %rax, %r14
jmp 0xb5ba2
movq %rax, %r14
jmp 0xb5bd4
movq %rax, %r14
jmp 0xb5bac
movq %rax, %r14
jmp 0xb5bde
jmp 0xb5bed
jmp 0xb5bfc
jmp 0xb5c0d
jmp 0xb5bed
jmp 0xb5bfc
jmp 0xb5c0d
movq %rax, %r14
leaq 0x60(%rsp), %rdi
callq 0x59200
leaq 0x48(%rsp), %rdi
callq 0x59200
leaq 0x20(%rsp), %rdi
callq 0x59200
leaq 0x8(%rsp), %rdi
callq 0x59200
movl $0x630, %esi            # imm = 0x630
jmp 0xb5be3
movq %rax, %r14
leaq 0x60(%rsp), %rdi
callq 0x59200
leaq 0x48(%rsp), %rdi
callq 0x59200
leaq 0x20(%rsp), %rdi
callq 0x59200
leaq 0x8(%rsp), %rdi
callq 0x59200
movl $0x5f0, %esi            # imm = 0x5F0
movq %r15, %rdi
callq 0x55480
jmp 0xb5c10
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x59200
jmp 0xb5bff
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x59200
jmp 0xb5c10
jmp 0xb5c0d
movq %rax, %r14
movq %rbx, %rdi
callq 0x59020
movq %r14, %rdi
callq 0x57090