// File: /workspace/github_cpp_makefile_star2_O3/cloudinary[P]fuif/encoding/encoding.cpp
// Function: bool fuif_decode<FileIO>(FileIO&, Image&, fuif_options)
bool fuif_decode(IO& io, Image &image, fuif_options options) {
    char buff[5];
    if (!io.gets(buff,5)) { e_printf("Could not read header from file: %s\n",io.getName()); return false; }
    bool multi_frame = false;
    if (!strcmp(buff,"FUAF")) { multi_frame = true; }
    else if (strcmp(buff,"FUIF")) { e_printf("%s is not a FUIF file\n",io.getName()); return false; }
    int nb_channels = read_big_endian_varint(io) - '0';
    int bit_depth = read_big_endian_varint(io) - '&';
    int w = read_big_endian_varint(io)+1;
    int h = read_big_endian_varint(io)+1;
    int nb_frames = 1;
    int loops = 0;
    int den = 0;
    std::vector<int> num;
    if (multi_frame) {
        nb_frames = read_big_endian_varint(io)+2;
        den = read_big_endian_varint(io)+1;
        int numerator = read_big_endian_varint(io);
        if (numerator) {
            num.push_back(numerator);
            for (int i=1; i<nb_frames; i++) num.push_back(read_big_endian_varint(io));
        }
        loops = read_big_endian_varint(io);
    }
    int colormodel = read_big_endian_varint(io);
    if (options.identify) {
        v_printf(1,"%s: %i-channel, %i-bit, ", io.getName(), nb_channels, bit_depth);
        if (multi_frame) v_printf(1,"%ix%i %s%s animation (%i frames)\n", w, h/nb_frames, colormodel_name(colormodel,nb_channels), colorprofile_name(colormodel), nb_frames);
        else v_printf(1,"%ix%i %s%s image\n", w, h, colormodel_name(colormodel,nb_channels), colorprofile_name(colormodel));
    }
    options.max_properties = read_big_endian_varint(io);

    v_printf(4,"Global option: up to %i back-referencing MANIAC properties.\n", options.max_properties);

    v_printf(7,"First part of header decoded (basic info). Read %i bytes so far.\n",io.ftell());

    if (!options.identify) {
        image = Image(w, h, (1<<bit_depth)-1, nb_channels, colormodel);
        image.nb_frames = nb_frames;
        image.den = den;
        image.num = num;
        image.loops = loops;
    }

    if (nb_channels < 1) return true; // is there any use for a zero-channel image?

    int responsive_offsets[5];
    int relative_offset = 0;
    for (int s=0; s<5; s++) {
        responsive_offsets[s] = read_big_endian_varint(io)*TRUNCATION_OFFSET_RESOLUTION + relative_offset;
        relative_offset = responsive_offsets[s];
    }
    relative_offset = io.ftell();
    for (int s=0; s<5; s++) {
        responsive_offsets[s] += relative_offset;
        if (s) v_printf(3,"Responsive truncation point for size 1/%i at position %i\n",responsive_sizes[s],responsive_offsets[s]);
        else v_printf(3,"Responsive truncation point for LQIP at position %i\n",responsive_offsets[s]);
    }



    if (!options.identify) {
    if (multi_frame) v_printf(2,"Decoding %i-channel, %i-bit, %ix%i %s%s animation (%i frames)", nb_channels, bit_depth, w, h/nb_frames, colormodel_name(colormodel,nb_channels), colorprofile_name(colormodel), nb_frames);
    else v_printf(2,"Decoding %i-channel, %i-bit, %ix%i %s%s image", nb_channels, bit_depth, w, h, colormodel_name(colormodel,nb_channels), colorprofile_name(colormodel));
    if (options.preview == 0) v_printf(2, " as a low-quality image placeholder");
    else if (options.preview > 0) v_printf(2," at scale 1:%i",responsive_sizes[options.preview]);
    v_printf(2,".\n");
    }


    v_printf(7,"Second part of header decoded (responsive offsets and global parameters; before transforms). Read %i bytes so far.\n",io.ftell());

    // decode transforms
    int nb_transforms = read_big_endian_varint(io);
    v_printf(2,"Image data underwent %i transformations: ",nb_transforms);
    for (int i=0; i<nb_transforms; i++) {
        int id_and_nb_params = read_big_endian_varint(io);
        Transform t(id_and_nb_params & 0xf);
        if (t.has_parameters()) {
            int nb_params = (id_and_nb_params >> 4);
            for (int j=0; j<nb_params; j++) t.parameters.push_back(read_big_endian_varint(io));
        }
        if (!options.identify) {
            t.meta_apply(image);
            image.transform.push_back(t);
        }
        if (i) v_printf(2,", ");
        v_printf(2,"%s",t.name());
        if (t.ID == TRANSFORM_PALETTE) {
            if (t.parameters[0] == t.parameters[1]) v_printf(3,"[Compact channel %i to ",t.parameters[0]);
            else v_printf(3,"[channels %i-%i with ",t.parameters[0],t.parameters[1]);
            v_printf(3,"%i colors]",t.parameters[2]);
        }
    }
    v_printf(2,"\n");
    v_printf(6,"Header decoded. Read %i bytes so far.\n",io.ftell());
    if (options.identify) return true;
    if (image.error) {
        e_printf("Corrupt file. Aborting.\n");
        return false;
    }

    nb_channels = image.channel.size();

    size_t bytes_to_load = 0;
    if (options.preview >= 0) bytes_to_load = responsive_offsets[options.preview];

    // decode channel data
    for (int i=0; i<nb_channels; i++) {
        if ((options.preview < 0 || io.ftell() < bytes_to_load) && !io.isEOF()) {
            if (! image.channel[i].w || ! image.channel[i].h ) continue; // skip empty channels
            if (!fuif_decode_channel<IO, FinalPropertySymbolCoder<FUIFBitChancePass2, RacIn<IO>, MAX_BIT_DEPTH> >(io, options, i, image, bytes_to_load)) return false;
            if (image.transform.size() > 0 && image.transform.back().ID == TRANSFORM_PERMUTE && image.transform.back().parameters.size() == 0 && i==0) inv_permute_meta(image);
        } else {
            v_printf(3,"Skipping decode of channels %i-%i.\n",i,nb_channels-1);
            break;
        }
    }
    v_printf(3,"Done decoding. Read %i bytes.\n",io.ftell());
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %rdx, 0x18(%rsp)
movq %rsi, %r12
movq %rdi, %rbx
movq (%rdi), %rdx
leaq 0x37(%rsp), %rdi
movl $0x5, %esi
callq 0x34d0
testq %rax, %rax
je 0x14640
movl $0x46415546, %eax       # imm = 0x46415546
xorl 0x37(%rsp), %eax
movzbl 0x3b(%rsp), %ecx
xorl %ebp, %ebp
orl %eax, %ecx
setne %al
je 0x145d5
movl $0x46495546, %ecx       # imm = 0x46495546
xorl 0x37(%rsp), %ecx
movzbl 0x3b(%rsp), %edx
orl %ecx, %edx
je 0x145d5
movq 0x8(%rbx), %rsi
leaq 0x12138(%rip), %rdi     # 0x2670b
jmp 0x1464b
movb %al, %bpl
movq %rbx, %rdi
callq 0x1504b
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
callq 0x1504b
movl %eax, %r13d
movq %rbx, %rdi
callq 0x1504b
movl %eax, 0x4(%rsp)
movq %rbx, %rdi
callq 0x1504b
movl %eax, 0x20(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
movl %ebp, 0x3c(%rsp)
testl %ebp, %ebp
je 0x14659
movl $0x0, 0x8(%rsp)
movl $0x1, %eax
movq %rax, 0x28(%rsp)
movl $0x0, 0xc(%rsp)
jmp 0x14720
movq 0x8(%rbx), %rsi
leaq 0x1209b(%rip), %rdi     # 0x266e6
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x379e
jmp 0x14fd5
movq %rbx, %rdi
callq 0x1504b
movl %eax, %r14d
movq %rbx, %rdi
callq 0x1504b
movl %eax, 0xc(%rsp)
movq %rbx, %rdi
callq 0x1504b
leal 0x2(%r14), %ecx
movq %rcx, 0x28(%rsp)
movl %eax, 0x80(%rsp)
testl %eax, %eax
je 0x14710
movq 0x48(%rsp), %rsi
cmpq 0x50(%rsp), %rsi
je 0x146a9
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x48(%rsp)
jmp 0x146bb
leaq 0x40(%rsp), %rdi
leaq 0x80(%rsp), %rdx
callq 0xf9d8
testl %r14d, %r14d
js 0x14710
movq 0x28(%rsp), %rax
cmpl $0x3, %eax
movl $0x2, %ebp
cmovgel %eax, %ebp
decl %ebp
leaq 0x40(%rsp), %r14
leaq 0x60(%rsp), %r15
movq %rbx, %rdi
callq 0x1504b
movl %eax, 0x60(%rsp)
movq 0x48(%rsp), %rsi
cmpq 0x50(%rsp), %rsi
je 0x14701
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x48(%rsp)
jmp 0x1470c
movq %r14, %rdi
movq %r15, %rdx
callq 0xf66e
decl %ebp
jne 0x146dc
movq %rbx, %rdi
callq 0x1504b
movl %eax, 0x8(%rsp)
incl 0xc(%rsp)
movq %rbx, %rdi
callq 0x1504b
movl %eax, (%rsp)
movq 0x10(%rsp), %rax
leal -0x30(%rax), %r15d
addl $-0x26, %r13d
incl 0x4(%rsp)
incl 0x20(%rsp)
movq 0x18(%rsp), %rax
cmpb $0x1, 0x4(%rax)
jne 0x147f8
movq 0x8(%rbx), %rdx
leaq 0x11fc8(%rip), %rsi     # 0x26722
movl $0x1, %edi
movl %r15d, %ecx
movl %r13d, %r8d
xorl %eax, %eax
callq 0x1cede
cmpl $0x0, 0x3c(%rsp)
je 0x147ac
movl (%rsp), %edi
movl %r15d, %esi
callq 0x5f4c
movq %rax, %r14
movl (%rsp), %edi
callq 0x6035
leaq 0x11fcd(%rip), %rsi     # 0x2675d
movl $0x1, %edi
movl 0x4(%rsp), %edx
movl 0x20(%rsp), %ecx
movq %r14, %r8
movq %rax, %r9
xorl %eax, %eax
callq 0x1cede
jmp 0x147f8
movl 0x20(%rsp), %eax
cltd
idivl 0x28(%rsp)
movl %eax, %ebp
movl (%rsp), %edi
movl %r15d, %esi
callq 0x5f4c
movq %rax, %r14
movl (%rsp), %edi
callq 0x6035
subq $0x8, %rsp
leaq 0x11f63(%rip), %rsi     # 0x2673b
movl $0x1, %edi
movl 0xc(%rsp), %edx
movl %ebp, %ecx
movq %r14, %r8
movq %rax, %r9
xorl %eax, %eax
pushq 0x30(%rsp)
callq 0x1cede
addq $0x10, %rsp
movq %rbx, %rdi
callq 0x1504b
movq 0x18(%rsp), %rcx
movl %eax, 0x10(%rcx)
leaq 0x11f60(%rip), %rsi     # 0x2676f
movl $0x4, %edi
movl %eax, %edx
xorl %eax, %eax
callq 0x1cede
movq (%rbx), %rdi
callq 0x3030
leaq 0x11f80(%rip), %rsi     # 0x267ac
movl $0x7, %edi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1cede
movq 0x18(%rsp), %rax
cmpb $0x0, 0x4(%rax)
jne 0x14a9b
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %r13d, %ecx
shll %cl, %eax
notl %eax
leaq 0x80(%rsp), %rdi
movl 0x4(%rsp), %esi
movl 0x20(%rsp), %edx
movl %eax, %ecx
movl %r15d, %ebp
movl %r15d, %r8d
movl (%rsp), %r9d
callq 0x150b6
movq 0x10(%r12), %rax
movaps 0x80(%rsp), %xmm0
movq 0x90(%rsp), %rcx
movq %rcx, 0x10(%r12)
movups (%r12), %xmm1
movups %xmm0, (%r12)
leaq 0x60(%rsp), %r14
movaps %xmm1, (%r14)
movq %rax, 0x10(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, 0x80(%rsp)
xorl %r15d, %r15d
movq %r15, 0x90(%rsp)
movq %r14, %rdi
callq 0xe188
movq 0x28(%r12), %rax
movups 0x98(%rsp), %xmm0
movq 0xa8(%rsp), %rcx
movq %rcx, 0x28(%r12)
movups 0x18(%r12), %xmm1
movups %xmm0, 0x18(%r12)
movaps %xmm1, (%r14)
movq %rax, 0x10(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x98(%rsp)
movq %r15, 0xa8(%rsp)
leaq 0x60(%rsp), %rdi
callq 0xe794
movaps 0xb0(%rsp), %xmm0
movups %xmm0, 0x30(%r12)
movq 0x40(%r12), %rdi
movq 0x50(%r12), %rsi
movaps 0xc0(%rsp), %xmm0
movups %xmm0, 0x40(%r12)
movq 0xd0(%rsp), %rax
movq %rax, 0x50(%r12)
xorps %xmm0, %xmm0
movaps %xmm0, 0xc0(%rsp)
movq %r15, 0xd0(%rsp)
testq %rdi, %rdi
je 0x14964
subq %rdi, %rsi
callq 0x32c0
movups 0xd8(%rsp), %xmm0
movups 0xe4(%rsp), %xmm1
movups %xmm1, 0x64(%r12)
movups %xmm0, 0x58(%r12)
movq 0x78(%r12), %rdi
movq 0x88(%r12), %rsi
movups 0xf8(%rsp), %xmm0
movups %xmm0, 0x78(%r12)
movq 0x108(%rsp), %rax
movq %rax, 0x88(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0xf8(%rsp)
movq $0x0, 0x108(%rsp)
testq %rdi, %rdi
je 0x14a10
subq %rdi, %rsi
callq 0x32c0
movq 0xf8(%rsp), %rdi
movups 0x119(%rsp), %xmm0
movups %xmm0, 0x99(%r12)
movaps 0x110(%rsp), %xmm0
movups %xmm0, 0x90(%r12)
testq %rdi, %rdi
je 0x14a32
movq 0x108(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
jmp 0x14a32
movups 0x119(%rsp), %xmm0
movups %xmm0, 0x99(%r12)
movaps 0x110(%rsp), %xmm0
movups %xmm0, 0x90(%r12)
leaq 0x98(%rsp), %r15
leaq 0x40(%r12), %r14
movq 0x28(%r15), %rdi
testq %rdi, %rdi
je 0x14a58
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
movq %r15, %rdi
callq 0xe794
leaq 0x80(%rsp), %rdi
callq 0xe188
movq 0x28(%rsp), %rax
movl %eax, 0x38(%r12)
movl 0xc(%rsp), %eax
movl %eax, 0x3c(%r12)
leaq 0x40(%rsp), %rsi
movq %r14, %rdi
callq 0x152d2
movl %ebp, %r15d
leaq 0x58(%r12), %rax
movl 0x8(%rsp), %ecx
movl %ecx, (%rax)
movb $0x1, %bpl
cmpl $0x31, 0x10(%rsp)
jl 0x14fbe
movl %r15d, 0xc(%rsp)
xorl %r14d, %r14d
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0x1504b
addl %eax, %ebp
movl %ebp, 0x60(%rsp,%r14,4)
incq %r14
cmpq $0x5, %r14
jne 0x14ab3
movl %r13d, 0x8(%rsp)
movq %r12, 0x10(%rsp)
movq (%rbx), %rdi
callq 0x3030
movq %rax, %r14
leaq 0x11d41(%rip), %r15     # 0x26828
leaq 0x11892(%rip), %r13     # 0x26380
leaq 0x11cf9(%rip), %rbp     # 0x267ee
xorl %r12d, %r12d
movl 0x60(%rsp,%r12), %ecx
addl %r14d, %ecx
movl %ecx, 0x60(%rsp,%r12)
testq %r12, %r12
je 0x14b1f
movl (%r12,%r13), %edx
movl $0x3, %edi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x1cede
jmp 0x14b30
movl $0x3, %edi
movq %r15, %rsi
movl %ecx, %edx
xorl %eax, %eax
callq 0x1cede
addq $0x4, %r12
cmpq $0x14, %r12
jne 0x14af8
movq 0x18(%rsp), %rax
cmpb $0x0, 0x4(%rax)
movl 0xc(%rsp), %r15d
jne 0x14c42
cmpl $0x0, 0x3c(%rsp)
je 0x14b9c
movl (%rsp), %edi
movl %r15d, %esi
callq 0x5f4c
movq %rax, %r14
movl (%rsp), %edi
callq 0x6035
movq %rax, %r10
leaq 0x11d26(%rip), %rsi     # 0x2689b
movl $0x2, %edi
movl %r15d, %edx
movl 0x8(%rsp), %ecx
movl 0x4(%rsp), %r8d
movl 0x20(%rsp), %r9d
xorl %eax, %eax
pushq %r10
pushq %r14
callq 0x1cede
addq $0x10, %rsp
jmp 0x14bf2
movl 0x20(%rsp), %eax
cltd
idivl 0x28(%rsp)
movl %eax, %ebp
movl (%rsp), %edi
movl %r15d, %esi
callq 0x5f4c
movq %rax, %r14
movl (%rsp), %edi
callq 0x6035
movq %rax, %r10
subq $0x8, %rsp
leaq 0x11c92(%rip), %rsi     # 0x2685d
movl $0x2, %edi
movl %r15d, %edx
movl 0x10(%rsp), %ecx
movl 0xc(%rsp), %r8d
movl %ebp, %r9d
xorl %eax, %eax
pushq 0x30(%rsp)
pushq %r10
pushq %r14
callq 0x1cede
addq $0x20, %rsp
movq 0x18(%rsp), %rax
movl (%rax), %eax
testq %rax, %rax
je 0x14c1c
testl %eax, %eax
jle 0x14c2f
movl (%r13,%rax,4), %edx
leaq 0x11cdf(%rip), %rsi     # 0x268ed
movl $0x2, %edi
xorl %eax, %eax
callq 0x1cede
jmp 0x14c2f
leaq 0x11ca6(%rip), %rsi     # 0x268c9
movl $0x2, %edi
xorl %eax, %eax
callq 0x1cede
leaq 0x10e87(%rip), %rsi     # 0x25abd
movl $0x2, %edi
xorl %eax, %eax
callq 0x1cede
movq (%rbx), %rdi
callq 0x3030
leaq 0x11cab(%rip), %rsi     # 0x268fc
movl $0x7, %edi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1cede
movq %rbx, %rdi
callq 0x1504b
movl %eax, %ebp
leaq 0x11cff(%rip), %rsi     # 0x26970
movl $0x2, %edi
movl %eax, %edx
xorl %eax, %eax
callq 0x1cede
testl %ebp, %ebp
jle 0x14e1f
leaq 0x88(%rsp), %r12
movq 0x10(%rsp), %rax
addq $0x18, %rax
movq %rax, 0x20(%rsp)
leaq 0x5c(%rsp), %r14
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x1504b
movl %eax, %r13d
andl $0xf, %eax
movl %eax, 0x80(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%r12)
movq $0x0, 0x10(%r12)
cmpl $0xa, %eax
ja 0x14d21
movl $0x7d8, %ecx            # imm = 0x7D8
btl %eax, %ecx
jae 0x14d21
sarl $0x4, %r13d
testl %r13d, %r13d
jle 0x14d21
movq %rbx, %rdi
callq 0x1504b
movl %eax, 0x5c(%rsp)
movq 0x90(%rsp), %rsi
cmpq 0x98(%rsp), %rsi
je 0x14d11
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x90(%rsp)
jmp 0x14d1c
movq %r12, %rdi
movq %r14, %rdx
callq 0xf66e
decl %r13d
jne 0x14ce3
movq 0x18(%rsp), %rax
cmpb $0x0, 0x4(%rax)
jne 0x14d50
leaq 0x80(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0xda14
movq 0x20(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x63a0
testl %r15d, %r15d
je 0x14d68
movl $0x2, %edi
leaq 0x10ff4(%rip), %rsi     # 0x25d55
xorl %eax, %eax
callq 0x1cede
movslq 0x80(%rsp), %rax
leaq 0x1b8a1(%rip), %rcx     # 0x30618
movq (%rcx), %rcx
shlq $0x5, %rax
movq (%rcx,%rax), %rdx
movl $0x2, %edi
leaq 0x11c0c(%rip), %rsi     # 0x2699a
xorl %eax, %eax
callq 0x1cede
cmpl $0x6, 0x80(%rsp)
jne 0x14df6
movq 0x88(%rsp), %rax
movl (%rax), %edx
movl 0x4(%rax), %ecx
cmpl %ecx, %edx
jne 0x14dc5
movl $0x3, %edi
leaq 0x11be1(%rip), %rsi     # 0x2699d
xorl %eax, %eax
callq 0x1cede
jmp 0x14dd8
movl $0x3, %edi
leaq 0x11be4(%rip), %rsi     # 0x269b5
xorl %eax, %eax
callq 0x1cede
movq 0x88(%rsp), %rax
movl 0x8(%rax), %edx
movl $0x3, %edi
leaq 0x11bdc(%rip), %rsi     # 0x269cb
xorl %eax, %eax
callq 0x1cede
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x14e13
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
incl %r15d
cmpl %ebp, %r15d
jne 0x14ca5
leaq 0x12b60(%rip), %rsi     # 0x27986
movl $0x2, %edi
xorl %eax, %eax
callq 0x1cede
movq (%rbx), %rdi
callq 0x3030
leaq 0x11b95(%rip), %rsi     # 0x269d6
movl $0x6, %edi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1cede
movb $0x1, %bpl
movq 0x18(%rsp), %rax
cmpb $0x0, 0x4(%rax)
jne 0x14fbe
movq 0x10(%rsp), %rax
cmpb $0x1, 0xa8(%rax)
jne 0x14e85
xorl %ebp, %ebp
leaq 0x11b84(%rip), %rdi     # 0x269fd
xorl %eax, %eax
callq 0x379e
jmp 0x14fbe
movq 0x8(%rax), %r14
subq (%rax), %r14
shrq $0x6, %r14
movq 0x18(%rsp), %rax
movslq (%rax), %rax
testq %rax, %rax
js 0x14ea4
movslq 0x60(%rsp,%rax,4), %r15
jmp 0x14ea7
xorl %r15d, %r15d
movl $0x0, 0x80(%rsp)
testl %r14d, %r14d
jle 0x14fa0
leaq 0x80(%rsp), %r12
movq 0x18(%rsp), %rax
cmpl $0x0, (%rax)
js 0x14ede
movq (%rbx), %rdi
callq 0x3030
cmpq %r15, %rax
jae 0x14f80
movq (%rbx), %rdi
callq 0x3470
testl %eax, %eax
jne 0x14f80
movslq 0x80(%rsp), %rcx
movq 0x10(%rsp), %rax
movq (%rax), %rax
shlq $0x6, %rcx
cmpl $0x0, 0x18(%rax,%rcx)
je 0x14f65
addq %rcx, %rax
cmpl $0x0, 0x1c(%rax)
je 0x14f65
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
movq %r12, %rdx
movq 0x10(%rsp), %rcx
movq %r15, %r8
callq 0x153b5
testb %al, %al
je 0x14fe9
movq 0x10(%rsp), %rcx
movq 0x20(%rcx), %rax
cmpq 0x18(%rcx), %rax
je 0x14f65
cmpl $0x9, -0x20(%rax)
jne 0x14f65
movq -0x10(%rax), %rcx
cmpq -0x18(%rax), %rcx
jne 0x14f65
cmpl $0x0, 0x80(%rsp)
jne 0x14f65
movq 0x10(%rsp), %rdi
callq 0x11438
movl 0x80(%rsp), %eax
incl %eax
movl %eax, 0x80(%rsp)
cmpl %r14d, %eax
jl 0x14ec3
jmp 0x14fa0
movl 0x80(%rsp), %edx
decl %r14d
leaq 0x11a85(%rip), %rsi     # 0x26a16
movl $0x3, %edi
movl %r14d, %ecx
xorl %eax, %eax
callq 0x1cede
movq (%rbx), %rdi
callq 0x3030
leaq 0x11a8b(%rip), %rsi     # 0x26a3a
movl $0x3, %edi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1cede
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x14fd5
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
movl %ebp, %eax
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
jmp 0x14fbe
jmp 0x15005
jmp 0x15005
jmp 0x15005
jmp 0x15005
jmp 0x15005
jmp 0x15005
jmp 0x15005
jmp 0x15005
jmp 0x15005
jmp 0x15005
jmp 0x15005
jmp 0x15005
movq %rax, %rbx
jmp 0x1502c
jmp 0x1500c
movq %rax, %rbx
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x1502c
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x15043
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
movq %rbx, %rdi
callq 0x3590