// File: /workspace/github_c_makefile_star2_O1/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 0x98c2(%rip), %al       # 0x14410
testb %al, %al
je 0xab97
leaq 0x987f(%rip), %rdi      # 0x143d8
movq %r14, %rsi
callq 0xcd98
testq %rax, %rax
je 0xacce
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq 0x28(%rax), %rsi
movq 0x30(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x4e76
movq %rbx, %rax
addq $0x190, %rsp            # imm = 0x190
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x9872(%rip), %rdi      # 0x14410
callq 0x34d0
testl %eax, %eax
je 0xab52
leaq 0x10(%rsp), %r12
leaq 0x38b7(%rip), %rsi      # 0xe46a
leaq 0x38e5(%rip), %rdx      # 0xe49f
movq %r12, %r15
movq %r12, %rdi
callq 0xbcfc
leaq 0x50(%rsp), %r15
leaq 0x3542(%rip), %rsi      # 0xe113
leaq 0x38de(%rip), %rdx      # 0xe4b6
movq %r15, %rdi
callq 0xbd7a
leaq 0x90(%rsp), %r15
leaq 0x3a98(%rip), %rsi      # 0xe687
leaq 0x381b(%rip), %rdx      # 0xe411
movq %r15, %rdi
callq 0xbd7a
leaq 0xd0(%rsp), %r15
leaq 0x3a76(%rip), %rsi      # 0xe683
leaq 0x3817(%rip), %rdx      # 0xe42b
movq %r15, %rdi
callq 0xbdf8
leaq 0x110(%rsp), %r15
leaq 0x343e(%rip), %rsi      # 0xe069
leaq 0x3851(%rip), %rdx      # 0xe483
movq %r15, %rdi
callq 0xbe76
leaq 0x150(%rsp), %r15
leaq 0x3a44(%rip), %rsi      # 0xe68d
leaq 0x3918(%rip), %rdx      # 0xe568
movq %r15, %rdi
callq 0xbef4
leaq 0x190(%rsp), %rdx
leaq 0xd(%rsp), %rax
movq %rax, (%rsp)
leaq 0x9768(%rip), %rdi      # 0x143d8
leaq 0x10(%rsp), %rsi
leaq 0xf(%rsp), %r8
leaq 0xe(%rsp), %r9
xorl %ecx, %ecx
callq 0xc854
movl $0x140, %r15d           # imm = 0x140
leaq (%rsp,%r15), %rdi
addq $0x10, %rdi
callq 0xbf72
addq $-0x40, %r15
cmpq $-0x40, %r15
jne 0xac8c
leaq 0x12fe(%rip), %rdi      # 0xbfa8
leaq 0x9727(%rip), %rsi      # 0x143d8
leaq 0x95e0(%rip), %rdx      # 0x14298
callq 0x3230
leaq 0x974c(%rip), %rdi      # 0x14410
callq 0x31c0
jmp 0xab52
movl $0x10, %edi
callq 0x3150
movq %rax, %r15
leaq 0x39b2(%rip), %rsi      # 0xe694
leaq 0x10(%rsp), %rdi
movq %r14, %rdx
callq 0x67b9
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0x3440
xorl %ebp, %ebp
movq 0x92e8(%rip), %rsi      # 0x13ff0
movq 0x92a1(%rip), %rdx      # 0x13fb0
movq %r15, %rdi
callq 0x3480
movq %rax, %rbx
movl $0x140, %r14d           # imm = 0x140
leaq (%rsp,%r14), %rdi
addq $0x10, %rdi
callq 0xbf72
addq $-0x40, %r14
cmpq $-0x40, %r14
jne 0xad20
jmp 0xad57
movq %rax, %rbx
cmpq %r15, %r12
je 0xad57
leaq 0x10(%rsp), %r14
addq $-0x40, %r15
movq %r15, %rdi
callq 0xbf72
cmpq %r14, %r15
jne 0xad46
leaq 0x96b2(%rip), %rdi      # 0x14410
callq 0x31a0
jmp 0xad98
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xad8b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0xad8b
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0xad98
movq %r15, %rdi
callq 0x31f0
movq %rbx, %rdi
callq 0x34a0