name stringlengths 1 473k | code stringlengths 7 647k | asm stringlengths 4 3.39M | file stringlengths 8 196 |
|---|---|---|---|
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 0x40(%rax), %rax
movq 0x18(%rax), %rax
cmpq -0x8(%rbp), %rax
je 0x45c53
jmp 0x45ce6
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x3aab0
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rdi
callq 0x4... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
glfwPlatformSetWindowTitle | void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title)
{
#if defined(X_HAVE_UTF8_STRING)
Xutf8SetWMProperties(_glfw.x11.display,
window->x11.handle,
title, title,
NULL, 0,
NULL, NULL, NULL);
#else
... | pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq 0x2bf02e(%rip), %rax # 0x304d38
movq 0x1fec0(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x348(%rax), %rsi
movq -0x10(%rbp), %rdx
movq -0x10(%rbp), %rcx
xorl %eax, %eax
movl %eax, %r8d
xorl %r9d, %r9d
movq $0x0, (%rsp)
movq $0x0... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
glfwPlatformSetWindowIcon | void _glfwPlatformSetWindowIcon(_GLFWwindow* window,
int count, const GLFWimage* images)
{
if (count)
{
int i, j, longCount = 0;
for (i = 0; i < count; i++)
longCount += 2 + images[i].width * images[i].height;
long* icon = calloc(longCount,... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
cmpl $0x0, -0xc(%rbp)
je 0x460ac
movl $0x0, -0x24(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x45edb
movq -0x18(%rbp), %rax
movslq -0x1c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
glfwPlatformGetWindowPos | void _glfwPlatformGetWindowPos(_GLFWwindow* window, int* xpos, int* ypos)
{
Window dummy;
int x, y;
XTranslateCoordinates(_glfw.x11.display, window->x11.handle, _glfw.x11.root,
0, 0, &x, &y, &dummy);
if (xpos)
*xpos = x;
if (ypos)
*ypos = y;
} | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq 0x2bec1d(%rip), %rax # 0x304d38
movq 0x1fec0(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x348(%rax), %rsi
leaq 0x2bec04(%rip), %rax # 0x304d38
movq 0x1fed0(%rax), %rdx
xorl %r8d, %r8d
leaq -0x24(%rbp),... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
glfwPlatformGetWindowSize | void _glfwPlatformGetWindowSize(_GLFWwindow* window, int* width, int* height)
{
XWindowAttributes attribs;
XGetWindowAttributes(_glfw.x11.display, window->x11.handle, &attribs);
if (width)
*width = attribs.width;
if (height)
*height = attribs.height;
} | pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq 0x2bea4a(%rip), %rax # 0x304d38
movq 0x1fec0(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x348(%rax), %rsi
leaq -0xa0(%rbp), %rdx
callq 0x11c00
cmpq $0x0, -0x10(%rbp)
je 0x4631f
movl -0x98(%rbp), %ecx
movq... | /tuket[P]gltf_viewer/libs/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, 0x40(%rax)
je 0x4637a
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
movq 0x18(%rax), %rax
cmpq -0x8(%rbp), %rax
jne 0x46378
movq -0x8(%rbp), %rdi
callq 0x45980
jmp 0x463b7
movq -... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
updateNormalHints | static void updateNormalHints(_GLFWwindow* window, int width, int height)
{
XSizeHints* hints = XAllocSizeHints();
if (!window->monitor)
{
if (window->resizable)
{
if (window->minwidth != GLFW_DONT_CARE &&
window->minheight != GLFW_DONT_CARE)
{
... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
callq 0x110f0
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x40(%rax)
jne 0x46507
movq -0x8(%rbp), %rax
cmpl $0x0, 0x8(%rax)
je 0x464d5
movq -0x8(%rbp), %rax
cmpl $-0x1, 0x50(%rax)
je 0x46446
movq -... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
glfwPlatformGetWindowFrameSize | void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window,
int* left, int* top,
int* right, int* bottom)
{
long* extents = NULL;
if (window->monitor || !window->decorated)
return;
if (_glfw.x11.NET_FRAME_EXTENTS == None)
... | pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp # imm = 0x100
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq $0x0, -0x30(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x40(%rax)
jne 0x4667c
movq -0x8(%rbp), %rax
cmpl $0x0, 0xc(%rax)
jne 0x46681
jmp... | /tuket[P]gltf_viewer/libs/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, 0x360(%rax)
je 0x469de
movl $0x10008, %edi # imm = 0x10008
leaq 0x236e7c(%rip), %rsi # 0x27d851
movb $0x0, %al
callq 0x366f0
jmp 0x46a1c
leaq 0x2be353(%rip), %rax # 0x304d38
movq 0x1fec0(%rax), %rdi
movq -0... | /tuket[P]gltf_viewer/libs/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, 0x360(%rax)
je 0x46a61
movl $0x10008, %edi # imm = 0x10008
leaq 0x236dfc(%rip), %rsi # 0x27d851
movb $0x0, %al
callq 0x366f0
jmp 0x46b38
movq -0x8(%rbp), %rdi
callq 0x46b40
cmpl $0x0, %eax
je 0x46a9b
leaq 0x2b... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
waitForVisibilityNotify | static GLFWbool waitForVisibilityNotify(_GLFWwindow* window)
{
XEvent dummy;
double timeout = 0.1;
while (!XCheckTypedWindowEvent(_glfw.x11.display,
window->x11.handle,
VisibilityNotify,
&dummy))
{
... | pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x10(%rbp)
movsd 0x236ba9(%rip), %xmm0 # 0x27d730
movsd %xmm0, -0xd8(%rbp)
leaq 0x2be1a2(%rip), %rax # 0x304d38
movq 0x1fec0(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x348(%rax), %rsi
movl $0xf, %edx
leaq -0xd0(%rbp), %rcx
callq 0x11860
cmpl $0x0, %eax
setne %... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
glfwPlatformRequestWindowAttention | void _glfwPlatformRequestWindowAttention(_GLFWwindow* window)
{
if (!_glfw.x11.NET_WM_STATE || !_glfw.x11.NET_WM_STATE_DEMANDS_ATTENTION)
return;
sendEventToWM(window,
_glfw.x11.NET_WM_STATE,
_NET_WM_STATE_ADD,
_glfw.x11.NET_WM_STATE_DEMANDS_ATTENTI... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
leaq 0x2bded5(%rip), %rax # 0x304d38
cmpq $0x0, 0x20b20(%rax)
je 0x46e7e
leaq 0x2bdec4(%rip), %rax # 0x304d38
cmpq $0x0, 0x20b48(%rax)
jne 0x46e80
jmp 0x46ebb
movq -0x8(%rbp), %rdi
leaq 0x2bdead(%rip), %rax # 0x304d38
movq 0x20b20(%rax), %rsi
le... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
glfwPlatformWindowMaximized | int _glfwPlatformWindowMaximized(_GLFWwindow* window)
{
Atom* states;
unsigned long i;
GLFWbool maximized = GLFW_FALSE;
if (!_glfw.x11.NET_WM_STATE ||
!_glfw.x11.NET_WM_STATE_MAXIMIZED_VERT ||
!_glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ)
{
return maximized;
}
const unsig... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl $0x0, -0x24(%rbp)
leaq 0x2bdb4e(%rip), %rax # 0x304d38
cmpq $0x0, 0x20b20(%rax)
je 0x47216
leaq 0x2bdb3d(%rip), %rax # 0x304d38
cmpq $0x0, 0x20b38(%rax)
je 0x47216
leaq 0x2bdb2c(%rip), %rax # 0x304d38
cmpq $0x0, 0x20b40(%rax)
jne 0x47221
m... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
glfwPlatformWindowHovered | int _glfwPlatformWindowHovered(_GLFWwindow* window)
{
Window w = _glfw.x11.root;
while (w)
{
Window root;
int rootX, rootY, childX, childY;
unsigned int mask;
if (!XQueryPointer(_glfw.x11.display, w,
&root, &w, &rootX, &rootY, &childX, &childY, &ma... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
leaq 0x2bda55(%rip), %rax # 0x304d38
movq 0x1fed0(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x47360
leaq 0x2bda3c(%rip), %rax # 0x304d38
movq 0x1fec0(%rax), %rdi
movq -0x18(%rbp), %rsi
leaq -0x20(%rbp), %rdx
leaq -0x18(%rbp), %r... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
glfwPlatformSetWindowDecorated | void _glfwPlatformSetWindowDecorated(_GLFWwindow* window, GLFWbool enabled)
{
struct
{
unsigned long flags;
unsigned long functions;
unsigned long decorations;
long input_mode;
unsigned long status;
} hints = {0};
hints.flags = MWM_HINTS_DECORATIONS;
hints.de... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
leaq -0x38(%rbp), %rdi
xorl %esi, %esi
movl $0x28, %edx
callq 0x11370
movq $0x2, -0x38(%rbp)
movl -0xc(%rbp), %edx
xorl %eax, %eax
movl $0x1, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
cltq
movq %rax, -0x28(%rbp)
leaq 0x2bd8e4(%rip), %... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
glfwPlatformSetWindowFloating | void _glfwPlatformSetWindowFloating(_GLFWwindow* window, GLFWbool enabled)
{
if (!_glfw.x11.NET_WM_STATE || !_glfw.x11.NET_WM_STATE_ABOVE)
return;
if (_glfwPlatformWindowVisible(window))
{
const long action = enabled ? _NET_WM_STATE_ADD : _NET_WM_STATE_REMOVE;
sendEventToWM(window,
... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
leaq 0x2bd872(%rip), %rax # 0x304d38
cmpq $0x0, 0x20b20(%rax)
je 0x474e1
leaq 0x2bd861(%rip), %rax # 0x304d38
cmpq $0x0, 0x20b28(%rax)
jne 0x474e6
jmp 0x4772b
movq -0x8(%rbp), %rdi
callq 0x46280
cmpl $0x0, %eax
je 0x4754b
movl... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
glfwPlatformGetWindowOpacity | float _glfwPlatformGetWindowOpacity(_GLFWwindow* window)
{
float opacity = 1.f;
if (XGetSelectionOwner(_glfw.x11.display, _glfw.x11.NET_WM_CM_Sx))
{
CARD32* value = NULL;
if (_glfwGetWindowPropertyX11(window->x11.handle,
_glfw.x11.NET_WM_WINDOW_OPACITY... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movss 0x212a70(%rip), %xmm0 # 0x25a1c4
movss %xmm0, -0xc(%rbp)
leaq 0x2bd5d8(%rip), %rax # 0x304d38
movq 0x1fec0(%rax), %rdi
leaq 0x2bd5ca(%rip), %rax # 0x304d38
movq 0x20b68(%rax), %rsi
callq 0x11cb0
cmpq $0x0, %rax
je 0x477e7
movq $0x0, -0x18(%... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
glfwPlatformSetRawMouseMotion | void _glfwPlatformSetRawMouseMotion(_GLFWwindow *window, GLFWbool enabled)
{
if (!_glfw.x11.xi.available)
return;
if (_glfw.x11.disabledCursorWindow != window)
return;
if (enabled)
enableRawMouseMotion(window);
else
disableRawMouseMotion(window);
} | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
leaq 0x2bd4a2(%rip), %rax # 0x304d38
cmpl $0x0, 0x20de8(%rax)
jne 0x478a1
jmp 0x478d1
leaq 0x2bd490(%rip), %rax # 0x304d38
movq 0x20ab8(%rax), %rax
cmpq -0x8(%rbp), %rax
je 0x478b7
jmp 0x478d1
cmpl $0x0, -0xc(%rbp)
je 0x478c8
... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
enableRawMouseMotion | static void enableRawMouseMotion(_GLFWwindow* window)
{
XIEventMask em;
unsigned char mask[XIMaskLen(XI_RawMotion)] = { 0 };
em.deviceid = XIAllMasterDevices;
em.mask_len = sizeof(mask);
em.mask = mask;
XISetMask(mask, XI_RawMotion);
XISelectEvents(_glfw.x11.display, _glfw.x11.root, &em, 1... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
leaq -0x1b(%rbp), %rdi
xorl %esi, %esi
movl $0x3, %edx
callq 0x11370
movl $0x1, -0x18(%rbp)
movl $0x3, -0x14(%rbp)
leaq -0x1b(%rbp), %rax
movq %rax, -0x10(%rbp)
movzbl -0x19(%rbp), %eax
orl $0x2, %eax
movb %al, -0x19(%rbp)
leaq 0x2bd415(%rip), %rax # ... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
glfwPlatformPollEvents | void _glfwPlatformPollEvents(void)
{
_GLFWwindow* window;
#if defined(__linux__)
_glfwDetectJoystickConnectionLinux();
#endif
XPending(_glfw.x11.display);
while (XQLength(_glfw.x11.display))
{
XEvent event;
XNextEvent(_glfw.x11.display, &event);
processEvent(&event);
}
... | pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
callq 0x502b0
leaq 0x2bd331(%rip), %rax # 0x304d38
movq 0x1fec0(%rax), %rdi
callq 0x115d0
leaq 0x2bd31e(%rip), %rax # 0x304d38
movq 0x1fec0(%rax), %rdi
callq 0x11d00
cmpl $0x0, %eax
je 0x47a53
leaq 0x2bd306(%rip), %rax # 0x304d38
movq 0x1fec0(%rax), %rdi
leaq -0xc8(%... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
glfwPlatformSetCursorPos | void _glfwPlatformSetCursorPos(_GLFWwindow* window, double x, double y)
{
// Store the new position so it can be recognized later
window->x11.warpCursorPosX = (int) x;
window->x11.warpCursorPosY = (int) y;
XWarpPointer(_glfw.x11.display, None, window->x11.handle,
0,0,0,0, (int) x, (int... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movsd %xmm0, -0x10(%rbp)
movsd %xmm1, -0x18(%rbp)
cvttsd2si -0x10(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x388(%rax)
cvttsd2si -0x18(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x38c(%rax)
leaq 0x2bbcfd(%rip), %rax # 0x304d38
movq 0x1fec0(%rax)... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
glfwPlatformPostEmptyEvent | void _glfwPlatformPostEmptyEvent(void)
{
XEvent event = { ClientMessage };
event.xclient.window = _glfw.x11.helperWindowHandle;
event.xclient.format = 32; // Data is 32-bit longs
event.xclient.message_type = _glfw.x11.NULL_;
XSendEvent(_glfw.x11.display, _glfw.x11.helperWindowHandle, False, 0, &eve... | pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
leaq -0xc0(%rbp), %rdi
xorl %esi, %esi
movl $0xc0, %edx
callq 0x11370
movl $0x21, -0xc0(%rbp)
leaq 0x2bbbd9(%rip), %rax # 0x304d38
movq 0x1fee0(%rax), %rax
movq %rax, -0xa0(%rbp)
movl $0x20, -0x90(%rbp)
leaq 0x2bbbba(%rip), %rax # 0x304d38
movq 0x20c28(%rax), %rax
movq ... | /tuket[P]gltf_viewer/libs/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 0x492a1
movq -0x8(%rbp), %rdi
callq 0x47100
cmpl $0x0, %eax
je 0x4929f
movq -0x8(%rbp), %rdi
callq 0x492f0
jmp 0x492cb
leaq 0x2bba90(%rip), %rax # 0x304d38
movq 0x20ab8(%rax), %rax... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
updateCursorImage | static void updateCursorImage(_GLFWwindow* window)
{
if (window->cursorMode == GLFW_CURSOR_NORMAL)
{
if (window->cursor)
{
XDefineCursor(_glfw.x11.display, window->x11.handle,
window->cursor->x11.handle);
}
else
XUndefineCursor(_g... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x34001, 0x74(%rax) # imm = 0x34001
jne 0x494c0
movq -0x8(%rbp), %rax
cmpq $0x0, 0x48(%rax)
je 0x494a0
leaq 0x2bb8bd(%rip), %rax # 0x304d38
movq 0x1fec0(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x348(%rax), %rsi
movq -0x8(... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
glfwPlatformGetScancodeName | const char* _glfwPlatformGetScancodeName(int scancode)
{
if (!_glfw.x11.xkb.available)
return NULL;
const int key = _glfw.x11.keycodes[scancode];
const KeySym keysym = XkbKeycodeToKeysym(_glfw.x11.display,
scancode, _glfw.x11.xkb.group, 0);
if (keysy... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0xc(%rbp)
leaq 0x2bb826(%rip), %rax # 0x304d38
cmpl $0x0, 0x20d00(%rax)
jne 0x49528
movq $0x0, -0x8(%rbp)
jmp 0x49622
movslq -0xc(%rbp), %rcx
leaq 0x2bb805(%rip), %rax # 0x304d38
movswl 0x205ea(%rax,%rcx,2), %eax
movl %eax, -0x10(%rbp)
leaq 0x2bb7f3(%rip), %... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
encodeUTF8 | static size_t encodeUTF8(char* s, unsigned int ch)
{
size_t count = 0;
if (ch < 0x80)
s[count++] = (char) ch;
else if (ch < 0x800)
{
s[count++] = (ch >> 6) | 0xc0;
s[count++] = (ch & 0x3f) | 0x80;
}
else if (ch < 0x10000)
{
s[count++] = (ch >> 12) | 0xe0;
... | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq $0x0, -0x18(%rbp)
cmpl $0x80, -0xc(%rbp)
jae 0x4966c
movl -0xc(%rbp), %eax
movb %al, %dl
movq -0x8(%rbp), %rax
movq -0x18(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x18(%rbp)
movb %dl, (%rax,%rcx)
jmp 0x497df
cmpl $0x800, -0xc(%rb... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
glfwPlatformCreateStandardCursor | int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape)
{
int native = 0;
if (shape == GLFW_ARROW_CURSOR)
native = XC_left_ptr;
else if (shape == GLFW_IBEAM_CURSOR)
native = XC_xterm;
else if (shape == GLFW_CROSSHAIR_CURSOR)
native = XC_crosshair;
else if (shap... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
cmpl $0x36001, -0x14(%rbp) # imm = 0x36001
jne 0x49898
movl $0x44, -0x18(%rbp)
jmp 0x49905
cmpl $0x36002, -0x14(%rbp) # imm = 0x36002
jne 0x498aa
movl $0x98, -0x18(%rbp)
jmp 0x49903
cmpl $0x36003, -0x14(... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
glfwPlatformSetClipboardString | void _glfwPlatformSetClipboardString(const char* string)
{
free(_glfw.x11.clipboardString);
_glfw.x11.clipboardString = _glfw_strdup(string);
XSetSelectionOwner(_glfw.x11.display,
_glfw.x11.CLIPBOARD,
_glfw.x11.helperWindowHandle,
Current... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
leaq 0x2bb345(%rip), %rax # 0x304d38
movq 0x1ff10(%rax), %rdi
callq 0x117d0
movq -0x8(%rbp), %rdi
callq 0x365c0
movq %rax, %rcx
leaq 0x2bb326(%rip), %rax # 0x304d38
movq %rcx, 0x1ff10(%rax)
leaq 0x2bb318(%rip), %rax # 0x304d38
movq 0x1fec0(%rax)... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
getSelectionString | static const char* getSelectionString(Atom selection)
{
char** selectionString = NULL;
const Atom targets[] = { _glfw.x11.UTF8_STRING, XA_STRING };
const size_t targetCount = sizeof(targets) / sizeof(targets[0]);
if (selection == _glfw.x11.PRIMARY)
selectionString = &_glfw.x11.primarySelectionS... | pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x230, %rsp # imm = 0x230
movq %rdi, -0x20(%rbp)
movq $0x0, -0x28(%rbp)
leaq 0x2bb257(%rip), %rax # 0x304d38
movq 0x20c30(%rax), %rax
movq %rax, -0x40(%rbp)
movq $0x1f, -0x38(%rbp)
movq $0x2, -0x48(%rbp)
movq -0x20(%rbp), %rax
leaq 0x2bb231(%rip), %rc... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
glfwPlatformGetRequiredInstanceExtensions | void _glfwPlatformGetRequiredInstanceExtensions(char** extensions)
{
if (!_glfw.vk.KHR_surface)
return;
if (!_glfw.vk.KHR_xcb_surface || !_glfw.x11.x11xcb.handle)
{
if (!_glfw.vk.KHR_xlib_surface)
return;
}
extensions[0] = "VK_KHR_surface";
// NOTE: VK_KHR_xcb_surf... | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
leaq 0x2bae29(%rip), %rax # 0x304d38
cmpl $0x0, 0x1fea0(%rax)
jne 0x49f1d
jmp 0x49fa1
leaq 0x2bae14(%rip), %rax # 0x304d38
cmpl $0x0, 0x1fea8(%rax)
je 0x49f3e
leaq 0x2bae04(%rip), %rax # 0x304d38
cmpq $0x0, 0x20da0(%rax)
jne 0x49f52
leaq 0x2badf3(%rip), %rax ... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
glfwPlatformGetPhysicalDevicePresentationSupport | int _glfwPlatformGetPhysicalDevicePresentationSupport(VkInstance instance,
VkPhysicalDevice device,
uint32_t queuefamily)
{
VisualID visualID = XVisualIDFromVisual(DefaultVisual(_glfw.x11.display,
... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
leaq 0x2bad6e(%rip), %rax # 0x304d38
movq 0x1fec0(%rax), %rax
movq 0xe8(%rax), %rax
leaq 0x2bad59(%rip), %rcx # 0x304d38
movslq 0x1fec8(%rcx), %rcx
shlq $0x7, %rcx
addq %rcx, %rax
movq 0x40(%rax), %rdi... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
glfwPlatformCreateWindowSurface | VkResult _glfwPlatformCreateWindowSurface(VkInstance instance,
_GLFWwindow* window,
const VkAllocationCallbacks* allocator,
VkSurfaceKHR* surface)
{
if (_glfw.vk.KHR_xcb_surface && _glfw.x11... | pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
leaq 0x2babd6(%rip), %rax # 0x304d38
cmpl $0x0, 0x1fea8(%rax)
je 0x4a287
leaq 0x2babc2(%rip), %rax # 0x304d38
cmpq $0x0, 0x20da0(%rax)
je 0x4a287
leaq 0x2babad(%rip), %rax # 0... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
glfwSetX11SelectionString | GLFWAPI void glfwSetX11SelectionString(const char* string)
{
_GLFW_REQUIRE_INIT();
free(_glfw.x11.primarySelectionString);
_glfw.x11.primarySelectionString = _glfw_strdup(string);
XSetSelectionOwner(_glfw.x11.display,
_glfw.x11.PRIMARY,
_glfw.x11.helperWin... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
leaq 0x2ba905(%rip), %rax # 0x304d38
cmpl $0x0, (%rax)
jne 0x4a44d
movl $0x10001, %edi # imm = 0x10001
xorl %eax, %eax
movl %eax, %esi
movb $0x0, %al
callq 0x366f0
jmp 0x4a4f1
leaq 0x2ba8e4(%rip), %rax # 0x304d38
movq 0x1ff08(%rax), %rdi
c... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
writeTargetToProperty | static Atom writeTargetToProperty(const XSelectionRequestEvent* request)
{
int i;
char* selectionString = NULL;
const Atom formats[] = { _glfw.x11.UTF8_STRING, XA_STRING };
const int formatCount = sizeof(formats) / sizeof(formats[0]);
if (request->selection == _glfw.x11.PRIMARY)
selectionSt... | pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x10(%rbp)
movq $0x0, -0x20(%rbp)
leaq 0x2ba7ca(%rip), %rax # 0x304d38
movq 0x20c30(%rax), %rax
movq %rax, -0x30(%rbp)
movq $0x1f, -0x28(%rbp)
movl $0x2, -0x34(%rbp)
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rax
leaq 0x2ba7a1(%rip), %rcx # 0x304d38
cmpq 0x20c... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
translateState | static int translateState(int state)
{
int mods = 0;
if (state & ShiftMask)
mods |= GLFW_MOD_SHIFT;
if (state & ControlMask)
mods |= GLFW_MOD_CONTROL;
if (state & Mod1Mask)
mods |= GLFW_MOD_ALT;
if (state & Mod4Mask)
mods |= GLFW_MOD_SUPER;
if (state & LockMask)
... | pushq %rbp
movq %rsp, %rbp
movl %edi, -0x4(%rbp)
movl $0x0, -0x8(%rbp)
movl -0x4(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x4aa12
movl -0x8(%rbp), %eax
orl $0x1, %eax
movl %eax, -0x8(%rbp)
movl -0x4(%rbp), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x4aa26
movl -0x8(%rbp), %eax
orl $0x2, %eax
movl %eax, -0x8(%rbp)
m... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
decodeUTF8 | static unsigned int decodeUTF8(const char** s)
{
unsigned int ch = 0, count = 0;
static const unsigned int offsets[] =
{
0x00000000u, 0x00003080u, 0x000e2080u,
0x03c82080u, 0xfa082080u, 0x82082080u
};
do
{
ch = (ch << 6) + (unsigned char) **s;
(*s)++;
cou... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movl $0x0, -0x10(%rbp)
movl -0xc(%rbp), %eax
shll $0x6, %eax
movq -0x8(%rbp), %rcx
movq (%rcx), %rcx
movzbl (%rcx), %ecx
addl %ecx, %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)... | /tuket[P]gltf_viewer/libs/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 0x4ad42
movq -0x10(%rbp), %rcx
xorl %eax, %eax
cmpl $0x0, 0x38(%rcx)
movb %al, -0x21(%rbp)
jne ... | /tuket[P]gltf_viewer/libs/glfw/src/x11_window.c |
glfwKeySym2Unicode | long _glfwKeySym2Unicode(unsigned int keysym)
{
int min = 0;
int max = sizeof(keysymtab) / sizeof(struct codepair) - 1;
int mid;
// First check for Latin-1 characters (1:1 mapping)
if ((keysym >= 0x0020 && keysym <= 0x007e) ||
(keysym >= 0x00a0 && keysym <= 0x00ff))
{
return key... | pushq %rbp
movq %rsp, %rbp
movl %edi, -0xc(%rbp)
movl $0x0, -0x10(%rbp)
movl $0x33b, -0x14(%rbp) # imm = 0x33B
cmpl $0x20, -0xc(%rbp)
jb 0x4ae31
cmpl $0x7e, -0xc(%rbp)
jbe 0x4ae43
cmpl $0xa0, -0xc(%rbp)
jb 0x4ae4f
cmpl $0xff, -0xc(%rbp)
ja 0x4ae4f
movl -0xc(%rbp), %eax
movq %rax, -0x8(%rbp)
jmp 0x4aee9
movl -0xc(%r... | /tuket[P]gltf_viewer/libs/glfw/src/xkb_unicode.c |
glfwInitTimerPOSIX | void _glfwInitTimerPOSIX(void)
{
#if defined(CLOCK_MONOTONIC)
struct timespec ts;
if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0)
{
_glfw.timer.posix.monotonic = GLFW_TRUE;
_glfw.timer.posix.frequency = 1000000000;
}
else
#endif
{
_glfw.timer.posix.monotonic = GLFW_FALSE;
... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl $0x1, %edi
leaq -0x10(%rbp), %rsi
callq 0x11600
cmpl $0x0, %eax
jne 0x4af30
leaq 0x2b9e26(%rip), %rax # 0x304d38
movl $0x1, 0x1fe60(%rax)
leaq 0x2b9e15(%rip), %rax # 0x304d38
movq $0x3b9aca00, 0x1fe68(%rax) # imm = 0x3B9ACA00
jmp 0x4af53
leaq 0x2b9e01(%rip), %rax ... | /tuket[P]gltf_viewer/libs/glfw/src/posix_time.c |
glfwPlatformGetTimerValue | uint64_t _glfwPlatformGetTimerValue(void)
{
#if defined(CLOCK_MONOTONIC)
if (_glfw.timer.posix.monotonic)
{
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
return (uint64_t) ts.tv_sec * (uint64_t) 1000000000 + (uint64_t) ts.tv_nsec;
}
else
#endif
{
struct tim... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
leaq 0x2b9dc9(%rip), %rax # 0x304d38
cmpl $0x0, 0x1fe60(%rax)
je 0x4af98
movl $0x1, %edi
leaq -0x18(%rbp), %rsi
callq 0x11600
imulq $0x3b9aca00, -0x18(%rbp), %rax # imm = 0x3B9ACA00
addq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x4afb5
leaq -0x28(%rbp), %rdi
xorl %eax, ... | /tuket[P]gltf_viewer/libs/glfw/src/posix_time.c |
glfwPlatformCreateTls | GLFWbool _glfwPlatformCreateTls(_GLFWtls* tls)
{
assert(tls->posix.allocated == GLFW_FALSE);
if (pthread_key_create(&tls->posix.key, NULL) != 0)
{
_glfwInputError(GLFW_PLATFORM_ERROR,
"POSIX: Failed to create context TLS");
return GLFW_FALSE;
}
tls->posix.al... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, (%rax)
jne 0x4aff7
jmp 0x4b016
leaq 0x233912(%rip), %rdi # 0x27e910
leaq 0x23392e(%rip), %rsi # 0x27e933
movl $0x2a, %edx
leaq 0x23398a(%rip), %rcx # 0x27e99b
callq 0x11410
movq -0x10(%rbp), %rdi
addq $0x4, %rd... | /tuket[P]gltf_viewer/libs/glfw/src/posix_thread.c |
glfwInitGLX | GLFWbool _glfwInitGLX(void)
{
int i;
const char* sonames[] =
{
#if defined(_GLFW_GLX_LIBRARY)
_GLFW_GLX_LIBRARY,
#elif defined(__CYGWIN__)
"libGL-1.so",
#else
"libGL.so.1",
"libGL.so",
#endif
NULL
};
if (_glfw.glx.handle)
return GLFW_TRUE;
for (i... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq 0x2a5151(%rip), %rax # 0x2f0420
movq %rax, -0x20(%rbp)
movq 0x2a514e(%rip), %rax # 0x2f0428
movq %rax, -0x18(%rbp)
movq 0x2a514b(%rip), %rax # 0x2f0430
movq %rax, -0x10(%rbp)
leaq 0x2b9a48(%rip), %rax # 0x304d38
cmpq $0x0, 0x20e68(%rax)
je 0x4b306
movl $0x1, ... | /tuket[P]gltf_viewer/libs/glfw/src/glx_context.c |
extensionSupportedGLX | static int extensionSupportedGLX(const char* extension)
{
const char* extensions =
glXQueryExtensionsString(_glfw.x11.display, _glfw.x11.screen);
if (extensions)
{
if (_glfwStringInExtensionString(extension, extensions))
return GLFW_TRUE;
}
return GLFW_FALSE;
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
leaq 0x2b9275(%rip), %rax # 0x304d38
movq 0x20eb0(%rax), %rax
leaq 0x2b9267(%rip), %rcx # 0x304d38
movq 0x1fec0(%rcx), %rdi
leaq 0x2b9259(%rip), %rcx # 0x304d38
movl 0x1fec8(%rcx), %esi
callq *%rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
... | /tuket[P]gltf_viewer/libs/glfw/src/glx_context.c |
getProcAddressGLX | static GLFWglproc getProcAddressGLX(const char* procname)
{
if (_glfw.glx.GetProcAddress)
return _glfw.glx.GetProcAddress((const GLubyte*) procname);
else if (_glfw.glx.GetProcAddressARB)
return _glfw.glx.GetProcAddressARB((const GLubyte*) procname);
else
return _glfw_dlsym(_glfw.glx... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
leaq 0x2b9205(%rip), %rax # 0x304d38
cmpq $0x0, 0x20ed8(%rax)
je 0x4bb57
leaq 0x2b91f4(%rip), %rax # 0x304d38
movq 0x20ed8(%rax), %rax
movq -0x10(%rbp), %rdi
callq *%rax
movq %rax, -0x8(%rbp)
jmp 0x4bb9d
leaq 0x2b91da(%rip), %rax # 0x304d38
cmp... | /tuket[P]gltf_viewer/libs/glfw/src/glx_context.c |
glfwCreateContextGLX | GLFWbool _glfwCreateContextGLX(_GLFWwindow* window,
const _GLFWctxconfig* ctxconfig,
const _GLFWfbconfig* fbconfig)
{
int attribs[40];
GLXFBConfig native = NULL;
GLXContext share = NULL;
if (ctxconfig->share)
share = ctxconfig->share... | pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq $0x0, -0xc8(%rbp)
movq $0x0, -0xd0(%rbp)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x28(%rax)
je 0x4bc3e
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movq 0x270(%rax), %rax
movq %rax, -0xd0(%rbp)
movq -0x20(%rb... | /tuket[P]gltf_viewer/libs/glfw/src/glx_context.c |
makeContextCurrentGLX | static void makeContextCurrentGLX(_GLFWwindow* window)
{
if (window)
{
if (!glXMakeCurrent(_glfw.x11.display,
window->context.glx.window,
window->context.glx.handle))
{
_glfwInputError(GLFW_PLATFORM_ERROR,
... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x4c9c3
leaq 0x2b83be(%rip), %rax # 0x304d38
movq 0x20ea0(%rax), %rax
leaq 0x2b83b0(%rip), %rcx # 0x304d38
movq 0x1fec0(%rcx), %rdi
movq -0x8(%rbp), %rcx
movq 0x278(%rcx), %rsi
movq -0x8(%rbp), %rcx
movq 0x270(%rcx), %rdx
c... | /tuket[P]gltf_viewer/libs/glfw/src/glx_context.c |
glfwGetGLXWindow | GLFWAPI GLXWindow glfwGetGLXWindow(GLFWwindow* handle)
{
_GLFWwindow* window = (_GLFWwindow*) handle;
_GLFW_REQUIRE_INIT_OR_RETURN(None);
if (window->context.client == GLFW_NO_API)
{
_glfwInputError(GLFW_NO_WINDOW_CONTEXT, NULL);
return None;
}
return window->context.glx.window... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
leaq 0x2b7ffd(%rip), %rax # 0x304d38
cmpl $0x0, (%rax)
jne 0x4cd5a
movl $0x10001, %edi # imm = 0x10001
xorl %eax, %eax
movl %eax, %esi
movb $0x0, %al
callq 0x366f0
movq $0x0, -0x8(%rbp)
jmp 0x4cd... | /tuket[P]gltf_viewer/libs/glfw/src/glx_context.c |
glfwInitEGL | GLFWbool _glfwInitEGL(void)
{
int i;
const char* sonames[] =
{
#if defined(_GLFW_EGL_LIBRARY)
_GLFW_EGL_LIBRARY,
#elif defined(_GLFW_WIN32)
"libEGL.dll",
"EGL.dll",
#elif defined(_GLFW_COCOA)
"libEGL.dylib",
#elif defined(__CYGWIN__)
"libEGL-1.so",
#else
"libE... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq 0x2a3641(%rip), %rax # 0x2f0440
movq %rax, -0x20(%rbp)
movq 0x2a363e(%rip), %rax # 0x2f0448
movq %rax, -0x18(%rbp)
leaq 0x2b7f23(%rip), %rax # 0x304d38
cmpq $0x0, 0x20fb0(%rax)
je 0x4ce2b
movl $0x1, -0x4(%rbp)
jmp 0x4d468
movl $0x0, -0x8(%rbp)
movslq -0x8(%rbp),... | /tuket[P]gltf_viewer/libs/glfw/src/egl_context.c |
makeContextCurrentEGL | static void makeContextCurrentEGL(_GLFWwindow* window)
{
if (window)
{
if (!eglMakeCurrent(_glfw.egl.display,
window->context.egl.surface,
window->context.egl.surface,
window->context.egl.handle))
{
_... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x4e675
leaq 0x2b672e(%rip), %rax # 0x304d38
movq 0x21010(%rax), %rax
leaq 0x2b6720(%rip), %rcx # 0x304d38
movq 0x20f88(%rcx), %rdi
movq -0x8(%rbp), %rcx
movq 0x290(%rcx), %rsi
movq -0x8(%rbp), %rcx
movq 0x290(%rcx), %rdx
m... | /tuket[P]gltf_viewer/libs/glfw/src/egl_context.c |
glfwCreateContextOSMesa | GLFWbool _glfwCreateContextOSMesa(_GLFWwindow* window,
const _GLFWctxconfig* ctxconfig,
const _GLFWfbconfig* fbconfig)
{
OSMesaContext share = NULL;
const int accumBits = fbconfig->accumRedBits +
fbconfig->accumGreenBi... | pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq $0x0, -0x28(%rbp)
movq -0x20(%rbp), %rax
movl 0x18(%rax), %eax
movq -0x20(%rbp), %rcx
addl 0x1c(%rcx), %eax
movq -0x20(%rbp), %rcx
addl 0x20(%rcx), %eax
movq -0x20(%rbp), %rcx
addl 0x24(%rcx), %eax
movl... | /tuket[P]gltf_viewer/libs/glfw/src/osmesa_context.c |
makeContextCurrentOSMesa | static void makeContextCurrentOSMesa(_GLFWwindow* window)
{
if (window)
{
int width, height;
_glfwPlatformGetFramebufferSize(window, &width, &height);
// Check to see if we need to allocate a new buffer
if ((window->context.osmesa.buffer == NULL) ||
(width != window-... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x4f560
movq -0x8(%rbp), %rdi
leaq -0xc(%rbp), %rsi
leaq -0x10(%rbp), %rdx
callq 0x46610
movq -0x8(%rbp), %rax
cmpq $0x0, 0x2b0(%rax)
je 0x4f4c4
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x2a8(%rcx), %eax
jne 0x4f4c4
movl ... | /tuket[P]gltf_viewer/libs/glfw/src/osmesa_context.c |
destroyContextOSMesa | static void destroyContextOSMesa(_GLFWwindow* window)
{
if (window->context.osmesa.handle)
{
OSMesaDestroyContext(window->context.osmesa.handle);
window->context.osmesa.handle = NULL;
}
if (window->context.osmesa.buffer)
{
free(window->context.osmesa.buffer);
window-... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x2a0(%rax)
je 0x4f624
leaq 0x2b5737(%rip), %rax # 0x304d38
movq 0x21050(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x2a0(%rcx), %rdi
callq *%rax
movq -0x8(%rbp), %rax
movq $0x0, 0x2a0(%rax)
movq -0x8(%rbp), %rax
cmpq $0x0... | /tuket[P]gltf_viewer/libs/glfw/src/osmesa_context.c |
glfwGetOSMesaColorBuffer | GLFWAPI int glfwGetOSMesaColorBuffer(GLFWwindow* handle, int* width,
int* height, int* format, void** buffer)
{
void* mesaBuffer;
GLint mesaWidth, mesaHeight, mesaFormat;
_GLFWwindow* window = (_GLFWwindow*) handle;
assert(window != NULL);
_GLFW_REQUIRE_INIT_OR_... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0x4f69d
jmp 0x4f6bc
leaq 0x2103f1(%rip), %rdi # 0x25fa95
leaq 0x2304a7(%rip), %rsi #... | /tuket[P]gltf_viewer/libs/glfw/src/osmesa_context.c |
glfwGetOSMesaDepthBuffer | GLFWAPI int glfwGetOSMesaDepthBuffer(GLFWwindow* handle,
int* width, int* height,
int* bytesPerValue,
void** buffer)
{
void* mesaBuffer;
GLint mesaWidth, mesaHeight, mesaBytes;
_GLFWwindow* window ... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0x4f7bd
jmp 0x4f7dc
leaq 0x2102d1(%rip), %rdi # 0x25fa95
leaq 0x230387(%rip), %rsi #... | /tuket[P]gltf_viewer/libs/glfw/src/osmesa_context.c |
glfwPlatformPollJoystick | int _glfwPlatformPollJoystick(_GLFWjoystick* js, int mode)
{
// Read all queued events (non-blocking)
for (;;)
{
struct input_event e;
errno = 0;
if (read(js->linjs.fd, &e, sizeof(e)) < 0)
{
// Reset the joystick slot if the device was disconnected
if... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
callq 0x11050
movl $0x0, (%rax)
movq -0x8(%rbp), %rax
movl 0x78(%rax), %edi
leaq -0x28(%rbp), %rsi
movl $0x18, %edx
callq 0x11900
cmpq $0x0, %rax
jge 0x504bd
callq 0x11050
cmpl $0x13, (%rax)
jne 0x504b8
movq -0x8(%rbp), %rdi
callq 0... | /tuket[P]gltf_viewer/libs/glfw/src/linux_joystick.c |
pollAbsState | static void pollAbsState(_GLFWjoystick* js)
{
for (int code = 0; code < ABS_CNT; code++)
{
if (js->linjs.absMap[code] < 0)
continue;
struct input_absinfo* info = &js->linjs.absInfo[code];
if (ioctl(js->linjs.fd, EVIOCGABS(code), info) < 0)
continue;
h... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
cmpl $0x40, -0xc(%rbp)
jge 0x50610
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
cmpl $0x0, 0x187c(%rax,%rcx,4)
jge 0x505a1
jmp 0x50602
movq -0x8(%rbp), %rax
addq $0x78, %rax
addq $0x1904, %rax # imm = 0x1904
movslq -0xc(%... | /tuket[P]gltf_viewer/libs/glfw/src/linux_joystick.c |
ImGuiStyle::ImGuiStyle() | ImGuiStyle::ImGuiStyle()
{
Alpha = 1.0f; // Global alpha applies to everything in ImGui
WindowPadding = ImVec2(8,8); // Padding within a window
WindowRounding = 0.0f; // Radius of window corners rounding. Set to 0.0f to have rectangular windo... | pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x80(%rbp)
addq $0x4, %rdi
callq 0x78060
movq -0x80(%rbp), %rdi
addq $0x14, %rdi
callq 0x78060
movq -0x80(%rbp), %rdi
addq $0x1c, %rdi
callq 0x78060
movq -0x80(%rbp), %rdi
addq $0x38, %rdi
callq 0x78060
movq -0x80(%rbp),... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImGuiStyle::ScaleAllSizes(float) | void ImGuiStyle::ScaleAllSizes(float scale_factor)
{
WindowPadding = ImFloor(WindowPadding * scale_factor);
WindowRounding = ImFloor(WindowRounding * scale_factor);
WindowMinSize = ImFloor(WindowMinSize * scale_factor);
ChildRounding = ImFloor(ChildRounding * scale_factor);
PopupRounding = ImFloor(P... | pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movss %xmm0, -0xc(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0xa8(%rbp)
addq $0x4, %rdi
movss -0xc(%rbp), %xmm0
callq 0x51010
movlpd %xmm0, -0x1c(%rbp)
leaq -0x1c(%rbp), %rdi
callq 0x50fd0
movq -0xa8(%rbp), %rax
movlpd %xmm0, -0x14(%rbp)
movq -0x14(%rbp), %... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImGuiIO::ImGuiIO() | ImGuiIO::ImGuiIO()
{
// Most fields are initialized with zero
memset(this, 0, sizeof(*this));
IM_ASSERT(IM_ARRAYSIZE(ImGuiIO::MouseDown) == ImGuiMouseButton_COUNT && IM_ARRAYSIZE(ImGuiIO::MouseClicked) == ImGuiMouseButton_COUNT); // Our pre-C++11 IM_STATIC_ASSERT() macros triggers warning on modern compiler... | pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x60(%rbp)
addq $0x8, %rdi
callq 0x78060
movq -0x60(%rbp), %rdi
addq $0xb8, %rdi
callq 0x78060
movq -0x60(%rbp), %rdi
addq $0x120, %rdi # imm = 0x120
callq 0x78060
movq -0x60(%rbp), %rdi
addq $0x3b0, %rdi ... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
SetClipboardTextFn_DefaultImpl(void*, char const*) | static void SetClipboardTextFn_DefaultImpl(void*, const char* text)
{
ImGuiContext& g = *GImGui;
g.ClipboardHandlerData.clear();
const char* text_end = text + strlen(text);
g.ClipboardHandlerData.resize((int)(text_end - text) + 1);
memcpy(&g.ClipboardHandlerData[0], text, (size_t)(text_end - text));... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq 0x2d4ce9(%rip), %rax # 0x3261d0
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
addq $0x3000, %rdi # imm = 0x3000
callq 0x7b6d0
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
callq 0x112c0
movq... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImGuiIO::AddInputCharacterUTF16(unsigned short) | void ImGuiIO::AddInputCharacterUTF16(ImWchar16 c)
{
if (c == 0 && InputQueueSurrogate == 0)
return;
if ((c & 0xFC00) == 0xD800) // High surrogate, must save
{
if (InputQueueSurrogate != 0)
InputQueueCharacters.push_back(IM_UNICODE_CODEPOINT_INVALID);
InputQueueSurrogate ... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movw %si, %ax
movq %rdi, -0x8(%rbp)
movw %ax, -0xa(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movzwl -0xa(%rbp), %eax
cmpl $0x0, %eax
jne 0x51649
movq -0x18(%rbp), %rax
movzwl 0x1544(%rax), %eax
cmpl $0x0, %eax
jne 0x51649
jmp 0x516ff
movzwl -0xa(%rbp), %eax
andl $0xf... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImGuiIO::AddInputCharactersUTF8(char const*) | void ImGuiIO::AddInputCharactersUTF8(const char* utf8_chars)
{
while (*utf8_chars != 0)
{
unsigned int c = 0;
utf8_chars += ImTextCharFromUtf8(&c, utf8_chars, NULL);
if (c != 0)
InputQueueCharacters.push_back((ImWchar)c);
}
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x5177f
movl $0x0, -0x14(%rbp)
movq -0x10(%rbp), %rsi
leaq -0x14(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
callq 0x51790
m... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImBezierCubicClosestPoint(ImVec2 const&, ImVec2 const&, ImVec2 const&, ImVec2 const&, ImVec2 const&, int) | ImVec2 ImBezierCubicClosestPoint(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, int num_segments)
{
IM_ASSERT(num_segments > 0); // Use ImBezierCubicClosestPointCasteljau()
ImVec2 p_last = p1;
ImVec2 p_closest;
float p_closest_dist2 = FLT_MAX;
float t_step =... | pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movl %r9d, -0x34(%rbp)
cmpl $0x0, -0x34(%rbp)
jle 0x51a68
jmp 0x51a87
leaq 0x22ebe9(%rip), %rdi # 0x280658
leaq 0x22ebf3(%rip), %rsi # 0x280669
movl $0x49d,... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImLineClosestPoint(ImVec2 const&, ImVec2 const&, ImVec2 const&) | ImVec2 ImLineClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& p)
{
ImVec2 ap = p - a;
ImVec2 ab_dir = b - a;
float dot = ap.x * ab_dir.x + ap.y * ab_dir.y;
if (dot < 0.0f)
return a;
float ab_len_sqr = ab_dir.x * ab_dir.x + ab_dir.y * ab_dir.y;
if (dot > ab_len_sqr)
re... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x51cc0
movlpd %xmm0, -0x28(%rbp)
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x51cc0
movlpd %xmm0, -0x30(%rbp)
movss -0x28(%rbp), %xmm0
movss -0x3... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImBezierCubicClosestPointCasteljau(ImVec2 const&, ImVec2 const&, ImVec2 const&, ImVec2 const&, ImVec2 const&, float) | ImVec2 ImBezierCubicClosestPointCasteljau(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, const ImVec2& p, float tess_tol)
{
IM_ASSERT(tess_tol > 0.0f);
ImVec2 p_last = p1;
ImVec2 p_closest;
float p_closest_dist2 = FLT_MAX;
ImBezierCubicClosestPointCasteljauStep(p, p_closest,... | pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movss %xmm0, -0x34(%rbp)
movss -0x34(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x51d40
jmp 0x51d5f
leaq 0x22e9f8(%rip), %rdi # 0x28073f
leaq 0x2... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImBezierCubicClosestPointCasteljauStep(ImVec2 const&, ImVec2&, ImVec2&, float&, float, float, float, float, float, float, float, float, float, int) | static void ImBezierCubicClosestPointCasteljauStep(const ImVec2& p, ImVec2& p_closest, ImVec2& p_last, float& p_closest_dist2, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, float tess_tol, int level)
{
float dx = x4 - x1;
float dy = y4 - y1;
float d2 = ((x2 - x4) * dy - (y2... | pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movss 0x10(%rbp), %xmm8
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movss %xmm0, -0x24(%rbp)
movss %xmm1, -0x28(%rbp)
movss %xmm2, -0x2c(%rbp)
movss %xmm3, -0x30(%rbp)
movss %xmm4, -0x34(%rbp)
movss %xmm5, -0x38(%rbp)
movss %xmm6... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImTriangleBarycentricCoords(ImVec2 const&, ImVec2 const&, ImVec2 const&, ImVec2 const&, float&, float&, float&) | void ImTriangleBarycentricCoords(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p, float& out_u, float& out_v, float& out_w)
{
ImVec2 v0 = b - a;
ImVec2 v1 = c - a;
ImVec2 v2 = p - a;
const float denom = v0.x * v1.y - v1.x * v0.y;
out_v = (v2.x * v1.y - v1.x * v2.y) / denom;
ou... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0x51cc0
movlpd %xmm0, -0x38(%rbp)
movq -0x18(%rbp), %rdi
movq -0x8(%... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImTriangleClosestPoint(ImVec2 const&, ImVec2 const&, ImVec2 const&, ImVec2 const&) | ImVec2 ImTriangleClosestPoint(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& p)
{
ImVec2 proj_ab = ImLineClosestPoint(a, b, p);
ImVec2 proj_bc = ImLineClosestPoint(b, c, p);
ImVec2 proj_ca = ImLineClosestPoint(c, a, p);
float dist2_ab = ImLengthSqr(p - proj_ab);
float dist2_bc = Im... | pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x51b80
movlpd %xmm0, -0x30(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq ... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImStristr(char const*, char const*, char const*, char const*) | const char* ImStristr(const char* haystack, const char* haystack_end, const char* needle, const char* needle_end)
{
if (!needle_end)
needle_end = needle + strlen(needle);
const char un0 = (char)toupper(*needle);
while ((!haystack_end && *haystack) || (haystack_end && haystack < haystack_end))
{... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jne 0x52b9e
movq -0x20(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x20(%rbp), %rdi
callq 0x112c0
movq %rax, %rcx
movq -0x48(%rbp), %rax
addq %rcx, %rax
movq %rax, ... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImStrTrimBlanks(char*) | void ImStrTrimBlanks(char* buf)
{
char* p = buf;
while (p[0] == ' ' || p[0] == '\t') // Leading blanks
p++;
char* p_start = p;
while (*p != 0) // Find end of string
p++;
while (p > p_start && (p[-1] == ' ' || p[-1] == '\t')) // Trailing blanks
p--... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movsbl (%rax), %ecx
movb $0x1, %al
cmpl $0x20, %ecx
movb %al, -0x19(%rbp)
je 0x52cd5
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x9, %eax
sete %al
movb %al, -0x19(%rbp)
movb -0x19(... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImFormatString(char*, unsigned long, char const*, ...) | int ImFormatString(char* buf, size_t buf_size, const char* fmt, ...)
{
va_list args;
va_start(args, fmt);
#ifdef IMGUI_USE_STB_SPRINTF
int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args);
#else
int w = vsnprintf(buf, buf_size, fmt, args);
#endif
va_end(args);
if (buf == NULL)
return w... | pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp # imm = 0x100
testb %al, %al
je 0x52e2e
movaps %xmm0, -0xd0(%rbp)
movaps %xmm1, -0xc0(%rbp)
movaps %xmm2, -0xb0(%rbp)
movaps %xmm3, -0xa0(%rbp)
movaps %xmm4, -0x90(%rbp)
movaps %xmm5, -0x80(%rbp)
movaps %xmm6, -0x70(%rbp)
movaps %xmm7, -0x60(%rbp)
movq %r9, -0xd8(... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImFormatStringV(char*, unsigned long, char const*, __va_list_tag*) | int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args)
{
#ifdef IMGUI_USE_STB_SPRINTF
int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args);
#else
int w = vsnprintf(buf, buf_size, fmt, args);
#endif
if (buf == NULL)
return w;
if (w == -1 || w >= (int)buf_size)
w ... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0x113d0
movl %eax, -0x2c(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x52f1f
movl -0x2c(%rbp), %e... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImHashData(void const*, unsigned long, unsigned int) | ImGuiID ImHashData(const void* data_p, size_t data_size, ImU32 seed)
{
ImU32 crc = ~seed;
const unsigned char* data = (const unsigned char*)data_p;
const ImU32* crc32_lut = GCrc32LookupTable;
while (data_size-- != 0)
crc = (crc >> 8) ^ crc32_lut[(crc & 0xFF) ^ *data++];
return ~crc;
} | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl -0x14(%rbp), %eax
xorl $-0x1, %eax
movl %eax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
leaq 0x22d0f9(%rip), %rax # 0x280080
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, %rcx
addq $-0x1, %rc... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImHashStr(char const*, unsigned long, unsigned int) | ImGuiID ImHashStr(const char* data_p, size_t data_size, ImU32 seed)
{
seed = ~seed;
ImU32 crc = seed;
const unsigned char* data = (const unsigned char*)data_p;
const ImU32* crc32_lut = GCrc32LookupTable;
if (data_size != 0)
{
while (data_size-- != 0)
{
unsigned char c... | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl -0x14(%rbp), %eax
xorl $-0x1, %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
leaq 0x22d073(%rip), %rax # 0x280080
movq %rax, -0x28(%rbp)
cmpq $0x... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImFileOpen(char const*, char const*) | ImFileHandle ImFileOpen(const char* filename, const char* mode)
{
#if defined(_WIN32) && !defined(IMGUI_DISABLE_WIN32_FUNCTIONS) && !defined(__CYGWIN__) && !defined(__GNUC__)
// We need a fopen() wrapper because MSVC/Windows fopen doesn't handle UTF-8 filenames.
// Previously we used ImTextCountCharsFromUtf8/Im... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x117b0
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImFileLoadToMemory(char const*, char const*, unsigned long*, int) | void* ImFileLoadToMemory(const char* filename, const char* mode, size_t* out_file_size, int padding_bytes)
{
IM_ASSERT(filename && mode);
if (out_file_size)
*out_file_size = 0;
ImFileHandle f;
if ((f = ImFileOpen(filename, mode)) == NULL)
return NULL;
size_t file_size = (size_t)I... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x10(%rbp)
movb %al, -0x41(%rbp)
je 0x532ae
cmpq $0x0, -0x18(%rbp)
setne %al
movb %al, -0x41(%rbp)
movb -0x41(%rbp), %al
testb $0x1, %al
jne 0x532b7
jmp 0x5... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImTextStrFromUtf8(unsigned short*, int, char const*, char const*, char const**) | int ImTextStrFromUtf8(ImWchar* buf, int buf_size, const char* in_text, const char* in_text_end, const char** in_text_remaining)
{
ImWchar* buf_out = buf;
ImWchar* buf_end = buf + buf_size;
while (buf_out < buf_end - 1 && (!in_text_end || in_text < in_text_end) && *in_text)
{
unsigned int c;
... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
shlq %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rcx
m... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImTextCountCharsFromUtf8(char const*, char const*) | int ImTextCountCharsFromUtf8(const char* in_text, const char* in_text_end)
{
int char_count = 0;
while ((!in_text_end || in_text < in_text_end) && *in_text)
{
unsigned int c;
in_text += ImTextCharFromUtf8(&c, in_text, in_text_end);
if (c == 0)
break;
char_count++;... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x5353d
movq -0x8(%rbp), %rcx
xorl %eax, %eax
cmpq -0x10(%rbp), %rcx
movb %al, -0x19(%rbp)
jae 0x5354a
movq -0x8(%rbp), %rax
cmpb $0x0, (%rax)
setne %al
movb %al, -0x19(%rbp)
movb -0... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImTextCharToUtf8_inline(char*, int, unsigned int) | static inline int ImTextCharToUtf8_inline(char* buf, int buf_size, unsigned int c)
{
if (c < 0x80)
{
buf[0] = (char)c;
return 1;
}
if (c < 0x800)
{
if (buf_size < 2) return 0;
buf[0] = (char)(0xc0 + (c >> 6));
buf[1] = (char)(0x80 + (c & 0x3f));
return... | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
cmpl $0x80, -0x18(%rbp)
jae 0x535fe
movl -0x18(%rbp), %eax
movb %al, %cl
movq -0x10(%rbp), %rax
movb %cl, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x5372b
cmpl $0x800, -0x18(%rbp) # imm = 0x800
jae 0x5364c
cmpl $0x2, -0x14(%rbp)... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImTextStrToUtf8(char*, int, unsigned short const*, unsigned short const*) | int ImTextStrToUtf8(char* out_buf, int out_buf_size, const ImWchar* in_text, const ImWchar* in_text_end)
{
char* buf_p = out_buf;
const char* buf_end = out_buf + out_buf_size;
while (buf_p < buf_end - 1 && (!in_text_end || in_text < in_text_end) && *in_text)
{
unsigned int c = (unsigned int)(*in... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %rdx
addq $-0x1... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImTextCountUtf8BytesFromStr(unsigned short const*, unsigned short const*) | int ImTextCountUtf8BytesFromStr(const ImWchar* in_text, const ImWchar* in_text_end)
{
int bytes_count = 0;
while ((!in_text_end || in_text < in_text_end) && *in_text)
{
unsigned int c = (unsigned int)(*in_text++);
if (c < 0x80)
bytes_count++;
else
bytes_count ... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x5388d
movq -0x8(%rbp), %rcx
xorl %eax, %eax
cmpq -0x10(%rbp), %rcx
movb %al, -0x19(%rbp)
jae 0x5389b
movq -0x8(%rbp), %rax
cmpw $0x0, (%rax)
setne %al
movb %al, -0x19(%rbp)
movb -0... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImGui::ColorConvertU32ToFloat4(unsigned int) | ImVec4 ImGui::ColorConvertU32ToFloat4(ImU32 in)
{
float s = 1.0f / 255.0f;
return ImVec4(
((in >> IM_COL32_R_SHIFT) & 0xFF) * s,
((in >> IM_COL32_G_SHIFT) & 0xFF) * s,
((in >> IM_COL32_B_SHIFT) & 0xFF) * s,
((in >> IM_COL32_A_SHIFT) & 0xFF) * s);
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x14(%rbp)
movl $0x3b808081, -0x18(%rbp) # imm = 0x3B808081
movl -0x14(%rbp), %eax
movb %al, %cl
movzbl %cl, %ecx
cvtsi2ss %ecx, %xmm0
movss -0x18(%rbp), %xmm4
mulss %xmm4, %xmm0
movb %ah, %cl
movzbl %cl, %ecx
cvtsi2ss %ecx, %xmm1
mulss %xmm4, %xmm1
movl %eax, %ec... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImGui::ColorConvertFloat4ToU32(ImVec4 const&) | ImU32 ImGui::ColorConvertFloat4ToU32(const ImVec4& in)
{
ImU32 out;
out = ((ImU32)IM_F32_TO_INT8_SAT(in.x)) << IM_COL32_R_SHIFT;
out |= ((ImU32)IM_F32_TO_INT8_SAT(in.y)) << IM_COL32_G_SHIFT;
out |= ((ImU32)IM_F32_TO_INT8_SAT(in.z)) << IM_COL32_B_SHIFT;
out |= ((ImU32)IM_F32_TO_INT8_SAT(in.w)) << IM... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movss (%rax), %xmm0
callq 0x53ba0
movss 0x22c3db(%rip), %xmm1 # 0x27febc
mulss %xmm1, %xmm0
movss 0x206717(%rip), %xmm1 # 0x25a204
addss %xmm1, %xmm0
cvttss2si %xmm0, %eax
shll $0x0, %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImGui::ColorConvertRGBtoHSV(float, float, float, float&, float&, float&) | void ImGui::ColorConvertRGBtoHSV(float r, float g, float b, float& out_h, float& out_s, float& out_v)
{
float K = 0.f;
if (g < b)
{
ImSwap(g, b);
K = -1.f;
}
if (r < g)
{
ImSwap(r, g);
K = -2.f / 6.f - K;
}
const float chroma = r - (g < b ? g : b);
ou... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movss %xmm0, -0x4(%rbp)
movss %xmm1, -0x8(%rbp)
movss %xmm2, -0xc(%rbp)
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
xorps %xmm0, %xmm0
movss %xmm0, -0x2c(%rbp)
movss -0x8(%rbp), %xmm1
movss -0xc(%rbp), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x53c54
leaq -0x8(... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImGui::ColorConvertHSVtoRGB(float, float, float, float&, float&, float&) | void ImGui::ColorConvertHSVtoRGB(float h, float s, float v, float& out_r, float& out_g, float& out_b)
{
if (s == 0.0f)
{
// gray
out_r = out_g = out_b = v;
return;
}
h = ImFmod(h, 1.0f) / (60.0f / 360.0f);
int i = (int)h;
float f = h - (float)i;
float p = v * (1.0f... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movss %xmm0, -0x4(%rbp)
movss %xmm1, -0x8(%rbp)
movss %xmm2, -0xc(%rbp)
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
movss -0x8(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne 0x53dd4
jp 0x53dd4
movss -0xc(%rbp), %xmm0
movq -0x28(%rbp), %rax
m... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImGuiStorage::BuildSortByKey() | void ImGuiStorage::BuildSortByKey()
{
struct StaticFunc
{
static int IMGUI_CDECL PairCompareByID(const void* lhs, const void* rhs)
{
// We can't just do a subtraction because qsort uses signed integers and subtracting our ID doesn't play well with that.
if (((const ImGuiS... | pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
cmpl $0x1, (%rax)
jle 0x53fe5
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movslq (%rax), %rsi
movl $0x10, %edx
leaq 0x10(%rip), %rcx # 0x53ff0
callq 0x11cc0
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%r... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
LowerBound(ImVector<ImGuiStorage::ImGuiStoragePair>&, unsigned int) | static ImGuiStorage::ImGuiStoragePair* LowerBound(ImVector<ImGuiStorage::ImGuiStoragePair>& data, ImGuiID key)
{
ImGuiStorage::ImGuiStoragePair* first = data.Data;
ImGuiStorage::ImGuiStoragePair* last = data.Data + data.Size;
size_t count = (size_t)(last - first);
while (count > 0)
{
size_t ... | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rbp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq -0x18(%rbp), %r... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImGuiTextFilter::Draw(char const*, float) | bool ImGuiTextFilter::Draw(const char* label, float width)
{
if (width != 0.0f)
ImGui::SetNextItemWidth(width);
bool value_changed = ImGui::InputText(label, InputBuf, IM_ARRAYSIZE(InputBuf));
if (value_changed)
Build();
return value_changed;
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movss %xmm0, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movss -0x14(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jne 0x5490e
jp 0x5490e
jmp 0x54918
movss -0x14(%rbp), %xmm0
callq 0x54960
movq -0x20(%rbp), %rsi... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImGuiTextFilter::PassFilter(char const*, char const*) const | bool ImGuiTextFilter::PassFilter(const char* text, const char* text_end) const
{
if (Filters.empty())
return true;
if (text == NULL)
text = "";
for (int i = 0; i != Filters.Size; i++)
{
const ImGuiTextRange& f = Filters[i];
if (f.empty())
continue;
i... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x38(%rbp)
addq $0x100, %rdi # imm = 0x100
callq 0x78620
testb $0x1, %al
jne 0x54ace
jmp 0x54ad7
movb $0x1, -0x1(%rbp)
jmp 0x54bb9
cmpq $0x0, -0x18(%rbp)
jne 0x5... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImGuiTextBuffer::append(char const*, char const*) | void ImGuiTextBuffer::append(const char* str, const char* str_end)
{
int len = str_end ? (int)(str_end - str) : (int)strlen(str);
// Add zero-terminator the first time
const int write_off = (Buf.Size != 0) ? Buf.Size : 1;
const int needed_sz = write_off + len;
if (write_off + len >= Buf.Capacity)
... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x54c03
movq -0x18(%rbp), %rax
movq -0x10(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0x34(%rbp)
jmp 0x54c0f
movq -0x10(%rbp), %rdi
callq 0x1... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImGuiTextBuffer::appendfv(char const*, __va_list_tag*) | void ImGuiTextBuffer::appendfv(const char* fmt, va_list args)
{
va_list args_copy;
va_copy(args_copy, args);
int len = ImFormatStringV(NULL, 0, fmt, args); // FIXME-OPT: could do a first pass write attempt, likely successful on first pass.
if (len <= 0)
{
va_end(args_copy);
... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq -0x30(%rbp), %rax
movq -0x18(%rbp), %rcx
movq 0x10(%rcx), %rdx
movq %rdx, 0x10(%rax)
movups (%rcx), %xmm0
movups %xmm0, (%rax)
movq -0x10(%rbp), %rdx
movq -0x... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImGui::CalcListClipping(int, float, int*, int*) | void ImGui::CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end)
{
ImGuiContext& g = *GImGui;
ImGuiWindow* window = g.CurrentWindow;
if (g.LogEnabled)
{
// If logging is active, do not perform any clipping
*out_items_display_star... | pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movl %edi, -0x4(%rbp)
movss %xmm0, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq 0x2d1341(%rip), %rax # 0x3261d0
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq 0x1c10(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
testb $0x1, 0x308c(%rax)
je ... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
SetCursorPosYAndSetupForPrevLine(float, float) | static void SetCursorPosYAndSetupForPrevLine(float pos_y, float line_height)
{
// Set cursor position and a few other things so that SetScrollHereY() and Columns() can work when seeking cursor.
// FIXME: It is problematic that we have to do that here, because custom/equivalent end-user code would stumble on the... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movss %xmm0, -0x4(%rbp)
movss %xmm1, -0x8(%rbp)
movq 0x2d0ef7(%rip), %rax # 0x3261d0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x1c10(%rax), %rax
movq %rax, -0x18(%rbp)
movss -0x4(%rbp), %xmm0
movq -0x18(%rbp), %rax
subss 0xdc(%rax), %xmm0
movss %xmm0, -0x1c(%rbp)... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImGuiListClipper::Step() | bool ImGuiListClipper::Step()
{
ImGuiContext& g = *GImGui;
ImGuiWindow* window = g.CurrentWindow;
ImGuiTable* table = g.CurrentTable;
if (table && table->IsInsideRow)
ImGui::TableEndRow(table);
// No items
if (ItemsCount == 0 || GetSkipItemForListClipping())
{
End();
... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movq 0x2d0d95(%rip), %rax # 0x3261d0
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq 0x1c10(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq 0x1ff0(%rax), %rax
movq %rax, -0x28(%rbp)
cmpq... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImGui::GetColorU32(unsigned int) | ImU32 ImGui::GetColorU32(ImU32 col)
{
ImGuiStyle& style = GImGui->Style;
if (style.Alpha >= 1.0f)
return col;
ImU32 a = (col & IM_COL32_A_MASK) >> IM_COL32_A_SHIFT;
a = (ImU32)(a * style.Alpha); // We don't need to clamp 0..255 because Style.Alpha is in 0..1 range.
return (col & ~IM_COL32_A_... | pushq %rbp
movq %rsp, %rbp
movl %edi, -0x8(%rbp)
movq 0x2d08e2(%rip), %rax # 0x3261d0
addq $0x1560, %rax # imm = 0x1560
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movss (%rax), %xmm0
movss 0x2048bc(%rip), %xmm1 # 0x25a1c4
ucomiss %xmm1, %xmm0
jb 0x55915
movl -0x8(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp ... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImGui::PushStyleColor(int, unsigned int) | void ImGui::PushStyleColor(ImGuiCol idx, ImU32 col)
{
ImGuiContext& g = *GImGui;
ImGuiColorMod backup;
backup.Col = idx;
backup.BackupValue = g.Style.Colors[idx];
g.ColorStack.push_back(backup);
g.Style.Colors[idx] = ColorConvertU32ToFloat4(col);
} | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movq 0x2d086b(%rip), %rax # 0x3261d0
movq %rax, -0x10(%rbp)
leaq -0x24(%rbp), %rdi
movq %rdi, -0x40(%rbp)
callq 0x788e0
movq -0x40(%rbp), %rsi
movl -0x4(%rbp), %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rax
movslq -0x4(%rbp),... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImGui::PopStyleColor(int) | void ImGui::PopStyleColor(int count)
{
ImGuiContext& g = *GImGui;
while (count > 0)
{
ImGuiColorMod& backup = g.ColorStack.back();
g.Style.Colors[backup.Col] = backup.BackupValue;
g.ColorStack.pop_back();
count--;
}
} | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq 0x2d072e(%rip), %rax # 0x3261d0
movq %rax, -0x10(%rbp)
cmpl $0x0, -0x4(%rbp)
jle 0x55b0c
movq -0x10(%rbp), %rdi
addq $0x1d38, %rdi # imm = 0x1D38
callq 0x78970
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
addq $0... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImGui::PushStyleVar(int, float) | void ImGui::PushStyleVar(ImGuiStyleVar idx, float val)
{
const ImGuiStyleVarInfo* var_info = GetStyleVarInfo(idx);
if (var_info->Type == ImGuiDataType_Float && var_info->Count == 1)
{
ImGuiContext& g = *GImGui;
float* pvar = (float*)var_info->GetVarPtr(&g.Style);
g.StyleVarStack.push... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl %edi, -0x4(%rbp)
movss %xmm0, -0x8(%rbp)
movl -0x4(%rbp), %edi
callq 0x55be0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x8, (%rax)
jne 0x55bb4
movq -0x10(%rbp), %rax
cmpl $0x1, 0x4(%rax)
jne 0x55bb4
movq 0x2d067a(%rip), %rax # 0x3261d0
movq %rax, -0x18(%rbp)... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImGui::PushStyleVar(int, ImVec2 const&) | void ImGui::PushStyleVar(ImGuiStyleVar idx, const ImVec2& val)
{
const ImGuiStyleVarInfo* var_info = GetStyleVarInfo(idx);
if (var_info->Type == ImGuiDataType_Float && var_info->Count == 2)
{
ImGuiContext& g = *GImGui;
ImVec2* pvar = (ImVec2*)var_info->GetVarPtr(&g.Style);
g.StyleVar... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movl -0x4(%rbp), %edi
callq 0x55be0
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x8, (%rax)
jne 0x55cec
movq -0x18(%rbp), %rax
cmpl $0x2, 0x4(%rax)
jne 0x55cec
movq 0x2d054b(%rip), %rax # 0x3261d0
movq %rax, -0x20(%rbp)
... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
ImGui::PopStyleVar(int) | void ImGui::PopStyleVar(int count)
{
ImGuiContext& g = *GImGui;
while (count > 0)
{
// We avoid a generic memcpy(data, &backup.Backup.., GDataTypeSize[info->Type] * info->Count), the overhead in Debug is not worth it.
ImGuiStyleMod& backup = g.StyleVarStack.back();
const ImGuiStyleVa... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0x4(%rbp)
movq 0x2d04ae(%rip), %rax # 0x3261d0
movq %rax, -0x10(%rbp)
cmpl $0x0, -0x4(%rbp)
jle 0x55de7
movq -0x10(%rbp), %rdi
addq $0x1d48, %rdi # imm = 0x1D48
callq 0x78b10
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl (%rax), %edi
callq 0x55be... | /tuket[P]gltf_viewer/libs/imgui/imgui.cpp |
Subsets and Splits
SQL Console for LLM4Binary/decompile-bench
Filters out entries with file names ending in .cpp, providing a basic subset of the dataset that excludes C++ files.