// File: /workspace/github_c_makefile_star2_O3/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 0x36735(%rip), %rax     # 0x58180
movzwl 0x2(%rax), %eax
testl $0x104, %eax            # imm = 0x104
je 0x21a67
movq %r12, %rdi
movq %r15, %rsi
movl %ebx, %edx
callq 0x209e0
xorl %ebp, %ebp
jmp 0x21a83
leaq 0x27251(%rip), %rdx     # 0x48cbf
movq %r12, %rdi
movq %r15, %rsi
movl %ebx, %ecx
movl $0x1, %r8d
callq 0x20aa9
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 0x207bc
testq %rax, %rax
je 0x21ac5
movq %rax, %r13
cmpq $0x75637374, 0x8(%rax)  # imm = 0x75637374
jne 0x21aca
movq %r12, %rdi
movq %r13, %rsi
movl %ebx, %edx
callq 0x23111
movq %rax, %r15
jmp 0x21aeb
xorl %r13d, %r13d
jmp 0x21b32
movq %r12, %rdi
movq %r13, %rsi
movl %ebx, %edx
callq 0x209e0
leaq 0x272bb(%rip), %rdi     # 0x48d99
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
addq 0x20(%r13), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x207bc
testq %rax, %rax
je 0x21b10
movq %rax, %r13
movq %r12, %rdi
movq %rax, %rsi
movl %ebx, %edx
callq 0x233b4
movq %rax, %r15
jmp 0x21b32
xorl %r13d, %r13d
xorl %edi, %edi
callq 0x1707a
leaq 0x27289(%rip), %rdi     # 0x48daa
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
addq 0x20, %r15
leaq 0x36647(%rip), %rax     # 0x58180
testb $0x4, 0x2(%rax)
je 0x21b6f
movl %ebp, %edi
callq 0x1707a
movl %eax, %ebp
decq %r15
leaq 0x1f58a(%rip), %rcx     # 0x410dc
movl $0x40000, %edi          # imm = 0x40000
movq %r15, %rsi
movl %ebx, %edx
callq 0x55eb
movq 0x8(%r13), %rdi
movl $0x1, %esi
callq 0x208ff
addq (%rsp), %r14
movl %ebp, %edi
callq 0x1707a
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq