name
stringlengths
1
473k
code
stringlengths
7
647k
asm
stringlengths
4
3.39M
file
stringlengths
8
196
translateKeySyms
static int translateKeySyms(const KeySym* keysyms, int width) { if (width > 1) { switch (keysyms[1]) { case XK_KP_0: return GLFW_KEY_KP_0; case XK_KP_1: return GLFW_KEY_KP_1; case XK_KP_2: return GLFW_KEY_KP_2; case XK...
pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) cmpl $0x1, -0x14(%rbp) jle 0x14825 movq -0x10(%rbp), %rax movq 0x8(%rax), %rax addq $-0xff8d, %rax # imm = 0xFFFF0073 movq %rax, -0x20(%rbp) subq $0x30, %rax ja 0x14821 movq -0x20(%rbp), %rax leaq 0x2c438(%rip), %rcx # 0x40bb4 movslq ...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/x11_init.c
glfwPollMonitorsX11
void _glfwPollMonitorsX11(void) { if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) { int disconnectedCount, screenCount = 0; _GLFWmonitor** disconnected = NULL; XineramaScreenInfo* screens = NULL; XRRScreenResources* sr = XRRGetScreenResourcesCurrent(_glfw.x11.dis...
pushq %rbp movq %rsp, %rbp subq $0x70, %rsp leaq 0x35b59(%rip), %rax # 0x4b1c8 cmpl $0x0, 0x213d8(%rax) je 0x15b35 leaq 0x35b45(%rip), %rax # 0x4b1c8 cmpl $0x0, 0x213fc(%rax) jne 0x15b35 movl $0x0, -0x8(%rbp) movq $0x0, -0x10(%rbp) movq $0x0, -0x18(%rbp) leaq 0x35b1a(%rip), %rax # 0x4b1c8 movq 0x21450(%rax)...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/x11_monitor.c
glfwSetVideoModeX11
void _glfwSetVideoModeX11(_GLFWmonitor* monitor, const GLFWvidmode* desired) { if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) { GLFWvidmode current; RRMode native = None; const GLFWvidmode* best = _glfwChooseVideoMode(monitor, desired); _glfwPlatformGetVideoMod...
pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx subq $0xa0, %rsp movq %rdi, -0x18(%rbp) movq %rsi, -0x20(%rbp) leaq 0x355eb(%rip), %rax # 0x4b1c8 cmpl $0x0, 0x213d8(%rax) je 0x15e28 leaq 0x355d7(%rip), %rax # 0x4b1c8 cmpl $0x0, 0x213fc(%rax) jne 0x15e28 movq $0x0, -0x40(%rbp) movq -0x18(%rbp), %rdi movq -0x20(...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/x11_monitor.c
vidmodeFromModeInfo
static GLFWvidmode vidmodeFromModeInfo(const XRRModeInfo* mi, const XRRCrtcInfo* ci) { GLFWvidmode mode; if (ci->rotation == RR_Rotate_90 || ci->rotation == RR_Rotate_270) { mode.width = mi->height; mode.height = mi->width; } else { ...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x20(%rbp) movq %rdi, -0x18(%rbp) movq %rsi, -0x8(%rbp) movq %rdx, -0x10(%rbp) movq -0x10(%rbp), %rax movzwl 0x20(%rax), %eax cmpl $0x2, %eax je 0x160f2 movq -0x10(%rbp), %rax movzwl 0x20(%rax), %eax cmpl $0x8, %eax jne 0x1610b movq -0x20(%rbp), %rax movq -0x8(%rb...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/x11_monitor.c
glfwPlatformGetMonitorWorkarea
void _glfwPlatformGetMonitorWorkarea(_GLFWmonitor* monitor, int* xpos, int* ypos, int* width, int* height) { int areaX = 0, areaY = 0, areaWidth = 0, areaHeight = 0; if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) { XRRScreenResources* sr = XRRGetScreenResourcesCurrent(...
pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movl $0x0, -0x2c(%rbp) movl $0x0, -0x30(%rbp) movl $0x0, -0x34(%rbp) movl $0x0, -0x38(%rbp) leaq 0x34d36(%rip), %rax # 0x4b1c8 cmpl $0x0, 0x213d8(%rax) je 0x16...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/x11_monitor.c
glfwPlatformSetGammaRamp
void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) { if (_glfw.x11.randr.available && !_glfw.x11.randr.gammaBroken) { if (XRRGetCrtcGammaSize(_glfw.x11.display, monitor->x11.crtc) != ramp->size) { _glfwInputError(GLFW_PLATFORM_ERROR, ...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) leaq 0x34571(%rip), %rax # 0x4b1c8 cmpl $0x0, 0x213d8(%rax) je 0x16d82 leaq 0x3455d(%rip), %rax # 0x4b1c8 cmpl $0x0, 0x213f8(%rax) jne 0x16d82 leaq 0x34549(%rip), %rax # 0x4b1c8 movq 0x21430(%rax), %rax leaq 0x3453b(%ri...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/x11_monitor.c
glfwGetWindowPropertyX11
unsigned long _glfwGetWindowPropertyX11(Window window, Atom property, Atom type, unsigned char** value) { Atom actualType; int actualFormat; unsigned long itemCount, bytesAfter; XGetW...
pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x78, %rsp movq %rdi, -0x20(%rbp) movq %rsi, -0x28(%rbp) movq %rdx, -0x30(%rbp) movq %rcx, -0x38(%rbp) leaq 0x34254(%rip), %rax # 0x4b1c8 movq 0x20640(%rax), %rdi movq -0x20(%rbp), %rsi movq -0x28(%rbp), %rdx movq -0x30(%rbp), %r15 movq -0x38(%rbp), ...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/x11_window.c
isSelectionEvent
static Bool isSelectionEvent(Display* display, XEvent* event, XPointer pointer) { if (event->xany.window != _glfw.x11.helperWindowHandle) return False; return event->type == SelectionRequest || event->type == SelectionNotify || event->type == SelectionClear; }
pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x18(%rbp), %rax movq 0x20(%rax), %rax leaq 0x34049(%rip), %rcx # 0x4b1c8 cmpq 0x20660(%rcx), %rax je 0x17191 movl $0x0, -0x4(%rbp) jmp 0x171c5 movq -0x18(%rbp), %rcx movb $0x1, %al cmpl $0x1e, (%rcx) movb %al, -0x...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/x11_window.c
handleSelectionRequest
static void handleSelectionRequest(XEvent* event) { const XSelectionRequestEvent* request = &event->xselectionrequest; XEvent reply = { SelectionNotify }; reply.xselection.property = writeTargetToProperty(request); reply.xselection.display = request->display; reply.xselection.requestor = request->r...
pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x10(%rbp) leaq -0xd0(%rbp), %rdi xorl %esi, %esi movl $0xc0, %edx callq 0x72c0 movl $0x1f, -0xd0(%rbp) movq -0x10(%rbp), %rdi callq 0x1cd80 movq %rax, -0x98(%rbp) movq -0x10(%rbp), %rax movq 0x18(%rax), %rax movq %rax, ...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/x11_window.c
waitForX11Event
static GLFWbool waitForX11Event(double* timeout) { struct pollfd fd = { ConnectionNumber(_glfw.x11.display), POLLIN }; while (!XPending(_glfw.x11.display)) { if (!waitForData(&fd, 1, timeout)) return GLFW_FALSE; } return GLFW_TRUE; }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) leaq 0x33ea5(%rip), %rax # 0x4b1c8 movq 0x20640(%rax), %rax movl 0x10(%rax), %eax movl %eax, -0x18(%rbp) movw $0x1, -0x14(%rbp) movw $0x0, -0x12(%rbp) leaq 0x33e85(%rip), %rax # 0x4b1c8 movq 0x20640(%rax), %rdi callq 0x74b0 cmpl $0x0, %eax setne...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/x11_window.c
glfwPlatformCreateWindow
int _glfwPlatformCreateWindow(_GLFWwindow* window, const _GLFWwndconfig* wndconfig, const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* fbconfig) { Visual* visual = NULL; int depth; if (ctxconfig->client != GLFW_NO_...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq $0x0, -0x30(%rbp) movq -0x20(%rbp), %rax cmpl $0x0, (%rax) je 0x17486 movq -0x20(%rbp), %rax cmpl $0x36001, 0x4(%rax) # imm = 0x36001 jne 0x1740c callq 0x1dcb0 cmpl $0x0, %eax...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/x11_window.c
updateWindowMode
static void updateWindowMode(_GLFWwindow* window) { if (window->monitor) { if (_glfw.x11.xinerama.available && _glfw.x11.NET_WM_FULLSCREEN_MONITORS) { sendEventToWM(window, _glfw.x11.NET_WM_FULLSCREEN_MONITORS, window->m...
pushq %rbp movq %rsp, %rbp subq $0x100, %rsp # imm = 0x100 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x48(%rax) je 0x1800b leaq 0x33333(%rip), %rax # 0x4b1c8 cmpl $0x0, 0x214f8(%rax) je 0x17f0c leaq 0x33323(%rip), %rax # 0x4b1c8 cmpq $0x0, 0x212e0(%rax) je 0x17f0c movq -0x8(%rbp), %rdi l...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/x11_window.c
releaseMonitor
static void releaseMonitor(_GLFWwindow* window) { if (window->monitor->window != window) return; _glfwInputMonitorWindow(window->monitor, NULL); _glfwRestoreVideoModeX11(window->monitor); _glfw.x11.saver.count--; if (_glfw.x11.saver.count == 0) { // Restore old screen saver se...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq 0x48(%rax), %rax movq 0x90(%rax), %rax cmpq -0x8(%rbp), %rax je 0x18416 jmp 0x184a9 movq -0x8(%rbp), %rax movq 0x48(%rax), %rdi xorl %eax, %eax movl %eax, %esi callq 0xd6b0 movq -0x8(%rbp), %rax movq 0x48(%rax), %rdi callq 0x16...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/x11_window.c
glfwPlatformSetWindowPos
void _glfwPlatformSetWindowPos(_GLFWwindow* window, int xpos, int ypos) { // HACK: Explicitly setting PPosition to any value causes some WMs, notably // Compiz and Metacity, to honor the position of unmapped windows if (!_glfwPlatformWindowVisible(window)) { long supplied; XSizeHin...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movq -0x8(%rbp), %rdi callq 0x18a40 cmpl $0x0, %eax jne 0x189f7 callq 0x70b0 movq %rax, -0x20(%rbp) leaq 0x32844(%rip), %rax # 0x4b1c8 movq 0x20640(%rax), %rdi movq -0x8(%rbp), %rax movq 0x350(%rax), %rsi ...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/x11_window.c
glfwPlatformSetWindowSize
void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height) { if (window->monitor) { if (window->monitor->window == window) acquireMonitor(window); } else { if (!window->resizable) updateNormalHints(window, width, height); XResizeWindo...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x48(%rax) je 0x18b3d movq -0x8(%rbp), %rax movq 0x48(%rax), %rax movq 0x90(%rax), %rax cmpq -0x8(%rbp), %rax jne 0x18b3b movq -0x8(%rbp), %rdi callq 0x18140 jmp 0x18b7a movq -...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/x11_window.c
isFrameExtentsEvent
static Bool isFrameExtentsEvent(Display* display, XEvent* event, XPointer pointer) { _GLFWwindow* window = (_GLFWwindow*) pointer; return event->type == PropertyNotify && event->xproperty.state == PropertyNewValue && event->xproperty.window == window->x11.handle && event->xprope...
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rcx xorl %eax, %eax cmpl $0x1c, (%rcx) movb %al, -0x21(%rbp) jne 0x1911b movq -0x10(%rbp), %rcx xorl %eax, %eax cmpl $0x0, 0x38(%rcx) movb %al, -0x21(%rbp) jne ...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/x11_window.c
glfwPlatformIconifyWindow
void _glfwPlatformIconifyWindow(_GLFWwindow* window) { if (window->x11.overrideRedirect) { // Override-redirect windows cannot be iconified or restored, as those // tasks are performed by the window manager _glfwInputError(GLFW_PLATFORM_ERROR, "X11: Iconification ...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax cmpl $0x0, 0x368(%rax) je 0x191ae movl $0x10008, %edi # imm = 0x10008 leaq 0x285ec(%rip), %rsi # 0x41791 movb $0x0, %al callq 0x9260 jmp 0x191ec leaq 0x32013(%rip), %rax # 0x4b1c8 movq 0x20640(%rax), %rdi movq -0x8(...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/x11_window.c
glfwPlatformRestoreWindow
void _glfwPlatformRestoreWindow(_GLFWwindow* window) { if (window->x11.overrideRedirect) { // Override-redirect windows cannot be iconified or restored, as those // tasks are performed by the window manager _glfwInputError(GLFW_PLATFORM_ERROR, "X11: Iconification ...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax cmpl $0x0, 0x368(%rax) je 0x19231 movl $0x10008, %edi # imm = 0x10008 leaq 0x2856c(%rip), %rsi # 0x41791 movb $0x0, %al callq 0x9260 jmp 0x19308 movq -0x8(%rbp), %rdi callq 0x19310 cmpl $0x0, %eax je 0x1926b leaq 0x31f8...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/x11_window.c
glfwPlatformSetCursorMode
void _glfwPlatformSetCursorMode(_GLFWwindow* window, int mode) { if (mode == GLFW_CURSOR_DISABLED) { if (_glfwPlatformWindowFocused(window)) disableCursor(window); } else if (_glfw.x11.disabledCursorWindow == window) enableCursor(window); else updateCursorImage(wi...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) cmpl $0x34003, -0xc(%rbp) # imm = 0x34003 jne 0x1bc51 movq -0x8(%rbp), %rdi callq 0x19c30 cmpl $0x0, %eax je 0x1bc4f movq -0x8(%rbp), %rdi callq 0x1bca0 jmp 0x1bc7b leaq 0x2f570(%rip), %rax # 0x4b1c8 movq 0x21238(%rax), %rax ...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/x11_window.c
isSelPropNewValueNotify
static Bool isSelPropNewValueNotify(Display* display, XEvent* event, XPointer pointer) { XEvent* notification = (XEvent*) pointer; return event->type == PropertyNotify && event->xproperty.state == PropertyNewValue && event->xproperty.window == notification->xselection.requestor && ...
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rcx xorl %eax, %eax cmpl $0x1c, (%rcx) movb %al, -0x21(%rbp) jne 0x1d732 movq -0x10(%rbp), %rcx xorl %eax, %eax cmpl $0x0, 0x38(%rcx) movb %al, -0x21(%rbp) jne ...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/x11_window.c
getEGLErrorString
static const char* getEGLErrorString(EGLint error) { switch (error) { case EGL_SUCCESS: return "Success"; case EGL_NOT_INITIALIZED: return "EGL is not or could not be initialized"; case EGL_BAD_ACCESS: return "EGL cannot access a requested resource"; ...
pushq %rbp movq %rsp, %rbp movl %edi, -0xc(%rbp) movl -0xc(%rbp), %eax addl $0xffffd000, %eax # imm = 0xFFFFD000 movl %eax, %ecx movq %rcx, -0x18(%rbp) subl $0xe, %eax ja 0x1ffc7 movq -0x18(%rbp), %rax leaq 0x23233(%rip), %rcx # 0x4311c movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax leaq 0x1fa42(%rip),...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/egl_context.c
chooseEGLConfig
static GLFWbool chooseEGLConfig(const _GLFWctxconfig* ctxconfig, const _GLFWfbconfig* desired, EGLConfig* result) { EGLConfig* nativeConfigs; _GLFWfbconfig* usableConfigs; const _GLFWfbconfig* closest; int i, nativeCount, usableCount; ...
pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) leaq 0x2a46a(%rip), %rax # 0x4b1c8 movq 0x21750(%rax), %rax leaq 0x2a45c(%rip), %rcx # 0x4b1c8 movq 0x21710(%rcx), %rdi xorl %ecx, %ecx movl %ecx, %esi xorl %edx, %edx leaq -0x40(%rbp), %rcx callq *%...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/egl_context.c
swapBuffersEGL
static void swapBuffersEGL(_GLFWwindow* window) { if (window != _glfwPlatformGetTls(&_glfw.contextSlot)) { _glfwInputError(GLFW_PLATFORM_ERROR, "EGL: The context must be current on the calling thread when swapping buffers"); return; } #if defined(_GLFW_WAYLAND) /...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x10(%rbp) leaq 0x29ffd(%rip), %rdi # 0x4b1c8 addq $0x2059c, %rdi # imm = 0x2059C callq 0x1daa0 movq %rax, %rcx movq -0x10(%rbp), %rax cmpq %rcx, %rax je 0x211f8 movl $0x10008, %edi # imm = 0x10008 ...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/egl_context.c
getProcAddressEGL
static GLFWglproc getProcAddressEGL(const char* procname) { _GLFWwindow* window = _glfwPlatformGetTls(&_glfw.contextSlot); if (window->context.egl.client) { GLFWglproc proc = (GLFWglproc) _glfw_dlsym(window->context.egl.client, procname); i...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) leaq 0x29f45(%rip), %rdi # 0x4b1c8 addq $0x2059c, %rdi # imm = 0x2059C callq 0x1daa0 movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax cmpq $0x0, 0x2a0(%rax) je 0x212cc movq -0x18(%rbp), %rax movq 0x2a0(%rax), %rdi movq -0x10(%rbp), %rsi callq ...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/egl_context.c
destroyContextEGL
static void destroyContextEGL(_GLFWwindow* window) { #if defined(_GLFW_X11) // NOTE: Do not unload libGL.so.1 while the X11 display is still open, // as it will make XCloseDisplay segfault if (window->context.client != GLFW_OPENGL_API) #endif // _GLFW_X11 { if (window->context.egl.client) ...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax cmpl $0x30001, 0x200(%rax) # imm = 0x30001 je 0x2133b movq -0x8(%rbp), %rax cmpq $0x0, 0x2a0(%rax) je 0x21339 movq -0x8(%rbp), %rax movq 0x2a0(%rax), %rdi callq 0x73e0 movq -0x8(%rbp), %rax movq $0x0, 0x2a0(%rax) jmp 0x2133b movq ...
/apitrace[P]apitrace-tests/thirdparty/glfw/src/egl_context.c
std::multimap<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, int>>> CJSON::Deser...
inline T Deserialize(const std::string &json) { static_assert(std::is_class<T>::value, "Please use structs or objects!"); ParseObject(json); T Ret; for (auto &&e : m_Values) { std::vector<typename T::mapped_type> arr = ParseValue<std::...
pushq %rbp movq %rsp, %rbp subq $0xe0, %rsp movq %rdi, -0xc8(%rbp) movq %rdi, %rax movq %rax, -0xd0(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rdi movq %rdi, -0xc0(%rbp) movq -0x18(%rbp), %rsi callq 0x627b0 movq -0xc8(%rbp), %rdi movb $0x0, -0x19(%rbp) callq 0x44d50 mov...
/tostc[P]CJSON/JSON.hpp
PrimitiveTestClass CJSON::Deserialize<PrimitiveTestClass, (void*)0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
inline T Deserialize(const std::string &json) { static_assert(std::is_class<T>::value, "Please use structs or objects!"); ParseObject(json); T ret; ret.Deserialize(*this); m_Values.clear(); return ret; }
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x40(%rbp) movq %rdi, %rax movq %rax, -0x48(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rdi movq %rdi, -0x38(%rbp) movq -0x18(%rbp), %rsi callq 0x627b0 movq -0x40(%rbp), %rdi movb $0x0, -0x19(%rbp) callq 0x45260 mov...
/tostc[P]CJSON/JSON.hpp
PrimitiveTestClass::operator=(PrimitiveTestClass const&)
PrimitiveTestClass &operator=(const PrimitiveTestClass &other) { c = other.c; uc = other.uc; s = other.s; us = other.us; i = other.i; ui = other.ui; l = other.l; ul = other.ul; ll = other.ll; ...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x10(%rbp), %rcx movb 0x4(%rcx), %cl movb %cl, 0x4(%rax) movq -0x10(%rbp), %rcx movb 0x5(%rcx), %cl movb %cl, 0x5(%rax) movq -0x10(%rbp), %rcx movw 0x6(%rcx), %cx movw %cx, 0x6(%ra...
/tostc[P]CJSON/main.cpp
PrimitiveTestClass::Print()
void Print() { cout << "c: " << (int)c << endl; cout << "uc: " << (int)uc << endl; cout << "s: " << s << endl; cout << "us: " << us << endl; cout << "i: " << i << endl; cout << "ui: " << ui << endl; cout << "l: " << l << en...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x28(%rbp) movq 0x500b5(%rip), %rdi # 0x96fd0 movq %rdi, -0x30(%rbp) leaq 0x37e44(%rip), %rsi # 0x7ed6a callq 0x3f3b0 movq %rax, %rdi movq -0x28(%rbp), %rax movsbl 0x4(%rax), %esi callq 0x3f670 movq %rax, %rdi mo...
/tostc[P]CJSON/main.cpp
Folder CJSON::Deserialize<Folder, (void*)0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
inline T Deserialize(const std::string &json) { static_assert(std::is_class<T>::value, "Please use structs or objects!"); ParseObject(json); T ret; ret.Deserialize(*this); m_Values.clear(); return ret; }
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x40(%rbp) movq %rdi, %rax movq %rax, -0x48(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rdi movq %rdi, -0x38(%rbp) movq -0x18(%rbp), %rsi callq 0x627b0 movq -0x40(%rbp), %rdi movb $0x0, -0x19(%rbp) callq 0x7c040 mov...
/tostc[P]CJSON/JSON.hpp
char* PrimitiveTestClass::FillValues<char*>()
T FillValues() { T ret = new typename std::remove_pointer<T>::type[SIZE]; for (size_t i = 0; i < SIZE; i++) { ret[i] = 0xFF; } return ret; }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) movslq (%rax), %rdi callq 0x3f030 movq %rax, -0x10(%rbp) movq $0x0, -0x18(%rbp) movq -0x20(%rbp), %rcx movq -0x18(%rbp), %rax movslq (%rcx), %rcx cmpq %rcx, %rax jae 0x48fe2 movq -0x10(%rbp), %rax movq -0x18(%...
/tostc[P]CJSON/main.cpp
int* PrimitiveTestClass::FillValues<int*>()
T FillValues() { T ret = new typename std::remove_pointer<T>::type[SIZE]; for (size_t i = 0; i < SIZE; i++) { ret[i] = 0xFF; } return ret; }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) movslq (%rax), %rax movl $0x4, %ecx mulq %rcx movq %rax, %rdi seto %cl movq $-0x1, %rax testb $0x1, %cl cmovneq %rax, %rdi callq 0x3f030 movq %rax, -0x10(%rbp) movq $0x0, -0x18(%rbp) movq -0x20(%rbp), %rcx mov...
/tostc[P]CJSON/main.cpp
unsigned int* PrimitiveTestClass::FillValues<unsigned int*>()
T FillValues() { T ret = new typename std::remove_pointer<T>::type[SIZE]; for (size_t i = 0; i < SIZE; i++) { ret[i] = 0xFF; } return ret; }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) movslq (%rax), %rax movl $0x4, %ecx mulq %rcx movq %rax, %rdi seto %cl movq $-0x1, %rax testb $0x1, %cl cmovneq %rax, %rdi callq 0x3f030 movq %rax, -0x10(%rbp) movq $0x0, -0x18(%rbp) movq -0x20(%rbp), %rcx mov...
/tostc[P]CJSON/main.cpp
unsigned long* PrimitiveTestClass::FillValues<unsigned long*>()
T FillValues() { T ret = new typename std::remove_pointer<T>::type[SIZE]; for (size_t i = 0; i < SIZE; i++) { ret[i] = 0xFF; } return ret; }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) movslq (%rax), %rax movl $0x8, %ecx mulq %rcx movq %rax, %rdi seto %cl movq $-0x1, %rax testb $0x1, %cl cmovneq %rax, %rdi callq 0x3f030 movq %rax, -0x10(%rbp) movq $0x0, -0x18(%rbp) movq -0x20(%rbp), %rcx mov...
/tostc[P]CJSON/main.cpp
long long* PrimitiveTestClass::FillValues<long long*>()
T FillValues() { T ret = new typename std::remove_pointer<T>::type[SIZE]; for (size_t i = 0; i < SIZE; i++) { ret[i] = 0xFF; } return ret; }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) movslq (%rax), %rax movl $0x8, %ecx mulq %rcx movq %rax, %rdi seto %cl movq $-0x1, %rax testb $0x1, %cl cmovneq %rax, %rdi callq 0x3f030 movq %rax, -0x10(%rbp) movq $0x0, -0x18(%rbp) movq -0x20(%rbp), %rcx mov...
/tostc[P]CJSON/main.cpp
long double* PrimitiveTestClass::FillValues<long double*>()
T FillValues() { T ret = new typename std::remove_pointer<T>::type[SIZE]; for (size_t i = 0; i < SIZE; i++) { ret[i] = 0xFF; } return ret; }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) movslq (%rax), %rax movl $0x10, %ecx mulq %rcx movq %rax, %rdi seto %cl movq $-0x1, %rax testb $0x1, %cl cmovneq %rax, %rdi callq 0x3f030 movq %rax, -0x10(%rbp) movq $0x0, -0x18(%rbp) movq -0x20(%rbp), %rcx mo...
/tostc[P]CJSON/main.cpp
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> CJSON::ValueToString<std::deque<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, (void*)0>(std::deque<std::__cxx1...
inline std::string ValueToString(const T &val) { std::string Ret; typename T::const_iterator beg = val.begin(); typename T::const_iterator end = val.end(); while (beg != end) { if(!Ret.empty()) Ret += ','; ...
pushq %rbp movq %rsp, %rbp subq $0x100, %rsp # imm = 0x100 movq %rdi, -0x100(%rbp) movq %rdi, %rax movq %rax, -0xf8(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, -0xf0(%rbp) leaq -0x38(%rbp), %rdi callq 0x3f540 movq -0x18(%rbp), %rsi leaq -0x58(%r...
/tostc[P]CJSON/JSON.hpp
CJSON::EscapeString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
inline std::string EscapeString(std::string str) { str = ReplaceAll(str, "\\", "\\\\"); str = ReplaceAll(str, "\"", "\\\""); str = ReplaceAll(str, "/", "\\/"); str = ReplaceAll(str, "\b", "\\b"); str = ReplaceAll(str, "\n", "\\n"); str = Re...
pushq %rbp movq %rsp, %rbp subq $0x610, %rsp # imm = 0x610 movq %rdx, -0x548(%rbp) movq %rsi, %rax movq -0x548(%rbp), %rsi movq %rdi, -0x540(%rbp) movq %rdi, %rcx movq %rcx, -0x538(%rbp) movq %rdi, -0x8(%rbp) movq %rax, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x530(%rbp) leaq -0...
/tostc[P]CJSON/JSON.hpp
CJSON::IsUTF8(unsigned char)
inline int IsUTF8(unsigned char c) { if((c & 0xF0) == 0xF0) return 3; if((c & 0xE0) == 0xE0) return 2; if((c & 0xC0) == 0xC0) return 1; return 0; }
pushq %rbp movq %rsp, %rbp movb %sil, %al movq %rdi, -0x10(%rbp) movb %al, -0x11(%rbp) movzbl -0x11(%rbp), %eax andl $0xf0, %eax cmpl $0xf0, %eax jne 0x4f317 movl $0x3, -0x4(%rbp) jmp 0x4f350 movzbl -0x11(%rbp), %eax andl $0xe0, %eax cmpl $0xe0, %eax jne 0x4f330 movl $0x2, -0x4(%rbp) jmp 0x4f350 movzbl -0x11(%rbp), %ea...
/tostc[P]CJSON/JSON.hpp
CJSON::UTF8BitShift(unsigned char)
inline int UTF8BitShift(unsigned char c) { if((c & 0xF0) == 0xF0) return 5; if((c & 0xE0) == 0xE0) return 4; if((c & 0xC0) == 0xC0) return 3; if((c & 0x80) == 0x80) return 2; return 0; ...
pushq %rbp movq %rsp, %rbp movb %sil, %al movq %rdi, -0x10(%rbp) movb %al, -0x11(%rbp) movzbl -0x11(%rbp), %eax andl $0xf0, %eax cmpl $0xf0, %eax jne 0x4f387 movl $0x5, -0x4(%rbp) jmp 0x4f3d9 movzbl -0x11(%rbp), %eax andl $0xe0, %eax cmpl $0xe0, %eax jne 0x4f3a0 movl $0x4, -0x4(%rbp) jmp 0x4f3d9 movzbl -0x11(%rbp), %ea...
/tostc[P]CJSON/JSON.hpp
main
int main(void) { uint16_t value; float float_value; signal(SIGINT, sig_handler); //! [Interesting] /* initialize AIO */ mraa::Aio aio(AIO_PORT); while (flag) { value = aio.read(); float_value = aio.readFloat(); std::cout << "ADC A0 read %X - %d" << value << value <...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp leaq -0x69(%rip), %rsi # 0x229c movl $0x2, %edi callq 0x2100 leaq 0x10(%rsp), %rbx movq %rbx, %rdi xorl %esi, %esi callq 0x242c movq 0x2ca3(%rip), %r14 # 0x4fc8 leaq 0xce7(%rip), %r15 # 0x3013 leaq 0xcf4(%rip), %r12 ...
/vraoresearch[P]mraa/examples/c++/aio.cpp
leveldb::Version::AddIterators(leveldb::ReadOptions const&, std::vector<leveldb::Iterator*, std::allocator<leveldb::Iterator*>>*)
void Version::AddIterators(const ReadOptions& options, std::vector<Iterator*>* iters) { // Merge all level zero files together since they may overlap for (size_t i = 0; i < files_[0].size(); i++) { iters->push_back(vset_->table_cache_->NewIterator( options, files_[0][i]->numbe...
pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x40(%rbp) movq $0x0, -0x20(%rbp) movq -0x40(%rbp), %rdi movq -0x20(%rbp), %rax movq %rax, -0x48(%rbp) addq $0x20, %rdi callq 0x17ed0 movq %rax, %rcx movq -0x48(%rbp), %rax c...
/CDDSCLab[P]leveldb/db/version_set.cc
leveldb::(anonymous namespace)::MergingIterator::SeekToLast()
void SeekToLast() override { for (int i = 0; i < n_; i++) { children_[i].SeekToLast(); } FindLargest(); direction_ = kReverse; }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) movl $0x0, -0xc(%rbp) movq -0x18(%rbp), %rcx movl -0xc(%rbp), %eax cmpl 0x38(%rcx), %eax jge 0x3236a movq -0x18(%rbp), %rax movq 0x30(%rax), %rdi movslq -0xc(%rbp), %rax shlq $0x5, %rax addq %rax, %rdi callq 0...
/CDDSCLab[P]leveldb/table/merger.cc
leveldb::(anonymous namespace)::MergingIterator::Seek(leveldb::Slice const&)
void Seek(const Slice& target) override { for (int i = 0; i < n_; i++) { children_[i].Seek(target); } FindSmallest(); direction_ = kForward; }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) movl $0x0, -0x14(%rbp) movq -0x20(%rbp), %rcx movl -0x14(%rbp), %eax cmpl 0x38(%rcx), %eax jge 0x323e2 movq -0x20(%rbp), %rax movq 0x30(%rax), %rdi movslq -0x14(%rbp), %rax shlq $0x5, %r...
/CDDSCLab[P]leveldb/table/merger.cc
leveldb::Table::ReadMeta(leveldb::Footer const&)
void Table::ReadMeta(const Footer& footer) { if (rep_->options.filter_policy == nullptr) { return; // Do not need any metadata } // TODO(sanjay): Skip this if footer.metaindex_handle() size indicates // it is an empty block. ReadOptions opt; if (rep_->options.paranoid_checks) { opt.verify_checksum...
pushq %rbp movq %rsp, %rbp subq $0x160, %rsp # imm = 0x160 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0xd0(%rbp) movq (%rax), %rax cmpq $0x0, 0x58(%rax) jne 0x34bfd jmp 0x34f4e leaq -0x20(%rbp), %rdi callq 0x8ce0 movq -0xd0(%rbp), %rax movq (%rax), %rax testb $0x1, 0xa(%ra...
/CDDSCLab[P]leveldb/table/table.cc
leveldb::(anonymous namespace)::TwoLevelIterator::status() const
Status status() const override { // It'd be nice if status() returned a const Status& instead of a Status if (!index_iter_.status().ok()) { return index_iter_.status(); } else if (data_iter_.iter() != nullptr && !data_iter_.status().ok()) { return data_iter_.status(); } else { return s...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x40(%rbp) movq %rdi, %rax movq %rax, -0x38(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rsi movq %rsi, -0x30(%rbp) addq $0x50, %rsi leaq -0x18(%rbp), %rdi callq 0x32df0 leaq -0x18(%rbp), %rdi callq 0x7760 xorb $-0x1, %al movb %al, -0x22(%...
/CDDSCLab[P]leveldb/table/two_level_iterator.cc
leveldb::Arena::AllocateNewBlock(unsigned long)
char* Arena::AllocateNewBlock(size_t block_bytes) { char* result = new char[block_bytes]; blocks_.push_back(result); memory_usage_.fetch_add(block_bytes + sizeof(char*), std::memory_order_relaxed); return result; }
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x30(%rbp) movq %rsi, -0x38(%rbp) movq -0x30(%rbp), %rax movq %rax, -0x58(%rbp) movq -0x38(%rbp), %rdi callq 0x6030 movq -0x58(%rbp), %rdi movq %rax, -0x40(%rbp) addq $0x10, %rdi leaq -0x40(%rbp), %rsi callq 0x36cf0 movq -0x58(%rbp), %rcx addq $0x28, %rcx movq -0x...
/CDDSCLab[P]leveldb/util/arena.cc
leveldb::GetVarint64(leveldb::Slice*, unsigned long*)
bool GetVarint64(Slice* input, uint64_t* value) { const char* p = input->data(); const char* limit = p + input->size(); const char* q = GetVarint64Ptr(p, limit, value); if (q == nullptr) { return false; } else { *input = Slice(q, limit - q); return true; } }
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rdi callq 0x14680 movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x10(%rbp), %rdi callq 0x13b50 movq %rax, %rcx movq -0x48(%rbp), %rax addq %rcx, %rax movq %rax, -0x28(%rbp) movq -0x2...
/CDDSCLab[P]leveldb/util/coding.cc
leveldb::ConsumeDecimalNumber(leveldb::Slice*, unsigned long*)
bool ConsumeDecimalNumber(Slice* in, uint64_t* val) { // Constants that will be optimized away. constexpr const uint64_t kMaxUint64 = std::numeric_limits<uint64_t>::max(); constexpr const char kLastDigitOfMaxUint64 = '0' + static_cast<char>(kMaxUint64 % 10); uint64_t value = 0; // reinterpret_cast-ing...
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq $-0x1, -0x20(%rbp) movb $0x35, -0x21(%rbp) movq $0x0, -0x30(%rbp) movq -0x10(%rbp), %rdi callq 0x14680 movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x60(%rbp) movq -0x10(%rbp), %rdi callq 0x13b50 movq %rax, %rcx ...
/CDDSCLab[P]leveldb/util/logging.cc
leveldb::Block::Iter::ParseNextKey()
bool ParseNextKey() { current_ = NextEntryOffset(); const char* p = data_ + current_; const char* limit = data_ + restarts_; // Restarts come right after data if (p >= limit) { // No more entries to return. Mark as invalid. current_ = restarts_; restart_index_ = num_restarts_; ...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rdi movq %rdi, -0x48(%rbp) callq 0x44780 movq -0x48(%rbp), %rcx movl %eax, 0x40(%rcx) movq 0x30(%rcx), %rax movl 0x40(%rcx), %edx addq %rdx, %rax movq %rax, -0x18(%rbp) movq 0x30(%rcx), %rax movl 0x38(%rcx), %ecx addq %rcx, %rax movq ...
/CDDSCLab[P]leveldb/table/block.cc
leveldb::FilterBlockReader::KeyMayMatch(unsigned long, leveldb::Slice const&)
bool FilterBlockReader::KeyMayMatch(uint64_t block_offset, const Slice& key) { uint64_t index = block_offset >> base_lg_; if (index < num_) { uint32_t start = DecodeFixed32(offset_ + index * 4); uint32_t limit = DecodeFixed32(offset_ + index * 4 + 4); if (start <= limit && limit <= static_cast<size_t>(o...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rcx movq %rcx, -0x48(%rbp) movq -0x18(%rbp), %rax movq 0x20(%rcx), %rcx shrq %cl, %rax movq -0x48(%rbp), %rcx movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax cmpq 0x18(%rcx), %rax jae 0x44ed...
/CDDSCLab[P]leveldb/table/filter_block.cc
mbedtls_mpi_grow
int mbedtls_mpi_grow( mbedtls_mpi *X, size_t nblimbs ) { mbedtls_mpi_uint *p; if( nblimbs > MBEDTLS_MPI_MAX_LIMBS ) return( MBEDTLS_ERR_MPI_ALLOC_FAILED ); if( X->n < nblimbs ) { if( ( p = (mbedtls_mpi_uint*)mbedtls_calloc( nblimbs, ciL ) ) == NULL ) return( MBEDTLS_ERR_MPI...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax pushq $-0x10 popq %rbp cmpq $0x2710, %rsi # imm = 0x2710 ja 0xe6ce movq %rsi, %r14 movq %rdi, %rbx movq 0x8(%rdi), %r15 cmpq %rsi, %r15 jae 0xe6cc pushq $0x8 popq %rsi movq %r14, %rdi callq 0x7150 testq %rax, %rax je 0xe6ce movq %rax...
/project-everest[P]mbedtls/library/bignum.c
mbedtls_mpi_mul_int
int mbedtls_mpi_mul_int( mbedtls_mpi *X, const mbedtls_mpi *A, mbedtls_mpi_uint b ) { mbedtls_mpi _B; mbedtls_mpi_uint p[1]; _B.s = 1; _B.n = 1; _B.p = p; p[0] = b; return( mbedtls_mpi_mul_mpi( X, A, &_B ) ); }
subq $0x28, %rsp leaq 0x10(%rsp), %rax movl $0x1, (%rax) movq $0x1, 0x8(%rax) leaq 0x8(%rsp), %rcx movq %rcx, 0x10(%rax) movq %rdx, (%rcx) movq %rax, %rdx callq 0xf801 addq $0x28, %rsp retq
/project-everest[P]mbedtls/library/bignum.c
mbedtls_mpi_add_int
int mbedtls_mpi_add_int( mbedtls_mpi *X, const mbedtls_mpi *A, mbedtls_mpi_sint b ) { mbedtls_mpi _B; mbedtls_mpi_uint p[1]; p[0] = ( b < 0 ) ? -b : b; _B.s = ( b < 0 ) ? -1 : 1; _B.n = 1; _B.p = p; return( mbedtls_mpi_add_mpi( X, A, &_B ) ); }
subq $0x28, %rsp movq %rdx, %rax negq %rax cmovsq %rdx, %rax leaq 0x8(%rsp), %rcx movq %rax, (%rcx) sarq $0x3f, %rdx orl $0x1, %edx leaq 0x10(%rsp), %rax movl %edx, (%rax) movq $0x1, 0x8(%rax) movq %rcx, 0x10(%rax) movq %rax, %rdx callq 0xf725 addq $0x28, %rsp retq
/project-everest[P]mbedtls/library/bignum.c
mbedtls_mpi_sub_int
int mbedtls_mpi_sub_int( mbedtls_mpi *X, const mbedtls_mpi *A, mbedtls_mpi_sint b ) { mbedtls_mpi _B; mbedtls_mpi_uint p[1]; p[0] = ( b < 0 ) ? -b : b; _B.s = ( b < 0 ) ? -1 : 1; _B.n = 1; _B.p = p; return( mbedtls_mpi_sub_mpi( X, A, &_B ) ); }
subq $0x28, %rsp movq %rdx, %rax negq %rax cmovsq %rdx, %rax leaq 0x8(%rsp), %rcx movq %rax, (%rcx) sarq $0x3f, %rdx orl $0x1, %edx leaq 0x10(%rsp), %rax movl %edx, (%rax) movq $0x1, 0x8(%rax) movq %rcx, 0x10(%rax) movq %rax, %rdx callq 0xf793 addq $0x28, %rsp retq
/project-everest[P]mbedtls/library/bignum.c
mbedtls_mpi_write_string
int mbedtls_mpi_write_string( const mbedtls_mpi *X, int radix, char *buf, size_t buflen, size_t *olen ) { int ret = 0; size_t n; char *p; mbedtls_mpi T; if( radix < 2 || radix > 16 ) return( MBEDTLS_ERR_MPI_BAD_INPUT_DATA ); n = mbedtls_mpi_bitlen( X ); ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movl %esi, %r12d leal -0x11(%r12), %eax cmpl $-0xf, %eax jae 0xed84 pushq $-0x4 jmp 0xedbb movq %r8, %rbx movq %rcx, %r13 movq %rdx, %r14 movq %rdi, %r15 callq 0xea7b cmpl $0x4, %r12d setae %cl shrq %cl, %rax cmpl $0x10, %r12d setae %cl ...
/project-everest[P]mbedtls/library/bignum.c
mpi_write_hlp
static int mpi_write_hlp( mbedtls_mpi *X, int radix, char **p ) { int ret; mbedtls_mpi_uint r; if( radix < 2 || radix > 16 ) return( MBEDTLS_ERR_MPI_BAD_INPUT_DATA ); MBEDTLS_MPI_CHK( mbedtls_mpi_mod_int( &r, X, radix ) ); MBEDTLS_MPI_CHK( mbedtls_mpi_div_int( X, NULL, X, radix ) ); i...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rdx, %rbx movl %esi, %ebp movq %rdi, %r15 movl %esi, %r12d leaq 0x8(%rsp), %rdi movq %r15, %rsi movq %r12, %rdx callq 0x102c0 testl %eax, %eax jne 0xef1e movq %r15, %rdi xorl %esi, %esi movq %r15, %rdx movq %r12, %rcx callq 0x10207 testl %eax...
/project-everest[P]mbedtls/library/bignum.c
mbedtls_mpi_read_file
int mbedtls_mpi_read_file( mbedtls_mpi *X, int radix, FILE *fin ) { mbedtls_mpi_uint d; size_t slen; char *p; /* * Buffer should have space for (short) label and decimal formatted MPI, * newline characters and '\0' */ char s[ MBEDTLS_MPI_RW_BUFFER_SIZE ]; memset( s, 0, sizeof( s ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x9c8, %rsp # imm = 0x9C8 movq %rdx, %r15 movl %esi, %ebx movq %rdi, %r14 leaq 0x10(%rsp), %r12 movl $0x9b4, %edx # imm = 0x9B4 movq %r12, %rdi xorl %esi, %esi callq 0x7110 movq %r12, %rdi movl $0x9b3, %esi # imm = ...
/project-everest[P]mbedtls/library/bignum.c
mbedtls_mpi_read_binary
int mbedtls_mpi_read_binary( mbedtls_mpi *X, const unsigned char *buf, size_t buflen ) { int ret; size_t i, j; size_t const limbs = CHARS_TO_LIMBS( buflen ); /* Ensure that target MPI has exactly the necessary number of limbs */ if( X->n != limbs ) { mbedtls_mpi_free( X ); mbedt...
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rdx, %rbx movq %rsi, %r15 movq %rdi, %r14 movq %rdx, %r12 shrq $0x3, %r12 movl %ebx, %eax andl $0x7, %eax cmpq $0x1, %rax sbbq $-0x1, %r12 cmpq %r12, 0x8(%rdi) je 0xf1a7 leaq 0x8(%r14), %r13 movq %r14, %rdi callq 0xe613 movl $0x1, (%r14) xorps %xmm0, %xmm0 mo...
/project-everest[P]mbedtls/library/bignum.c
mbedtls_mpi_cmp_abs
int mbedtls_mpi_cmp_abs( const mbedtls_mpi *X, const mbedtls_mpi *Y ) { size_t i, j; for( i = X->n; i > 0; i-- ) if( X->p[i - 1] != 0 ) break; for( j = Y->n; j > 0; j-- ) if( Y->p[j - 1] != 0 ) break; if( i == 0 && j == 0 ) return( 0 ); if( i > j )...
movq 0x8(%rdi), %rax movq %rax, %rcx subq $0x1, %rax jb 0xf403 movq 0x10(%rdi), %rdx cmpq $0x0, (%rdx,%rax,8) je 0xf3ef movq 0x8(%rsi), %rax movq %rax, %r8 subq $0x1, %rax jb 0xf41b movq 0x10(%rsi), %rdx cmpq $0x0, (%rdx,%rax,8) je 0xf407 xorl %eax, %eax movq %r8, %rdx orq %rcx, %rdx je 0xf453 pushq $0x1 popq %rdx cmpq...
/project-everest[P]mbedtls/library/bignum.c
mbedtls_mpi_cmp_int
int mbedtls_mpi_cmp_int( const mbedtls_mpi *X, mbedtls_mpi_sint z ) { mbedtls_mpi Y; mbedtls_mpi_uint p[1]; *p = ( z < 0 ) ? -z : z; Y.s = ( z < 0 ) ? -1 : 1; Y.n = 1; Y.p = p; return( mbedtls_mpi_cmp_mpi( X, &Y ) ); }
subq $0x28, %rsp movq %rsi, %rax negq %rax cmovsq %rsi, %rax leaq 0x8(%rsp), %rcx movq %rax, (%rcx) sarq $0x3f, %rsi orl $0x1, %esi leaq 0x10(%rsp), %rax movl %esi, (%rax) movq $0x1, 0x8(%rax) movq %rcx, 0x10(%rax) movq %rax, %rsi callq 0xf454 addq $0x28, %rsp retq
/project-everest[P]mbedtls/library/bignum.c
mbedtls_mpi_add_mpi
int mbedtls_mpi_add_mpi( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B ) { int ret, s = A->s; if( A->s * B->s < 0 ) { if( mbedtls_mpi_cmp_abs( A, B ) >= 0 ) { MBEDTLS_MPI_CHK( mbedtls_mpi_sub_abs( X, A, B ) ); X->s = s; } else { ...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx movl (%rsi), %ebp movl (%rdx), %eax imull %ebp, %eax testl %eax, %eax js 0xf750 movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx callq 0xf521 jmp 0xf76d movq %r15, %rdi movq %r14, %rsi callq 0xf3eb movq %rbx, %rdi test...
/project-everest[P]mbedtls/library/bignum.c
mbedtls_mpi_div_mpi
int mbedtls_mpi_div_mpi( mbedtls_mpi *Q, mbedtls_mpi *R, const mbedtls_mpi *A, const mbedtls_mpi *B ) { int ret; size_t i, n, t, k; mbedtls_mpi X, Y, Z, T1, T2; if( mbedtls_mpi_cmp_int( B, 0 ) == 0 ) return( MBEDTLS_ERR_MPI_DIVISION_BY_ZERO ); mbedtls_mpi_init( &X ); mbedtls_mpi_init( &Y )...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xb8, %rsp movq %rcx, %r12 movq %rdx, %r14 movq %rsi, %rbx movq %rdi, %r15 movq %rcx, %rdi xorl %esi, %esi callq 0xf4e4 testl %eax, %eax je 0xfe80 pushq $0x1 popq %r13 movl %r13d, 0x50(%rsp) xorps %xmm0, %xmm0 movups %xmm0, 0x58(%rsp) movl %r13d, 0...
/project-everest[P]mbedtls/library/bignum.c
mpi_montmul
static int mpi_montmul( mbedtls_mpi *A, const mbedtls_mpi *B, const mbedtls_mpi *N, mbedtls_mpi_uint mm, const mbedtls_mpi *T ) { size_t i, n, m; mbedtls_mpi_uint u0, u1, *d; if( T->n < N->n + 1 || T->p == NULL ) return( MBEDTLS_ERR_MPI_BAD_INPUT_DATA ); memset( T->p, ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rcx, 0x40(%rsp) movq %rdx, %rax movq %rsi, 0x18(%rsp) movq 0x8(%r8), %rdx movq %rax, (%rsp) movq 0x8(%rax), %rcx incq %rcx pushq $-0x4 popq %rax cmpq %rcx, %rdx jb 0x10b74 movq %r8, %rbx movq %rdi, %r14 movq 0x10(%r8), %rdi testq %...
/project-everest[P]mbedtls/library/bignum.c
mbedtls_ctr_drbg_reseed
int mbedtls_ctr_drbg_reseed( mbedtls_ctr_drbg_context *ctx, const unsigned char *additional, size_t len ) { unsigned char seed[MBEDTLS_CTR_DRBG_MAX_SEED_INPUT]; size_t seedlen = 0; int ret; if( ctx->entropy_len > MBEDTLS_CTR_DRBG_MAX_SEED_INPUT || len > MBEDTLS_CTR_DRBG_MAX...
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x180, %rsp # imm = 0x180 movq 0x18(%rdi), %r12 movl $0x180, %eax # imm = 0x180 subq %r12, %rax setb %cl cmpq %rdx, %rax setb %al orb %cl, %al je 0x11d11 pushq $-0x38 jmp 0x11d45 movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx movq %rsp,...
/project-everest[P]mbedtls/library/ctr_drbg.c
mbedtls_md_file
int mbedtls_md_file( const mbedtls_md_info_t *md_info, const char *path, unsigned char *output ) { int ret; FILE *f; size_t n; mbedtls_md_context_t ctx; unsigned char buf[1024]; if( md_info == NULL ) return( MBEDTLS_ERR_MD_BAD_INPUT_DATA ); if( ( f = fopen( path, "rb" ) ) == NULL )...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x438, %rsp # imm = 0x438 testq %rdi, %rdi je 0x130ee movq %rdx, %r14 movq %rdi, %r15 leaq 0xf070(%rip), %rax # 0x220e3 movq %rsi, %rdi movq %rax, %rsi callq 0x7240 testq %rax, %rax je 0x130f5 movq %rax, %rbx xorps %xmm0, %xmm0 mova...
/project-everest[P]mbedtls/library/md.c
mbedtls_ripemd160_starts
int mbedtls_ripemd160_starts_ret( mbedtls_ripemd160_context *ctx ) { ctx->total[0] = 0; ctx->total[1] = 0; ctx->state[0] = 0x67452301; ctx->state[1] = 0xEFCDAB89; ctx->state[2] = 0x98BADCFE; ctx->state[3] = 0x10325476; ctx->state[4] = 0xC3D2E1F0; return( 0 ); }
movaps 0xebe6(%rip), %xmm0 # 0x22250 movups %xmm0, (%rdi) movabsq $0x1032547698badcfe, %rax # imm = 0x1032547698BADCFE movq %rax, 0x10(%rdi) movl $0xc3d2e1f0, 0x18(%rdi) # imm = 0xC3D2E1F0 retq
/project-everest[P]mbedtls/library/ripemd160.c
mbedtls_ripemd160_ret
int mbedtls_ripemd160_ret( const unsigned char *input, size_t ilen, unsigned char output[20] ) { int ret; mbedtls_ripemd160_context ctx; mbedtls_ripemd160_init( &ctx ); if( ( ret = mbedtls_ripemd160_starts_ret( &ctx ) ) != 0 ) goto exit; ...
pushq %r14 pushq %rbx subq $0x68, %rsp movq %rdx, %rbx movq %rsi, %rdx movq %rdi, %rsi xorps %xmm0, %xmm0 movq %rsp, %r14 movaps %xmm0, 0x10(%r14) movaps %xmm0, (%r14) movups %xmm0, 0x4c(%r14) movaps %xmm0, 0x40(%r14) movaps %xmm0, 0x30(%r14) movaps %xmm0, 0x20(%r14) movaps 0xd481(%rip), %xmm0 # 0x22260 movups %xmm...
/project-everest[P]mbedtls/library/ripemd160.c
rsa_check_context
static int rsa_check_context( mbedtls_rsa_context const *ctx, int is_priv, int blinding_needed ) { #if !defined(MBEDTLS_RSA_NO_CRT) /* blinding_needed is only used for NO_CRT to decide whether * P,Q need to be present or not. */ ((void) blinding_needed); #endif if( ctx->l...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %esi, %ebp movq %rdi, %r14 movq 0x8(%rdi), %r12 leaq 0x10(%rdi), %r15 movq %r15, %rdi callq 0xeae0 movl $0xffffbf80, %ebx # imm = 0xFFFFBF80 cmpq %rax, %r12 jne 0x1534a cmpq $0x400, 0x8(%r14) # imm = 0x400 ja 0x1534a movq %r15, %rdi xorl %esi, %esi...
/project-everest[P]mbedtls/library/rsa.c
mbedtls_rsa_export_raw
int mbedtls_rsa_export_raw( const mbedtls_rsa_context *ctx, unsigned char *N, size_t N_len, unsigned char *P, size_t P_len, unsigned char *Q, size_t Q_len, unsigned char *D, size_t D_len, ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %r9, %rbp movq %r8, 0x28(%rsp) movq %rcx, %r12 movq %rdx, 0x30(%rsp) movq %rsi, %r15 movq %rdi, %r14 movq 0x90(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x88(%rsp), %rax movq %rax, 0x8(%rsp) movq 0x80(%rsp), %rax movq %rax, 0x18(%rsp) ...
/project-everest[P]mbedtls/library/rsa.c
mbedtls_rsa_check_pub_priv
int mbedtls_rsa_check_pub_priv( const mbedtls_rsa_context *pub, const mbedtls_rsa_context *prv ) { if( mbedtls_rsa_check_pubkey( pub ) != 0 || mbedtls_rsa_check_privkey( prv ) != 0 ) { return( MBEDTLS_ERR_RSA_KEY_CHECK_FAILED ); } if( mbedtls_mpi_cmp_mpi...
pushq %rbp pushq %r14 pushq %rbx movq %rsi, %rbx movq %rdi, %r14 callq 0x15b25 movl $0xffffbe00, %ebp # imm = 0xFFFFBE00 testl %eax, %eax jne 0x15be2 movq %rbx, %rdi callq 0x159f7 testl %eax, %eax jne 0x15be2 leaq 0x10(%r14), %rdi leaq 0x10(%rbx), %rsi callq 0xf454 testl %eax, %eax jne 0x15be2 addq $0x28, %r14 ad...
/project-everest[P]mbedtls/library/rsa.c
mbedtls_rsa_public
int mbedtls_rsa_public( mbedtls_rsa_context *ctx, const unsigned char *input, unsigned char *output ) { int ret; size_t olen; mbedtls_mpi T; if( rsa_check_context( ctx, 0 /* public */, 0 /* no blinding */ ) ) return( MBEDTLS_ERR_RSA_BAD_INPUT_DATA ); mbedtls...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdx, %rbx movq %rsi, %r15 movq %rdi, %r14 xorl %esi, %esi callq 0x1525b movl %eax, %ecx movl $0xffffbf80, %eax # imm = 0xFFFFBF80 testl %ecx, %ecx jne 0x15c5f movq %rsp, %r12 movq %r12, %rdi callq 0xe600 movq 0x8(%r14), %rdx movq %r12, %rdi movq %...
/project-everest[P]mbedtls/library/rsa.c
mgf_mask
static int mgf_mask( unsigned char *dst, size_t dlen, unsigned char *src, size_t slen, mbedtls_md_context_t *md_ctx ) { unsigned char mask[MBEDTLS_MD_MAX_SIZE]; unsigned char counter[4]; unsigned char *p; unsigned int hlen; size_t i, use_len; int ret = 0; memset( mask,...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %r8, %rbx movq %rcx, 0x8(%rsp) movq %rdx, %r15 movq %rsi, %r13 movq %rdi, %rbp xorps %xmm0, %xmm0 leaq 0x10(%rsp), %rax movaps %xmm0, (%rax) movaps %xmm0, 0x10(%rax) movaps %xmm0, 0x20(%rax) movaps %xmm0, 0x30(%rax) leaq 0x4(%rsp), ...
/project-everest[P]mbedtls/library/rsa.c
rsa_rsassa_pkcs1_v15_encode
static int rsa_rsassa_pkcs1_v15_encode( mbedtls_md_type_t md_alg, unsigned int hashlen, const unsigned char *hash, size_t dst_len, unsigned char *dst ) { si...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %r8, %rbx movq %rcx, %r14 movl %edi, %r13d andq $0x0, 0x18(%rsp) andq $0x0, 0x10(%rsp) testl %edi, %edi je 0x1701b movq %rdx, 0x8(%rsp) movl %r13d, %edi callq 0x12eb3 movl $0xffffbf80, %ebp # imm = 0xFFFFBF80 testq %rax, %rax ...
/project-everest[P]mbedtls/library/rsa.c
mbedtls_rsa_rsassa_pss_verify_ext
int mbedtls_rsa_rsassa_pss_verify_ext( mbedtls_rsa_context *ctx, int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, int mode, mbedtls_md_type_t md_alg, unsi...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x488, %rsp # imm = 0x488 movl %r9d, %ebx movl %r8d, %r15d movq %rdi, %r14 cmpl $0x1, %ecx jne 0x171b9 movl $0xffffbf80, %ebp # imm = 0xFFFFBF80 cmpl $0x1, 0x148(%r14) jne 0x1733c movq 0x8(%r14), %r13 leaq -0x401(%r13), %rax cmpq $...
/project-everest[P]mbedtls/library/rsa.c
mbedtls_rsa_self_test
int mbedtls_rsa_self_test( int verbose ) { int ret = 0; #if defined(MBEDTLS_PKCS1_V15) size_t len; mbedtls_rsa_context rsa; unsigned char rsa_plaintext[PT_LEN]; unsigned char rsa_decrypted[PT_LEN]; unsigned char rsa_ciphertext[KEY_LEN]; #if defined(MBEDTLS_SHA1_C) unsigned char sha1sum[20]; ...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x258, %rsp # imm = 0x258 movl %edi, %ebx movq %rsp, %r14 movq %r14, %rdi callq 0xe600 leaq 0x80(%rsp), %rdi movl $0x150, %edx # imm = 0x150 xorl %esi, %esi callq 0x7110 leaq 0xaf14(%rip), %rdx # 0x22640 pushq $0x10 popq %rsi movq %r14, %rdi c...
/project-everest[P]mbedtls/library/rsa.c
mbedtls_rsa_deduce_primes
int mbedtls_rsa_deduce_primes( mbedtls_mpi const *N, mbedtls_mpi const *E, mbedtls_mpi const *D, mbedtls_mpi *P, mbedtls_mpi *Q ) { int ret = 0; uint16_t attempt; /* Number of current attempt */ uint16_t iter; /* Number of squares computed in the current atte...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rcx, %rbx testq %rcx, %rcx sete %al testq %r8, %r8 sete %cl orb %al, %cl pushq $-0x4 popq %rbp jne 0x17ae9 cmpq $0x0, 0x10(%rbx) jne 0x17ae9 movq %r8, %r14 cmpq $0x0, 0x10(%r8) je 0x17afa movl %ebp, %eax addq $0x48, %rsp popq %rbx ...
/project-everest[P]mbedtls/library/rsa_internal.c
mbedtls_sha1_starts_ret
int mbedtls_sha1_starts_ret( mbedtls_sha1_context *ctx ) { ctx->total[0] = 0; ctx->total[1] = 0; ctx->state[0] = 0x67452301; ctx->state[1] = 0xEFCDAB89; ctx->state[2] = 0x98BADCFE; ctx->state[3] = 0x10325476; ctx->state[4] = 0xC3D2E1F0; return( 0 ); }
movaps 0x9e2c(%rip), %xmm0 # 0x22250 movups %xmm0, (%rdi) movabsq $0x1032547698badcfe, %rax # imm = 0x1032547698BADCFE movq %rax, 0x10(%rdi) movl $0xc3d2e1f0, 0x18(%rdi) # imm = 0xC3D2E1F0 xorl %eax, %eax retq
/project-everest[P]mbedtls/library/sha1.c
mbedtls_internal_sha1_process
int mbedtls_internal_sha1_process( mbedtls_sha1_context *ctx, const unsigned char data[64] ) { uint32_t temp, W[16], A, B, C, D, E; GET_UINT32_BE( W[ 0], data, 0 ); GET_UINT32_BE( W[ 1], data, 4 ); GET_UINT32_BE( W[ 2], data, 8 ); GET_UINT32_BE( W[ 3], data, 12...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rsi, %r14 movl (%rsi), %r12d movl 0x4(%rsi), %eax bswapl %r12d bswapl %eax movq %rax, -0x38(%rsp) movl 0x8(%rsi), %r15d movq %rdi, -0x10(%rsp) movl 0x8(%rdi), %edx movl 0xc(%rdi), %r11d movl 0x10(%rdi), %r10d movl 0x14(%rdi), %ecx movl 0x18(%rdi), ...
/project-everest[P]mbedtls/library/sha1.c
mbedtls_sha256_starts_ret
int mbedtls_sha256_starts_ret( mbedtls_sha256_context *ctx, int is224 ) { ctx->total[0] = 0; ctx->total[1] = 0; if( is224 == 0 ) { /* SHA-256 */ ctx->state[0] = 0x6A09E667; ctx->state[1] = 0xBB67AE85; ctx->state[2] = 0x3C6EF372; ctx->state[3] = 0xA54FF53A; ...
andq $0x0, (%rdi) testl %esi, %esi je 0x19907 movaps 0x92a4(%rip), %xmm0 # 0x22ba0 jne 0x19910 movaps 0x92ab(%rip), %xmm1 # 0x22bb0 jmp 0x19917 movaps 0x9282(%rip), %xmm0 # 0x22b90 je 0x198fe movaps 0x92a9(%rip), %xmm1 # 0x22bc0 movups %xmm0, 0x8(%rdi) movups %xmm1, 0x18(%rdi) movl %esi, 0x68(%rdi) xorl...
/project-everest[P]mbedtls/library/sha256.c
mbedtls_internal_sha256_process
int mbedtls_internal_sha256_process( mbedtls_sha256_context *ctx, const unsigned char data[64] ) { uint32_t temp1, temp2, W[64]; uint32_t A[8]; unsigned int i; for( i = 0; i < 8; i++ ) A[i] = ctx->state[i]; #if defined(MBEDTLS_SHA256_SMALLER) for( i = 0; i <...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xd8, %rsp xorl %eax, %eax cmpq $0x8, %rax je 0x19950 movl 0x8(%rdi,%rax,4), %ecx movl %ecx, -0x60(%rsp,%rax,4) incq %rax jmp 0x1993d xorl %eax, %eax cmpq $0x10, %rax je 0x19966 movl (%rsi,%rax,4), %ecx bswapl %ecx movl %ecx, -0x30(%rsp,%rax,4) inc...
/project-everest[P]mbedtls/library/sha256.c
mbedtls_sha512_update_ret
int mbedtls_sha512_update_ret( mbedtls_sha512_context *ctx, const unsigned char *input, size_t ilen ) { int ret; size_t fill; unsigned int left; if( ilen == 0 ) return( 0 ); left = (unsigned int) (ctx->total[0] & 0x7F); fill...
testq %rdx, %rdx je 0x1ae69 pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movq (%rdi), %rax movl %eax, %ecx andl $0x7f, %ecx movq %rax, %rsi addq %rdx, %rsi movq %rsi, (%rdi) jae 0x1add8 incq 0x8(%r14) xorl %ebp, %ebp testl %ecx, %ecx je 0x1adf6 movl $0x80,...
/project-everest[P]mbedtls/library/sha512.c
mbedtls_sha512_self_test
int mbedtls_sha512_self_test( int verbose ) { int i, j, k, buflen, ret = 0; unsigned char *buf; unsigned char sha512sum[64]; mbedtls_sha512_context ctx; buf = mbedtls_calloc( 1024, sizeof(unsigned char) ); if( NULL == buf ) { if( verbose != 0 ) mbedtls_printf( "Buffer al...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x138, %rsp # imm = 0x138 movl %edi, %r12d pushq $0x1 popq %rsi movl $0x400, %edi # imm = 0x400 callq 0x7150 testq %rax, %rax je 0x1b3ab movq %rax, %rbx leaq 0x10(%rsp), %r14 movl $0xd8, %edx movq %r14, %rdi xorl %esi, %esi ca...
/project-everest[P]mbedtls/library/sha512.c
mbedtls_timing_get_timer
unsigned long mbedtls_timing_get_timer( struct mbedtls_timing_hr_time *val, int reset ) { struct _hr_time *t = (struct _hr_time *) val; if( reset ) { gettimeofday( &t->start, NULL ); return( 0 ); } else { unsigned long delta; struct timeval now; gettimeof...
pushq %r14 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx testl %esi, %esi je 0x1b437 xorl %r14d, %r14d movq %rbx, %rdi xorl %esi, %esi callq 0x7100 jmp 0x1b46b leaq 0x8(%rsp), %r14 movq %r14, %rdi xorl %esi, %esi callq 0x7100 movq (%r14), %rcx movq 0x8(%r14), %rax subq (%rbx), %rcx imulq $0x3e8, %rcx, %rcx # imm = 0...
/project-everest[P]mbedtls/library/timing.c
mbedtls_timing_get_delay
int mbedtls_timing_get_delay( void *data ) { mbedtls_timing_delay_context *ctx = (mbedtls_timing_delay_context *) data; unsigned long elapsed_ms; if( ctx->fin_ms == 0 ) return( -1 ); elapsed_ms = mbedtls_timing_get_timer( &ctx->timer, 0 ); if( elapsed_ms >= ctx->fin_ms ) return( 2...
cmpl $0x0, 0x24(%rdi) je 0x1b4fb pushq %rbx movq %rdi, %rbx xorl %esi, %esi callq 0x1b41a movq %rax, %rcx movl 0x24(%rbx), %eax cmpq %rax, %rcx jae 0x1b4ff movl 0x20(%rbx), %edx xorl %eax, %eax cmpq %rdx, %rcx setae %al jmp 0x1b502 pushq $-0x1 popq %rax retq pushq $0x2 popq %rax popq %rbx retq
/project-everest[P]mbedtls/library/timing.c
mbedtls_timing_self_test
int mbedtls_timing_self_test( int verbose ) { unsigned long cycles = 0, ratio = 0; unsigned long millisecs = 0, secs = 0; int hardfail = 0; struct mbedtls_timing_hr_time hires; uint32_t a = 0, b = 0; mbedtls_timing_delay_context ctx; if( verbose != 0 ) mbedtls_printf( " TIMING test...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movl %edi, %ebp testl %edi, %edi je 0x1b532 leaq 0x8140(%rip), %rdi # 0x2365f callq 0x7070 leaq 0x8025(%rip), %rdi # 0x23550 xorl %eax, %eax callq 0x70c0 leaq 0x28(%rsp), %rdi pushq $0x1 popq %rbx movl %ebx, %esi callq 0x1b41a ...
/project-everest[P]mbedtls/library/timing.c
busy_msleep
static void busy_msleep( unsigned long msec ) { struct mbedtls_timing_hr_time hires; unsigned long i = 0; /* for busy-waiting */ volatile unsigned long j; /* to prevent optimisation */ (void) mbedtls_timing_get_timer( &hires, 1 ); while( mbedtls_timing_get_timer( &hires, 0 ) < msec ) i++; ...
pushq %r15 pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %rbx leaq 0x10(%rsp), %r14 pushq $0x1 popq %rsi movq %r14, %rdi callq 0x1b41a pushq $-0x1 popq %r15 movq %r14, %rdi xorl %esi, %esi callq 0x1b41a incq %r15 cmpq %rbx, %rax jb 0x1b80e movq %r15, 0x8(%rsp) movq 0x8(%rsp), %rax addq $0x30, %rsp popq %rbx popq %r...
/project-everest[P]mbedtls/library/timing.c
mbedtls_internal_aes_decrypt
int mbedtls_internal_aes_decrypt( mbedtls_aes_context *ctx, const unsigned char input[16], unsigned char output[16] ) { int i; uint32_t *RK, X0, X1, X2, X3, Y0, Y1, Y2, Y3; RK = ctx->rk; GET_UINT32_LE( X0, input, 0 ); X0 ^= *RK++; ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq 0x8(%rdi), %rax movl (%rax), %ecx movl 0x4(%rax), %r8d xorl (%rsi), %ecx xorl 0x4(%rsi), %r8d movq %rdx, -0x8(%rsp) movl 0x8(%rax), %r11d xorl 0x8(%rsi), %r11d movl 0xc(%rax), %r15d xorl 0xc(%rsi), %r15d movl (%rdi), %edx sarl %edx addq $0x2c, %rax ...
/project-everest[P]mbedtls/library/aes.c
mbedtls_aes_crypt_ctr
int mbedtls_aes_crypt_ctr( mbedtls_aes_context *ctx, size_t length, size_t *nc_off, unsigned char nonce_counter[16], unsigned char stream_block[16], const unsigned char *input, unsig...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %r9, %rbx movq %r8, %r14 movq %rcx, %r12 movq %rsi, %r13 movq %rdi, 0x10(%rsp) movq 0x50(%rsp), %rbp movq %rdx, 0x8(%rsp) movq (%rdx), %r15 subq $0x1, %r13 jb 0x1cb7b testq %r15, %r15 jne 0x1cb63 movq 0x10(%rsp), %rdi pushq $0x1 pop...
/project-everest[P]mbedtls/library/aes.c
mbedtls_aes_self_test
int mbedtls_aes_self_test( int verbose ) { int ret = 0, i, j, u, mode; unsigned int keybits; unsigned char key[32]; unsigned char buf[64]; const unsigned char *aes_tests; #if defined(MBEDTLS_CIPHER_MODE_CBC) || defined(MBEDTLS_CIPHER_MODE_CFB) unsigned char iv[16]; #endif #if defined(MBEDTLS_CIP...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1f8, %rsp # imm = 0x1F8 movl %edi, 0xc(%rsp) pxor %xmm0, %xmm0 leaq 0x70(%rsp), %rax movdqa %xmm0, (%rax) movdqa %xmm0, 0x10(%rax) leaq 0xc0(%rsp), %rdi movl $0x120, %edx # imm = 0x120 xorl %esi, %esi callq 0x7110 leaq 0x20(...
/project-everest[P]mbedtls/library/aes.c
mbedtls_aesni_crypt_ecb
int mbedtls_aesni_crypt_ecb( mbedtls_aes_context *ctx, int mode, const unsigned char input[16], unsigned char output[16] ) { asm( "movdqu (%3), %%xmm0 \n\t" // load input "movdqu (%1), %%xmm1 \n\t" // load round key 0 "pxor...
movl (%rdi), %eax movq 0x8(%rdi), %rdi movdqu (%rdx), %xmm0 movdqu (%rdi), %xmm1 pxor %xmm1, %xmm0 addq $0x10, %rdi subl $0x1, %eax testl %esi, %esi je 0x1d20d movdqu (%rdi), %xmm1 aesenc %xmm1, %xmm0 addq $0x10, %rdi subl $0x1, %eax jne 0x1d1f0 movdqu (%rdi), %xmm1 aesenclast %xmm1, %xmm0 jmp 0x1d228 movdqu (%rdi), %x...
/project-everest[P]mbedtls/library/aesni.c
mbedtls_aesni_inverse_key
void mbedtls_aesni_inverse_key( unsigned char *invkey, const unsigned char *fwdkey, int nr ) { unsigned char *ik = invkey; const unsigned char *fk = fwdkey + 16 * nr; memcpy( ik, fk, 16 ); for( fk -= 16, ik += 16; fk > fwdkey; fk -= 16, ik += 16 ) asm( "movdqu (%0), %%x...
shll $0x4, %edx movslq %edx, %rax addq %rsi, %rax addq $-0x10, %rax movups 0x10(%rax), %xmm0 movups %xmm0, (%rdi) addq $0x10, %rdi cmpq %rsi, %rax jbe 0x1d3cb movdqu (%rax), %xmm0 aesimc %xmm0, %xmm0 movdqu %xmm0, (%rdi) addq $0x10, %rdi addq $-0x10, %rax jmp 0x1d3af movups (%rax), %xmm0 movups %xmm0, (%rdi) retq
/project-everest[P]mbedtls/library/aesni.c
mbedtls_aesni_setkey_enc
int mbedtls_aesni_setkey_enc( unsigned char *rk, const unsigned char *key, size_t bits ) { switch( bits ) { case 128: aesni_setkey_enc_128( rk, key ); break; case 192: aesni_setkey_enc_192( rk, key ); break; case 256: aesni_setkey_enc_256( rk, ...
cmpq $0x100, %rdx # imm = 0x100 je 0x1d562 cmpq $0xc0, %rdx je 0x1d4a3 cmpq $0x80, %rdx jne 0x1d628 movdqu (%rsi), %xmm0 movdqu %xmm0, (%rdi) jmp 0x1d430 pshufd $0xff, %xmm1, %xmm1 # xmm1 = xmm1[3,3,3,3] pxor %xmm0, %xmm1 pslldq $0x4, %xmm0 # xmm0 = zero,zero,zero,zero,xmm0[0,1,2,3,4,5,6,7,8,...
/project-everest[P]mbedtls/library/aesni.c
new_range
void new_range(int ndim, int dims[], int lo[], int hi[], int new_lo[], int new_hi[]) { int dim; for(dim=0; dim <ndim;dim++){ int toss, range; int diff = hi[dim] -lo[dim]+1; assert(diff <= dims[dim]); range = dims[dim]-diff; tos...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %r9, (%rsp) movq %rcx, 0x10(%rsp) movq %rdx, 0x8(%rsp) testl %edi, %edi jle 0x164c0 movq %r8, %r14 movq %rsi, %r13 movl %edi, %ebp xorl %ebx, %ebx movq 0x10(%rsp), %rax movl (%rax,%rbx,4), %r15d movq 0x8(%rsp), %rax movl (%rax,%rbx,...
/GlobalArrays[P]ga/global/testing/util.c
print_subscript
void print_subscript(char *pre,int ndim, int subscript[], char* post) { int i; printf("%s [",pre); for(i=0;i<ndim;i++){ printf("%d",subscript[i]); if(i==ndim-1)printf("] %s",post); else printf(","); } }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rcx, %rbx movq %rdx, %r14 movl %esi, %r15d movq %rdi, %rsi leaq 0xad986(%rip), %rdi # 0xc3f5b xorl %eax, %eax callq 0x3050 testl %r15d, %r15d jle 0x1662a leal -0x1(%r15), %r13d movl %r15d, %ebp leaq 0xb0775(%rip), %r15 # 0xc6d64 ...
/GlobalArrays[P]ga/global/testing/util.c
compare_patches_
Integer FATR compare_patches_(Integer *me, double* eps, Integer *ndim, double *array1, Integer LO1[], Integer HI1[], Integer DIMS1[], double *array2, Integer LO2[], Integer HI2[], Integer DIMS2[]) { int hi1[GA_MAX_DIM], lo1[GA_MAX_D...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0xc0, %rsp movq %rsi, %rax movq (%rdx), %rsi cmpl $0x8, %esi jge 0x16cf2 movq 0xf8(%rsp), %r10 testl %esi, %esi jle 0x16ca2 movq 0x110(%rsp), %rdx movq 0x108(%rsp), %r15 movq 0x100(%rsp), %r14 movq 0xf0(%rsp), %rbx movl %esi, %r11d andl $0x7fffffff, %r11d ...
/GlobalArrays[P]ga/global/testing/util.c
NGA_Set_chunk64
void NGA_Set_chunk64(int g_a, int64_t chunk[]) { Integer aa, *ptr, ndim; Integer _ga_work[MAXDIM]; aa = (Integer)g_a; ndim = wnga_get_dimension(aa); if(!chunk)ptr=(Integer*)0; else { COPYC2F(chunk,_ga_work, ndim); ptr = _ga_work; } wnga_set_chunk(aa, ptr); }
pushq %r14 pushq %rbx subq $0x38, %rsp movq %rsi, %r14 movslq %edi, %rbx movq %rbx, %rdi callq 0x7e34f testq %r14, %r14 je 0x1899d movq %rsp, %rsi testq %rax, %rax jle 0x1899f decq %rax movq (%r14), %rcx movq %rcx, (%rsp,%rax,8) addq $0x8, %r14 addq $-0x1, %rax jb 0x1898a jmp 0x1899f xorl %esi, %esi movq %rbx, %rdi cal...
/GlobalArrays[P]ga/global/src/capi.c
NGA_Set_restricted
void NGA_Set_restricted(int g_a, int list[], int size) { Integer aa; Integer asize = (Integer)size; int i; Integer *_ga_map_capi; aa = (Integer)g_a; _ga_map_capi = (Integer*)malloc(size * sizeof(Integer)); for (i=0; i<size; i++) _ga_map_capi[i] = (Integer)list[i]; wnga_set_restric...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %edx, %r12d movq %rsi, %r15 movl %edi, %ebp movslq %edx, %rbx leaq (,%rbx,8), %rdi callq 0x33e0 movq %rax, %r14 testl %ebx, %ebx jle 0x18b73 movl %r12d, %eax xorl %ecx, %ecx movslq (%r15,%rcx,4), %rdx movq %rdx, (%r14,%rcx,8) incq %rcx cmpq %rcx, %rax jne 0x18...
/GlobalArrays[P]ga/global/src/capi.c
GA_Set_block_cyclic_proc_grid
void GA_Set_block_cyclic_proc_grid(int g_a, int block[], int proc_grid[]) { Integer aa, ndim; Integer _ga_dims[MAXDIM]; Integer _ga_lo[MAXDIM]; aa = (Integer)g_a; ndim = wnga_get_dimension(aa); COPYC2F(block,_ga_dims, ndim); COPYC2F(proc_grid,_ga_lo, ndim); wnga_set_block_cyclic_proc_gri...
pushq %r15 pushq %r14 pushq %rbx subq $0x80, %rsp movq %rdx, %r14 movq %rsi, %r15 movslq %edi, %rbx movq %rbx, %rdi callq 0x7e34f testq %rax, %rax jle 0x18e03 movq %rax, %rcx movslq (%r15), %rdx movq %rdx, 0x38(%rsp,%rcx,8) addq $0x4, %r15 decq %rcx jne 0x18ddc testq %rax, %rax jle 0x18e03 movslq (%r14), %rcx movq %rcx...
/GlobalArrays[P]ga/global/src/capi.c
NGA_Set_tiled_irreg_proc_grid64
void NGA_Set_tiled_irreg_proc_grid64(int g_a, int64_t mapc[], int64_t nblocks[], int64_t proc_grid[]) { Integer aa, ndim; Integer *_ga_map_capi; Integer _nblocks[MAXDIM]; Integer _proc_grid[MAXDIM]; aa = (Integer)g_a; ndim = wnga_get_dimension(aa); _ga_map_capi = copy_map64(nblocks, (in...
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x80, %rsp movq %rcx, %r14 movq %rdx, %r13 movq %rsi, %r15 movslq %edi, %rbx movq %rbx, %rdi callq 0x7e34f movq %rax, %r12 movq %r13, %rdi movl %r12d, %esi movq %r15, %rdx callq 0x17e6f movq %rax, %r15 testq %r12, %r12 jle 0x19323 movq %r12, %rax movq (%r13),...
/GlobalArrays[P]ga/global/src/capi.c