// File: cloudinary[P]fuif/encoding/../maniac/compound_enc.h
// Function: CompoundSymbolBitCoder<SimpleBitChance, RacDummy<DummyIO>, 15>::updateChances(SymbolChanceBitType, int, bool)
void inline updateChances(SymbolChanceBitType type, int i, bool bit) {
        BitChance& real = chances.realChances.bit(type,i);
        real.estim(bit, chances.realSize);
        real.put(bit, table);

        int16_t best_property = -1;
        uint64_t best_size = chances.realSize;
        for (unsigned int j=0; j<chances.virtChances.size(); j++) {
            BitChance& virt = (select)[j] ? chances.virtChances[j].first.bit(type,i)
                              : chances.virtChances[j].second.bit(type,i);
            virt.estim(bit, chances.virtSize[j]);
            virt.put(bit, table);
            if (chances.virtSize[j] < best_size) {
                best_size = chances.virtSize[j];
                best_property = j;
            }
        }
        chances.best_property = best_property;
    }

// Assembly:
subq $0x78, %rsp
movb %cl, %al
movq %rdi, 0x70(%rsp)
movl %esi, 0x6c(%rsp)
movl %edx, 0x68(%rsp)
andb $0x1, %al
movb %al, 0x67(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x10(%rax), %rdi
movl 0x6c(%rsp), %esi
movl 0x68(%rsp), %edx
callq 0x33400
movq 0x20(%rsp), %rcx
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rdi
movb 0x67(%rsp), %al
movq 0x10(%rcx), %rdx
addq $0x58, %rdx
andb $0x1, %al
movzbl %al, %esi
callq 0x334f0
movq 0x20(%rsp), %rcx
movq 0x58(%rsp), %rdi
movb 0x67(%rsp), %al
movq (%rcx), %rdx
andb $0x1, %al
movzbl %al, %esi
callq 0x33560
movq 0x20(%rsp), %rax
movw $0xffff, 0x56(%rsp)     # imm = 0xFFFF
movq 0x10(%rax), %rax
movq 0x58(%rax), %rax
movq %rax, 0x48(%rsp)
movl $0x0, 0x44(%rsp)
movq 0x20(%rsp), %rax
movl 0x44(%rsp), %ecx
movq %rcx, 0x18(%rsp)
movq 0x10(%rax), %rdi
addq $0x40, %rdi
callq 0x2f050
movq %rax, %rcx
movq 0x18(%rsp), %rax
cmpq %rcx, %rax
jae 0x333df
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rdi
movl 0x44(%rsp), %eax
movl %eax, %esi
callq 0x30d90
movq %rax, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x33490
testb $0x1, %al
jne 0x332bf
jmp 0x332ee
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rdi
addq $0x40, %rdi
movl 0x44(%rsp), %eax
movl %eax, %esi
callq 0x334c0
movq %rax, %rdi
movl 0x6c(%rsp), %esi
movl 0x68(%rsp), %edx
callq 0x33400
movq %rax, 0x10(%rsp)
jmp 0x3331f
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rdi
addq $0x40, %rdi
movl 0x44(%rsp), %eax
movl %eax, %esi
callq 0x334c0
movq %rax, %rdi
addq $0x3e, %rdi
movl 0x6c(%rsp), %esi
movl 0x68(%rsp), %edx
callq 0x33400
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq 0x10(%rsp), %rcx
movq %rcx, 0x38(%rsp)
movq 0x38(%rsp), %rcx
movq %rcx, (%rsp)
movb 0x67(%rsp), %cl
movb %cl, 0xf(%rsp)
movq 0x10(%rax), %rdi
addq $0x60, %rdi
movl 0x44(%rsp), %eax
movl %eax, %esi
callq 0x30af0
movq (%rsp), %rdi
movq %rax, %rdx
movb 0xf(%rsp), %al
andb $0x1, %al
movzbl %al, %esi
callq 0x334f0
movq 0x20(%rsp), %rcx
movq 0x38(%rsp), %rdi
movb 0x67(%rsp), %al
movq (%rcx), %rdx
andb $0x1, %al
movzbl %al, %esi
callq 0x33560
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rdi
addq $0x60, %rdi
movl 0x44(%rsp), %eax
movl %eax, %esi
callq 0x30af0
movq (%rax), %rax
cmpq 0x48(%rsp), %rax
jae 0x333cd
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rdi
addq $0x60, %rdi
movl 0x44(%rsp), %eax
movl %eax, %esi
callq 0x30af0
movq (%rax), %rax
movq %rax, 0x48(%rsp)
movl 0x44(%rsp), %eax
movw %ax, 0x56(%rsp)
jmp 0x333cf
movl 0x44(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x44(%rsp)
jmp 0x33265
movq 0x20(%rsp), %rax
movw 0x56(%rsp), %cx
movq 0x10(%rax), %rax
movw %cx, 0x94(%rax)
addq $0x78, %rsp
retq
nopl (%rax)