// File: /workspace/github_c_makefile_star2_O1/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 0x10c3ac
cmpw $0x18d, 0x4(%rcx)       # imm = 0x18D
jne 0x10c3ac
movq 0x10(%rcx), %rsi
movq 0x10(%rsi), %rdx
movq 0x10(%rdx), %r8
movq 0x8(%r8), %r8
cmpb $0x1, (%r8)
jne 0x10c3ac
movq 0x8(%r8), %r9
cmpq 0xba8(%rdi), %r9
je 0x10c3ad
retq
movl $0x3, %r9d
movq %r8, %r10
movq 0x10(%r10), %r10
decq %r9
cmpb $0x1, (%r10)
je 0x10c3b6
testq %r9, %r9
jne 0x10c3ac
movq 0x10(%r8), %r9
movq 0x8(%r9), %r8
movq 0x42581(%rip), %r10     # 0x14e958
cmpq %r10, %r8
je 0x10c3eb
movq 0x10(%r9), %r11
cmpq %r10, 0x8(%r11)
jne 0x10c3ac
cmpq %r10, %r8
jne 0x10c3f3
movq 0x10(%r9), %r8
movq 0x8(%r8), %r8
cmpb $0x1, (%r8)
jne 0x10c3ac
movq 0x8(%r8), %r9
cmpq 0x1828(%rdi), %r9
jne 0x10c3ac
movl $0x3, %r9d
movq %r8, %r10
movq 0x10(%r10), %r10
decq %r9
cmpb $0x1, (%r10)
je 0x10c40f
testq %r9, %r9
jne 0x10c3ac
movq 0x10(%r8), %r8
movq 0x10(%r8), %r9
movq 0x8(%r9), %r9
cmpq 0x4251c(%rip), %r9      # 0x14e950
jne 0x10c3ac
movq 0x8(%r8), %r8
cmpb $0x1, (%r8)
jne 0x10c3ac
movq 0x8(%r8), %r9
cmpq 0xf68(%rdi), %r9
jne 0x10c3ac
movl $0x3, %edi
movq %r8, %r9
movq 0x10(%r9), %r9
decq %rdi
cmpb $0x1, (%r9)
je 0x10c461
testq %rdi, %rdi
jne 0x10c3ac
movq 0x10(%r8), %rdi
movq 0x8(%rdi), %r8
cmpq 0x8(%rsi), %r8
jne 0x10c3ac
movq 0x10(%rdi), %rsi
movq 0x8(%rsi), %rsi
cmpq 0x8(%rdx), %rsi
jne 0x10c3ac
movw $0x18e, 0x4(%rcx)       # imm = 0x18E
retq