Files
stgsharp/源代码/StgSharpGraphic/x64/Release/osmesa_context.cod
T

1709 lines
52 KiB
Plaintext

; Listing generated by Microsoft (R) Optimizing Compiler Version 19.37.32824.0
include listing.inc
INCLUDELIB OLDNAMES
PUBLIC ??_C@_0CH@CKFBCGDL@OSMesa?3?5Failed?5to?5make?5context?5@ ; `string'
PUBLIC ??_C@_0O@DJDONBGH@libOSMesa?4dll@ ; `string'
PUBLIC ??_C@_0L@GICFCFGJ@OSMesa?4dll@ ; `string'
PUBLIC ??_C@_0BK@MLLMMLGE@OSMesa?3?5Library?5not?5found@ ; `string'
PUBLIC ??_C@_0BH@IPANDFMH@OSMesaCreateContextExt@ ; `string'
PUBLIC ??_C@_0BL@MIAEELOL@OSMesaCreateContextAttribs@ ; `string'
PUBLIC ??_C@_0BF@OOKNCFMF@OSMesaDestroyContext@ ; `string'
PUBLIC ??_C@_0BC@HEACFLN@OSMesaMakeCurrent@ ; `string'
PUBLIC ??_C@_0BF@HHLAJKBF@OSMesaGetColorBuffer@ ; `string'
PUBLIC ??_C@_0BF@BPPLLLDH@OSMesaGetDepthBuffer@ ; `string'
PUBLIC ??_C@_0BF@INJHJNOL@OSMesaGetProcAddress@ ; `string'
PUBLIC ??_C@_0CN@PEBHJDOE@OSMesa?3?5Failed?5to?5load?5required@ ; `string'
PUBLIC ??_C@_0CN@JHECHMPF@OSMesa?3?5OpenGL?5ES?5is?5not?5availa@ ; `string'
PUBLIC ??_C@_0DC@KKLJAJOK@OSMesa?3?5Forward?9compatible?5cont@ ; `string'
PUBLIC ??_C@_0CE@OJEBIEPE@OSMesa?3?5OpenGL?5profiles?5unavail@ ; `string'
PUBLIC ??_C@_0CB@LDOHHBIH@OSMesa?3?5Failed?5to?5create?5contex@ ; `string'
PUBLIC ??_C@_0CI@NAJLKNKH@OSMesa?3?5Failed?5to?5retrieve?5colo@ ; `string'
PUBLIC ??_C@_0CI@FJDKHGC@OSMesa?3?5Failed?5to?5retrieve?5dept@ ; `string'
; COMDAT ??_C@_0CI@FJDKHGC@OSMesa?3?5Failed?5to?5retrieve?5dept@
CONST SEGMENT
??_C@_0CI@FJDKHGC@OSMesa?3?5Failed?5to?5retrieve?5dept@ DB 'OSMesa: Faile'
DB 'd to retrieve depth buffer', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0CI@NAJLKNKH@OSMesa?3?5Failed?5to?5retrieve?5colo@
CONST SEGMENT
??_C@_0CI@NAJLKNKH@OSMesa?3?5Failed?5to?5retrieve?5colo@ DB 'OSMesa: Fail'
DB 'ed to retrieve color buffer', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0CB@LDOHHBIH@OSMesa?3?5Failed?5to?5create?5contex@
CONST SEGMENT
??_C@_0CB@LDOHHBIH@OSMesa?3?5Failed?5to?5create?5contex@ DB 'OSMesa: Fail'
DB 'ed to create context', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0CE@OJEBIEPE@OSMesa?3?5OpenGL?5profiles?5unavail@
CONST SEGMENT
??_C@_0CE@OJEBIEPE@OSMesa?3?5OpenGL?5profiles?5unavail@ DB 'OSMesa: OpenG'
DB 'L profiles unavailable', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0DC@KKLJAJOK@OSMesa?3?5Forward?9compatible?5cont@
CONST SEGMENT
??_C@_0DC@KKLJAJOK@OSMesa?3?5Forward?9compatible?5cont@ DB 'OSMesa: Forwa'
DB 'rd-compatible contexts not supported', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0CN@JHECHMPF@OSMesa?3?5OpenGL?5ES?5is?5not?5availa@
CONST SEGMENT
??_C@_0CN@JHECHMPF@OSMesa?3?5OpenGL?5ES?5is?5not?5availa@ DB 'OSMesa: Ope'
DB 'nGL ES is not available on OSMesa', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0CN@PEBHJDOE@OSMesa?3?5Failed?5to?5load?5required@
CONST SEGMENT
??_C@_0CN@PEBHJDOE@OSMesa?3?5Failed?5to?5load?5required@ DB 'OSMesa: Fail'
DB 'ed to load required entry points', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BF@INJHJNOL@OSMesaGetProcAddress@
CONST SEGMENT
??_C@_0BF@INJHJNOL@OSMesaGetProcAddress@ DB 'OSMesaGetProcAddress', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BF@BPPLLLDH@OSMesaGetDepthBuffer@
CONST SEGMENT
??_C@_0BF@BPPLLLDH@OSMesaGetDepthBuffer@ DB 'OSMesaGetDepthBuffer', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BF@HHLAJKBF@OSMesaGetColorBuffer@
CONST SEGMENT
??_C@_0BF@HHLAJKBF@OSMesaGetColorBuffer@ DB 'OSMesaGetColorBuffer', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BC@HEACFLN@OSMesaMakeCurrent@
CONST SEGMENT
??_C@_0BC@HEACFLN@OSMesaMakeCurrent@ DB 'OSMesaMakeCurrent', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BF@OOKNCFMF@OSMesaDestroyContext@
CONST SEGMENT
??_C@_0BF@OOKNCFMF@OSMesaDestroyContext@ DB 'OSMesaDestroyContext', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BL@MIAEELOL@OSMesaCreateContextAttribs@
CONST SEGMENT
??_C@_0BL@MIAEELOL@OSMesaCreateContextAttribs@ DB 'OSMesaCreateContextAtt'
DB 'ribs', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BH@IPANDFMH@OSMesaCreateContextExt@
CONST SEGMENT
??_C@_0BH@IPANDFMH@OSMesaCreateContextExt@ DB 'OSMesaCreateContextExt', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BK@MLLMMLGE@OSMesa?3?5Library?5not?5found@
CONST SEGMENT
??_C@_0BK@MLLMMLGE@OSMesa?3?5Library?5not?5found@ DB 'OSMesa: Library not'
DB ' found', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0L@GICFCFGJ@OSMesa?4dll@
CONST SEGMENT
??_C@_0L@GICFCFGJ@OSMesa?4dll@ DB 'OSMesa.dll', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0O@DJDONBGH@libOSMesa?4dll@
CONST SEGMENT
??_C@_0O@DJDONBGH@libOSMesa?4dll@ DB 'libOSMesa.dll', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0CH@CKFBCGDL@OSMesa?3?5Failed?5to?5make?5context?5@
CONST SEGMENT
??_C@_0CH@CKFBCGDL@OSMesa?3?5Failed?5to?5make?5context?5@ DB 'OSMesa: Fai'
DB 'led to make context current', 00H ; `string'
PUBLIC glfwGetOSMesaContext
PUBLIC glfwGetOSMesaDepthBuffer
PUBLIC glfwGetOSMesaColorBuffer
PUBLIC _glfwCreateContextOSMesa
PUBLIC _glfwInitOSMesa
PUBLIC _glfwTerminateOSMesa
; COMDAT pdata
pdata SEGMENT
$pdata$glfwGetOSMesaContext DD imagerel $LN6
DD imagerel $LN6+75
DD imagerel $unwind$glfwGetOSMesaContext
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$glfwGetOSMesaDepthBuffer DD imagerel $LN18
DD imagerel $LN18+236
DD imagerel $unwind$glfwGetOSMesaDepthBuffer
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$glfwGetOSMesaColorBuffer DD imagerel $LN18
DD imagerel $LN18+236
DD imagerel $unwind$glfwGetOSMesaColorBuffer
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$destroyContextOSMesa DD imagerel destroyContextOSMesa
DD imagerel destroyContextOSMesa+80
DD imagerel $unwind$destroyContextOSMesa
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$makeContextCurrentOSMesa DD imagerel makeContextCurrentOSMesa
DD imagerel makeContextCurrentOSMesa+121
DD imagerel $unwind$makeContextCurrentOSMesa
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$0$makeContextCurrentOSMesa DD imagerel makeContextCurrentOSMesa+121
DD imagerel makeContextCurrentOSMesa+256
DD imagerel $chain$0$makeContextCurrentOSMesa
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$1$makeContextCurrentOSMesa DD imagerel makeContextCurrentOSMesa+256
DD imagerel makeContextCurrentOSMesa+365
DD imagerel $chain$1$makeContextCurrentOSMesa
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$_glfwCreateContextOSMesa DD imagerel $LN29
DD imagerel $LN29+91
DD imagerel $unwind$_glfwCreateContextOSMesa
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$0$_glfwCreateContextOSMesa DD imagerel $LN29+91
DD imagerel $LN29+539
DD imagerel $chain$0$_glfwCreateContextOSMesa
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$1$_glfwCreateContextOSMesa DD imagerel $LN29+539
DD imagerel $LN29+564
DD imagerel $chain$1$_glfwCreateContextOSMesa
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$_glfwInitOSMesa DD imagerel $LN49
DD imagerel $LN49+57
DD imagerel $unwind$_glfwInitOSMesa
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$0$_glfwInitOSMesa DD imagerel $LN49+57
DD imagerel $LN49+111
DD imagerel $chain$0$_glfwInitOSMesa
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$1$_glfwInitOSMesa DD imagerel $LN49+111
DD imagerel $LN49+429
DD imagerel $chain$1$_glfwInitOSMesa
pdata ENDS
; COMDAT pdata
pdata SEGMENT
$pdata$_glfwTerminateOSMesa DD imagerel $LN7
DD imagerel $LN7+38
DD imagerel $unwind$_glfwTerminateOSMesa
; COMDAT xdata
xdata SEGMENT
$unwind$_glfwTerminateOSMesa DD 010401H
DD 04204H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$chain$1$_glfwInitOSMesa DD 021H
DD imagerel $LN49
DD imagerel $LN49+57
DD imagerel $unwind$_glfwInitOSMesa
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$chain$0$_glfwInitOSMesa DD 020521H
DD 083405H
DD imagerel $LN49
DD imagerel $LN49+57
DD imagerel $unwind$_glfwInitOSMesa
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$_glfwInitOSMesa DD 010401H
DD 08204H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$chain$1$_glfwCreateContextOSMesa DD 021H
DD imagerel $LN29
DD imagerel $LN29+91
DD imagerel $unwind$_glfwCreateContextOSMesa
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$chain$0$_glfwCreateContextOSMesa DD 020821H
DD 0217408H
DD imagerel $LN29
DD imagerel $LN29+91
DD imagerel $unwind$_glfwCreateContextOSMesa
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$_glfwCreateContextOSMesa DD 031b19H
DD 01c0109H
DD 03002H
DD imagerel __GSHandlerCheck
DD 0d0H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$chain$1$makeContextCurrentOSMesa DD 021H
DD imagerel makeContextCurrentOSMesa
DD imagerel makeContextCurrentOSMesa+121
DD imagerel $unwind$makeContextCurrentOSMesa
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$chain$0$makeContextCurrentOSMesa DD 020521H
DD 0b7405H
DD imagerel makeContextCurrentOSMesa
DD imagerel makeContextCurrentOSMesa+121
DD imagerel $unwind$makeContextCurrentOSMesa
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$makeContextCurrentOSMesa DD 021519H
DD 030027206H
DD imagerel __GSHandlerCheck
DD 038H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$destroyContextOSMesa DD 020601H
DD 030023206H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$glfwGetOSMesaColorBuffer DD 051919H
DD 0e006a20aH
DD 060037004H
DD 03002H
DD imagerel __GSHandlerCheck
DD 048H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$glfwGetOSMesaDepthBuffer DD 051919H
DD 0e006a20aH
DD 060037004H
DD 03002H
DD imagerel __GSHandlerCheck
DD 048H
xdata ENDS
; COMDAT xdata
xdata SEGMENT
$unwind$glfwGetOSMesaContext DD 010401H
DD 04204H
; Function compile flags: /Ogtpy
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\win32_module.c
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; COMDAT _glfwTerminateOSMesa
_TEXT SEGMENT
_glfwTerminateOSMesa PROC ; COMDAT
; 185 : {
$LN7:
00000 48 83 ec 28 sub rsp, 40 ; 00000028H
; 186 : if (_glfw.osmesa.handle)
00004 48 8b 0d e0 1a
00 00 mov rcx, QWORD PTR _glfw+6880
0000b 48 85 c9 test rcx, rcx
0000e 74 11 je SHORT $LN2@glfwTermin
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\win32_module.c
; 44 : FreeLibrary((HMODULE)module);
00010 ff 15 00 00 00
00 call QWORD PTR __imp_FreeLibrary
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; 189 : _glfw.osmesa.handle = NULL;
00016 48 c7 05 e0 1a
00 00 00 00 00
00 mov QWORD PTR _glfw+6880, 0
$LN2@glfwTermin:
; 190 : }
; 191 : }
00021 48 83 c4 28 add rsp, 40 ; 00000028H
00025 c3 ret 0
_glfwTerminateOSMesa ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\win32_module.c
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\win32_module.c
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\win32_module.c
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\win32_module.c
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; COMDAT _glfwInitOSMesa
_TEXT SEGMENT
sonames$ = 32
_glfwInitOSMesa PROC ; COMDAT
; 114 : {
$LN49:
00000 48 83 ec 48 sub rsp, 72 ; 00000048H
; 115 : int i;
; 116 : const char* sonames[] =
; 117 : {
; 118 : #if defined(_GLFW_OSMESA_LIBRARY)
; 119 : _GLFW_OSMESA_LIBRARY,
; 120 : #elif defined(_WIN32)
; 121 : "libOSMesa.dll",
; 122 : "OSMesa.dll",
; 123 : #elif defined(__APPLE__)
; 124 : "libOSMesa.8.dylib",
; 125 : #elif defined(__CYGWIN__)
; 126 : "libOSMesa-8.so",
; 127 : #elif defined(__OpenBSD__) || defined(__NetBSD__)
; 128 : "libOSMesa.so",
; 129 : #else
; 130 : "libOSMesa.so.8",
; 131 : "libOSMesa.so.6",
; 132 : #endif
; 133 : NULL
; 134 : };
; 135 :
; 136 : if (_glfw.osmesa.handle)
00004 48 83 3d e0 1a
00 00 00 cmp QWORD PTR _glfw+6880, 0
0000c 48 8d 05 00 00
00 00 lea rax, OFFSET FLAT:??_C@_0O@DJDONBGH@libOSMesa?4dll@
00013 48 8d 0d 00 00
00 00 lea rcx, OFFSET FLAT:??_C@_0L@GICFCFGJ@OSMesa?4dll@
0001a 48 89 44 24 20 mov QWORD PTR sonames$[rsp], rax
0001f 48 89 4c 24 28 mov QWORD PTR sonames$[rsp+8], rcx
00024 48 c7 44 24 30
00 00 00 00 mov QWORD PTR sonames$[rsp+16], 0
0002d 74 0a je SHORT $LN5@glfwInitOS
$LN47@glfwInitOS:
; 175 : "OSMesa: Failed to load required entry points");
; 176 :
; 177 : _glfwTerminateOSMesa();
; 178 : return GLFW_FALSE;
; 179 : }
; 180 :
; 181 : return GLFW_TRUE;
; 182 : }
0002f b8 01 00 00 00 mov eax, 1
00034 48 83 c4 48 add rsp, 72 ; 00000048H
00038 c3 ret 0
$LN5@glfwInitOS:
00039 48 89 5c 24 40 mov QWORD PTR [rsp+64], rbx
0003e 33 db xor ebx, ebx
$LL4@glfwInitOS:
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\win32_module.c
; 39 : return LoadLibraryA(path);
00040 48 8b c8 mov rcx, rax
00043 ff 15 00 00 00
00 call QWORD PTR __imp_LoadLibraryA
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; 141 : _glfw.osmesa.handle = _glfwPlatformLoadModule(sonames[i]);
00049 48 89 05 e0 1a
00 00 mov QWORD PTR _glfw+6880, rax
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\win32_module.c
; 39 : return LoadLibraryA(path);
00050 48 8b c8 mov rcx, rax
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; 141 : _glfw.osmesa.handle = _glfwPlatformLoadModule(sonames[i]);
00053 48 85 c0 test rax, rax
; 142 : if (_glfw.osmesa.handle)
00056 75 0d jne SHORT $LN33@glfwInitOS
; 137 : return GLFW_TRUE;
; 138 :
; 139 : for (i = 0; sonames[i]; i++)
00058 48 8b 44 dc 28 mov rax, QWORD PTR sonames$[rsp+rbx*8+8]
0005d 48 ff c3 inc rbx
00060 48 85 c0 test rax, rax
00063 75 db jne SHORT $LL4@glfwInitOS
$LN33@glfwInitOS:
00065 48 8b 5c 24 40 mov rbx, QWORD PTR [rsp+64]
; 143 : break;
; 144 : }
; 145 :
; 146 : if (!_glfw.osmesa.handle)
0006a 48 85 c9 test rcx, rcx
0006d 75 18 jne SHORT $LN7@glfwInitOS
; 147 : {
; 148 : _glfwInputError(GLFW_API_UNAVAILABLE, "OSMesa: Library not found");
0006f 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:??_C@_0BK@MLLMMLGE@OSMesa?3?5Library?5not?5found@
00076 b9 06 00 01 00 mov ecx, 65542 ; 00010006H
0007b e8 00 00 00 00 call _glfwInputError
; 175 : "OSMesa: Failed to load required entry points");
; 176 :
; 177 : _glfwTerminateOSMesa();
; 178 : return GLFW_FALSE;
; 179 : }
; 180 :
; 181 : return GLFW_TRUE;
; 182 : }
00080 33 c0 xor eax, eax
00082 48 83 c4 48 add rsp, 72 ; 00000048H
00086 c3 ret 0
$LN7@glfwInitOS:
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\win32_module.c
; 49 : return (GLFWproc)GetProcAddress((HMODULE)module, name);
00087 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:??_C@_0BH@IPANDFMH@OSMesaCreateContextExt@
0008e ff 15 00 00 00
00 call QWORD PTR __imp_GetProcAddress
00094 48 8b 0d e0 1a
00 00 mov rcx, QWORD PTR _glfw+6880
0009b 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:??_C@_0BL@MIAEELOL@OSMesaCreateContextAttribs@
000a2 48 89 05 e8 1a
00 00 mov QWORD PTR _glfw+6888, rax
000a9 ff 15 00 00 00
00 call QWORD PTR __imp_GetProcAddress
000af 48 8b 0d e0 1a
00 00 mov rcx, QWORD PTR _glfw+6880
000b6 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:??_C@_0BF@OOKNCFMF@OSMesaDestroyContext@
000bd 48 89 05 f0 1a
00 00 mov QWORD PTR _glfw+6896, rax
000c4 ff 15 00 00 00
00 call QWORD PTR __imp_GetProcAddress
000ca 48 8b 0d e0 1a
00 00 mov rcx, QWORD PTR _glfw+6880
000d1 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:??_C@_0BC@HEACFLN@OSMesaMakeCurrent@
000d8 48 89 05 f8 1a
00 00 mov QWORD PTR _glfw+6904, rax
000df ff 15 00 00 00
00 call QWORD PTR __imp_GetProcAddress
000e5 48 8b 0d e0 1a
00 00 mov rcx, QWORD PTR _glfw+6880
000ec 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:??_C@_0BF@HHLAJKBF@OSMesaGetColorBuffer@
000f3 48 89 05 00 1b
00 00 mov QWORD PTR _glfw+6912, rax
000fa ff 15 00 00 00
00 call QWORD PTR __imp_GetProcAddress
00100 48 8b 0d e0 1a
00 00 mov rcx, QWORD PTR _glfw+6880
00107 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:??_C@_0BF@BPPLLLDH@OSMesaGetDepthBuffer@
0010e 48 89 05 08 1b
00 00 mov QWORD PTR _glfw+6920, rax
00115 ff 15 00 00 00
00 call QWORD PTR __imp_GetProcAddress
0011b 48 8b 0d e0 1a
00 00 mov rcx, QWORD PTR _glfw+6880
00122 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:??_C@_0BF@INJHJNOL@OSMesaGetProcAddress@
00129 48 89 05 10 1b
00 00 mov QWORD PTR _glfw+6928, rax
00130 ff 15 00 00 00
00 call QWORD PTR __imp_GetProcAddress
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; 171 : !_glfw.osmesa.GetDepthBuffer ||
00136 48 83 3d e8 1a
00 00 00 cmp QWORD PTR _glfw+6888, 0
0013e 48 89 05 18 1b
00 00 mov QWORD PTR _glfw+6936, rax
00145 74 31 je SHORT $LN9@glfwInitOS
00147 48 83 3d f8 1a
00 00 00 cmp QWORD PTR _glfw+6904, 0
0014f 74 27 je SHORT $LN9@glfwInitOS
00151 48 83 3d 00 1b
00 00 00 cmp QWORD PTR _glfw+6912, 0
00159 74 1d je SHORT $LN9@glfwInitOS
0015b 48 83 3d 08 1b
00 00 00 cmp QWORD PTR _glfw+6920, 0
00163 74 13 je SHORT $LN9@glfwInitOS
00165 48 83 3d 10 1b
00 00 00 cmp QWORD PTR _glfw+6928, 0
0016d 74 09 je SHORT $LN9@glfwInitOS
0016f 48 85 c0 test rax, rax
00172 0f 85 b7 fe ff
ff jne $LN47@glfwInitOS
$LN9@glfwInitOS:
; 172 : !_glfw.osmesa.GetProcAddress)
; 173 : {
; 174 : _glfwInputError(GLFW_PLATFORM_ERROR,
00178 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:??_C@_0CN@PEBHJDOE@OSMesa?3?5Failed?5to?5load?5required@
0017f b9 08 00 01 00 mov ecx, 65544 ; 00010008H
00184 e8 00 00 00 00 call _glfwInputError
; 186 : if (_glfw.osmesa.handle)
00189 48 8b 0d e0 1a
00 00 mov rcx, QWORD PTR _glfw+6880
00190 48 85 c9 test rcx, rcx
00193 74 11 je SHORT $LN28@glfwInitOS
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\win32_module.c
; 44 : FreeLibrary((HMODULE)module);
00195 ff 15 00 00 00
00 call QWORD PTR __imp_FreeLibrary
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; 189 : _glfw.osmesa.handle = NULL;
0019b 48 c7 05 e0 1a
00 00 00 00 00
00 mov QWORD PTR _glfw+6880, 0
$LN28@glfwInitOS:
; 175 : "OSMesa: Failed to load required entry points");
; 176 :
; 177 : _glfwTerminateOSMesa();
; 178 : return GLFW_FALSE;
; 179 : }
; 180 :
; 181 : return GLFW_TRUE;
; 182 : }
001a6 33 c0 xor eax, eax
001a8 48 83 c4 48 add rsp, 72 ; 00000048H
001ac c3 ret 0
_glfwInitOSMesa ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; COMDAT _glfwCreateContextOSMesa
_TEXT SEGMENT
attribs$1 = 48
__$ArrayPad$ = 208
window$ = 240
ctxconfig$ = 248
fbconfig$ = 256
_glfwCreateContextOSMesa PROC ; COMDAT
; 203 : {
$LN29:
00000 40 53 push rbx
00002 48 81 ec e0 00
00 00 sub rsp, 224 ; 000000e0H
00009 48 8b 05 00 00
00 00 mov rax, QWORD PTR __security_cookie
00010 48 33 c4 xor rax, rsp
00013 48 89 84 24 d0
00 00 00 mov QWORD PTR __$ArrayPad$[rsp], rax
0001b 4d 8b d0 mov r10, r8
; 204 : OSMesaContext share = NULL;
0001e 45 33 db xor r11d, r11d
00021 4c 8b c2 mov r8, rdx
00024 48 8b d9 mov rbx, rcx
; 205 : const int accumBits = fbconfig->accumRedBits +
00027 45 8b 4a 24 mov r9d, DWORD PTR [r10+36]
0002b 45 03 4a 20 add r9d, DWORD PTR [r10+32]
0002f 45 03 4a 1c add r9d, DWORD PTR [r10+28]
00033 45 03 4a 18 add r9d, DWORD PTR [r10+24]
; 206 : fbconfig->accumGreenBits +
; 207 : fbconfig->accumBlueBits +
; 208 : fbconfig->accumAlphaBits;
; 209 :
; 210 : if (ctxconfig->client == GLFW_OPENGL_ES_API)
00037 81 3a 02 00 03
00 cmp DWORD PTR [rdx], 196610 ; 00030002H
0003d 75 18 jne SHORT $LN2@glfwCreate
; 211 : {
; 212 : _glfwInputError(GLFW_API_UNAVAILABLE,
0003f 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:??_C@_0CN@JHECHMPF@OSMesa?3?5OpenGL?5ES?5is?5not?5availa@
00046 b9 06 00 01 00 mov ecx, 65542 ; 00010006H
0004b e8 00 00 00 00 call _glfwInputError
; 213 : "OSMesa: OpenGL ES is not available on OSMesa");
; 214 : return GLFW_FALSE;
00050 33 c0 xor eax, eax
00052 e9 c4 01 00 00 jmp $LN1@glfwCreate
$LN2@glfwCreate:
; 215 : }
; 216 :
; 217 : if (ctxconfig->share)
00057 48 8b 42 28 mov rax, QWORD PTR [rdx+40]
0005b 48 89 bc 24 08
01 00 00 mov QWORD PTR [rsp+264], rdi
00063 48 85 c0 test rax, rax
00066 74 07 je SHORT $LN3@glfwCreate
; 218 : share = ctxconfig->share->context.osmesa.handle;
00068 4c 8b 98 a0 02
00 00 mov r11, QWORD PTR [rax+672]
$LN3@glfwCreate:
; 219 :
; 220 : if (OSMesaCreateContextAttribs)
0006f 48 8b 3d f0 1a
00 00 mov rdi, QWORD PTR _glfw+6896
00076 48 85 ff test rdi, rdi
00079 0f 84 e4 00 00
00 je $LN4@glfwCreate
; 221 : {
; 222 : int index = 0, attribs[40];
; 223 :
; 224 : SET_ATTRIB(OSMESA_FORMAT, OSMESA_RGBA);
; 225 : SET_ATTRIB(OSMESA_DEPTH_BITS, fbconfig->depthBits);
0007f 41 8b 42 10 mov eax, DWORD PTR [r10+16]
; 226 : SET_ATTRIB(OSMESA_STENCIL_BITS, fbconfig->stencilBits);
; 227 : SET_ATTRIB(OSMESA_ACCUM_BITS, accumBits);
00083 ba 08 00 00 00 mov edx, 8
00088 89 44 24 3c mov DWORD PTR attribs$1[rsp+12], eax
0008c 41 8b 42 14 mov eax, DWORD PTR [r10+20]
00090 89 44 24 44 mov DWORD PTR attribs$1[rsp+20], eax
; 228 :
; 229 : if (ctxconfig->profile == GLFW_OPENGL_CORE_PROFILE)
00094 41 8b 40 1c mov eax, DWORD PTR [r8+28]
00098 c7 44 24 30 22
00 00 00 mov DWORD PTR attribs$1[rsp], 34 ; 00000022H
000a0 c7 44 24 34 08
19 00 00 mov DWORD PTR attribs$1[rsp+4], 6408 ; 00001908H
000a8 c7 44 24 38 30
00 00 00 mov DWORD PTR attribs$1[rsp+8], 48 ; 00000030H
000b0 c7 44 24 40 31
00 00 00 mov DWORD PTR attribs$1[rsp+16], 49 ; 00000031H
000b8 c7 44 24 48 32
00 00 00 mov DWORD PTR attribs$1[rsp+24], 50 ; 00000032H
000c0 44 89 4c 24 4c mov DWORD PTR attribs$1[rsp+28], r9d
000c5 3d 01 20 03 00 cmp eax, 204801 ; 00032001H
000ca 75 0a jne SHORT $LN6@glfwCreate
; 230 : {
; 231 : SET_ATTRIB(OSMESA_PROFILE, OSMESA_CORE_PROFILE);
000cc c7 44 24 54 34
00 00 00 mov DWORD PTR attribs$1[rsp+36], 52 ; 00000034H
; 232 : }
000d4 eb 0f jmp SHORT $LN27@glfwCreate
$LN6@glfwCreate:
; 233 : else if (ctxconfig->profile == GLFW_OPENGL_COMPAT_PROFILE)
000d6 3d 02 20 03 00 cmp eax, 204802 ; 00032002H
000db 75 15 jne SHORT $LN8@glfwCreate
; 234 : {
; 235 : SET_ATTRIB(OSMESA_PROFILE, OSMESA_COMPAT_PROFILE);
000dd c7 44 24 54 35
00 00 00 mov DWORD PTR attribs$1[rsp+36], 53 ; 00000035H
$LN27@glfwCreate:
; 236 : }
; 237 :
; 238 : if (ctxconfig->major != 1 || ctxconfig->minor != 0)
000e5 ba 0a 00 00 00 mov edx, 10
000ea c7 44 24 50 33
00 00 00 mov DWORD PTR attribs$1[rsp+32], 51 ; 00000033H
$LN8@glfwCreate:
000f2 45 8b 48 08 mov r9d, DWORD PTR [r8+8]
000f6 41 83 f9 01 cmp r9d, 1
000fa 75 07 jne SHORT $LN16@glfwCreate
000fc 41 83 78 0c 00 cmp DWORD PTR [r8+12], 0
00101 74 2a je SHORT $LN9@glfwCreate
$LN16@glfwCreate:
; 239 : {
; 240 : SET_ATTRIB(OSMESA_CONTEXT_MAJOR_VERSION, ctxconfig->major);
00103 8d 4a 01 lea ecx, DWORD PTR [rdx+1]
00106 8b c2 mov eax, edx
00108 c7 44 84 30 36
00 00 00 mov DWORD PTR attribs$1[rsp+rax*4], 54 ; 00000036H
; 241 : SET_ATTRIB(OSMESA_CONTEXT_MINOR_VERSION, ctxconfig->minor);
00110 41 8b 40 0c mov eax, DWORD PTR [r8+12]
00114 44 89 4c 8c 30 mov DWORD PTR attribs$1[rsp+rcx*4], r9d
00119 8d 49 01 lea ecx, DWORD PTR [rcx+1]
0011c 8d 51 01 lea edx, DWORD PTR [rcx+1]
0011f c7 44 8c 30 37
00 00 00 mov DWORD PTR attribs$1[rsp+rcx*4], 55 ; 00000037H
00127 89 44 94 30 mov DWORD PTR attribs$1[rsp+rdx*4], eax
0012b ff c2 inc edx
$LN9@glfwCreate:
; 242 : }
; 243 :
; 244 : if (ctxconfig->forward)
0012d 41 83 78 10 00 cmp DWORD PTR [r8+16], 0
00132 74 18 je SHORT $LN11@glfwCreate
; 245 : {
; 246 : _glfwInputError(GLFW_VERSION_UNAVAILABLE,
00134 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:??_C@_0DC@KKLJAJOK@OSMesa?3?5Forward?9compatible?5cont@
0013b b9 07 00 01 00 mov ecx, 65543 ; 00010007H
00140 e8 00 00 00 00 call _glfwInputError
; 247 : "OSMesa: Forward-compatible contexts not supported");
; 248 : return GLFW_FALSE;
00145 33 c0 xor eax, eax
00147 e9 c7 00 00 00 jmp $LN26@glfwCreate
$LN11@glfwCreate:
; 249 : }
; 250 :
; 251 : SET_ATTRIB(0, 0);
0014c 8b c2 mov eax, edx
; 252 :
; 253 : window->context.osmesa.handle =
0014e 48 8d 4c 24 30 lea rcx, QWORD PTR attribs$1[rsp]
00153 49 8b d3 mov rdx, r11
00156 48 c7 44 84 30
00 00 00 00 mov QWORD PTR attribs$1[rsp+rax*4], 0
0015f ff d7 call rdi
; 254 : OSMesaCreateContextAttribs(attribs, share);
; 255 : }
00161 eb 36 jmp SHORT $LN5@glfwCreate
$LN4@glfwCreate:
; 256 : else
; 257 : {
; 258 : if (ctxconfig->profile)
00163 83 7a 1c 00 cmp DWORD PTR [rdx+28], 0
00167 74 18 je SHORT $LN12@glfwCreate
; 259 : {
; 260 : _glfwInputError(GLFW_VERSION_UNAVAILABLE,
00169 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:??_C@_0CE@OJEBIEPE@OSMesa?3?5OpenGL?5profiles?5unavail@
00170 b9 07 00 01 00 mov ecx, 65543 ; 00010007H
00175 e8 00 00 00 00 call _glfwInputError
; 261 : "OSMesa: OpenGL profiles unavailable");
; 262 : return GLFW_FALSE;
0017a 33 c0 xor eax, eax
0017c e9 92 00 00 00 jmp $LN26@glfwCreate
$LN12@glfwCreate:
; 263 : }
; 264 :
; 265 : window->context.osmesa.handle =
00181 45 8b 42 14 mov r8d, DWORD PTR [r10+20]
00185 b9 08 19 00 00 mov ecx, 6408 ; 00001908H
0018a 41 8b 52 10 mov edx, DWORD PTR [r10+16]
0018e 4c 89 5c 24 20 mov QWORD PTR [rsp+32], r11
00193 ff 15 e8 1a 00
00 call QWORD PTR _glfw+6888
$LN5@glfwCreate:
; 266 : OSMesaCreateContextExt(OSMESA_RGBA,
; 267 : fbconfig->depthBits,
; 268 : fbconfig->stencilBits,
; 269 : accumBits,
; 270 : share);
; 271 : }
; 272 :
; 273 : if (window->context.osmesa.handle == NULL)
00199 48 89 83 a0 02
00 00 mov QWORD PTR [rbx+672], rax
001a0 48 85 c0 test rax, rax
001a3 75 15 jne SHORT $LN13@glfwCreate
; 274 : {
; 275 : _glfwInputError(GLFW_VERSION_UNAVAILABLE,
001a5 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:??_C@_0CB@LDOHHBIH@OSMesa?3?5Failed?5to?5create?5contex@
001ac b9 07 00 01 00 mov ecx, 65543 ; 00010007H
001b1 e8 00 00 00 00 call _glfwInputError
; 276 : "OSMesa: Failed to create context");
; 277 : return GLFW_FALSE;
001b6 33 c0 xor eax, eax
001b8 eb 59 jmp SHORT $LN26@glfwCreate
$LN13@glfwCreate:
; 278 : }
; 279 :
; 280 : window->context.makeCurrent = makeContextCurrentOSMesa;
001ba 48 8d 05 00 00
00 00 lea rax, OFFSET FLAT:makeContextCurrentOSMesa
001c1 48 89 83 50 02
00 00 mov QWORD PTR [rbx+592], rax
; 281 : window->context.swapBuffers = swapBuffersOSMesa;
001c8 48 8d 05 00 00
00 00 lea rax, OFFSET FLAT:swapBuffersOSMesa
001cf 48 89 83 58 02
00 00 mov QWORD PTR [rbx+600], rax
; 282 : window->context.swapInterval = swapIntervalOSMesa;
001d6 48 8d 05 00 00
00 00 lea rax, OFFSET FLAT:swapIntervalOSMesa
001dd 48 89 83 60 02
00 00 mov QWORD PTR [rbx+608], rax
; 283 : window->context.extensionSupported = extensionSupportedOSMesa;
001e4 48 8d 05 00 00
00 00 lea rax, OFFSET FLAT:extensionSupportedOSMesa
001eb 48 89 83 68 02
00 00 mov QWORD PTR [rbx+616], rax
; 284 : window->context.getProcAddress = getProcAddressOSMesa;
001f2 48 8d 05 00 00
00 00 lea rax, OFFSET FLAT:getProcAddressOSMesa
001f9 48 89 83 70 02
00 00 mov QWORD PTR [rbx+624], rax
; 285 : window->context.destroy = destroyContextOSMesa;
00200 48 8d 05 00 00
00 00 lea rax, OFFSET FLAT:destroyContextOSMesa
00207 48 89 83 78 02
00 00 mov QWORD PTR [rbx+632], rax
; 286 :
; 287 : return GLFW_TRUE;
0020e b8 01 00 00 00 mov eax, 1
$LN26@glfwCreate:
00213 48 8b bc 24 08
01 00 00 mov rdi, QWORD PTR [rsp+264]
$LN1@glfwCreate:
; 288 : }
0021b 48 8b 8c 24 d0
00 00 00 mov rcx, QWORD PTR __$ArrayPad$[rsp]
00223 48 33 cc xor rcx, rsp
00226 e8 00 00 00 00 call __security_check_cookie
0022b 48 81 c4 e0 00
00 00 add rsp, 224 ; 000000e0H
00232 5b pop rbx
00233 c3 ret 0
_glfwCreateContextOSMesa ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\init.c
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\init.c
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\win32_thread.c
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; COMDAT makeContextCurrentOSMesa
_TEXT SEGMENT
height$1 = 48
width$2 = 52
__$ArrayPad$ = 56
window$ = 80
makeContextCurrentOSMesa PROC ; COMDAT
; 38 : {
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 38 mov QWORD PTR __$ArrayPad$[rsp], rax
00015 48 8b d9 mov rbx, rcx
; 39 : if (window)
00018 48 85 c9 test rcx, rcx
0001b 0f 84 2a 01 00
00 je $LN5@makeContex
; 40 : {
; 41 : int width, height;
; 42 : _glfw.platform.getFramebufferSize(window, &width, &height);
00021 4c 8d 44 24 30 lea r8, QWORD PTR height$1[rsp]
00026 48 8d 54 24 34 lea rdx, QWORD PTR width$2[rsp]
0002b ff 15 60 01 00
00 call QWORD PTR _glfw+352
; 43 :
; 44 : // Check to see if we need to allocate a new buffer
; 45 : if ((window->context.osmesa.buffer == NULL) ||
; 46 : (width != window->context.osmesa.width) ||
00031 48 8b 8b b0 02
00 00 mov rcx, QWORD PTR [rbx+688]
00038 48 85 c9 test rcx, rcx
0003b 74 2e je SHORT $LN8@makeContex
0003d 8b 83 a8 02 00
00 mov eax, DWORD PTR [rbx+680]
00043 39 44 24 34 cmp DWORD PTR width$2[rsp], eax
00047 75 10 jne SHORT $LN4@makeContex
00049 8b 83 ac 02 00
00 mov eax, DWORD PTR [rbx+684]
0004f 39 44 24 30 cmp DWORD PTR height$1[rsp], eax
00053 0f 84 a7 00 00
00 je $LN3@makeContex
$LN4@makeContex:
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\init.c
; 320 : if (block)
00059 48 85 c9 test rcx, rcx
0005c 74 0d je SHORT $LN8@makeContex
; 321 : _glfw.allocator.deallocate(block, _glfw.allocator.user);
0005e 48 8b 15 20 00
00 00 mov rdx, QWORD PTR _glfw+32
00065 ff 15 18 00 00
00 call QWORD PTR _glfw+24
$LN8@makeContex:
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; 52 : window->context.osmesa.buffer = _glfw_calloc(4, (size_t) width * height);
0006b 48 63 4c 24 34 movsxd rcx, DWORD PTR width$2[rsp]
00070 48 63 44 24 30 movsxd rax, DWORD PTR height$1[rsp]
00075 48 0f af c8 imul rcx, rax
00079 48 89 7c 24 58 mov QWORD PTR [rsp+88], rdi
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\init.c
; 273 : if (count && size)
0007e 48 85 c9 test rcx, rcx
00081 74 5b je SHORT $LN11@makeContex
; 274 : {
; 275 : void* block;
; 276 :
; 277 : if (count > SIZE_MAX / size)
00083 33 d2 xor edx, edx
00085 48 c7 c0 ff ff
ff ff mov rax, -1
0008c 48 f7 f1 div rcx
0008f 48 83 f8 04 cmp rax, 4
00093 73 0e jae SHORT $LN13@makeContex
; 278 : {
; 279 : _glfwInputError(GLFW_INVALID_VALUE, "Allocation size overflow");
00095 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:??_C@_0BJ@IHHANIOG@Allocation?5size?5overflow@
0009c b9 04 00 01 00 mov ecx, 65540 ; 00010004H
; 280 : return NULL;
000a1 eb 36 jmp SHORT $LN28@makeContex
$LN13@makeContex:
; 281 : }
; 282 :
; 283 : block = _glfw.allocator.allocate(count * size, _glfw.allocator.user);
000a3 48 8b 15 20 00
00 00 mov rdx, QWORD PTR _glfw+32
000aa 48 8d 3c 8d 00
00 00 00 lea rdi, QWORD PTR [rcx*4]
000b2 48 8b cf mov rcx, rdi
000b5 ff 15 08 00 00
00 call QWORD PTR _glfw+8
; 284 : if (block)
000bb 48 85 c0 test rax, rax
000be 74 12 je SHORT $LN14@makeContex
; 285 : return memset(block, 0, count * size);
000c0 4c 8b c7 mov r8, rdi
000c3 33 d2 xor edx, edx
000c5 48 8b c8 mov rcx, rax
000c8 e8 00 00 00 00 call memset
000cd 48 8b c8 mov rcx, rax
000d0 eb 0e jmp SHORT $LN12@makeContex
$LN14@makeContex:
; 286 : else
; 287 : {
; 288 : _glfwInputError(GLFW_OUT_OF_MEMORY, NULL);
000d2 33 d2 xor edx, edx
000d4 b9 05 00 01 00 mov ecx, 65541 ; 00010005H
$LN28@makeContex:
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; 52 : window->context.osmesa.buffer = _glfw_calloc(4, (size_t) width * height);
000d9 e8 00 00 00 00 call _glfwInputError
$LN11@makeContex:
000de 33 c9 xor ecx, ecx
$LN12@makeContex:
; 53 : window->context.osmesa.width = width;
000e0 8b 44 24 34 mov eax, DWORD PTR width$2[rsp]
; 54 : window->context.osmesa.height = height;
000e4 48 8b 7c 24 58 mov rdi, QWORD PTR [rsp+88]
000e9 89 83 a8 02 00
00 mov DWORD PTR [rbx+680], eax
000ef 8b 44 24 30 mov eax, DWORD PTR height$1[rsp]
000f3 89 83 ac 02 00
00 mov DWORD PTR [rbx+684], eax
000f9 48 89 8b b0 02
00 00 mov QWORD PTR [rbx+688], rcx
$LN3@makeContex:
; 55 : }
; 56 :
; 57 : if (!OSMesaMakeCurrent(window->context.osmesa.handle,
00100 8b 44 24 30 mov eax, DWORD PTR height$1[rsp]
00104 48 8b d1 mov rdx, rcx
00107 48 8b 8b a0 02
00 00 mov rcx, QWORD PTR [rbx+672]
0010e 41 b8 01 14 00
00 mov r8d, 5121 ; 00001401H
00114 44 8b 4c 24 34 mov r9d, DWORD PTR width$2[rsp]
00119 89 44 24 20 mov DWORD PTR [rsp+32], eax
0011d ff 15 00 1b 00
00 call QWORD PTR _glfw+6912
00123 85 c0 test eax, eax
00125 75 24 jne SHORT $LN5@makeContex
; 58 : window->context.osmesa.buffer,
; 59 : GL_UNSIGNED_BYTE,
; 60 : width, height))
; 61 : {
; 62 : _glfwInputError(GLFW_PLATFORM_ERROR,
00127 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:??_C@_0CH@CKFBCGDL@OSMesa?3?5Failed?5to?5make?5context?5@
0012e b9 08 00 01 00 mov ecx, 65544 ; 00010008H
00133 e8 00 00 00 00 call _glfwInputError
; 69 : }
00138 48 8b 4c 24 38 mov rcx, QWORD PTR __$ArrayPad$[rsp]
0013d 48 33 cc xor rcx, rsp
00140 e8 00 00 00 00 call __security_check_cookie
00145 48 83 c4 40 add rsp, 64 ; 00000040H
00149 5b pop rbx
0014a c3 ret 0
$LN5@makeContex:
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\win32_thread.c
; 72 : TlsSetValue(tls->win32.index, value);
0014b 8b 0d a8 19 00
00 mov ecx, DWORD PTR _glfw+6568
00151 48 8b d3 mov rdx, rbx
00154 ff 15 00 00 00
00 call QWORD PTR __imp_TlsSetValue
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; 69 : }
0015a 48 8b 4c 24 38 mov rcx, QWORD PTR __$ArrayPad$[rsp]
0015f 48 33 cc xor rcx, rsp
00162 e8 00 00 00 00 call __security_check_cookie
00167 48 83 c4 40 add rsp, 64 ; 00000040H
0016b 5b pop rbx
0016c c3 ret 0
makeContextCurrentOSMesa ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; COMDAT getProcAddressOSMesa
_TEXT SEGMENT
procname$ = 8
getProcAddressOSMesa PROC ; COMDAT
; 73 : return (GLFWglproc) OSMesaGetProcAddress(procname);
00000 48 ff 25 18 1b
00 00 rex_jmp QWORD PTR _glfw+6936
getProcAddressOSMesa ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\init.c
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; COMDAT destroyContextOSMesa
_TEXT SEGMENT
window$ = 48
destroyContextOSMesa PROC ; COMDAT
; 77 : {
00000 40 53 push rbx
00002 48 83 ec 20 sub rsp, 32 ; 00000020H
00006 48 8b d9 mov rbx, rcx
; 78 : if (window->context.osmesa.handle)
00009 48 8b 89 a0 02
00 00 mov rcx, QWORD PTR [rcx+672]
00010 48 85 c9 test rcx, rcx
00013 74 11 je SHORT $LN2@destroyCon
; 79 : {
; 80 : OSMesaDestroyContext(window->context.osmesa.handle);
00015 ff 15 f8 1a 00
00 call QWORD PTR _glfw+6904
; 81 : window->context.osmesa.handle = NULL;
0001b 48 c7 83 a0 02
00 00 00 00 00
00 mov QWORD PTR [rbx+672], 0
$LN2@destroyCon:
; 82 : }
; 83 :
; 84 : if (window->context.osmesa.buffer)
00026 48 8b 8b b0 02
00 00 mov rcx, QWORD PTR [rbx+688]
0002d 48 85 c9 test rcx, rcx
00030 74 18 je SHORT $LN3@destroyCon
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\init.c
; 321 : _glfw.allocator.deallocate(block, _glfw.allocator.user);
00032 48 8b 15 20 00
00 00 mov rdx, QWORD PTR _glfw+32
00039 ff 15 18 00 00
00 call QWORD PTR _glfw+24
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; 87 : window->context.osmesa.width = 0;
0003f 48 c7 83 a8 02
00 00 00 00 00
00 mov QWORD PTR [rbx+680], 0
$LN3@destroyCon:
; 88 : window->context.osmesa.height = 0;
; 89 : }
; 90 : }
0004a 48 83 c4 20 add rsp, 32 ; 00000020H
0004e 5b pop rbx
0004f c3 ret 0
destroyContextOSMesa ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; COMDAT swapBuffersOSMesa
_TEXT SEGMENT
window$ = 8
swapBuffersOSMesa PROC ; COMDAT
; 94 : // No double buffering on OSMesa
; 95 : }
00000 c2 00 00 ret 0
swapBuffersOSMesa ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; COMDAT swapIntervalOSMesa
_TEXT SEGMENT
interval$ = 8
swapIntervalOSMesa PROC ; COMDAT
; 99 : // No swap interval on OSMesa
; 100 : }
00000 c2 00 00 ret 0
swapIntervalOSMesa ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; COMDAT extensionSupportedOSMesa
_TEXT SEGMENT
extension$ = 8
extensionSupportedOSMesa PROC ; COMDAT
; 104 : // OSMesa does not have extensions
; 105 : return GLFW_FALSE;
00000 33 c0 xor eax, eax
; 106 : }
00002 c3 ret 0
extensionSupportedOSMesa ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; COMDAT glfwGetOSMesaColorBuffer
_TEXT SEGMENT
mesaBuffer$ = 48
mesaWidth$ = 56
mesaHeight$ = 60
mesaFormat$ = 64
__$ArrayPad$ = 72
handle$ = 128
width$ = 136
height$ = 144
format$ = 152
buffer$ = 160
glfwGetOSMesaColorBuffer PROC ; COMDAT
; 299 : {
$LN18:
00000 40 53 push rbx
00002 56 push rsi
00003 57 push rdi
00004 41 56 push r14
00006 48 83 ec 58 sub rsp, 88 ; 00000058H
0000a 48 8b 05 00 00
00 00 mov rax, QWORD PTR __security_cookie
00011 48 33 c4 xor rax, rsp
00014 48 89 44 24 48 mov QWORD PTR __$ArrayPad$[rsp], rax
; 300 : void* mesaBuffer;
; 301 : GLint mesaWidth, mesaHeight, mesaFormat;
; 302 : _GLFWwindow* window = (_GLFWwindow*) handle;
; 303 : assert(window != NULL);
; 304 :
; 305 : _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE);
00019 83 3d 00 00 00
00 00 cmp DWORD PTR _glfw, 0
00020 49 8b f9 mov rdi, r9
00023 48 8b 9c 24 a0
00 00 00 mov rbx, QWORD PTR buffer$[rsp]
0002b 49 8b f0 mov rsi, r8
0002e 4c 8b f2 mov r14, rdx
00031 75 13 jne SHORT $LN2@glfwGetOSM
00033 33 d2 xor edx, edx
00035 b9 01 00 01 00 mov ecx, 65537 ; 00010001H
0003a e8 00 00 00 00 call _glfwInputError
0003f 33 c0 xor eax, eax
00041 e9 8f 00 00 00 jmp $LN1@glfwGetOSM
$LN2@glfwGetOSM:
; 306 :
; 307 : if (window->context.source != GLFW_OSMESA_CONTEXT_API)
00046 81 b9 0c 02 00
00 03 60 03 00 cmp DWORD PTR [rcx+524], 221187 ; 00036003H
00050 74 10 je SHORT $LN3@glfwGetOSM
; 308 : {
; 309 : _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL);
00052 33 d2 xor edx, edx
00054 b9 0a 00 01 00 mov ecx, 65546 ; 0001000aH
00059 e8 00 00 00 00 call _glfwInputError
; 310 : return GLFW_FALSE;
0005e 33 c0 xor eax, eax
00060 eb 73 jmp SHORT $LN1@glfwGetOSM
$LN3@glfwGetOSM:
; 311 : }
; 312 :
; 313 : if (!OSMesaGetColorBuffer(window->context.osmesa.handle,
00062 48 8b 89 a0 02
00 00 mov rcx, QWORD PTR [rcx+672]
00069 48 8d 44 24 30 lea rax, QWORD PTR mesaBuffer$[rsp]
0006e 4c 8d 4c 24 40 lea r9, QWORD PTR mesaFormat$[rsp]
00073 48 89 44 24 20 mov QWORD PTR [rsp+32], rax
00078 4c 8d 44 24 3c lea r8, QWORD PTR mesaHeight$[rsp]
0007d 48 8d 54 24 38 lea rdx, QWORD PTR mesaWidth$[rsp]
00082 ff 15 08 1b 00
00 call QWORD PTR _glfw+6920
00088 85 c0 test eax, eax
0008a 75 15 jne SHORT $LN4@glfwGetOSM
; 314 : &mesaWidth, &mesaHeight,
; 315 : &mesaFormat, &mesaBuffer))
; 316 : {
; 317 : _glfwInputError(GLFW_PLATFORM_ERROR,
0008c 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:??_C@_0CI@NAJLKNKH@OSMesa?3?5Failed?5to?5retrieve?5colo@
00093 b9 08 00 01 00 mov ecx, 65544 ; 00010008H
00098 e8 00 00 00 00 call _glfwInputError
; 318 : "OSMesa: Failed to retrieve color buffer");
; 319 : return GLFW_FALSE;
0009d 33 c0 xor eax, eax
0009f eb 34 jmp SHORT $LN1@glfwGetOSM
$LN4@glfwGetOSM:
; 320 : }
; 321 :
; 322 : if (width)
000a1 4d 85 f6 test r14, r14
000a4 74 07 je SHORT $LN5@glfwGetOSM
; 323 : *width = mesaWidth;
000a6 8b 44 24 38 mov eax, DWORD PTR mesaWidth$[rsp]
000aa 41 89 06 mov DWORD PTR [r14], eax
$LN5@glfwGetOSM:
; 324 : if (height)
000ad 48 85 f6 test rsi, rsi
000b0 74 06 je SHORT $LN6@glfwGetOSM
; 325 : *height = mesaHeight;
000b2 8b 44 24 3c mov eax, DWORD PTR mesaHeight$[rsp]
000b6 89 06 mov DWORD PTR [rsi], eax
$LN6@glfwGetOSM:
; 326 : if (format)
000b8 48 85 ff test rdi, rdi
000bb 74 06 je SHORT $LN7@glfwGetOSM
; 327 : *format = mesaFormat;
000bd 8b 44 24 40 mov eax, DWORD PTR mesaFormat$[rsp]
000c1 89 07 mov DWORD PTR [rdi], eax
$LN7@glfwGetOSM:
; 328 : if (buffer)
000c3 48 85 db test rbx, rbx
000c6 74 08 je SHORT $LN8@glfwGetOSM
; 329 : *buffer = mesaBuffer;
000c8 48 8b 44 24 30 mov rax, QWORD PTR mesaBuffer$[rsp]
000cd 48 89 03 mov QWORD PTR [rbx], rax
$LN8@glfwGetOSM:
; 330 :
; 331 : return GLFW_TRUE;
000d0 b8 01 00 00 00 mov eax, 1
$LN1@glfwGetOSM:
; 332 : }
000d5 48 8b 4c 24 48 mov rcx, QWORD PTR __$ArrayPad$[rsp]
000da 48 33 cc xor rcx, rsp
000dd e8 00 00 00 00 call __security_check_cookie
000e2 48 83 c4 58 add rsp, 88 ; 00000058H
000e6 41 5e pop r14
000e8 5f pop rdi
000e9 5e pop rsi
000ea 5b pop rbx
000eb c3 ret 0
glfwGetOSMesaColorBuffer ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; COMDAT glfwGetOSMesaDepthBuffer
_TEXT SEGMENT
mesaBuffer$ = 48
mesaWidth$ = 56
mesaHeight$ = 60
mesaBytes$ = 64
__$ArrayPad$ = 72
handle$ = 128
width$ = 136
height$ = 144
bytesPerValue$ = 152
buffer$ = 160
glfwGetOSMesaDepthBuffer PROC ; COMDAT
; 338 : {
$LN18:
00000 40 53 push rbx
00002 56 push rsi
00003 57 push rdi
00004 41 56 push r14
00006 48 83 ec 58 sub rsp, 88 ; 00000058H
0000a 48 8b 05 00 00
00 00 mov rax, QWORD PTR __security_cookie
00011 48 33 c4 xor rax, rsp
00014 48 89 44 24 48 mov QWORD PTR __$ArrayPad$[rsp], rax
; 339 : void* mesaBuffer;
; 340 : GLint mesaWidth, mesaHeight, mesaBytes;
; 341 : _GLFWwindow* window = (_GLFWwindow*) handle;
; 342 : assert(window != NULL);
; 343 :
; 344 : _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE);
00019 83 3d 00 00 00
00 00 cmp DWORD PTR _glfw, 0
00020 49 8b f9 mov rdi, r9
00023 48 8b 9c 24 a0
00 00 00 mov rbx, QWORD PTR buffer$[rsp]
0002b 49 8b f0 mov rsi, r8
0002e 4c 8b f2 mov r14, rdx
00031 75 13 jne SHORT $LN2@glfwGetOSM
00033 33 d2 xor edx, edx
00035 b9 01 00 01 00 mov ecx, 65537 ; 00010001H
0003a e8 00 00 00 00 call _glfwInputError
0003f 33 c0 xor eax, eax
00041 e9 8f 00 00 00 jmp $LN1@glfwGetOSM
$LN2@glfwGetOSM:
; 345 :
; 346 : if (window->context.source != GLFW_OSMESA_CONTEXT_API)
00046 81 b9 0c 02 00
00 03 60 03 00 cmp DWORD PTR [rcx+524], 221187 ; 00036003H
00050 74 10 je SHORT $LN3@glfwGetOSM
; 347 : {
; 348 : _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL);
00052 33 d2 xor edx, edx
00054 b9 0a 00 01 00 mov ecx, 65546 ; 0001000aH
00059 e8 00 00 00 00 call _glfwInputError
; 349 : return GLFW_FALSE;
0005e 33 c0 xor eax, eax
00060 eb 73 jmp SHORT $LN1@glfwGetOSM
$LN3@glfwGetOSM:
; 350 : }
; 351 :
; 352 : if (!OSMesaGetDepthBuffer(window->context.osmesa.handle,
00062 48 8b 89 a0 02
00 00 mov rcx, QWORD PTR [rcx+672]
00069 48 8d 44 24 30 lea rax, QWORD PTR mesaBuffer$[rsp]
0006e 4c 8d 4c 24 40 lea r9, QWORD PTR mesaBytes$[rsp]
00073 48 89 44 24 20 mov QWORD PTR [rsp+32], rax
00078 4c 8d 44 24 3c lea r8, QWORD PTR mesaHeight$[rsp]
0007d 48 8d 54 24 38 lea rdx, QWORD PTR mesaWidth$[rsp]
00082 ff 15 10 1b 00
00 call QWORD PTR _glfw+6928
00088 85 c0 test eax, eax
0008a 75 15 jne SHORT $LN4@glfwGetOSM
; 353 : &mesaWidth, &mesaHeight,
; 354 : &mesaBytes, &mesaBuffer))
; 355 : {
; 356 : _glfwInputError(GLFW_PLATFORM_ERROR,
0008c 48 8d 15 00 00
00 00 lea rdx, OFFSET FLAT:??_C@_0CI@FJDKHGC@OSMesa?3?5Failed?5to?5retrieve?5dept@
00093 b9 08 00 01 00 mov ecx, 65544 ; 00010008H
00098 e8 00 00 00 00 call _glfwInputError
; 357 : "OSMesa: Failed to retrieve depth buffer");
; 358 : return GLFW_FALSE;
0009d 33 c0 xor eax, eax
0009f eb 34 jmp SHORT $LN1@glfwGetOSM
$LN4@glfwGetOSM:
; 359 : }
; 360 :
; 361 : if (width)
000a1 4d 85 f6 test r14, r14
000a4 74 07 je SHORT $LN5@glfwGetOSM
; 362 : *width = mesaWidth;
000a6 8b 44 24 38 mov eax, DWORD PTR mesaWidth$[rsp]
000aa 41 89 06 mov DWORD PTR [r14], eax
$LN5@glfwGetOSM:
; 363 : if (height)
000ad 48 85 f6 test rsi, rsi
000b0 74 06 je SHORT $LN6@glfwGetOSM
; 364 : *height = mesaHeight;
000b2 8b 44 24 3c mov eax, DWORD PTR mesaHeight$[rsp]
000b6 89 06 mov DWORD PTR [rsi], eax
$LN6@glfwGetOSM:
; 365 : if (bytesPerValue)
000b8 48 85 ff test rdi, rdi
000bb 74 06 je SHORT $LN7@glfwGetOSM
; 366 : *bytesPerValue = mesaBytes;
000bd 8b 44 24 40 mov eax, DWORD PTR mesaBytes$[rsp]
000c1 89 07 mov DWORD PTR [rdi], eax
$LN7@glfwGetOSM:
; 367 : if (buffer)
000c3 48 85 db test rbx, rbx
000c6 74 08 je SHORT $LN8@glfwGetOSM
; 368 : *buffer = mesaBuffer;
000c8 48 8b 44 24 30 mov rax, QWORD PTR mesaBuffer$[rsp]
000cd 48 89 03 mov QWORD PTR [rbx], rax
$LN8@glfwGetOSM:
; 369 :
; 370 : return GLFW_TRUE;
000d0 b8 01 00 00 00 mov eax, 1
$LN1@glfwGetOSM:
; 371 : }
000d5 48 8b 4c 24 48 mov rcx, QWORD PTR __$ArrayPad$[rsp]
000da 48 33 cc xor rcx, rsp
000dd e8 00 00 00 00 call __security_check_cookie
000e2 48 83 c4 58 add rsp, 88 ; 00000058H
000e6 41 5e pop r14
000e8 5f pop rdi
000e9 5e pop rsi
000ea 5b pop rbx
000eb c3 ret 0
glfwGetOSMesaDepthBuffer ENDP
_TEXT ENDS
; Function compile flags: /Ogtpy
; File D:\NitloadIndustry\Ñо¿ÏîÄ¿\1-Flagship\TH2020\ProjectFile\Ô´´úÂë\StgSharpGraphic\code\glfw\osmesa_context.c
; COMDAT glfwGetOSMesaContext
_TEXT SEGMENT
handle$ = 48
glfwGetOSMesaContext PROC ; COMDAT
; 374 : {
$LN6:
00000 48 83 ec 28 sub rsp, 40 ; 00000028H
; 375 : _GLFWwindow* window = (_GLFWwindow*) handle;
; 376 : _GLFW_REQUIRE_INIT_OR_RETURN(NULL);
00004 83 3d 00 00 00
00 00 cmp DWORD PTR _glfw, 0
0000b 75 13 jne SHORT $LN2@glfwGetOSM
0000d 33 d2 xor edx, edx
0000f b9 01 00 01 00 mov ecx, 65537 ; 00010001H
00014 e8 00 00 00 00 call _glfwInputError
00019 33 c0 xor eax, eax
; 385 : }
0001b 48 83 c4 28 add rsp, 40 ; 00000028H
0001f c3 ret 0
$LN2@glfwGetOSM:
; 377 :
; 378 : if (window->context.source != GLFW_OSMESA_CONTEXT_API)
00020 81 b9 0c 02 00
00 03 60 03 00 cmp DWORD PTR [rcx+524], 221187 ; 00036003H
0002a 74 13 je SHORT $LN3@glfwGetOSM
; 379 : {
; 380 : _glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL);
0002c 33 d2 xor edx, edx
0002e b9 0a 00 01 00 mov ecx, 65546 ; 0001000aH
00033 e8 00 00 00 00 call _glfwInputError
; 381 : return NULL;
00038 33 c0 xor eax, eax
; 385 : }
0003a 48 83 c4 28 add rsp, 40 ; 00000028H
0003e c3 ret 0
$LN3@glfwGetOSM:
; 382 : }
; 383 :
; 384 : return window->context.osmesa.handle;
0003f 48 8b 81 a0 02
00 00 mov rax, QWORD PTR [rcx+672]
; 385 : }
00046 48 83 c4 28 add rsp, 40 ; 00000028H
0004a c3 ret 0
glfwGetOSMesaContext ENDP
_TEXT ENDS
END