// File: Alcaro[P]bridges/arlib/bmlwrite.cpp
// Function: bmlwriter::node(cstring, cstring, bmlwriter::mode, bool)
void bmlwriter::node(cstring name, cstring val, mode m, bool enter)
{
	m = type(val, m);
	bool inlined = (m <= icol && m_caninline && !enter);
	if (m_data)
	{
		if (inlined) m_data += " ";
		else m_data += "\n"+indent();
	}
	
	m_indent++;
	
	if ((m==anon || m==eq || m==quote) && enter) m_caninline = true;
	if (m==icol || m==col || m==multiline) m_caninline = false;
	//for other modes, inlinability isn't affected
	
	switch (m)
	{
		case ianon:
		case anon:
			m_data += name;
			break;
		case ieq:
		case eq:
			m_data += name+"="+val;
			break;
		case iquote:
		case quote:
			m_data += name+"=\""+val+"\"";
			break;
		case icol:
		case col:
			m_data += name+": "+val;
			break;
		case multiline:
			string prefix = "\n"+indent()+":";
			m_data += name + prefix + val.replace("\n", prefix);
			break;
	}
	if (!enter) m_indent--;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x280, %rsp            # imm = 0x280
movb 0x10(%rbp), %al
movq %rsi, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
andb $0x1, %al
movb %al, -0x2d(%rbp)
movq -0x28(%rbp), %rdi
movq %rdi, -0x278(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movl -0x2c(%rbp), %ecx
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0xaac0
movl %eax, -0x2c(%rbp)
xorl %eax, %eax
cmpl $0x3, -0x2c(%rbp)
movb %al, -0x269(%rbp)
jg 0xa4f7
movq -0x278(%rbp), %rcx
xorl %eax, %eax
testb $0x1, 0x14(%rcx)
movb %al, -0x269(%rbp)
je 0xa4f7
movb -0x2d(%rbp), %al
xorb $-0x1, %al
movb %al, -0x269(%rbp)
movq -0x278(%rbp), %rdi
movb -0x269(%rbp), %al
andb $0x1, %al
movb %al, -0x41(%rbp)
callq 0x5720
testb $0x1, %al
jne 0xa517
jmp 0xa5ab
testb $0x1, -0x41(%rbp)
je 0xa532
movq -0x278(%rbp), %rdi
leaq 0x595a9(%rip), %rsi     # 0x63ad4
callq 0x5ce0
jmp 0xa5a9
movq -0x278(%rbp), %rsi
leaq -0x88(%rbp), %rdi
callq 0xb6e0
movq -0x88(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x78(%rbp), %rdx
movq -0x70(%rbp), %rcx
leaq -0x68(%rbp), %rdi
leaq 0x5937d(%rip), %rsi     # 0x638e8
callq 0x57e0
movq -0x278(%rbp), %rdi
movq -0x68(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
callq 0x5e00
leaq -0x68(%rbp), %rdi
callq 0x5870
leaq -0x88(%rbp), %rdi
callq 0x5870
jmp 0xa5ab
movq -0x278(%rbp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x10(%rax)
cmpl $0x4, -0x2c(%rbp)
je 0xa5cd
cmpl $0x5, -0x2c(%rbp)
je 0xa5cd
cmpl $0x6, -0x2c(%rbp)
jne 0xa5de
testb $0x1, -0x2d(%rbp)
je 0xa5de
movq -0x278(%rbp), %rax
movb $0x1, 0x14(%rax)
cmpl $0x3, -0x2c(%rbp)
je 0xa5f0
cmpl $0x7, -0x2c(%rbp)
je 0xa5f0
cmpl $0x8, -0x2c(%rbp)
jne 0xa5fb
movq -0x278(%rbp), %rax
movb $0x0, 0x14(%rax)
movl -0x2c(%rbp), %eax
movq %rax, -0x280(%rbp)
subq $0x8, %rax
ja 0xaa9e
movq -0x280(%rbp), %rax
leaq 0x58ce3(%rip), %rcx     # 0x63300
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x278(%rbp), %rdi
movq -0x10(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x98(%rbp), %rsi
movq -0x90(%rbp), %rdx
callq 0x5e00
jmp 0xaa9e
movq -0x10(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0xd8(%rbp), %rsi
movq -0xd0(%rbp), %rdx
leaq -0xc8(%rbp), %rdi
leaq 0x58c97(%rip), %rcx     # 0x63324
callq 0xb7d0
movq -0x20(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0xe8(%rbp), %rdx
movq -0xe0(%rbp), %rcx
leaq -0xb8(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0xb770
movq -0x278(%rbp), %rdi
movq -0xb8(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0xa8(%rbp), %rsi
movq -0xa0(%rbp), %rdx
callq 0x5e00
leaq -0xb8(%rbp), %rdi
callq 0x5870
leaq -0xc8(%rbp), %rdi
callq 0x5870
jmp 0xaa9e
movq -0x10(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x138(%rbp), %rsi
movq -0x130(%rbp), %rdx
leaq -0x128(%rbp), %rdi
leaq 0x58bd8(%rip), %rcx     # 0x63326
callq 0xb7d0
movq -0x20(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x140(%rbp)
movq -0x148(%rbp), %rdx
movq -0x140(%rbp), %rcx
leaq -0x118(%rbp), %rdi
leaq -0x128(%rbp), %rsi
callq 0xb770
leaq -0x108(%rbp), %rdi
leaq -0x118(%rbp), %rsi
leaq 0x58b88(%rip), %rdx     # 0x63327
callq 0x5790
movq -0x278(%rbp), %rdi
movq -0x108(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0xf8(%rbp), %rsi
movq -0xf0(%rbp), %rdx
callq 0x5e00
leaq -0x108(%rbp), %rdi
callq 0x5870
leaq -0x118(%rbp), %rdi
callq 0x5870
leaq -0x128(%rbp), %rdi
callq 0x5870
jmp 0xaa9e
movq -0x10(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x188(%rbp), %rsi
movq -0x180(%rbp), %rdx
leaq -0x178(%rbp), %rdi
leaq 0x58af4(%rip), %rcx     # 0x63329
callq 0xb7d0
movq -0x20(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x190(%rbp)
movq -0x198(%rbp), %rdx
movq -0x190(%rbp), %rcx
leaq -0x168(%rbp), %rdi
leaq -0x178(%rbp), %rsi
callq 0xb770
movq -0x278(%rbp), %rdi
movq -0x168(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0x150(%rbp)
movq -0x158(%rbp), %rsi
movq -0x150(%rbp), %rdx
callq 0x5e00
leaq -0x168(%rbp), %rdi
callq 0x5870
leaq -0x178(%rbp), %rdi
callq 0x5870
jmp 0xaa9e
movq -0x278(%rbp), %rsi
leaq -0x1d8(%rbp), %rdi
callq 0xb6e0
movq -0x1d8(%rbp), %rax
movq %rax, -0x1c8(%rbp)
movq -0x1d0(%rbp), %rax
movq %rax, -0x1c0(%rbp)
movq -0x1c8(%rbp), %rdx
movq -0x1c0(%rbp), %rcx
leaq -0x1b8(%rbp), %rdi
leaq 0x58fd9(%rip), %rsi     # 0x638e8
callq 0x57e0
leaq -0x1a8(%rbp), %rdi
leaq -0x1b8(%rbp), %rsi
leaq 0x58a03(%rip), %rdx     # 0x6332c
callq 0x5790
leaq -0x1b8(%rbp), %rdi
callq 0x5870
leaq -0x1d8(%rbp), %rdi
callq 0x5870
movq -0x10(%rbp), %rax
movq %rax, -0x218(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x210(%rbp)
movq -0x1a8(%rbp), %rax
movq %rax, -0x228(%rbp)
movq -0x1a0(%rbp), %rax
movq %rax, -0x220(%rbp)
movq -0x218(%rbp), %rsi
movq -0x210(%rbp), %rdx
movq -0x228(%rbp), %rcx
movq -0x220(%rbp), %r8
leaq -0x208(%rbp), %rdi
callq 0xb860
leaq -0x258(%rbp), %rdi
leaq 0x58f3a(%rip), %rsi     # 0x638e8
callq 0x58c0
movq -0x1a8(%rbp), %rax
movq %rax, -0x268(%rbp)
movq -0x1a0(%rbp), %rax
movq %rax, -0x260(%rbp)
movq -0x258(%rbp), %rdx
movq -0x250(%rbp), %rcx
movq -0x268(%rbp), %r8
movq -0x260(%rbp), %r9
leaq -0x248(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x39540
movq -0x248(%rbp), %rax
movq %rax, -0x238(%rbp)
movq -0x240(%rbp), %rax
movq %rax, -0x230(%rbp)
movq -0x238(%rbp), %rdx
movq -0x230(%rbp), %rcx
leaq -0x1f8(%rbp), %rdi
leaq -0x208(%rbp), %rsi
callq 0xb770
movq -0x278(%rbp), %rdi
movq -0x1f8(%rbp), %rax
movq %rax, -0x1e8(%rbp)
movq -0x1f0(%rbp), %rax
movq %rax, -0x1e0(%rbp)
movq -0x1e8(%rbp), %rsi
movq -0x1e0(%rbp), %rdx
callq 0x5e00
leaq -0x1f8(%rbp), %rdi
callq 0x5870
leaq -0x248(%rbp), %rdi
callq 0x5870
leaq -0x208(%rbp), %rdi
callq 0x5870
leaq -0x1a8(%rbp), %rdi
callq 0x5870
testb $0x1, -0x2d(%rbp)
jne 0xaab4
movq -0x278(%rbp), %rax
movl 0x10(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x10(%rax)
addq $0x280, %rsp            # imm = 0x280
popq %rbp
retq
nopl (%rax)