Files
stgsharp/StgSharp.C/x64/Debug/hash.cod
T
2025-08-25 09:50:30 +08:00

532 lines
15 KiB
Plaintext

; Listing generated by Microsoft (R) Optimizing Compiler Version 19.41.34120.0
include listing.inc
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM infolog:BYTE:0200H
_DATA ENDS
msvcjmc SEGMENT
__7583A0D2_mmintrin@h DB 01H
__DDA0A690_concurrencysal@h DB 01H
__9ECC08BE_sal@h DB 01H
__E05D733A_vadefs@h DB 01H
__6A355E0E_vcruntime@h DB 01H
__1B0272D9_corecrt@h DB 01H
__45DED006_corecrt_malloc@h DB 01H
__FA77ED4C_malloc@h DB 01H
__EAE0325A_xmmintrin@h DB 01H
__0ED14FEE_winpackagefamily@h DB 01H
__F92EF742_winapifamily@h DB 01H
__22E515EB_sdkddkver@h DB 01H
__A09A3A7D_excpt@h DB 01H
__AC8FA393_stdarg@h DB 01H
__29F49F40_specstrings_undef@h DB 01H
__D0F42932_specstrings_strict@h DB 01H
__F00405FD_sdv_driverspecs@h DB 01H
__173E09CA_driverspecs@h DB 01H
__9A452361_specstrings@h DB 01H
__74484FB3_corecrt_wctype@h DB 01H
__1EC467ED_ctype@h DB 01H
__98517906_kernelspecs@h DB 01H
__D3497022_basetsd@h DB 01H
__61CC25A1_errno@h DB 01H
__890838BD_vcruntime_string@h DB 01H
__E4C945B4_corecrt_memcpy_s@h DB 01H
__8EAFF484_corecrt_memory@h DB 01H
__6490AEC5_corecrt_wstring@h DB 01H
__E8295E1E_string@h DB 01H
__7FCB5136_guiddef@h DB 01H
__FF8A9E11_pshpack4@h DB 01H
__D5438902_poppack@h DB 01H
__FB07E2A3_pshpack2@h DB 01H
__F6906775_pshpack8@h DB 01H
__F9415CFA_pshpack1@h DB 01H
__E58C6F1C_apiset@h DB 01H
__A5C52262_ktmtypes@h DB 01H
__FBBA8F9D_winnt@h DB 01H
__A32D3D2C_minwindef@h DB 01H
__7D798299_windef@h DB 01H
__9AE108E9_apisetcconv@h DB 01H
__9CE53D2C_minwinbase@h DB 01H
__5D0AA210_apiquery2@h DB 01H
__4DD4E726_processenv@h DB 01H
__3575CC96_fileapi@h DB 01H
__8EA220E6_fileapifromapp@h DB 01H
__BF9B31FE_debugapi@h DB 01H
__C3AFE134_utilapiset@h DB 01H
__76F69E51_handleapi@h DB 01H
__7E63D784_errhandlingapi@h DB 01H
__FFA7003C_fibersapi@h DB 01H
__8971CECF_namedpipeapi@h DB 01H
__46C9D8A6_profileapi@h DB 01H
__98D4F0A3_heapapi@h DB 01H
__50EF2A88_ioapiset@h DB 01H
__92EA1464_synchapi@h DB 01H
__A53D8AED_interlockedapi@h DB 01H
__B506CAAF_processthreadsapi@h DB 01H
__FF735694_sysinfoapi@h DB 01H
__29589789_memoryapi@h DB 01H
__E9C7A663_enclaveapi@h DB 01H
__D035F9F7_threadpoollegacyapiset@h DB 01H
__C899130C_threadpoolapiset@h DB 01H
__E0441EE7_jobapi@h DB 01H
__CEF86838_jobapi2@h DB 01H
__35AC6B9A_wow64apiset@h DB 01H
__C8AE41A5_libloaderapi@h DB 01H
__CC9E232D_securitybaseapi@h DB 01H
__C9D0C9B8_namespaceapi@h DB 01H
__30FF9CAD_systemtopologyapi@h DB 01H
__4D358795_processtopologyapi@h DB 01H
__40446D10_securityappcontainer@h DB 01H
__3A952EDF_realtimeapiset@h DB 01H
__F4865F4B_winerror@h DB 01H
__53C1BD93_timezoneapi@h DB 01H
__1FFBEDBF_winbase@h DB 01H
__43D3FA34_wingdi@h DB 01H
__D24A7391_tvout@h DB 01H
__7713A6C8_winuser@h DB 01H
__0B345F71_datetimeapi@h DB 01H
__9AC6960C_winnls@h DB 01H
__973A40A8_stringapiset@h DB 01H
__CC46FEE2_wincontypes@h DB 01H
__97D70BE1_consoleapi@h DB 01H
__27EC5E18_consoleapi2@h DB 01H
__262E342F_consoleapi3@h DB 01H
__641DCD70_wincon@h DB 01H
__5A96C7A7_verrsrc@h DB 01H
__B69C6FF2_winver@h DB 01H
__7AEB8C37_reason@h DB 01H
__59F1A8A9_winreg@h DB 01H
__EE0E2B7F_wnnc@h DB 01H
__DCDB7054_winnetwk@h DB 01H
__81DDEDE3_stralign@h DB 01H
__2134D1B4_winsvc@h DB 01H
__11C07376_mcx@h DB 01H
__577CE3E7_ime_cmodes@h DB 01H
__1E72C31E_imm@h DB 01H
__E15BF856_windows@h DB 01H
__8FC206A7_ssc_internal@h DB 01H
__44420885_corecrt_stdio_config@h DB 01H
__AB601D8D_corecrt_wstdio@h DB 01H
__C1EC35D3_stdio@h DB 01H
__13F5961F_stddef@h DB 01H
__FD6DBD68_corecrt_search@h DB 01H
__E2E33A61_corecrt_wstdlib@h DB 01H
__26263363_limits@h DB 01H
__6E5ACABA_stdlib@h DB 01H
__9049550C_stb_image@h DB 01H
__98501D5C_stdint@h DB 01H
__264E89B8_khrplatform@h DB 01H
__799FCA13_gl@h DB 01H
__A57296D0_wgl@h DB 01H
__417F438F_glfw3@h DB 01H
__8F82BB96_emmintrin@h DB 01H
__5023D31F_pmmintrin@h DB 01H
__E0FAA09D_tmmintrin@h DB 01H
__C9C1B51E_smmintrin@h DB 01H
__ACA33CD2_nmmintrin@h DB 01H
__7918C69C_wmmintrin@h DB 01H
__B28C8B9B_zmmintrin@h DB 01H
__85982951_immintrin@h DB 01H
__19139D6C_assert@h DB 01H
__0C16F932_StgSharpC@h DB 01H
__B2F9F159_intrin0@inl@h DB 01H
__0833F55F_setjmp@h DB 01H
__3F5BC814_ammintrin@h DB 01H
__2E054928_intrin@h DB 01H
__5A8332CE_isa_availability@h DB 01H
__EB6C2FE1_ssc_intrinsic@h DB 01H
__F5438B76_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:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\ÄÚºËÔ´´úÂë\StgSharp.C\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:__F5438B76_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