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

355 lines
11 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
__D947C158_vector@c DB 01H
msvcjmc ENDS
PUBLIC normalize
PUBLIC __JustMyCode_Default
EXTRN _RTC_InitBase:PROC
EXTRN _RTC_Shutdown:PROC
EXTRN __CheckForDebuggerJustMyCode:PROC
; COMDAT pdata
pdata SEGMENT
$pdata$normalize DD imagerel $LN3
DD imagerel $LN3+379
DD imagerel $unwind$normalize
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$normalize DD 025051801H
DD 01132318H
DD 0700c0041H
DD 0500bH
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\vector.c
; COMDAT normalize
_TEXT SEGMENT
a_length_sq$ = 16
a_inv_length$ = 64
dot_product$ = 112
b_orthogonal$ = 160
b_length_sq$ = 208
b_inv_length$ = 256
source$ = 512
target$ = 520
normalize PROC ; COMDAT
; 5 : {
$LN3:
00000 48 89 54 24 10 mov QWORD PTR [rsp+16], rdx
00005 48 89 4c 24 08 mov QWORD PTR [rsp+8], rcx
0000a 55 push rbp
0000b 57 push rdi
0000c 48 81 ec 08 02
00 00 sub rsp, 520 ; 00000208H
00013 48 8d 6c 24 20 lea rbp, QWORD PTR [rsp+32]
00018 48 8d 0d 00 00
00 00 lea rcx, OFFSET FLAT:__D947C158_vector@c
0001f e8 00 00 00 00 call __CheckForDebuggerJustMyCode
00024 90 npad 1
; 6 : __m128 a_length_sq = _mm_mul_ps(*source, *source);
00025 48 8b 85 00 02
00 00 mov rax, QWORD PTR source$[rbp]
0002c 48 8b 8d 00 02
00 00 mov rcx, QWORD PTR source$[rbp]
00033 0f 10 00 movups xmm0, XMMWORD PTR [rax]
00036 0f 59 01 mulps xmm0, XMMWORD PTR [rcx]
00039 0f 29 45 10 movaps XMMWORD PTR a_length_sq$[rbp], xmm0
; 7 : a_length_sq = _mm_add_ps(a_length_sq,
0003d 0f 28 45 10 movaps xmm0, XMMWORD PTR a_length_sq$[rbp]
00041 0f c6 45 10 b1 shufps xmm0, XMMWORD PTR a_length_sq$[rbp], 177 ; 000000b1H
00046 0f 28 4d 10 movaps xmm1, XMMWORD PTR a_length_sq$[rbp]
0004a 0f 58 c8 addps xmm1, xmm0
0004d 0f 28 c1 movaps xmm0, xmm1
00050 0f 29 45 10 movaps XMMWORD PTR a_length_sq$[rbp], xmm0
; 8 : _mm_shuffle_ps(a_length_sq, a_length_sq, _MM_SHUFFLE(2, 3, 0, 1)));
; 9 : a_length_sq = _mm_add_ss(a_length_sq,
00054 0f 28 45 10 movaps xmm0, XMMWORD PTR a_length_sq$[rbp]
00058 0f c6 45 10 0e shufps xmm0, XMMWORD PTR a_length_sq$[rbp], 14
0005d 0f 28 4d 10 movaps xmm1, XMMWORD PTR a_length_sq$[rbp]
00061 f3 0f 58 c8 addss xmm1, xmm0
00065 0f 29 4d 10 movaps XMMWORD PTR a_length_sq$[rbp], xmm1
; 10 : _mm_shuffle_ps(a_length_sq, a_length_sq, _MM_SHUFFLE(0, 0, 3, 2)));
; 11 :
; 12 : __m128 a_inv_length = _mm_rsqrt_ps(a_length_sq);
00069 0f 52 45 10 rsqrtps xmm0, XMMWORD PTR a_length_sq$[rbp]
0006d 0f 29 45 40 movaps XMMWORD PTR a_inv_length$[rbp], xmm0
; 13 : *source = _mm_mul_ps(*source, a_inv_length);
00071 48 8b 85 00 02
00 00 mov rax, QWORD PTR source$[rbp]
00078 0f 10 00 movups xmm0, XMMWORD PTR [rax]
0007b 0f 59 45 40 mulps xmm0, XMMWORD PTR a_inv_length$[rbp]
0007f 48 8b 85 00 02
00 00 mov rax, QWORD PTR source$[rbp]
00086 0f 11 00 movups XMMWORD PTR [rax], xmm0
; 14 :
; 15 : __m128 dot_product = _mm_mul_ps(*target, *source);
00089 48 8b 85 08 02
00 00 mov rax, QWORD PTR target$[rbp]
00090 48 8b 8d 00 02
00 00 mov rcx, QWORD PTR source$[rbp]
00097 0f 10 00 movups xmm0, XMMWORD PTR [rax]
0009a 0f 59 01 mulps xmm0, XMMWORD PTR [rcx]
0009d 0f 29 45 70 movaps XMMWORD PTR dot_product$[rbp], xmm0
; 16 : dot_product = _mm_add_ps(dot_product,
000a1 0f 28 45 70 movaps xmm0, XMMWORD PTR dot_product$[rbp]
000a5 0f c6 45 70 b1 shufps xmm0, XMMWORD PTR dot_product$[rbp], 177 ; 000000b1H
000aa 0f 28 4d 70 movaps xmm1, XMMWORD PTR dot_product$[rbp]
000ae 0f 58 c8 addps xmm1, xmm0
000b1 0f 28 c1 movaps xmm0, xmm1
000b4 0f 29 45 70 movaps XMMWORD PTR dot_product$[rbp], xmm0
; 17 : _mm_shuffle_ps(dot_product, dot_product, _MM_SHUFFLE(2, 3, 0, 1)));
; 18 : dot_product = _mm_add_ss(dot_product,
000b8 0f 28 45 70 movaps xmm0, XMMWORD PTR dot_product$[rbp]
000bc 0f c6 45 70 0e shufps xmm0, XMMWORD PTR dot_product$[rbp], 14
000c1 0f 28 4d 70 movaps xmm1, XMMWORD PTR dot_product$[rbp]
000c5 f3 0f 58 c8 addss xmm1, xmm0
000c9 0f 29 4d 70 movaps XMMWORD PTR dot_product$[rbp], xmm1
; 19 : _mm_shuffle_ps(dot_product, dot_product, _MM_SHUFFLE(0, 0, 3, 2)));
; 20 :
; 21 : __m128 b_orthogonal = _mm_sub_ps(*target, _mm_mul_ps(*source, dot_product));
000cd 48 8b 85 00 02
00 00 mov rax, QWORD PTR source$[rbp]
000d4 0f 10 00 movups xmm0, XMMWORD PTR [rax]
000d7 0f 59 45 70 mulps xmm0, XMMWORD PTR dot_product$[rbp]
000db 48 8b 85 08 02
00 00 mov rax, QWORD PTR target$[rbp]
000e2 0f 10 08 movups xmm1, XMMWORD PTR [rax]
000e5 0f 5c c8 subps xmm1, xmm0
000e8 0f 28 c1 movaps xmm0, xmm1
000eb 0f 29 85 a0 00
00 00 movaps XMMWORD PTR b_orthogonal$[rbp], xmm0
; 22 :
; 23 : __m128 b_length_sq = _mm_mul_ps(b_orthogonal, b_orthogonal);
000f2 0f 28 85 a0 00
00 00 movaps xmm0, XMMWORD PTR b_orthogonal$[rbp]
000f9 0f 59 85 a0 00
00 00 mulps xmm0, XMMWORD PTR b_orthogonal$[rbp]
00100 0f 29 85 d0 00
00 00 movaps XMMWORD PTR b_length_sq$[rbp], xmm0
; 24 : b_length_sq = _mm_add_ps(b_length_sq,
00107 0f 28 85 d0 00
00 00 movaps xmm0, XMMWORD PTR b_length_sq$[rbp]
0010e 0f c6 85 d0 00
00 00 b1 shufps xmm0, XMMWORD PTR b_length_sq$[rbp], 177 ; 000000b1H
00116 0f 28 8d d0 00
00 00 movaps xmm1, XMMWORD PTR b_length_sq$[rbp]
0011d 0f 58 c8 addps xmm1, xmm0
00120 0f 28 c1 movaps xmm0, xmm1
00123 0f 29 85 d0 00
00 00 movaps XMMWORD PTR b_length_sq$[rbp], xmm0
; 25 : _mm_shuffle_ps(b_length_sq, b_length_sq, _MM_SHUFFLE(2, 3, 0, 1)));
; 26 : b_length_sq = _mm_add_ss(b_length_sq,
0012a 0f 28 85 d0 00
00 00 movaps xmm0, XMMWORD PTR b_length_sq$[rbp]
00131 0f c6 85 d0 00
00 00 0e shufps xmm0, XMMWORD PTR b_length_sq$[rbp], 14
00139 0f 28 8d d0 00
00 00 movaps xmm1, XMMWORD PTR b_length_sq$[rbp]
00140 f3 0f 58 c8 addss xmm1, xmm0
00144 0f 29 8d d0 00
00 00 movaps XMMWORD PTR b_length_sq$[rbp], xmm1
; 27 : _mm_shuffle_ps(b_length_sq, b_length_sq, _MM_SHUFFLE(0, 0, 3, 2)));
; 28 :
; 29 : __m128 b_inv_length = _mm_rsqrt_ps(b_length_sq);
0014b 0f 52 85 d0 00
00 00 rsqrtps xmm0, XMMWORD PTR b_length_sq$[rbp]
00152 0f 29 85 00 01
00 00 movaps XMMWORD PTR b_inv_length$[rbp], xmm0
; 30 : *target = _mm_mul_ps(b_orthogonal, b_inv_length);
00159 0f 28 85 a0 00
00 00 movaps xmm0, XMMWORD PTR b_orthogonal$[rbp]
00160 0f 59 85 00 01
00 00 mulps xmm0, XMMWORD PTR b_inv_length$[rbp]
00167 48 8b 85 08 02
00 00 mov rax, QWORD PTR target$[rbp]
0016e 0f 11 00 movups XMMWORD PTR [rax], xmm0
; 31 : }
00171 48 8d a5 e8 01
00 00 lea rsp, QWORD PTR [rbp+488]
00178 5f pop rdi
00179 5d pop rbp
0017a c3 ret 0
normalize ENDP
_TEXT ENDS
END