// File: /workspace/github_c_makefile_star2_O2/hfiguiere[P]exifprobe/jp2000.c
// Function: process_jp2_uinf
unsigned long
process_jp2_uinf(FILE *inptr,struct jp2box *box,struct image_summary *summary_entry,
                                                        int indent)
{
    unsigned long boxoffset,max_offset,dataoffset,tbox;
    unsigned long boxlength;
    int chpr = 0;

    if((LIST_MODE))
        chpr = list_jp2box(inptr,box,"JP2.",indent,1);
    else
        print_jp2box(inptr,box,indent);
    boxoffset = box->boxoffset;
    boxlength = box->boxlength;
    tbox = box->tbox;

    dataoffset = boxoffset + box->dataoffset;
    max_offset = boxoffset + boxlength;

    box = read_jp2box(inptr,dataoffset);
    if(box)
    {
        if((box->tbox) == JP2_ulst)
            dataoffset = process_jp2_ulst(inptr,box,indent);
        else
        {
            print_jp2box(inptr,box,indent);
            chpr += printf(" NOT a ULST box!");
            dataoffset += box->boxlength;
        }
        box = read_jp2box(inptr,dataoffset);
        if(box)
            dataoffset = process_jp2_de(inptr,box,indent);
        else
        {
            print_jp2box(inptr,box,indent);
            chpr += printf(" NOT a DE box!");
            dataoffset += box->boxlength;
        }
    }

    if((PRINT_SECTION))
    {
        chpr = newline(chpr);
        print_tag_address(SECTION,dataoffset - 1,indent,"@");
        print_jp2type(box->tbox,1);
    }
    chpr = newline(chpr);
    return(max_offset);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq %rsi, %r15
movq %rdi, %r12
leaq 0x36a8c(%rip), %rax     # 0x57180
movzwl 0x2(%rax), %eax
testw $0x104, %ax             # imm = 0x104
je 0x2070f
movq %r12, %rdi
movq %r15, %rsi
movl %ebx, %edx
callq 0x1f71d
xorl %ebp, %ebp
jmp 0x20729
leaq 0x26559(%rip), %rdx     # 0x46c6f
pushq $0x1
popq %r8
movq %r12, %rdi
movq %r15, %rsi
movl %ebx, %ecx
callq 0x1f7e6
movl %eax, %ebp
movq 0x18(%r15), %rax
movq 0x20(%r15), %r14
movq 0x10(%r15), %r15
movq %rax, (%rsp)
addq %rax, %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x1f508
testq %rax, %rax
je 0x2076b
movq %rax, %r13
cmpq $0x75637374, 0x8(%rax)  # imm = 0x75637374
jne 0x20770
movq %r12, %rdi
movq %r13, %rsi
movl %ebx, %edx
callq 0x21d48
movq %rax, %r15
jmp 0x20791
xorl %r13d, %r13d
jmp 0x207d8
movq %r12, %rdi
movq %r13, %rsi
movl %ebx, %edx
callq 0x1f71d
leaq 0x265c5(%rip), %rdi     # 0x46d49
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
addq 0x20(%r13), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x1f508
testq %rax, %rax
je 0x207b6
movq %rax, %r13
movq %r12, %rdi
movq %rax, %rsi
movl %ebx, %edx
callq 0x21f92
movq %rax, %r15
jmp 0x207d8
xorl %r13d, %r13d
xorl %edi, %edi
callq 0x160f7
leaq 0x26593(%rip), %rdi     # 0x46d5a
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
addq 0x20, %r15
leaq 0x369a1(%rip), %rax     # 0x57180
testb $0x4, 0x2(%rax)
je 0x20813
movl %ebp, %edi
callq 0x160f7
movl %eax, %ebp
decq %r15
leaq 0x1e8e4(%rip), %rcx     # 0x3f0dc
movl $0x40000, %edi          # imm = 0x40000
movq %r15, %rsi
movl %ebx, %edx
callq 0x5100
movq 0x8(%r13), %rdi
pushq $0x1
popq %rsi
callq 0x1f649
addq (%rsp), %r14
movl %ebp, %edi
callq 0x160f7
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq