// File: /workspace/github_c_makefile_star2_O2/almk277[P]ROSE/rasm/parser.cpp
// Function: mangle(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
string mangle(const string &type)
{
	static const std::unordered_map<string, string> types = {
		{ "int", "i" },
		{ "float", "f" },
		{ "array", "a" },
		{ "bytearray", "b" },
		{ "file", "F" },
		{ "object", "o" },
	};

	auto it = types.find(type);
	if (it == types.end())
		throw error("wrong type " + type);
	return it->second;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x190, %rsp            # imm = 0x190
movq %rsi, %rbx
movq %rdi, %r14
movb 0xb5fa(%rip), %al       # 0x15410
testb %al, %al
je 0x9e54
leaq 0xb5b7(%rip), %rdi      # 0x153d8
movq %rbx, %rsi
callq 0xb8ca
testq %rax, %rax
je 0x9f88
addq $0x28, %rax
movq %r14, %rdi
movq %rax, %rsi
callq 0x3360
movq %r14, %rax
addq $0x190, %rsp            # imm = 0x190
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb5b5(%rip), %rdi      # 0x15410
callq 0x34c0
testl %eax, %eax
je 0x9e1a
leaq 0x3629(%rip), %rsi      # 0xd494
leaq 0x365c(%rip), %rdx      # 0xd4ce
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0xac78
leaq 0x50(%rsp), %r12
leaq 0x3283(%rip), %rsi      # 0xd10e
leaq 0x3653(%rip), %rdx      # 0xd4e5
movq %r12, %rdi
callq 0xacb8
leaq 0x90(%rsp), %r12
leaq 0x3822(%rip), %rsi      # 0xd6cb
leaq 0x3573(%rip), %rdx      # 0xd423
movq %r12, %rdi
callq 0xacb8
leaq 0xd0(%rsp), %r12
leaq 0x3800(%rip), %rsi      # 0xd6c7
leaq 0x3567(%rip), %rdx      # 0xd435
movq %r12, %rdi
callq 0xacf8
leaq 0x110(%rsp), %r12
leaq 0x3184(%rip), %rsi      # 0xd069
leaq 0x35c6(%rip), %rdx      # 0xd4b2
movq %r12, %rdi
callq 0xad38
leaq 0x150(%rsp), %r12
leaq 0x37ce(%rip), %rsi      # 0xd6d1
leaq 0x369b(%rip), %rdx      # 0xd5a5
movq %r12, %rdi
callq 0xad78
leaq 0x190(%rsp), %rdx
leaq 0xd(%rsp), %rax
movq %rax, (%rsp)
leaq 0xb4ae(%rip), %rdi      # 0x153d8
leaq 0x10(%rsp), %rsi
leaq 0xf(%rsp), %r8
leaq 0xe(%rsp), %r9
xorl %ecx, %ecx
callq 0xb3e6
movl $0x140, %r15d           # imm = 0x140
leaq (%rsp,%r15), %rdi
addq $0x10, %rdi
callq 0xadb8
addq $-0x40, %r15
cmpq $-0x40, %r15
jne 0x9f46
leaq 0xe6a(%rip), %rdi       # 0xadce
leaq 0xb46d(%rip), %rsi      # 0x153d8
leaq 0xb326(%rip), %rdx      # 0x15298
callq 0x3240
leaq 0xb492(%rip), %rdi      # 0x15410
callq 0x31e0
jmp 0x9e1a
pushq $0x10
popq %rdi
callq 0x3170
movq %rax, %r14
leaq 0x373e(%rip), %rsi      # 0xd6d8
leaq 0x10(%rsp), %rdi
movq %rbx, %rdx
callq 0x6076
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x3440
xorl %ebp, %ebp
movq 0xb028(%rip), %rsi      # 0x14fe8
movq 0xafd1(%rip), %rdx      # 0x14f98
movq %r14, %rdi
callq 0x3470
movq %rax, %rbx
movl $0x140, %r14d           # imm = 0x140
leaq (%rsp,%r14), %rdi
addq $0x10, %rdi
callq 0xadb8
addq $-0x40, %r14
cmpq $-0x40, %r14
jne 0x9fd8
jmp 0xa00a
movq %rax, %rbx
jmp 0xa00a
movq %rax, %rbx
addq $-0x40, %r12
movq %r12, %rdi
callq 0xadb8
cmpq %r15, %r12
jne 0x9ff9
leaq 0xb3ff(%rip), %rdi      # 0x15410
callq 0x31c0
jmp 0xa037
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x3528
testb %bpl, %bpl
jne 0xa02f
jmp 0xa037
movq %rax, %rbx
movq %r14, %rdi
callq 0x3210
movq %rbx, %rdi
callq 0x3490
nop