// File: Alcaro[P]bridges/arlib/bmlparse.cpp
// Function: bml_parse_inline_node(cstring&, cstring&, bool&, cstring&)
static bool bml_parse_inline_node(cstring& data, cstring& node, bool& hasvalue, cstring& value)
{
	size_t nodestart = bml_size_white(data);
	if (nodestart == data.length())
	{
		data = "";
		value = "";
		return false;
	}
	
	size_t nodelen = nodestart;
	while (nodelen < data.length() && (isalnum(data[nodelen]) || data[nodelen]=='-' || data[nodelen]=='.')) nodelen++;
	if (nodestart == nodelen)
	{
		value = "Invalid node name";
		while (nodelen < data.length() && data[nodelen]!='\n') nodelen++;
		data = data.substr(nodelen, ~0);
		return false;
	}
	node = cut(data, nodestart, nodelen, 0);
	if (!data)
	{
		hasvalue = false;
		return true;
	}
	switch (data[0])
	{
		case '\t':
		case ' ':
		{
			hasvalue = false;
			return true;
		}
		case ':':
		{
			hasvalue = true;
			size_t valstart = 1;
			while (valstart < data.length() && (data[valstart]==' ' || data[valstart]=='\t')) valstart++;
			value = data.substr(valstart, ~0);
			data = "";
			return true;
		}
		case '=':
		{
			if (data.length() >= 2 && data[1]=='"')
			{
				hasvalue = true;
				size_t valend = 2;
				while (valend < data.length() && data[valend]!='"') valend++;
				if (valend == data.length() || data[valend]!='"')
					goto bad_quote;
				if (valend+1 < data.length() && data[valend+1]!=' ' && data[valend+1]!='\t')
					goto bad_quote;
				value = cut(data, 2, valend, 1);
				return true;
			}
			else
			{
				hasvalue = true;
				size_t valend = 0;
				while (valend < data.length() && data[valend]!=' ' && data[valend]!='"') valend++;
				if (valend < data.length() && data[valend]=='"')
					goto bad_quote;
				value = cut(data, 1, valend, 0);
				return true;
			}
		}
		default:
			value = "Invalid node suffix";
			return false;
	}
	if (false)
	{
	bad_quote:
		data = "";
		value = "Broken quoted value";
		return false;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2a0, %rsp            # imm = 0x2A0
movq %rdi, -0x150(%rbp)
movq %rsi, -0x158(%rbp)
movq %rdx, -0x160(%rbp)
movq %rcx, -0x168(%rbp)
movq -0x150(%rbp), %rdi
callq 0x9300
movq %rax, -0x170(%rbp)
movq -0x170(%rbp), %rax
movq %rax, -0x1f0(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x1e8(%rbp)
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
cmpl $0x0, %eax
jl 0x8804
movq -0x1e8(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
xorl $0xf, %eax
movzbl %al, %eax
movl %eax, -0xa4(%rbp)
jmp 0x8814
movq -0x1e8(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0xa4(%rbp)
movq -0x1f0(%rbp), %rax
movl -0xa4(%rbp), %ecx
cmpq %rcx, %rax
jne 0x8858
movq -0x150(%rbp), %rdi
leaq 0x5dc15(%rip), %rsi     # 0x66449
callq 0xa190
movq -0x168(%rbp), %rdi
leaq 0x5dc02(%rip), %rsi     # 0x66449
callq 0xa190
movb $0x0, -0x141(%rbp)
jmp 0x92e8
movq -0x170(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x200(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x1f8(%rbp)
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
cmpl $0x0, %eax
jl 0x88d0
movq -0x1f8(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
xorl $0xf, %eax
movzbl %al, %eax
movl %eax, -0xb4(%rbp)
jmp 0x88e0
movq -0x1f8(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0xb4(%rbp)
movq -0x200(%rbp), %rcx
movl -0xb4(%rbp), %eax
movl %eax, %edx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x201(%rbp)
jae 0x8981
movq -0x150(%rbp), %rdi
movq -0x178(%rbp), %rax
movl %eax, %esi
callq 0xa1c0
movzbl %al, %edi
callq 0x9680
movb %al, %cl
movb $0x1, %al
testb $0x1, %cl
movb %al, -0x202(%rbp)
jne 0x8975
movq -0x150(%rbp), %rdi
movq -0x178(%rbp), %rax
movl %eax, %esi
callq 0xa1c0
movsbl %al, %ecx
movb $0x1, %al
cmpl $0x2d, %ecx
movb %al, -0x202(%rbp)
je 0x8975
movq -0x150(%rbp), %rdi
movq -0x178(%rbp), %rax
movl %eax, %esi
callq 0xa1c0
movsbl %al, %eax
cmpl $0x2e, %eax
sete %al
movb %al, -0x202(%rbp)
movb -0x202(%rbp), %al
movb %al, -0x201(%rbp)
movb -0x201(%rbp), %al
testb $0x1, %al
jne 0x898d
jmp 0x89a4
movq -0x178(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x178(%rbp)
jmp 0x8866
movq -0x170(%rbp), %rax
cmpq -0x178(%rbp), %rax
jne 0x8af8
movq -0x168(%rbp), %rdi
leaq 0x5a8fd(%rip), %rsi     # 0x632c3
callq 0xa190
movq -0x178(%rbp), %rax
movq %rax, -0x218(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x210(%rbp)
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
cmpl $0x0, %eax
jl 0x8a35
movq -0x210(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
xorl $0xf, %eax
movzbl %al, %eax
movl %eax, -0xc4(%rbp)
jmp 0x8a45
movq -0x210(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0xc4(%rbp)
movq -0x218(%rbp), %rcx
movl -0xc4(%rbp), %eax
movl %eax, %edx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x219(%rbp)
jae 0x8a85
movq -0x150(%rbp), %rdi
movq -0x178(%rbp), %rax
movl %eax, %esi
callq 0xa1c0
movsbl %al, %eax
cmpl $0xa, %eax
setne %al
movb %al, -0x219(%rbp)
movb -0x219(%rbp), %al
testb $0x1, %al
jne 0x8a91
jmp 0x8aa8
movq -0x178(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x178(%rbp)
jmp 0x89cb
movq -0x150(%rbp), %rdi
movq -0x178(%rbp), %rax
movl %eax, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x9f90
movq %rax, -0x188(%rbp)
movq %rdx, -0x180(%rbp)
movq -0x150(%rbp), %rax
movq -0x188(%rbp), %rcx
movq %rcx, (%rax)
movq -0x180(%rbp), %rcx
movq %rcx, 0x8(%rax)
movb $0x0, -0x141(%rbp)
jmp 0x92e8
movq -0x150(%rbp), %rdi
movq -0x170(%rbp), %rax
movl %eax, %esi
movq -0x178(%rbp), %rax
movl %eax, %edx
xorl %ecx, %ecx
callq 0x96b0
movq %rax, -0x198(%rbp)
movq %rdx, -0x190(%rbp)
movq -0x158(%rbp), %rax
movq -0x198(%rbp), %rcx
movq %rcx, (%rax)
movq -0x190(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x150(%rbp), %rdi
callq 0x9a10
testb $0x1, %al
jne 0x8b68
movq -0x160(%rbp), %rax
movb $0x0, (%rax)
movb $0x1, -0x141(%rbp)
jmp 0x92e8
movq -0x150(%rbp), %rdi
xorl %esi, %esi
callq 0xa1c0
movsbl %al, %eax
movl %eax, -0x220(%rbp)
subl $0x9, %eax
je 0x8bb4
jmp 0x8b86
movl -0x220(%rbp), %eax
subl $0x20, %eax
je 0x8bb4
jmp 0x8b93
movl -0x220(%rbp), %eax
subl $0x3a, %eax
je 0x8bca
jmp 0x8ba0
movl -0x220(%rbp), %eax
subl $0x3d, %eax
je 0x8d50
jmp 0x929f
movq -0x160(%rbp), %rax
movb $0x0, (%rax)
movb $0x1, -0x141(%rbp)
jmp 0x92e8
movq -0x160(%rbp), %rax
movb $0x1, (%rax)
movq $0x1, -0x1a0(%rbp)
movq -0x1a0(%rbp), %rax
movq %rax, -0x230(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x228(%rbp)
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
cmpl $0x0, %eax
jl 0x8c49
movq -0x228(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
xorl $0xf, %eax
movzbl %al, %eax
movl %eax, -0xd4(%rbp)
jmp 0x8c59
movq -0x228(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0xd4(%rbp)
movq -0x230(%rbp), %rcx
movl -0xd4(%rbp), %eax
movl %eax, %edx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x231(%rbp)
jae 0x8cca
movq -0x150(%rbp), %rdi
movq -0x1a0(%rbp), %rax
movl %eax, %esi
callq 0xa1c0
movsbl %al, %ecx
movb $0x1, %al
cmpl $0x20, %ecx
movb %al, -0x232(%rbp)
je 0x8cbe
movq -0x150(%rbp), %rdi
movq -0x1a0(%rbp), %rax
movl %eax, %esi
callq 0xa1c0
movsbl %al, %eax
cmpl $0x9, %eax
sete %al
movb %al, -0x232(%rbp)
movb -0x232(%rbp), %al
movb %al, -0x231(%rbp)
movb -0x231(%rbp), %al
testb $0x1, %al
jne 0x8cd6
jmp 0x8ced
movq -0x1a0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x1a0(%rbp)
jmp 0x8bdf
movq -0x150(%rbp), %rdi
movq -0x1a0(%rbp), %rax
movl %eax, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x9f90
movq %rax, -0x1b0(%rbp)
movq %rdx, -0x1a8(%rbp)
movq -0x168(%rbp), %rax
movq -0x1b0(%rbp), %rcx
movq %rcx, (%rax)
movq -0x1a8(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x150(%rbp), %rdi
leaq 0x5d70a(%rip), %rsi     # 0x66449
callq 0xa190
movb $0x1, -0x141(%rbp)
jmp 0x92e8
movq -0x150(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x240(%rbp)
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
cmpl $0x0, %eax
jl 0x8da6
movq -0x240(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
xorl $0xf, %eax
movzbl %al, %eax
movl %eax, -0xe4(%rbp)
jmp 0x8db6
movq -0x240(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0xe4(%rbp)
cmpl $0x2, -0xe4(%rbp)
jb 0x909a
movq -0x150(%rbp), %rdi
movl $0x1, %esi
callq 0xa1c0
movsbl %al, %eax
cmpl $0x22, %eax
jne 0x909a
movq -0x160(%rbp), %rax
movb $0x1, (%rax)
movq $0x2, -0x1b8(%rbp)
movq -0x1b8(%rbp), %rax
movq %rax, -0x250(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x248(%rbp)
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
cmpl $0x0, %eax
jl 0x8e59
movq -0x248(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
xorl $0xf, %eax
movzbl %al, %eax
movl %eax, -0xf4(%rbp)
jmp 0x8e69
movq -0x248(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0xf4(%rbp)
movq -0x250(%rbp), %rcx
movl -0xf4(%rbp), %eax
movl %eax, %edx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x251(%rbp)
jae 0x8ea9
movq -0x150(%rbp), %rdi
movq -0x1b8(%rbp), %rax
movl %eax, %esi
callq 0xa1c0
movsbl %al, %eax
cmpl $0x22, %eax
setne %al
movb %al, -0x251(%rbp)
movb -0x251(%rbp), %al
testb $0x1, %al
jne 0x8eb5
jmp 0x8ecc
movq -0x1b8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x1b8(%rbp)
jmp 0x8df5
movq -0x1b8(%rbp), %rax
movq %rax, -0x268(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0x260(%rbp)
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
cmpl $0x0, %eax
jl 0x8f30
movq -0x260(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
xorl $0xf, %eax
movzbl %al, %eax
movl %eax, -0x104(%rbp)
jmp 0x8f40
movq -0x260(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x104(%rbp)
movq -0x268(%rbp), %rax
movl -0x104(%rbp), %ecx
cmpq %rcx, %rax
je 0x8f6f
movq -0x150(%rbp), %rdi
movq -0x1b8(%rbp), %rax
movl %eax, %esi
callq 0xa1c0
movsbl %al, %eax
cmpl $0x22, %eax
je 0x8f74
jmp 0x92bb
movq -0x1b8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x278(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x270(%rbp)
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
cmpl $0x0, %eax
jl 0x8fdc
movq -0x270(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
xorl $0xf, %eax
movzbl %al, %eax
movl %eax, -0x114(%rbp)
jmp 0x8fec
movq -0x270(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x114(%rbp)
movq -0x278(%rbp), %rax
movl -0x114(%rbp), %ecx
cmpq %rcx, %rax
jae 0x9045
movq -0x150(%rbp), %rdi
movq -0x1b8(%rbp), %rax
addq $0x1, %rax
movl %eax, %esi
callq 0xa1c0
movsbl %al, %eax
cmpl $0x20, %eax
je 0x9045
movq -0x150(%rbp), %rdi
movq -0x1b8(%rbp), %rax
addq $0x1, %rax
movl %eax, %esi
callq 0xa1c0
movsbl %al, %eax
cmpl $0x9, %eax
je 0x9045
jmp 0x92bb
movq -0x150(%rbp), %rdi
movq -0x1b8(%rbp), %rax
movl %eax, %edx
movl $0x2, %esi
movl $0x1, %ecx
callq 0x96b0
movq %rax, -0x1c8(%rbp)
movq %rdx, -0x1c0(%rbp)
movq -0x168(%rbp), %rax
movq -0x1c8(%rbp), %rcx
movq %rcx, (%rax)
movq -0x1c0(%rbp), %rcx
movq %rcx, 0x8(%rax)
movb $0x1, -0x141(%rbp)
jmp 0x92e8
movq -0x160(%rbp), %rax
movb $0x1, (%rax)
movq $0x0, -0x1d0(%rbp)
movq -0x1d0(%rbp), %rax
movq %rax, -0x288(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x280(%rbp)
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
cmpl $0x0, %eax
jl 0x9113
movq -0x280(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
xorl $0xf, %eax
movzbl %al, %eax
movl %eax, -0x124(%rbp)
jmp 0x9123
movq -0x280(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x124(%rbp)
movq -0x288(%rbp), %rcx
movl -0x124(%rbp), %eax
movl %eax, %edx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x289(%rbp)
jae 0x9188
movq -0x150(%rbp), %rdi
movq -0x1d0(%rbp), %rax
movl %eax, %esi
callq 0xa1c0
movsbl %al, %ecx
xorl %eax, %eax
cmpl $0x20, %ecx
movb %al, -0x289(%rbp)
je 0x9188
movq -0x150(%rbp), %rdi
movq -0x1d0(%rbp), %rax
movl %eax, %esi
callq 0xa1c0
movsbl %al, %eax
cmpl $0x22, %eax
setne %al
movb %al, -0x289(%rbp)
movb -0x289(%rbp), %al
testb $0x1, %al
jne 0x9194
jmp 0x91ab
movq -0x1d0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x1d0(%rbp)
jmp 0x90af
movq -0x1d0(%rbp), %rax
movq %rax, -0x2a0(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x140(%rbp)
movq -0x140(%rbp), %rax
movq %rax, -0x298(%rbp)
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
cmpl $0x0, %eax
jl 0x920f
movq -0x298(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
xorl $0xf, %eax
movzbl %al, %eax
movl %eax, -0x134(%rbp)
jmp 0x921f
movq -0x298(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x134(%rbp)
movq -0x2a0(%rbp), %rax
movl -0x134(%rbp), %ecx
cmpq %rcx, %rax
jae 0x9250
movq -0x150(%rbp), %rdi
movq -0x1d0(%rbp), %rax
movl %eax, %esi
callq 0xa1c0
movsbl %al, %eax
cmpl $0x22, %eax
jne 0x9250
jmp 0x92bb
movq -0x150(%rbp), %rdi
movq -0x1d0(%rbp), %rax
movl %eax, %edx
movl $0x1, %esi
xorl %ecx, %ecx
callq 0x96b0
movq %rax, -0x1e0(%rbp)
movq %rdx, -0x1d8(%rbp)
movq -0x168(%rbp), %rax
movq -0x1e0(%rbp), %rcx
movq %rcx, (%rax)
movq -0x1d8(%rbp), %rcx
movq %rcx, 0x8(%rax)
movb $0x1, -0x141(%rbp)
jmp 0x92e8
movq -0x168(%rbp), %rdi
leaq 0x5a028(%rip), %rsi     # 0x632d5
callq 0xa190
movb $0x0, -0x141(%rbp)
jmp 0x92e8
movq -0x150(%rbp), %rdi
leaq 0x5d180(%rip), %rsi     # 0x66449
callq 0xa190
movq -0x168(%rbp), %rdi
leaq 0x5a00d(%rip), %rsi     # 0x632e9
callq 0xa190
movb $0x0, -0x141(%rbp)
movb -0x141(%rbp), %al
andb $0x1, %al
addq $0x2a0, %rsp            # imm = 0x2A0
popq %rbp
retq
nopl (%rax)