// File: /workspace/github_c_makefile_star2_O3/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, %r14
movq %rdi, %rbx
movb 0x996e(%rip), %al       # 0x14410
testb %al, %al
je 0xaaeb
leaq 0x992b(%rip), %rdi      # 0x143d8
movq %r14, %rsi
callq 0xcc96
testq %rax, %rax
je 0xac1f
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq 0x28(%rax), %rsi
movq 0x30(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x4e78
movq %rbx, %rax
addq $0x190, %rsp            # imm = 0x190
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x991e(%rip), %rdi      # 0x14410
callq 0x34d0
testl %eax, %eax
je 0xaaa6
leaq 0x3968(%rip), %rsi      # 0xe46a
leaq 0x3996(%rip), %rdx      # 0xe49f
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0xbbd6
leaq 0x50(%rsp), %r12
leaq 0x35f1(%rip), %rsi      # 0xe113
leaq 0x398d(%rip), %rdx      # 0xe4b6
movq %r12, %rdi
callq 0xbc54
leaq 0x90(%rsp), %r12
leaq 0x3b47(%rip), %rsi      # 0xe687
leaq 0x38ca(%rip), %rdx      # 0xe411
movq %r12, %rdi
callq 0xbc54
leaq 0xd0(%rsp), %r12
leaq 0x3b25(%rip), %rsi      # 0xe683
leaq 0x38c6(%rip), %rdx      # 0xe42b
movq %r12, %rdi
callq 0xbcd2
leaq 0x110(%rsp), %r12
leaq 0x34ed(%rip), %rsi      # 0xe069
leaq 0x3900(%rip), %rdx      # 0xe483
movq %r12, %rdi
callq 0xbd50
leaq 0x150(%rsp), %r12
leaq 0x3af3(%rip), %rsi      # 0xe68d
leaq 0x39c7(%rip), %rdx      # 0xe568
movq %r12, %rdi
callq 0xbdce
leaq 0x190(%rsp), %rdx
leaq 0xd(%rsp), %rax
movq %rax, (%rsp)
leaq 0x9817(%rip), %rdi      # 0x143d8
leaq 0x10(%rsp), %rsi
leaq 0xf(%rsp), %r8
leaq 0xe(%rsp), %r9
xorl %ecx, %ecx
callq 0xc754
movl $0x140, %r15d           # imm = 0x140
leaq (%rsp,%r15), %rdi
addq $0x10, %rdi
callq 0xbe4c
addq $-0x40, %r15
cmpq $-0x40, %r15
jne 0xabdd
leaq 0x1287(%rip), %rdi      # 0xbe82
leaq 0x97d6(%rip), %rsi      # 0x143d8
leaq 0x968f(%rip), %rdx      # 0x14298
callq 0x3230
leaq 0x97fb(%rip), %rdi      # 0x14410
callq 0x31c0
jmp 0xaaa6
movl $0x10, %edi
callq 0x3150
movq %rax, %r15
leaq 0x3a61(%rip), %rsi      # 0xe694
leaq 0x10(%rsp), %rdi
movq %r14, %rdx
callq 0x670f
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0x3440
xorl %ebp, %ebp
movq 0x9397(%rip), %rsi      # 0x13ff0
movq 0x9350(%rip), %rdx      # 0x13fb0
movq %r15, %rdi
callq 0x3480
movq %rax, %rbx
movl $0x140, %r14d           # imm = 0x140
leaq (%rsp,%r14), %rdi
addq $0x10, %rdi
callq 0xbe4c
addq $-0x40, %r14
cmpq $-0x40, %r14
jne 0xac71
jmp 0xaca3
movq %rax, %rbx
jmp 0xaca3
movq %rax, %rbx
addq $-0x40, %r12
movq %r12, %rdi
callq 0xbe4c
cmpq %r15, %r12
jne 0xac92
leaq 0x9766(%rip), %rdi      # 0x14410
callq 0x31a0
jmp 0xace1
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xaccf
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3260
testb %bpl, %bpl
jne 0xacd9
jmp 0xace1
movq %rax, %rbx
movq %r15, %rdi
callq 0x31f0
movq %rbx, %rdi
callq 0x34a0
nop