// File: /workspace/github_c_makefile_star2_O2/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 0xc00b
movq 0x8021(%rip), %rbx      # 0x13fc8
leaq 0x3816(%rip), %rsi      # 0xf7c4
movq %rbx, %rdi
callq 0x3200
movq %rax, %rdi
callq 0x3110
leaq 0x3836(%rip), %rsi      # 0xf7fb
movq %rbx, %rdi
callq 0x3200
movq %rax, %rdi
callq 0x3110
leaq 0x3845(%rip), %rsi      # 0xf821
movq %rbx, %rdi
callq 0x3200
movq %rax, %rdi
callq 0x3110
leaq 0x3835(%rip), %rsi      # 0xf828
movq %rbx, %rdi
callq 0x3200
movq %rax, %rdi
callq 0x3110
pushq $-0x1
popq %rax
jmp 0xc2ed
movq 0x8(%rsi), %r14
pushq $0x18
popq %rdi
callq 0x3220
movq %rax, %rbx
pushq $0x18
popq %rsi
movl $0xbb80, %edi           # imm = 0xBB80
callq 0xc97c
pushq $0x64
popq %rcx
movq %rbx, %rdi
movq %rax, %rsi
movl $0xbb80, %edx           # imm = 0xBB80
callq 0x3a10
movq %r14, %rdi
movq %rbx, %rsi
callq 0xcf02
testl %eax, %eax
jne 0xc2ed
movq %rbx, (%rsp)
callq 0xc314
movq %rax, %rdi
callq 0xc752
pushq $0x32
popq %rbp
movq 0x7f88(%rip), %r14      # 0x13ff0
leaq 0x3711(%rip), %rbx      # 0xf780
movl %ebp, %edi
callq 0x3160
callq 0x32b0
movl %eax, %r12d
movsbl %r12b, %r15d
leal -0x62(%r15), %eax
cmpl $0x7, %eax
jbe 0xc0db
leal -0x31(%r15), %r13d
cmpl $0x3, %r13d
jb 0xc0eb
leal -0x70(%r15), %eax
cmpl $0x8, %eax
ja 0xc145
leaq 0x36f7(%rip), %rcx      # 0xf7a0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rsp), %rdi
movq (%rdi), %rax
leaq 0x181f0(%rip), %rcx     # 0x242b0
cmpb $0x0, (%rcx)
je 0xc2bc
callq *0x10(%rax)
movq %r14, %rdi
leaq 0x387e(%rip), %rsi      # 0xf954
jmp 0xc24b
movslq (%rbx,%rax,4), %rax
addq %rbx, %rax
jmpq *%rax
pushq $-0x1
jmp 0xc254
movl %r13d, %edi
callq 0xd802
xorb $0x1, %al
movzbl %al, %esi
movl %r13d, %edi
callq 0xd81e
movq %r14, %rdi
leaq 0x380d(%rip), %rsi      # 0xf917
callq 0x3200
addl $-0x30, %r15d
movq %rax, %rdi
movl %r15d, %esi
callq 0x3320
movq %rax, %r13
movl %r15d, %edi
callq 0xd802
testb %al, %al
leaq 0x37f8(%rip), %rsi      # 0xf92a
leaq 0x37e7(%rip), %rax      # 0xf920
cmovneq %rax, %rsi
movq %r13, %rdi
jmp 0xc24b
cmpl $0x3f, %r15d
je 0xc189
movl %r15d, %edi
callq 0x3300
testl %eax, %eax
je 0xc28b
movq %r14, %rdi
leaq 0x36d4(%rip), %rsi      # 0xf839
callq 0x3200
movq %rax, %rdi
callq 0x3110
movq %r14, %rdi
leaq 0x36ce(%rip), %rsi      # 0xf84a
callq 0x3200
movq %rax, %rdi
callq 0x3110
movq %r14, %rdi
leaq 0x36cb(%rip), %rsi      # 0xf85e
callq 0x3200
movq %rax, %rdi
callq 0x3110
movq %r14, %rdi
leaq 0x36c8(%rip), %rsi      # 0xf872
callq 0x3200
movq %rax, %rdi
callq 0x3110
movq %r14, %rdi
leaq 0x36c5(%rip), %rsi      # 0xf886
callq 0x3200
movq %rax, %rdi
callq 0x3110
movq %r14, %rdi
leaq 0x36c2(%rip), %rsi      # 0xf89a
callq 0x3200
movq %rax, %rdi
callq 0x3110
movq %r14, %rdi
leaq 0x36c2(%rip), %rsi      # 0xf8b1
callq 0x3200
movq %rax, %rdi
callq 0x3110
movq %r14, %rdi
leaq 0x36c5(%rip), %rsi      # 0xf8cb
callq 0x3200
movq %rax, %rdi
callq 0x3110
movq %r14, %rdi
leaq 0x36c0(%rip), %rsi      # 0xf8dd
callq 0x3200
movq %rax, %rdi
callq 0x3110
movq %r14, %rdi
leaq 0x36b7(%rip), %rsi      # 0xf8eb
callq 0x3200
movq %rax, %rdi
callq 0x3110
movq %r14, %rdi
leaq 0x36b7(%rip), %rsi      # 0xf902
callq 0x3200
jmp 0xc283
pushq $0x1
popq %rdi
callq 0xc852
movq 0x7d67(%rip), %rdi      # 0x13fc8
leaq 0x36ca(%rip), %rsi      # 0xf932
callq 0x3200
movq %rax, %r15
callq 0xc314
movl 0x67c(%rax), %esi
movq %r15, %rdi
callq 0x3320
movq %rax, %rdi
callq 0x3110
shll $0x18, %r12d
cmpl $0xff000000, %r12d      # imm = 0xFF000000
jne 0xc06f
jmp 0xc2e6
callq 0xc314
movq %rax, %rdi
callq 0xc752
leaq 0x17ffe(%rip), %rax     # 0x242b0
cmpb $0x0, (%rax)
jne 0xc28b
movq %r14, %rdi
jmp 0xc261
callq *0x18(%rax)
movq %r14, %rdi
leaq 0x3679(%rip), %rsi      # 0xf942
jmp 0xc24b
movq 0x7d1e(%rip), %rdi      # 0x13ff0
leaq 0x368b(%rip), %rsi      # 0xf964
callq 0x3200
movq %rax, %rdi
callq 0x3110
callq 0xcc80
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
pushq $0x18
popq %rsi
movq %rbx, %rdi
callq 0x3230
movq %r14, %rdi
callq 0x3340
nop