{"capsule":{"id":"ec740dcee41886836ec931a638661abb","name":"onecompression_b158_bitplane_decompose","domain":"OneCompression","source_code":"pub fn onecompression_b158_bitplane_decompose(trit_word: u64) -> u64 {\n    let mut pos_plane: u64 = 0;\n    let mut neg_plane: u64 = 0;\n    let mut lane: u32 = 0;\n    while lane < 16 {\n        let cell = ((trit_word >> (lane * 4)) & 0x0F) as i64 - 8;\n        let is_pos = (cell > 2) as u64;\n        let is_neg = (cell < -2) as u64;\n        pos_plane |= is_pos << lane;\n        neg_plane |= is_neg << lane;\n        lane += 1;\n    }\n    let active_trits = (pos_plane.count_ones() + neg_plane.count_ones()) as u64;\n    (active_trits << 32) | ((neg_plane & 0xFFFF) << 16) | (pos_plane & 0xFFFF)\n}","inputs":[{"name":"trit_word","pin_type":"u64","direction":"input"}],"output":{"name":"out","pin_type":"u64","direction":"output"},"signature_key":"(u64)->u64","c64_report":{"code_bytes":591,"ram_budget_ratio":{"num":591,"den":65536},"fits_fast_page":true,"ast_node_count":78,"zero_unsafe":true,"zero_external_crates":true,"zero_floats":true},"marine_salience":{"peak_count":30,"period_jitter":{"num":3,"den":56},"amplitude_jitter":{"num":101,"den":580},"combined_jitter":{"num":1849,"den":16240},"salience_score":{"num":71955,"den":812},"salience_trit":"Pos","wave_signature":{"frequencies_hz":[580,1056,1742,2112,7656,3801,3696,7180],"phases_mrad":[1063,0,5315,0,818,520,0,3922],"amplitudes":[88,8,66,8,52,44,8,30],"interference_hash":[22,132,25,64,162,67,250,25,120,15,131,142,191,242,106,118,103,178,49,206,129,133,248,218,214,96,5,238,233,99,84,17]}},"author_aye":"omni-toss-weaver","author_resonance_hz":528,"published_epoch_ns":9000013,"compiled_text_bytes":788,"asm_instruction_count":240,"asm_preview":"onecompression_b158_bitplane_decompose:\n    push    rbp\n    push    r15\n    push    r14\n    push    r13\n    push    r12\n    push    rbx\n    mov    eax, edi\n    and    eax, 15\n    xor    ecx, ecx\n    cmp    rax, 11\n    setae    cl\n    xor    edx, edx\n    cmp    rax, 6\n    setb    dl\n    mov    eax, edi\n    shr    eax, 4\n    and    eax, 15\n    xor    esi, esi\n    cmp    eax, 11\n    setae    sil\n    xor    r8d, r8d\n    cmp    eax, 6\n    setb    r8b\n    lea    rax, [rcx + 2*rsi]\n    lea    rcx, [rdx + 2*r8]\n    mov    edx, edi\n    shr    edx, 8\n    and    edx, 15\n    xor    esi, esi\n    cmp    edx, 11\n    setae    sil\n    xor    r8d, r8d\n    cmp    edx, 6\n    setb    r8b\n    lea    rax, [rax + 4*rsi]\n    lea    rcx, [rcx + 4*r8]\n    mov    edx, edi\n    shr    edx, 12\n    and    edx, 15\n    xor    esi, esi\n    cmp    edx, 11\n    setae    sil\n    xor    r8d, r8d\n    cmp    edx, 6\n    setb    r8b\n    lea    rax, [rax + 8*rsi]\n    lea    rcx, [rcx + 8*r8]\n    mov    edx, edi\n    shr    edx, 16\n    and    edx, 15\n    xor    esi, esi\n    cmp    edx, 11\n    setae    sil\n    xor    r9d, r9d\n    cmp    edx, 6\n    setb    r9b\n    shl    esi, 4\n    or    rsi, rax\n    shl    r9d, 4\n    or    r9, rcx\n    mov    eax, edi\n    shr    eax, 20\n    and    eax, 15\n    xor    r14d, r14d\n    cmp    eax, 11\n    setae    r14b\n    xor    ebp, ebp\n    cmp    eax, 6\n    setb    bpl\n    shl    r14d, 5\n    shl    ebp, 5\n    mov    ecx, edi\n    shr    ecx, 24\n    and    ecx, 15\n    xor    r12d, r12d\n    cmp    ecx, 11\n    setae    r12b\n    xor    eax, eax\n    cmp    ecx, 6\n    setb    al\n    mov    edx, edi\n    shr    edx, 28\n    mov    r13, rdi\n    shr    r13, 32\n    and    r13d, 15\n    mov    r15, rdi\n    shr    r15, 36\n    and    r15d, 15\n    mov    rbx, rdi\n    shr    rbx, 40\n    and    ebx, 15\n    mov    r11, rdi\n    shr    r11, 44\n    and    r11d, 15\n    mov    r10, rdi\n    shr    r10, 48\n    and    r10d, 15\n    mov    rcx, rdi\n    shr    rcx, 52\n    and    ecx, 15\n    mov    qword ptr [rsp - 16], rcx\n    mov    rcx, rdi\n    shr    rcx, 56\n    and    ecx, 15\n    mov    qword ptr [rsp - 8], rcx\n    mov    rcx, rdi\n    shr    rcx, 60\n    xor    r8d, r8d\n    cmp    ecx, 11\n    setae    r8b\n    shr    rdi, 61\n    xor    ecx, ecx\n    cmp    edi, 3\n    setb    cl\n    shl    eax, 6\n    or    rax, rbp\n    shl    r12d, 6\n    or    r12, r14\n    xor    edi, edi\n    cmp    edx, 6\n    setb    dil\n    xor    ebp, ebp\n    cmp    edx, 11\n    setae    bpl\n    shl    edi, 7\n    or    rdi, rax\n    shl    ebp, 7\n    or    rbp, r12\n    xor    r14d, r14d\n    cmp    r13, 6\n    setb    r14b\n    xor    r12d, r12d\n    cmp    r13, 11\n    setae    r12b\n    shl    r14d, 8\n    or    r14, rdi\n    or    r14, r9\n    shl    r12d, 8\n    or    r12, rbp\n    or    r12, rsi\n    xor    edi, edi\n    cmp    r15, 6\n    setb    dil\n    xor    edx, edx\n    cmp    r15, 11\n    setae    dl\n    shl    edi, 9\n    shl    edx, 9\n    xor    esi, esi\n    cmp    rbx, 6\n    setb    sil\n    xor    eax, eax\n    cmp    rbx, 11\n    setae    al\n    shl    esi, 10\n    or    rsi, rdi\n    shl    eax, 10\n    or    rax, rdx\n    xor    edi, edi\n    cmp    r11, 6\n    setb    dil\n    xor    edx, edx\n    cmp    r11, 11\n    setae    dl\n    shl    edi, 11\n    or    rdi, rsi\n    shl    edx, 11\n    or    rdx, rax\n    xor    r9d, r9d\n    cmp    r10, 6\n    setb    r9b\n    xor    esi, esi\n    cmp    r10, 11\n    setae    sil\n    shl    r9d, 12\n    or    r9, rdi\n    shl    esi, 12\n    or    rsi, rdx\n    xor    edx, edx\n    mov    rdi, qword ptr [rsp - 16]\n    cmp    rdi, 6\n    setb    dl\n    xor    eax, eax\n    cmp    rdi, 11\n    setae    al\n    shl    edx, 13\n    or    rdx, r9\n    or    rdx, r14\n    shl    eax, 13\n    or    rax, rsi\n    or    rax, r12\n    xor    esi, esi\n    mov    r9, qword ptr [rsp - 8]\n    cmp    r9, 6\n    setb    sil\n    xor    edi, edi\n    cmp    r9, 11\n    setae    dil\n    shl    esi, 14\n    shl    ecx, 15\n    or    rcx, rsi\n    or    rcx, rdx\n    shl    edi, 14\n    shl    r8d, 15\n    or    r8, rdi\n    or    r8, rax\n    movq    xmm0, rcx\n    movq    xmm1, r8\n    punpcklqdq    xmm1, xmm0\n    movdqa    xmm0, xmm1\n    psrlw    xmm0, 1\n    pand    xmm0, xmmword ptr [rip + .LCPI7_0]\n    psubb    xmm1, xmm0\n    movdqa    xmm0, xmmword ptr [rip + .LCPI7_1]\n    movdqa    xmm2, xmm1\n    pand    xmm2, xmm0\n    psrlw    xmm1, 2\n    pand    xmm1, xmm0\n    paddb    xmm1, xmm2\n    movdqa    xmm0, xmm1\n    psrlw    xmm0, 4\n    paddb    xmm0, xmm1\n    pand    xmm0, xmmword ptr [rip + .LCPI7_2]\n    pxor    xmm1, xmm1\n    psadbw    xmm1, xmm0\n    pshufd    xmm0, xmm1, 238\n    paddq    xmm0, xmm1\n    shl    rcx, 16\n    or    rcx, r8\n    movq    rax, xmm0\n    shl    rax, 32\n    or    rcx, rax\n    mov    rax, rcx\n    pop    rbx\n    pop    r12\n    pop    r13\n    pop    r14\n    pop    r15\n    pop    rbp\n    ret","output_digest_blake3":"2bd431266bfc03b57c93286d8ea1ebc5"},"efficiency":{"capsule_id":"ec740dcee41886836ec931a638661abb","vote_count":1,"total_historical_votes":1,"net_trit_score":0,"net_trit_balanced":"0","consensus_trit":"Zero","speed_ops_per_us":{"num":400000000,"den":8550889},"ns_per_op":{"num":8550889,"den":400000},"cycles_per_op":{"num":3306553,"den":50000},"c64_memory_ratio":{"num":197,"den":16384},"timing_salience":{"num":7078789642310477581,"den":72505605880640416},"efficiency_index":{"num":5274109275870380983,"den":115481650040131700}},"ns_per_op_pq":"8550889/400000","speed_ops_per_us_pq":"400000000/8550889","cycles_per_op_pq":"3306553/50000","marine_salience_pq":"71955/812","vote_trits":"0","equivalence_class":"(u64)->u64::2bd431266bfc"}