{"capsule":{"id":"11db7045e45e6f67670b2a00981cbc48","name":"internet_checksum","domain":"aye-x86_64","source_code":"pub fn internet_checksum(data: &[u8]) -> u16 {\n    let mut sum: u32 = 0;\n    let mut i = 0;\n    while i + 1 < data.len() {\n        sum += u16::from_be_bytes([data[i], data[i + 1]]) as u32;\n        i += 2;\n    }\n    if i < data.len() {\n        sum += (data[i] as u32) << 8;\n    }\n    while sum >> 16 != 0 {\n        sum = (sum & 0xFFFF) + (sum >> 16);\n    }\n    !(sum as u16)\n}","inputs":[{"name":"data","pin_type":"&[u8]","direction":"input"}],"output":{"name":"out","pin_type":"u16","direction":"output"},"signature_key":"(&[u8])->u16","c64_report":{"code_bytes":375,"ram_budget_ratio":{"num":375,"den":65536},"fits_fast_page":true,"ast_node_count":70,"zero_unsafe":true,"zero_external_crates":true,"zero_floats":true},"marine_salience":{"peak_count":26,"period_jitter":{"num":5,"den":32},"amplitude_jitter":{"num":557,"den":3900},"combined_jitter":{"num":9331,"den":62400},"salience_score":{"num":53069,"den":624},"salience_trit":"Pos","wave_signature":{"frequencies_hz":[475,864,1555,1900,4968,3369,4233,4147],"phases_mrad":[1675,0,2094,3769,1725,2094,5864,4188],"amplitudes":[85,8,63,55,51,42,38,29],"interference_hash":[201,15,228,109,0,106,26,252,37,249,217,83,240,247,127,130,49,14,102,73,132,142,19,131,193,206,209,77,126,35,12,136]}},"author_aye":"aye::Hue+Gemini(0+1)::x86_64","author_resonance_hz":432,"published_epoch_ns":1794283281962215644,"compiled_text_bytes":415,"asm_instruction_count":105,"asm_preview":"internet_checksum:\n    cmp    rsi, 2\n    jb    .LBB7_1\n    lea    rdx, [rsi - 2]\n    cmp    rdx, 14\n    jae    .LBB7_9\n    xor    eax, eax\n    xor    ecx, ecx\n    jmp    .LBB7_12\n.LBB7_1:\n    xor    ecx, ecx\n    xor    eax, eax\n    jmp    .LBB7_2\n.LBB7_9:\n    shr    rdx\n    inc    rdx\n    mov    r8, rdx\n    and    r8, -8\n    lea    rcx, [r8 + r8]\n    pxor    xmm1, xmm1\n    xor    eax, eax\n    pxor    xmm2, xmm2\n    pxor    xmm0, xmm0\n.LBB7_10:\n    movzx    r9d, byte ptr [rdi + 2*rax]\n    movzx    r10d, byte ptr [rdi + 2*rax + 2]\n    movzx    r11d, byte ptr [rdi + 2*rax + 4]\n    shl    r10d, 8\n    or    r10d, r9d\n    shl    r11d, 16\n    or    r11d, r10d\n    movzx    r9d, byte ptr [rdi + 2*rax + 6]\n    shl    r9d, 24\n    or    r9d, r11d\n    movd    xmm4, r9d\n    movzx    r9d, byte ptr [rdi + 2*rax + 8]\n    movzx    r10d, byte ptr [rdi + 2*rax + 10]\n    movzx    r11d, byte ptr [rdi + 2*rax + 12]\n    shl    r10d, 8\n    or    r10d, r9d\n    shl    r11d, 16\n    or    r11d, r10d\n    movzx    r9d, byte ptr [rdi + 2*rax + 14]\n    shl    r9d, 24\n    or    r9d, r11d\n    movd    xmm3, r9d\n    movzx    r9d, byte ptr [rdi + 2*rax + 1]\n    movzx    r10d, byte ptr [rdi + 2*rax + 3]\n    movzx    r11d, byte ptr [rdi + 2*rax + 5]\n    shl    r10d, 8\n    or    r10d, r9d\n    shl    r11d, 16\n    or    r11d, r10d\n    movzx    r9d, byte ptr [rdi + 2*rax + 7]\n    shl    r9d, 24\n    or    r9d, r11d\n    movd    xmm5, r9d\n    punpcklbw    xmm5, xmm4\n    movzx    r9d, byte ptr [rdi + 2*rax + 9]\n    movzx    r10d, byte ptr [rdi + 2*rax + 11]\n    movzx    r11d, byte ptr [rdi + 2*rax + 13]\n    shl    r10d, 8\n    or    r10d, r9d\n    shl    r11d, 16\n    or    r11d, r10d\n    movzx    r9d, byte ptr [rdi + 2*rax + 15]\n    shl    r9d, 24\n    or    r9d, r11d\n    movd    xmm4, r9d\n    punpcklbw    xmm4, xmm3\n    punpcklwd    xmm5, xmm1\n    paddd    xmm2, xmm5\n    punpcklwd    xmm4, xmm1\n    paddd    xmm0, xmm4\n    add    rax, 8\n    cmp    r8, rax\n    jne    .LBB7_10\n    paddd    xmm0, xmm2\n    pshufd    xmm1, xmm0, 238\n    paddd    xmm1, xmm0\n    pshufd    xmm0, xmm1, 85\n    paddd    xmm0, xmm1\n    movd    eax, xmm0\n    cmp    rdx, r8\n    je    .LBB7_2\n.LBB7_12:\n    mov    rdx, rcx\n.LBB7_13:\n    movzx    ecx, word ptr [rdi + rdx]\n    rol    cx, 8\n    movzx    ecx, cx\n    add    eax, ecx\n    lea    rcx, [rdx + 2]\n    add    rdx, 3\n    cmp    rdx, rsi\n    mov    rdx, rcx\n    jb    .LBB7_13\n.LBB7_2:\n    cmp    rcx, rsi\n    jae    .LBB7_5\n    movzx    ecx, byte ptr [rdi + rcx]\n    shl    ecx, 8\n    add    ecx, eax\n    mov    eax, ecx\n    jmp    .LBB7_5\n.LBB7_4:\n    movzx    eax, ax\n    add    eax, ecx\n.LBB7_5:\n    mov    ecx, eax\n    shr    ecx, 16\n    jne    .LBB7_4\n    not    eax\n    ret","output_digest_blake3":"75d1f0f5e90d01c7460f575c2bd53caa"},"efficiency":{"capsule_id":"11db7045e45e6f67670b2a00981cbc48","vote_count":1,"total_historical_votes":1,"net_trit_score":1,"net_trit_balanced":"+","consensus_trit":"Pos","speed_ops_per_us":{"num":400000000,"den":3252897},"ns_per_op":{"num":3252897,"den":400000},"cycles_per_op":{"num":426891,"den":25000},"c64_memory_ratio":{"num":415,"den":65536},"timing_salience":{"num":1181640297851056470,"den":13356818612093009},"efficiency_index":{"num":4695416680379932999,"den":28774708637145800}},"ns_per_op_pq":"3252897/400000","speed_ops_per_us_pq":"400000000/3252897","cycles_per_op_pq":"426891/25000","marine_salience_pq":"53069/624","vote_trits":"+","equivalence_class":"(&[u8])->u16::75d1f0f5e90d"}