add from giga-device, new branch added

This commit is contained in:
Nitload Youmu
2025-08-21 16:51:25 +08:00
commit 43bbc06bbb
1296 changed files with 264186 additions and 0 deletions
+571
View File
@@ -0,0 +1,571 @@
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.44.35213.0
include listing.inc
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM infolog:BYTE:0200H
_DATA ENDS
msvcjmc SEGMENT
__1F8170E1_mmintrin@h DB 01H
__39F22AB7_concurrencysal@h DB 01H
__B3864887_sal@h DB 01H
__AD974A83_vadefs@h DB 01H
__D58F3DC8_vcruntime@h DB 01H
__735960E1_corecrt@h DB 01H
__211DB995_corecrt_malloc@h DB 01H
__7CD62D9E_malloc@h DB 01H
__555A519C_xmmintrin@h DB 01H
__4C2AD0C7_winpackagefamily@h DB 01H
__9DED9ED1_winapifamily@h DB 01H
__12FEDF4E_sdkddkver@h DB 01H
__D8C2DB1D_excpt@h DB 01H
__E1459A2A_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
__B7C3A181_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
__AD5C15D8_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
__6BEC0ADA_limits@h DB 01H
__E8FB0A68_stdlib@h DB 01H
__500EB2D2_stb_image@h DB 01H
__D59A24E5_stdint@h DB 01H
__079BD6B5_khrplatform@h DB 01H
__67B0FD84_gl@h DB 01H
__CB07BF00_wgl@h DB 01H
__EC888205_glfw3@h DB 01H
__3038D850_emmintrin@h DB 01H
__EF99B0D9_pmmintrin@h DB 01H
__5F40C35B_tmmintrin@h DB 01H
__767BD6D8_smmintrin@h DB 01H
__13195F14_nmmintrin@h DB 01H
__C6A2A55A_wmmintrin@h DB 01H
__0D36E85D_zmmintrin@h DB 01H
__3A224A97_immintrin@h DB 01H
__9FB25DBE_assert@h DB 01H
__B6859C2C_glfw_function@h DB 01H
__D68507E7_StgSharpNative@h DB 01H
__FBE20EC9_intrin0@inl@h DB 01H
__45F9CCE6_setjmp@h DB 01H
__80E1ABD2_ammintrin@h DB 01H
__63CF7091_intrin@h DB 01H
__6448ABF2_isa_availability@h DB 01H
__2BF4DD5F_sn_intrinsic@h DB 01H
__F5341FA6_string@c DB 01H
msvcjmc ENDS
PUBLIC index_pair_sse
PUBLIC __JustMyCode_Default
EXTRN _RTC_CheckStackVars:PROC
EXTRN _RTC_InitBase:PROC
EXTRN _RTC_Shutdown:PROC
EXTRN __CheckForDebuggerJustMyCode:PROC
EXTRN __GSHandlerCheck:PROC
EXTRN __security_check_cookie:PROC
EXTRN __security_cookie:QWORD
; COMDAT pdata
pdata SEGMENT
$pdata$index_pair_sse DD imagerel $LN23
DD imagerel $LN23+681
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 voltbl
voltbl SEGMENT
_volmd DW 03fH
DW 0290H
voltbl ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$index_pair_sse DD 025054619H
DD 0117231cH
DD 070100047H
DD 0500fH
DD imagerel __GSHandlerCheck
DD 0228H
xdata ENDS
; COMDAT CONST
CONST SEGMENT
index_pair_sse$rtcName$0 DB 073H
DB 00H
ORG $+14
index_pair_sse$rtcVarDesc DD 0b0H
DD 010H
DQ FLAT:index_pair_sse$rtcName$0
ORG $+48
index_pair_sse$rtcFrameData DD 01H
DD 00H
DQ FLAT:index_pair_sse$rtcVarDesc
CONST 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.Native\sn-src\string.c
; COMDAT index_pair_sse
_TEXT SEGMENT
index$ = 4
result$ = 36
size$ = 68
end$ = 100
s$ = 144
vec$ = 192
com$ = 240
i$4 = 280
i$5 = 312
tv152 = 516
__$ArrayPad$ = 520
str$ = 560
target$ = 568
length$ = 576
index_pair_sse PROC ; COMDAT
; 4 : {
$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 7c 24 20 lea rdi, QWORD PTR [rsp+32]
00021 b9 56 00 00 00 mov ecx, 86 ; 00000056H
00026 b8 cc cc cc cc mov eax, -858993460 ; ccccccccH
0002b f3 ab rep stosd
0002d 48 8b 8c 24 58
02 00 00 mov rcx, QWORD PTR [rsp+600]
00035 48 8b 05 00 00
00 00 mov rax, QWORD PTR __security_cookie
0003c 48 33 c5 xor rax, rbp
0003f 48 89 85 08 02
00 00 mov QWORD PTR __$ArrayPad$[rbp], rax
00046 48 8d 0d 00 00
00 00 lea rcx, OFFSET FLAT:__F5341FA6_string@c
0004d e8 00 00 00 00 call __CheckForDebuggerJustMyCode
00052 90 npad 1
; 5 : int index = 0, result = 0, size = length, end = size - 8;
00053 c7 45 04 00 00
00 00 mov DWORD PTR index$[rbp], 0
0005a c7 45 24 00 00
00 00 mov DWORD PTR result$[rbp], 0
00061 8b 85 40 02 00
00 mov eax, DWORD PTR length$[rbp]
00067 89 45 44 mov DWORD PTR size$[rbp], eax
0006a 8b 45 44 mov eax, DWORD PTR size$[rbp]
0006d 83 e8 08 sub eax, 8
00070 89 45 64 mov DWORD PTR end$[rbp], eax
; 6 : __m128i s = {
00073 0f b6 85 38 02
00 00 movzx eax, BYTE PTR target$[rbp]
0007a 88 85 90 00 00
00 mov BYTE PTR s$[rbp], al
00080 0f b6 85 38 02
00 00 movzx eax, BYTE PTR target$[rbp]
00087 88 85 91 00 00
00 mov BYTE PTR s$[rbp+1], al
0008d 0f b6 85 38 02
00 00 movzx eax, BYTE PTR target$[rbp]
00094 88 85 92 00 00
00 mov BYTE PTR s$[rbp+2], al
0009a 0f b6 85 38 02
00 00 movzx eax, BYTE PTR target$[rbp]
000a1 88 85 93 00 00
00 mov BYTE PTR s$[rbp+3], al
000a7 48 8d 85 94 00
00 00 lea rax, QWORD PTR s$[rbp+4]
000ae 48 8b f8 mov rdi, rax
000b1 33 c0 xor eax, eax
000b3 b9 0c 00 00 00 mov ecx, 12
000b8 f3 aa rep stosb
$LN2@index_pair:
; 7 : target,
; 8 : target,
; 9 : target,
; 10 : target,
; 11 : };
; 12 : __m128i vec, com;
; 13 :
; 14 : while (index < end) {
000ba 8b 45 64 mov eax, DWORD PTR end$[rbp]
000bd 39 45 04 cmp DWORD PTR index$[rbp], eax
000c0 0f 8d 52 01 00
00 jge $LN3@index_pair
; 15 : vec = _mm_loadu_epi32(str + index);
000c6 48 63 45 04 movsxd rax, DWORD PTR index$[rbp]
000ca 48 8b 8d 30 02
00 00 mov rcx, QWORD PTR str$[rbp]
000d1 48 8d 04 41 lea rax, QWORD PTR [rcx+rax*2]
000d5 c5 fa 6f 00 vmovdqu xmm0, XMMWORD PTR [rax]
000d9 66 0f 7f 85 c0
00 00 00 movdqa XMMWORD PTR vec$[rbp], xmm0
; 16 : com = _mm_cmpeq_epi16(vec, s);
000e1 66 0f 6f 85 c0
00 00 00 movdqa xmm0, XMMWORD PTR vec$[rbp]
000e9 66 0f 75 85 90
00 00 00 pcmpeqw xmm0, XMMWORD PTR s$[rbp]
000f1 66 0f 7f 85 f0
00 00 00 movdqa XMMWORD PTR com$[rbp], xmm0
; 17 : result = _mm_movemask_epi8(com);
000f9 66 0f 6f 85 f0
00 00 00 movdqa xmm0, XMMWORD PTR com$[rbp]
00101 66 0f d7 c0 pmovmskb eax, xmm0
00105 89 45 24 mov DWORD PTR result$[rbp], eax
; 18 : if (result) {
00108 83 7d 24 00 cmp DWORD PTR result$[rbp], 0
0010c 74 56 je SHORT $LN13@index_pair
; 19 : for (size_t i = 0; i < 7; i++) {
0010e 48 c7 85 18 01
00 00 00 00 00
00 mov QWORD PTR i$4[rbp], 0
00119 eb 11 jmp SHORT $LN6@index_pair
$LN4@index_pair:
0011b 48 8b 85 18 01
00 00 mov rax, QWORD PTR i$4[rbp]
00122 48 ff c0 inc rax
00125 48 89 85 18 01
00 00 mov QWORD PTR i$4[rbp], rax
$LN6@index_pair:
0012c 48 83 bd 18 01
00 00 07 cmp QWORD PTR i$4[rbp], 7
00134 73 2e jae SHORT $LN5@index_pair
; 20 : if (((result & 0xF) == 0xF)) {
00136 8b 45 24 mov eax, DWORD PTR result$[rbp]
00139 83 e0 0f and eax, 15
0013c 83 f8 0f cmp eax, 15
0013f 75 10 jne SHORT $LN14@index_pair
; 21 : return index + i;
00141 48 63 45 04 movsxd rax, DWORD PTR index$[rbp]
00145 48 03 85 18 01
00 00 add rax, QWORD PTR i$4[rbp]
0014c e9 29 01 00 00 jmp $LN1@index_pair
$LN14@index_pair:
; 22 : }
; 23 : if (result == 0) {
00151 83 7d 24 00 cmp DWORD PTR result$[rbp], 0
00155 75 02 jne SHORT $LN15@index_pair
; 24 : break;
00157 eb 0b jmp SHORT $LN5@index_pair
$LN15@index_pair:
; 25 : }
; 26 : result >>= 2;
00159 8b 45 24 mov eax, DWORD PTR result$[rbp]
0015c c1 f8 02 sar eax, 2
0015f 89 45 24 mov DWORD PTR result$[rbp], eax
; 27 : }
00162 eb b7 jmp SHORT $LN4@index_pair
$LN5@index_pair:
$LN13@index_pair:
; 28 : }
; 29 : index += 1;
00164 8b 45 04 mov eax, DWORD PTR index$[rbp]
00167 ff c0 inc eax
00169 89 45 04 mov DWORD PTR index$[rbp], eax
; 30 : vec = _mm_loadu_epi32(str + index);
0016c 48 63 45 04 movsxd rax, DWORD PTR index$[rbp]
00170 48 8b 8d 30 02
00 00 mov rcx, QWORD PTR str$[rbp]
00177 48 8d 04 41 lea rax, QWORD PTR [rcx+rax*2]
0017b c5 fa 6f 00 vmovdqu xmm0, XMMWORD PTR [rax]
0017f 66 0f 7f 85 c0
00 00 00 movdqa XMMWORD PTR vec$[rbp], xmm0
; 31 : com = _mm_cmpeq_epi16(vec, s);
00187 66 0f 6f 85 c0
00 00 00 movdqa xmm0, XMMWORD PTR vec$[rbp]
0018f 66 0f 75 85 90
00 00 00 pcmpeqw xmm0, XMMWORD PTR s$[rbp]
00197 66 0f 7f 85 f0
00 00 00 movdqa XMMWORD PTR com$[rbp], xmm0
; 32 : result = _mm_movemask_epi8(com);
0019f 66 0f 6f 85 f0
00 00 00 movdqa xmm0, XMMWORD PTR com$[rbp]
001a7 66 0f d7 c0 pmovmskb eax, xmm0
001ab 89 45 24 mov DWORD PTR result$[rbp], eax
; 33 : if (result) {
001ae 83 7d 24 00 cmp DWORD PTR result$[rbp], 0
001b2 74 56 je SHORT $LN16@index_pair
; 34 : for (size_t i = 0; i < 7; i++) {
001b4 48 c7 85 38 01
00 00 00 00 00
00 mov QWORD PTR i$5[rbp], 0
001bf eb 11 jmp SHORT $LN9@index_pair
$LN7@index_pair:
001c1 48 8b 85 38 01
00 00 mov rax, QWORD PTR i$5[rbp]
001c8 48 ff c0 inc rax
001cb 48 89 85 38 01
00 00 mov QWORD PTR i$5[rbp], rax
$LN9@index_pair:
001d2 48 83 bd 38 01
00 00 07 cmp QWORD PTR i$5[rbp], 7
001da 73 2e jae SHORT $LN8@index_pair
; 35 : if (((result & 0xF) == 0xF)) {
001dc 8b 45 24 mov eax, DWORD PTR result$[rbp]
001df 83 e0 0f and eax, 15
001e2 83 f8 0f cmp eax, 15
001e5 75 10 jne SHORT $LN17@index_pair
; 36 : return index + i;
001e7 48 63 45 04 movsxd rax, DWORD PTR index$[rbp]
001eb 48 03 85 38 01
00 00 add rax, QWORD PTR i$5[rbp]
001f2 e9 83 00 00 00 jmp $LN1@index_pair
$LN17@index_pair:
; 37 : }
; 38 : if (result == 0) {
001f7 83 7d 24 00 cmp DWORD PTR result$[rbp], 0
001fb 75 02 jne SHORT $LN18@index_pair
; 39 : break;
001fd eb 0b jmp SHORT $LN8@index_pair
$LN18@index_pair:
; 40 : }
; 41 : result >>= 2;
001ff 8b 45 24 mov eax, DWORD PTR result$[rbp]
00202 c1 f8 02 sar eax, 2
00205 89 45 24 mov DWORD PTR result$[rbp], eax
; 42 : }
00208 eb b7 jmp SHORT $LN7@index_pair
$LN8@index_pair:
$LN16@index_pair:
; 43 : }
; 44 : index += 7;
0020a 8b 45 04 mov eax, DWORD PTR index$[rbp]
0020d 83 c0 07 add eax, 7
00210 89 45 04 mov DWORD PTR index$[rbp], eax
; 45 : }
00213 e9 a2 fe ff ff jmp $LN2@index_pair
$LN3@index_pair:
; 46 : for (; (index < size - 1) && (!result); index += 2) {
00218 eb 09 jmp SHORT $LN12@index_pair
$LN10@index_pair:
0021a 8b 45 04 mov eax, DWORD PTR index$[rbp]
0021d 83 c0 02 add eax, 2
00220 89 45 04 mov DWORD PTR index$[rbp], eax
$LN12@index_pair:
00223 8b 45 44 mov eax, DWORD PTR size$[rbp]
00226 ff c8 dec eax
00228 39 45 04 cmp DWORD PTR index$[rbp], eax
0022b 7d 3d jge SHORT $LN11@index_pair
0022d 83 7d 24 00 cmp DWORD PTR result$[rbp], 0
00231 75 37 jne SHORT $LN11@index_pair
; 47 : result = *(int *)(str + index) == target;
00233 48 63 45 04 movsxd rax, DWORD PTR index$[rbp]
00237 48 8b 8d 30 02
00 00 mov rcx, QWORD PTR str$[rbp]
0023e 8b 95 38 02 00
00 mov edx, DWORD PTR target$[rbp]
00244 39 14 41 cmp DWORD PTR [rcx+rax*2], edx
00247 75 0c jne SHORT $LN21@index_pair
00249 c7 85 04 02 00
00 01 00 00 00 mov DWORD PTR tv152[rbp], 1
00253 eb 0a jmp SHORT $LN22@index_pair
$LN21@index_pair:
00255 c7 85 04 02 00
00 00 00 00 00 mov DWORD PTR tv152[rbp], 0
$LN22@index_pair:
0025f 8b 85 04 02 00
00 mov eax, DWORD PTR tv152[rbp]
00265 89 45 24 mov DWORD PTR result$[rbp], eax
; 48 : }
00268 eb b0 jmp SHORT $LN10@index_pair
$LN11@index_pair:
; 49 : if (result) {
0026a 83 7d 24 00 cmp DWORD PTR result$[rbp], 0
0026e 74 05 je SHORT $LN19@index_pair
; 50 : return index;
00270 8b 45 04 mov eax, DWORD PTR index$[rbp]
00273 eb 05 jmp SHORT $LN1@index_pair
$LN19@index_pair:
; 51 : }
; 52 : return -1;
00275 b8 ff ff ff ff mov eax, -1
$LN1@index_pair:
; 53 : }
0027a 48 8b f8 mov rdi, rax
0027d 48 8d 4d e0 lea rcx, QWORD PTR [rbp-32]
00281 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:index_pair_sse$rtcFrameData
00288 e8 00 00 00 00 call _RTC_CheckStackVars
0028d 48 8b c7 mov rax, rdi
00290 48 8b 8d 08 02
00 00 mov rcx, QWORD PTR __$ArrayPad$[rbp]
00297 48 33 cd xor rcx, rbp
0029a e8 00 00 00 00 call __security_check_cookie
0029f 48 8d a5 18 02
00 00 lea rsp, QWORD PTR [rbp+536]
002a6 5f pop rdi
002a7 5d pop rbp
002a8 c3 ret 0
index_pair_sse ENDP
_TEXT ENDS
END