; Listing generated by Microsoft (R) Optimizing Compiler Version 19.44.35215.0 include listing.inc INCLUDELIB MSVCRTD INCLUDELIB OLDNAMES _DATA SEGMENT COMM infolog:BYTE:0200H _DATA ENDS msvcjmc SEGMENT __5C8CA4D3_mmintrin@h DB 01H __8C83BECC_concurrencysal@h DB 01H __608E3340_sal@h DB 01H __FB67E29A_vadefs@h DB 01H __1D1B619C_vcruntime@h DB 01H __735960E1_corecrt@h DB 01H __211DB995_corecrt_malloc@h DB 01H __7CD62D9E_malloc@h DB 01H __9DCE0DC8_xmmintrin@h DB 01H __4C2AD0C7_winpackagefamily@h DB 01H __9DED9ED1_winapifamily@h DB 01H __12FEDF4E_sdkddkver@h DB 01H __9BAEE128_excpt@h DB 01H __B7B53233_stdarg@h DB 01H __6B04FCB3_specstrings_undef@h DB 01H __F4027AF7_specstrings_strict@h DB 01H __B90340D4_sdv_driverspecs@h DB 01H __BFFF5AD3_driverspecs@h DB 01H __32847078_specstrings@h DB 01H __108B2620_corecrt_wctype@h DB 01H __6CD6613D_ctype@h DB 01H __30902A1F_kernelspecs@h DB 01H __376FD5CA_basetsd@h DB 01H __13DE2371_errno@h DB 01H __8C6AE390_vcruntime_string@h DB 01H __8ACB2152_corecrt_memcpy_s@h DB 01H __EA6C9D17_corecrt_memory@h DB 01H __0DF2AF52_corecrt_wstring@h DB 01H __6E889ECC_string@h DB 01H __9BEDF4DE_guiddef@h DB 01H __51BFD2FE_pshpack4@h DB 01H __31652CEA_poppack@h DB 01H __5532AE4C_pshpack2@h DB 01H __58A52B9A_pshpack8@h DB 01H __57741015_pshpack1@h DB 01H __CDE68C90_apiset@h DB 01H __0BF06E8D_ktmtypes@h DB 01H __40C200C0_winnt@h DB 01H __9336F789_minwindef@h DB 01H __55136115_windef@h DB 01H __32205BF0_apisetcconv@h DB 01H __B48FDEA0_minwinbase@h DB 01H __3551B028_apiquery2@h DB 01H __65BE04AA_processenv@h DB 01H __4767CA46_fileapi@h DB 01H __282E6C4B_fileapifromapp@h DB 01H __393AF12C_debugapi@h DB 01H __EBC502B8_utilapiset@h DB 01H __1EAD8C69_handleapi@h DB 01H __D8EF9B29_errhandlingapi@h DB 01H __97FC1204_fibersapi@h DB 01H __27448220_namedpipeapi@h DB 01H __6EA33B2A_profileapi@h DB 01H __EAC6F673_heapapi@h DB 01H __D64EEA5A_ioapiset@h DB 01H __144BD4B6_synchapi@h DB 01H __03B1C640_interlockedapi@h DB 01H __DC64CB38_processthreadsapi@h DB 01H __D719B518_sysinfoapi@h DB 01H __410385B1_memoryapi@h DB 01H __C1AD45EF_enclaveapi@h DB 01H __F4C3AA32_threadpoollegacyapiset@h DB 01H __AC5A7A9F_threadpoolapiset@h DB 01H __F5254B21_jobapi@h DB 01H __BCEA6EE8_jobapi2@h DB 01H __D18ACE72_wow64apiset@h DB 01H __669B0D4A_libloaderapi@h DB 01H __645F7034_securitybaseapi@h DB 01H __67E58557_namespaceapi@h DB 01H __599D9D3A_systemtopologyapi@h DB 01H __2337E373_processtopologyapi@h DB 01H __02BFF239_securityappcontainer@h DB 01H __9C196272_realtimeapiset@h DB 01H __5AB313A4_winerror@h DB 01H __B7E7187B_timezoneapi@h DB 01H __6DE9EB6F_winbase@h DB 01H __56B2AFF2_wingdi@h DB 01H __BA1161A9_tvout@h DB 01H __0501A018_winuser@h DB 01H __EF12FA99_datetimeapi@h DB 01H __8FA7C3CA_winnls@h DB 01H __390F0C47_stringapiset@h DB 01H __28605B0A_wincontypes@h DB 01H __BFBDE86D_consoleapi@h DB 01H __C3CAFBF0_consoleapi2@h DB 01H __C20891C7_consoleapi3@h DB 01H __717C98B6_wincon@h DB 01H __2884C177_verrsrc@h DB 01H __A3FD3A34_winver@h DB 01H __6F8AD9F1_reason@h DB 01H __4C90FD6F_winreg@h DB 01H __68AFEBAD_wnnc@h DB 01H __5A7AB086_winnetwk@h DB 01H __2FE8A10C_stralign@h DB 01H __34558472_winsvc@h DB 01H __058845F1_mcx@h DB 01H __7F16006B_ime_cmodes@h DB 01H __0A3AF599_imm@h DB 01H __9349FE86_windows@h DB 01H __639A050C_sn_internal@h DB 01H __60B45B40_corecrt_stdio_config@h DB 01H __CFA3741E_corecrt_wstdio@h DB 01H __B3FE3303_stdio@h DB 01H __955456CD_stddef@h DB 01H __99AED4FB_corecrt_search@h DB 01H __8B813BF6_corecrt_wstdlib@h DB 01H __3D1CA2C3_limits@h DB 01H __E8FB0A68_stdlib@h DB 01H __C363A436_stb_image@h DB 01H __836A8CFC_stdint@h DB 01H __C95DC661_khrplatform@h DB 01H __6C577136_gl@h DB 01H __EE638A2C_wgl@h DB 01H __E76F0EB7_glfw3@h DB 01H __F8AC8404_emmintrin@h DB 01H __270DEC8D_pmmintrin@h DB 01H __97D49F0F_tmmintrin@h DB 01H __BEEF8A8C_smmintrin@h DB 01H __DB8D0340_nmmintrin@h DB 01H __0E36F90E_wmmintrin@h DB 01H __C5A2B409_zmmintrin@h DB 01H __F2B616C3_immintrin@h DB 01H __9FB25DBE_assert@h DB 01H __4E664295_glfw_function@h DB 01H __64C0EF11_StgSharpNative@h DB 01H __47E843D2_intrin0@inl@h DB 01H __130964FF_setjmp@h DB 01H __4875F786_ammintrin@h DB 01H __353FD888_intrin@h DB 01H __5FE1E9E3_isa_availability@h DB 01H __AA840D82_sn_intrinsic@h DB 01H __1FCEA5C6_hash@c DB 01H msvcjmc ENDS PUBLIC city_hash_simplify_sse PUBLIC __JustMyCode_Default EXTRN _RTC_InitBase:PROC EXTRN _RTC_Shutdown:PROC EXTRN __CheckForDebuggerJustMyCode:PROC ; COMDAT pdata pdata SEGMENT $pdata$city_hash_simplify_sse DD imagerel $LN25 DD imagerel $LN25+632 DD imagerel $unwind$city_hash_simplify_sse pdata ENDS ; COMDAT rtc$TMZ rtc$TMZ SEGMENT _RTC_Shutdown.rtc$TMZ DQ FLAT:_RTC_Shutdown rtc$TMZ ENDS ; COMDAT rtc$IMZ rtc$IMZ SEGMENT _RTC_InitBase.rtc$IMZ DQ FLAT:_RTC_InitBase rtc$IMZ ENDS ; COMDAT xdata xdata SEGMENT $unwind$city_hash_simplify_sse DD 025051701H DD 01122317H DD 0700b0043H DD 0500aH xdata ENDS ; Function compile flags: /Odt ; COMDAT __JustMyCode_Default _TEXT SEGMENT __JustMyCode_Default PROC ; COMDAT 00000 c2 00 00 ret 0 __JustMyCode_Default ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu /ZI ; File D:\platform-dev\StgSharp.Native\sn-src\hash.c ; COMDAT city_hash_simplify_sse _TEXT SEGMENT hash$ = 4 size$ = 36 end$ = 72 ptr$ = 104 last$1 = 136 last_128$2 = 168 last_32$3 = 200 hash64$4 = 232 vec$5 = 272 str$ = 528 length$ = 536 city_hash_simplify_sse PROC ; COMDAT ; 5 : { $LN25: 00000 89 54 24 10 mov DWORD PTR [rsp+16], edx 00004 48 89 4c 24 08 mov QWORD PTR [rsp+8], rcx 00009 55 push rbp 0000a 57 push rdi 0000b 48 81 ec 18 02 00 00 sub rsp, 536 ; 00000218H 00012 48 8d 6c 24 20 lea rbp, QWORD PTR [rsp+32] 00017 48 8d 0d 00 00 00 00 lea rcx, OFFSET FLAT:__1FCEA5C6_hash@c 0001e e8 00 00 00 00 call __CheckForDebuggerJustMyCode 00023 90 npad 1 ; 6 : uint32_t hash = length, size = length << 1; 00024 8b 85 18 02 00 00 mov eax, DWORD PTR length$[rbp] 0002a 89 45 04 mov DWORD PTR hash$[rbp], eax 0002d 8b 85 18 02 00 00 mov eax, DWORD PTR length$[rbp] 00033 d1 e0 shl eax, 1 00035 89 45 24 mov DWORD PTR size$[rbp], eax ; 7 : byte *end = str + size, *ptr = str; 00038 8b 45 24 mov eax, DWORD PTR size$[rbp] 0003b 48 8b 8d 10 02 00 00 mov rcx, QWORD PTR str$[rbp] 00042 48 03 c8 add rcx, rax 00045 48 8b c1 mov rax, rcx 00048 48 89 45 48 mov QWORD PTR end$[rbp], rax 0004c 48 8b 85 10 02 00 00 mov rax, QWORD PTR str$[rbp] 00053 48 89 45 68 mov QWORD PTR ptr$[rbp], rax ; 8 : ; 9 : if (size < 4) { 00057 83 7d 24 04 cmp DWORD PTR size$[rbp], 4 0005b 73 35 jae SHORT $LN20@city_hash_ ; 10 : for (; ptr < end; ptr += 2) { 0005d eb 0c jmp SHORT $LN4@city_hash_ $LN2@city_hash_: 0005f 48 8b 45 68 mov rax, QWORD PTR ptr$[rbp] 00063 48 83 c0 02 add rax, 2 00067 48 89 45 68 mov QWORD PTR ptr$[rbp], rax $LN4@city_hash_: 0006b 48 8b 45 48 mov rax, QWORD PTR end$[rbp] 0006f 48 39 45 68 cmp QWORD PTR ptr$[rbp], rax 00073 73 18 jae SHORT $LN3@city_hash_ ; 11 : hash = _mm_crc32_u16(hash, *ptr); 00075 48 8b 45 68 mov rax, QWORD PTR ptr$[rbp] 00079 66 0f be 00 movsx ax, BYTE PTR [rax] 0007d 8b 4d 04 mov ecx, DWORD PTR hash$[rbp] 00080 66 f2 0f 38 f1 c8 crc32 ecx, ax 00086 8b c1 mov eax, ecx 00088 89 45 04 mov DWORD PTR hash$[rbp], eax ; 12 : } 0008b eb d2 jmp SHORT $LN2@city_hash_ $LN3@city_hash_: ; 13 : } else if (size < 16) { 0008d e9 95 01 00 00 jmp $LN21@city_hash_ $LN20@city_hash_: 00092 83 7d 24 10 cmp DWORD PTR size$[rbp], 16 00096 73 6e jae SHORT $LN22@city_hash_ ; 14 : byte *last = end - 4; 00098 48 8b 45 48 mov rax, QWORD PTR end$[rbp] 0009c 48 83 e8 04 sub rax, 4 000a0 48 89 85 88 00 00 00 mov QWORD PTR last$1[rbp], rax ; 15 : for (; ptr < end; ptr += 4) { 000a7 eb 0c jmp SHORT $LN7@city_hash_ $LN5@city_hash_: 000a9 48 8b 45 68 mov rax, QWORD PTR ptr$[rbp] 000ad 48 83 c0 04 add rax, 4 000b1 48 89 45 68 mov QWORD PTR ptr$[rbp], rax $LN7@city_hash_: 000b5 48 8b 45 48 mov rax, QWORD PTR end$[rbp] 000b9 48 39 45 68 cmp QWORD PTR ptr$[rbp], rax 000bd 73 13 jae SHORT $LN6@city_hash_ ; 16 : hash = _mm_crc32_u32(hash, *(uint32_t *)ptr); 000bf 48 8b 45 68 mov rax, QWORD PTR ptr$[rbp] 000c3 8b 4d 04 mov ecx, DWORD PTR hash$[rbp] 000c6 f2 0f 38 f1 08 crc32 ecx, DWORD PTR [rax] 000cb 8b c1 mov eax, ecx 000cd 89 45 04 mov DWORD PTR hash$[rbp], eax ; 17 : } 000d0 eb d7 jmp SHORT $LN5@city_hash_ $LN6@city_hash_: ; 18 : for (; ptr < end; ptr++) { 000d2 eb 0b jmp SHORT $LN10@city_hash_ $LN8@city_hash_: 000d4 48 8b 45 68 mov rax, QWORD PTR ptr$[rbp] 000d8 48 ff c0 inc rax 000db 48 89 45 68 mov QWORD PTR ptr$[rbp], rax $LN10@city_hash_: 000df 48 8b 45 48 mov rax, QWORD PTR end$[rbp] 000e3 48 39 45 68 cmp QWORD PTR ptr$[rbp], rax 000e7 73 18 jae SHORT $LN9@city_hash_ ; 19 : hash = _mm_crc32_u16(hash, *ptr); 000e9 48 8b 45 68 mov rax, QWORD PTR ptr$[rbp] 000ed 66 0f be 00 movsx ax, BYTE PTR [rax] 000f1 8b 4d 04 mov ecx, DWORD PTR hash$[rbp] 000f4 66 f2 0f 38 f1 c8 crc32 ecx, ax 000fa 8b c1 mov eax, ecx 000fc 89 45 04 mov DWORD PTR hash$[rbp], eax ; 20 : } 000ff eb d3 jmp SHORT $LN8@city_hash_ $LN9@city_hash_: ; 21 : } else { 00101 e9 21 01 00 00 jmp $LN23@city_hash_ $LN22@city_hash_: ; 22 : byte *last_128 = end - 16; 00106 48 8b 45 48 mov rax, QWORD PTR end$[rbp] 0010a 48 83 e8 10 sub rax, 16 0010e 48 89 85 a8 00 00 00 mov QWORD PTR last_128$2[rbp], rax ; 23 : byte *last_32 = end - 4; 00115 48 8b 45 48 mov rax, QWORD PTR end$[rbp] 00119 48 83 e8 04 sub rax, 4 0011d 48 89 85 c8 00 00 00 mov QWORD PTR last_32$3[rbp], rax ; 24 : uint64_t hash64 = size; 00124 8b 45 24 mov eax, DWORD PTR size$[rbp] 00127 48 89 85 e8 00 00 00 mov QWORD PTR hash64$4[rbp], rax ; 25 : for (; ptr < last_128; ptr += 16) { 0012e eb 0c jmp SHORT $LN13@city_hash_ $LN11@city_hash_: 00130 48 8b 45 68 mov rax, QWORD PTR ptr$[rbp] 00134 48 83 c0 10 add rax, 16 00138 48 89 45 68 mov QWORD PTR ptr$[rbp], rax $LN13@city_hash_: 0013c 48 8b 85 a8 00 00 00 mov rax, QWORD PTR last_128$2[rbp] 00143 48 39 45 68 cmp QWORD PTR ptr$[rbp], rax 00147 73 5e jae SHORT $LN12@city_hash_ ; 26 : __m128i vec = _mm_loadu_si32((int *)ptr); 00149 48 8b 45 68 mov rax, QWORD PTR ptr$[rbp] 0014d 66 0f 6e 00 movd xmm0, DWORD PTR [rax] 00151 66 0f 7f 85 10 01 00 00 movdqa XMMWORD PTR vec$5[rbp], xmm0 ; 27 : hash64 = _mm_crc32_u64(hash64, _mm_extract_epi64(vec, 0)); 00159 66 0f 6f 85 10 01 00 00 movdqa xmm0, XMMWORD PTR vec$5[rbp] 00161 66 48 0f 3a 16 c0 00 pextrq rax, xmm0, 0 00168 48 8b 8d e8 00 00 00 mov rcx, QWORD PTR hash64$4[rbp] 0016f f2 48 0f 38 f1 c8 crc32 rcx, rax 00175 48 8b c1 mov rax, rcx 00178 48 89 85 e8 00 00 00 mov QWORD PTR hash64$4[rbp], rax ; 28 : hash64 = _mm_crc32_u64(hash64, _mm_extract_epi64(vec, 1)); 0017f 66 0f 6f 85 10 01 00 00 movdqa xmm0, XMMWORD PTR vec$5[rbp] 00187 66 48 0f 3a 16 c0 01 pextrq rax, xmm0, 1 0018e 48 8b 8d e8 00 00 00 mov rcx, QWORD PTR hash64$4[rbp] 00195 f2 48 0f 38 f1 c8 crc32 rcx, rax 0019b 48 8b c1 mov rax, rcx 0019e 48 89 85 e8 00 00 00 mov QWORD PTR hash64$4[rbp], rax ; 29 : } 001a5 eb 89 jmp SHORT $LN11@city_hash_ $LN12@city_hash_: ; 30 : hash = _mm_crc32_u8(hash, hash64); 001a7 8b 45 04 mov eax, DWORD PTR hash$[rbp] 001aa f2 0f 38 f0 85 e8 00 00 00 crc32 eax, BYTE PTR hash64$4[rbp] 001b3 89 45 04 mov DWORD PTR hash$[rbp], eax ; 31 : hash = _mm_crc32_u8(hash, hash64 >> 32); 001b6 48 8b 85 e8 00 00 00 mov rax, QWORD PTR hash64$4[rbp] 001bd 48 c1 e8 20 shr rax, 32 ; 00000020H 001c1 8b 4d 04 mov ecx, DWORD PTR hash$[rbp] 001c4 f2 0f 38 f0 c8 crc32 ecx, al 001c9 8b c1 mov eax, ecx 001cb 89 45 04 mov DWORD PTR hash$[rbp], eax ; 32 : for (; ptr < last_32; ptr += 4) { 001ce eb 0c jmp SHORT $LN16@city_hash_ $LN14@city_hash_: 001d0 48 8b 45 68 mov rax, QWORD PTR ptr$[rbp] 001d4 48 83 c0 04 add rax, 4 001d8 48 89 45 68 mov QWORD PTR ptr$[rbp], rax $LN16@city_hash_: 001dc 48 8b 85 c8 00 00 00 mov rax, QWORD PTR last_32$3[rbp] 001e3 48 39 45 68 cmp QWORD PTR ptr$[rbp], rax 001e7 73 13 jae SHORT $LN15@city_hash_ ; 33 : hash = _mm_crc32_u32(hash,*(uint32_t *)ptr); 001e9 48 8b 45 68 mov rax, QWORD PTR ptr$[rbp] 001ed 8b 4d 04 mov ecx, DWORD PTR hash$[rbp] 001f0 f2 0f 38 f1 08 crc32 ecx, DWORD PTR [rax] 001f5 8b c1 mov eax, ecx 001f7 89 45 04 mov DWORD PTR hash$[rbp], eax ; 34 : } 001fa eb d4 jmp SHORT $LN14@city_hash_ $LN15@city_hash_: ; 35 : for (; ptr < end; ptr += 2) { 001fc eb 0c jmp SHORT $LN19@city_hash_ $LN17@city_hash_: 001fe 48 8b 45 68 mov rax, QWORD PTR ptr$[rbp] 00202 48 83 c0 02 add rax, 2 00206 48 89 45 68 mov QWORD PTR ptr$[rbp], rax $LN19@city_hash_: 0020a 48 8b 45 48 mov rax, QWORD PTR end$[rbp] 0020e 48 39 45 68 cmp QWORD PTR ptr$[rbp], rax 00212 73 13 jae SHORT $LN18@city_hash_ ; 36 : hash = _mm_crc32_u8(hash,*ptr); 00214 48 8b 45 68 mov rax, QWORD PTR ptr$[rbp] 00218 8b 4d 04 mov ecx, DWORD PTR hash$[rbp] 0021b f2 0f 38 f0 08 crc32 ecx, BYTE PTR [rax] 00220 8b c1 mov eax, ecx 00222 89 45 04 mov DWORD PTR hash$[rbp], eax ; 37 : } 00225 eb d7 jmp SHORT $LN17@city_hash_ $LN18@city_hash_: $LN23@city_hash_: $LN21@city_hash_: ; 38 : } ; 39 : hash ^= hash >> 16; 00227 8b 45 04 mov eax, DWORD PTR hash$[rbp] 0022a c1 e8 10 shr eax, 16 0022d 8b 4d 04 mov ecx, DWORD PTR hash$[rbp] 00230 33 c8 xor ecx, eax 00232 8b c1 mov eax, ecx 00234 89 45 04 mov DWORD PTR hash$[rbp], eax ; 40 : hash *= 0x85ebca6b; 00237 69 45 04 6b ca eb 85 imul eax, DWORD PTR hash$[rbp], -2048144789 ; 85ebca6bH 0023e 89 45 04 mov DWORD PTR hash$[rbp], eax ; 41 : hash ^= hash >> 13; 00241 8b 45 04 mov eax, DWORD PTR hash$[rbp] 00244 c1 e8 0d shr eax, 13 00247 8b 4d 04 mov ecx, DWORD PTR hash$[rbp] 0024a 33 c8 xor ecx, eax 0024c 8b c1 mov eax, ecx 0024e 89 45 04 mov DWORD PTR hash$[rbp], eax ; 42 : hash *= 0xc2b2ae35; 00251 69 45 04 35 ae b2 c2 imul eax, DWORD PTR hash$[rbp], -1028477387 ; c2b2ae35H 00258 89 45 04 mov DWORD PTR hash$[rbp], eax ; 43 : hash ^= hash >> 16; 0025b 8b 45 04 mov eax, DWORD PTR hash$[rbp] 0025e c1 e8 10 shr eax, 16 00261 8b 4d 04 mov ecx, DWORD PTR hash$[rbp] 00264 33 c8 xor ecx, eax 00266 8b c1 mov eax, ecx 00268 89 45 04 mov DWORD PTR hash$[rbp], eax ; 44 : return hash; 0026b 8b 45 04 mov eax, DWORD PTR hash$[rbp] ; 45 : } 0026e 48 8d a5 f8 01 00 00 lea rsp, QWORD PTR [rbp+504] 00275 5f pop rdi 00276 5d pop rbp 00277 c3 ret 0 city_hash_simplify_sse ENDP _TEXT ENDS END