// File: /workspace/github_c_makefile_star2_O2/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, %rbx
pushq $0x8
popq %rsi
callq 0xdecaf
movq %rax, %r15
movq 0x18(%rbx), %rdi
pushq $0x2
popq %rsi
callq 0xe3fa3
movq %rax, %r14
movq 0x18(%rbx), %rdi
pushq $0x4
popq %rsi
callq 0xe3fa3
movq %rax, (%r15)
movq 0x18(%rbx), %rdi
pushq $0x6
popq %rsi
callq 0xe3fa3
shll $0x14, %eax
shll $0x4, %r14d
addl %eax, %r14d
movl (%r15), %ecx
leaq 0xe6021(%rip), %rsi     # 0x105b21
movq %rbx, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq 0x18(%rdi), %rdx
addq $-0x10, %rdx
pushq $0x10
popq %rsi
callq 0xe6248
movq %rax, %r12
movq %r15, 0x20(%rsp)
movq (%r15), %r15
cmpq $0x80, %r15
je 0x1fb42
cmpq $0x100, %r15            # imm = 0x100
jne 0x1ff68
shrq $0x4, %r15
xorl %ebp, %ebp
movq %r12, 0x30(%rsp)
movq %r15, 0x50(%rsp)
movq %rbx, 0x40(%rsp)
cmpq $0x8, %rbp
je 0x1ff7c
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(%r12), %rax
jg 0x1ff7c
movq %rbx, %rdi
leaq 0xe5fc1(%rip), %rsi     # 0x105b61
movl %ebp, %edx
movq %rcx, 0x68(%rsp)
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
xorl %r13d, %r13d
movq %rbp, 0x58(%rsp)
cmpq %r15, %r13
je 0x1ff55
movq %r13, %r14
shlq $0x4, %r14
addq 0x68(%rsp), %r14
movq %r12, %rdi
movq %r14, %rsi
callq 0xe3eb4
testb %al, %al
je 0x1fcec
movq %rbx, %rdi
leaq 0xe5f88(%rip), %rsi     # 0x105b7b
movl %ebp, %edx
movq %r13, 0x70(%rsp)
movl %r13d, %ecx
movl %r14d, %r8d
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movq %r12, %rdi
movq %r14, %rsi
callq 0xe3eb4
movzbl %al, %ebp
movq %rbx, %rdi
leaq 0x1031bc(%rip), %rsi    # 0x122de6
movl %ebp, %edx
xorl %eax, %eax
callq 0xde896
testb $0x40, %bpl
je 0x1fcd7
leaq 0x1(%r14), %rsi
movq %r12, %rdi
callq 0xe3fa3
movq %rax, %r13
leaq 0x3(%r14), %rsi
movq %r12, %rdi
callq 0xe3fa3
movq %rax, %rbp
movq %rbx, %rdi
leaq 0xe5f39(%rip), %rsi     # 0x105b9e
movl %ebp, %edx
movl %r13d, %ecx
xorl %eax, %eax
callq 0xde896
testq %rbp, %rbp
jle 0x1fca7
movq %rbx, %rdi
cmpq $0x2d1, %rbp            # imm = 0x2D1
jb 0x1fc8d
leaq 0xe5f31(%rip), %rsi     # 0x105bba
movl %ebp, %edx
jmp 0x1fca0
cmpq $0x2d1, %r13            # imm = 0x2D1
jl 0x1fcf4
leaq 0xe5f35(%rip), %rsi     # 0x105bd2
movl %r13d, %edx
xorl %eax, %eax
callq 0xdf2a5
xorl %r14d, %r14d
xorl %esi, %esi
xorl %r13d, %r13d
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0xdfd24
movq %r15, %rdi
callq 0xeaf3c
movq %r14, %rdi
callq 0xeaf3c
movq %r13, %rdi
callq 0xe5591
movq 0x50(%rsp), %r15
movq %rbx, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
movq 0x58(%rsp), %rbp
movq 0x70(%rsp), %r13
incq %r13
jmp 0x1fbc1
callq 0xeac74
movq %rax, %r15
movq %rbx, %rdi
callq 0xeac74
movq %rax, 0x28(%rsp)
leaq 0x5(%r14), %rsi
movq %r12, %rdi
pushq $0x8
popq %rdx
movq %r15, %rcx
xorl %r8d, %r8d
movl $0x401, %r9d            # imm = 0x401
callq 0xe4c9a
addq $0xd, %r14
movq %r12, %rdi
movq %r14, %rsi
pushq $0x3
popq %rdx
movq 0x28(%rsp), %r14
movq %r14, %rcx
xorl %r8d, %r8d
movl $0x401, %r9d            # imm = 0x401
callq 0xe4c9a
movq %r15, %rdi
callq 0xeb7e4
movq %rax, 0x10(%rsp)
movq %r14, %rdi
callq 0xeb7e4
movq %rbx, %rdi
leaq 0xe5e85(%rip), %rsi     # 0x105beb
movq 0x10(%rsp), %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xde896
movq %r15, %rdi
callq 0xead03
movq %r14, %rdi
callq 0xead03
movq %r15, 0x18(%rsp)
cmpq $0x0, 0x10(%r15)
jne 0x1fd9e
movq 0x18(%rsp), %rdi
pushq $0x5f
popq %rsi
callq 0xeada5
movq %r14, %rdi
callq 0xeaf8a
testl %eax, %eax
movq 0x18(%rsp), %r15
je 0x1fdc5
movq %r15, %rdi
pushq $0x2e
popq %rsi
callq 0xeada5
movq %r15, %rdi
movq %r14, %rsi
callq 0xead71
movq %rbx, %rdi
callq 0xdfd1a
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0xdfd55
movb $0x1, 0x8(%r14)
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, 0x48(%rsp)
movq %r14, %rdx
xorl %ecx, %ecx
callq 0xe4e62
testq %r13, %r13
movl $0x0, %ecx
cmovleq %rcx, %r13
movq %rax, 0x38(%rsp)
xorl %r15d, %r15d
movq $0x0, 0x10(%rsp)
xorl %r14d, %r14d
movq %r13, 0x60(%rsp)
cmpq %r14, %r13
je 0x1ff37
testq %rbp, %rbp
je 0x1fe77
movq 0x20(%rsp), %rax
movq (%rax), %rcx
leaq -0x1(%rbp), %rax
movq %rcx, %r15
imulq %rax, %r15
movq %rcx, 0x10(%rsp)
cmpq $0x100, %rcx            # imm = 0x100
jne 0x1fe77
cmpq $0x3, %rbp
ja 0x1fe66
shlq $0x7, %rax
movl $0x80, %ecx
movq %rcx, 0x10(%rsp)
movq %rax, %r15
jmp 0x1fe77
addq $-0x180, %r15           # imm = 0xFE80
movl $0x100, %eax            # imm = 0x100
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
leaq 0xe5d7c(%rip), %rsi     # 0x105bfd
movl %r14d, %edx
movl %ebp, %ecx
movl %r15d, %r8d
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movq %r15, %r13
movq 0x10(%rsp), %r15
leaq (%r15,%r13), %rdx
addq $-0x3, %rdx
movq 0x30(%rsp), %rbx
movq %rbx, %rdi
leaq 0xd(%rsp), %rsi
pushq $0x3
popq %rcx
callq 0xe3cb7
movzbl 0xd(%rsp), %eax
andl $0x3, %eax
shll $0x8, %eax
movzbl 0xe(%rsp), %ebp
orl %eax, %ebp
movzbl 0xf(%rsp), %eax
movl %eax, %r12d
andl $0x7f, %r12d
cmpq $0x81, %r15
movq %r13, %r15
cmovgeq %rax, %r12
movq 0x40(%rsp), %rdi
leaq 0xe5d1b(%rip), %rsi     # 0x105c13
movl %r12d, %edx
movl %ebp, %ecx
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
movq 0x40(%rsp), %rbx
movq %r13, %rsi
movq %r12, %rdx
movq 0x38(%rsp), %rcx
callq 0xe45f4
movq %rbx, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
incq %r14
testl %ebp, %ebp
movq 0x60(%rsp), %r13
jne 0x1fe1e
movq 0x30(%rsp), %r12
movq 0x28(%rsp), %r14
movq 0x18(%rsp), %r15
movq 0x48(%rsp), %rsi
movq 0x38(%rsp), %r13
jmp 0x1fcb2
movq %rbx, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
incq %rbp
jmp 0x1fb57
leaq 0xe5bd6(%rip), %rsi     # 0x105b45
movq %rbx, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xdf2a5
movq %r12, %rdi
callq 0xe5591
movq %rbx, %rdi
movq 0x20(%rsp), %rsi
callq 0xded32
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq