// File: /workspace/github_c_makefile_star2_O1/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 0x36cfa(%rip), %rax     # 0x58180
movzwl 0x2(%rax), %eax
testl $0x104, %eax            # imm = 0x104
je 0x214a2
movq %r12, %rdi
movq %r15, %rsi
movl %ebx, %edx
callq 0x2041a
xorl %ebp, %ebp
jmp 0x214be
leaq 0x277d6(%rip), %rdx     # 0x48c7f
movq %r12, %rdi
movq %r15, %rsi
movl %ebx, %ecx
movl $0x1, %r8d
callq 0x204e6
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 0x201f8
testq %rax, %rax
je 0x21500
movq %rax, %r13
cmpq $0x75637374, 0x8(%rax)  # imm = 0x75637374
jne 0x21505
movq %r12, %rdi
movq %r13, %rsi
movl %ebx, %edx
callq 0x22ab2
movq %rax, %r15
jmp 0x21526
xorl %r13d, %r13d
jmp 0x2156d
movq %r12, %rdi
movq %r13, %rsi
movl %ebx, %edx
callq 0x2041a
leaq 0x27840(%rip), %rdi     # 0x48d59
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
addq 0x20(%r13), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x201f8
testq %rax, %rax
je 0x2154b
movq %rax, %r13
movq %r12, %rdi
movq %rax, %rsi
movl %ebx, %edx
callq 0x22d51
movq %rax, %r15
jmp 0x2156d
xorl %r13d, %r13d
xorl %edi, %edi
callq 0x16b56
leaq 0x2780e(%rip), %rdi     # 0x48d6a
xorl %eax, %eax
callq 0x3120
addl %eax, %ebp
addq 0x20, %r15
leaq 0x36c0c(%rip), %rax     # 0x58180
testb $0x4, 0x2(%rax)
je 0x215aa
movl %ebp, %edi
callq 0x16b56
movl %eax, %ebp
decq %r15
leaq 0x1fb4f(%rip), %rcx     # 0x410dc
movl $0x40000, %edi          # imm = 0x40000
movq %r15, %rsi
movl %ebx, %edx
callq 0x5605
movq 0x8(%r13), %rdi
movl $0x1, %esi
callq 0x2033b
addq (%rsp), %r14
movl %ebp, %edi
callq 0x16b56
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq