// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %r9d, %r12d
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %rcx, 0x20(%rsp)
movq %r8, 0x28(%rsp)
leal 0x4(%r12), %r13d
cmpl $0x4, %r9d
cmovgel %r9d, %r13d
movq %rcx, %rdi
movq %r8, %rsi
callq 0x6fa0
cmpl %eax, %r13d
cmovlel %eax, %r13d
movb 0x14(%rbx), %cl
leal -0x4(%r13), %ebp
testb $0x1, %cl
cmovel %r13d, %ebp
cmpl $0x8, %r13d
cmovel %r13d, %ebp
cmpl $0x4, %r12d
movb 0x90(%rsp), %r12b
cmovgel %r13d, %ebp
cmpl $0x3, %ebp
jg 0x67ef
movl %r12d, %eax
xorb $0x1, %al
andb %cl, %al
jmp 0x67f1
xorl %eax, %eax
movzbl 0xf(%rbx), %ecx
testb %cl, %cl
jns 0x67fe
movl 0x8(%rbx), %ecx
jmp 0x6801
xorl $0xf, %ecx
testl %ecx, %ecx
je 0x6906
testb %al, %al
je 0x6826
leaq 0x292e5(%rip), %rsi     # 0x2faf9
movl $0x1, %edx
movq %rbx, %rdi
callq 0x19466
jmp 0x6906
movq %rsp, %r12
movb $0xf, 0xf(%r12)
movb $0x0, (%r12)
movslq 0x10(%rbx), %rsi
addq %rsi, %rsi
movq %r12, %rdi
callq 0x191a4
cmpb $0x0, 0xf(%r12)
jns 0x684f
movq (%rsp), %r12
movslq 0x10(%rbx), %rdx
addq %rdx, %rdx
movq %r12, %rdi
movl $0x20, %esi
callq 0x3170
movq (%rsp), %rsi
movq 0x8(%rsp), %rax
leaq 0x10(%rsp), %r12
movw $0xa, (%r12)
movb $0xe, 0xf(%r12)
leaq 0x30(%rsp), %r13
movq %rsi, (%r13)
movq %rax, 0x8(%r13)
movzbl 0xf(%r13), %ecx
movq %rcx, %rdi
xorq $0xf, %rdi
testb %cl, %cl
movl %eax, %edx
cmovnsq %r13, %rsi
cmovnsq %rdi, %rdx
movq %r12, %rdi
callq 0x19466
movq (%r12), %rsi
movq 0x8(%r12), %rax
movq %rsi, (%r13)
movq %rax, 0x8(%r13)
movzbl 0xf(%r13), %ecx
movq %rcx, %rdi
xorq $0xf, %rdi
testb %cl, %cl
movl %eax, %edx
cmovnsq %r13, %rsi
cmovnsq %rdi, %rdx
movq %rbx, %rdi
callq 0x19466
cmpb $0x0, 0xf(%r12)
jns 0x68ee
movq 0x10(%rsp), %rdi
callq 0x3430
cmpb $0x0, 0xf(%rsp)
movb 0x90(%rsp), %r12b
jns 0x6906
movq (%rsp), %rdi
callq 0x3430
movslq 0x10(%rbx), %rsi
incq %rsi
movl %esi, 0x10(%rbx)
leal -0x4(%rbp), %eax
cmpl $0x3, %eax
setae %al
movl %r12d, %ecx
xorb $0x1, %cl
orb %al, %cl
jne 0x6927
movb $0x1, 0x14(%rbx)
cmpl $0x8, %ebp
ja 0x6b63
movl %ebp, %eax
leaq 0x289d7(%rip), %rcx     # 0x2f310
movslq (%rcx,%rax,4), %rdx
addq %rcx, %rdx
jmpq *%rdx
movb $0x0, 0x14(%rbx)
cmpl $0x8, %ebp
ja 0x6b63
leaq 0x289de(%rip), %rcx     # 0x2f334
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x30(%rsp), %rax
movq %r14, (%rax)
movq %r15, 0x8(%rax)
movzbl 0xf(%rax), %ecx
movq %rcx, %rsi
xorq $0xf, %rsi
testb %cl, %cl
movl %r15d, %edx
cmovnsq %rax, %r14
cmovnsq %rsi, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x19466
jmp 0x6b63
leaq 0x30(%rsp), %r12
movq %r14, (%r12)
movq %r15, 0x8(%r12)
movq %rsp, %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x19372
leaq 0x289a4(%rip), %rsi     # 0x2f35a
movl $0x2, %edx
movq %r14, %rdi
callq 0x19466
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rax
movq %rsi, (%r12)
movq %rax, 0x8(%r12)
movzbl 0xf(%r12), %ecx
movq %rcx, %rdi
xorq $0xf, %rdi
testb %cl, %cl
movl %eax, %edx
cmovnsq %r12, %rsi
cmovnsq %rdi, %rdx
movq %r14, %rdi
callq 0x19466
movups (%r14), %xmm0
leaq 0x10(%rsp), %r15
movaps %xmm0, (%r15)
movb $0xf, %al
movb %al, 0xf(%r14)
xorl %r13d, %r13d
movb %r13b, (%r14)
leaq 0x28944(%rip), %rsi     # 0x2f35b
movl $0x1, %edx
movq %r15, %rdi
callq 0x19466
movq (%r15), %r14
movq 0x8(%r15), %rbp
movb $0xf, %al
movb %al, 0xf(%r15)
movb %r13b, (%r15)
movq %r14, (%r12)
movq %rbp, 0x8(%r12)
movzbl 0xf(%r12), %eax
movq %rax, %rcx
xorq $0xf, %rcx
testb %al, %al
movl %ebp, %edx
cmovsq %r14, %r12
cmovnsq %rcx, %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x19466
testq %rbp, %rbp
jns 0x6a6e
movq %r14, %rdi
callq 0x3430
cmpb $0x0, 0x1f(%rsp)
jns 0x6a7f
movq 0x10(%rsp), %rdi
callq 0x3430
cmpb $0x0, 0xf(%rsp)
movb 0x90(%rsp), %r12b
jns 0x6b63
movq (%rsp), %rdi
jmp 0x6b5e
movl %r12d, %ebp
leaq 0x30(%rsp), %r12
movq %r14, (%r12)
movq %r15, 0x8(%r12)
leaq 0x10(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x19372
leaq 0x28895(%rip), %rsi     # 0x2f358
movl $0x1, %edx
movq %r14, %rdi
callq 0x19466
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rax
movq %rsi, (%r12)
movq %rax, 0x8(%r12)
movzbl 0xf(%r12), %ecx
movq %rcx, %rdi
xorq $0xf, %rdi
testb %cl, %cl
movl %eax, %edx
cmovnsq %r12, %rsi
cmovnsq %rdi, %rdx
movq %r14, %rdi
callq 0x19466
movq (%r14), %r15
movq 0x8(%r14), %r13
movb $0xf, 0xf(%r14)
movb $0x0, (%r14)
movq %r15, (%r12)
movq %r13, 0x8(%r12)
movzbl 0xf(%r12), %eax
movq %rax, %rcx
xorq $0xf, %rcx
testb %al, %al
movl %r13d, %edx
cmovsq %r15, %r12
cmovnsq %rcx, %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x19466
testq %r13, %r13
jns 0x6b4f
movq %r15, %rdi
callq 0x3430
cmpb $0x0, 0x1f(%rsp)
movl %ebp, %r12d
jns 0x6b63
movq 0x10(%rsp), %rdi
callq 0x3430
testb %r12b, %r12b
jne 0x6b6b
decl 0x10(%rbx)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r12d, %ebp
leaq 0x30(%rsp), %r12
movq %r14, (%r12)
movq %r15, 0x8(%r12)
leaq 0x10(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x19372
leaq 0x287bb(%rip), %rsi     # 0x2f35d
movl $0x2, %edx
jmp 0x6ac8
movb $0xf, %al
movq %rsp, %r12
movb %al, 0xf(%r12)
xorl %ebp, %ebp
movb %bpl, (%r12)
addq %rsi, %rsi
movq %r12, %rdi
callq 0x191a4
cmpb %bpl, 0xf(%r12)
jns 0x6bd2
movq (%rsp), %r12
movslq 0x10(%rbx), %rdx
addq %rdx, %rdx
movq %r12, %rdi
movl $0x20, %esi
callq 0x3170
movq (%rsp), %rsi
movq 0x8(%rsp), %rax
leaq 0x10(%rsp), %rbp
movw $0xa, (%rbp)
movb $0xe, 0xf(%rbp)
leaq 0x30(%rsp), %rcx
movq %rsi, (%rcx)
movq %rax, 0x8(%rcx)
movzbl 0xf(%rcx), %edx
movq %rdx, %rdi
xorq $0xf, %rdi
testb %dl, %dl
movl %eax, %edx
cmovnsq %rcx, %rsi
cmovnsq %rdi, %rdx
movq %rbp, %rdi
callq 0x19466
leaq 0x28730(%rip), %rsi     # 0x2f360
movl $0x1, %edx
movq %rbp, %rdi
callq 0x19466
movq (%rbp), %r13
movq 0x8(%rbp), %r12
movb $0xf, %al
movb %al, 0xf(%rbp)
xorl %eax, %eax
movb %al, (%rbp)
cmpb %al, 0xf(%rsp)
jns 0x6c5e
movq (%rsp), %rdi
callq 0x3430
leaq 0x30(%rsp), %rbp
movq %r14, (%rbp)
movq %r15, 0x8(%rbp)
leaq 0x10(%rsp), %r14
movq %r14, %rdi
movq %rbp, %rsi
callq 0x19372
movq %r13, (%rbp)
movq %r12, 0x8(%rbp)
movzbl 0xf(%rbp), %eax
movq %rax, %rcx
xorq $0xf, %rcx
testb %al, %al
movl %r12d, %edx
movq %r13, %rsi
cmovnsq %rbp, %rsi
cmovnsq %rcx, %rdx
movq %r14, %rdi
callq 0x19466
leaq 0x2bb1f(%rip), %rsi     # 0x327cc
leaq 0x48(%rsp), %r15
movl $0x1, %edx
movq %r15, %rdi
movl $0x1, %ecx
callq 0x5040
movq (%r15), %rdx
movq 0x8(%r15), %rcx
movq %rsp, %r15
leaq 0x20(%rsp), %rsi
movq %r15, %rdi
movq %r13, 0x40(%rsp)
movq %r13, %r8
movq %r12, %r9
callq 0x19b14
movq (%r15), %rsi
movq 0x8(%r15), %rax
movq %rsi, (%rbp)
movq %rax, 0x8(%rbp)
movzbl 0xf(%rbp), %ecx
movq %rcx, %rdi
xorq $0xf, %rdi
testb %cl, %cl
movl %eax, %edx
cmovnsq %rbp, %rsi
cmovnsq %rdi, %rdx
movq %r14, %rdi
callq 0x19466
movq (%r14), %r15
movq 0x8(%r14), %r13
movb $0xf, 0xf(%r14)
movb $0x0, (%r14)
movq %r15, (%rbp)
movq %r13, 0x8(%rbp)
movzbl 0xf(%rbp), %eax
movq %rax, %rcx
xorq $0xf, %rcx
testb %al, %al
movl %r13d, %edx
cmovsq %r15, %rbp
cmovnsq %rcx, %rdx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x19466
testq %r13, %r13
jns 0x6d5c
movq %r15, %rdi
callq 0x3430
cmpb $0x0, 0xf(%rsp)
jns 0x6d6c
movq (%rsp), %rdi
callq 0x3430
cmpb $0x0, 0x1f(%rsp)
movq 0x40(%rsp), %r14
jns 0x6d82
movq 0x10(%rsp), %rdi
callq 0x3430
testq %r12, %r12
movb 0x90(%rsp), %r12b
jns 0x6b63
movq %r14, %rdi
jmp 0x6b5e
nop