📄 glapi_x86-64.s
字号:
/* DO NOT EDIT - This file generated automatically by gl_x86-64_asm.py (from Mesa) script *//* * (C) Copyright IBM Corporation 2005 * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sub license, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice (including the next * paragraph) shall be included in all copies or substantial portions of the * Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL * IBM, * AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. *//* If we build with gcc's -fvisibility=hidden flag, we'll need to change * the symbol visibility mode to 'default'. */#include "../x86/assyntax.h"#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303# pragma GCC visibility push(default)# define HIDDEN(x) .hidden x#else# define HIDDEN(x)#endif# if defined(USE_MGL_NAMESPACE)# define GL_PREFIX(n) GLNAME(CONCAT(mgl,n))# define _glapi_Dispatch _mglapi_Dispatch# else# define GL_PREFIX(n) GLNAME(CONCAT(gl,n))# endif#if defined(PTHREADS) || defined(USE_XTHREADS) || defined(SOLARIS_THREADS) || defined(WIN32_THREADS) || defined(BEOS_THREADS)# define THREADS#endif .text#ifdef GLX_USE_TLS .globl _x86_64_get_get_dispatch; HIDDEN(_x86_64_get_get_dispatch)_x86_64_get_get_dispatch: lea _x86_64_get_dispatch(%rip), %rax ret .p2align 4,,15_x86_64_get_dispatch: movq _glapi_tls_Dispatch@GOTTPOFF(%rip), %rax movq %fs:(%rax), %rax ret .size _x86_64_get_dispatch, .-_x86_64_get_dispatch#elif defined(PTHREADS) .extern _glapi_Dispatch .extern _gl_DispatchTSD .extern pthread_getspecific .p2align 4,,15_x86_64_get_dispatch: movq _gl_DispatchTSD(%rip), %rdi jmp pthread_getspecific@PLT#elif defined(THREADS) .extern _glapi_get_dispatch#endif .p2align 4,,15 .globl GL_PREFIX(NewList) .type GL_PREFIX(NewList), @functionGL_PREFIX(NewList):#if defined(GLX_USE_TLS) call _x86_64_get_dispatch@PLT movq 0(%rax), %r11 jmp *%r11#elif defined(PTHREADS) pushq %rdi pushq %rsi pushq %rbp call _x86_64_get_dispatch@PLT popq %rbp popq %rsi popq %rdi movq (%rax), %r11 jmp *%r11#else movq _glapi_Dispatch(%rip), %rax testq %rax, %rax je 1f movq 0(%rax), %r11 jmp *%r111: pushq %rdi pushq %rsi pushq %rbp call _glapi_get_dispatch popq %rbp popq %rsi popq %rdi movq 0(%rax), %r11 jmp *%r11#endif /* defined(GLX_USE_TLS) */ .size GL_PREFIX(NewList), .-GL_PREFIX(NewList) .p2align 4,,15 .globl GL_PREFIX(EndList) .type GL_PREFIX(EndList), @functionGL_PREFIX(EndList):#if defined(GLX_USE_TLS) call _x86_64_get_dispatch@PLT movq 8(%rax), %r11 jmp *%r11#elif defined(PTHREADS) pushq %rbp call _x86_64_get_dispatch@PLT popq %rbp movq 8(%rax), %r11 jmp *%r11#else movq _glapi_Dispatch(%rip), %rax testq %rax, %rax je 1f movq 8(%rax), %r11 jmp *%r111: pushq %rbp call _glapi_get_dispatch popq %rbp movq 8(%rax), %r11 jmp *%r11#endif /* defined(GLX_USE_TLS) */ .size GL_PREFIX(EndList), .-GL_PREFIX(EndList) .p2align 4,,15 .globl GL_PREFIX(CallList) .type GL_PREFIX(CallList), @functionGL_PREFIX(CallList):#if defined(GLX_USE_TLS) call _x86_64_get_dispatch@PLT movq 16(%rax), %r11 jmp *%r11#elif defined(PTHREADS) pushq %rdi call _x86_64_get_dispatch@PLT popq %rdi movq 16(%rax), %r11 jmp *%r11#else movq _glapi_Dispatch(%rip), %rax testq %rax, %rax je 1f movq 16(%rax), %r11 jmp *%r111: pushq %rdi call _glapi_get_dispatch popq %rdi movq 16(%rax), %r11 jmp *%r11#endif /* defined(GLX_USE_TLS) */ .size GL_PREFIX(CallList), .-GL_PREFIX(CallList) .p2align 4,,15 .globl GL_PREFIX(CallLists) .type GL_PREFIX(CallLists), @functionGL_PREFIX(CallLists):#if defined(GLX_USE_TLS) call _x86_64_get_dispatch@PLT movq 24(%rax), %r11 jmp *%r11#elif defined(PTHREADS) pushq %rdi pushq %rsi pushq %rdx call _x86_64_get_dispatch@PLT popq %rdx popq %rsi popq %rdi movq 24(%rax), %r11 jmp *%r11#else movq _glapi_Dispatch(%rip), %rax testq %rax, %rax je 1f movq 24(%rax), %r11 jmp *%r111: pushq %rdi pushq %rsi pushq %rdx call _glapi_get_dispatch popq %rdx popq %rsi popq %rdi movq 24(%rax), %r11 jmp *%r11#endif /* defined(GLX_USE_TLS) */ .size GL_PREFIX(CallLists), .-GL_PREFIX(CallLists) .p2align 4,,15 .globl GL_PREFIX(DeleteLists) .type GL_PREFIX(DeleteLists), @functionGL_PREFIX(DeleteLists):#if defined(GLX_USE_TLS) call _x86_64_get_dispatch@PLT movq 32(%rax), %r11 jmp *%r11#elif defined(PTHREADS) pushq %rdi pushq %rsi pushq %rbp call _x86_64_get_dispatch@PLT popq %rbp popq %rsi popq %rdi movq 32(%rax), %r11 jmp *%r11#else movq _glapi_Dispatch(%rip), %rax testq %rax, %rax je 1f movq 32(%rax), %r11 jmp *%r111: pushq %rdi pushq %rsi pushq %rbp call _glapi_get_dispatch popq %rbp popq %rsi popq %rdi movq 32(%rax), %r11 jmp *%r11#endif /* defined(GLX_USE_TLS) */ .size GL_PREFIX(DeleteLists), .-GL_PREFIX(DeleteLists) .p2align 4,,15 .globl GL_PREFIX(GenLists) .type GL_PREFIX(GenLists), @functionGL_PREFIX(GenLists):#if defined(GLX_USE_TLS) call _x86_64_get_dispatch@PLT movq 40(%rax), %r11 jmp *%r11#elif defined(PTHREADS) pushq %rdi call _x86_64_get_dispatch@PLT popq %rdi movq 40(%rax), %r11 jmp *%r11#else movq _glapi_Dispatch(%rip), %rax testq %rax, %rax je 1f movq 40(%rax), %r11 jmp *%r111: pushq %rdi call _glapi_get_dispatch popq %rdi movq 40(%rax), %r11 jmp *%r11#endif /* defined(GLX_USE_TLS) */ .size GL_PREFIX(GenLists), .-GL_PREFIX(GenLists) .p2align 4,,15 .globl GL_PREFIX(ListBase) .type GL_PREFIX(ListBase), @functionGL_PREFIX(ListBase):#if defined(GLX_USE_TLS) call _x86_64_get_dispatch@PLT movq 48(%rax), %r11 jmp *%r11#elif defined(PTHREADS) pushq %rdi call _x86_64_get_dispatch@PLT popq %rdi movq 48(%rax), %r11 jmp *%r11#else movq _glapi_Dispatch(%rip), %rax testq %rax, %rax je 1f movq 48(%rax), %r11 jmp *%r111: pushq %rdi call _glapi_get_dispatch popq %rdi movq 48(%rax), %r11 jmp *%r11#endif /* defined(GLX_USE_TLS) */ .size GL_PREFIX(ListBase), .-GL_PREFIX(ListBase) .p2align 4,,15 .globl GL_PREFIX(Begin) .type GL_PREFIX(Begin), @functionGL_PREFIX(Begin):#if defined(GLX_USE_TLS) call _x86_64_get_dispatch@PLT movq 56(%rax), %r11 jmp *%r11#elif defined(PTHREADS) pushq %rdi call _x86_64_get_dispatch@PLT popq %rdi movq 56(%rax), %r11 jmp *%r11#else movq _glapi_Dispatch(%rip), %rax testq %rax, %rax je 1f movq 56(%rax), %r11 jmp *%r111: pushq %rdi call _glapi_get_dispatch popq %rdi movq 56(%rax), %r11 jmp *%r11#endif /* defined(GLX_USE_TLS) */ .size GL_PREFIX(Begin), .-GL_PREFIX(Begin) .p2align 4,,15 .globl GL_PREFIX(Bitmap) .type GL_PREFIX(Bitmap), @functionGL_PREFIX(Bitmap):#if defined(GLX_USE_TLS) call _x86_64_get_dispatch@PLT movq 64(%rax), %r11 jmp *%r11#elif defined(PTHREADS) subq $56, %rsp movq %rdi, (%rsp) movq %rsi, 8(%rsp) movq %xmm0, 16(%rsp) movq %xmm1, 24(%rsp) movq %xmm2, 32(%rsp) movq %xmm3, 40(%rsp) movq %rdx, 48(%rsp) call _x86_64_get_dispatch@PLT movq 48(%rsp), %rdx movq 40(%rsp), %xmm3 movq 32(%rsp), %xmm2 movq 24(%rsp), %xmm1 movq 16(%rsp), %xmm0 movq 8(%rsp), %rsi movq (%rsp), %rdi addq $56, %rsp movq 64(%rax), %r11 jmp *%r11#else movq _glapi_Dispatch(%rip), %rax testq %rax, %rax je 1f movq 64(%rax), %r11 jmp *%r111: subq $56, %rsp movq %rdi, (%rsp) movq %rsi, 8(%rsp) movq %xmm0, 16(%rsp) movq %xmm1, 24(%rsp) movq %xmm2, 32(%rsp) movq %xmm3, 40(%rsp) movq %rdx, 48(%rsp) call _glapi_get_dispatch movq 48(%rsp), %rdx movq 40(%rsp), %xmm3 movq 32(%rsp), %xmm2 movq 24(%rsp), %xmm1 movq 16(%rsp), %xmm0 movq 8(%rsp), %rsi movq (%rsp), %rdi addq $56, %rsp movq 64(%rax), %r11 jmp *%r11#endif /* defined(GLX_USE_TLS) */ .size GL_PREFIX(Bitmap), .-GL_PREFIX(Bitmap) .p2align 4,,15 .globl GL_PREFIX(Color3b) .type GL_PREFIX(Color3b), @functionGL_PREFIX(Color3b):#if defined(GLX_USE_TLS) call _x86_64_get_dispatch@PLT movq 72(%rax), %r11 jmp *%r11#elif defined(PTHREADS) pushq %rdi pushq %rsi pushq %rdx call _x86_64_get_dispatch@PLT popq %rdx popq %rsi popq %rdi movq 72(%rax), %r11 jmp *%r11#else movq _glapi_Dispatch(%rip), %rax testq %rax, %rax je 1f movq 72(%rax), %r11 jmp *%r111: pushq %rdi pushq %rsi pushq %rdx call _glapi_get_dispatch popq %rdx popq %rsi popq %rdi movq 72(%rax), %r11 jmp *%r11#endif /* defined(GLX_USE_TLS) */ .size GL_PREFIX(Color3b), .-GL_PREFIX(Color3b) .p2align 4,,15 .globl GL_PREFIX(Color3bv) .type GL_PREFIX(Color3bv), @functionGL_PREFIX(Color3bv):#if defined(GLX_USE_TLS) call _x86_64_get_dispatch@PLT movq 80(%rax), %r11 jmp *%r11#elif defined(PTHREADS) pushq %rdi call _x86_64_get_dispatch@PLT popq %rdi movq 80(%rax), %r11 jmp *%r11#else movq _glapi_Dispatch(%rip), %rax testq %rax, %rax je 1f movq 80(%rax), %r11 jmp *%r111: pushq %rdi call _glapi_get_dispatch popq %rdi movq 80(%rax), %r11 jmp *%r11#endif /* defined(GLX_USE_TLS) */ .size GL_PREFIX(Color3bv), .-GL_PREFIX(Color3bv) .p2align 4,,15 .globl GL_PREFIX(Color3d) .type GL_PREFIX(Color3d), @functionGL_PREFIX(Color3d):#if defined(GLX_USE_TLS) call _x86_64_get_dispatch@PLT movq 88(%rax), %r11 jmp *%r11#elif defined(PTHREADS) subq $24, %rsp movq %xmm0, (%rsp) movq %xmm1, 8(%rsp) movq %xmm2, 16(%rsp) call _x86_64_get_dispatch@PLT movq 16(%rsp), %xmm2 movq 8(%rsp), %xmm1 movq (%rsp), %xmm0 addq $24, %rsp movq 88(%rax), %r11 jmp *%r11#else movq _glapi_Dispatch(%rip), %rax testq %rax, %rax je 1f movq 88(%rax), %r11 jmp *%r111: subq $24, %rsp movq %xmm0, (%rsp) movq %xmm1, 8(%rsp) movq %xmm2, 16(%rsp) call _glapi_get_dispatch movq 16(%rsp), %xmm2 movq 8(%rsp), %xmm1 movq (%rsp), %xmm0 addq $24, %rsp movq 88(%rax), %r11 jmp *%r11#endif /* defined(GLX_USE_TLS) */ .size GL_PREFIX(Color3d), .-GL_PREFIX(Color3d) .p2align 4,,15 .globl GL_PREFIX(Color3dv) .type GL_PREFIX(Color3dv), @functionGL_PREFIX(Color3dv):#if defined(GLX_USE_TLS) call _x86_64_get_dispatch@PLT movq 96(%rax), %r11 jmp *%r11#elif defined(PTHREADS) pushq %rdi call _x86_64_get_dispatch@PLT popq %rdi movq 96(%rax), %r11 jmp *%r11#else movq _glapi_Dispatch(%rip), %rax testq %rax, %rax je 1f movq 96(%rax), %r11 jmp *%r111: pushq %rdi call _glapi_get_dispatch popq %rdi movq 96(%rax), %r11 jmp *%r11#endif /* defined(GLX_USE_TLS) */ .size GL_PREFIX(Color3dv), .-GL_PREFIX(Color3dv) .p2align 4,,15 .globl GL_PREFIX(Color3f) .type GL_PREFIX(Color3f), @functionGL_PREFIX(Color3f):#if defined(GLX_USE_TLS) call _x86_64_get_dispatch@PLT movq 104(%rax), %r11 jmp *%r11#elif defined(PTHREADS) subq $24, %rsp movq %xmm0, (%rsp) movq %xmm1, 8(%rsp) movq %xmm2, 16(%rsp) call _x86_64_get_dispatch@PLT movq 16(%rsp), %xmm2 movq 8(%rsp), %xmm1 movq (%rsp), %xmm0 addq $24, %rsp movq 104(%rax), %r11 jmp *%r11#else movq _glapi_Dispatch(%rip), %rax testq %rax, %rax je 1f movq 104(%rax), %r11 jmp *%r111: subq $24, %rsp movq %xmm0, (%rsp) movq %xmm1, 8(%rsp) movq %xmm2, 16(%rsp) call _glapi_get_dispatch movq 16(%rsp), %xmm2 movq 8(%rsp), %xmm1 movq (%rsp), %xmm0 addq $24, %rsp movq 104(%rax), %r11 jmp *%r11#endif /* defined(GLX_USE_TLS) */ .size GL_PREFIX(Color3f), .-GL_PREFIX(Color3f) .p2align 4,,15 .globl GL_PREFIX(Color3fv) .type GL_PREFIX(Color3fv), @functionGL_PREFIX(Color3fv):#if defined(GLX_USE_TLS) call _x86_64_get_dispatch@PLT movq 112(%rax), %r11 jmp *%r11#elif defined(PTHREADS) pushq %rdi call _x86_64_get_dispatch@PLT popq %rdi movq 112(%rax), %r11 jmp *%r11#else movq _glapi_Dispatch(%rip), %rax testq %rax, %rax je 1f movq 112(%rax), %r11 jmp *%r111: pushq %rdi call _glapi_get_dispatch popq %rdi movq 112(%rax), %r11 jmp *%r11#endif /* defined(GLX_USE_TLS) */ .size GL_PREFIX(Color3fv), .-GL_PREFIX(Color3fv) .p2align 4,,15 .globl GL_PREFIX(Color3i) .type GL_PREFIX(Color3i), @functionGL_PREFIX(Color3i):#if defined(GLX_USE_TLS) call _x86_64_get_dispatch@PLT movq 120(%rax), %r11 jmp *%r11#elif defined(PTHREADS) pushq %rdi pushq %rsi pushq %rdx call _x86_64_get_dispatch@PLT popq %rdx popq %rsi popq %rdi movq 120(%rax), %r11 jmp *%r11#else movq _glapi_Dispatch(%rip), %rax testq %rax, %rax je 1f movq 120(%rax), %r11 jmp *%r111: pushq %rdi pushq %rsi pushq %rdx call _glapi_get_dispatch popq %rdx popq %rsi popq %rdi movq 120(%rax), %r11 jmp *%r11#endif /* defined(GLX_USE_TLS) */ .size GL_PREFIX(Color3i), .-GL_PREFIX(Color3i) .p2align 4,,15 .globl GL_PREFIX(Color3iv) .type GL_PREFIX(Color3iv), @functionGL_PREFIX(Color3iv):#if defined(GLX_USE_TLS) call _x86_64_get_dispatch@PLT movq 128(%rax), %r11 jmp *%r11#elif defined(PTHREADS) pushq %rdi call _x86_64_get_dispatch@PLT popq %rdi movq 128(%rax), %r11 jmp *%r11#else movq _glapi_Dispatch(%rip), %rax testq %rax, %rax je 1f movq 128(%rax), %r11 jmp *%r111: pushq %rdi call _glapi_get_dispatch popq %rdi movq 128(%rax), %r11 jmp *%r11#endif /* defined(GLX_USE_TLS) */ .size GL_PREFIX(Color3iv), .-GL_PREFIX(Color3iv) .p2align 4,,15 .globl GL_PREFIX(Color3s) .type GL_PREFIX(Color3s), @functionGL_PREFIX(Color3s):#if defined(GLX_USE_TLS) call _x86_64_get_dispatch@PLT movq 136(%rax), %r11
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -