Skip to content

Instantly share code, notes, and snippets.

@xacrimon
Created February 4, 2025 14:19
Show Gist options
  • Save xacrimon/f43a85c0d6dcac741e4f8a132b73c39b to your computer and use it in GitHub Desktop.
Save xacrimon/f43a85c0d6dcac741e4f8a132b73c39b to your computer and use it in GitHub Desktop.
Found sysroot: /Volumes/Q/repos/rust/build/x86_64-unknown-linux-gnu/stage1
Compiling bytestr-match v0.1.0 (/Volumes/Q/repos/bytestr-match)
warning: unused variable: `eq`
--> src/lib.rs:26:16
|
26 | fn ees(x:&[u8],eq:[u8;16])->bool{
| ^^ help: if this is intentional, prefix it with an underscore: `_eq`
|
= note: `#[warn(unused_variables)]` on by default
warning: `bytestr-match` (lib) generated 1 warning
Finished `release` profile [optimized] target(s) in 2.59s
Artifact files: ["/Volumes/Q/repos/bytestr-match/target/release/libbytestr_match.rlib", "/Volumes/Q/repos/bytestr-match/target/release/deps/libbytestr_match-f651d9a6f574924b.rmeta"]
Working with file: /Volumes/Q/repos/bytestr-match/target/release/deps/bytestr_match-f651d9a6f574924b.s
to_errno:
lea rcx, [rsi - 28]
xor eax, eax
cmp rcx, -28
ja .LBB0_85
vmovdqu xmm1, xmmword ptr [rdi + 11]
vmovdqu xmm0, xmmword ptr [rdi]
vpxor xmm0, xmm0, xmmword ptr [rip + .LCPI0_0]
vpternlogq xmm0, xmm1, xmmword ptr [rip + .LCPI0_1], 246
vptest xmm0, xmm0
je .LBB0_2
.LBB0_85:
ret
.LBB0_2:
add rsi, -35
cmp rsi, 25
ja .LBB0_85
lea rcx, [rip + .LJTI0_0]
movsxd rdx, dword ptr [rcx + 4*rsi]
add rdx, rcx
jmp rdx
mov ecx, dword ptr [rdi + 27]
cmp ecx, 1917144905
je .LBB0_75
cmp ecx, 1701669204
jne .LBB0_85
cmp byte ptr [rdi + 31], 111
jne .LBB0_85
cmp byte ptr [rdi + 32], 117
jne .LBB0_85
xor ecx, ecx
cmp byte ptr [rdi + 33], 116
mov eax, 420
cmovne eax, ecx
ret
movabs rcx, 8027794382745073257
movabs rdx, 8386654075050290761
xor rcx, qword ptr [rdi + 35]
xor rdx, qword ptr [rdi + 27]
or rdx, rcx
jne .LBB0_85
movabs rcx, 7234314173708068178
movabs rdx, 7957695015159490930
xor rcx, qword ptr [rdi + 51]
xor rdx, qword ptr [rdi + 43]
or rdx, rcx
jne .LBB0_85
jmp .LBB0_69
mov rcx, qword ptr [rdi + 27]
movabs rdx, 5292700866638537793
cmp rcx, rdx
je .LBB0_59
movabs rdx, 8030041784815218510
cmp rcx, rdx
je .LBB0_55
movabs rdx, 7297084235706491713
cmp rcx, rdx
jne .LBB0_85
cmp byte ptr [rdi + 35], 110
jne .LBB0_85
cmp byte ptr [rdi + 36], 105
jne .LBB0_85
cmp byte ptr [rdi + 37], 101
jne .LBB0_85
cmp byte ptr [rdi + 38], 100
jne .LBB0_85
jmp .LBB0_69
mov rcx, qword ptr [rdi + 27]
movabs rdx, 5579528308836232789
cmp rcx, rdx
je .LBB0_33
movabs rdx, 5723643496912088661
cmp rcx, rdx
jne .LBB0_85
cmp byte ptr [rdi + 35], 98
jne .LBB0_85
cmp byte ptr [rdi + 36], 106
jne .LBB0_85
cmp byte ptr [rdi + 37], 101
jne .LBB0_85
cmp byte ptr [rdi + 38], 99
jne .LBB0_85
cmp byte ptr [rdi + 39], 116
jne .LBB0_85
jmp .LBB0_47
movabs rcx, 7811881983678903617
cmp qword ptr [rdi + 27], rcx
jne .LBB0_85
cmp byte ptr [rdi + 35], 101
jne .LBB0_85
cmp byte ptr [rdi + 36], 100
jne .LBB0_85
.LBB0_69:
mov eax, 1245
ret
movabs rcx, 8245940784538218318
cmp qword ptr [rdi + 27], rcx
jne .LBB0_85
cmp byte ptr [rdi + 35], 107
jne .LBB0_85
.LBB0_63:
mov eax, 100500
ret
mov rax, qword ptr [rdi + 27]
movabs rdx, 8391700773291780436
xor ecx, ecx
mov edi, 420
movabs rsi, 8751179541575987022
cmp rax, rdx
cmovne edi, ecx
cmp rax, rsi
mov eax, 1
cmovne eax, edi
ret
mov rcx, qword ptr [rdi + 27]
movabs rdx, 5652968920847311182
cmp rcx, rdx
je .LBB0_14
movabs rdx, 8666460001766566220
cmp rcx, rdx
je .LBB0_20
movabs rdx, 6153433770481575251
cmp rcx, rdx
jne .LBB0_85
cmp byte ptr [rdi + 35], 110
jne .LBB0_85
cmp byte ptr [rdi + 36], 107
jne .LBB0_85
cmp byte ptr [rdi + 37], 110
jne .LBB0_85
cmp byte ptr [rdi + 38], 111
jne .LBB0_85
cmp byte ptr [rdi + 39], 119
jne .LBB0_85
cmp byte ptr [rdi + 40], 110
jne .LBB0_85
jmp .LBB0_47
movabs rcx, 5795701090950016597
cmp qword ptr [rdi + 27], rcx
jne .LBB0_85
cmp byte ptr [rdi + 35], 114
jne .LBB0_85
cmp byte ptr [rdi + 36], 111
jne .LBB0_85
cmp byte ptr [rdi + 37], 112
jne .LBB0_85
cmp byte ptr [rdi + 38], 101
jne .LBB0_85
cmp byte ptr [rdi + 39], 114
jne .LBB0_85
cmp byte ptr [rdi + 40], 116
jne .LBB0_85
cmp byte ptr [rdi + 41], 121
jne .LBB0_85
jmp .LBB0_47
movabs rcx, 7741218698713854821
movabs rdx, 7165071222112874069
xor rcx, qword ptr [rdi + 35]
xor rdx, qword ptr [rdi + 27]
or rdx, rcx
jne .LBB0_85
cmp byte ptr [rdi + 43], 110
jne .LBB0_85
cmp byte ptr [rdi + 44], 111
jne .LBB0_85
cmp byte ptr [rdi + 45], 119
jne .LBB0_85
xor ecx, ecx
cmp byte ptr [rdi + 46], 110
mov eax, 69
cmovne eax, ecx
ret
movabs rcx, 7305790113158886510
movabs rdx, 5291297932684521045
xor rcx, qword ptr [rdi + 35]
xor rdx, qword ptr [rdi + 27]
or rdx, rcx
jne .LBB0_85
.LBB0_47:
mov eax, 18
ret
.LBB0_33:
cmp byte ptr [rdi + 35], 101
jne .LBB0_85
cmp byte ptr [rdi + 36], 116
jne .LBB0_85
cmp byte ptr [rdi + 37], 104
jne .LBB0_85
cmp byte ptr [rdi + 38], 111
jne .LBB0_85
cmp byte ptr [rdi + 39], 100
jne .LBB0_85
jmp .LBB0_47
.LBB0_75:
cmp byte ptr [rdi + 31], 114
jne .LBB0_85
cmp byte ptr [rdi + 32], 111
jne .LBB0_85
cmp byte ptr [rdi + 33], 114
jne .LBB0_85
jmp .LBB0_63
.LBB0_55:
cmp byte ptr [rdi + 35], 114
jne .LBB0_85
cmp byte ptr [rdi + 36], 116
jne .LBB0_85
cmp byte ptr [rdi + 37], 101
jne .LBB0_85
xor ecx, ecx
cmp byte ptr [rdi + 38], 100
mov eax, 228
cmovne eax, ecx
ret
.LBB0_59:
cmp byte ptr [rdi + 35], 110
jne .LBB0_85
cmp byte ptr [rdi + 36], 85
jne .LBB0_85
cmp byte ptr [rdi + 37], 115
jne .LBB0_85
cmp byte ptr [rdi + 38], 101
jne .LBB0_85
jmp .LBB0_63
.LBB0_20:
cmp byte ptr [rdi + 35], 99
jne .LBB0_85
cmp byte ptr [rdi + 36], 101
jne .LBB0_85
cmp byte ptr [rdi + 37], 101
jne .LBB0_85
cmp byte ptr [rdi + 38], 100
jne .LBB0_85
cmp byte ptr [rdi + 39], 101
jne .LBB0_85
xor eax, eax
cmp byte ptr [rdi + 40], 100
sete al
lea eax, [rax + 8*rax]
ret
.LBB0_14:
cmp byte ptr [rdi + 35], 111
jne .LBB0_85
cmp byte ptr [rdi + 36], 79
jne .LBB0_85
cmp byte ptr [rdi + 37], 119
jne .LBB0_85
cmp byte ptr [rdi + 38], 110
jne .LBB0_85
cmp byte ptr [rdi + 39], 101
jne .LBB0_85
cmp byte ptr [rdi + 40], 114
jne .LBB0_85
jmp .LBB0_47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment