// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
cmpl $0x3, %edx
jne 0xcf55a
movq %rcx, %r14
cmpw $0x18d, 0x4(%rcx)       # imm = 0x18D
jne 0xcf55a
movq 0x10(%r14), %rbp
movq 0x10(%rbp), %r13
movq 0x10(%r13), %rax
movq 0x8(%rax), %r12
cmpb $0x1, (%r12)
jne 0xcf55a
movq %rdi, %r15
movq 0x8(%r12), %rax
cmpq 0xba8(%rdi), %rax
jne 0xcf55a
movq %r12, %rdi
callq 0x313be
cmpq $0x3, %rax
jne 0xcf55a
movq 0x10(%r12), %rax
movq 0x8(%rax), %r12
movq 0x10(%rax), %rcx
movq 0x46499(%rip), %rax     # 0x115958
movq 0x8(%rcx), %rcx
cmpq %rax, %r12
je 0xcf4d3
cmpq %rax, %rcx
jne 0xcf55a
jmp 0xcf4d6
movq %rcx, %r12
cmpb $0x1, (%r12)
jne 0xcf55a
movq 0x8(%r12), %rax
cmpq 0x1828(%r15), %rax
jne 0xcf55a
movq %r12, %rdi
callq 0x313be
cmpq $0x3, %rax
jne 0xcf55a
movq 0x10(%r12), %rax
movq 0x10(%rax), %rcx
movq 0x8(%rcx), %rcx
cmpq 0x46443(%rip), %rcx     # 0x115950
jne 0xcf55a
movq 0x8(%rax), %r12
cmpb $0x1, (%r12)
jne 0xcf55a
movq 0x8(%r12), %rax
cmpq 0xf68(%r15), %rax
jne 0xcf55a
movq %r12, %rdi
callq 0x313be
cmpq $0x3, %rax
jne 0xcf55a
movq 0x10(%r12), %rax
movq 0x8(%rax), %rcx
cmpq 0x8(%rbp), %rcx
jne 0xcf55a
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
cmpq 0x8(%r13), %rax
jne 0xcf55a
movw $0x18e, 0x4(%r14)       # imm = 0x18E
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq