// File: /workspace/github_c_makefile_star2_O1/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 0xb3eac(%rip), %rax     # 0x16a7a0
movq %rax, (%rbx)
movq $0x0, 0x80(%rbx)
testq %r14, %r14
je 0xb6b63
leaq 0x5d13b(%rip), %rsi     # 0x113a4d
leaq 0x8(%rsp), %rdi
callq 0x579f0
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x56490
leaq 0x5cce5(%rip), %rsi     # 0x11361d
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 0xb69ef
movl $0x5f0, %edi            # imm = 0x5F0
callq 0x556b0
movq %rax, %r15
leaq 0x5c054(%rip), %rsi     # 0x1129c9
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 0x5d0b0(%rip), %rsi     # 0x113a57
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 0xb6a78
movl $0x630, %edi            # imm = 0x630
callq 0x556b0
movq %rax, %r15
leaq 0x5bfc6(%rip), %rsi     # 0x1129c9
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 0x5d022(%rip), %rsi     # 0x113a57
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 0x5ce8f(%rip), %rsi     # 0x11393d
leaq 0x8(%rsp), %rdi
callq 0x579f0
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x56490
leaq 0x5cb49(%rip), %rsi     # 0x11361d
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 0xb6b06
movq 0x80(%rbx), %rdi
movq (%rdi), %rax
callq *0x70(%rax)
leaq 0x5cf54(%rip), %rsi     # 0x113a61
leaq 0x8(%rsp), %rdi
callq 0x579f0
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rcx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x56490
leaq 0x5cf33(%rip), %rsi     # 0x113a66
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 0xb6b63
movq 0x80(%rbx), %rax
orl $0x2, 0x30(%rax)
addq $0x78, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0xb6bbe
movq %rax, %r14
jmp 0xb6bf0
movq %rax, %r14
jmp 0xb6bc8
movq %rax, %r14
jmp 0xb6bfa
movq %rax, %r14
jmp 0xb6bd2
movq %rax, %r14
jmp 0xb6c04
movq %rax, %r14
jmp 0xb6bdc
movq %rax, %r14
jmp 0xb6c0e
jmp 0xb6c1d
jmp 0xb6c2c
jmp 0xb6c3d
jmp 0xb6c1d
jmp 0xb6c2c
jmp 0xb6c3d
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 0xb6c13
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 0xb6c40
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x59200
jmp 0xb6c2f
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x59200
jmp 0xb6c40
jmp 0xb6c3d
movq %rax, %r14
movq %rbx, %rdi
callq 0x59020
movq %r14, %rdi
callq 0x57090