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

	de_declare_fmt(c, "JPEG 2000 codestream");
	d = de_malloc(c, sizeof(lctx));
	do_j2c_internal(c, d);
	de_free(c, d);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdi, %rbx
leaq 0xa3d3b(%rip), %rsi     # 0x12c46a
callq 0xeb6d6
movl $0x4, %esi
movq %rbx, %rdi
callq 0xe969b
movq %rax, 0x30(%rsp)
movq 0x18(%rbx), %rax
cmpq $0x0, 0x18(%rax)
jle 0x88ad7
movq $0x0, 0x10(%rsp)
movl $0x18, %esi
movq %rbx, %rdi
callq 0xe969b
movq %rax, 0x28(%rsp)
movq 0x10(%rsp), %rax
movq 0x18(%rbx), %rdi
cmpq 0x18(%rdi), %rax
jge 0x88ac5
movq 0x28(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x38(%rsp)
movb $0x1, 0xf(%rsp)
leaq 0x10(%rsp), %r12
leaq 0xfb84e(%rip), %r13     # 0x183ff0
movq %r12, %rsi
callq 0xef14d
movl %eax, %r15d
cmpb $-0x1, %al
setne %al
sete %cl
orb 0xf(%rsp), %cl
movb %al, 0xf(%rsp)
testb $0x1, %cl
jne 0x88a43
movb $0x1, 0xf(%rsp)
testb %r15b, %r15b
je 0x88a43
movzbl %r15b, %eax
movl %eax, 0x24(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0xa0(%rsp)
movaps %xmm0, 0x90(%rsp)
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x70(%rsp)
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movb %r15b, 0x40(%rsp)
movl $0x18, %ebp
xorl %r12d, %r12d
cmpb %r15b, -0x18(%rbp,%r13)
jne 0x88877
movl -0x14(%rbp,%r13), %eax
movl %eax, 0x44(%rsp)
movq (%rbp,%r13), %rax
movq %rax, 0xa8(%rsp)
movq -0x10(%rbp,%r13), %r14
movl $0xc, %edx
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0xe8ded
movq -0x8(%rbp,%r13), %r8
movl $0x5, %r12d
testq %r8, %r8
je 0x88877
movl $0x50, %esi
leaq 0x54(%rsp), %rdi
leaq 0xc057d(%rip), %rdx     # 0x148dea
movq %r14, %rcx
xorl %eax, %eax
callq 0xe8d67
testl %r12d, %r12d
jne 0x888be
addq $0x20, %rbp
cmpq $0x278, %rbp            # imm = 0x278
jne 0x88815
movl %r15d, %eax
andb $-0x10, %al
cmpb $0x30, %al
jne 0x88897
orb $0x1, 0x45(%rsp)
movl $0xc, %edx
leaq 0x48(%rsp), %rdi
leaq 0xa1fe8(%rip), %r14     # 0x12a890
movq %r14, %rsi
callq 0xe8ded
movq %r14, %rsi
leaq 0x10(%rsp), %r12
movl 0x24(%rsp), %ebp
jmp 0x888d9
cmpl $0x5, %r12d
leaq 0x10(%rsp), %r12
movl 0x24(%rsp), %ebp
jne 0x888e8
cmpb $0x0, 0x54(%rsp)
leaq 0x48(%rsp), %rsi
jne 0x888e8
movl $0x50, %edx
leaq 0x54(%rsp), %rdi
callq 0xe8ded
testb $0x1, 0x45(%rsp)
jne 0x88981
movq 0x18(%rbx), %rdi
movq 0x10(%rsp), %rsi
callq 0xef169
movq 0x10(%rsp), %rbp
cmpq $0x2, %rbp
jl 0x88ac5
movq %rax, %r15
addq $0x2, %rbp
leaq -0x2(%rax), %r14
movzbl 0x40(%rsp), %edx
leal -0x4(%rbp), %r8d
movl %r14d, (%rsp)
movq %rbx, %rdi
leaq 0xa2c40(%rip), %rsi     # 0x12b572
leaq 0x54(%rsp), %rcx
movl %ebp, %r9d
xorl %eax, %eax
callq 0xe9226
cmpq $0x0, 0xa8(%rsp)
je 0x88a3e
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0x40(%rsp), %rcx
movq %rbp, %r8
movq %r14, %r9
callq *0xa8(%rsp)
jmp 0x88a31
movl 0x10(%rsp), %r8d
addl $-0x2, %r8d
movq %rbx, %rdi
leaq 0xa1e98(%rip), %rsi     # 0x12a82c
movl %ebp, %edx
leaq 0x54(%rsp), %rcx
xorl %eax, %eax
callq 0xe9226
cmpb $-0x6d, %r15b
je 0x889b9
cmpl $0xd9, %ebp
jne 0x88a43
jmp 0x88ac5
movq 0x10(%rsp), %rbp
movq %rbp, 0x18(%rsp)
movq 0x18(%rbx), %rax
movq 0x18(%rax), %r15
movq %rbx, %rdi
leaq 0xa2c67(%rip), %rsi     # 0x12b63c
movl %ebp, %edx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x28(%rsp), %rax
movq 0x10(%rax), %r14
testq %r14, %r14
jle 0x88a58
subq %rbp, %r14
movq 0x38(%rsp), %r15
addq (%r15), %r14
testq %r14, %r14
movl $0x0, %eax
cmovleq %rax, %r14
movq %rbx, %rdi
leaq 0xa3f4c(%rip), %rsi     # 0x12c966
movq %r14, %rdx
movq %rbp, %rcx
xorl %eax, %eax
callq 0xe9226
xorps %xmm0, %xmm0
movups %xmm0, (%r15)
movq %r14, %r15
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
addq %r15, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq 0x18(%rbx), %rdi
cmpq 0x18(%rdi), %rax
jl 0x887a2
jmp 0x88ac5
subq %rbp, %r15
movq 0x18(%rsp), %rax
movq 0x18(%rbx), %rdi
cmpq 0x18(%rdi), %rax
jge 0x88a31
leaq 0x18(%rsp), %rsi
callq 0xef14d
cmpb $-0x1, %al
jne 0x88a5b
movq 0x18(%rbx), %rdi
leaq 0x18(%rsp), %rsi
callq 0xef14d
cmpb $-0x70, %al
jb 0x88a5b
movq 0x18(%rsp), %rdx
cmpb $-0x1, %al
jne 0x88a9d
decq %rdx
movq %rdx, 0x18(%rsp)
jmp 0x88a5b
addq $-0x2, %rdx
movq %rdx, 0x18(%rsp)
movq %rdx, %r15
subq %rbp, %r15
movq %rbx, %rdi
leaq 0xa2b96(%rip), %rsi     # 0x12b64c
movl %r15d, %ecx
xorl %eax, %eax
callq 0xe9226
jmp 0x88a31
movq 0x28(%rsp), %rsi
testq %rsi, %rsi
je 0x88ad7
movq %rbx, %rdi
callq 0xe9752
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
callq 0xe9752
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq