// File: Alcaro[P]bridges/arlib/bmlwrite.cpp
// Function: bmlwriter::type_core(cstring)
bmlwriter::mode bmlwriter::type_core(cstring val)
{
	if (val == "") return anon;
	
	char first = val[0];
	char last = val[val.length()-1];
	
	if (val.contains("\n") || first==' ' || first=='\t' || last==' ' || last=='\t') return multiline;
	if (val.contains("\"")) return col;
	if (val.contains(" ") || val.contains("\t")) return quote;
	return eq;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x190, %rsp            # imm = 0x190
movq %rdi, -0x130(%rbp)
movq %rsi, -0x128(%rbp)
leaq -0x130(%rbp), %rax
movq %rax, -0xe8(%rbp)
leaq 0x5b6ab(%rip), %rax     # 0x66449
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rdi
callq 0x40f0
movq %rax, -0xf8(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
leaq -0xc8(%rbp), %rcx
movq %rcx, -0x90(%rbp)
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x180(%rbp)
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
cmpl $0x0, %eax
jl 0xae3f
movq -0x180(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rdi
callq 0x5cc0
movq -0x180(%rbp), %rsi
movsbl %al, %eax
xorl $0xf, %eax
movzbl %al, %eax
movl %eax, %edx
leaq -0xc8(%rbp), %rdi
callq 0x5ed0
jmp 0xae5a
movq -0x180(%rbp), %rax
movq (%rax), %rsi
movl 0x8(%rax), %eax
movl %eax, %edx
leaq -0xc8(%rbp), %rdi
callq 0x5ed0
movups -0xc8(%rbp), %xmm0
movaps %xmm0, -0xb0(%rbp)
movq -0xb0(%rbp), %rcx
movq -0xa8(%rbp), %rax
movq %rcx, -0x108(%rbp)
movq %rax, -0x100(%rbp)
movq -0xf0(%rbp), %rsi
movq -0xf8(%rbp), %rdx
leaq -0x118(%rbp), %rdi
callq 0x5d70
movq -0x118(%rbp), %rsi
movq -0x110(%rbp), %rdx
leaq -0x108(%rbp), %rdi
callq 0x60c0
andb $0x1, %al
movb %al, -0xd9(%rbp)
testb $0x1, -0xd9(%rbp)
jne 0xaecb
jmp 0xaeda
movl $0x4, -0x11c(%rbp)
jmp 0xb098
leaq -0x130(%rbp), %rdi
xorl %esi, %esi
callq 0xa1c0
movb %al, -0x131(%rbp)
leaq -0x130(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x188(%rbp)
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
cmpl $0x0, %eax
jl 0xaf44
movq -0x188(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rdi
callq 0x5cc0
movsbl %al, %eax
xorl $0xf, %eax
movzbl %al, %eax
movl %eax, -0xcc(%rbp)
jmp 0xaf54
movq -0x188(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0xcc(%rbp)
movl -0xcc(%rbp), %esi
subl $0x1, %esi
leaq -0x130(%rbp), %rdi
callq 0xa1c0
movb %al, -0x132(%rbp)
leaq -0x148(%rbp), %rdi
leaq 0x5896b(%rip), %rsi     # 0x638e8
callq 0x58c0
movq -0x148(%rbp), %rsi
movq -0x140(%rbp), %rdx
leaq -0x130(%rbp), %rdi
callq 0xb910
testb $0x1, %al
jne 0xafd0
movsbl -0x131(%rbp), %eax
cmpl $0x20, %eax
je 0xafd0
movsbl -0x131(%rbp), %eax
cmpl $0x9, %eax
je 0xafd0
movsbl -0x132(%rbp), %eax
cmpl $0x20, %eax
je 0xafd0
movsbl -0x132(%rbp), %eax
cmpl $0x9, %eax
jne 0xafdf
movl $0x8, -0x11c(%rbp)
jmp 0xb098
leaq -0x158(%rbp), %rdi
leaq 0x5833a(%rip), %rsi     # 0x63327
callq 0x58c0
movq -0x158(%rbp), %rsi
movq -0x150(%rbp), %rdx
leaq -0x130(%rbp), %rdi
callq 0xb910
testb $0x1, %al
jne 0xb012
jmp 0xb01e
movl $0x7, -0x11c(%rbp)
jmp 0xb098
leaq -0x168(%rbp), %rdi
leaq 0x58aa8(%rip), %rsi     # 0x63ad4
callq 0x58c0
movq -0x168(%rbp), %rsi
movq -0x160(%rbp), %rdx
leaq -0x130(%rbp), %rdi
callq 0xb910
testb $0x1, %al
jne 0xb082
leaq -0x178(%rbp), %rdi
leaq 0x58332(%rip), %rsi     # 0x6338f
callq 0x58c0
movq -0x178(%rbp), %rsi
movq -0x170(%rbp), %rdx
leaq -0x130(%rbp), %rdi
callq 0xb910
testb $0x1, %al
jne 0xb082
jmp 0xb08e
movl $0x6, -0x11c(%rbp)
jmp 0xb098
movl $0x5, -0x11c(%rbp)
movl -0x11c(%rbp), %eax
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq
nopw (%rax,%rax)