name stringlengths 1 4.98k | code stringlengths 61 2.07M | asm stringlengths 57 12.9M | file stringlengths 18 192 |
|---|---|---|---|
f_rect | static int f_rect(lua_State *L) {
Uint8 color = (Uint8)luaL_checkinteger(L, 1);
int x0 = (int)luaL_checknumber(L, 2);
int y0 = (int)luaL_checknumber(L, 3);
int x1 = (int)luaL_checknumber(L, 4);
int y1 = (int)luaL_checknumber(L, 5);
int x, y;
if (x0 > x1) swap(int, x0, x1);
if (y0 > y1) swap(int, y0, y1)... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r14
movl $0x1, %esi
callq 0xe462
movq %rax, %rbx
movq %r14, %rdi
movl $0x2, %esi
callq 0xe3e3
cvttsd2si %xmm0, %ebp
movq %r14, %rdi
movl $0x3, %esi
callq 0xe3e3
cvttsd2si %xmm0, %r15d
movq %r14, %rdi
movl $0x4, %esi
callq 0xe3e3
cvttsd2si %xmm0, %r12d
m... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
f_line | static int f_line(lua_State *L) {
Uint8 color = (Uint8)luaL_checkinteger(L, 1);
int x0 = (int)luaL_checknumber(L, 2);
int y0 = (int)luaL_checknumber(L, 3);
int x1 = (int)luaL_checknumber(L, 4);
int y1 = (int)luaL_checknumber(L, 5);
int dx = SDL_abs(x1 - x0), sx = x0 < x1 ? 1 : -1;
int dy = SDL_abs(y1 - y0... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movl $0x1, %esi
callq 0xe462
movq %rax, 0x10(%rsp)
movq %r14, %rdi
movl $0x2, %esi
callq 0xe3e3
cvttsd2si %xmm0, %r15d
movq %r14, %rdi
movl $0x3, %esi
callq 0xe3e3
cvttsd2si %xmm0, %r12d
movq %r14, %rdi
movl $0x4, %esi
ca... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
f_circle | static int f_circle(lua_State *L) {
Uint8 color = (Uint8)luaL_checkinteger(L, 1);
int x0 = (int)luaL_checknumber(L, 2);
int y0 = (int)luaL_checknumber(L, 3);
int radius = (int)luaL_checknumber(L, 4);
int fill = lua_toboolean(L, 5);
int r0sq = fill ? 0 : (radius - 1) * (radius - 1);
int r1sq = radius * rad... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %r14
movl $0x1, %esi
callq 0xe462
movq %rax, %rbx
movq %r14, %rdi
movl $0x2, %esi
callq 0xe3e3
movsd %xmm0, (%rsp)
movq %r14, %rdi
movl $0x3, %esi
callq 0xe3e3
cvttsd2si %xmm0, %r15d
movq %r14, %rdi
movl $0x4, %esi
callq 0xe3e... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
f_translate | static int f_translate(lua_State *L) {
if (lua_gettop(L) == 2) {
int x = (int)luaL_checknumber(L, 1);
int y = (int)luaL_checknumber(L, 2);
translation.x = x;
translation.y = y;
}
lua_pushinteger(L, translation.x);
lua_pushinteger(L, translation.y);
return 2;
} | pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
callq 0x8f4d
cmpl $0x2, %eax
jne 0x2fbd9
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe3e3
movapd %xmm0, (%rsp)
movq %rbx, %rdi
movl $0x2, %esi
callq 0xe3e3
movapd (%rsp), %xmm1
unpcklpd %xmm0, %xmm1 # xmm1 = xmm1[0],xmm0[0]
cvttpd2dq %xmm1, %xmm0
movlpd %xmm0, 0x11292d... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
f_sprite | static int f_sprite(lua_State *L) {
size_t length;
Uint8 color;
int x, y, w, h;
int x0 = (int)luaL_checknumber(L, 1);
int y0 = (int)luaL_checknumber(L, 2);
const char *data = luaL_checklstring(L, 3, &length);
int transparent = (int)luaL_optinteger(L, 4, -1);
switch (length) {
case 64: w = h = 8; break... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movl $0x1, %esi
callq 0xe3e3
movsd %xmm0, (%rsp)
movq %r14, %rdi
movl $0x2, %esi
callq 0xe3e3
movsd %xmm0, 0x8(%rsp)
leaq 0x10(%rsp), %r15
movq %r14, %rdi
movl $0x3, %esi
movq %r15, %rdx
callq 0xe339
movq %rax, %rbx
movq ... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
f_print | static int f_print(lua_State *L) {
int x, y;
Uint8 glyph;
Uint8 color = (Uint8)luaL_checkinteger(L, 1);
int x0 = (int)luaL_checknumber(L, 2);
int y0 = (int)luaL_checknumber(L, 3);
const char *str = luaL_checkstring(L, 4);
for (; *str; ++str, x0 += 8) {
for (y = 0; y < 8; ++y) {
glyph = font8x8[*... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
movl $0x1, %esi
callq 0xe462
movq %rax, %rbx
movq %r14, %rdi
movl $0x2, %esi
callq 0xe3e3
movsd %xmm0, 0x8(%rsp)
movq %r14, %rdi
movl $0x3, %esi
callq 0xe3e3
movsd %xmm0, 0x10(%rsp)
movq %r14, %rdi
movl $0x4, %esi
xorl %e... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
f_play | static int f_play(lua_State *L) {
AudioChannel *channel;
int i = (int)luaL_checkinteger(L, 1);
const char *str = luaL_checkstring(L, 2);
luaL_argcheck(L, i >= 0 && i < PX_AUDIO_CHANNELS, 1, "invalid channel");
if (audio_device) {
SDL_LockAudioDevice(audio_device);
channel = &channels[i];
mml_reset... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %esi
callq 0xe462
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
xorl %edx, %edx
callq 0xe339
movq %rax, %r15
testl $0xfffffff8, %r14d # imm = 0xFFFFFFF8
je 0x2fef1
leaq 0x560f(%rip), %rdx # 0x354f3
movq %rbx, %rdi
movl $0x1, %... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
f_stop | static int f_stop(lua_State *L) {
int i = (int)luaL_checkinteger(L, 1);
luaL_argcheck(L, i >= 0 && i < PX_AUDIO_CHANNELS, 1, "invalid channel");
if (audio_device) {
SDL_LockAudioDevice(audio_device);
mml_reset_channel(&channels[i]);
SDL_UnlockAudioDevice(audio_device);
}
return 0;
} | pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x1, %esi
callq 0xe462
movq %rax, %rbx
testl $0xfffffff8, %ebx # imm = 0xFFFFFFF8
je 0x2ff83
leaq 0x557d(%rip), %rdx # 0x354f3
movq %r14, %rdi
movl $0x1, %esi
callq 0xdabf
movl 0x1255f(%rip), %edi # 0x424e8
testl %edi, %edi
je 0x2ffb3
callq 0x64b0
mo... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
f_mouse | static int f_mouse(lua_State *L) {
Input *input = &inputs[_check_controller(L)];
lua_pushinteger(L, input->mouse.x + translation.x);
lua_pushinteger(L, input->mouse.y + translation.y);
return 2;
} | pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x3088a
cltq
leaq (%rax,%rax,2), %r14
leaq 0x112a40(%rip), %r15 # 0x142ae0
movslq 0x4(%r15,%r14,4), %rax
movslq 0x112454(%rip), %rsi # 0x142500
addq %rax, %rsi
movq %rbx, %rdi
callq 0xa4be
movslq 0x8(%r15,%r14,4), %rax
movslq 0x112441(%rip), %rsi # 0x14250... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
f_clipboard | static int f_clipboard(lua_State *L) {
if (lua_gettop(L) > 0) {
const char *text = luaL_checkstring(L, 1);
if (SDL_SetClipboardText(text)) luaL_error(L, "SDL_SetClipboardText() failed: %s", SDL_GetError());
lua_pushstring(L, text);
return 1;
}
else {
lua_pushstring(L, SDL_GetClipboardText());
... | pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x8f4d
testl %eax, %eax
jle 0x30122
movq %rbx, %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0xe339
movq %rax, %r14
movq %rax, %rdi
callq 0x67d0
testl %eax, %eax
je 0x3012a
callq 0x6380
leaq 0x541d(%rip), %rsi # 0x35530
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, ... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
f_randomseed | static int f_randomseed(lua_State *L) {
if (lua_gettop(L) > 0) {
Uint32 x = (Uint32)luaL_checkinteger(L, 1);
px_randomseed(x);
}
lua_pushinteger(L, (lua_Integer)seed);
return 1;
} | pushq %rbx
movq %rdi, %rbx
callq 0x8f4d
testl %eax, %eax
jle 0x3018c
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe462
testl %eax, %eax
movl $0x2f, %ecx
cmovnel %eax, %ecx
movl $0x400, %eax # imm = 0x400
movl %ecx, %edx
shll $0xd, %edx
xorl %ecx, %edx
movl %edx, %esi
shrl $0x11, %esi
xorl %edx, %esi
movl %esi, %e... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
f_random | static int f_random(lua_State *L) {
lua_Integer low, up;
double r = (double)(px_rand() % 100000) / 100000.0;
switch (lua_gettop(L)) {
case 0: lua_pushnumber(L, (lua_Number)r); return 1;
case 1: low = 1; up = luaL_checkinteger(L, 1); break;
case 2: low = luaL_checkinteger(L, 1); up = luaL_checkinteger(L, 2);... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x112994(%rip), %eax # 0x142b48
movl %eax, %ecx
shll $0xd, %ecx
xorl %eax, %ecx
movl %ecx, %eax
shrl $0x11, %eax
xorl %ecx, %eax
movl %eax, %ecx
shll $0x5, %ecx
xorl %eax, %ecx
movl %ecx, 0x112979(%rip) # 0x142b48
movl %ecx, %eax
shrl $0x... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
f_resolution | static int f_resolution(lua_State *L) {
int width = (int)luaL_checkinteger(L, 1);
int height = (int)luaL_checkinteger(L, 2);
luaL_argcheck(L, width > 0 && width < PX_SCREEN_MAX_WIDTH, 1, "invalid width value");
luaL_argcheck(L, height > 0 && height < PX_SCREEN_MAX_HEIGHT, 2, "invalid height value");
px_create... | pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl $0x1, %esi
callq 0xe462
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0xe462
movq %rax, %r15
leal -0x1(%r14), %eax
cmpl $0x3ff, %eax # imm = 0x3FF
jb 0x30386
leaq 0x51d9(%rip), %rdx # 0x35552
movq %rbx, %rdi
movl $0x1, %esi
callq 0xdabf
leal ... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
f_compress | static int f_compress(lua_State *L) {
size_t source_size;
luaL_Buffer buffer;
const char *source = luaL_checklstring(L, 1, &source_size);
int dest_size = LZ4_compressBound((int)source_size);
char *dest = luaL_buffinitsize(L, &buffer, dest_size);
dest_size = LZ4_compress_default(source, dest, (int)source_siz... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x2030, %rsp # imm = 0x2030
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movl $0x1, %esi
movq %r14, %rdx
callq 0xe339
movq %rax, %r15
movl (%r14), %edi
callq 0x293aa
movslq %eax, %r12
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
movq %r12, %rdx
callq 0xe83c
movl (... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
f_decompress | static int f_decompress(lua_State *L) {
size_t source_size;
luaL_Buffer buffer;
const char *source = luaL_checklstring(L, 1, &source_size);
int dest_size = (int)luaL_optinteger(L, 2, 64 * 1024);
char *dest = luaL_buffinitsize(L, &buffer, dest_size);
dest_size = LZ4_decompress_safe(source, dest, (int)source_... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x2030, %rsp # imm = 0x2030
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movl $0x1, %esi
movq %r14, %rdx
callq 0xe339
movq %rax, %r15
movl $0x10000, %edx # imm = 0x10000
movq %rbx, %rdi
movl $0x2, %esi
callq 0xe4bd
movslq %eax, %r12
leaq 0x10(%rsp)... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
f_bind | static int f_bind(lua_State *L) {
struct sockaddr_in sin;
Uint16 port = (Uint16)luaL_checkinteger(L, 1);
// prepare addr
SDL_zero(sin);
sin.sin_family = AF_INET;
sin.sin_port = htons(port);
sin.sin_addr.s_addr = htonl(INADDR_ANY);
// bind socket
net_create_socket(L);
if (bind(socket_fd, (struct sock... | pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl $0x1, %esi
callq 0xe462
movq %rax, %r14
movq %rsp, %r15
movl $0x10, %edx
movq %r15, %rdi
xorl %esi, %esi
callq 0x6250
movw $0x2, (%r15)
movl %r14d, %eax
rolw $0x8, %ax
movw %ax, 0x2(%r15)
movl $0x0, 0x4(%r15)
movq %rbx, %rdi
callq 0x309eb
movl 0x112... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
f_unbind | static int f_unbind(lua_State *L) {
(void)L;
if (socket_fd != INVALID_SOCKET) {
closesocket(socket_fd);
socket_fd = INVALID_SOCKET;
}
return 0;
} | movl 0x1125e4(%rip), %edi # 0x142b4c
cmpl $-0x1, %edi
je 0x30581
pushq %rax
callq 0x6880
movl $0xffffffff, 0x1125cf(%rip) # imm = 0xFFFFFFFF
addq $0x8, %rsp
xorl %eax, %eax
retq
| /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
f_recv | static int f_recv(lua_State *L) {
struct sockaddr_in sin;
int datalen = 1024 * 4;
socklen_t sinlen;
luaL_Buffer buffer;
char *data;
struct timeval tv;
fd_set set;
// check socket for data
net_create_socket(L);
FD_ZERO(&set); FD_SET(socket_fd, &set);
tv.tv_sec = 0; tv.tv_usec = 0;
if (select(sock... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20d8, %rsp # imm = 0x20D8
movq %rdi, %rbx
callq 0x309eb
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %rsi
movaps %xmm0, 0x70(%rsi)
movaps %xmm0, 0x60(%rsi)
movaps %xmm0, 0x50(%rsi)
movaps %xmm0, 0x40(%rsi)
movaps %xmm0, 0x30(%rsi)
movaps %xmm0, 0x20(%rsi)
movaps %xmm... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
f_send | static int f_send(lua_State *L) {
struct sockaddr_in sin;
size_t datalen;
int sent;
const char *data = luaL_checklstring(L, 1, &datalen);
Uint32 host = (Uint32)luaL_checkinteger(L, 2);
Uint16 port = (Uint16)luaL_checkinteger(L, 3);
// prepare addr
SDL_zero(sin);
sin.sin_family = AF_INET;
sin.sin_por... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq %rsp, %r14
movl $0x1, %esi
movq %r14, %rdx
callq 0xe339
movq %rax, %r15
movq %rbx, %rdi
movl $0x2, %esi
callq 0xe462
movq %rax, %r12
movq %rbx, %rdi
movl $0x3, %esi
callq 0xe462
movq %rax, %r13
leaq 0x8(%rsp), %rbp
m... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
f_resolve | static int f_resolve(lua_State *L) {
struct addrinfo hints, *result;
const char *hostname = luaL_checkstring(L, 1);
SDL_zero(hints);
hints.ai_family = AF_INET;
if (getaddrinfo(hostname, NULL, &hints, &result) == 0) {
if (result) {
lua_pushinteger(L, ntohl(((struct sockaddr_in*)(result->ai_addr))->si... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
movl $0x1, %ebx
movl $0x1, %esi
xorl %edx, %edx
callq 0xe339
movq %rax, %r15
leaq 0x10(%rsp), %r12
movl $0x30, %edx
movq %r12, %rdi
xorl %esi, %esi
callq 0x6250
movl $0x2, 0x4(%r12)
leaq 0x8(%rsp), %r13
movq %r15, %rdi
xorl %esi, %e... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
mml_reset_channel | static void mml_reset_channel(AudioChannel *channel) {
if (channel->source) SDL_free((void*)channel->source);
SDL_zerop(channel);
channel->tempo = 140;
channel->octave = 3;
channel->waveform = PX_WAVEFORM_PULSE_50;
channel->default_length = 4;
} | pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x3085d
callq 0x6280
movl $0x38, %edx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x6250
movabsq $0x30000008c, %rax # imm = 0x30000008C
movq %rax, 0x28(%rbx)
movl $0x3, 0x1c(%rbx)
movl $0x4, 0x30(%rbx)
popq %rbx
retq
| /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
px_create_texture | static void px_create_texture(lua_State *L, int width, int height) {
SDL_DisplayMode display_mode;
// create new texture
if (texture) SDL_DestroyTexture(texture);
texture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_STREAMING, width, height);
if (!texture) luaL_error(L, "SDL_Crea... | pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movq 0x11c04(%rip), %rdi # 0x424e0
testq %rdi, %rdi
je 0x308e6
callq 0x6370
movq 0x11beb(%rip), %rdi # 0x424d8
movl $0x16462004, %esi # imm = 0x16462004
movl $0x1, %edx
movl %r14d, %ecx
movl %ebp, %r8d
callq... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
px_audio_mixer_callback | static void px_audio_mixer_callback(void *userdata, Uint8 *stream, int len) {
Sint8 *out, value;
AudioChannel *channel;
float v;
int i, j, waveform;
(void)userdata;
for (i = 0, out = (Sint8*)stream; i < len; ++i) {
value = 0;
for (j = 0; j < PX_AUDIO_CHANNELS; ++j) {
channel = &channels[j];
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, 0x8(%rsp)
testl %edx, %edx
jle 0x30dec
xorl %eax, %eax
leaq 0x111a76(%rip), %r12 # 0x142510
leaq 0x430f(%rip), %r13 # 0x34db0
leaq 0x43f8(%rip), %rbx # 0x34ea0
movl %eax, 0xc(%rsp)
movq %rsi, 0x10(%rsp)
xorl %ebp,... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
px_open_controllers | static void px_open_controllers(lua_State *L) {
int i;
SDL_GameController *controller;
for (i = 0; i < SDL_NumJoysticks(); ++i) {
if (SDL_IsGameController(i)) {
controller = SDL_GameControllerOpen(i);
if (!controller) luaL_error(L, "SDL_GameControllerOpen() failed: %s", SDL_GetError());
}
}
... | pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x6330
testl %eax, %eax
jle 0x30e4b
leaq 0x4958(%rip), %r14 # 0x3576a
xorl %ebp, %ebp
movl %ebp, %edi
callq 0x6800
testl %eax, %eax
je 0x30e40
movl %ebp, %edi
callq 0x6450
testq %rax, %rax
jne 0x30e40
callq 0x6380
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rd... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
mml_parse_number | static int mml_parse_number(AudioChannel *channel) {
int value = 0;
mml_skip_spaces(channel);
while (SDL_isdigit(*channel->in)) {
value *= 10;
value += *channel->in++ - '0';
}
return value;
} | pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x30e50
movq 0x8(%rbx), %rax
movsbl (%rax), %edi
callq 0x61c0
xorl %r14d, %r14d
testl %eax, %eax
je 0x30ebd
leal (%r14,%r14,4), %eax
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
movsbl (%rcx), %edx
leal (%rdx,%rax,2), %r14d
addl $-0x30, %r14d
movs... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
mml_parse_duration | static void mml_parse_duration(AudioChannel *channel) {
float duration = (float)mml_parse_number(channel);
if (duration == 0.0f) duration = (float)channel->default_length;
duration = mixing_frequency / ((float)channel->tempo * 0.25f / 60.0f) * (1.0f / duration);
if (mml_is_next(channel, '.')) duration *= 1.5f;
... | pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
callq 0x30e78
testl %eax, %eax
jne 0x30edc
movl 0x30(%rbx), %eax
cvtsi2ss %eax, %xmm0
cvtsi2ssl 0x28(%rbx), %xmm1
mulss 0x44bb(%rip), %xmm1 # 0x353a8
divss 0x44db(%rip), %xmm1 # 0x353d0
unpcklps %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movss 0x... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
mml_parse_note | static void mml_parse_note(AudioChannel *channel, int key) {
if (mml_is_next(channel, '#')) ++key;
else if (mml_is_next(channel, '+')) ++key;
else if (mml_is_next(channel, '-')) --key;
key += (channel->octave - 1) * 12;
channel->frequency = (float)SDL_pow(2.0, ((double)key - 49.0) / 12.0) * 440.0f;
channel-... | pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
callq 0x30e50
movq 0x8(%rbx), %rax
movl $0x1, %ebp
cmpb $0x23, (%rax)
je 0x30fca
movq %rbx, %rdi
callq 0x30e50
movq 0x8(%rbx), %rax
cmpb $0x2b, (%rax)
je 0x30fca
movq %rbx, %rdi
callq 0x30e50
movq 0x8(%rbx), %rax
movl $0xffffffff, %ebp # imm = 0xFF... | /workspace/github_c_makefile_star2_O3/kieselsteini[P]PiXL-old/pixl.c |
lt_process | void lt_process(const lt_global_t *g, bseq1_t s[2])
{
int i, k, mlen;
mlen = s[0].l_seq > s[1].l_seq? s[0].l_seq : s[1].l_seq;
// trim heading and trailing N
for (k = 0; k < 2; ++k) {
bseq1_t *sk = &s[k];
for (i = sk->l_seq - 1; i >= 0; --i) // trim trailing "N"
if (sk->seq[i] != 'N') break;
sk->l_seq = i... | pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp # imm = 0x118
movq %rsi, %rbx
movq %rdi, -0x58(%rbp)
movl (%rsi), %eax
movq %rax, -0x40(%rbp)
movl $0x7fffffff, %eax # imm = 0x7FFFFFFF
andl 0x38(%rsi), %eax
movl %eax, -0x38(%rbp)
movb $0x1, %r15b
xorl ... | /workspace/github_c_makefile_star2_O3/lh3[P]pre-pe/pre-dip-c.c |
main | int main(int argc, char *argv[])
{
int c;
lt_global_t g;
gzFile fp;
lt_global_init(&g);
while ((c = getopt(argc, argv, "Tt:b:l:")) >= 0) {
if (c == 't') g.opt.n_threads = atoi(optarg);
else if (c == 'T') g.opt.tab_out = 1;
else if (c == 'l') g.opt.min_seq_len = atoi(optarg);
}
if (argc - optind < 1) {
f... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbx
movl %edi, %ebp
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rsp)
movl $0x989680, 0x4(%rsp) # imm = 0x989680
movaps 0x143c(%rip), %xmm0 # 0x5060
movups %xmm0, 0xc(%rsp)
movabsq $0x200000003, %rax # imm = 0x200000003... | /workspace/github_c_makefile_star2_O3/lh3[P]pre-pe/pre-dip-c.c |
check_functions | static void check_functions(
parasail_function_group_t f,
parasail_sequences_t *sequences,
unsigned long pair_limit_,
const parasail_matrix_t *matrix_,
gap_score_t gap)
{
const parasail_function_info_t *functions = f.fs;
unsigned long matrix_index = 0;
unsigned long g... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp # imm = 0x108
movq %r9, 0x40(%rsp)
movq %rcx, 0x58(%rsp)
movq %rdx, 0x68(%rsp)
movq %rsi, %rbx
movq %rdi, %rsi
leaq 0xf0(%rsp), %rax
movq %r8, (%rax)
movq $0x0, 0x8(%rax)
testq %r8, %r8
leaq 0x5162b0(%rip), %r14 # 0x6bc320... | /workspace/github_c_makefile_star2_O3/nh13[P]ksw/src/parasail/tests/test_verify_tables.c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.