{"capsule":{"id":"eb2d28c07613408d2d2fe3e301385d30","name":"checksum","domain":"8b-kit-x86_64","source_code":"pub fn checksum(bytes: &[u8]) -> u8 {\n    let (chunks, tail) = bytes.split_at(bytes.len() - bytes.len() % 8);\n    let mut acc = 0u64;\n    for chunk in chunks.chunks_exact(8) {\n        acc ^= u64::from_le_bytes(chunk.try_into().unwrap());\n    }\n    let mut out = (acc ^ (acc >> 32) ^ (acc >> 16) ^ (acc >> 8) ^ acc) as u8;\n    for b in tail {\n        out ^= b;\n    }\n    out\n}","inputs":[{"name":"bytes","pin_type":"&[u8]","direction":"input"}],"output":{"name":"out","pin_type":"u8","direction":"output"},"signature_key":"(&[u8])->u8","c64_report":{"code_bytes":375,"ram_budget_ratio":{"num":375,"den":65536},"fits_fast_page":true,"ast_node_count":53,"zero_unsafe":true,"zero_external_crates":true,"zero_floats":true},"marine_salience":{"peak_count":24,"period_jitter":{"num":9,"den":88},"amplitude_jitter":{"num":127,"den":690},"combined_jitter":{"num":8693,"den":60720},"salience_score":{"num":260135,"den":3036},"salience_trit":"Pos","wave_signature":{"frequencies_hz":[475,864,1555,1728,4536,4406,3024,4492],"phases_mrad":[1675,0,5445,0,4942,2932,0,1809],"amplitudes":[85,8,63,8,51,42,8,29],"interference_hash":[229,203,37,233,200,80,147,215,116,213,110,90,43,83,174,60,244,105,153,55,233,102,141,194,202,81,67,101,44,43,8,37]}},"author_aye":"aye::Hue+Gemini(0+1)::x86_64","author_resonance_hz":432,"published_epoch_ns":1794283260194168397,"compiled_text_bytes":258,"asm_instruction_count":72,"asm_preview":"checksum:\n    mov    edx, esi\n    and    edx, 7\n    movabs    rcx, 9223372036854775800\n    and    rcx, rsi\n    je    .LBB7_1\n    add    rsi, -8\n    cmp    rsi, 24\n    jae    .LBB7_13\n    xor    eax, eax\n    mov    r8, rdi\n    mov    r9, rcx\n    jmp    .LBB7_16\n.LBB7_1:\n    xor    eax, eax\n    jmp    .LBB7_2\n.LBB7_13:\n    shr    rsi, 3\n    inc    rsi\n    mov    r10, rsi\n    and    r10, -4\n    lea    rax, [8*r10]\n    lea    r8, [rdi + 8*r10]\n    mov    r9, rcx\n    sub    r9, rax\n    pxor    xmm0, xmm0\n    xor    eax, eax\n    pxor    xmm1, xmm1\n.LBB7_14:\n    movdqu    xmm2, xmmword ptr [rdi + 8*rax]\n    pxor    xmm1, xmm2\n    movdqu    xmm2, xmmword ptr [rdi + 8*rax + 16]\n    pxor    xmm0, xmm2\n    add    rax, 4\n    cmp    r10, rax\n    jne    .LBB7_14\n    pxor    xmm0, xmm1\n    pshufd    xmm1, xmm0, 238\n    pxor    xmm1, xmm0\n    movq    rax, xmm1\n    cmp    rsi, r10\n    je    .LBB7_2\n.LBB7_16:\n    xor    esi, esi\n.LBB7_17:\n    xor    rax, qword ptr [r8 + rsi]\n    add    rsi, 8\n    cmp    r9, rsi\n    jne    .LBB7_17\n.LBB7_2:\n    mov    rsi, rax\n    shr    rsi, 32\n    mov    r8d, eax\n    shr    r8d, 16\n    xor    esi, r8d\n    shr    eax, 8\n    xor    eax, esi\n    test    rdx, rdx\n    je    .LBB7_10\n    xor    al, byte ptr [rdi + rcx]\n    cmp    edx, 1\n    je    .LBB7_10\n    xor    al, byte ptr [rdi + rcx + 1]\n    cmp    edx, 2\n    je    .LBB7_10\n    xor    al, byte ptr [rdi + rcx + 2]\n    cmp    edx, 3\n    je    .LBB7_10\n    xor    al, byte ptr [rdi + rcx + 3]\n    cmp    edx, 4\n    je    .LBB7_10\n    xor    al, byte ptr [rdi + rcx + 4]\n    cmp    edx, 5\n    je    .LBB7_10\n    xor    al, byte ptr [rdi + rcx + 5]\n    cmp    edx, 6\n    je    .LBB7_10\n    xor    al, byte ptr [rdi + rcx + 6]\n.LBB7_10:\n    ret","output_digest_blake3":"8cb4b7d299892fe0d7ed371b19c9b239"},"efficiency":{"capsule_id":"eb2d28c07613408d2d2fe3e301385d30","vote_count":1,"total_historical_votes":1,"net_trit_score":1,"net_trit_balanced":"+","consensus_trit":"Pos","speed_ops_per_us":{"num":400000000,"den":2463449},"ns_per_op":{"num":2463449,"den":400000},"cycles_per_op":{"num":40406,"den":3125},"c64_memory_ratio":{"num":129,"den":32768},"timing_salience":{"num":8456438788438669321,"den":90451398079065863},"efficiency_index":{"num":4725403406716139607,"den":20751953697435250}},"ns_per_op_pq":"2463449/400000","speed_ops_per_us_pq":"400000000/2463449","cycles_per_op_pq":"40406/3125","marine_salience_pq":"260135/3036","vote_trits":"+","equivalence_class":"(&[u8])->u8::8cb4b7d29989"}