// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x220, %rsp            # imm = 0x220
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x1a8(%rbp)
movq -0x10(%rbp), %rsi
callq 0x5c180
movq -0x1a8(%rbp), %rax
leaq 0xf3e6b(%rip), %rcx     # 0x2066b0
addq $0x10, %rcx
movq %rcx, (%rax)
movq $0x0, 0x80(%rax)
cmpq $0x0, -0x10(%rbp)
je 0x112e9e
movq -0x10(%rbp), %rax
movq %rax, -0x1b0(%rbp)
leaq 0x93c99(%rip), %rsi     # 0x1a650d
leaq -0x40(%rbp), %rdi
callq 0x5c1f0
jmp 0x11287f
movq -0x1b0(%rbp), %rdx
movq -0x1a8(%rbp), %rsi
leaq -0x28(%rbp), %rdi
leaq -0x40(%rbp), %rcx
callq 0x5a8d0
jmp 0x11289c
leaq 0x9383a(%rip), %rsi     # 0x1a60dd
leaq -0x28(%rbp), %rdi
callq 0x5c7f0
movb %al, -0x1b1(%rbp)
jmp 0x1128b4
leaq -0x28(%rbp), %rdi
callq 0x5df00
leaq -0x40(%rbp), %rdi
callq 0x5df00
movb -0x1b1(%rbp), %al
testb $0x1, %al
jne 0x1128d5
jmp 0x112aeb
movl $0x5f0, %edi            # imm = 0x5F0
callq 0x59820
movq %rax, -0x1c0(%rbp)
jmp 0x1128e8
movb $0x1, -0xc1(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x1c8(%rbp)
leaq 0x930c8(%rip), %rsi     # 0x1a59c9
leaq -0x80(%rbp), %rdi
callq 0x5c1f0
jmp 0x11290c
movq -0x1c8(%rbp), %rdx
movq -0x1a8(%rbp), %rsi
leaq -0x68(%rbp), %rdi
leaq -0x80(%rbp), %rcx
callq 0x5a8d0
jmp 0x112929
leaq -0x88(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x5c2c0
jmp 0x11293b
leaq -0x90(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x59260
jmp 0x11294d
movq -0x10(%rbp), %rax
movq %rax, -0x1d0(%rbp)
leaq 0x93bb8(%rip), %rsi     # 0x1a6517
leaq -0xc0(%rbp), %rdi
callq 0x5c1f0
jmp 0x11296d
movq -0x1d0(%rbp), %rdx
movq -0x1a8(%rbp), %rsi
leaq -0xa8(%rbp), %rdi
leaq -0xc0(%rbp), %rcx
callq 0x5a8d0
jmp 0x112990
leaq -0xa8(%rbp), %rdi
callq 0x5adc0
movq %rax, -0x1d8(%rbp)
jmp 0x1129a5
movq -0x1c0(%rbp), %rdi
movq -0x1d8(%rbp), %rax
movl %eax, %r8d
leaq -0x68(%rbp), %rsi
leaq -0x88(%rbp), %rdx
leaq -0x90(%rbp), %rcx
callq 0x5cc20
jmp 0x1129cf
movq -0x1a8(%rbp), %rax
movq -0x1c0(%rbp), %rcx
movb $0x0, -0xc1(%rbp)
movq %rcx, 0x80(%rax)
leaq -0xa8(%rbp), %rdi
callq 0x5df00
leaq -0xc0(%rbp), %rdi
callq 0x5df00
leaq -0x68(%rbp), %rdi
callq 0x5df00
leaq -0x80(%rbp), %rdi
callq 0x5df00
jmp 0x112cd7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x112ea7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x112a4e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x5df00
leaq -0x40(%rbp), %rdi
callq 0x5df00
jmp 0x112ea7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x112aca
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x112ac1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x112ab8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x112aac
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0xa8(%rbp), %rdi
callq 0x5df00
leaq -0xc0(%rbp), %rdi
callq 0x5df00
leaq -0x68(%rbp), %rdi
callq 0x5df00
leaq -0x80(%rbp), %rdi
callq 0x5df00
testb $0x1, -0xc1(%rbp)
jne 0x112ad5
jmp 0x112ae6
movq -0x1c0(%rbp), %rdi
movl $0x5f0, %esi            # imm = 0x5F0
callq 0x595b0
jmp 0x112ea7
movl $0x630, %edi            # imm = 0x630
callq 0x59820
movq %rax, -0x1e0(%rbp)
jmp 0x112afe
movb $0x1, -0x139(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x1e8(%rbp)
leaq 0x92eb2(%rip), %rsi     # 0x1a59c9
leaq -0xf8(%rbp), %rdi
callq 0x5c1f0
jmp 0x112b25
movq -0x1e8(%rbp), %rdx
movq -0x1a8(%rbp), %rsi
leaq -0xe0(%rbp), %rdi
leaq -0xf8(%rbp), %rcx
callq 0x5a8d0
jmp 0x112b48
leaq -0x100(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x5c2c0
jmp 0x112b5a
leaq -0x108(%rbp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x59260
jmp 0x112b6c
movq -0x10(%rbp), %rax
movq %rax, -0x1f0(%rbp)
leaq 0x93999(%rip), %rsi     # 0x1a6517
leaq -0x138(%rbp), %rdi
callq 0x5c1f0
jmp 0x112b8c
movq -0x1f0(%rbp), %rdx
movq -0x1a8(%rbp), %rsi
leaq -0x120(%rbp), %rdi
leaq -0x138(%rbp), %rcx
callq 0x5a8d0
jmp 0x112baf
leaq -0x120(%rbp), %rdi
callq 0x5adc0
movq %rax, -0x1f8(%rbp)
jmp 0x112bc4
movq -0x1e0(%rbp), %rdi
movq -0x1f8(%rbp), %rax
movl %eax, %r8d
leaq -0xe0(%rbp), %rsi
leaq -0x100(%rbp), %rdx
leaq -0x108(%rbp), %rcx
callq 0x5b2c0
jmp 0x112bf1
movq -0x1a8(%rbp), %rax
movq -0x1e0(%rbp), %rcx
movb $0x0, -0x139(%rbp)
movq %rcx, 0x80(%rax)
leaq -0x120(%rbp), %rdi
callq 0x5df00
leaq -0x138(%rbp), %rdi
callq 0x5df00
leaq -0xe0(%rbp), %rdi
callq 0x5df00
leaq -0xf8(%rbp), %rdi
callq 0x5df00
jmp 0x112cd7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x112cb6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x112caa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x112c9e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x112c92
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x120(%rbp), %rdi
callq 0x5df00
leaq -0x138(%rbp), %rdi
callq 0x5df00
leaq -0xe0(%rbp), %rdi
callq 0x5df00
leaq -0xf8(%rbp), %rdi
callq 0x5df00
testb $0x1, -0x139(%rbp)
jne 0x112cc1
jmp 0x112cd2
movq -0x1e0(%rbp), %rdi
movl $0x630, %esi            # imm = 0x630
callq 0x595b0
jmp 0x112ea7
movq -0x10(%rbp), %rax
movq %rax, -0x200(%rbp)
leaq 0x93714(%rip), %rsi     # 0x1a63fd
leaq -0x170(%rbp), %rdi
callq 0x5c1f0
jmp 0x112cf7
movq -0x200(%rbp), %rdx
movq -0x1a8(%rbp), %rsi
leaq -0x158(%rbp), %rdi
leaq -0x170(%rbp), %rcx
callq 0x5a8d0
jmp 0x112d1a
leaq 0x933bc(%rip), %rsi     # 0x1a60dd
leaq -0x158(%rbp), %rdi
callq 0x5c7f0
movb %al, -0x201(%rbp)
jmp 0x112d35
leaq -0x158(%rbp), %rdi
callq 0x5df00
leaq -0x170(%rbp), %rdi
callq 0x5df00
movb -0x201(%rbp), %al
testb $0x1, %al
jne 0x112d59
jmp 0x112dab
movq -0x1a8(%rbp), %rax
movq 0x80(%rax), %rdi
movq (%rdi), %rax
movq 0x70(%rax), %rax
callq *%rax
jmp 0x112d72
jmp 0x112dab
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x112d9a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x158(%rbp), %rdi
callq 0x5df00
leaq -0x170(%rbp), %rdi
callq 0x5df00
jmp 0x112ea7
movq -0x10(%rbp), %rax
movq %rax, -0x210(%rbp)
leaq 0x93764(%rip), %rsi     # 0x1a6521
leaq -0x1a0(%rbp), %rdi
callq 0x5c1f0
jmp 0x112dcb
movq -0x210(%rbp), %rdx
movq -0x1a8(%rbp), %rsi
leaq -0x188(%rbp), %rdi
leaq -0x1a0(%rbp), %rcx
callq 0x5a8d0
jmp 0x112dee
leaq 0x93731(%rip), %rsi     # 0x1a6526
leaq -0x188(%rbp), %rdi
callq 0x5c7f0
movb %al, -0x211(%rbp)
jmp 0x112e09
leaq -0x188(%rbp), %rdi
callq 0x5df00
leaq -0x1a0(%rbp), %rdi
callq 0x5df00
movb -0x211(%rbp), %al
testb $0x1, %al
jne 0x112e2d
jmp 0x112e9c
movq -0x1a8(%rbp), %rax
movq 0x80(%rax), %rdi
movq %rdi, -0x220(%rbp)
callq 0x5a120
movl %eax, -0x218(%rbp)
jmp 0x112e4f
movq -0x220(%rbp), %rdi
movl -0x218(%rbp), %esi
orl $0x2, %esi
callq 0x59730
jmp 0x112e66
jmp 0x112e9c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x112e8e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x188(%rbp), %rdi
callq 0x5df00
leaq -0x1a0(%rbp), %rdi
callq 0x5df00
jmp 0x112ea7
jmp 0x112e9e
addq $0x220, %rsp            # imm = 0x220
popq %rbp
retq
movq -0x1a8(%rbp), %rdi
callq 0x5dd00
movq -0x48(%rbp), %rdi
callq 0x5b6b0
nopl (%rax)