// File: /workspace/github_c_makefile_star2_O3/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 $0x78, %rsp
movq %rdi, %r12
movl $0x8, %esi
callq 0xe8b2b
movq %rax, %rbx
movq 0x18(%r12), %rdi
movl $0x2, %esi
callq 0xeebc8
movq %rax, %r14
movq 0x18(%r12), %rdi
movl $0x4, %esi
callq 0xeebc8
movq %rax, (%rbx)
movq 0x18(%r12), %rdi
movl $0x6, %esi
callq 0xeebc8
shll $0x14, %eax
shll $0x4, %r14d
addl %eax, %r14d
movl (%rbx), %ecx
leaq 0xf2a98(%rip), %rsi     # 0x112b41
movq %r12, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r12), %rdi
movq 0x18(%rdi), %rdx
addq $-0x10, %rdx
movl $0x10, %esi
callq 0xf1388
movq %rax, %r14
movq %rbx, 0x20(%rsp)
movq (%rbx), %rbx
cmpq $0x80, %rbx
je 0x200ee
cmpq $0x100, %rbx            # imm = 0x100
jne 0x2051f
shrq $0x4, %rbx
xorl %ebp, %ebp
movq %r14, 0x30(%rsp)
movq %rbx, 0x48(%rsp)
movq 0x20(%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(%r14), %rax
jg 0x20532
movq %r12, %rdi
leaq 0xf2a45(%rip), %rsi     # 0x112b81
movl %ebp, %edx
movq %rcx, 0x60(%rsp)
xorl %eax, %eax
callq 0xe8617
movq %r12, %rdi
movl $0x1, %esi
callq 0xe8a15
xorl %r13d, %r13d
movq %rbp, 0x50(%rsp)
movq %r13, %r15
shlq $0x4, %r15
addq 0x60(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0xeead3
testb %al, %al
je 0x20284
movq %r12, %rdi
leaq 0xf2a13(%rip), %rsi     # 0x112b9b
movl %ebp, %edx
movq %r13, 0x68(%rsp)
movl %r13d, %ecx
movl %r15d, %r8d
xorl %eax, %eax
callq 0xe8617
movq %r12, %rdi
movl $0x1, %esi
callq 0xe8a15
movq %r14, %rdi
movq %r15, %rsi
callq 0xeead3
movzbl %al, %ebp
movq %r12, %rdi
leaq 0x10feb5(%rip), %rsi    # 0x130076
movl %ebp, %edx
xorl %eax, %eax
callq 0xe8617
testb $0x40, %bpl
je 0x2026d
leaq 0x1(%r15), %rsi
movq %r14, %rdi
callq 0xeebc8
movq %rax, %r13
leaq 0x3(%r15), %rsi
movq %r14, %rdi
callq 0xeebc8
movq %rax, %rbp
movq %r12, %rdi
leaq 0xf29c2(%rip), %rsi     # 0x112bbe
movl %ebp, %edx
movl %r13d, %ecx
xorl %eax, %eax
callq 0xe8617
testq %rbp, %rbp
jle 0x2023e
movq %r12, %rdi
cmpq $0x2d1, %rbp            # imm = 0x2D1
jb 0x20224
leaq 0xf29ba(%rip), %rsi     # 0x112bda
movl %ebp, %edx
jmp 0x20237
cmpq $0x2d1, %r13            # imm = 0x2D1
jl 0x20295
leaq 0xf29be(%rip), %rsi     # 0x112bf2
movl %r13d, %edx
xorl %eax, %eax
callq 0xe9295
xorl %r15d, %r15d
xorl %esi, %esi
xorl %r13d, %r13d
xorl %ebx, %ebx
movq %r12, %rdi
callq 0xea50e
movq %rbx, %rdi
callq 0xf6753
movq %r15, %rdi
callq 0xf6753
movq %r13, %rdi
callq 0xf052b
movq 0x48(%rsp), %rbx
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq 0x50(%rsp), %rbp
movq 0x68(%rsp), %r13
incq %r13
cmpq %rbx, %r13
jne 0x2015f
jmp 0x20503
callq 0xf6410
movq %rax, %rbx
movq %r12, %rdi
callq 0xf6410
movq %rax, 0x28(%rsp)
leaq 0x5(%r15), %rsi
movl $0x8, %edx
movq %r14, %rdi
movq %rbx, %rcx
xorl %r8d, %r8d
movl $0x401, %r9d            # imm = 0x401
callq 0xefbd7
addq $0xd, %r15
movl $0x3, %edx
movq %r14, %rdi
movq %r15, %rsi
movq 0x28(%rsp), %r15
movq %r15, %rcx
xorl %r8d, %r8d
movl $0x401, %r9d            # imm = 0x401
callq 0xefbd7
movq %rbx, %rdi
callq 0xf705c
movq %rax, 0x10(%rsp)
movq %r15, %rdi
callq 0xf705c
movq %r12, %rdi
leaq 0xf2900(%rip), %rsi     # 0x112c0b
movq 0x10(%rsp), %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
callq 0xf64a0
movq %r15, %rdi
callq 0xf64a0
movq %rbx, 0x18(%rsp)
cmpq $0x0, 0x10(%rbx)
jne 0x20345
movq 0x18(%rsp), %rdi
movl $0x5f, %esi
callq 0xf6542
movq %r15, %rdi
callq 0xf67a3
testl %eax, %eax
movq 0x18(%rsp), %rbx
je 0x2036e
movq %rbx, %rdi
movl $0x2e, %esi
callq 0xf6542
movq %rbx, %rdi
movq %r15, %rsi
callq 0xf6509
movq %r12, %rdi
callq 0xea504
movq %rax, %r14
movq %r12, %rdi
movq %rax, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0xea53f
movb $0x1, 0x8(%r14)
movq %r12, %rdi
xorl %esi, %esi
movq %r14, 0x40(%rsp)
movq %r14, %rdx
xorl %ecx, %ecx
callq 0xefda1
testq %r13, %r13
movl $0x0, %ecx
cmovleq %rcx, %r13
movq %r13, 0x58(%rsp)
movq %rax, 0x38(%rsp)
xorl %ebx, %ebx
movq $0x0, 0x10(%rsp)
xorl %r13d, %r13d
cmpq %r13, 0x58(%rsp)
je 0x204e5
testq %rbp, %rbp
je 0x20421
movq 0x20(%rsp), %rax
movq (%rax), %rcx
leaq -0x1(%rbp), %rax
movq %rcx, %rbx
imulq %rax, %rbx
movq %rcx, 0x10(%rsp)
cmpq $0x100, %rcx            # imm = 0x100
jne 0x20421
cmpq $0x3, %rbp
ja 0x20410
shlq $0x7, %rax
movl $0x80, %ecx
movq %rcx, 0x10(%rsp)
movq %rax, %rbx
jmp 0x20421
addq $-0x180, %rbx           # imm = 0xFE80
movl $0x100, %eax            # imm = 0x100
movq %rax, 0x10(%rsp)
movq %rbx, 0x70(%rsp)
movq %r12, %rdi
leaq 0xf27ed(%rip), %rsi     # 0x112c1d
movl %r13d, %edx
movl %ebp, %ecx
movl %ebx, %r8d
xorl %eax, %eax
callq 0xe8617
movq %r12, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x10(%rsp), %r15
leaq (%rbx,%r15), %rdx
addq $-0x3, %rdx
movl $0x3, %ecx
movq 0x30(%rsp), %rbx
movq %rbx, %rdi
leaq 0xd(%rsp), %rsi
callq 0xee8d4
movzbl 0xd(%rsp), %eax
andl $0x3, %eax
shll $0x8, %eax
movzbl 0xe(%rsp), %ebp
orl %eax, %ebp
movzbl 0xf(%rsp), %eax
movq %r12, %r14
movl %eax, %r12d
andl $0x7f, %r12d
cmpq $0x81, %r15
cmovgeq %rax, %r12
movq %r14, %rdi
leaq 0xf278d(%rip), %rsi     # 0x112c33
movl %r12d, %edx
movl %ebp, %ecx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movq 0x70(%rsp), %rbx
movq %rbx, %rsi
movq %r12, %rdx
movq %r14, %r12
movq 0x38(%rsp), %rcx
callq 0xef481
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
incq %r13
testl %ebp, %ebp
jne 0x203c6
movq 0x30(%rsp), %r14
movq 0x28(%rsp), %r15
movq 0x18(%rsp), %rbx
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %r13
jmp 0x20248
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
incq %rbp
cmpq $0x8, %rbp
jne 0x200fe
jmp 0x20532
leaq 0xf263f(%rip), %rsi     # 0x112b65
movq %r12, %rdi
movl %ebx, %edx
xorl %eax, %eax
callq 0xe9295
movq %r14, %rdi
callq 0xf052b
movq %r12, %rdi
movq 0x20(%rsp), %rsi
callq 0xe8be2
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq