// File: /workspace/github_cpp_makefile_star2_O1/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 $0x148, %rsp            # imm = 0x148
movq %rdx, 0x8(%rsp)
movq %rsi, %r12
movq %rdi, %rbx
movq (%rdi), %rdx
leaq 0x2f(%rsp), %rdi
movl $0x5, %esi
callq 0x34e0
testq %rax, %rax
je 0x1474e
movl $0x46415546, %eax       # imm = 0x46415546
xorl 0x2f(%rsp), %eax
movzbl 0x33(%rsp), %ecx
xorl %ebp, %ebp
orl %eax, %ecx
setne %al
je 0x146e3
movl $0x46495546, %ecx       # imm = 0x46495546
xorl 0x2f(%rsp), %ecx
movzbl 0x33(%rsp), %edx
orl %ecx, %edx
je 0x146e3
movq 0x8(%rbx), %rsi
leaq 0x1202a(%rip), %rdi     # 0x2670b
jmp 0x14759
movb %al, %bpl
movq %rbx, %rdi
callq 0x150bc
movq %rax, 0x60(%rsp)
movq %rbx, %rdi
callq 0x150bc
movl %eax, %r13d
movq %rbx, %rdi
callq 0x150bc
movl %eax, 0x4(%rsp)
movq %rbx, %rdi
callq 0x150bc
movl %eax, 0x10(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
movl %ebp, 0x3c(%rsp)
testl %ebp, %ebp
je 0x14767
movl $0x0, 0x38(%rsp)
movl $0x1, %eax
movq %rax, 0x20(%rsp)
movl $0x0, 0x28(%rsp)
jmp 0x1482e
movq 0x8(%rbx), %rsi
leaq 0x11f8d(%rip), %rdi     # 0x266e6
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x3796
jmp 0x15046
movq %rbx, %rdi
callq 0x150bc
movl %eax, %r14d
movq %rbx, %rdi
callq 0x150bc
movl %eax, 0x28(%rsp)
movq %rbx, %rdi
callq 0x150bc
leal 0x2(%r14), %ecx
movq %rcx, 0x20(%rsp)
movl %eax, 0x90(%rsp)
testl %eax, %eax
je 0x1481e
movq 0x48(%rsp), %rsi
cmpq 0x50(%rsp), %rsi
je 0x147b7
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x48(%rsp)
jmp 0x147c9
leaq 0x40(%rsp), %rdi
leaq 0x90(%rsp), %rdx
callq 0xfa3c
testl %r14d, %r14d
js 0x1481e
movq 0x20(%rsp), %rax
cmpl $0x3, %eax
movl $0x2, %ebp
cmovgel %eax, %ebp
decl %ebp
leaq 0x40(%rsp), %r14
leaq 0x70(%rsp), %r15
movq %rbx, %rdi
callq 0x150bc
movl %eax, 0x70(%rsp)
movq 0x48(%rsp), %rsi
cmpq 0x50(%rsp), %rsi
je 0x1480f
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x48(%rsp)
jmp 0x1481a
movq %r14, %rdi
movq %r15, %rdx
callq 0xf6da
decl %ebp
jne 0x147ea
movq %rbx, %rdi
callq 0x150bc
movl %eax, 0x38(%rsp)
incl 0x28(%rsp)
movq %rbx, %rdi
callq 0x150bc
movl %eax, (%rsp)
movq 0x60(%rsp), %rax
leal -0x30(%rax), %r15d
addl $-0x26, %r13d
incl 0x4(%rsp)
incl 0x10(%rsp)
movq 0x8(%rsp), %rax
cmpb $0x1, 0x4(%rax)
jne 0x14906
movq 0x8(%rbx), %rdx
leaq 0x11eba(%rip), %rsi     # 0x26722
movl $0x1, %edi
movl %r15d, %ecx
movl %r13d, %r8d
xorl %eax, %eax
callq 0x1d0d6
cmpl $0x0, 0x3c(%rsp)
je 0x148ba
movl (%rsp), %edi
movl %r15d, %esi
callq 0x5f9c
movq %rax, %r14
movl (%rsp), %edi
callq 0x6085
leaq 0x11ebf(%rip), %rsi     # 0x2675d
movl $0x1, %edi
movl 0x4(%rsp), %edx
movl 0x10(%rsp), %ecx
movq %r14, %r8
movq %rax, %r9
xorl %eax, %eax
callq 0x1d0d6
jmp 0x14906
movl 0x10(%rsp), %eax
cltd
idivl 0x20(%rsp)
movl %eax, %ebp
movl (%rsp), %edi
movl %r15d, %esi
callq 0x5f9c
movq %rax, %r14
movl (%rsp), %edi
callq 0x6085
subq $0x8, %rsp
leaq 0x11e55(%rip), %rsi     # 0x2673b
movl $0x1, %edi
movl 0xc(%rsp), %edx
movl %ebp, %ecx
movq %r14, %r8
movq %rax, %r9
xorl %eax, %eax
pushq 0x28(%rsp)
callq 0x1d0d6
addq $0x10, %rsp
movq %rbx, %rdi
callq 0x150bc
movq 0x8(%rsp), %rcx
movl %eax, 0x10(%rcx)
leaq 0x11e52(%rip), %rsi     # 0x2676f
movl $0x4, %edi
movl %eax, %edx
xorl %eax, %eax
callq 0x1d0d6
movq (%rbx), %rdi
callq 0x3030
leaq 0x11e72(%rip), %rsi     # 0x267ac
movl $0x7, %edi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1d0d6
movq 0x8(%rsp), %rax
cmpb $0x0, 0x4(%rax)
movq %r12, 0x18(%rsp)
movl %r13d, 0x34(%rsp)
jne 0x14b0e
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %r13d, %ecx
shll %cl, %eax
notl %eax
leaq 0x90(%rsp), %rdi
movl 0x4(%rsp), %esi
movl 0x10(%rsp), %edx
movl %eax, %ecx
movl %r15d, %ebp
movl %r15d, %r8d
movl (%rsp), %r9d
callq 0x15138
xorps %xmm0, %xmm0
leaq 0x70(%rsp), %r14
movaps %xmm0, (%r14)
xorl %r12d, %r12d
movq %r12, 0x10(%r14)
movq 0x18(%rsp), %r13
movups (%r13), %xmm0
movq 0x10(%r13), %rax
leaq 0xd0(%rsp), %r15
movaps -0x40(%r15), %xmm1
movups %xmm1, (%r13)
movq -0x30(%r15), %rcx
movq %rcx, 0x10(%r13)
movq 0x10(%r14), %rcx
movq %rax, 0x10(%r14)
movaps (%r14), %xmm1
movaps %xmm0, (%r14)
movaps %xmm1, -0x40(%r15)
movq %rcx, -0x30(%r15)
movq %r14, %rdi
callq 0xe220
movq %r12, 0x10(%r14)
movq %r13, %r12
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
movups 0x18(%r13), %xmm0
movq 0x28(%r13), %rax
movups -0x28(%r15), %xmm1
movups %xmm1, 0x18(%r13)
movq -0x18(%r15), %rcx
movq %rcx, 0x28(%r13)
movq 0x10(%r14), %rcx
movq %rax, 0x10(%r14)
movaps (%r14), %xmm1
movaps %xmm0, (%r14)
movups %xmm1, -0x28(%r15)
movq %rcx, -0x18(%r15)
leaq 0x70(%rsp), %rdi
callq 0xe808
movaps -0x10(%r15), %xmm0
movups %xmm0, 0x30(%r13)
leaq 0x40(%r13), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x187dc
movups 0x18(%r15), %xmm0
movups 0x24(%r15), %xmm1
movups %xmm1, 0x64(%r13)
movups %xmm0, 0x58(%r13)
leaq 0x78(%r13), %rdi
leaq 0x108(%rsp), %r15
movq %r15, %rsi
callq 0x18814
movups 0x21(%r15), %xmm0
movups %xmm0, 0x99(%r13)
movaps 0x18(%r15), %xmm0
movups %xmm0, 0x90(%r13)
movq (%r15), %rdi
testq %rdi, %rdi
je 0x14aaa
movq 0x118(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
leaq 0xa8(%rsp), %r15
movq 0x28(%r15), %rdi
testq %rdi, %rdi
je 0x14acb
movq 0xe0(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
movq %r15, %rdi
callq 0xe808
leaq 0x90(%rsp), %rdi
callq 0xe220
movq 0x20(%rsp), %rax
movl %eax, 0x38(%r12)
movl 0x28(%rsp), %eax
movl %eax, 0x3c(%r12)
leaq 0x40(%rsp), %rsi
movq %r14, %rdi
callq 0x15354
movl %ebp, %r15d
leaq 0x58(%r12), %rax
movl 0x38(%rsp), %ecx
movl %ecx, (%rax)
movb $0x1, %bpl
cmpl $0x31, 0x60(%rsp)
jl 0x1502f
movl %r15d, 0x60(%rsp)
xorl %r14d, %r14d
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0x150bc
addl %eax, %ebp
movl %ebp, 0x70(%rsp,%r14,4)
incq %r14
cmpq $0x5, %r14
jne 0x14b26
movq (%rbx), %rdi
callq 0x3030
movq %rax, %r14
leaq 0x11cd8(%rip), %r15     # 0x26828
leaq 0x11829(%rip), %r13     # 0x26380
leaq 0x11c90(%rip), %rbp     # 0x267ee
xorl %r12d, %r12d
movl 0x70(%rsp,%r12), %ecx
addl %r14d, %ecx
movl %ecx, 0x70(%rsp,%r12)
testq %r12, %r12
je 0x14b88
movl (%r12,%r13), %edx
movl $0x3, %edi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x1d0d6
jmp 0x14b99
movl $0x3, %edi
movq %r15, %rsi
movl %ecx, %edx
xorl %eax, %eax
callq 0x1d0d6
addq $0x4, %r12
cmpq $0x14, %r12
jne 0x14b61
movq 0x8(%rsp), %rax
cmpb $0x0, 0x4(%rax)
movl 0x60(%rsp), %r15d
jne 0x14cab
cmpl $0x0, 0x3c(%rsp)
je 0x14c05
movl (%rsp), %edi
movl %r15d, %esi
callq 0x5f9c
movq %rax, %r14
movl (%rsp), %edi
callq 0x6085
movq %rax, %r10
leaq 0x11cbd(%rip), %rsi     # 0x2689b
movl $0x2, %edi
movl %r15d, %edx
movl 0x34(%rsp), %ecx
movl 0x4(%rsp), %r8d
movl 0x10(%rsp), %r9d
xorl %eax, %eax
pushq %r10
pushq %r14
callq 0x1d0d6
addq $0x10, %rsp
jmp 0x14c5b
movl 0x10(%rsp), %eax
cltd
idivl 0x20(%rsp)
movl %eax, %ebp
movl (%rsp), %edi
movl %r15d, %esi
callq 0x5f9c
movq %rax, %r14
movl (%rsp), %edi
callq 0x6085
movq %rax, %r10
subq $0x8, %rsp
leaq 0x11c29(%rip), %rsi     # 0x2685d
movl $0x2, %edi
movl %r15d, %edx
movl 0x3c(%rsp), %ecx
movl 0xc(%rsp), %r8d
movl %ebp, %r9d
xorl %eax, %eax
pushq 0x28(%rsp)
pushq %r10
pushq %r14
callq 0x1d0d6
addq $0x20, %rsp
movq 0x8(%rsp), %rax
movl (%rax), %eax
testq %rax, %rax
je 0x14c85
testl %eax, %eax
jle 0x14c98
movl (%r13,%rax,4), %edx
leaq 0x11c76(%rip), %rsi     # 0x268ed
movl $0x2, %edi
xorl %eax, %eax
callq 0x1d0d6
jmp 0x14c98
leaq 0x11c3d(%rip), %rsi     # 0x268c9
movl $0x2, %edi
xorl %eax, %eax
callq 0x1d0d6
leaq 0x10e1e(%rip), %rsi     # 0x25abd
movl $0x2, %edi
xorl %eax, %eax
callq 0x1d0d6
movq (%rbx), %rdi
callq 0x3030
leaq 0x11c42(%rip), %rsi     # 0x268fc
movl $0x7, %edi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1d0d6
movq %rbx, %rdi
callq 0x150bc
movl %eax, %ebp
leaq 0x11c96(%rip), %rsi     # 0x26970
movl $0x2, %edi
movl %eax, %edx
xorl %eax, %eax
callq 0x1d0d6
testl %ebp, %ebp
jle 0x14e88
leaq 0x98(%rsp), %r12
movq 0x18(%rsp), %rax
addq $0x18, %rax
movq %rax, 0x10(%rsp)
leaq 0x6c(%rsp), %r14
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x150bc
movl %eax, %r13d
andl $0xf, %eax
movl %eax, 0x90(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%r12)
movq $0x0, 0x10(%r12)
cmpl $0xa, %eax
ja 0x14d8a
movl $0x7d8, %ecx            # imm = 0x7D8
btl %eax, %ecx
jae 0x14d8a
sarl $0x4, %r13d
testl %r13d, %r13d
jle 0x14d8a
movq %rbx, %rdi
callq 0x150bc
movl %eax, 0x6c(%rsp)
movq 0xa0(%rsp), %rsi
cmpq 0xa8(%rsp), %rsi
je 0x14d7a
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0xa0(%rsp)
jmp 0x14d85
movq %r12, %rdi
movq %r14, %rdx
callq 0xf6da
decl %r13d
jne 0x14d4c
movq 0x8(%rsp), %rax
cmpb $0x0, 0x4(%rax)
jne 0x14db9
leaq 0x90(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0xdab4
movq 0x10(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x63e4
testl %r15d, %r15d
je 0x14dd1
movl $0x2, %edi
leaq 0x10f8b(%rip), %rsi     # 0x25d55
xorl %eax, %eax
callq 0x1d0d6
movslq 0x90(%rsp), %rax
leaq 0x1b848(%rip), %rcx     # 0x30628
movq (%rcx), %rcx
shlq $0x5, %rax
movq (%rcx,%rax), %rdx
movl $0x2, %edi
leaq 0x11ba3(%rip), %rsi     # 0x2699a
xorl %eax, %eax
callq 0x1d0d6
cmpl $0x6, 0x90(%rsp)
jne 0x14e5f
movq 0x98(%rsp), %rax
movl (%rax), %edx
movl 0x4(%rax), %ecx
cmpl %ecx, %edx
jne 0x14e2e
movl $0x3, %edi
leaq 0x11b78(%rip), %rsi     # 0x2699d
xorl %eax, %eax
callq 0x1d0d6
jmp 0x14e41
movl $0x3, %edi
leaq 0x11b7b(%rip), %rsi     # 0x269b5
xorl %eax, %eax
callq 0x1d0d6
movq 0x98(%rsp), %rax
movl 0x8(%rax), %edx
movl $0x3, %edi
leaq 0x11b73(%rip), %rsi     # 0x269cb
xorl %eax, %eax
callq 0x1d0d6
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x14e7c
movq 0xa8(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
incl %r15d
cmpl %ebp, %r15d
jne 0x14d0e
leaq 0x12af7(%rip), %rsi     # 0x27986
movl $0x2, %edi
xorl %eax, %eax
callq 0x1d0d6
movq (%rbx), %rdi
callq 0x3030
leaq 0x11b2c(%rip), %rsi     # 0x269d6
movl $0x6, %edi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1d0d6
movb $0x1, %bpl
movq 0x8(%rsp), %rax
cmpb $0x0, 0x4(%rax)
jne 0x1502f
movq 0x18(%rsp), %rax
cmpb $0x1, 0xa8(%rax)
jne 0x14eee
xorl %ebp, %ebp
leaq 0x11b1b(%rip), %rdi     # 0x269fd
xorl %eax, %eax
callq 0x3796
jmp 0x1502f
movq 0x8(%rax), %r14
subq (%rax), %r14
shrq $0x6, %r14
movq 0x8(%rsp), %rax
movslq (%rax), %rax
testq %rax, %rax
js 0x14f0d
movslq 0x70(%rsp,%rax,4), %r15
jmp 0x14f10
xorl %r15d, %r15d
movl $0x0, 0x90(%rsp)
movb $0x1, %bpl
testl %r14d, %r14d
jle 0x1500c
leaq 0x90(%rsp), %r12
movq 0x8(%rsp), %rax
cmpl $0x0, (%rax)
js 0x14f4a
movq (%rbx), %rdi
callq 0x3030
cmpq %r15, %rax
jae 0x14fec
movq (%rbx), %rdi
callq 0x3480
testl %eax, %eax
jne 0x14fec
movslq 0x90(%rsp), %rcx
movq 0x18(%rsp), %rax
movq (%rax), %rax
shlq $0x6, %rcx
cmpl $0x0, 0x18(%rax,%rcx)
je 0x14fd1
addq %rcx, %rax
cmpl $0x0, 0x1c(%rax)
je 0x14fd1
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq %r12, %rdx
movq 0x18(%rsp), %rcx
movq %r15, %r8
callq 0x15429
testb %al, %al
je 0x1505a
movq 0x18(%rsp), %rcx
movq 0x20(%rcx), %rax
cmpq 0x18(%rcx), %rax
je 0x14fd1
cmpl $0x9, -0x20(%rax)
jne 0x14fd1
movq -0x10(%rax), %rcx
cmpq -0x18(%rax), %rcx
jne 0x14fd1
cmpl $0x0, 0x90(%rsp)
jne 0x14fd1
movq 0x18(%rsp), %rdi
callq 0x114cf
movl 0x90(%rsp), %eax
incl %eax
movl %eax, 0x90(%rsp)
cmpl %r14d, %eax
jl 0x14f2f
jmp 0x1500c
movl 0x90(%rsp), %edx
decl %r14d
leaq 0x11a19(%rip), %rsi     # 0x26a16
movl $0x3, %edi
movl %r14d, %ecx
xorl %eax, %eax
callq 0x1d0d6
testb %bpl, %bpl
je 0x1502f
movq (%rbx), %rdi
callq 0x3030
leaq 0x11a1a(%rip), %rsi     # 0x26a3a
movl $0x3, %edi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1d0d6
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x15046
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
movl %ebp, %eax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
jmp 0x1500c
jmp 0x15076
jmp 0x15076
jmp 0x15076
jmp 0x15076
jmp 0x15076
jmp 0x15076
jmp 0x15076
jmp 0x15076
jmp 0x15076
jmp 0x15076
jmp 0x15076
jmp 0x15076
movq %rax, %rbx
jmp 0x1509d
jmp 0x1507d
movq %rax, %rbx
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x1509d
movq 0xa8(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x150b4
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x32c0
movq %rbx, %rdi
callq 0x35a0