daily update on 20240828 by nitload youmu, autotexture added

This commit is contained in:
Nitload
2024-08-28 10:58:31 +08:00
parent d082071f2d
commit 1ee4e4a42f
586 changed files with 60910 additions and 123106 deletions
+298 -270
View File
@@ -1,4 +1,4 @@
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.39.33523.0
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.41.34120.0
include listing.inc
@@ -16,22 +16,22 @@ msvcjmc SEGMENT
__A19B9DB6_ssgc_framework@h DB 01H
__0ED14FEE_winpackagefamily@h DB 01H
__F92EF742_winapifamily@h DB 01H
__4B783B3C_concurrencysal@h DB 01H
__137BB1BE_sal@h DB 01H
__805F4069_vadefs@h DB 01H
__1EAACA9B_vcruntime@h DB 01H
__F8522E0F_stdint@h DB 01H
__DDA0A690_concurrencysal@h DB 01H
__9ECC08BE_sal@h DB 01H
__E05D733A_vadefs@h DB 01H
__6A355E0E_vcruntime@h DB 01H
__98501D5C_stdint@h DB 01H
__874AB8BA_khrplatform@h DB 01H
__8DCB230D_gl@h DB 01H
__1B0272D9_corecrt@h DB 01H
__13F5961F_stddef@h DB 01H
__5BC5AF51_mmintrin@h DB 01H
__7583A0D2_mmintrin@h DB 01H
__45DED006_corecrt_malloc@h DB 01H
__FA77ED4C_malloc@h DB 01H
__9E7FA6CF_xmmintrin@h DB 01H
__EAE0325A_xmmintrin@h DB 01H
__22E515EB_sdkddkver@h DB 01H
__1227BCE2_excpt@h DB 01H
__CC8D90C0_stdarg@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
@@ -42,7 +42,7 @@ __1EC467ED_ctype@h DB 01H
__98517906_kernelspecs@h DB 01H
__D3497022_basetsd@h DB 01H
__61CC25A1_errno@h DB 01H
__0504B279_vcruntime_string@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
@@ -120,20 +120,20 @@ __E15BF856_windows@h DB 01H
__61B03275_ssgc_internal@h DB 01H
__B47D1049_glfw3@h DB 01H
__5F89FF5A_wgl@h DB 01H
__FB1D2F03_emmintrin@h DB 01H
__24BC478A_pmmintrin@h DB 01H
__94653408_tmmintrin@h DB 01H
__BD5E218B_smmintrin@h DB 01H
__D83CA847_nmmintrin@h DB 01H
__0D875209_wmmintrin@h DB 01H
__C6131F0E_zmmintrin@h DB 01H
__F107BDC4_immintrin@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
__44420885_corecrt_stdio_config@h DB 01H
__AB601D8D_corecrt_wstdio@h DB 01H
__C1EC35D3_stdio@h DB 01H
__FD6DBD68_corecrt_search@h DB 01H
__E2E33A61_corecrt_wstdlib@h DB 01H
__46240030_limits@h DB 01H
__26263363_limits@h DB 01H
__6E5ACABA_stdlib@h DB 01H
__5274102E_stb_image@h DB 01H
__CE2BBC10_StgSharpC@h DB 01H
@@ -172,61 +172,61 @@ _DATA ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$__local_stdio_printf_options DD imagerel $LN3
DD imagerel $LN3+44
DD imagerel $LN3+45
DD imagerel $unwind$__local_stdio_printf_options
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$_vfprintf_l DD imagerel $LN3
DD imagerel $LN3+103
DD imagerel $LN3+104
DD imagerel $unwind$_vfprintf_l
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$printf DD imagerel $LN3
DD imagerel $LN3+191
DD imagerel $LN3+192
DD imagerel $unwind$printf
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$glCheckShaderStat DD imagerel $LN4
DD imagerel $LN4+229
DD imagerel $LN4+232
DD imagerel $unwind$glCheckShaderStat
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$initGL DD imagerel $LN3
DD imagerel $LN3+91
DD imagerel $LN3+111
DD imagerel $unwind$initGL
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$linkShaderProgram DD imagerel $LN5
DD imagerel $LN5+223
DD imagerel $LN5+227
DD imagerel $unwind$linkShaderProgram
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$loadImageData DD imagerel $LN4
DD imagerel $LN4+142
DD imagerel $LN4+143
DD imagerel $unwind$loadImageData
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$loadGlfuncDefault DD imagerel $LN7
DD imagerel $LN7+186
DD imagerel $LN7+188
DD imagerel $unwind$loadGlfuncDefault
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$unloadImageData DD imagerel $LN3
DD imagerel $LN3+58
DD imagerel $LN3+60
DD imagerel $unwind$unloadImageData
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$readLog DD imagerel $LN5
DD imagerel $LN5+101
DD imagerel $LN5+103
DD imagerel $unwind$readLog
pdata ENDS
; COMDAT rtc$TMZ
@@ -277,7 +277,7 @@ xdata ENDS
; COMDAT voltbl
voltbl SEGMENT
_volmd DB 03aH
DB 0c6H
DB 0caH
voltbl ENDS
; COMDAT xdata
xdata SEGMENT
@@ -317,7 +317,7 @@ xdata ENDS
; COMDAT voltbl
voltbl SEGMENT
_volmd DB 045H
DB 0ccH
DB 0cfH
voltbl ENDS
; COMDAT xdata
xdata SEGMENT
@@ -347,7 +347,7 @@ CONST ENDS
; COMDAT voltbl
voltbl SEGMENT
_volmd DB 045H
DB 0a6H
DB 0a7H
voltbl ENDS
; COMDAT xdata
xdata SEGMENT
@@ -406,7 +406,7 @@ _TEXT SEGMENT
$T1 = 200
readLog PROC ; COMDAT
; 77 : {
; 78 : {
$LN5:
00000 40 55 push rbp
@@ -417,41 +417,43 @@ $LN5:
0000f 48 8d 0d 00 00
00 00 lea rcx, OFFSET FLAT:__59F96598_StgSharpC@c
00016 e8 00 00 00 00 call __CheckForDebuggerJustMyCode
0001b 90 npad 1
; 78 : infolog[511] = '\0';
; 79 : infolog[511] = '\0';
0001b b8 01 00 00 00 mov eax, 1
00020 48 69 c0 ff 01
0001c b8 01 00 00 00 mov eax, 1
00021 48 69 c0 ff 01
00 00 imul rax, rax, 511 ; 000001ffH
00027 48 89 85 c8 00
00028 48 89 85 c8 00
00 00 mov QWORD PTR $T1[rbp], rax
0002e 48 81 bd c8 00
0002f 48 81 bd c8 00
00 00 00 02 00
00 cmp QWORD PTR $T1[rbp], 512 ; 00000200H
00039 73 02 jae SHORT $LN3@readLog
0003b eb 05 jmp SHORT $LN4@readLog
0003a 73 02 jae SHORT $LN3@readLog
0003c eb 06 jmp SHORT $LN4@readLog
$LN3@readLog:
0003d e8 00 00 00 00 call __report_rangecheckfailure
0003e e8 00 00 00 00 call __report_rangecheckfailure
00043 90 npad 1
$LN4@readLog:
00042 48 8d 05 00 00
00044 48 8d 05 00 00
00 00 lea rax, OFFSET FLAT:infolog
00049 48 8b 8d c8 00
0004b 48 8b 8d c8 00
00 00 mov rcx, QWORD PTR $T1[rbp]
00050 c6 04 08 00 mov BYTE PTR [rax+rcx], 0
00052 c6 04 08 00 mov BYTE PTR [rax+rcx], 0
; 79 : return &infolog;
; 80 : return &infolog;
00054 48 8d 05 00 00
00056 48 8d 05 00 00
00 00 lea rax, OFFSET FLAT:infolog
$LN2@readLog:
; 80 : }
; 81 : }
0005b 48 8d a5 e8 00
0005d 48 8d a5 e8 00
00 00 lea rsp, QWORD PTR [rbp+232]
00062 5f pop rdi
00063 5d pop rbp
00064 c3 ret 0
00064 5f pop rdi
00065 5d pop rbp
00066 c3 ret 0
readLog ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
@@ -461,7 +463,7 @@ _TEXT SEGMENT
out$ = 224
unloadImageData PROC ; COMDAT
; 72 : {
; 73 : {
$LN3:
00000 48 89 4c 24 08 mov QWORD PTR [rsp+8], rcx
@@ -473,22 +475,24 @@ $LN3:
00013 48 8d 0d 00 00
00 00 lea rcx, OFFSET FLAT:__59F96598_StgSharpC@c
0001a e8 00 00 00 00 call __CheckForDebuggerJustMyCode
0001f 90 npad 1
; 73 : free(out->pixelPtr);
; 74 : free(out->pixelPtr);
0001f 48 8b 85 e0 00
00020 48 8b 85 e0 00
00 00 mov rax, QWORD PTR out$[rbp]
00026 48 8b 48 10 mov rcx, QWORD PTR [rax+16]
0002a ff 15 00 00 00
00027 48 8b 48 10 mov rcx, QWORD PTR [rax+16]
0002b ff 15 00 00 00
00 call QWORD PTR __imp_free
00031 90 npad 1
; 74 : }
; 75 : }
00030 48 8d a5 c8 00
00032 48 8d a5 c8 00
00 00 lea rsp, QWORD PTR [rbp+200]
00037 5f pop rdi
00038 5d pop rbp
00039 c3 ret 0
00039 5f pop rdi
0003a 5d pop rbp
0003b c3 ret 0
unloadImageData ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
@@ -500,7 +504,7 @@ i$1 = 40
procName$ = 288
loadGlfuncDefault PROC ; COMDAT
; 30 : {
; 31 : {
$LN7:
00000 48 89 4c 24 08 mov QWORD PTR [rsp+8], rcx
@@ -512,86 +516,88 @@ $LN7:
00013 48 8d 0d 00 00
00 00 lea rcx, OFFSET FLAT:__59F96598_StgSharpC@c
0001a e8 00 00 00 00 call __CheckForDebuggerJustMyCode
0001f 90 npad 1
; 31 : void* ret = glfwGetProcAddress(procName);
; 32 : void* ret = glfwGetProcAddress(procName);
0001f 48 8b 8d 20 01
00020 48 8b 8d 20 01
00 00 mov rcx, QWORD PTR procName$[rbp]
00026 e8 00 00 00 00 call glfwGetProcAddress
0002b 48 89 45 08 mov QWORD PTR ret$[rbp], rax
00027 e8 00 00 00 00 call glfwGetProcAddress
0002c 48 89 45 08 mov QWORD PTR ret$[rbp], rax
; 32 : //printf("%llu\n", (uint64_t)ret);
; 33 : if (ret = NULL)
; 33 : //printf("%llu\n", (uint64_t)ret);
; 34 : if (ret = NULL)
0002f 48 c7 45 08 00
00030 48 c7 45 08 00
00 00 00 mov QWORD PTR ret$[rbp], 0
00037 48 83 7d 08 00 cmp QWORD PTR ret$[rbp], 0
0003c 74 6e je SHORT $LN5@loadGlfunc
00038 48 83 7d 08 00 cmp QWORD PTR ret$[rbp], 0
0003d 74 6f je SHORT $LN5@loadGlfunc
; 34 : {
; 35 : *infolog = "Failed to load OpenGL api:";
; 35 : {
; 36 : *infolog = "Failed to load OpenGL api:";
0003e b8 01 00 00 00 mov eax, 1
00043 48 6b c0 00 imul rax, rax, 0
00047 48 8d 0d 00 00
0003f b8 01 00 00 00 mov eax, 1
00044 48 6b c0 00 imul rax, rax, 0
00048 48 8d 0d 00 00
00 00 lea rcx, OFFSET FLAT:infolog
0004e 48 8d 15 00 00
0004f 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:??_C@_0BL@MOJGOJJP@Failed?5to?5load?5OpenGL?5api?3@
00055 88 14 01 mov BYTE PTR [rcx+rax], dl
00056 88 14 01 mov BYTE PTR [rcx+rax], dl
; 36 : for (size_t i = 0; i < sizeof(procName); i++)
; 37 : for (size_t i = 0; i < sizeof(procName); i++)
00058 48 c7 45 28 00
00059 48 c7 45 28 00
00 00 00 mov QWORD PTR i$1[rbp], 0
00060 eb 0b jmp SHORT $LN4@loadGlfunc
00061 eb 0b jmp SHORT $LN4@loadGlfunc
$LN2@loadGlfunc:
00062 48 8b 45 28 mov rax, QWORD PTR i$1[rbp]
00066 48 ff c0 inc rax
00069 48 89 45 28 mov QWORD PTR i$1[rbp], rax
00063 48 8b 45 28 mov rax, QWORD PTR i$1[rbp]
00067 48 ff c0 inc rax
0006a 48 89 45 28 mov QWORD PTR i$1[rbp], rax
$LN4@loadGlfunc:
0006d 48 83 7d 28 08 cmp QWORD PTR i$1[rbp], 8
00072 73 25 jae SHORT $LN3@loadGlfunc
0006e 48 83 7d 28 08 cmp QWORD PTR i$1[rbp], 8
00073 73 25 jae SHORT $LN3@loadGlfunc
; 37 : {
; 38 : infolog[30 + i] = procName[i];
; 38 : {
; 39 : infolog[30 + i] = procName[i];
00074 48 8d 05 00 00
00075 48 8d 05 00 00
00 00 lea rax, OFFSET FLAT:infolog
0007b 48 8b 4d 28 mov rcx, QWORD PTR i$1[rbp]
0007f 48 8b 95 20 01
0007c 48 8b 4d 28 mov rcx, QWORD PTR i$1[rbp]
00080 48 8b 95 20 01
00 00 mov rdx, QWORD PTR procName$[rbp]
00086 48 03 d1 add rdx, rcx
00089 48 8b ca mov rcx, rdx
0008c 48 8b 55 28 mov rdx, QWORD PTR i$1[rbp]
00090 0f b6 09 movzx ecx, BYTE PTR [rcx]
00093 88 4c 10 1e mov BYTE PTR [rax+rdx+30], cl
00087 48 03 d1 add rdx, rcx
0008a 48 8b ca mov rcx, rdx
0008d 48 8b 55 28 mov rdx, QWORD PTR i$1[rbp]
00091 0f b6 09 movzx ecx, BYTE PTR [rcx]
00094 88 4c 10 1e mov BYTE PTR [rax+rdx+30], cl
; 39 : }
; 40 : }
00097 eb c9 jmp SHORT $LN2@loadGlfunc
00098 eb c9 jmp SHORT $LN2@loadGlfunc
$LN3@loadGlfunc:
; 40 : printf("%s\n", infolog);
; 41 : printf("%s\n", infolog);
00099 48 8d 15 00 00
0009a 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:infolog
000a0 48 8d 0d 00 00
000a1 48 8d 0d 00 00
00 00 lea rcx, OFFSET FLAT:??_C@_03OFAPEBGM@?$CFs?6@
000a7 e8 00 00 00 00 call printf
000a8 e8 00 00 00 00 call printf
000ad 90 npad 1
$LN5@loadGlfunc:
; 41 : }
; 42 : return (GLFWglproc)ret;
; 42 : }
; 43 : return (GLFWglproc)ret;
000ac 48 8b 45 08 mov rax, QWORD PTR ret$[rbp]
000ae 48 8b 45 08 mov rax, QWORD PTR ret$[rbp]
; 43 : }
; 44 : }
000b0 48 8d a5 08 01
000b2 48 8d a5 08 01
00 00 lea rsp, QWORD PTR [rbp+264]
000b7 5f pop rdi
000b8 5d pop rbp
000b9 c3 ret 0
000b9 5f pop rdi
000ba 5d pop rbp
000bb c3 ret 0
loadGlfuncDefault ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
@@ -603,7 +609,7 @@ out$ = 232
loader$ = 240
loadImageData PROC ; COMDAT
; 63 : {
; 64 : {
$LN4:
00000 4c 89 44 24 18 mov QWORD PTR [rsp+24], r8
@@ -617,52 +623,53 @@ $LN4:
0001d 48 8d 0d 00 00
00 00 lea rcx, OFFSET FLAT:__59F96598_StgSharpC@c
00024 e8 00 00 00 00 call __CheckForDebuggerJustMyCode
00029 90 npad 1
; 64 : if (loader == NULL)
; 65 : if (loader == NULL)
00029 48 83 bd f0 00
0002a 48 83 bd f0 00
00 00 00 cmp QWORD PTR loader$[rbp], 0
00031 75 0e jne SHORT $LN2@loadImageD
00032 75 0e jne SHORT $LN2@loadImageD
; 65 : {
; 66 : loader = stbi_load;
; 66 : {
; 67 : loader = stbi_load;
00033 48 8d 05 00 00
00034 48 8d 05 00 00
00 00 lea rax, OFFSET FLAT:stbi_load
0003a 48 89 85 f0 00
0003b 48 89 85 f0 00
00 00 mov QWORD PTR loader$[rbp], rax
$LN2@loadImageD:
; 67 : }
; 68 : out->pixelPtr = loader(location, &(out->width), &(out->height), &(out->channel), 0);
; 68 : }
; 69 : out->pixelPtr = loader(location, &(out->width), &(out->height), &(out->channel), 0);
00041 48 8b 85 e8 00
00042 48 8b 85 e8 00
00 00 mov rax, QWORD PTR out$[rbp]
00048 48 83 c0 08 add rax, 8
0004c 48 8b 8d e8 00
00049 48 83 c0 08 add rax, 8
0004d 48 8b 8d e8 00
00 00 mov rcx, QWORD PTR out$[rbp]
00053 48 83 c1 04 add rcx, 4
00057 48 8b 95 e8 00
00054 48 83 c1 04 add rcx, 4
00058 48 8b 95 e8 00
00 00 mov rdx, QWORD PTR out$[rbp]
0005e c7 44 24 20 00
0005f c7 44 24 20 00
00 00 00 mov DWORD PTR [rsp+32], 0
00066 4c 8b c8 mov r9, rax
00069 4c 8b c1 mov r8, rcx
0006c 48 8b 8d e0 00
00067 4c 8b c8 mov r9, rax
0006a 4c 8b c1 mov r8, rcx
0006d 48 8b 8d e0 00
00 00 mov rcx, QWORD PTR location$[rbp]
00073 ff 95 f0 00 00
00074 ff 95 f0 00 00
00 call QWORD PTR loader$[rbp]
00079 48 8b 8d e8 00
0007a 48 8b 8d e8 00
00 00 mov rcx, QWORD PTR out$[rbp]
00080 48 89 41 10 mov QWORD PTR [rcx+16], rax
00081 48 89 41 10 mov QWORD PTR [rcx+16], rax
; 69 : }
; 70 : }
00084 48 8d a5 c8 00
00085 48 8d a5 c8 00
00 00 lea rsp, QWORD PTR [rbp+200]
0008b 5f pop rdi
0008c 5d pop rbp
0008d c3 ret 0
0008c 5f pop rdi
0008d 5d pop rbp
0008e c3 ret 0
loadImageData ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
@@ -675,7 +682,7 @@ context$ = 256
shaderProgram$ = 264
linkShaderProgram PROC ; COMDAT
; 46 : {
; 47 : {
$LN5:
00000 89 54 24 10 mov DWORD PTR [rsp+16], edx
@@ -699,85 +706,89 @@ $LN5:
00041 48 8d 0d 00 00
00 00 lea rcx, OFFSET FLAT:__59F96598_StgSharpC@c
00048 e8 00 00 00 00 call __CheckForDebuggerJustMyCode
0004d 90 npad 1
; 47 : context->LinkProgram(shaderProgram);
; 48 : context->LinkProgram(shaderProgram);
0004d 8b 8d 08 01 00
0004e 8b 8d 08 01 00
00 mov ecx, DWORD PTR shaderProgram$[rbp]
00053 48 8b 85 00 01
00054 48 8b 85 00 01
00 00 mov rax, QWORD PTR context$[rbp]
0005a ff 90 80 22 00
0005b ff 90 80 22 00
00 call QWORD PTR [rax+8832]
00061 90 npad 1
; 48 :
; 49 : int success;
; 50 : context->GetProgramiv(shaderProgram, GL_LINK_STATUS, &success);
; 49 :
; 50 : int success;
; 51 : context->GetProgramiv(shaderProgram, GL_LINK_STATUS, &success);
00060 4c 8d 45 04 lea r8, QWORD PTR success$[rbp]
00064 ba 82 8b 00 00 mov edx, 35714 ; 00008b82H
00069 8b 8d 08 01 00
00062 4c 8d 45 04 lea r8, QWORD PTR success$[rbp]
00066 ba 82 8b 00 00 mov edx, 35714 ; 00008b82H
0006b 8b 8d 08 01 00
00 mov ecx, DWORD PTR shaderProgram$[rbp]
0006f 48 8b 85 00 01
00071 48 8b 85 00 01
00 00 mov rax, QWORD PTR context$[rbp]
00076 ff 90 48 1a 00
00078 ff 90 48 1a 00
00 call QWORD PTR [rax+6728]
0007e 90 npad 1
; 51 : if (!success)
; 52 : if (!success)
0007c 83 7d 04 00 cmp DWORD PTR success$[rbp], 0
00080 75 28 jne SHORT $LN2@linkShader
0007f 83 7d 04 00 cmp DWORD PTR success$[rbp], 0
00083 75 29 jne SHORT $LN2@linkShader
; 52 : {
; 53 : context->GetProgramInfoLog(shaderProgram, 512, NULL, infolog);
; 53 : {
; 54 : context->GetProgramInfoLog(shaderProgram, 512, NULL, infolog);
00082 4c 8d 0d 00 00
00085 4c 8d 0d 00 00
00 00 lea r9, OFFSET FLAT:infolog
00089 45 33 c0 xor r8d, r8d
0008c ba 00 02 00 00 mov edx, 512 ; 00000200H
00091 8b 8d 08 01 00
0008c 45 33 c0 xor r8d, r8d
0008f ba 00 02 00 00 mov edx, 512 ; 00000200H
00094 8b 8d 08 01 00
00 mov ecx, DWORD PTR shaderProgram$[rbp]
00097 48 8b 85 00 01
0009a 48 8b 85 00 01
00 00 mov rax, QWORD PTR context$[rbp]
0009e ff 90 98 19 00
000a1 ff 90 98 19 00
00 call QWORD PTR [rax+6552]
000a7 90 npad 1
; 54 : return 0;
; 55 : return 0;
000a4 33 c0 xor eax, eax
000a6 eb 08 jmp SHORT $LN1@linkShader
000a8 33 c0 xor eax, eax
000aa eb 08 jmp SHORT $LN1@linkShader
; 55 : }
; 56 : }
000a8 eb 06 jmp SHORT $LN3@linkShader
000ac eb 06 jmp SHORT $LN3@linkShader
$LN2@linkShader:
; 56 : else
; 57 : {
; 58 : return shaderProgram;
; 57 : else
; 58 : {
; 59 : return shaderProgram;
000aa 8b 85 08 01 00
000ae 8b 85 08 01 00
00 mov eax, DWORD PTR shaderProgram$[rbp]
$LN3@linkShader:
$LN1@linkShader:
; 59 : }
; 60 : }
; 60 : }
; 61 : }
000b0 48 8b f8 mov rdi, rax
000b3 48 8d 4d e0 lea rcx, QWORD PTR [rbp-32]
000b7 48 8d 15 00 00
000b4 48 8b f8 mov rdi, rax
000b7 48 8d 4d e0 lea rcx, QWORD PTR [rbp-32]
000bb 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:linkShaderProgram$rtcFrameData
000be e8 00 00 00 00 call _RTC_CheckStackVars
000c3 48 8b c7 mov rax, rdi
000c6 48 8b 8d d8 00
000c2 e8 00 00 00 00 call _RTC_CheckStackVars
000c7 48 8b c7 mov rax, rdi
000ca 48 8b 8d d8 00
00 00 mov rcx, QWORD PTR __$ArrayPad$[rbp]
000cd 48 33 cd xor rcx, rbp
000d0 e8 00 00 00 00 call __security_check_cookie
000d5 48 8d a5 e8 00
000d1 48 33 cd xor rcx, rbp
000d4 e8 00 00 00 00 call __security_check_cookie
000d9 48 8d a5 e8 00
00 00 lea rsp, QWORD PTR [rbp+232]
000dc 5f pop rdi
000dd 5d pop rbp
000de c3 ret 0
000e0 5f pop rdi
000e1 5d pop rbp
000e2 c3 ret 0
linkShaderProgram ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
@@ -801,34 +812,45 @@ $LN3:
00016 48 8d 0d 00 00
00 00 lea rcx, OFFSET FLAT:__59F96598_StgSharpC@c
0001d e8 00 00 00 00 call __CheckForDebuggerJustMyCode
00022 90 npad 1
; 24 : glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, majorVersion);
00022 8b 95 e0 00 00
00023 8b 95 e0 00 00
00 mov edx, DWORD PTR majorVersion$[rbp]
00028 b9 02 20 02 00 mov ecx, 139266 ; 00022002H
0002d e8 00 00 00 00 call glfwWindowHint
00029 b9 02 20 02 00 mov ecx, 139266 ; 00022002H
0002e e8 00 00 00 00 call glfwWindowHint
00033 90 npad 1
; 25 : glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, minorVersion);
00032 8b 95 e8 00 00
00034 8b 95 e8 00 00
00 mov edx, DWORD PTR minorVersion$[rbp]
00038 b9 03 20 02 00 mov ecx, 139267 ; 00022003H
0003d e8 00 00 00 00 call glfwWindowHint
0003a b9 03 20 02 00 mov ecx, 139267 ; 00022003H
0003f e8 00 00 00 00 call glfwWindowHint
00044 90 npad 1
; 26 : glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
00042 ba 01 20 03 00 mov edx, 204801 ; 00032001H
00047 b9 08 20 02 00 mov ecx, 139272 ; 00022008H
0004c e8 00 00 00 00 call glfwWindowHint
00045 ba 01 20 03 00 mov edx, 204801 ; 00032001H
0004a b9 08 20 02 00 mov ecx, 139272 ; 00022008H
0004f e8 00 00 00 00 call glfwWindowHint
00054 90 npad 1
; 27 : }
; 27 : glfwWindowHint(GLFW_RESIZABLE, GLFW_TRUE);
00051 48 8d a5 c8 00
00055 ba 01 00 00 00 mov edx, 1
0005a b9 03 00 02 00 mov ecx, 131075 ; 00020003H
0005f e8 00 00 00 00 call glfwWindowHint
00064 90 npad 1
; 28 : }
00065 48 8d a5 c8 00
00 00 lea rsp, QWORD PTR [rbp+200]
00058 5f pop rdi
00059 5d pop rbp
0005a c3 ret 0
0006c 5f pop rdi
0006d 5d pop rbp
0006e c3 ret 0
initGL ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
@@ -869,74 +891,77 @@ $LN4:
0004c 48 8d 0d 00 00
00 00 lea rcx, OFFSET FLAT:__59F96598_StgSharpC@c
00053 e8 00 00 00 00 call __CheckForDebuggerJustMyCode
00058 90 npad 1
; 12 : int stat = 0;
00058 c7 45 04 00 00
00059 c7 45 04 00 00
00 00 mov DWORD PTR stat$[rbp], 0
; 13 : context->GetShaderiv(shaderHandle, key, &stat);
0005f 4c 8d 45 04 lea r8, QWORD PTR stat$[rbp]
00063 8b 95 10 01 00
00060 4c 8d 45 04 lea r8, QWORD PTR stat$[rbp]
00064 8b 95 10 01 00
00 mov edx, DWORD PTR key$[rbp]
00069 8b 8d 08 01 00
0006a 8b 8d 08 01 00
00 mov ecx, DWORD PTR shaderHandle$[rbp]
0006f 48 8b 85 00 01
00070 48 8b 85 00 01
00 00 mov rax, QWORD PTR context$[rbp]
00076 ff 90 40 1b 00
00077 ff 90 40 1b 00
00 call QWORD PTR [rax+6976]
0007d 90 npad 1
; 14 : if (!stat)
0007c 83 7d 04 00 cmp DWORD PTR stat$[rbp], 0
00080 75 22 jne SHORT $LN2@glCheckSha
0007e 83 7d 04 00 cmp DWORD PTR stat$[rbp], 0
00082 75 23 jne SHORT $LN2@glCheckSha
; 15 : {
; 16 : context->GetShaderInfoLog(shaderHandle, 512, NULL, infolog);
00082 4c 8d 0d 00 00
00084 4c 8d 0d 00 00
00 00 lea r9, OFFSET FLAT:infolog
00089 45 33 c0 xor r8d, r8d
0008c ba 00 02 00 00 mov edx, 512 ; 00000200H
00091 8b 8d 08 01 00
0008b 45 33 c0 xor r8d, r8d
0008e ba 00 02 00 00 mov edx, 512 ; 00000200H
00093 8b 8d 08 01 00
00 mov ecx, DWORD PTR shaderHandle$[rbp]
00097 48 8b 85 00 01
00099 48 8b 85 00 01
00 00 mov rax, QWORD PTR context$[rbp]
0009e ff 90 20 1b 00
000a0 ff 90 20 1b 00
00 call QWORD PTR [rax+6944]
000a6 90 npad 1
$LN2@glCheckSha:
; 17 : }
; 18 : *logRef = infolog;
000a4 48 8b 85 18 01
000a7 48 8b 85 18 01
00 00 mov rax, QWORD PTR logRef$[rbp]
000ab 48 8d 0d 00 00
000ae 48 8d 0d 00 00
00 00 lea rcx, OFFSET FLAT:infolog
000b2 48 89 08 mov QWORD PTR [rax], rcx
000b5 48 89 08 mov QWORD PTR [rax], rcx
; 19 : return stat;
000b5 8b 45 04 mov eax, DWORD PTR stat$[rbp]
000b8 8b 45 04 mov eax, DWORD PTR stat$[rbp]
; 20 : }
000b8 8b f8 mov edi, eax
000ba 48 8d 4d e0 lea rcx, QWORD PTR [rbp-32]
000be 48 8d 15 00 00
000bb 8b f8 mov edi, eax
000bd 48 8d 4d e0 lea rcx, QWORD PTR [rbp-32]
000c1 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:glCheckShaderStat$rtcFrameData
000c5 e8 00 00 00 00 call _RTC_CheckStackVars
000ca 8b c7 mov eax, edi
000cc 48 8b 8d d8 00
000c8 e8 00 00 00 00 call _RTC_CheckStackVars
000cd 8b c7 mov eax, edi
000cf 48 8b 8d d8 00
00 00 mov rcx, QWORD PTR __$ArrayPad$[rbp]
000d3 48 33 cd xor rcx, rbp
000d6 e8 00 00 00 00 call __security_check_cookie
000db 48 8d a5 e8 00
000d6 48 33 cd xor rcx, rbp
000d9 e8 00 00 00 00 call __security_check_cookie
000de 48 8d a5 e8 00
00 00 lea rsp, QWORD PTR [rbp+232]
000e2 5f pop rdi
000e3 5d pop rbp
000e4 c3 ret 0
000e5 5f pop rdi
000e6 5d pop rbp
000e7 c3 ret 0
glCheckShaderStat ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
@@ -975,54 +1000,55 @@ $LN3:
0004c 48 8d 0d 00 00
00 00 lea rcx, OFFSET FLAT:__C1EC35D3_stdio@h
00053 e8 00 00 00 00 call __CheckForDebuggerJustMyCode
00058 90 npad 1
; 957 : int _Result;
; 958 : va_list _ArgList;
; 959 : __crt_va_start(_ArgList, _Format);
00058 48 8d 85 28 01
00059 48 8d 85 28 01
00 00 lea rax, QWORD PTR _Format$[rbp+8]
0005f 48 89 45 28 mov QWORD PTR _ArgList$[rbp], rax
00060 48 89 45 28 mov QWORD PTR _ArgList$[rbp], rax
; 960 : _Result = _vfprintf_l(stdout, _Format, NULL, _ArgList);
00063 b9 01 00 00 00 mov ecx, 1
00068 ff 15 00 00 00
00064 b9 01 00 00 00 mov ecx, 1
00069 ff 15 00 00 00
00 call QWORD PTR __imp___acrt_iob_func
0006e 4c 8b 4d 28 mov r9, QWORD PTR _ArgList$[rbp]
00072 45 33 c0 xor r8d, r8d
00075 48 8b 95 20 01
0006f 4c 8b 4d 28 mov r9, QWORD PTR _ArgList$[rbp]
00073 45 33 c0 xor r8d, r8d
00076 48 8b 95 20 01
00 00 mov rdx, QWORD PTR _Format$[rbp]
0007c 48 8b c8 mov rcx, rax
0007f e8 00 00 00 00 call _vfprintf_l
00084 89 45 04 mov DWORD PTR _Result$[rbp], eax
0007d 48 8b c8 mov rcx, rax
00080 e8 00 00 00 00 call _vfprintf_l
00085 89 45 04 mov DWORD PTR _Result$[rbp], eax
; 961 : __crt_va_end(_ArgList);
00087 48 c7 45 28 00
00088 48 c7 45 28 00
00 00 00 mov QWORD PTR _ArgList$[rbp], 0
; 962 : return _Result;
0008f 8b 45 04 mov eax, DWORD PTR _Result$[rbp]
00090 8b 45 04 mov eax, DWORD PTR _Result$[rbp]
; 963 : }
00092 8b f8 mov edi, eax
00094 48 8d 4d e0 lea rcx, QWORD PTR [rbp-32]
00098 48 8d 15 00 00
00093 8b f8 mov edi, eax
00095 48 8d 4d e0 lea rcx, QWORD PTR [rbp-32]
00099 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:printf$rtcFrameData
0009f e8 00 00 00 00 call _RTC_CheckStackVars
000a4 8b c7 mov eax, edi
000a6 48 8b 8d f8 00
000a0 e8 00 00 00 00 call _RTC_CheckStackVars
000a5 8b c7 mov eax, edi
000a7 48 8b 8d f8 00
00 00 mov rcx, QWORD PTR __$ArrayPad$[rbp]
000ad 48 33 cd xor rcx, rbp
000b0 e8 00 00 00 00 call __security_check_cookie
000b5 48 8d a5 08 01
000ae 48 33 cd xor rcx, rbp
000b1 e8 00 00 00 00 call __security_check_cookie
000b6 48 8d a5 08 01
00 00 lea rsp, QWORD PTR [rbp+264]
000bc 5f pop rdi
000bd 5d pop rbp
000be c3 ret 0
000bd 5f pop rdi
000be 5d pop rbp
000bf c3 ret 0
printf ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
@@ -1050,30 +1076,31 @@ $LN3:
00022 48 8d 0d 00 00
00 00 lea rcx, OFFSET FLAT:__C1EC35D3_stdio@h
00029 e8 00 00 00 00 call __CheckForDebuggerJustMyCode
0002e 90 npad 1
; 645 : return __stdio_common_vfprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Stream, _Format, _Locale, _ArgList);
0002e e8 00 00 00 00 call __local_stdio_printf_options
00033 48 8b 8d f8 00
0002f e8 00 00 00 00 call __local_stdio_printf_options
00034 48 8b 8d f8 00
00 00 mov rcx, QWORD PTR _ArgList$[rbp]
0003a 48 89 4c 24 20 mov QWORD PTR [rsp+32], rcx
0003f 4c 8b 8d f0 00
0003b 48 89 4c 24 20 mov QWORD PTR [rsp+32], rcx
00040 4c 8b 8d f0 00
00 00 mov r9, QWORD PTR _Locale$[rbp]
00046 4c 8b 85 e8 00
00047 4c 8b 85 e8 00
00 00 mov r8, QWORD PTR _Format$[rbp]
0004d 48 8b 95 e0 00
0004e 48 8b 95 e0 00
00 00 mov rdx, QWORD PTR _Stream$[rbp]
00054 48 8b 08 mov rcx, QWORD PTR [rax]
00057 ff 15 00 00 00
00055 48 8b 08 mov rcx, QWORD PTR [rax]
00058 ff 15 00 00 00
00 call QWORD PTR __imp___stdio_common_vfprintf
; 646 : }
0005d 48 8d a5 c8 00
0005e 48 8d a5 c8 00
00 00 lea rsp, QWORD PTR [rbp+200]
00064 5f pop rdi
00065 5d pop rbp
00066 c3 ret 0
00065 5f pop rdi
00066 5d pop rbp
00067 c3 ret 0
_vfprintf_l ENDP
_TEXT ENDS
; Function compile flags: /Odtp /RTCsu /ZI
@@ -1093,20 +1120,21 @@ $LN3:
0000f 48 8d 0d 00 00
00 00 lea rcx, OFFSET FLAT:__44420885_corecrt_stdio_config@h
00016 e8 00 00 00 00 call __CheckForDebuggerJustMyCode
0001b 90 npad 1
; 91 : static unsigned __int64 _OptionsStorage;
; 92 : return &_OptionsStorage;
0001b 48 8d 05 00 00
0001c 48 8d 05 00 00
00 00 lea rax, OFFSET FLAT:?_OptionsStorage@?1??__local_stdio_printf_options@@9@9 ; `__local_stdio_printf_options'::`2'::_OptionsStorage
; 93 : }
00022 48 8d a5 c8 00
00023 48 8d a5 c8 00
00 00 lea rsp, QWORD PTR [rbp+200]
00029 5f pop rdi
0002a 5d pop rbp
0002b c3 ret 0
0002a 5f pop rdi
0002b 5d pop rbp
0002c c3 ret 0
__local_stdio_printf_options ENDP
_TEXT ENDS
END