// File: /workspace/github_c_makefile_star2_O1/jsummers[P]deark/modules/atari-dsk.c
// Function: de_run_atr
static void de_run_atr(deark *c, de_module_params *mparams)
{
	lctx *d = NULL;

	d = de_malloc(c, sizeof(lctx));

	do_atr(c, d);

	de_free(c, d);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
movl $0x8, %esi
callq 0xe969b
movq %rax, %r15
movq 0x18(%rbx), %rdi
movl $0x2, %esi
callq 0xef1ca
movq %rax, %r14
movq 0x18(%rbx), %rdi
movl $0x4, %esi
callq 0xef1ca
movq %rax, (%r15)
movq 0x18(%rbx), %rdi
movl $0x6, %esi
callq 0xef1ca
shll $0x14, %eax
shll $0x4, %r14d
addl %eax, %r14d
movl (%r15), %ecx
leaq 0xf2b83(%rip), %rsi     # 0x112b31
movq %rbx, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq 0x18(%rdi), %rdx
addq $-0x10, %rdx
movl $0x10, %esi
callq 0xf1988
movq %rax, %r13
movq %r15, 0x18(%rsp)
movq (%r15), %r14
cmpq $0x80, %r14
je 0x1fff2
cmpq $0x100, %r14            # imm = 0x100
jne 0x20451
leaq 0xf(%r14), %r12
testq %r14, %r14
cmovnsq %r14, %r12
sarq $0x4, %r12
xorl %ebp, %ebp
movq %rbx, 0x40(%rsp)
movq %r13, 0x38(%rsp)
movq %r14, 0x50(%rsp)
movq %r12, 0x60(%rsp)
movq 0x18(%rsp), %rax
movq (%rax), %rax
movq %rbp, %rdx
orq $0x168, %rdx            # imm = 0x168
imulq %rax, %rdx
leaq -0x180(%rdx), %rcx
cmpq $0x100, %rax            # imm = 0x100
cmovneq %rdx, %rcx
addq %rcx, %rax
cmpq 0x18(%r13), %rax
jg 0x20465
movq %rbx, %rdi
leaq 0xf2b1c(%rip), %rsi     # 0x112b71
movl %ebp, %edx
movq %rcx, 0x78(%rsp)
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
cmpq $0x10, %r14
jl 0x20430
xorl %r15d, %r15d
movq %rbp, 0x68(%rsp)
movq %r15, %r14
shlq $0x4, %r14
addq 0x78(%rsp), %r14
movq %r13, %rdi
movq %r14, %rsi
callq 0xef0d5
testb %al, %al
je 0x201ae
movq %rbx, %rdi
leaq 0xf2ae0(%rip), %rsi     # 0x112b8b
movl %ebp, %edx
movq %r15, 0x80(%rsp)
movl %r15d, %ecx
movl %r14d, %r8d
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq %r13, %rdi
movq %r14, %rsi
callq 0xef0d5
movzbl %al, %ebp
movq %rbx, %rdi
leaq 0x10fc83(%rip), %rsi    # 0x12fd6a
movl %ebp, %edx
xorl %eax, %eax
callq 0xe9226
testb $0x40, %bpl
je 0x20194
leaq 0x1(%r14), %rsi
movq %r13, %rdi
callq 0xef1ca
movq %rax, %rbp
leaq 0x3(%r14), %rsi
movq %r13, %rdi
callq 0xef1ca
movq %rax, %r12
movq %rbx, %rdi
leaq 0xf2a8c(%rip), %rsi     # 0x112bae
movl %r12d, %edx
movl %ebp, %ecx
xorl %eax, %eax
callq 0xe9226
testq %r12, %r12
jle 0x20164
movq %rbx, %rdi
cmpq $0x2d1, %r12            # imm = 0x2D1
jl 0x2014b
leaq 0xf2a84(%rip), %rsi     # 0x112bca
movl %r12d, %edx
jmp 0x2015d
cmpq $0x2d1, %rbp            # imm = 0x2D1
jl 0x201bf
leaq 0xf2a87(%rip), %rsi     # 0x112be2
movl %ebp, %edx
xorl %eax, %eax
callq 0xe9df7
xorl %r14d, %r14d
xorl %esi, %esi
xorl %r12d, %r12d
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0xea9b3
movq %r15, %rdi
callq 0xf6bb0
movq %r14, %rdi
callq 0xf6bb0
movq %r12, %rdi
callq 0xf0b13
movq 0x60(%rsp), %r12
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq 0x68(%rsp), %rbp
movq 0x80(%rsp), %r15
incq %r15
cmpq %r12, %r15
jne 0x20082
jmp 0x20430
callq 0xf6870
movq %rax, %r15
movq %rbx, %rdi
callq 0xf6870
movq %rax, 0x30(%rsp)
leaq 0x5(%r14), %rsi
movl $0x8, %edx
movq %r13, %rdi
movq %r15, %rcx
xorl %r8d, %r8d
movl $0x401, %r9d            # imm = 0x401
callq 0xf01b0
addq $0xd, %r14
movl $0x3, %edx
movq %r13, %rdi
movq %r14, %rsi
movq 0x30(%rsp), %r14
movq %r14, %rcx
xorl %r8d, %r8d
movl $0x401, %r9d            # imm = 0x401
callq 0xf01b0
movq %r15, %rdi
callq 0xf74bd
movq %rax, 0x28(%rsp)
movq %r14, %rdi
callq 0xf74bd
movq %rbx, %rdi
leaq 0xf29c6(%rip), %rsi     # 0x112bfb
movq 0x28(%rsp), %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xe9226
movq %r15, %rdi
callq 0xf6900
movq %r14, %rdi
callq 0xf6900
movq %r15, 0x10(%rsp)
cmpq $0x0, 0x10(%r15)
jne 0x2026f
movq 0x10(%rsp), %rdi
movl $0x5f, %esi
callq 0xf69a2
movq %r14, %rdi
callq 0xf6c00
testl %eax, %eax
movq %r14, %r15
movq 0x10(%rsp), %r14
je 0x2029b
movq %r14, %rdi
movl $0x2e, %esi
callq 0xf69a2
movq %r14, %rdi
movq %r15, %rsi
callq 0xf6969
movq %rbx, %rdi
callq 0xea9a9
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0xea9e4
movb $0x1, 0x8(%r15)
movq %rbx, %rdi
xorl %esi, %esi
movq %r15, 0x58(%rsp)
movq %r15, %rdx
xorl %ecx, %ecx
callq 0xf037a
testq %rbp, %rbp
movl $0x0, %ecx
cmovleq %rcx, %rbp
movq %rax, 0x48(%rsp)
xorl %ebx, %ebx
movq $0x0, 0x20(%rsp)
xorl %r14d, %r14d
movq %rbp, 0x70(%rsp)
cmpq %r14, %rbp
je 0x2040d
testq %r12, %r12
jle 0x20343
movq 0x18(%rsp), %rax
movq (%rax), %rcx
leaq -0x1(%r12), %rax
movq %rcx, %rbx
imulq %rax, %rbx
movq %rcx, 0x20(%rsp)
cmpq $0x100, %rcx            # imm = 0x100
jne 0x20343
cmpq $0x3, %r12
jg 0x2033c
shlq $0x7, %rax
movl $0x80, %ecx
movq %rcx, 0x20(%rsp)
movq %rax, %rbx
jmp 0x20343
addq $-0x180, %rbx           # imm = 0xFE80
movq %rbx, 0x28(%rsp)
movq 0x40(%rsp), %r13
movq %r13, %rdi
leaq 0xf28b6(%rip), %rsi     # 0x112c0d
movl %r14d, %edx
movl %r12d, %ecx
movl %ebx, %r8d
xorl %eax, %eax
callq 0xe9226
movq %r13, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x20(%rsp), %r15
leaq (%rbx,%r15), %rdx
addq $-0x3, %rdx
movl $0x3, %ecx
movq 0x38(%rsp), %rbx
movq %rbx, %rdi
leaq 0xd(%rsp), %rsi
callq 0xeeee8
movzbl 0xd(%rsp), %eax
andl $0x3, %eax
shll $0x8, %eax
movzbl 0xe(%rsp), %r12d
orl %eax, %r12d
movzbl 0xf(%rsp), %eax
movl %eax, %ebp
andl $0x7f, %ebp
cmpq $0x81, %r15
cmovgeq %rax, %rbp
movq %r13, %rdi
leaq 0xf2858(%rip), %rsi     # 0x112c23
movl %ebp, %edx
movl %r12d, %ecx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movq 0x28(%rsp), %rbx
movq %rbx, %rsi
movq %rbp, %rdx
movq 0x48(%rsp), %rcx
callq 0xefabc
movq %r13, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
incq %r14
testl %r12d, %r12d
movq 0x70(%rsp), %rbp
jne 0x202f3
movq 0x40(%rsp), %rbx
movq 0x38(%rsp), %r13
movq 0x30(%rsp), %r14
movq 0x10(%rsp), %r15
movq 0x58(%rsp), %rsi
movq 0x48(%rsp), %r12
jmp 0x2016f
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
incq %rbp
cmpq $0x8, %rbp
movq 0x50(%rsp), %r14
jne 0x20017
jmp 0x20465
leaq 0xf26fd(%rip), %rsi     # 0x112b55
movq %rbx, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0xe9df7
movq %r13, %rdi
callq 0xf0b13
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
callq 0xe9752
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq