634 lines
19 KiB
Plaintext
634 lines
19 KiB
Plaintext
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.37.32824.0
|
|
|
|
include listing.inc
|
|
|
|
INCLUDELIB OLDNAMES
|
|
|
|
PUBLIC infolog
|
|
EXTRN __imp___stdio_common_vfprintf:PROC
|
|
EXTRN __imp___acrt_iob_func:PROC
|
|
ALIGN 8
|
|
|
|
infolog DQ 0200H DUP (?)
|
|
COMM currentContext:QWORD
|
|
_DATA ENDS
|
|
PUBLIC readLog
|
|
PUBLIC linkShaderProgram
|
|
PUBLIC loadShaderCode
|
|
PUBLIC initGL
|
|
PUBLIC printShaderCode
|
|
PUBLIC printf
|
|
PUBLIC _vfprintf_l
|
|
; COMDAT pdata
|
|
pdata SEGMENT
|
|
$pdata$linkShaderProgram DD imagerel $LN7
|
|
DD imagerel $LN7+140
|
|
DD imagerel $unwind$linkShaderProgram
|
|
pdata ENDS
|
|
; COMDAT pdata
|
|
pdata SEGMENT
|
|
$pdata$loadShaderCode DD imagerel $LN7
|
|
DD imagerel $LN7+191
|
|
DD imagerel $unwind$loadShaderCode
|
|
pdata ENDS
|
|
; COMDAT pdata
|
|
pdata SEGMENT
|
|
$pdata$initGL DD imagerel $LN160
|
|
DD imagerel $LN160+132
|
|
DD imagerel $unwind$initGL
|
|
pdata ENDS
|
|
; COMDAT pdata
|
|
pdata SEGMENT
|
|
$pdata$printf DD imagerel $LN6
|
|
DD imagerel $LN6+85
|
|
DD imagerel $unwind$printf
|
|
pdata ENDS
|
|
; COMDAT pdata
|
|
pdata SEGMENT
|
|
$pdata$_vfprintf_l DD imagerel $LN4
|
|
DD imagerel $LN4+68
|
|
DD imagerel $unwind$_vfprintf_l
|
|
pdata ENDS
|
|
; COMDAT xdata
|
|
xdata SEGMENT
|
|
$unwind$_vfprintf_l DD 060f01H
|
|
DD 09640fH
|
|
DD 08340fH
|
|
DD 0700b520fH
|
|
xdata ENDS
|
|
; COMDAT xdata
|
|
xdata SEGMENT
|
|
$unwind$printf DD 041b01H
|
|
DD 07017521bH
|
|
DD 030156016H
|
|
xdata ENDS
|
|
; COMDAT xdata
|
|
xdata SEGMENT
|
|
$unwind$initGL DD 040a01H
|
|
DD 06340aH
|
|
DD 07006320aH
|
|
xdata ENDS
|
|
; COMDAT xdata
|
|
xdata SEGMENT
|
|
$unwind$loadShaderCode DD 021519H
|
|
DD 030027206H
|
|
DD imagerel __GSHandlerCheck
|
|
DD 030H
|
|
xdata ENDS
|
|
; COMDAT xdata
|
|
xdata SEGMENT
|
|
$unwind$linkShaderProgram DD 021519H
|
|
DD 030025206H
|
|
DD imagerel __GSHandlerCheck
|
|
DD 028H
|
|
; Function compile flags: /Ogtpy
|
|
; File C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stdio.h
|
|
; COMDAT _vfprintf_l
|
|
_TEXT SEGMENT
|
|
_Stream$ = 64
|
|
_Format$ = 72
|
|
_Locale$dead$ = 80
|
|
_ArgList$ = 88
|
|
_vfprintf_l PROC ; COMDAT
|
|
|
|
; 644 : {
|
|
|
|
$LN4:
|
|
00000 48 89 5c 24 08 mov QWORD PTR [rsp+8], rbx
|
|
00005 48 89 74 24 10 mov QWORD PTR [rsp+16], rsi
|
|
0000a 57 push rdi
|
|
0000b 48 83 ec 30 sub rsp, 48 ; 00000030H
|
|
0000f 49 8b d9 mov rbx, r9
|
|
00012 48 8b fa mov rdi, rdx
|
|
00015 48 8b f1 mov rsi, rcx
|
|
|
|
; 645 : return __stdio_common_vfprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Stream, _Format, _Locale, _ArgList);
|
|
|
|
00018 e8 00 00 00 00 call __local_stdio_printf_options
|
|
0001d 45 33 c9 xor r9d, r9d
|
|
00020 48 89 5c 24 20 mov QWORD PTR [rsp+32], rbx
|
|
00025 4c 8b c7 mov r8, rdi
|
|
00028 48 8b d6 mov rdx, rsi
|
|
0002b 48 8b 08 mov rcx, QWORD PTR [rax]
|
|
0002e ff 15 00 00 00
|
|
00 call QWORD PTR __imp___stdio_common_vfprintf
|
|
|
|
; 646 : }
|
|
|
|
00034 48 8b 5c 24 40 mov rbx, QWORD PTR [rsp+64]
|
|
00039 48 8b 74 24 48 mov rsi, QWORD PTR [rsp+72]
|
|
0003e 48 83 c4 30 add rsp, 48 ; 00000030H
|
|
00042 5f pop rdi
|
|
00043 c3 ret 0
|
|
_vfprintf_l ENDP
|
|
_TEXT ENDS
|
|
; Function compile flags: /Ogtpy
|
|
; File C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\stdio.h
|
|
; COMDAT printf
|
|
_TEXT SEGMENT
|
|
_Format$ = 80
|
|
printf PROC ; COMDAT
|
|
|
|
; 956 : {
|
|
|
|
$LN6:
|
|
00000 48 89 4c 24 08 mov QWORD PTR [rsp+8], rcx
|
|
00005 48 89 54 24 10 mov QWORD PTR [rsp+16], rdx
|
|
0000a 4c 89 44 24 18 mov QWORD PTR [rsp+24], r8
|
|
0000f 4c 89 4c 24 20 mov QWORD PTR [rsp+32], r9
|
|
00014 53 push rbx
|
|
00015 56 push rsi
|
|
00016 57 push rdi
|
|
00017 48 83 ec 30 sub rsp, 48 ; 00000030H
|
|
0001b 48 8b f9 mov rdi, rcx
|
|
|
|
; 957 : int _Result;
|
|
; 958 : va_list _ArgList;
|
|
; 959 : __crt_va_start(_ArgList, _Format);
|
|
|
|
0001e 48 8d 74 24 58 lea rsi, QWORD PTR _Format$[rsp+8]
|
|
|
|
; 960 : _Result = _vfprintf_l(stdout, _Format, NULL, _ArgList);
|
|
|
|
00023 b9 01 00 00 00 mov ecx, 1
|
|
00028 ff 15 00 00 00
|
|
00 call QWORD PTR __imp___acrt_iob_func
|
|
0002e 48 8b d8 mov rbx, rax
|
|
|
|
; 645 : return __stdio_common_vfprintf(_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS, _Stream, _Format, _Locale, _ArgList);
|
|
|
|
00031 e8 00 00 00 00 call __local_stdio_printf_options
|
|
00036 45 33 c9 xor r9d, r9d
|
|
00039 48 89 74 24 20 mov QWORD PTR [rsp+32], rsi
|
|
0003e 4c 8b c7 mov r8, rdi
|
|
00041 48 8b d3 mov rdx, rbx
|
|
00044 48 8b 08 mov rcx, QWORD PTR [rax]
|
|
00047 ff 15 00 00 00
|
|
00 call QWORD PTR __imp___stdio_common_vfprintf
|
|
|
|
; 961 : __crt_va_end(_ArgList);
|
|
; 962 : return _Result;
|
|
; 963 : }
|
|
|
|
0004d 48 83 c4 30 add rsp, 48 ; 00000030H
|
|
00051 5f pop rdi
|
|
00052 5e pop rsi
|
|
00053 5b pop rbx
|
|
00054 c3 ret 0
|
|
printf ENDP
|
|
_TEXT ENDS
|
|
; Function compile flags: /Ogtpy
|
|
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\StgSharpC.c
|
|
; COMDAT printShaderCode
|
|
_TEXT SEGMENT
|
|
code$ = 8
|
|
printShaderCode PROC ; COMDAT
|
|
|
|
; 15 : printf(*code);
|
|
|
|
00000 48 8b 09 mov rcx, QWORD PTR [rcx]
|
|
00003 e9 00 00 00 00 jmp printf
|
|
printShaderCode ENDP
|
|
_TEXT ENDS
|
|
; Function compile flags: /Ogtpy
|
|
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\StgSharpC.c
|
|
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\window.c
|
|
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\StgSharpC.c
|
|
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\window.c
|
|
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\StgSharpC.c
|
|
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\window.c
|
|
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\StgSharpC.c
|
|
; COMDAT initGL
|
|
_TEXT SEGMENT
|
|
majorVersion$ = 48
|
|
minorVersion$ = 56
|
|
initGL PROC ; COMDAT
|
|
|
|
; 21 : {
|
|
|
|
$LN160:
|
|
00000 48 89 5c 24 08 mov QWORD PTR [rsp+8], rbx
|
|
00005 57 push rdi
|
|
00006 48 83 ec 20 sub rsp, 32 ; 00000020H
|
|
0000a 8b fa mov edi, edx
|
|
0000c 8b d9 mov ebx, ecx
|
|
|
|
; 22 : glfwInit();
|
|
|
|
0000e e8 00 00 00 00 call glfwInit
|
|
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\window.c
|
|
|
|
; 300 : _GLFW_REQUIRE_INIT();
|
|
|
|
00013 8b 05 00 00 00
|
|
00 mov eax, DWORD PTR _glfw
|
|
00019 85 c0 test eax, eax
|
|
0001b 75 14 jne SHORT $LN6@initGL
|
|
0001d 33 d2 xor edx, edx
|
|
0001f b9 01 00 01 00 mov ecx, 65537 ; 00010001H
|
|
00024 e8 00 00 00 00 call _glfwInputError
|
|
00029 8b 05 00 00 00
|
|
00 mov eax, DWORD PTR _glfw
|
|
0002f eb 06 jmp SHORT $LN3@initGL
|
|
$LN6@initGL:
|
|
|
|
; 301 :
|
|
; 302 : switch (hint)
|
|
; 303 : {
|
|
; 304 : case GLFW_RED_BITS:
|
|
; 305 : _glfw.hints.framebuffer.redBits = value;
|
|
; 306 : return;
|
|
; 307 : case GLFW_GREEN_BITS:
|
|
; 308 : _glfw.hints.framebuffer.greenBits = value;
|
|
; 309 : return;
|
|
; 310 : case GLFW_BLUE_BITS:
|
|
; 311 : _glfw.hints.framebuffer.blueBits = value;
|
|
; 312 : return;
|
|
; 313 : case GLFW_ALPHA_BITS:
|
|
; 314 : _glfw.hints.framebuffer.alphaBits = value;
|
|
; 315 : return;
|
|
; 316 : case GLFW_DEPTH_BITS:
|
|
; 317 : _glfw.hints.framebuffer.depthBits = value;
|
|
; 318 : return;
|
|
; 319 : case GLFW_STENCIL_BITS:
|
|
; 320 : _glfw.hints.framebuffer.stencilBits = value;
|
|
; 321 : return;
|
|
; 322 : case GLFW_ACCUM_RED_BITS:
|
|
; 323 : _glfw.hints.framebuffer.accumRedBits = value;
|
|
; 324 : return;
|
|
; 325 : case GLFW_ACCUM_GREEN_BITS:
|
|
; 326 : _glfw.hints.framebuffer.accumGreenBits = value;
|
|
; 327 : return;
|
|
; 328 : case GLFW_ACCUM_BLUE_BITS:
|
|
; 329 : _glfw.hints.framebuffer.accumBlueBits = value;
|
|
; 330 : return;
|
|
; 331 : case GLFW_ACCUM_ALPHA_BITS:
|
|
; 332 : _glfw.hints.framebuffer.accumAlphaBits = value;
|
|
; 333 : return;
|
|
; 334 : case GLFW_AUX_BUFFERS:
|
|
; 335 : _glfw.hints.framebuffer.auxBuffers = value;
|
|
; 336 : return;
|
|
; 337 : case GLFW_STEREO:
|
|
; 338 : _glfw.hints.framebuffer.stereo = value ? GLFW_TRUE : GLFW_FALSE;
|
|
; 339 : return;
|
|
; 340 : case GLFW_DOUBLEBUFFER:
|
|
; 341 : _glfw.hints.framebuffer.doublebuffer = value ? GLFW_TRUE : GLFW_FALSE;
|
|
; 342 : return;
|
|
; 343 : case GLFW_TRANSPARENT_FRAMEBUFFER:
|
|
; 344 : _glfw.hints.framebuffer.transparent = value ? GLFW_TRUE : GLFW_FALSE;
|
|
; 345 : return;
|
|
; 346 : case GLFW_SAMPLES:
|
|
; 347 : _glfw.hints.framebuffer.samples = value;
|
|
; 348 : return;
|
|
; 349 : case GLFW_SRGB_CAPABLE:
|
|
; 350 : _glfw.hints.framebuffer.sRGB = value ? GLFW_TRUE : GLFW_FALSE;
|
|
; 351 : return;
|
|
; 352 : case GLFW_RESIZABLE:
|
|
; 353 : _glfw.hints.window.resizable = value ? GLFW_TRUE : GLFW_FALSE;
|
|
; 354 : return;
|
|
; 355 : case GLFW_DECORATED:
|
|
; 356 : _glfw.hints.window.decorated = value ? GLFW_TRUE : GLFW_FALSE;
|
|
; 357 : return;
|
|
; 358 : case GLFW_FOCUSED:
|
|
; 359 : _glfw.hints.window.focused = value ? GLFW_TRUE : GLFW_FALSE;
|
|
; 360 : return;
|
|
; 361 : case GLFW_AUTO_ICONIFY:
|
|
; 362 : _glfw.hints.window.autoIconify = value ? GLFW_TRUE : GLFW_FALSE;
|
|
; 363 : return;
|
|
; 364 : case GLFW_FLOATING:
|
|
; 365 : _glfw.hints.window.floating = value ? GLFW_TRUE : GLFW_FALSE;
|
|
; 366 : return;
|
|
; 367 : case GLFW_MAXIMIZED:
|
|
; 368 : _glfw.hints.window.maximized = value ? GLFW_TRUE : GLFW_FALSE;
|
|
; 369 : return;
|
|
; 370 : case GLFW_VISIBLE:
|
|
; 371 : _glfw.hints.window.visible = value ? GLFW_TRUE : GLFW_FALSE;
|
|
; 372 : return;
|
|
; 373 : case GLFW_POSITION_X:
|
|
; 374 : _glfw.hints.window.xpos = value;
|
|
; 375 : return;
|
|
; 376 : case GLFW_POSITION_Y:
|
|
; 377 : _glfw.hints.window.ypos = value;
|
|
; 378 : return;
|
|
; 379 : case GLFW_COCOA_RETINA_FRAMEBUFFER:
|
|
; 380 : _glfw.hints.window.ns.retina = value ? GLFW_TRUE : GLFW_FALSE;
|
|
; 381 : return;
|
|
; 382 : case GLFW_WIN32_KEYBOARD_MENU:
|
|
; 383 : _glfw.hints.window.win32.keymenu = value ? GLFW_TRUE : GLFW_FALSE;
|
|
; 384 : return;
|
|
; 385 : case GLFW_COCOA_GRAPHICS_SWITCHING:
|
|
; 386 : _glfw.hints.context.nsgl.offline = value ? GLFW_TRUE : GLFW_FALSE;
|
|
; 387 : return;
|
|
; 388 : case GLFW_SCALE_TO_MONITOR:
|
|
; 389 : _glfw.hints.window.scaleToMonitor = value ? GLFW_TRUE : GLFW_FALSE;
|
|
; 390 : return;
|
|
; 391 : case GLFW_CENTER_CURSOR:
|
|
; 392 : _glfw.hints.window.centerCursor = value ? GLFW_TRUE : GLFW_FALSE;
|
|
; 393 : return;
|
|
; 394 : case GLFW_FOCUS_ON_SHOW:
|
|
; 395 : _glfw.hints.window.focusOnShow = value ? GLFW_TRUE : GLFW_FALSE;
|
|
; 396 : return;
|
|
; 397 : case GLFW_MOUSE_PASSTHROUGH:
|
|
; 398 : _glfw.hints.window.mousePassthrough = value ? GLFW_TRUE : GLFW_FALSE;
|
|
; 399 : return;
|
|
; 400 : case GLFW_CLIENT_API:
|
|
; 401 : _glfw.hints.context.client = value;
|
|
; 402 : return;
|
|
; 403 : case GLFW_CONTEXT_CREATION_API:
|
|
; 404 : _glfw.hints.context.source = value;
|
|
; 405 : return;
|
|
; 406 : case GLFW_CONTEXT_VERSION_MAJOR:
|
|
; 407 : _glfw.hints.context.major = value;
|
|
|
|
00031 89 1d 30 07 00
|
|
00 mov DWORD PTR _glfw+1840, ebx
|
|
$LN3@initGL:
|
|
|
|
; 300 : _GLFW_REQUIRE_INIT();
|
|
|
|
00037 85 c0 test eax, eax
|
|
00039 75 14 jne SHORT $LN57@initGL
|
|
0003b 33 d2 xor edx, edx
|
|
0003d b9 01 00 01 00 mov ecx, 65537 ; 00010001H
|
|
00042 e8 00 00 00 00 call _glfwInputError
|
|
00047 8b 05 00 00 00
|
|
00 mov eax, DWORD PTR _glfw
|
|
0004d eb 06 jmp SHORT $LN54@initGL
|
|
$LN57@initGL:
|
|
|
|
; 408 : return;
|
|
; 409 : case GLFW_CONTEXT_VERSION_MINOR:
|
|
; 410 : _glfw.hints.context.minor = value;
|
|
|
|
0004f 89 3d 34 07 00
|
|
00 mov DWORD PTR _glfw+1844, edi
|
|
$LN54@initGL:
|
|
|
|
; 300 : _GLFW_REQUIRE_INIT();
|
|
|
|
00055 85 c0 test eax, eax
|
|
00057 75 16 jne SHORT $LN108@initGL
|
|
00059 33 d2 xor edx, edx
|
|
0005b b9 01 00 01 00 mov ecx, 65537 ; 00010001H
|
|
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\StgSharpC.c
|
|
|
|
; 31 : }
|
|
|
|
00060 48 8b 5c 24 30 mov rbx, QWORD PTR [rsp+48]
|
|
00065 48 83 c4 20 add rsp, 32 ; 00000020H
|
|
00069 5f pop rdi
|
|
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\window.c
|
|
|
|
; 300 : _GLFW_REQUIRE_INIT();
|
|
|
|
0006a e9 00 00 00 00 jmp _glfwInputError
|
|
$LN108@initGL:
|
|
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\StgSharpC.c
|
|
|
|
; 31 : }
|
|
|
|
0006f 48 8b 5c 24 30 mov rbx, QWORD PTR [rsp+48]
|
|
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\window.c
|
|
|
|
; 425 : _glfw.hints.context.profile = value;
|
|
|
|
00074 c7 05 44 07 00
|
|
00 01 20 03 00 mov DWORD PTR _glfw+1860, 204801 ; 00032001H
|
|
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\StgSharpC.c
|
|
|
|
; 31 : }
|
|
|
|
0007e 48 83 c4 20 add rsp, 32 ; 00000020H
|
|
00082 5f pop rdi
|
|
00083 c3 ret 0
|
|
initGL ENDP
|
|
_TEXT ENDS
|
|
; Function compile flags: /Ogtpy
|
|
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\StgSharpC.c
|
|
; COMDAT loadShaderCode
|
|
_TEXT SEGMENT
|
|
shaderCode$GSCopy$ = 32
|
|
success$ = 40
|
|
__$ArrayPad$ = 48
|
|
shaderCode$ = 80
|
|
shadertype$ = 88
|
|
loadShaderCode PROC ; COMDAT
|
|
|
|
; 36 : {
|
|
|
|
$LN7:
|
|
00000 40 53 push rbx
|
|
00002 48 83 ec 40 sub rsp, 64 ; 00000040H
|
|
00006 48 8b 05 00 00
|
|
00 00 mov rax, QWORD PTR __security_cookie
|
|
0000d 48 33 c4 xor rax, rsp
|
|
00010 48 89 44 24 30 mov QWORD PTR __$ArrayPad$[rsp], rax
|
|
|
|
; 37 :
|
|
; 38 : unsigned int shader = currentContext->CreateShader(shadertype);
|
|
|
|
00015 48 8b 05 00 00
|
|
00 00 mov rax, QWORD PTR currentContext
|
|
0001c 48 89 4c 24 20 mov QWORD PTR shaderCode$GSCopy$[rsp], rcx
|
|
00021 8b ca mov ecx, edx
|
|
00023 ff 90 f0 13 00
|
|
00 call QWORD PTR [rax+5104]
|
|
|
|
; 39 : currentContext->ShaderSource(shader, 1, &shaderCode, NULL);
|
|
|
|
00029 4c 8b 15 00 00
|
|
00 00 mov r10, QWORD PTR currentContext
|
|
00030 4c 8d 44 24 20 lea r8, QWORD PTR shaderCode$GSCopy$[rsp]
|
|
00035 45 33 c9 xor r9d, r9d
|
|
00038 8b c8 mov ecx, eax
|
|
0003a 8b d8 mov ebx, eax
|
|
0003c 41 8d 51 01 lea edx, QWORD PTR [r9+1]
|
|
00040 41 ff 92 50 41
|
|
00 00 call QWORD PTR [r10+16720]
|
|
|
|
; 40 : currentContext->CompileShader(shader);
|
|
|
|
00047 48 8b 15 00 00
|
|
00 00 mov rdx, QWORD PTR currentContext
|
|
0004e 8b cb mov ecx, ebx
|
|
00050 ff 92 18 11 00
|
|
00 call QWORD PTR [rdx+4376]
|
|
|
|
; 41 : int success;
|
|
; 42 : currentContext->GetShaderiv(shader, GL_COMPILE_STATUS, &success);
|
|
|
|
00056 4c 8b 0d 00 00
|
|
00 00 mov r9, QWORD PTR currentContext
|
|
0005d 4c 8d 44 24 28 lea r8, QWORD PTR success$[rsp]
|
|
00062 ba 81 8b 00 00 mov edx, 35713 ; 00008b81H
|
|
00067 8b cb mov ecx, ebx
|
|
00069 41 ff 91 40 25
|
|
00 00 call QWORD PTR [r9+9536]
|
|
|
|
; 43 : if (!success)
|
|
|
|
00070 83 7c 24 28 00 cmp DWORD PTR success$[rsp], 0
|
|
00075 75 33 jne SHORT $LN2@loadShader
|
|
|
|
; 44 : {
|
|
; 45 : currentContext->GetShaderInfoLog(shader, 512, NULL, infolog);
|
|
|
|
00077 48 8b 05 00 00
|
|
00 00 mov rax, QWORD PTR currentContext
|
|
0007e 4c 8d 0d 00 00
|
|
00 00 lea r9, OFFSET FLAT:infolog
|
|
00085 45 33 c0 xor r8d, r8d
|
|
00088 ba 00 02 00 00 mov edx, 512 ; 00000200H
|
|
0008d 8b cb mov ecx, ebx
|
|
0008f ff 90 20 25 00
|
|
00 call QWORD PTR [rax+9504]
|
|
|
|
; 46 : return 0;
|
|
|
|
00095 33 c0 xor eax, eax
|
|
|
|
; 51 : }
|
|
; 52 : }
|
|
|
|
00097 48 8b 4c 24 30 mov rcx, QWORD PTR __$ArrayPad$[rsp]
|
|
0009c 48 33 cc xor rcx, rsp
|
|
0009f e8 00 00 00 00 call __security_check_cookie
|
|
000a4 48 83 c4 40 add rsp, 64 ; 00000040H
|
|
000a8 5b pop rbx
|
|
000a9 c3 ret 0
|
|
$LN2@loadShader:
|
|
|
|
; 47 : }
|
|
; 48 : else
|
|
; 49 : {
|
|
; 50 : return shader;
|
|
|
|
000aa 8b c3 mov eax, ebx
|
|
|
|
; 51 : }
|
|
; 52 : }
|
|
|
|
000ac 48 8b 4c 24 30 mov rcx, QWORD PTR __$ArrayPad$[rsp]
|
|
000b1 48 33 cc xor rcx, rsp
|
|
000b4 e8 00 00 00 00 call __security_check_cookie
|
|
000b9 48 83 c4 40 add rsp, 64 ; 00000040H
|
|
000bd 5b pop rbx
|
|
000be c3 ret 0
|
|
loadShaderCode ENDP
|
|
_TEXT ENDS
|
|
; Function compile flags: /Ogtpy
|
|
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\StgSharpC.c
|
|
; COMDAT linkShaderProgram
|
|
_TEXT SEGMENT
|
|
success$ = 32
|
|
__$ArrayPad$ = 40
|
|
shaderProgram$ = 64
|
|
linkShaderProgram PROC ; COMDAT
|
|
|
|
; 55 : {
|
|
|
|
$LN7:
|
|
00000 40 53 push rbx
|
|
00002 48 83 ec 30 sub rsp, 48 ; 00000030H
|
|
00006 48 8b 05 00 00
|
|
00 00 mov rax, QWORD PTR __security_cookie
|
|
0000d 48 33 c4 xor rax, rsp
|
|
00010 48 89 44 24 28 mov QWORD PTR __$ArrayPad$[rsp], rax
|
|
|
|
; 56 : currentContext->LinkProgram(shaderProgram);
|
|
|
|
00015 48 8b 05 00 00
|
|
00 00 mov rax, QWORD PTR currentContext
|
|
0001c 8b d9 mov ebx, ecx
|
|
0001e ff 90 80 2c 00
|
|
00 call QWORD PTR [rax+11392]
|
|
|
|
; 57 :
|
|
; 58 : int success;
|
|
; 59 : currentContext->GetProgramiv(shaderProgram, GL_LINK_STATUS, &success);
|
|
|
|
00024 48 8b 05 00 00
|
|
00 00 mov rax, QWORD PTR currentContext
|
|
0002b 4c 8d 44 24 20 lea r8, QWORD PTR success$[rsp]
|
|
00030 ba 82 8b 00 00 mov edx, 35714 ; 00008b82H
|
|
00035 8b cb mov ecx, ebx
|
|
00037 ff 90 48 24 00
|
|
00 call QWORD PTR [rax+9288]
|
|
|
|
; 60 : if (!success)
|
|
|
|
0003d 83 7c 24 20 00 cmp DWORD PTR success$[rsp], 0
|
|
00042 75 33 jne SHORT $LN2@linkShader
|
|
|
|
; 61 : {
|
|
; 62 : currentContext->GetProgramInfoLog(shaderProgram, 512, NULL, infolog);
|
|
|
|
00044 48 8b 05 00 00
|
|
00 00 mov rax, QWORD PTR currentContext
|
|
0004b 4c 8d 0d 00 00
|
|
00 00 lea r9, OFFSET FLAT:infolog
|
|
00052 45 33 c0 xor r8d, r8d
|
|
00055 ba 00 02 00 00 mov edx, 512 ; 00000200H
|
|
0005a 8b cb mov ecx, ebx
|
|
0005c ff 90 98 23 00
|
|
00 call QWORD PTR [rax+9112]
|
|
|
|
; 63 : return 0;
|
|
|
|
00062 33 c0 xor eax, eax
|
|
|
|
; 68 : }
|
|
; 69 :
|
|
; 70 : }
|
|
|
|
00064 48 8b 4c 24 28 mov rcx, QWORD PTR __$ArrayPad$[rsp]
|
|
00069 48 33 cc xor rcx, rsp
|
|
0006c e8 00 00 00 00 call __security_check_cookie
|
|
00071 48 83 c4 30 add rsp, 48 ; 00000030H
|
|
00075 5b pop rbx
|
|
00076 c3 ret 0
|
|
$LN2@linkShader:
|
|
|
|
; 64 : }
|
|
; 65 : else
|
|
; 66 : {
|
|
; 67 : return shaderProgram;
|
|
|
|
00077 8b c3 mov eax, ebx
|
|
|
|
; 68 : }
|
|
; 69 :
|
|
; 70 : }
|
|
|
|
00079 48 8b 4c 24 28 mov rcx, QWORD PTR __$ArrayPad$[rsp]
|
|
0007e 48 33 cc xor rcx, rsp
|
|
00081 e8 00 00 00 00 call __security_check_cookie
|
|
00086 48 83 c4 30 add rsp, 48 ; 00000030H
|
|
0008a 5b pop rbx
|
|
0008b c3 ret 0
|
|
linkShaderProgram ENDP
|
|
_TEXT ENDS
|
|
; Function compile flags: /Ogtpy
|
|
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\StgSharpC.c
|
|
; COMDAT readLog
|
|
_TEXT SEGMENT
|
|
readLog PROC ; COMDAT
|
|
|
|
; 74 : infolog[511] = '\0';
|
|
|
|
00000 48 c7 05 f8 0f
|
|
00 00 00 00 00
|
|
00 mov QWORD PTR infolog+4088, 0
|
|
|
|
; 75 : return &infolog;
|
|
|
|
0000b 48 8d 05 00 00
|
|
00 00 lea rax, OFFSET FLAT:infolog
|
|
|
|
; 76 : }
|
|
|
|
00012 c3 ret 0
|
|
readLog ENDP
|
|
_TEXT ENDS
|
|
END
|