// File: /workspace/github_c_makefile_star2_O1/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 0xc6a5
movq 0x7a19(%rip), %rbx      # 0x13fc8
leaq 0x41ee(%rip), %rsi      # 0x107a4
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 0x41ea(%rip), %rsi      # 0x107db
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 0x41d5(%rip), %rsi      # 0x10801
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 0x41a1(%rip), %rsi      # 0x10808
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, %ebp       # imm = 0xFFFFFFFF
jmp 0xcb8f
movq 0x8(%rsi), %r14
movl $0x18, %edi
callq 0x3230
movq %rax, %rbx
movl $0xbb80, %edi           # imm = 0xBB80
movl $0x18, %esi
callq 0xd336
movq %rbx, %rdi
movq %rax, %rsi
movl $0xbb80, %edx           # imm = 0xBB80
movl $0x64, %ecx
callq 0x3b0c
movq %r14, %rdi
movq %rbx, %rsi
callq 0xd935
movl %eax, %ebp
testl %eax, %eax
jne 0xcb8f
movq %rbx, (%rsp)
callq 0xcbb8
movq %rax, %rdi
callq 0xd038
xorl %ebx, %ebx
movq 0x78e7(%rip), %r12      # 0x13ff0
movl $0x32, %edi
callq 0x3170
callq 0x32c0
movl %eax, %r13d
movsbl %r13b, %r15d
cmpl $0x6f, %r15d
jg 0xc7b3
leal -0x62(%r15), %eax
cmpl $0x7, %eax
jbe 0xc7ea
leal -0x31(%r15), %r14d
cmpl $0x3, %r14d
jae 0xc804
movl %r14d, %edi
callq 0xe32a
xorb $0x1, %al
movzbl %al, %esi
movl %r14d, %edi
callq 0xe351
movl $0x8, %edx
movq %r12, %rdi
leaq 0x418f(%rip), %rsi      # 0x108f7
callq 0x3260
addl $-0x30, %r15d
movq %r12, %rdi
movl %r15d, %esi
callq 0x3340
movq %rax, %r14
movl %r15d, %edi
callq 0xe32a
testb %al, %al
leaq 0x417a(%rip), %rsi      # 0x1090a
leaq 0x4169(%rip), %rcx      # 0x10900
cmovneq %rcx, %rsi
movzbl %al, %eax
leaq 0x7(,%rax,2), %rdx
movq %r14, %rdi
callq 0x3260
jmp 0xcb0b
leal -0x70(%r15), %eax
cmpl $0x8, %eax
ja 0xc80e
leaq 0x3fbd(%rip), %rcx      # 0x10780
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x8, %edx
movq %r12, %rdi
leaq 0x4169(%rip), %rsi      # 0x10944
callq 0x3260
movl $0x1, %ebx
jmp 0xca8a
leaq 0x3f6f(%rip), %rcx      # 0x10760
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
jmp 0xcad5
cmpl $0x3f, %r15d
je 0xc896
movl %r15d, %edi
callq 0x3320
testl %eax, %eax
je 0xcb32
movl $0x10, %edx
movq %r12, %rdi
leaq 0x3fec(%rip), %rsi      # 0x10819
callq 0x3260
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %r12, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
movl $0x13, %edx
movq %r12, %rdi
leaq 0x3fc1(%rip), %rsi      # 0x1082a
callq 0x3260
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %r12, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
movl $0x13, %edx
movq %r12, %rdi
leaq 0x3f99(%rip), %rsi      # 0x1083e
callq 0x3260
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %r12, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
movl $0x13, %edx
movq %r12, %rdi
leaq 0x3f71(%rip), %rsi      # 0x10852
callq 0x3260
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %r12, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
movl $0x13, %edx
movq %r12, %rdi
leaq 0x3f49(%rip), %rsi      # 0x10866
callq 0x3260
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %r12, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
movl $0x16, %edx
movq %r12, %rdi
leaq 0x3f21(%rip), %rsi      # 0x1087a
callq 0x3260
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %r12, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
movl $0x19, %edx
movq %r12, %rdi
leaq 0x3efc(%rip), %rsi      # 0x10891
callq 0x3260
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %r12, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
movl $0x11, %edx
movq %r12, %rdi
leaq 0x3eda(%rip), %rsi      # 0x108ab
callq 0x3260
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %r12, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
movl $0xd, %edx
movq %r12, %rdi
leaq 0x3eb0(%rip), %rsi      # 0x108bd
callq 0x3260
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %r12, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
movl $0x16, %edx
movq %r12, %rdi
leaq 0x3e82(%rip), %rsi      # 0x108cb
callq 0x3260
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3200
movsbl %al, %esi
movq %r12, %rdi
callq 0x3050
movq %rax, %rdi
callq 0x3150
movl $0x14, %edx
movq %r12, %rdi
leaq 0x3e5d(%rip), %rsi      # 0x108e2
callq 0x3260
movq %r12, %r14
jmp 0xcb0b
callq 0xcbb8
movq %rax, %rdi
callq 0xd038
leaq 0x177fd(%rip), %rax     # 0x242a0
cmpb $0x0, (%rax)
jne 0xcb32
movl $0xf, %edx
movq %r12, %rdi
leaq 0x3e57(%rip), %rsi      # 0x10912
callq 0x3260
callq 0xcbb8
movl 0x67c(%rax), %esi
movq %r12, %rdi
jmp 0xcb03
movl $0x1, %edi
callq 0xd197
movl $0xf, %edx
movq 0x74e2(%rip), %r14      # 0x13fc8
movq %r14, %rdi
leaq 0x3e22(%rip), %rsi      # 0x10912
callq 0x3260
callq 0xcbb8
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, %r13d
cmpl $0xff000000, %r13d      # imm = 0xFF000000
je 0xcb8a
testl %ebx, %ebx
je 0xc709
jmp 0xcb8a
movq (%rsp), %rdi
movq (%rdi), %rax
leaq 0x17749(%rip), %rcx     # 0x242a0
cmpb $0x0, (%rcx)
je 0xcb73
callq *0x10(%rax)
movl $0xf, %edx
movq %r12, %rdi
leaq 0x3dc6(%rip), %rsi      # 0x10934
jmp 0xca85
callq *0x18(%rax)
movl $0x11, %edx
movq %r12, %rdi
leaq 0x3d9d(%rip), %rsi      # 0x10922
jmp 0xca85
callq 0xd657
movl %ebp, %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