// File: /workspace/github_c_makefile_star2_O3/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 0xa472f(%rip), %rsi     # 0x12c752
callq 0xeb125
movl $0x4, %esi
movq %rbx, %rdi
callq 0xe8b2b
movq %rax, 0x30(%rsp)
movq 0x18(%rbx), %rax
cmpq $0x0, 0x18(%rax)
jle 0x883e6
movq $0x0, 0x10(%rsp)
movl $0x18, %esi
movq %rbx, %rdi
callq 0xe8b2b
movq %rax, 0x28(%rsp)
movq 0x18(%rbx), %rdi
cmpq $0x0, 0x18(%rdi)
jle 0x883d4
movq 0x28(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x38(%rsp)
movb $0x1, %bpl
leaq 0x10(%rsp), %r13
leaq 0xfc000(%rip), %r15     # 0x184090
movq %r13, %rsi
callq 0xeeb4b
movl %eax, %r14d
cmpb $-0x1, %al
setne %al
sete %cl
orb %bpl, %cl
movl %eax, %ebp
testb $0x1, %cl
jne 0x8839a
movb $0x1, %bpl
testb %r14b, %r14b
je 0x8839a
movzbl %r14b, %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 %r14b, 0x40(%rsp)
movl $0x18, %r12d
cmpb %r14b, -0x18(%r12,%r15)
je 0x88147
addq $0x20, %r12
cmpq $0x278, %r12            # imm = 0x278
jne 0x880ff
movl %r14d, %eax
andb $-0x10, %al
cmpb $0x30, %al
jne 0x88124
movl $0x100, 0x44(%rsp)      # imm = 0x100
movl $0xc, %edx
leaq 0x48(%rsp), %rdi
leaq 0xa2a2b(%rip), %r12     # 0x12ab60
movq %r12, %rsi
callq 0xe8219
movq %r12, %rsi
movl 0x20(%rsp), %r12d
jmp 0x881ae
movl -0x14(%r12,%r15), %eax
movl %eax, 0x44(%rsp)
movq (%r12,%r15), %rax
movq %rax, 0xa8(%rsp)
movq -0x10(%r12,%r15), %r13
movl $0xc, %edx
leaq 0x48(%rsp), %rdi
movq %r13, %rsi
callq 0xe8219
movq -0x8(%r12,%r15), %r8
testq %r8, %r8
je 0x88198
movl $0x50, %esi
leaq 0x54(%rsp), %rdi
leaq 0xc11f4(%rip), %rdx     # 0x149382
movq %r13, %rcx
xorl %eax, %eax
callq 0xe8193
cmpb $0x0, 0x54(%rsp)
leaq 0x48(%rsp), %rsi
leaq 0x10(%rsp), %r13
movl 0x20(%rsp), %r12d
jne 0x881bd
movl $0x50, %edx
leaq 0x54(%rsp), %rdi
callq 0xe8219
testb $0x1, 0x45(%rsp)
jne 0x8826a
movq 0x18(%rbx), %rdi
movq 0x10(%rsp), %rsi
callq 0xeeb67
movq 0x10(%rsp), %r12
cmpq $0x2, %r12
jl 0x883d4
movq %rax, %r14
addq $0x2, %r12
leaq -0x2(%rax), %r13
movzbl 0x40(%rsp), %edx
leal -0x4(%r12), %r8d
movl %r13d, (%rsp)
movq %rbx, %rdi
leaq 0xa363a(%rip), %rsi     # 0x12b842
leaq 0x54(%rsp), %rcx
movl %r12d, %r9d
xorl %eax, %eax
callq 0xe8617
cmpq $0x0, 0xa8(%rsp)
je 0x8825b
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0x40(%rsp), %rcx
movq %r12, %r8
movq %r13, %r9
callq *0xa8(%rsp)
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
addq %r14, 0x10(%rsp)
leaq 0x10(%rsp), %r13
jmp 0x8839a
movl 0x10(%rsp), %r8d
addl $-0x2, %r8d
movq %rbx, %rdi
leaq 0xa287f(%rip), %rsi     # 0x12aafc
movl %r12d, %edx
leaq 0x54(%rsp), %rcx
xorl %eax, %eax
callq 0xe8617
cmpb $-0x6d, %r14b
je 0x882a4
cmpl $0xd9, %r12d
jne 0x8839a
jmp 0x883d4
movq 0x10(%rsp), %r12
movq %r12, 0x18(%rsp)
movq 0x18(%rbx), %rax
movq 0x18(%rax), %r14
movq %rbx, %rdi
leaq 0xa364c(%rip), %rsi     # 0x12b90c
movl %r12d, %edx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x28(%rsp), %rax
movq 0x10(%rax), %r13
testq %r13, %r13
jle 0x88324
subq %r12, %r13
movq 0x38(%rsp), %r14
addq (%r14), %r13
testq %r13, %r13
movl $0x0, %eax
cmovleq %rax, %r13
movq %rbx, %rdi
leaq 0xa4948(%rip), %rsi     # 0x12cc4e
movq %r13, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0xe8617
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq %r13, %r14
leaq 0x10(%rsp), %r13
jmp 0x88388
subq %r12, %r14
movq %r14, 0x20(%rsp)
movq 0x18(%rbx), %rdi
cmpq %r12, 0x18(%rdi)
leaq 0x10(%rsp), %r13
leaq 0x18(%rsp), %r14
jle 0x88383
movq %r14, %rsi
callq 0xeeb4b
cmpb $-0x1, %al
je 0x88353
movq 0x18(%rsp), %rdx
jmp 0x88379
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xeeb4b
movq 0x18(%rsp), %rdx
cmpb $-0x70, %al
jb 0x88374
cmpb $-0x1, %al
jne 0x883af
decq %rdx
movq %rdx, 0x18(%rsp)
leaq 0x18(%rsp), %r14
movq 0x18(%rbx), %rdi
cmpq 0x18(%rdi), %rdx
jl 0x88340
movq 0x20(%rsp), %r14
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
addq %r14, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq 0x18(%rbx), %rdi
cmpq 0x18(%rdi), %rax
jl 0x88090
jmp 0x883d4
addq $-0x2, %rdx
movq %rdx, 0x18(%rsp)
movq %rdx, %r14
subq %r12, %r14
movq %rbx, %rdi
leaq 0xa3554(%rip), %rsi     # 0x12b91c
movl %r14d, %ecx
xorl %eax, %eax
callq 0xe8617
jmp 0x88388
movq 0x28(%rsp), %rsi
testq %rsi, %rsi
je 0x883e6
movq %rbx, %rdi
callq 0xe8be2
movq %rbx, %rdi
movq 0x30(%rsp), %rsi
callq 0xe8be2
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq