// File: /workspace/github_c_makefile_star2_O2/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 0x4057a6
movq (%rbx), %rsi
leaq -0x180(%rbp), %rdi
leaq -0x40(%rbp), %rdx
callq 0x405a80
leaq -0x180(%rbp), %rdi
callq 0x405663
leaq -0x180(%rbp), %rdi
callq 0x474f20
pushq $0x1
popq %rax
jmp 0x4059c9
movl %edi, %r14d
movq 0x8(%rbx), %rsi
leaq -0x40(%rbp), %rdi
leaq -0x19(%rbp), %rdx
callq 0x405a80
leaq 0x185dfe(%rip), %rsi    # 0x58b5bf
leaq -0x40(%rbp), %rdi
callq 0x405abb
movl %eax, %r15d
testb %al, %al
je 0x4057fd
movq 0x10(%rbx), %rsi
leaq -0x160(%rbp), %rdi
leaq -0x19(%rbp), %rdx
callq 0x405a80
leaq -0x160(%rbp), %rdi
callq 0x40531f
leaq -0x160(%rbp), %rdi
callq 0x474f20
leaq 0x19b778(%rip), %rsi    # 0x5a0f7c
leaq -0x40(%rbp), %rdi
callq 0x405abb
testb %al, %al
je 0x405840
movq 0x10(%rbx), %rsi
leaq -0x140(%rbp), %rdi
leaq -0x19(%rbp), %rdx
callq 0x405a80
leaq -0x140(%rbp), %rdi
callq 0x40546b
leaq -0x140(%rbp), %rdi
callq 0x474f20
movb $0x1, %r15b
leaq 0x178a51(%rip), %rsi    # 0x57e298
leaq -0x40(%rbp), %rdi
callq 0x405abb
testb %al, %al
je 0x405883
movq 0x10(%rbx), %rsi
leaq -0x120(%rbp), %rdi
leaq -0x19(%rbp), %rdx
callq 0x405a80
leaq -0x120(%rbp), %rdi
callq 0x405565
leaq -0x120(%rbp), %rdi
callq 0x474f20
movb $0x1, %r15b
leaq 0x178a13(%rip), %rsi    # 0x57e29d
leaq -0x40(%rbp), %rdi
callq 0x405abb
testb %al, %al
je 0x4058c6
movq 0x10(%rbx), %rsi
leaq -0x100(%rbp), %rdi
leaq -0x19(%rbp), %rdx
callq 0x405a80
leaq -0x100(%rbp), %rdi
callq 0x4055ea
leaq -0x100(%rbp), %rdi
callq 0x474f20
movb $0x1, %r15b
leaq 0x1789d5(%rip), %rsi    # 0x57e2a2
leaq -0x40(%rbp), %rdi
callq 0x405abb
cmpl $0x3, %r14d
je 0x405936
testb %al, %al
je 0x405936
movq 0x10(%rbx), %rsi
leaq -0xe0(%rbp), %rdi
leaq -0x19(%rbp), %rdx
callq 0x405a80
movq 0x18(%rbx), %rsi
leaq -0xc0(%rbp), %rdi
leaq -0x1a(%rbp), %rdx
callq 0x405a80
leaq -0xe0(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x405046
leaq -0xc0(%rbp), %rdi
callq 0x474f20
leaq -0xe0(%rbp), %rdi
callq 0x474f20
movb $0x1, %r15b
leaq 0x178969(%rip), %rsi    # 0x57e2a6
leaq -0x40(%rbp), %rdi
callq 0x405abb
cmpl $0x3, %r14d
je 0x405997
testb %al, %al
je 0x405997
movq 0x10(%rbx), %rsi
leaq -0xa0(%rbp), %rdi
leaq -0x19(%rbp), %rdx
callq 0x405a80
movq 0x18(%rbx), %rsi
leaq -0x80(%rbp), %rdi
leaq -0x1a(%rbp), %rdx
callq 0x405a80
leaq -0xa0(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x40499b
leaq -0x80(%rbp), %rdi
callq 0x474f20
leaq -0xa0(%rbp), %rdi
jmp 0x4059b9
testb %r15b, %r15b
jne 0x4059be
movq (%rbx), %rsi
leaq -0x60(%rbp), %rdi
leaq -0x19(%rbp), %rdx
callq 0x405a80
leaq -0x60(%rbp), %rdi
callq 0x405663
leaq -0x60(%rbp), %rdi
callq 0x474f20
leaq -0x40(%rbp), %rdi
callq 0x474f20
xorl %eax, %eax
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
jmp 0x405a51
jmp 0x405a58
movq %rax, %rbx
leaq -0x80(%rbp), %rdi
callq 0x474f20
jmp 0x4059f3
movq %rax, %rbx
leaq -0xa0(%rbp), %rdi
jmp 0x405a51
movq %rax, %rbx
leaq -0xc0(%rbp), %rdi
callq 0x474f20
jmp 0x405a12
jmp 0x405a58
movq %rax, %rbx
leaq -0xe0(%rbp), %rdi
jmp 0x405a51
jmp 0x405a58
movq %rax, %rbx
leaq -0x100(%rbp), %rdi
jmp 0x405a51
jmp 0x405a58
movq %rax, %rbx
leaq -0x120(%rbp), %rdi
jmp 0x405a51
jmp 0x405a58
movq %rax, %rbx
leaq -0x140(%rbp), %rdi
jmp 0x405a51
jmp 0x405a58
movq %rax, %rbx
leaq -0x160(%rbp), %rdi
callq 0x474f20
jmp 0x405a5b
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x474f20
movq %rbx, %rdi
callq 0x4a7100
movq %rax, %rbx
leaq -0x180(%rbp), %rdi
jmp 0x405a5f
jmp 0x405a7a
movq %rax, %rbx
jmp 0x405a64
nop