; Listing generated by Microsoft (R) Optimizing Compiler Version 19.44.35220.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 __836A8CFC_stdint@h DB 01H __714FE6D7_sn_target@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 __F562FA57_stb_image@h DB 01H __C95DC661_khrplatform@h DB 01H __6C577136_gl@h DB 01H __EE638A2C_wgl@h DB 01H __8EF9E35C_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 __F49407C4_sn_intrinsic@matkernel@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 __0E68EE93_str_string@c DB 01H msvcjmc ENDS PUBLIC index_pair_sse PUBLIC __JustMyCode_Default EXTRN _RTC_InitBase:PROC EXTRN _RTC_Shutdown:PROC EXTRN __CheckForDebuggerJustMyCode:PROC ; COMDAT pdata pdata SEGMENT $pdata$index_pair_sse DD imagerel $LN23 DD imagerel $LN23+552 DD imagerel $unwind$index_pair_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$index_pair_sse DD 025051c01H DD 0117231cH DD 070100047H DD 0500fH 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\str_string.c ; COMDAT index_pair_sse _TEXT SEGMENT index$ = 4 result$ = 36 size$ = 68 end$ = 100 s$ = 144 vec$ = 192 com$ = 240 i$1 = 280 i$2 = 312 tv150 = 516 str$ = 560 target$ = 568 length$ = 576 index_pair_sse PROC ; COMDAT ; 8 : { $LN23: 00000 44 89 44 24 18 mov DWORD PTR [rsp+24], r8d 00005 89 54 24 10 mov DWORD PTR [rsp+16], edx 00009 48 89 4c 24 08 mov QWORD PTR [rsp+8], rcx 0000e 55 push rbp 0000f 57 push rdi 00010 48 81 ec 38 02 00 00 sub rsp, 568 ; 00000238H 00017 48 8d 6c 24 20 lea rbp, QWORD PTR [rsp+32] 0001c 48 8d 0d 00 00 00 00 lea rcx, OFFSET FLAT:__0E68EE93_str_string@c 00023 e8 00 00 00 00 call __CheckForDebuggerJustMyCode 00028 90 npad 1 ; 9 : int index = 0, result = 0, size = length, end = size - 8; 00029 c7 45 04 00 00 00 00 mov DWORD PTR index$[rbp], 0 00030 c7 45 24 00 00 00 00 mov DWORD PTR result$[rbp], 0 00037 8b 85 40 02 00 00 mov eax, DWORD PTR length$[rbp] 0003d 89 45 44 mov DWORD PTR size$[rbp], eax 00040 8b 45 44 mov eax, DWORD PTR size$[rbp] 00043 83 e8 08 sub eax, 8 00046 89 45 64 mov DWORD PTR end$[rbp], eax ; 10 : __m128i s = _mm_set1_epi32(target); 00049 66 0f 6e 85 38 02 00 00 movd xmm0, DWORD PTR target$[rbp] 00051 66 0f 70 c0 00 pshufd xmm0, xmm0, 0 00056 66 0f 7f 85 90 00 00 00 movdqa XMMWORD PTR s$[rbp], xmm0 $LN2@index_pair: ; 11 : __m128i vec, com; ; 12 : ; 13 : while (index < end) { 0005e 8b 45 64 mov eax, DWORD PTR end$[rbp] 00061 39 45 04 cmp DWORD PTR index$[rbp], eax 00064 0f 8d 52 01 00 00 jge $LN3@index_pair ; 14 : vec = _mm_loadu_epi32(str + index); 0006a 48 63 45 04 movsxd rax, DWORD PTR index$[rbp] 0006e 48 8b 8d 30 02 00 00 mov rcx, QWORD PTR str$[rbp] 00075 48 8d 04 41 lea rax, QWORD PTR [rcx+rax*2] 00079 c5 fa 6f 00 vmovdqu xmm0, XMMWORD PTR [rax] 0007d 66 0f 7f 85 c0 00 00 00 movdqa XMMWORD PTR vec$[rbp], xmm0 ; 15 : com = _mm_cmpeq_epi16(vec, s); 00085 66 0f 6f 85 c0 00 00 00 movdqa xmm0, XMMWORD PTR vec$[rbp] 0008d 66 0f 75 85 90 00 00 00 pcmpeqw xmm0, XMMWORD PTR s$[rbp] 00095 66 0f 7f 85 f0 00 00 00 movdqa XMMWORD PTR com$[rbp], xmm0 ; 16 : result = _mm_movemask_epi8(com); 0009d 66 0f 6f 85 f0 00 00 00 movdqa xmm0, XMMWORD PTR com$[rbp] 000a5 66 0f d7 c0 pmovmskb eax, xmm0 000a9 89 45 24 mov DWORD PTR result$[rbp], eax ; 17 : if (result) { 000ac 83 7d 24 00 cmp DWORD PTR result$[rbp], 0 000b0 74 56 je SHORT $LN13@index_pair ; 18 : for (size_t i = 0; i < 7; i++) { 000b2 48 c7 85 18 01 00 00 00 00 00 00 mov QWORD PTR i$1[rbp], 0 000bd eb 11 jmp SHORT $LN6@index_pair $LN4@index_pair: 000bf 48 8b 85 18 01 00 00 mov rax, QWORD PTR i$1[rbp] 000c6 48 ff c0 inc rax 000c9 48 89 85 18 01 00 00 mov QWORD PTR i$1[rbp], rax $LN6@index_pair: 000d0 48 83 bd 18 01 00 00 07 cmp QWORD PTR i$1[rbp], 7 000d8 73 2e jae SHORT $LN5@index_pair ; 19 : if (((result & 0xF) == 0xF)) { 000da 8b 45 24 mov eax, DWORD PTR result$[rbp] 000dd 83 e0 0f and eax, 15 000e0 83 f8 0f cmp eax, 15 000e3 75 10 jne SHORT $LN14@index_pair ; 20 : return index + i; 000e5 48 63 45 04 movsxd rax, DWORD PTR index$[rbp] 000e9 48 03 85 18 01 00 00 add rax, QWORD PTR i$1[rbp] 000f0 e9 29 01 00 00 jmp $LN1@index_pair $LN14@index_pair: ; 21 : } ; 22 : if (result == 0) { 000f5 83 7d 24 00 cmp DWORD PTR result$[rbp], 0 000f9 75 02 jne SHORT $LN15@index_pair ; 23 : break; 000fb eb 0b jmp SHORT $LN5@index_pair $LN15@index_pair: ; 24 : } ; 25 : result >>= 2; 000fd 8b 45 24 mov eax, DWORD PTR result$[rbp] 00100 c1 f8 02 sar eax, 2 00103 89 45 24 mov DWORD PTR result$[rbp], eax ; 26 : } 00106 eb b7 jmp SHORT $LN4@index_pair $LN5@index_pair: $LN13@index_pair: ; 27 : } ; 28 : index += 1; 00108 8b 45 04 mov eax, DWORD PTR index$[rbp] 0010b ff c0 inc eax 0010d 89 45 04 mov DWORD PTR index$[rbp], eax ; 29 : vec = _mm_loadu_epi32(str + index); 00110 48 63 45 04 movsxd rax, DWORD PTR index$[rbp] 00114 48 8b 8d 30 02 00 00 mov rcx, QWORD PTR str$[rbp] 0011b 48 8d 04 41 lea rax, QWORD PTR [rcx+rax*2] 0011f c5 fa 6f 00 vmovdqu xmm0, XMMWORD PTR [rax] 00123 66 0f 7f 85 c0 00 00 00 movdqa XMMWORD PTR vec$[rbp], xmm0 ; 30 : com = _mm_cmpeq_epi16(vec, s); 0012b 66 0f 6f 85 c0 00 00 00 movdqa xmm0, XMMWORD PTR vec$[rbp] 00133 66 0f 75 85 90 00 00 00 pcmpeqw xmm0, XMMWORD PTR s$[rbp] 0013b 66 0f 7f 85 f0 00 00 00 movdqa XMMWORD PTR com$[rbp], xmm0 ; 31 : result = _mm_movemask_epi8(com); 00143 66 0f 6f 85 f0 00 00 00 movdqa xmm0, XMMWORD PTR com$[rbp] 0014b 66 0f d7 c0 pmovmskb eax, xmm0 0014f 89 45 24 mov DWORD PTR result$[rbp], eax ; 32 : if (result) { 00152 83 7d 24 00 cmp DWORD PTR result$[rbp], 0 00156 74 56 je SHORT $LN16@index_pair ; 33 : for (size_t i = 0; i < 7; i++) { 00158 48 c7 85 38 01 00 00 00 00 00 00 mov QWORD PTR i$2[rbp], 0 00163 eb 11 jmp SHORT $LN9@index_pair $LN7@index_pair: 00165 48 8b 85 38 01 00 00 mov rax, QWORD PTR i$2[rbp] 0016c 48 ff c0 inc rax 0016f 48 89 85 38 01 00 00 mov QWORD PTR i$2[rbp], rax $LN9@index_pair: 00176 48 83 bd 38 01 00 00 07 cmp QWORD PTR i$2[rbp], 7 0017e 73 2e jae SHORT $LN8@index_pair ; 34 : if (((result & 0xF) == 0xF)) { 00180 8b 45 24 mov eax, DWORD PTR result$[rbp] 00183 83 e0 0f and eax, 15 00186 83 f8 0f cmp eax, 15 00189 75 10 jne SHORT $LN17@index_pair ; 35 : return index + i; 0018b 48 63 45 04 movsxd rax, DWORD PTR index$[rbp] 0018f 48 03 85 38 01 00 00 add rax, QWORD PTR i$2[rbp] 00196 e9 83 00 00 00 jmp $LN1@index_pair $LN17@index_pair: ; 36 : } ; 37 : if (result == 0) { 0019b 83 7d 24 00 cmp DWORD PTR result$[rbp], 0 0019f 75 02 jne SHORT $LN18@index_pair ; 38 : break; 001a1 eb 0b jmp SHORT $LN8@index_pair $LN18@index_pair: ; 39 : } ; 40 : result >>= 2; 001a3 8b 45 24 mov eax, DWORD PTR result$[rbp] 001a6 c1 f8 02 sar eax, 2 001a9 89 45 24 mov DWORD PTR result$[rbp], eax ; 41 : } 001ac eb b7 jmp SHORT $LN7@index_pair $LN8@index_pair: $LN16@index_pair: ; 42 : } ; 43 : index += 7; 001ae 8b 45 04 mov eax, DWORD PTR index$[rbp] 001b1 83 c0 07 add eax, 7 001b4 89 45 04 mov DWORD PTR index$[rbp], eax ; 44 : } 001b7 e9 a2 fe ff ff jmp $LN2@index_pair $LN3@index_pair: ; 45 : for (; (index < size - 1) && (!result); index += 2) { 001bc eb 09 jmp SHORT $LN12@index_pair $LN10@index_pair: 001be 8b 45 04 mov eax, DWORD PTR index$[rbp] 001c1 83 c0 02 add eax, 2 001c4 89 45 04 mov DWORD PTR index$[rbp], eax $LN12@index_pair: 001c7 8b 45 44 mov eax, DWORD PTR size$[rbp] 001ca ff c8 dec eax 001cc 39 45 04 cmp DWORD PTR index$[rbp], eax 001cf 7d 3d jge SHORT $LN11@index_pair 001d1 83 7d 24 00 cmp DWORD PTR result$[rbp], 0 001d5 75 37 jne SHORT $LN11@index_pair ; 46 : result = *(int *)(str + index) == target; 001d7 48 63 45 04 movsxd rax, DWORD PTR index$[rbp] 001db 48 8b 8d 30 02 00 00 mov rcx, QWORD PTR str$[rbp] 001e2 8b 95 38 02 00 00 mov edx, DWORD PTR target$[rbp] 001e8 39 14 41 cmp DWORD PTR [rcx+rax*2], edx 001eb 75 0c jne SHORT $LN21@index_pair 001ed c7 85 04 02 00 00 01 00 00 00 mov DWORD PTR tv150[rbp], 1 001f7 eb 0a jmp SHORT $LN22@index_pair $LN21@index_pair: 001f9 c7 85 04 02 00 00 00 00 00 00 mov DWORD PTR tv150[rbp], 0 $LN22@index_pair: 00203 8b 85 04 02 00 00 mov eax, DWORD PTR tv150[rbp] 00209 89 45 24 mov DWORD PTR result$[rbp], eax ; 47 : } 0020c eb b0 jmp SHORT $LN10@index_pair $LN11@index_pair: ; 48 : if (result) { 0020e 83 7d 24 00 cmp DWORD PTR result$[rbp], 0 00212 74 05 je SHORT $LN19@index_pair ; 49 : return index; 00214 8b 45 04 mov eax, DWORD PTR index$[rbp] 00217 eb 05 jmp SHORT $LN1@index_pair $LN19@index_pair: ; 50 : } ; 51 : return -1; 00219 b8 ff ff ff ff mov eax, -1 $LN1@index_pair: ; 52 : } 0021e 48 8d a5 18 02 00 00 lea rsp, QWORD PTR [rbp+536] 00225 5f pop rdi 00226 5d pop rbp 00227 c3 ret 0 index_pair_sse ENDP _TEXT ENDS END