// File: /workspace/github_c_makefile_star2_O3/calmopyrin[P]tedplay/main.cpp
// Function: main
int main(int argc, char *argv[])
{
    if (argc < 2) {
        printUsage();
        return -1;
    }
	unsigned int defaultFreq = 48000;
	int retval = tedplayMain(argv[1],
		player = new AudioSDL((void *) machineInit(defaultFreq, 24), defaultFreq, 100));
	if (0 == retval) {
		printPsidInfo(getPsidHeader());
		loop();
		tedplayClose();
	}
    return retval;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x1, %edi
jg 0xcb85
movq 0x8539(%rip), %rbx      # 0x14fc8
leaq 0x3f36(%rip), %rsi      # 0x109cc
movl $0x36, %edx
movq %rbx, %rdi
callq 0x3260
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
leaq 0x3f32(%rip), %rsi      # 0x10a03
movl $0x25, %edx
movq %rbx, %rdi
callq 0x3260
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
leaq 0x3f1d(%rip), %rsi      # 0x10a29
movl $0x6, %edx
movq %rbx, %rdi
callq 0x3260
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
leaq 0x3ee9(%rip), %rsi      # 0x10a30
movl $0x10, %edx
movq %rbx, %rdi
callq 0x3260
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0xd07e
movq 0x8(%rsi), %r14
movl $0x18, %edi
callq 0x3230
movq %rax, %rbx
movl $0xbb80, %edi           # imm = 0xBB80
movl $0x18, %esi
callq 0xd81e
movq %rbx, %rdi
movq %rax, %rsi
movl $0xbb80, %edx           # imm = 0xBB80
movl $0x64, %ecx
callq 0x3aee
movq %r14, %rdi
movq %rbx, %rsi
callq 0xde24
testl %eax, %eax
jne 0xd07e
callq 0xd0a8
movq %rax, %rdi
callq 0xd526
movq 0x840f(%rip), %r15      # 0x14ff0
leaq 0x3da0(%rip), %r12      # 0x10988
movl $0x32, %edi
callq 0x3170
callq 0x32c0
movl %eax, %ebp
movsbl %bpl, %r13d
cmpl $0x61, %r13d
jle 0xcc23
leal -0x62(%r13), %eax
cmpl $0x7, %eax
ja 0xcca0
movslq (%r12,%rax,4), %rax
addq %r12, %rax
jmpq *%rax
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
jmp 0xcfad
leal -0x31(%r13), %r14d
cmpl $0x3, %r14d
jae 0xcce6
movl %r14d, %edi
callq 0xe7f5
xorb $0x1, %al
movzbl %al, %esi
movl %r14d, %edi
callq 0xe81c
movl $0x8, %edx
movq %r15, %rdi
leaq 0x3eca(%rip), %rsi      # 0x10b1f
callq 0x3260
addl $-0x30, %r13d
movq %r15, %rdi
movl %r13d, %esi
callq 0x3340
movq %rax, %r14
movl %r13d, %edi
callq 0xe7f5
testb %al, %al
leaq 0x3eb5(%rip), %rsi      # 0x10b32
leaq 0x3ea4(%rip), %rcx      # 0x10b28
cmovneq %rcx, %rsi
movzbl %al, %eax
leaq 0x7(,%rax,2), %rdx
movq %r14, %rdi
callq 0x3260
jmp 0xcfe3
leal -0x70(%r13), %eax
cmpl $0x8, %eax
ja 0xccf0
leaq 0x3cf8(%rip), %rcx      # 0x109a8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rbx), %rax
leaq 0x185dd(%rip), %rcx     # 0x252a0
cmpb $0x0, (%rcx)
je 0xd01b
movq %rbx, %rdi
callq *0x10(%rax)
movl $0xf, %edx
movq %r15, %rdi
leaq 0x3e7b(%rip), %rsi      # 0x10b5c
jmp 0xcf5d
cmpl $0x3f, %r13d
je 0xcd76
movl %r13d, %edi
callq 0x3320
testl %eax, %eax
je 0xd00a
movl $0x10, %edx
movq %r15, %rdi
leaq 0x3d32(%rip), %rsi      # 0x10a41
callq 0x3260
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %r15, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
movl $0x13, %edx
movq %r15, %rdi
leaq 0x3d08(%rip), %rsi      # 0x10a52
callq 0x3260
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %r15, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
movl $0x13, %edx
movq %r15, %rdi
leaq 0x3ce1(%rip), %rsi      # 0x10a66
callq 0x3260
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %r15, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
movl $0x13, %edx
movq %r15, %rdi
leaq 0x3cba(%rip), %rsi      # 0x10a7a
callq 0x3260
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %r15, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
movl $0x13, %edx
movq %r15, %rdi
leaq 0x3c93(%rip), %rsi      # 0x10a8e
callq 0x3260
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %r15, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
movl $0x16, %edx
movq %r15, %rdi
leaq 0x3c6c(%rip), %rsi      # 0x10aa2
callq 0x3260
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %r15, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
movl $0x19, %edx
movq %r15, %rdi
leaq 0x3c48(%rip), %rsi      # 0x10ab9
callq 0x3260
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %r15, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
movl $0x11, %edx
movq %r15, %rdi
leaq 0x3c27(%rip), %rsi      # 0x10ad3
callq 0x3260
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %r15, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
movl $0xd, %edx
movq %r15, %rdi
leaq 0x3bfe(%rip), %rsi      # 0x10ae5
callq 0x3260
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %r15, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
movl $0x16, %edx
movq %r15, %rdi
leaq 0x3bd1(%rip), %rsi      # 0x10af3
callq 0x3260
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %r15, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
movl $0x14, %edx
movq %r15, %rdi
leaq 0x3bad(%rip), %rsi      # 0x10b0a
callq 0x3260
movq %r15, %r14
jmp 0xcfe3
callq 0xd0a8
movq %rax, %rdi
callq 0xd526
leaq 0x18325(%rip), %rax     # 0x252a0
cmpb $0x0, (%rax)
jne 0xd00a
movl $0xf, %edx
movq %r15, %rdi
leaq 0x3ba7(%rip), %rsi      # 0x10b3a
callq 0x3260
callq 0xd0a8
movl 0x67c(%rax), %esi
movq %r15, %rdi
jmp 0xcfdb
movl $0x1, %edi
callq 0xd685
movl $0xf, %edx
movq 0x800a(%rip), %r14      # 0x14fc8
movq %r14, %rdi
leaq 0x3b72(%rip), %rsi      # 0x10b3a
callq 0x3260
callq 0xd0a8
movl 0x67c(%rax), %esi
movq %r14, %rdi
callq 0x3340
movq %rax, %r14
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %r14, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
shll $0x18, %ebp
cmpl $0xff000000, %ebp       # imm = 0xFF000000
jne 0xcbe8
jmp 0xd077
movq %rbx, %rdi
callq *0x18(%rax)
movl $0x11, %edx
movq %r15, %rdi
leaq 0x3b1a(%rip), %rsi      # 0x10b4a
jmp 0xcf5d
movq 0x7fb4(%rip), %rbx      # 0x14ff0
leaq 0x3b29(%rip), %rsi      # 0x10b6c
movl $0x8, %edx
movq %rbx, %rdi
callq 0x3260
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
callq 0xdb3f
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movl $0x18, %esi
movq %rbx, %rdi
callq 0x3240
movq %r14, %rdi
callq 0x3360
nopl (%rax)