// File: /workspace/github_c_makefile_star2_O3/BernardTatin[P]s7sh/s7.c
// Function: hash_table_set_chooser
static s7_pointer hash_table_set_chooser(s7_scheme *sc, s7_pointer f, int32_t args, s7_pointer expr, bool ops)
                {
                    if ((args == 3) && (optimize_op(expr) == OP_SSA_DIRECT)) /* a tedious experiment... OP=HOP here */
                    {
                        s7_pointer val;
                        val = cadddr(expr);
                        if ((is_pair(val)) && (car(val) == sc->add_symbol) && (safe_list_length(val) == 3) &&
                                ((cadr(val) == small_int(1)) || (caddr(val) == small_int(1))))
                        {
                            s7_pointer add1;
                            add1 = (cadr(val) == small_int(1)) ? caddr(val) : cadr(val);
                            if ((is_pair(add1)) && (car(add1) == sc->or_symbol) && (safe_list_length(add1) == 3) &&
                                    (caddr(add1) == small_int(0)))
                            {
                                s7_pointer or1;
                                or1 = cadr(add1);
                                if ((is_pair(or1)) && (car(or1) == sc->hash_table_ref_symbol) && (safe_list_length(or1) == 3) &&
                                        (cadr(or1) == cadr(expr)) && (caddr(or1) == caddr(expr)))
                                {
                                    /* (hash-table-set! counts p (+ (or (hash-table-ref counts p) 0) 1)) -- ssa_direct and hop_safe_c_ss */
                                    /* fprintf(stderr, "%s: %s %s\n", DISPLAY(expr), op_names[optimize_op(expr)], op_names[optimize_op(or1)]); */
                                    set_optimize_op(expr, OP_HASH_INCREMENT);
                                }
                            }
                        }
                    }
                    return(f);
                }

// Assembly:
movq %rsi, %rax
cmpl $0x3, %edx
jne 0x102f9b
cmpw $0x18d, 0x4(%rcx)       # imm = 0x18D
jne 0x102f9b
movq 0x10(%rcx), %rsi
movq 0x10(%rsi), %rdx
movq 0x10(%rdx), %r8
movq 0x8(%r8), %r8
cmpb $0x1, (%r8)
jne 0x102f9b
movq 0x8(%r8), %r9
cmpq 0xba8(%rdi), %r9
je 0x102f9c
retq
movl $0x3, %r9d
movq %r8, %r10
movq 0x10(%r10), %r10
decq %r9
cmpb $0x1, (%r10)
je 0x102fa5
testq %r9, %r9
jne 0x102f9b
movq 0x10(%r8), %r9
movq 0x8(%r9), %r8
movq 0x10(%r9), %r10
movq 0x4398e(%rip), %r9      # 0x146958
movq 0x8(%r10), %r10
cmpq %r9, %r8
je 0x102fda
cmpq %r9, %r10
jne 0x102f9b
jmp 0x102fdd
movq %r10, %r8
cmpb $0x1, (%r8)
jne 0x102f9b
movq 0x8(%r8), %r9
cmpq 0x1828(%rdi), %r9
jne 0x102f9b
movl $0x3, %r9d
movq %r8, %r10
movq 0x10(%r10), %r10
decq %r9
cmpb $0x1, (%r10)
je 0x102ff9
testq %r9, %r9
jne 0x102f9b
movq 0x10(%r8), %r8
movq 0x10(%r8), %r9
movq 0x8(%r9), %r9
cmpq 0x43932(%rip), %r9      # 0x146950
jne 0x102f9b
movq 0x8(%r8), %r8
cmpb $0x1, (%r8)
jne 0x102f9b
movq 0x8(%r8), %r9
cmpq 0xf68(%rdi), %r9
jne 0x102f9b
movl $0x3, %edi
movq %r8, %r9
movq 0x10(%r9), %r9
decq %rdi
cmpb $0x1, (%r9)
je 0x10304b
testq %rdi, %rdi
jne 0x102f9b
movq 0x10(%r8), %rdi
movq 0x8(%rdi), %r8
cmpq 0x8(%rsi), %r8
jne 0x102f9b
movq 0x10(%rdi), %rsi
movq 0x8(%rsi), %rsi
cmpq 0x8(%rdx), %rsi
jne 0x102f9b
movw $0x18e, 0x4(%rcx)       # imm = 0x18E
retq