// File: /workspace/github_c_makefile_star2_O2/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 0x9c477(%rip), %rsi     # 0x11f4e2
callq 0xe07f7
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0xdecaf
movq %rax, 0x30(%rsp)
movq 0x18(%rbx), %rax
cmpq $0x0, 0x18(%rax)
jle 0x83414
leaq 0x10(%rsp), %rbp
andq $0x0, (%rbp)
pushq $0x18
popq %rsi
movq %rbx, %rdi
callq 0xdecaf
movq %rax, 0x28(%rsp)
addq $0x8, %rax
movq %rax, 0x38(%rsp)
movb $0x1, %r15b
leaq 0x18(%rsp), %rdx
xorl %eax, %eax
movq 0x18(%rbx), %rdi
cmpq 0x18(%rdi), %rax
jge 0x83402
movq %rbp, %rsi
movq %rdx, %r14
callq 0xe3f2a
movq %r14, %rdx
movl %eax, %r13d
cmpb $-0x1, %al
setne %al
sete %cl
orb %cl, %r15b
testb $0x1, %r15b
movl %eax, %r15d
jne 0x833d3
movb $0x1, %r15b
testb %r13b, %r13b
je 0x833d3
movzbl %r13b, %eax
movl %eax, 0x20(%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 %r13b, 0x40(%rsp)
xorl %eax, %eax
leaq 0x103f5c(%rip), %rcx    # 0x1870a0
leaq 0x20(%rax), %r12
cmpq $0x280, %r12            # imm = 0x280
je 0x831c7
cmpb %r13b, (%rax,%rcx)
movq %r12, %rax
jne 0x83144
movl -0x1c(%r12,%rcx), %eax
movl %eax, 0x44(%rsp)
movq -0x8(%r12,%rcx), %rax
movq %rax, 0xa8(%rsp)
movq -0x18(%r12,%rcx), %rbp
leaq 0x48(%rsp), %rdi
movq %rbp, %rsi
pushq $0xc
popq %rdx
callq 0xde492
leaq 0x103f14(%rip), %rax    # 0x1870a0
movq -0x10(%r12,%rax), %r8
testq %r8, %r8
je 0x831af
leaq 0x54(%rsp), %rdi
pushq $0x50
popq %rsi
leaq 0xb8d0d(%rip), %rdx     # 0x13beb2
movq %rbp, %rcx
xorl %eax, %eax
callq 0xde40c
cmpb $0x0, 0x54(%rsp)
leaq 0x48(%rsp), %rsi
leaq 0x10(%rsp), %rbp
movl 0x20(%rsp), %r12d
jne 0x83204
jmp 0x831f7
movl %r13d, %eax
andb $-0x10, %al
cmpb $0x30, %al
jne 0x831d8
movl $0x100, 0x44(%rsp)      # imm = 0x100
leaq 0x48(%rsp), %rdi
leaq 0x9a70c(%rip), %r12     # 0x11d8f0
movq %r12, %rsi
pushq $0xc
popq %rdx
callq 0xde492
movq %r12, %rsi
movl 0x20(%rsp), %r12d
leaq 0x54(%rsp), %rdi
pushq $0x50
popq %rdx
callq 0xde492
testb $0x1, 0x45(%rsp)
jne 0x832ab
movq 0x18(%rbx), %rdi
movq 0x10(%rsp), %rsi
callq 0xe3f46
movq 0x10(%rsp), %r13
cmpq $0x2, %r13
jl 0x83402
movq %rax, %r12
addq $0x2, %r13
leaq -0x2(%rax), %rbp
movzbl 0x40(%rsp), %edx
leal -0x4(%r13), %r8d
movl %ebp, (%rsp)
movq %rbx, %rdi
leaq 0x9b385(%rip), %rsi     # 0x11e5d2
leaq 0x54(%rsp), %rcx
movl %r13d, %r9d
xorl %eax, %eax
callq 0xde896
cmpq $0x0, 0xa8(%rsp)
je 0x8329c
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0x40(%rsp), %rcx
movq %r13, %r8
movq %rbp, %r9
callq *0xa8(%rsp)
movq %rbx, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
addq %r12, 0x10(%rsp)
leaq 0x10(%rsp), %rbp
jmp 0x833d0
movl 0x10(%rsp), %r8d
addl $-0x2, %r8d
movq %rbx, %rdi
leaq 0x9a5ce(%rip), %rsi     # 0x11d88c
movl %r12d, %edx
leaq 0x54(%rsp), %rcx
xorl %eax, %eax
callq 0xde896
cmpb $-0x6d, %r13b
je 0x832e8
cmpl $0xd9, %r12d
movq %r14, %rdx
jne 0x833d3
jmp 0x83402
movq 0x10(%rsp), %r13
movq %r13, 0x18(%rsp)
movq 0x18(%rbx), %rax
movq 0x18(%rax), %r12
movq %rbx, %rdi
leaq 0x9b398(%rip), %rsi     # 0x11e69c
movl %r13d, %edx
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rbp
testq %rbp, %rbp
jle 0x83368
subq %r13, %rbp
movq 0x38(%rsp), %r12
addq (%r12), %rbp
testq %rbp, %rbp
movl $0x0, %eax
cmovleq %rax, %rbp
movq %rbx, %rdi
leaq 0x9c695(%rip), %rsi     # 0x11f9de
movq %rbp, %rdx
movq %r13, %rcx
xorl %eax, %eax
callq 0xde896
xorps %xmm0, %xmm0
movups %xmm0, (%r12)
movq %rbp, %r12
leaq 0x10(%rsp), %rbp
jmp 0x833c0
subq %r13, %r12
movq %r12, 0x20(%rsp)
movq %r13, %rdx
leaq 0x10(%rsp), %rbp
movq 0x18(%rbx), %rdi
cmpq 0x18(%rdi), %rdx
jge 0x833bb
movq %r14, %r12
movq %r14, %rsi
callq 0xe3f2a
cmpb $-0x1, %al
je 0x83398
movq 0x18(%rsp), %rdx
jmp 0x83378
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe3f2a
movq 0x18(%rsp), %rdx
cmpb $-0x70, %al
jb 0x83378
cmpb $-0x1, %al
jne 0x833dd
decq %rdx
movq %rdx, 0x18(%rsp)
jmp 0x83378
movq 0x20(%rsp), %r12
movq %rbx, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
addq %r12, 0x10(%rsp)
movq %r14, %rdx
movq 0x10(%rsp), %rax
jmp 0x830bc
addq $-0x2, %rdx
movq %rdx, 0x18(%rsp)
movq %rdx, %r12
subq %r13, %r12
movq %rbx, %rdi
leaq 0x9b2b6(%rip), %rsi     # 0x11e6ac
movl %r12d, %ecx
xorl %eax, %eax
callq 0xde896
jmp 0x833c0
movq 0x28(%rsp), %rsi
testq %rsi, %rsi
je 0x83414
movq %rbx, %rdi
callq 0xded32
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
callq 0xded32
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq