; Assembly listing for method Counter:Scalar(System.ReadOnlySpan`1[int],int):int (FullOpts)
; Emitting BLENDED_CODE for x64 + VEX + EVEX on Unix
; FullOpts code
; optimized code
; rbp based frame
; fully interruptible
; No PGO data

G_M000_IG01:                ;; offset=0x0000
       push     rbp
       mov      rbp, rsp
 
G_M000_IG02:                ;; offset=0x0004
       xor      eax, eax
       test     esi, esi
       je       SHORT G_M000_IG05
 
G_M000_IG03:                ;; offset=0x000A
       xor      ecx, ecx
       align    [4 bytes for IG04]
 
G_M000_IG04:                ;; offset=0x0010
       cmp      dword ptr [rdi+rcx], edx
       setg     r8b
       movzx    r8, r8b
       add      eax, r8d
       add      rcx, 4
       dec      esi
       jne      SHORT G_M000_IG04
 
G_M000_IG05:                ;; offset=0x0026
       pop      rbp
       ret      
 
; Total bytes of code 40

; Assembly listing for method Counter:Simd128(System.ReadOnlySpan`1[int],int):int (FullOpts)
; Emitting BLENDED_CODE for x64 + VEX + EVEX on Unix
; FullOpts code
; optimized code
; rbp based frame
; fully interruptible
; No PGO data
; 0 inlinees with PGO data; 2 single block inlinees; 1 inlinees without PGO data

G_M000_IG01:                ;; offset=0x0000
       push     rbp
       push     rbx
       push     rax
       lea      rbp, [rsp+0x10]
 
G_M000_IG02:                ;; offset=0x0008
       vpbroadcastd xmm0, edx
       vxorps   xmm1, xmm1, xmm1
       xor      eax, eax
       lea      ecx, [rsi-0x04]
       test     ecx, ecx
       jl       SHORT G_M000_IG04
       align    [5 bytes for IG03]
 
G_M000_IG03:                ;; offset=0x0020
       movsxd   r8, eax
       vmovups  xmm2, xmmword ptr [rdi+4*r8]
       vpcmpgtd xmm2, xmm2, xmm0
       vpsubd   xmm1, xmm1, xmm2
       add      eax, 4
       cmp      eax, ecx
       jle      SHORT G_M000_IG03
 
G_M000_IG04:                ;; offset=0x0038
       vpsrldq  xmm0, xmm1, 8
       vpaddd   xmm0, xmm0, xmm1
       vpsrldq  xmm1, xmm0, 4
       vpaddd   xmm0, xmm1, xmm0
       vmovd    ebx, xmm0
       cmp      eax, esi
       ja       SHORT G_M000_IG06
       mov      ecx, eax
       lea      rdi, bword ptr [rdi+4*rcx]
       sub      esi, eax
       call     [Counter:Scalar(System.ReadOnlySpan`1[int],int):int]
       add      eax, ebx
 
G_M000_IG05:                ;; offset=0x0062
       add      rsp, 8
       pop      rbx
       pop      rbp
       ret      
 
G_M000_IG06:                ;; offset=0x0069
       call     [System.ThrowHelper:ThrowArgumentOutOfRangeException()]
       int3     
 
; Total bytes of code 112

; Assembly listing for method Counter:Simd256(System.ReadOnlySpan`1[int],int):int (FullOpts)
; Emitting BLENDED_CODE for x64 + VEX + EVEX on Unix
; FullOpts code
; optimized code
; rbp based frame
; fully interruptible
; No PGO data
; 0 inlinees with PGO data; 2 single block inlinees; 1 inlinees without PGO data

G_M000_IG01:                ;; offset=0x0000
       push     rbp
       push     rbx
       push     rax
       lea      rbp, [rsp+0x10]
 
G_M000_IG02:                ;; offset=0x0008
       vpbroadcastd ymm0, edx
       vxorps   ymm1, ymm1, ymm1
       xor      eax, eax
       lea      ecx, [rsi-0x08]
       test     ecx, ecx
       jl       SHORT G_M000_IG04
       align    [5 bytes for IG03]
 
G_M000_IG03:                ;; offset=0x0020
       movsxd   r8, eax
       vmovups  ymm2, ymmword ptr [rdi+4*r8]
       vpcmpgtd ymm2, ymm2, ymm0
       vpsubd   ymm1, ymm1, ymm2
       add      eax, 8
       cmp      eax, ecx
       jle      SHORT G_M000_IG03
 
G_M000_IG04:                ;; offset=0x0038
       vextracti128 xmm0, ymm1
       vpaddd   xmm0, xmm0, xmm1
       vpsrldq  xmm1, xmm0, 8
       vpaddd   xmm0, xmm1, xmm0
       vpsrldq  xmm1, xmm0, 4
       vpaddd   xmm0, xmm1, xmm0
       vmovd    ebx, xmm0
       cmp      eax, esi
       ja       SHORT G_M000_IG06
       mov      ecx, eax
       lea      rdi, bword ptr [rdi+4*rcx]
       sub      esi, eax
       call     [Counter:Scalar(System.ReadOnlySpan`1[int],int):int]
       add      eax, ebx
 
G_M000_IG05:                ;; offset=0x006C
       vzeroupper 
       add      rsp, 8
       pop      rbx
       pop      rbp
       ret      
 
G_M000_IG06:                ;; offset=0x0076
       call     [System.ThrowHelper:ThrowArgumentOutOfRangeException()]
       int3     
 
; Total bytes of code 125

; Assembly listing for method Counter:Avx512(System.ReadOnlySpan`1[int],int):int (FullOpts)
; Emitting BLENDED_CODE for x64 + VEX + EVEX on Unix
; FullOpts code
; optimized code
; rbp based frame
; fully interruptible
; No PGO data
; 0 inlinees with PGO data; 2 single block inlinees; 1 inlinees without PGO data

G_M000_IG01:                ;; offset=0x0000
       push     rbp
       push     rbx
       push     rax
       lea      rbp, [rsp+0x10]
 
G_M000_IG02:                ;; offset=0x0008
       vpbroadcastd zmm0, edx
       vxorps   ymm1, ymm1, ymm1
       xor      eax, eax
       lea      ecx, [rsi-0x10]
       test     ecx, ecx
       jl       SHORT G_M000_IG04
       align    [0 bytes for IG03]
 
G_M000_IG03:                ;; offset=0x001B
       movsxd   r8, eax
       vmovups  zmm2, zmmword ptr [rdi+4*r8]
       vpcmpgtd k1, zmm2, zmm0
       vpmovm2d zmm2, k1
       vpsubd   zmm1, zmm1, zmm2
       add      eax, 16
       cmp      eax, ecx
       jle      SHORT G_M000_IG03
 
G_M000_IG04:                ;; offset=0x003E
       vextracti32x8 ymm0, zmm1, 1
       vpaddd   ymm0, ymm0, ymm1
       vextracti128 xmm1, ymm0
       vpaddd   xmm0, xmm1, xmm0
       vpsrldq  xmm1, xmm0, 8
       vpaddd   xmm0, xmm1, xmm0
       vpsrldq  xmm1, xmm0, 4
       vpaddd   xmm0, xmm1, xmm0
       vmovd    ebx, xmm0
       cmp      eax, esi
       ja       SHORT G_M000_IG06
       mov      ecx, eax
       lea      rdi, bword ptr [rdi+4*rcx]
       sub      esi, eax
       call     [Counter:Scalar(System.ReadOnlySpan`1[int],int):int]
       add      eax, ebx
 
G_M000_IG05:                ;; offset=0x007D
       vzeroupper 
       add      rsp, 8
       pop      rbx
       pop      rbp
       ret      
 
G_M000_IG06:                ;; offset=0x0087
       call     [System.ThrowHelper:ThrowArgumentOutOfRangeException()]
       int3     
 
; Total bytes of code 142

; Assembly listing for method ScalarScan:Count(int[]):int (FullOpts)
; Emitting BLENDED_CODE for x64 + VEX + EVEX on Unix
; FullOpts code
; optimized code
; rbp based frame
; fully interruptible
; No PGO data
; 1 inlinees with PGO data; 1 single block inlinees; 1 inlinees without PGO data

G_M000_IG01:                ;; offset=0x0000
       push     rbp
       mov      rbp, rsp
 
G_M000_IG02:                ;; offset=0x0004
       test     rdi, rdi
       je       SHORT G_M000_IG09
 
G_M000_IG03:                ;; offset=0x0009
       lea      rax, bword ptr [rdi+0x10]
       mov      ecx, dword ptr [rdi+0x08]
 
G_M000_IG04:                ;; offset=0x0010
       xor      edx, edx
       test     ecx, ecx
       je       SHORT G_M000_IG07
 
G_M000_IG05:                ;; offset=0x0016
       xor      edi, edi
       align    [8 bytes for IG06]
 
G_M000_IG06:                ;; offset=0x0020
       cmp      dword ptr [rax+rdi], 0x2134
       setg     sil
       movzx    rsi, sil
       add      edx, esi
       add      rdi, 4
       dec      ecx
       jne      SHORT G_M000_IG06
 
G_M000_IG07:                ;; offset=0x0039
       mov      eax, edx
 
G_M000_IG08:                ;; offset=0x003B
       pop      rbp
       ret      
 
G_M000_IG09:                ;; offset=0x003D
       xor      rax, rax
       xor      ecx, ecx
       jmp      SHORT G_M000_IG04
 
; Total bytes of code 67

; Assembly listing for method Simd128Scan:Count(int[]):int (FullOpts)
; Emitting BLENDED_CODE for x64 + VEX + EVEX on Unix
; FullOpts code
; optimized code
; rbp based frame
; fully interruptible
; No PGO data
; 1 inlinees with PGO data; 3 single block inlinees; 3 inlinees without PGO data

G_M000_IG01:                ;; offset=0x0000
       push     rbp
       mov      rbp, rsp
 
G_M000_IG02:                ;; offset=0x0004
       test     rdi, rdi
       je       SHORT G_M000_IG11
 
G_M000_IG03:                ;; offset=0x0009
       lea      rax, bword ptr [rdi+0x10]
       mov      ecx, dword ptr [rdi+0x08]
 
G_M000_IG04:                ;; offset=0x0010
       vxorps   xmm0, xmm0, xmm0
       xor      edx, edx
       lea      edi, [rcx-0x04]
       test     edi, edi
       jl       SHORT G_M000_IG06
       align    [0 bytes for IG05]
 
G_M000_IG05:                ;; offset=0x001D
       movsxd   rsi, edx
       vmovups  xmm1, xmmword ptr [rax+4*rsi]
       vpcmpgtd xmm1, xmm1, xmmword ptr [reloc @RWD00]
       vpsubd   xmm0, xmm0, xmm1
       add      edx, 4
       cmp      edx, edi
       jle      SHORT G_M000_IG05
 
G_M000_IG06:                ;; offset=0x0038
       vpsrldq  xmm1, xmm0, 8
       vpaddd   xmm0, xmm1, xmm0
       vpsrldq  xmm1, xmm0, 4
       vpaddd   xmm0, xmm1, xmm0
       vmovd    edi, xmm0
       cmp      edx, ecx
       ja       SHORT G_M000_IG12
       mov      esi, edx
       lea      rax, bword ptr [rax+4*rsi]
       sub      ecx, edx
       xor      edx, edx
       test     ecx, ecx
       je       SHORT G_M000_IG09
 
G_M000_IG07:                ;; offset=0x0060
       xor      esi, esi
       align    [0 bytes for IG08]
 
G_M000_IG08:                ;; offset=0x0062
       cmp      dword ptr [rax+rsi], 0x2134
       setg     r8b
       movzx    r8, r8b
       add      edx, r8d
       add      rsi, 4
       dec      ecx
       jne      SHORT G_M000_IG08
 
G_M000_IG09:                ;; offset=0x007C
       lea      eax, [rdi+rdx]
 
G_M000_IG10:                ;; offset=0x007F
       pop      rbp
       ret      
 
G_M000_IG11:                ;; offset=0x0081
       xor      rax, rax
       xor      ecx, ecx
       jmp      SHORT G_M000_IG04
 
G_M000_IG12:                ;; offset=0x0087
       call     [System.ThrowHelper:ThrowArgumentOutOfRangeException()]
       int3     
 
RWD00  	dq	0000213400002134h, 0000213400002134h

; Total bytes of code 142

; Assembly listing for method Simd256Scan:Count(int[]):int (FullOpts)
; Emitting BLENDED_CODE for x64 + VEX + EVEX on Unix
; FullOpts code
; optimized code
; rbp based frame
; fully interruptible
; No PGO data
; 1 inlinees with PGO data; 3 single block inlinees; 3 inlinees without PGO data

G_M000_IG01:                ;; offset=0x0000
       push     rbp
       mov      rbp, rsp
 
G_M000_IG02:                ;; offset=0x0004
       test     rdi, rdi
       je       G_M000_IG11
 
G_M000_IG03:                ;; offset=0x000D
       lea      rax, bword ptr [rdi+0x10]
       mov      ecx, dword ptr [rdi+0x08]
 
G_M000_IG04:                ;; offset=0x0014
       vxorps   ymm0, ymm0, ymm0
       xor      edx, edx
       lea      edi, [rcx-0x08]
       test     edi, edi
       jl       SHORT G_M000_IG06
       align    [0 bytes for IG05]
 
G_M000_IG05:                ;; offset=0x0021
       movsxd   rsi, edx
       vmovups  ymm1, ymmword ptr [rax+4*rsi]
       vpcmpgtd ymm1, ymm1, ymmword ptr [reloc @RWD00]
       vpsubd   ymm0, ymm0, ymm1
       add      edx, 8
       cmp      edx, edi
       jle      SHORT G_M000_IG05
 
G_M000_IG06:                ;; offset=0x003C
       vextracti128 xmm1, ymm0
       vpaddd   xmm0, xmm1, xmm0
       vpsrldq  xmm1, xmm0, 8
       vpaddd   xmm0, xmm1, xmm0
       vpsrldq  xmm1, xmm0, 4
       vpaddd   xmm0, xmm1, xmm0
       vmovd    edi, xmm0
       cmp      edx, ecx
       ja       SHORT G_M000_IG12
       mov      esi, edx
       lea      rax, bword ptr [rax+4*rsi]
       sub      ecx, edx
       xor      edx, edx
       test     ecx, ecx
       je       SHORT G_M000_IG09
 
G_M000_IG07:                ;; offset=0x006E
       xor      esi, esi
       align    [0 bytes for IG08]
 
G_M000_IG08:                ;; offset=0x0070
       cmp      dword ptr [rax+rsi], 0x2134
       setg     r8b
       movzx    r8, r8b
       add      edx, r8d
       add      rsi, 4
       dec      ecx
       jne      SHORT G_M000_IG08
 
G_M000_IG09:                ;; offset=0x008A
       lea      eax, [rdi+rdx]
 
G_M000_IG10:                ;; offset=0x008D
       vzeroupper 
       pop      rbp
       ret      
 
G_M000_IG11:                ;; offset=0x0092
       xor      rax, rax
       xor      ecx, ecx
       jmp      G_M000_IG04
 
G_M000_IG12:                ;; offset=0x009B
       call     [System.ThrowHelper:ThrowArgumentOutOfRangeException()]
       int3     
 
RWD00  	dq	0000213400002134h, 0000213400002134h, 0000213400002134h, 0000213400002134h

; Total bytes of code 162

; Assembly listing for method Avx512Scan:Count(int[]):int (FullOpts)
; Emitting BLENDED_CODE for x64 + VEX + EVEX on Unix
; FullOpts code
; optimized code
; rbp based frame
; partially interruptible
; No PGO data
; 1 inlinees with PGO data; 1 single block inlinees; 0 inlinees without PGO data

G_M000_IG01:                ;; offset=0x0000
       push     rbp
       mov      rbp, rsp
 
G_M000_IG02:                ;; offset=0x0004
       test     rdi, rdi
       je       SHORT G_M000_IG06
 
G_M000_IG03:                ;; offset=0x0009
       lea      rsi, bword ptr [rdi+0x10]
       mov      edx, dword ptr [rdi+0x08]
 
G_M000_IG04:                ;; offset=0x0010
       mov      rdi, rsi
       mov      esi, edx
       mov      edx, 0x2134
       call     [Counter:Avx512(System.ReadOnlySpan`1[int],int):int]
       nop      
 
G_M000_IG05:                ;; offset=0x0021
       pop      rbp
       ret      
 
G_M000_IG06:                ;; offset=0x0023
       xor      rsi, rsi
       xor      edx, edx
       jmp      SHORT G_M000_IG04
 
; Total bytes of code 41

