// File: /workspace/github_c_makefile_star2_O1/salextpuru[P]speccy-toochain/src/mktrd/mktrd.cpp
// Function: main
int main(int ac,char* av[]) {
	if (ac<3) {help(av[0]); return 1;}
	string mode(av[1]);
	bool yeah=false;
	if (mode=="list") {list(av[2]); yeah=true;}
	if (mode=="nlist") {nlist(av[2]); yeah=true;}
	if (mode=="ctrd") {createtrd(av[2]); yeah=true;}
	if (mode=="cscl") {createscl(av[2]); yeah=true;}
	if (mode=="pop" && ac>3) {extract(av[2],av[3]); yeah=true;}
	if (mode=="add" && ac>3) {pack(av[2],av[3]); yeah=true;}
	if (!yeah) help(av[0]);
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x168, %rsp            # imm = 0x168
movq %rsi, %rbx
cmpl $0x2, %edi
jg 0x405e41
movq (%rbx), %rsi
leaq -0x180(%rbp), %rdi
leaq -0x40(%rbp), %rdx
callq 0x4062b6
leaq -0x180(%rbp), %rdi
callq 0x405bba
leaq -0x170(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x405e37
movq -0x170(%rbp), %rsi
incq %rsi
callq 0x406430
movl $0x1, %eax
jmp 0x40611b
movl %edi, %r14d
movq 0x8(%rbx), %rsi
leaq -0x40(%rbp), %rdi
leaq -0x19(%rbp), %rdx
callq 0x4062b6
leaq 0x185763(%rip), %rsi    # 0x58b5bf
leaq -0x40(%rbp), %rdi
callq 0x477a00
testl %eax, %eax
sete %r15b
jne 0x405eac
movq 0x10(%rbx), %rsi
leaq -0x160(%rbp), %rdi
leaq -0x19(%rbp), %rdx
callq 0x4062b6
leaq -0x160(%rbp), %rdi
callq 0x4056fa
leaq -0x150(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x405eac
movq -0x150(%rbp), %rsi
incq %rsi
callq 0x406430
leaq 0x19b0c9(%rip), %rsi    # 0x5a0f7c
leaq -0x40(%rbp), %rdi
callq 0x477a00
testl %eax, %eax
jne 0x405f02
movq 0x10(%rbx), %rsi
leaq -0x140(%rbp), %rdi
leaq -0x19(%rbp), %rdx
callq 0x4062b6
leaq -0x140(%rbp), %rdi
callq 0x4058d5
leaq -0x130(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x405eff
movq -0x130(%rbp), %rsi
incq %rsi
callq 0x406430
movb $0x1, %r15b
leaq 0x17838f(%rip), %rsi    # 0x57e298
leaq -0x40(%rbp), %rdi
callq 0x477a00
testl %eax, %eax
jne 0x405f58
movq 0x10(%rbx), %rsi
leaq -0x120(%rbp), %rdi
leaq -0x19(%rbp), %rdx
callq 0x4062b6
leaq -0x120(%rbp), %rdi
callq 0x405a66
leaq -0x110(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x405f55
movq -0x110(%rbp), %rsi
incq %rsi
callq 0x406430
movb $0x1, %r15b
leaq 0x17833e(%rip), %rsi    # 0x57e29d
leaq -0x40(%rbp), %rdi
callq 0x477a00
testl %eax, %eax
jne 0x405fae
movq 0x10(%rbx), %rsi
leaq -0x100(%rbp), %rdi
leaq -0x19(%rbp), %rdx
callq 0x4062b6
leaq -0x100(%rbp), %rdi
callq 0x405b14
leaq -0xf0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x405fab
movq -0xf0(%rbp), %rsi
incq %rsi
callq 0x406430
movb $0x1, %r15b
leaq 0x1782ed(%rip), %rsi    # 0x57e2a2
leaq -0x40(%rbp), %rdi
callq 0x477a00
cmpl $0x3, %r14d
je 0x406048
testl %eax, %eax
jne 0x406048
movq 0x10(%rbx), %rsi
leaq -0xe0(%rbp), %rdi
leaq -0x19(%rbp), %rdx
callq 0x4062b6
movq 0x18(%rbx), %rsi
leaq -0xc0(%rbp), %rdi
leaq -0x1a(%rbp), %rdx
callq 0x4062b6
leaq -0xe0(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x405288
leaq -0xb0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x406026
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x406430
leaq -0xd0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x406045
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x406430
movb $0x1, %r15b
leaq 0x178257(%rip), %rsi    # 0x57e2a6
leaq -0x40(%rbp), %rdi
callq 0x477a00
cmpl $0x3, %r14d
je 0x4060c9
testl %eax, %eax
jne 0x4060c9
movq 0x10(%rbx), %rsi
leaq -0xa0(%rbp), %rdi
leaq -0x19(%rbp), %rdx
callq 0x4062b6
movq 0x18(%rbx), %rsi
leaq -0x80(%rbp), %rdi
leaq -0x1a(%rbp), %rdx
callq 0x4062b6
leaq -0xa0(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x404840
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4060b0
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x406430
leaq -0x90(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x406100
movq -0x90(%rbp), %rsi
jmp 0x4060f8
testb %r15b, %r15b
jne 0x406100
movq (%rbx), %rsi
leaq -0x60(%rbp), %rdi
leaq -0x19(%rbp), %rdx
callq 0x4062b6
leaq -0x60(%rbp), %rdi
callq 0x405bba
leaq -0x50(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x406100
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x406430
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x406119
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x406430
xorl %eax, %eax
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x50(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x406272
movq -0x50(%rbp), %rsi
jmp 0x406265
jmp 0x40626f
movq %rax, %rbx
leaq -0xf0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x406272
movq -0xf0(%rbp), %rsi
jmp 0x406265
movq %rax, %rbx
leaq -0x110(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x406272
movq -0x110(%rbp), %rsi
jmp 0x406265
jmp 0x40626f
movq %rax, %rbx
leaq -0x130(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x406272
movq -0x130(%rbp), %rsi
jmp 0x406265
jmp 0x40626f
movq %rax, %rbx
leaq -0x150(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x406272
movq -0x150(%rbp), %rsi
jmp 0x406265
jmp 0x40626f
jmp 0x40626f
movq %rax, %rbx
leaq -0x70(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x40620c
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x406430
jmp 0x40620c
movq %rax, %rbx
leaq -0x90(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x406272
movq -0x90(%rbp), %rsi
jmp 0x406265
movq %rax, %rbx
leaq -0xb0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x40624e
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x406430
jmp 0x40624e
jmp 0x40626f
movq %rax, %rbx
leaq -0xd0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x406272
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x406430
jmp 0x406272
movq %rax, %rbx
leaq -0x30(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4062ae
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x406430
jmp 0x4062ae
movq %rax, %rbx
leaq -0x170(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4062ae
movq -0x170(%rbp), %rsi
jmp 0x406283
jmp 0x4062ab
movq %rax, %rbx
movq %rbx, %rdi
callq 0x4a6e60