name stringlengths 1 473k | code stringlengths 7 647k | asm stringlengths 4 3.39M | file stringlengths 8 196 |
|---|---|---|---|
os_cvt_dir_url | void os_cvt_dir_url(char *result_buf, size_t result_buf_size,
const char *src_path)
{
char *dst = result_buf;
const char *src = src_path;
size_t rem = result_buf_size;
#if defined(TURBO) || defined(DJGPP) || defined(MICROSOFT) || defined(MSOS2)
/*
* If there's a DOS/Windows d... | movb (%rdx), %cl
testb %cl, %cl
sete %al
cmpq $0x2, %rsi
setb %r8b
orb %al, %r8b
jne 0x226e1
decq %rsi
xorl %eax, %eax
movb %cl, (%rdi,%rax)
movb 0x1(%rdx,%rax), %cl
incq %rax
testb %cl, %cl
je 0x226e3
leaq -0x1(%rsi), %r8
cmpq $0x1, %rsi
movq %r8, %rsi
ja 0x226c4
jmp 0x226e3
xorl %eax, %eax
testq %rax, %rax
movl $0x1,... | /realnc[P]frobtads/tads2/osnoui.c |
os_cvt_url_dir | void os_cvt_url_dir(char *result_buf, size_t result_buf_size,
const char *src_url)
{
char *dst = result_buf;
const char *src = src_url;
size_t rem = result_buf_size;
/*
* check for an absolute path
*/
#if defined(TURBO) || defined(DJGPP) || defined(MICROSOFT) || define... | movb (%rdx), %al
testb %al, %al
sete %cl
cmpq $0x2, %rsi
setb %r8b
orb %cl, %r8b
jne 0x22750
decq %rsi
incq %rdx
movl $0x5f, %ecx
cmpb $0x20, %al
movzbl %al, %eax
cmovbl %ecx, %eax
movb %al, (%rdi)
incq %rdi
movb (%rdx), %al
testb %al, %al
je 0x22750
leaq -0x1(%rsi), %r8
incq %rdx
cmpq $0x1, %rsi
movq %r8, %rsi
ja 0x22... | /realnc[P]frobtads/tads2/osnoui.c |
oss_parse_posix_tz | int oss_parse_posix_tz(struct os_tzinfo_t *info, const char *tz, size_t len,
int west_is_positive)
{
const char *p;
const char *std_name = 0, *dst_name = 0;
size_t std_name_len = 0, dst_name_len = 0;
int std_ofs = 0, dst_ofs = 0;
struct os_tzrule_t dst_start, dst_end;
/* ... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, 0x8(%rsp)
xorl %r15d, %r15d
movl %r15d, 0x14(%rsp)
movl %r15d, 0x10(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq %r15, 0x60(%rsp)
movaps %xmm0, 0x30(%rsp)
movq %r15, 0x40(%rsp)
testq %rsi, %rsi
je 0x2280d
movq 0x8(%r... | /realnc[P]frobtads/tads2/osstzprs.c |
os_get_str_rsc | int os_get_str_rsc(int id, char *buf, size_t buflen)
{
/*
* make sure the index is in range of our array - note that the
* index values start at 1, but our array starts at 0, so adjust
* accordingly
*/
if (id < 0 || (size_t)id >= sizeof(S_res_strings)/sizeof(S_res_strings[0]))
r... | movl $0x1, %eax
cmpl $0x5, %edi
ja 0x22e72
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movslq %edi, %rax
leaq 0x259ed(%rip), %rcx # 0x48830
movq -0x8(%rcx,%rax,8), %r15
movq %r15, %rdi
callq 0xe150
movq %rax, %rcx
incq %rcx
movl $0x2, %eax
cmpq %r14, %rcx
ja 0x22e6d
movq %rbx, %rdi
movq %r15, %... | /realnc[P]frobtads/tads2/osrestad.c |
bifyon | void bifyon(bifcxdef *ctx, int argc)
{
char rsp[128];
char *p;
runsdef val;
char yesbuf[64];
char nobuf[64];
re_context rectx;
int match_yes;
int match_no;
bifcntargs(ctx, 0, argc); /* check for proper argument count */
/* load the "yes" an... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1e8, %rsp # imm = 0x1E8
movq %rdi, %rbx
leaq 0x50(%rsp), %rsi
movl $0x40, %edx
movl $0x5, %edi
callq 0x22e24
testl %eax, %eax
je 0x22eec
movl $0x2a2e5d, 0x53(%rsp) # imm = 0x2A2E5D
movl $0x5d79595b, 0x50(%rsp) # imm = 0x5D79595B
leaq... | /realnc[P]frobtads/tads2/bif.c |
bifrfs | void bifrfs(bifcxdef *ctx, int argc)
{
objnum func;
runsdef val;
voccxdef *voc = ctx->bifcxrun->runcxvoc;
bifcntargs(ctx, 2, argc);
func = runpopfn(ctx->bifcxrun);
runpop(ctx->bifcxrun, &val);
vocremfd(voc, voc->voccxfus, func, (prpnum)0,
&val, ERR_NOFUSE);
} | subq $0x18, %rsp
movq %rdi, %rax
movq 0x8(%rdi), %rcx
movq 0x20(%rcx), %rdx
movq 0x70(%rcx), %rdi
leaq -0x10(%rdx), %rsi
movq %rsi, 0x20(%rcx)
cmpb $0xa, -0x10(%rdx)
movq 0x8(%rax), %rcx
jne 0x231c4
movq 0x20(%rcx), %rax
movzwl 0x8(%rax), %edx
leaq -0x10(%rax), %rsi
movq %rsi, 0x20(%rcx)
movups -0x10(%rax), %xmm0
movq ... | /realnc[P]frobtads/tads2/bif.c |
bifsdm | void bifsdm(bifcxdef *ctx, int argc)
{
objnum func;
runsdef val;
voccxdef *voc = ctx->bifcxrun->runcxvoc;
bifcntargs(ctx, 2, argc); /* check for proper argument count */
func = runpopfn(ctx->bifcxrun);
runpop(ctx->bifcxrun, &val);
/* limitation: don't allow string ... | subq $0x28, %rsp
movq 0x8(%rdi), %rcx
movq 0x20(%rcx), %rdx
movq 0x70(%rcx), %rax
leaq -0x10(%rdx), %rsi
movq %rsi, 0x20(%rcx)
cmpb $0xa, -0x10(%rdx)
movq 0x8(%rdi), %rdx
jne 0x2324e
movq 0x20(%rdx), %rsi
movzwl 0x8(%rsi), %ecx
leaq -0x10(%rsi), %r8
movq %r8, 0x20(%rdx)
movups -0x10(%rsi), %xmm0
movaps %xmm0, 0x10(%rsp... | /realnc[P]frobtads/tads2/bif.c |
bifrdm | void bifrdm(bifcxdef *ctx, int argc)
{
objnum func;
runsdef val;
voccxdef *voc = ctx->bifcxrun->runcxvoc;
bifcntargs(ctx, 2, argc);
func = runpopfn(ctx->bifcxrun);
runpop(ctx->bifcxrun, &val);
vocremfd(voc, voc->voccxdmn, func, (prpnum)0,
&val, ERR_NODMN);
} | subq $0x18, %rsp
movq %rdi, %rax
movq 0x8(%rdi), %rcx
movq 0x20(%rcx), %rdx
movq 0x70(%rcx), %rdi
leaq -0x10(%rdx), %rsi
movq %rsi, 0x20(%rcx)
cmpb $0xa, -0x10(%rdx)
movq 0x8(%rax), %rcx
jne 0x232e1
movq 0x20(%rcx), %rax
movzwl 0x8(%rax), %edx
leaq -0x10(%rax), %rsi
movq %rsi, 0x20(%rcx)
movups -0x10(%rax), %xmm0
movq ... | /realnc[P]frobtads/tads2/bif.c |
bifinc | void bifinc(bifcxdef *ctx, int argc)
{
int turncnt;
if (argc == 1)
{
/* get the number of turns to skip */
turncnt = runpopnum(ctx->bifcxrun);
if (turncnt < 1)
runsig1(ctx->bifcxrun, ERR_INVVBIF, ERRTSTR, "incturn");
}
else
{
/* no arguments -> in... | pushq %rax
movl %esi, %eax
movl $0x1, %esi
cmpl $0x1, %eax
jne 0x2332e
movq 0x8(%rdi), %rax
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0x1, -0x10(%rcx)
movq 0x8(%rdi), %rax
jne 0x23341
movq 0x20(%rax), %rcx
movl 0x8(%rcx), %esi
testl %esi, %esi
jle 0x2335c
movq 0x8(%rdi), %rax
movq 0x70(%r... | /realnc[P]frobtads/tads2/bif.c |
bifcstr | static void bifcstr(bifcxdef *ctx, char *buf, size_t bufsiz, uchar *str)
{
size_t srcrem;
size_t dstrem;
uchar *src;
char *dst;
/* get the length and text portion of the string */
srcrem = osrp2(str) - 2;
str += 2;
/* scan the string, and convert escapes */
for (src = str, dst... | pushq %rax
movzwl (%rcx), %eax
addq $-0x2, %rax
sete %r8b
testq %rdx, %rdx
sete %r9b
orb %r8b, %r9b
jne 0x23550
addq $0x2, %rcx
movb (%rcx), %r8b
cmpb $0x5c, %r8b
jne 0x2352f
decq %rax
je 0x23547
incq %rcx
movb (%rcx), %r8b
movzbl %r8b, %r9d
leal -0x28(%r9), %r10d
cmpl $0x2, %r10d
jb 0x23538
cmpl $0x6e, %r9d
je 0x2352c... | /realnc[P]frobtads/tads2/bif.c |
biflog | void biflog(bifcxdef *ctx, int argc)
{
char buf[OSFNMAX];
uchar *str;
bifcntargs(ctx, 1, argc);
if (runtostyp(ctx->bifcxrun) == DAT_NIL)
{
rundisc(ctx->bifcxrun);
tiologcls(ctx->bifcxtio);
}
else
{
str = runpopstr(ctx->bifcxrun);
bifcstr(ctx, buf, (... | pushq %r14
pushq %rbx
subq $0x1008, %rsp # imm = 0x1008
movq %rdi, %rbx
movq 0x8(%rdi), %rcx
movq 0x20(%rcx), %rdx
leaq -0x10(%rdx), %rax
cmpb $0x5, -0x10(%rdx)
movq %rax, 0x20(%rcx)
jne 0x23689
movq 0x10(%rbx), %rdi
addq $0x1008, %rsp # imm = 0x1008
popq %rbx
popq %r14
jmp 0x30574
cmpb $0x3, (%rax)... | /realnc[P]frobtads/tads2/bif.c |
bifres | void bifres(bifcxdef *ctx, int argc)
{
voccxdef *vctx = ctx->bifcxrun->runcxvoc;
objnum fn;
if (argc == 2)
fn = runpopfn(ctx->bifcxrun); /* get function if present */
else
{
bifcntargs(ctx, 0, argc); /* check for proper argument count */
fn = MCMONINV; ... | pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x70(%rax), %r14
movw $0xffff, %bp # imm = 0xFFFF
cmpl $0x2, %esi
jne 0x23715
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0xa, -0x10(%rcx)
movq 0x8(%rbx), %rax
jne 0x23785
movq 0x20(%rax), %rax
movzwl 0x8(... | /realnc[P]frobtads/tads2/bif.c |
bifinp | void bifinp(bifcxdef *ctx, int argc)
{
char inbuf[128];
/* check for proper argument count */
bifcntargs(ctx, 0, argc);
/* make sure the prompt is displayed */
tioflushn(ctx->bifcxtio, 0);
/* reset count of lines since the last keyboard input */
tioreset(ctx->bifcxtio);
/* read a li... | pushq %r14
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
xorl %edi, %edi
callq 0x30758
callq 0x306b8
movq %rsp, %rsi
xorl %edi, %edi
movl $0x80, %edx
callq 0x2b8d4
movq 0x8(%rbx), %r14
testl %eax, %eax
jne 0x237f6
movq %rsp, %rbx
movq %rbx, %rdi
callq 0xe150
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
xorl %ecx, %ecx... | /realnc[P]frobtads/tads2/bif.c |
bifnfy | void bifnfy(bifcxdef *ctx, int argc)
{
objnum objn;
prpnum prp;
uint tm;
voccxdef *voc = ctx->bifcxrun->runcxvoc;
bifcntargs(ctx, 3, argc); /* check for proper argument count */
objn = runpopobj(ctx->bifcxrun);
prp = runpopprp(ctx->bifcxrun);
tm = runpopnum(ctx... | pushq %rax
movq 0x8(%rdi), %rcx
movq 0x20(%rcx), %rdx
movq 0x70(%rcx), %rax
leaq -0x10(%rdx), %rsi
movq %rsi, 0x20(%rcx)
cmpb $0x2, -0x10(%rdx)
movq 0x8(%rdi), %rdx
jne 0x2389a
movq 0x20(%rdx), %rsi
movzwl 0x8(%rsi), %ecx
leaq -0x10(%rsi), %r8
movq %r8, 0x20(%rdx)
cmpb $0xd, -0x10(%rsi)
movq 0x8(%rdi), %rdx
jne 0x238b5... | /realnc[P]frobtads/tads2/bif.c |
biftrc | void biftrc(bifcxdef *ctx, int argc)
{
runsdef val;
int n;
int flag;
if (argc == 2)
{
/* get the type indicator and the on/off status */
n = runpopnum(ctx->bifcxrun);
flag = runpoplog(ctx->bifcxrun);
/* see what type of debugging they want to turn on or off ... | pushq %rbx
subq $0x10, %rsp
movq 0x8(%rdi), %rbx
cmpl $0x2, %esi
jne 0x239e5
movq 0x20(%rbx), %rax
leaq -0x10(%rax), %rcx
movq %rcx, 0x20(%rbx)
cmpb $0x1, -0x10(%rax)
movq 0x8(%rdi), %rax
jne 0x23a17
movq 0x20(%rax), %rdx
movl 0x8(%rdx), %ecx
leaq -0x10(%rdx), %rsi
movq %rsi, 0x20(%rax)
movb -0x10(%rdx), %al
cmpb $0x8,... | /realnc[P]frobtads/tads2/bif.c |
bifcdr | void bifcdr(bifcxdef *ctx, int argc)
{
uchar *lstp;
uint siz;
uint lstsiz;
runsdef val;
runsdef stkval;
bifcntargs(ctx, 1, argc);
bifchkarg(ctx, DAT_LIST);
lstp = runpoplst(ctx->bifcxrun);
stkval.runstyp = DAT_LIST;
stkval.runsv.runsvstr = lstp;
/* ... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0x7, -0x10(%rcx)
movq 0x8(%rdi), %rdi
jne 0x23d02
movq 0x20(%rdi), %rax
movq 0x8(%rax), %rsi
movb $0x7, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
movzwl (%rsi)... | /realnc[P]frobtads/tads2/bif.c |
biflen | void biflen(bifcxdef *ctx, int argc)
{
uchar *p;
runsdef val;
long len;
int l;
bifcntargs(ctx, 1, argc);
switch(runtostyp(ctx->bifcxrun))
{
case DAT_SSTRING:
p = (uchar *)runpopstr(ctx->bifcxrun);
len = osrp2(p) - 2;
break;
case DAT_LIST:
... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x20(%rax), %rcx
movzbl -0x10(%rcx), %edx
addq $-0x10, %rcx
cmpl $0x7, %edx
je 0x23d75
cmpl $0x3, %edx
jne 0x23de0
movq %rcx, 0x20(%rax)
cmpb $0x3, (%rcx)
movq 0x8(%rbx), %rax
jne 0x23e10
movq 0x20(%rax), %rax
movq 0x... | /realnc[P]frobtads/tads2/bif.c |
biffnd | void biffnd(bifcxdef *ctx, int argc)
{
uchar *p1, *p2;
int len1, len2;
int outv;
runsdef val;
int typ;
int siz;
bifcntargs(ctx, 2, argc);
switch(runtostyp(ctx->bifcxrun))
{
case DAT_SSTRING:
p1 = runpopstr(ctx->bifcxrun);
len1 = osrp2(p... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq 0x8(%rdi), %rax
movq 0x20(%rax), %rcx
movzbl -0x10(%rcx), %edx
addq $-0x10, %rcx
cmpl $0x7, %edx
je 0x23f12
cmpl $0x3, %edx
jne 0x2404b
movq %rcx, 0x20(%rax)
cmpb $0x3, (%rcx)
movq 0x8(%rdi), %rax
jne 0x24030
movq 0x20(%rax), %rcx
m... | /realnc[P]frobtads/tads2/bif.c |
bifask | void bifask(bifcxdef *ctx, int argc)
{
uchar *prompt;
char buf[OSFNMAX + 2];
char pbuf[128];
int err;
int prompt_type;
int file_type;
ulong flags;
/* make sure we have an acceptable number of arguments */
if (argc != 1 && argc != 3 && argc != 4)
runsig(ctx->bif... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10b8, %rsp # imm = 0x10B8
movl %esi, %r15d
movq %rdi, %rbx
leal -0x3(%r15), %eax
cmpl $0x2, %eax
jb 0x24399
cmpl $0x1, %r15d
jne 0x246cb
movq 0x8(%rbx), %rax
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0x3, ... | /realnc[P]frobtads/tads2/bif.c |
bif_stristr | static char *bif_stristr(const char *s1, const char *s2)
{
size_t s1len;
size_t s2len;
/* scan for a match */
for (s1len = strlen(s1), s2len = strlen(s2) ; s1len >= s2len ;
++s1, --s1len)
{
/* if this is a match, return this substring */
if (memicmp(s1, s2, s2len) == 0)
... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0xe150
movq %rax, %r15
movq %r14, %rdi
callq 0xe150
cmpq %rax, %r15
jb 0x2472d
movq %rax, %r12
movq %rbx, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x21e20
testl %eax, %eax
je 0x2472f
incq %rbx
decq %r15
cmpq %r12, %r15
jae 0x... | /realnc[P]frobtads/tads2/bif.c |
bifssc | void bifssc(bifcxdef *ctx, int argc)
{
int s1, s2;
/* optional new way - string argument */
if (argc == 1 && runtostyp(ctx->bifcxrun) == DAT_SSTRING)
{
char buf[80];
uchar *p;
p = runpopstr(ctx->bifcxrun);
bifcstr(ctx, buf, (size_t)sizeof(buf), p);
tio... | pushq %rbx
subq $0x50, %rsp
cmpl $0x1, %esi
jne 0x24796
movq 0x8(%rdi), %rax
movq 0x20(%rax), %rcx
cmpb $0x3, -0x10(%rcx)
jne 0x24796
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0x3, -0x10(%rcx)
movq 0x8(%rdi), %rax
jne 0x24801
movq 0x20(%rax), %rax
movq 0x8(%rax), %rcx
movq %rsp, %rbx
movl... | /realnc[P]frobtads/tads2/bif.c |
bifsub | void bifsub(bifcxdef *ctx, int argc)
{
uchar *p;
int ofs;
int asklen;
int outlen;
int len;
bifcntargs(ctx, 3, argc);
/* get the string argument */
bifchkarg(ctx, DAT_SSTRING);
p = runpopstr(ctx->bifcxrun);
len = osrp2(p) - 2;
p += 2;
/* get th... | pushq %rax
movq 0x8(%rdi), %rax
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0x3, -0x10(%rcx)
movq 0x8(%rdi), %rax
jne 0x24900
movq 0x20(%rax), %rdx
movq 0x8(%rdx), %rcx
movzwl (%rcx), %esi
leaq -0x10(%rdx), %r8
movq %r8, 0x20(%rax)
cmpb $0x1, -0x10(%rdx)
movq 0x8(%rdi), %rax
jne 0x248b5
mov... | /realnc[P]frobtads/tads2/bif.c |
bifcvn | void bifcvn(bifcxdef *ctx, int argc)
{
runsdef val;
uchar *p;
int len;
int typ;
long acc;
int neg;
bifcntargs(ctx, 1, argc);
p = runpopstr(ctx->bifcxrun);
len = osrp2(p) - 2;
p += 2;
if (len == 3 && !memcmp(p, "nil", (size_t)3))
typ = D... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq 0x8(%rdi), %rax
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0x3, -0x10(%rcx)
movq 0x8(%rdi), %rbx
jne 0x24c11
movq 0x20(%rbx), %rax
movq 0x8(%rax), %r13
movzwl (%r13), %r12d
leal -0x2(%r12), %r15d
leaq 0... | /realnc[P]frobtads/tads2/bif.c |
bifinh | int bifinh(voccxdef *voc, vocidef *v, objnum cls)
{
int i;
objnum *sc;
if (!v) return(FALSE);
for (i = v->vocinsc, sc = v->vocisc ; i ; ++sc, --i)
{
if (*sc == cls
|| bifinh(voc, vocinh(voc, *sc), cls))
return(TRUE);
}
return(FALSE);
} | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, 0x4(%rsp)
xorl %ebp, %ebp
testq %rsi, %rsi
je 0x24e26
movq %rsi, %r14
movzbl (%rsi), %r13d
testq %r13, %r13
je 0x24e26
movq %rdi, %r15
xorl %ebx, %ebx
movzwl 0x4(%rsp), %r12d
movl $0x1, %ebp
movzwl 0xe(%r14,%rbx,2), %eax
cmpw 0x4(%r... | /realnc[P]frobtads/tads2/bif.c |
bifisc | void bifisc(bifcxdef *ctx, int argc)
{
objnum obj;
objnum cls;
runsdef val;
voccxdef *voc = ctx->bifcxrun->runcxvoc;
bifcntargs(ctx, 2, argc);
/* if checking for nil, return nil */
if (runtostyp(ctx->bifcxrun) == DAT_NIL)
{
rundisc(ctx->bifcxrun);
rundisc(ct... | pushq %rbx
subq $0x10, %rsp
movq 0x8(%rdi), %rdx
movq 0x20(%rdx), %rsi
movq 0x70(%rdx), %rax
leaq -0x10(%rsi), %rcx
cmpb $0x5, -0x10(%rsi)
movq %rcx, 0x20(%rdx)
jne 0x24e6d
movq 0x8(%rdi), %rax
addq $-0x10, 0x20(%rax)
movq 0x8(%rdi), %rdi
addq $0x10, %rsp
popq %rbx
jmp 0x36207
cmpb $0x2, (%rcx)
movq 0x8(%rdi), %rdx
jne... | /realnc[P]frobtads/tads2/bif.c |
bif1sc | void bif1sc(bifcxdef *ctx, int argc)
{
objnum obj;
objnum sc;
bifcntargs(ctx, 1, argc);
obj = runpopobj(ctx->bifcxrun);
sc = objget1sc(ctx->bifcxrun->runcxmem, obj);
runpobj(ctx->bifcxrun, sc);
} | pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0x2, -0x10(%rcx)
movq 0x8(%rdi), %rax
jne 0x24f2f
movq 0x8(%rax), %rdi
movq 0x20(%rax), %rax
movzwl 0x8(%rax), %esi
callq 0x2edb2
movq 0x8(%rbx), %rdi
movzwl %ax, %esi
popq %rbx
jmp 0x361e5
movq (%ra... | /realnc[P]frobtads/tads2/bif.c |
biffob | void biffob(bifcxdef *ctx, int argc)
{
vocidef ***vpg;
vocidef **v;
objnum obj;
int i;
int j;
objnum cls;
voccxdef *voc = ctx->bifcxrun->runcxvoc;
/* get class to search for, if one is specified */
if (argc == 0)
cls = MCMONINV;
else if (argc == 1... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0x8(%rdi), %rax
movq 0x70(%rax), %rcx
movq %rcx, 0x10(%rsp)
movw $0xffff, %bp # imm = 0xFFFF
testl %esi, %esi
je 0x24f98
cmpl $0x1, %esi
jne 0x25045
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb ... | /realnc[P]frobtads/tads2/bif.c |
bifnob | void bifnob(bifcxdef *ctx, int argc)
{
objnum prv;
vocidef ***vpg;
vocidef **v;
objnum obj;
int i;
int j;
objnum cls;
voccxdef *voc = ctx->bifcxrun->runcxvoc;
/* get last position in search */
prv = runpopobj(ctx->bifcxrun);
/* get class to s... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0x8(%rdi), %rax
movq 0x20(%rax), %rcx
movq 0x70(%rax), %rdx
movq %rdx, 0x10(%rsp)
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0x2, -0x10(%rcx)
movq 0x8(%rdi), %rax
jne 0x251be
movq 0x20(%rax), %rcx
movzwl 0x8(%rcx), %r15d
mov... | /realnc[P]frobtads/tads2/bif.c |
bifarg | void bifarg(bifcxdef *ctx, int argc)
{
int argnum;
bifcntargs(ctx, 1, argc);
bifchkarg(ctx, DAT_NUMBER);
/* get and verify argument number */
argnum = runpopnum(ctx->bifcxrun);
if (argnum < 1) runsig1(ctx->bifcxrun, ERR_INVVBIF, ERRTSTR, "getarg");
runrepush(ctx->bifcxrun, ctx->bi... | pushq %rax
movq 0x8(%rdi), %rax
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0x1, -0x10(%rcx)
movq 0x8(%rdi), %rax
jne 0x25274
movq 0x20(%rax), %rcx
movq 0x8(%rcx), %rcx
testl %ecx, %ecx
jle 0x2528f
movq 0x28(%rax), %rdx
andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF
shlq $0x4, %rcx
negq %r... | /realnc[P]frobtads/tads2/bif.c |
biftyp | void biftyp(bifcxdef *ctx, int argc)
{
runsdef val;
bifcntargs(ctx, 1, argc);
/* get whatever it is, and push the type */
runpop(ctx->bifcxrun, &val);
val.runsv.runsvnum = val.runstyp; /* new value is the datatype */
runpush(ctx->bifcxrun, DAT_NUMBER, &val);
} | subq $0x18, %rsp
movq 0x8(%rdi), %rax
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
movups -0x10(%rcx), %xmm0
movq %rsp, %rdx
movaps %xmm0, (%rdx)
movzbl (%rdx), %eax
movq %rax, 0x8(%rdx)
movq 0x8(%rdi), %rdi
movl $0x1, %esi
callq 0x3615b
addq $0x18, %rsp
retq
| /realnc[P]frobtads/tads2/bif.c |
bifund | void bifund(bifcxdef *ctx, int argc)
{
objucxdef *ucx = ctx->bifcxrun->runcxvoc->voccxundo;
mcmcxdef *mcx = ctx->bifcxrun->runcxmem;
errcxdef *ec = ctx->bifcxerr;
int err;
int undone;
runsdef val;
bifcntargs(ctx, 0, argc); /* no arguments */... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x140, %rsp # imm = 0x140
movq %rdi, %rbx
movq (%rdi), %r14
movq 0x8(%rdi), %rax
movq 0x8(%rax), %r15
movq 0x70(%rax), %rax
movq 0x20(%rax), %r12
leaq 0x78(%rsp), %r13
movq %r13, %rdi
callq 0xe3f0
movl %eax, -0x68(%r13)
testl %eax, %eax
je 0x25356
... | /realnc[P]frobtads/tads2/bif.c |
bifdef | void bifdef(bifcxdef *ctx, int argc)
{
prpnum prpn;
objnum objn;
uint ofs;
runsdef val;
objnum def_objn;
int flag;
/* get object and property arguments */
objn = runpopobj(ctx->bifcxrun);
prpn = runpopprp(ctx->bifcxrun);
/* if there's a flag argument, get it as well *... | pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0x2, -0x10(%rcx)
movq 0x8(%rdi), %rax
jne 0x254d8
movq 0x20(%rax), %rcx
movzwl 0x8(%rcx), %ebp
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0xd, -0x10(%rc... | /realnc[P]frobtads/tads2/bif.c |
bifpty | void bifpty(bifcxdef *ctx, int argc)
{
prpnum prpn;
objnum objn;
uint ofs;
runsdef val;
objnum orn;
objdef *objptr;
prpdef *propptr;
bifcntargs(ctx, 2, argc);
/* get offset of obj.prop */
objn = runpopobj(ctx->bifcxrun);
prpn = runpopprp(ctx->bifcxrun);
... | pushq %rbp
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0x2, -0x10(%rcx)
movq 0x8(%rdi), %rcx
jne 0x2562a
movq 0x20(%rcx), %rdx
movzwl 0x8(%rdx), %eax
leaq -0x10(%rdx), %rsi
movq %rsi, 0x20(%rcx)
cmpb $0xd, -0x10(%rdx)
movq 0x8... | /realnc[P]frobtads/tads2/bif.c |
bifoph | void bifoph(bifcxdef *ctx, int argc)
{
runsdef val;
int hidden, output_occurred;
bifcntargs(ctx, 1, argc);
outstat(&hidden, &output_occurred);
if (runtostyp(ctx->bifcxrun) == DAT_TRUE)
{
/* throw away the flag */
rundisc(ctx->bifcxrun);
/* figure out appropr... | pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x24(%rsp), %rdi
leaq 0xc(%rsp), %rsi
callq 0x309b4
movq 0x8(%rbx), %rax
movq 0x20(%rax), %rcx
movzbl -0x10(%rcx), %edx
addq $-0x10, %rcx
cmpl $0x1, %edx
je 0x256e4
cmpl $0x5, %edx
je 0x256c0
cmpl $0x8, %edx
jne 0x25799
movq %rcx, 0x20(%rax)
cmpl $0x0, 0x24(%r... | /realnc[P]frobtads/tads2/bif.c |
biftim | void biftim(bifcxdef *ctx, int argc)
{
time_t timer;
struct tm *tblock;
uchar ret[80];
uchar *p;
runsdef val;
int typ;
if (argc == 1)
{
/* get the time type */
typ = (int)runpopnum(ctx->bifcxrun);
}
else
{
/* make sure no argume... | pushq %r14
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rbx
movl $0x1, %eax
cmpl $0x1, %esi
jne 0x25833
movq 0x8(%rbx), %rax
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0x1, -0x10(%rcx)
movq 0x8(%rbx), %rax
jne 0x25912
movq 0x20(%rax), %rax
movl 0x8(%rax), %eax
cmpl $0x2, %eax
je 0x258f7
cmpl $0... | /realnc[P]frobtads/tads2/bif.c |
bifgfu | void bifgfu(bifcxdef *ctx, int argc)
{
vocddef *daem;
objnum func;
runsdef val;
runcxdef *rcx = ctx->bifcxrun;
int slots;
prpnum prop;
voccxdef *vcx = ctx->bifcxrun->runcxvoc;
bifcntargs(ctx, 2, argc);
if (runtostyp(rcx) == DAT_FNADDR)
{
/* check on a se... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0x8(%rdi), %rbx
movq 0x20(%rbx), %rdx
movq 0x70(%rbx), %rax
leaq -0x10(%rdx), %rcx
cmpb $0xa, -0x10(%rdx)
movq %rcx, 0x20(%rbx)
movb -0x10(%rdx), %cl
jne 0x25a00
cmpb $0xa, %cl
jne 0x25a79
movzwl -0x8(%rdx), %ebp
leaq -0x20(%rdx), %... | /realnc[P]frobtads/tads2/bif.c |
bifsct | void bifsct(bifcxdef *bifctx, int argc)
{
runcxdef *ctx = bifctx->bifcxrun;
uchar *l1;
uchar *l2;
uchar *l3;
uint siz1;
uint siz2;
uint siz3;
uchar *p;
uint l;
uint dsz1;
uint dsz2;
runsdef val;
runsdef stk1, stk2;
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq 0x8(%rdi), %rbx
movq 0x20(%rbx), %rcx
leaq -0x10(%rcx), %rax
movq %rax, 0x20(%rbx)
cmpb $0x7, -0x10(%rcx)
jne 0x25cda
movq -0x8(%rcx), %rax
movq %rax, 0x10(%rsp)
movzwl (%rax), %esi
movl %esi, 0xc(%rsp)
leaq -0x20(%rcx), %rdx
movq %... | /realnc[P]frobtads/tads2/bif.c |
bifink | void bifink(bifcxdef *ctx, int argc)
{
int c;
int extc;
char str[20];
size_t len;
bifcntargs(ctx, 0, argc);
tioflushn(ctx->bifcxtio, 0);
/* get a key */
c = os_getc_raw();
/* if it's extended, get the second part of the extended sequence */
extc = (c == 0 ? os_getc... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
xorl %ebp, %ebp
xorl %edi, %edi
callq 0x30758
callq 0x10397
movl %eax, %r14d
testl %eax, %eax
jne 0x25d1d
callq 0x10397
movl %eax, %ebp
movq %rsp, %r15
movq %r15, %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x25d59
movq %r15, %rdi
callq 0xe150... | /realnc[P]frobtads/tads2/bif.c |
get_ext_key_name | static int get_ext_key_name(char *namebuf, int c, int extc)
{
/* if it's a control character, translate it */
if (c >= 1 && c <= 27)
{
switch(c)
{
case 10:
case 13:
/* return '\n' for LF and CR characters */
strcpy(namebuf, "\\n");
return T... | leal -0x1(%rsi), %eax
cmpl $0x1a, %eax
ja 0x25d83
leal -0x8(%rsi), %eax
cmpl $0x5, %eax
ja 0x25dac
leaq 0x148cc(%rip), %rcx # 0x3a63c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $0x0, 0x2(%rdi)
movw $0x6e5c, (%rdi) # imm = 0x6E5C
retq
testl %esi, %esi
je 0x25d8f
movb %sil, (%rdi)
movb $0x0, 0... | /realnc[P]frobtads/tads2/bif.c |
bifwrd | void bifwrd(bifcxdef *ctx, int argc)
{
int ob;
vocoldef *v;
uchar buf[128];
uchar *dst;
uchar *src;
uint len;
runsdef val;
bifcntargs(ctx, 1, argc);
/* figure out what word list to get */
ob = runpopnum(ctx->bifcxrun);
switch(ob)
{
case 1:... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0x1, -0x10(%rcx)
movq 0x8(%rdi), %rdi
jne 0x25f1d
movq 0x20(%rdi), %rax
movl 0x8(%rax), %eax
cmpl $0x1, %eax
je 0x25e61
cmpl $0... | /realnc[P]frobtads/tads2/bif.c |
bifadw | void bifadw(bifcxdef *ctx, int argc)
{
uchar *wrd;
objnum objn;
prpnum prpn;
vocidef *voci;
int classflg;
voccxdef *voc = ctx->bifcxrun->runcxvoc;
bifcntargs(ctx, 3, argc);
/* get the arguments */
objn = runpopobj(ctx->bifcxrun);
prpn = runpopprp(ctx->bifcxrun);... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x8(%rdi), %rax
movq 0x20(%rax), %rcx
movq 0x70(%rax), %rbx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0x2, -0x10(%rcx)
movq 0x8(%rdi), %rax
jne 0x26003
movq 0x20(%rax), %rcx
movzwl 0x8(%rcx), %r14d
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0x... | /realnc[P]frobtads/tads2/bif.c |
bifdlw | void bifdlw(bifcxdef *ctx, int argc)
{
uchar *wrd;
objnum objn;
prpnum prpn;
voccxdef *voc = ctx->bifcxrun->runcxvoc;
bifcntargs(ctx, 3, argc);
/* get the arguments */
objn = runpopobj(ctx->bifcxrun);
prpn = runpopprp(ctx->bifcxrun);
wrd = runpopstr(ctx->bifcxrun);
/*... | pushq %rax
movq 0x8(%rdi), %rcx
movq 0x20(%rcx), %rdx
movq 0x70(%rcx), %rax
leaq -0x10(%rdx), %rsi
movq %rsi, 0x20(%rcx)
cmpb $0x2, -0x10(%rdx)
movq 0x8(%rdi), %rdx
jne 0x26108
movq 0x20(%rdx), %rsi
movzwl 0x8(%rsi), %ecx
leaq -0x10(%rsi), %r8
movq %r8, 0x20(%rdx)
cmpb $0xd, -0x10(%rsi)
movq 0x8(%rdi), %rdx
jne 0x26123... | /realnc[P]frobtads/tads2/bif.c |
bifgtw | void bifgtw(bifcxdef *ctx, int argc)
{
objnum objn;
prpnum prpn;
voccxdef *voc = ctx->bifcxrun->runcxvoc;
int cnt;
int siz;
runsdef val;
struct bifgtw_cb_ctx fnctx;
bifcntargs(ctx, 2, argc);
/* get the arguments */
objn = runpopobj(ctx->bifcxrun);
prpn =... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x70(%rax), %r14
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0x2, -0x10(%rcx)
movq 0x8(%rdi), %rcx
jne 0x262ad
movq 0x20(%rcx), %rdx
movzwl 0x8(%rdx), %eax
leaq -0x10... | /realnc[P]frobtads/tads2/bif.c |
bifgtw_cb | static void bifgtw_cb(void *ctx0, vocdef *voc, vocwdef *vocw)
{
struct bifgtw_cb_ctx *ctx = (struct bifgtw_cb_ctx *)ctx0;
/* ignore deleted objects */
if (vocw->vocwflg & VOCFDEL)
return;
/* ignore objects of the inappropriate type */
if (vocw->vocwtyp != ctx->typ)
return;
... | testb $0x8, 0x7(%rdx)
jne 0x263d0
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movzbl 0x6(%rdx), %eax
cmpl %eax, 0x8(%rdi)
jne 0x263cb
movq %rsi, %r14
movq (%rbx), %rax
movb $0x3, (%rax)
movq (%rbx), %rdi
addq $0x3, %rdi
leaq 0x10(%rsi), %r15
movzbl 0x8(%rsi), %edx
movq %r15, %rsi
callq 0xe200
cmpb $0x0, 0x9(%r14)
... | /realnc[P]frobtads/tads2/bif.c |
bifvin | void bifvin(bifcxdef *ctx, int argc)
{
objnum verb;
objnum prep;
uchar tplbuf[VOCTPL2SIZ];
int newstyle;
/* get the verb */
verb = runpopobj(ctx->bifcxrun);
/* check for the presence of a preposition */
if (argc == 1)
{
/* no preposition */
prep = MCMONI... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0x2, -0x10(%rcx)
movq 0x8(%rdi), %rcx
jne 0x2653a
movq 0x20(%rcx), %rdx
movzwl 0x8(%rdx), %eax
movw $0xffff, %r14w # i... | /realnc[P]frobtads/tads2/bif.c |
bifcls | void bifcls(bifcxdef *ctx, int argc)
{
/* this takes no arguments */
bifcntargs(ctx, 0, argc);
/* flush any pending output */
tioflushn(ctx->bifcxtio, 0);
/* clear the screen */
oscls();
} | pushq %rax
xorl %edi, %edi
callq 0x30758
popq %rax
jmp 0x1057e
| /realnc[P]frobtads/tads2/bif.c |
biffopen | void biffopen(bifcxdef *ctx, int argc)
{
char fname[OSFNMAX];
uchar *p;
uchar *mode;
int modelen;
int fnum;
osfildef *fp;
int bin_mode = TRUE; /* flag: mode is binary (rather than text) */
int rw_mode = FALSE; /* flag: both read and write are allo... | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x2000, %rsp # imm = 0x2000
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0x3, -0x10(%rcx)
movq 0x8(%rdi), %rax
jne 0x26871
movq 0x20(%rax), %rax
movq 0x8(%rax), %rcx
movq %rsp, %r14
mo... | /realnc[P]frobtads/tads2/bif.c |
biffclose | void biffclose(bifcxdef *ctx, int argc)
{
int fnum;
osfildef *fp;
/* get the file number */
bifcntargs(ctx, 1, argc);
fp = bif_get_file(ctx, &fnum, 0);
/* close the file and release the slot */
osfcls(fp);
ctx->bifcxfile[fnum].fp = 0;
} | pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x4(%rsp), %r14
movq %r14, %rsi
xorl %edx, %edx
callq 0x268c7
movq %rax, %rdi
callq 0xe260
movslq (%r14), %rax
shlq $0x4, %rax
movq $0x0, 0x30(%rbx,%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| /realnc[P]frobtads/tads2/bif.c |
bif_get_file | static osfildef *bif_get_file(bifcxdef *ctx, int *fnump, int *bin_modep)
{
long fnum;
/* get the file number and make sure it's valid */
fnum = runpopnum(ctx->bifcxrun);
if (fnum < 0 || fnum >= BIFFILMAX || ctx->bifcxfile[fnum].fp == 0)
runsig(ctx->bifcxrun, ERR_BADFILE);
/* put the valida... | pushq %rax
movq 0x8(%rdi), %rax
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %r8
movq %r8, 0x20(%rax)
cmpb $0x1, -0x10(%rcx)
movq 0x8(%rdi), %rax
jne 0x2693b
movq 0x20(%rax), %rcx
movq 0x8(%rcx), %rcx
cmpq $0x9, %rcx
ja 0x26920
movq %rcx, %r8
shlq $0x4, %r8
cmpq $0x0, 0x30(%rdi,%r8)
je 0x26920
testq %rsi, %rsi
je 0x26906
mo... | /realnc[P]frobtads/tads2/bif.c |
bifftell | void bifftell(bifcxdef *ctx, int argc)
{
osfildef *fp;
/* get the file number */
bifcntargs(ctx, 1, argc);
fp = bif_get_file(ctx, (int *)0, 0);
/* return the seek position */
runpnum(ctx->bifcxrun, osfpos(fp));
} | pushq %rbx
movq %rdi, %rbx
xorl %esi, %esi
xorl %edx, %edx
callq 0x268c7
movq 0x8(%rbx), %rbx
movq %rax, %rdi
callq 0xe030
movq %rbx, %rdi
movq %rax, %rsi
popq %rbx
jmp 0x361d0
| /realnc[P]frobtads/tads2/bif.c |
biffseekeof | void biffseekeof(bifcxdef *ctx, int argc)
{
osfildef *fp;
/* get the file pointer */
bifcntargs(ctx, 1, argc);
fp = bif_get_file(ctx, (int *)0, 0);
/* seek to the end */
osfseek(fp, 0L, OSFSK_END);
} | pushq %rax
xorl %esi, %esi
xorl %edx, %edx
callq 0x268c7
movq %rax, %rdi
xorl %esi, %esi
movl $0x2, %edx
popq %rax
jmp 0xe2e0
| /realnc[P]frobtads/tads2/bif.c |
bifcapture | void bifcapture(bifcxdef *ctx, int argc)
{
mcmcxdef *mcx = ctx->bifcxrun->runcxmem;
mcmon obj;
uint siz;
uint ofs;
uchar *p;
/* get the capture on/off flag */
bifcntargs(ctx, 1, argc);
switch(runtostyp(ctx->bifcxrun))
{
case DAT_TRUE:
/* turn on capturin... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp # imm = 0x148
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x8(%rax), %r14
movq 0x20(%rax), %rcx
movzbl -0x10(%rcx), %edx
cmpl $0x1, %edx
je 0x26ee1
cmpl $0x8, %edx
jne 0x26fc7
movq 0x10(%rbx), %rdi
movq %r14, %rsi
movl $0x1, %e... | /realnc[P]frobtads/tads2/bif.c |
bifsysinfo | void bifsysinfo(bifcxdef *ctx, int argc)
{
runsdef val;
int id;
long result;
/* see what we have */
switch(id = (int)runpopnum(ctx->bifcxrun))
{
case SYSINFO_SYSINFO:
/* systemInfo call is supported in this version - return true */
bifcntargs(ctx, 1, argc);
val.runst... | pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0x1, -0x10(%rcx)
movq 0x8(%rdi), %rdi
jne 0x27173
movq 0x20(%rdi), %rax
movl 0x8(%rax), %eax
leal -0x1(%rax), %ecx
cmpl $0x21, %ecx
ja 0x27143
leaq 0x135df(%rip), %rdx # 0x3a654
... | /realnc[P]frobtads/tads2/bif.c |
bifsetme | void bifsetme(bifcxdef *ctx, int argc)
{
objnum new_me;
/* this function takes one argument */
bifcntargs(ctx, 1, argc);
/* get the new "Me" object */
new_me = runpopobj(ctx->bifcxrun);
/* "Me" cannot be nil */
if (new_me == MCMONINV)
runsig1(ctx->bifcxrun, ERR_INVVBIF, ERRTST... | pushq %rax
movq 0x8(%rdi), %rax
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0x2, -0x10(%rcx)
movq 0x8(%rdi), %rax
jne 0x271d7
movq 0x20(%rax), %rcx
movzwl 0x8(%rcx), %ecx
cmpw $-0x1, %cx
je 0x271f2
movq 0x70(%rax), %rdi
movzwl %cx, %esi
popq %rax
jmp 0x3868c
movq (%rax), %rax
movq (%rax), %... | /realnc[P]frobtads/tads2/bif.c |
bifsetoutfilter | void bifsetoutfilter(bifcxdef *ctx, int argc)
{
/* ensure we have the right number of arguments */
bifcntargs(ctx, 1, argc);
/* see what we have */
switch(runtostyp(ctx->bifcxrun))
{
case DAT_NIL:
/* remove the current filter */
out_set_filter(MCMONINV);
/* discard the ... | pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x20(%rax), %rcx
movzbl -0x10(%rcx), %edx
cmpl $0xa, %edx
je 0x27711
cmpl $0x5, %edx
jne 0x27730
movl $0xffff, %edi # imm = 0xFFFF
callq 0x30a13
movq 0x8(%rbx), %rax
addq $-0x10, 0x20(%rax)
popq %rbx
retq
addq $-0x10, %rcx
movq %rcx, 0x20(%rax)
cmpb $0xa, (... | /realnc[P]frobtads/tads2/bif.c |
bifexec | void bifexec(bifcxdef *ctx, int argc)
{
objnum actor;
objnum verb;
objnum dobj;
objnum prep;
objnum iobj;
int err;
uint capture_start;
uint capture_end;
objnum capture_obj;
ulong flags;
int hide_any;
int rem_argc;
/*
* Check for the correct ... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp # imm = 0x158
movq %rdi, %rbx
movl %esi, %eax
leal -0x7(%rax), %ecx
movq 0x8(%rdi), %rax
cmpl $-0x6, %ecx
jbe 0x27a13
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0x2, -0x10(%rcx)
movq 0x8(%rbx), %... | /realnc[P]frobtads/tads2/bif.c |
bifgetobj | void bifgetobj(bifcxdef *ctx, int argc)
{
int id;
objnum obj;
voccxdef *voc = ctx->bifcxrun->runcxvoc;
/* check the argument count */
bifcntargs(ctx, 1, argc);
/* get the argument */
id = (int)runpopnum(ctx->bifcxrun);
/* get the appropriate object */
switch(id)
{
case... | pushq %rax
movq %rdi, %rcx
movq 0x8(%rdi), %rdx
movq 0x20(%rdx), %rsi
movq 0x70(%rdx), %rax
leaq -0x10(%rsi), %rdi
movq %rdi, 0x20(%rdx)
cmpb $0x1, -0x10(%rsi)
movq 0x8(%rcx), %rdi
jne 0x27bf4
movq 0x20(%rdi), %rdx
movl 0x8(%rdx), %edx
decl %edx
cmpl $0x8, %edx
ja 0x27c0f
leaq 0x12b72(%rip), %rcx # 0x3a6dc
movslq (... | /realnc[P]frobtads/tads2/bif.c |
bifinpdlg | void bifinpdlg(bifcxdef *ctx, int argc)
{
uchar *p;
char prompt[256];
char lblbuf[256];
char *labels[10];
char *dst;
char *xp;
uint len;
size_t bcnt;
int default_resp, cancel_resp;
int resp;
int std_btns;
int icon_id;
/* check for proper arguments */
bifcntargs(c... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x278, %rsp # imm = 0x278
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0x1, -0x10(%rcx)
movq 0x8(%rdi), %rax
jne 0x27f17
movq 0x20(%rax), %rcx
movq 0x8(%rcx), %r13
leaq -0x... | /realnc[P]frobtads/tads2/bif.c |
bifresexists | void bifresexists(bifcxdef *ctx, int argc)
{
uchar *p;
char resname[OSFNMAX];
appctxdef *appctx;
int found;
runsdef val;
/* check for proper arguments */
bifcntargs(ctx, 1, argc);
/* get the resource name string */
p = runpopstr(ctx->bifcxrun);
bifcstr(ctx, resname, (size_t... | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1018, %rsp # imm = 0x1018
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x20(%rax), %rcx
leaq -0x10(%rcx), %rdx
movq %rdx, 0x20(%rax)
cmpb $0x3, -0x10(%rcx)
movq 0x8(%rdi), %rax
jne 0x28012
movq 0x20(%rax), %rax
movq 0x8(%rax), %rcx
leaq 0x10(%rsp), %rsi
movl $0... | /realnc[P]frobtads/tads2/bif.c |
cmap_load | int cmap_load(char *filename)
{
int err;
/* try loading the file */
if ((err = cmap_load_internal(filename)) != 0)
return err;
/*
* note that we've explicitly loaded a character set, if they named
* a character set (if not, this simply establishes the default
* settin... | pushq %rbx
movq %rdi, %rbx
callq 0x280de
testl %eax, %eax
jne 0x280dc
xorl %eax, %eax
testq %rbx, %rbx
je 0x280dc
movb $0x1, 0x26480(%rip) # 0x4e55c
popq %rbx
retq
| /realnc[P]frobtads/tads2/cmap.c |
mcsini | void mcsini(mcscxdef *ctx, mcmcx1def *gmemctx, ulong maxsiz,
osfildef *fp, char *swapfilename, errcxdef *errctx)
{
uchar *p;
ctx->mcscxtab = (mcsdsdef **)0; /* anticipate failure */
/* allocate space from the low-level heap for page table and one page */
p = mchalo(e... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r15
movq %r8, %rbx
movq %rcx, %r13
movq %rdx, %rbp
movq %rsi, (%rsp)
movq %rdi, %r14
xorl %eax, %eax
movq %rax, 0x28(%rdi)
leaq 0x1047d(%rip), %rdx # 0x3db50
movl $0x2000, %esi # imm = 0x2000
movq %r9, %rdi
callq 0x2c0... | /realnc[P]frobtads/tads2/mcs.c |
runpprop | void runpprop(runcxdef *ctx, uchar *noreg *codepp,
objnum callobj, prpnum callprop,
noreg objnum obj, prpnum prop, int inh, int argc, objnum self)
{
uint pofs;
uint saveofs;
objdef *objptr;
prpdef *prpptr;
uchar *val;
int typ;
runsdef sval;
o... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp # imm = 0x168
movq %rsi, 0x10(%rsp)
movq %rdi, %rbx
movw %r8w, 0x4(%rsp)
movq 0x20(%rdi), %r14
movzwl 0x4(%rsp), %eax
cmpw $-0x1, %ax
je 0x36d18
movl %ecx, %r12d
movl %edx, %ebp
movl 0x1a0(%rsp), %r8d
movq 0x8(%rbx), %rdi
mov... | /realnc[P]frobtads/tads2/run.c |
supivoc1 | void supivoc1(supcxdef *sup, voccxdef *ctx, vocidef *v, objnum target,
int inh_from_obj, int flags)
{
objnum *sc;
int numsc;
vocidef *scv;
for (numsc = v->vocinsc, sc = v->vocisc ; numsc ; ++sc, --numsc)
{
scv = vocinh(ctx, *sc);
if (scv)
{
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r9, 0x18(%rsp)
movl %r8d, 0x8(%rsp)
movq %rdi, 0x20(%rsp)
movq %rdx, (%rsp)
movzbl (%rdx), %ebx
testl %ebx, %ebx
je 0x373a8
movq %rsi, %r15
movq (%rsp), %rax
leaq 0xe(%rax), %r12
leaq 0x670(%rsi), %rax
movq %rax, 0x30(%rsp)
movq 0x... | /realnc[P]frobtads/tads2/suprun.c |
sup_log_undefobj | void sup_log_undefobj(mcmcxdef *mctx, errcxdef *ec, int err,
char *nm, int nmlen, objnum objn)
{
uchar *p;
size_t len;
/*
* if the object has any superclasses defined, what must have
* happened is that we encountered an error in the course of
* defining the obj... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %r15d
movl %r8d, %r12d
movq %rcx, %r13
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movl %r9d, %esi
callq 0x2edb2
cmpw $-0x1, %ax
je 0x373f0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movzwl ... | /realnc[P]frobtads/tads2/suprun.c |
vochsh | uint vochsh(uchar *t, int len)
{
uint ret = 0;
if (len > 6) len = 6;
for ( ; len ; --len, ++t)
ret = (ret + (uint)(vocisupper(*t) ? tolower(*t) : *t))
& (VOCHASHSIZ - 1);
return(ret);
} | pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testl %esi, %esi
je 0x374d4
movq %rdi, %rbx
movslq %esi, %rax
cmpq $0x6, %rax
movl $0x6, %r14d
cmovlq %rax, %r14
xorl %r15d, %r15d
xorl %ebp, %ebp
movsbq (%rbx,%r15), %r12
testq %r12, %r12
js 0x374b3
callq 0xe2c0
movq (%rax), %rax
testb $0x1, 0x1(%rax,%r12,2)
jne 0... | /realnc[P]frobtads/tads2/voc.c |
vocadd2 | void vocadd2(voccxdef *ctx, prpnum p, objnum objn, int classflg,
uchar *wrdtxt, int len, uchar *wrd2, int len2)
{
vocdef *v;
vocdef *prv;
uint need;
uint hshval;
/* if the word is null, ignore it entirely */
if (len == 0 && len2 == 0)
return;
/* look for a vo... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl 0x68(%rsp), %r12d
movl %r12d, %eax
orl %r9d, %eax
je 0x375e8
movl %r9d, %ebx
movq %r8, %r14
movq %rdi, %r15
movl %esi, 0xc(%rsp)
movl %edx, 0x4(%rsp)
movl %ecx, 0x8(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x10(%rsp)
movq %r8, %rdi
mo... | /realnc[P]frobtads/tads2/voc.c |
vocset | static void vocset(voccxdef *ctx, vocdef *v, prpnum p, objnum objn,
int classflg, uchar *wrdtxt, int len,
uchar *wrd2, int len2)
{
uint hshval = vochsh(wrdtxt, len);
v->vocnxt = ctx->voccxhsh[hshval];
ctx->voccxhsh[hshval] = v;
v->voclen = len;
v->vocl... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %r13
movl %r8d, 0x14(%rsp)
movl %ecx, 0x10(%rsp)
movl %edx, 0xc(%rsp)
movq %rsi, %r14
movq %rdi, %r15
movl 0x60(%rsp), %r12d
movq 0x58(%rsp), %rbx
movl 0x50(%rsp), %ebp
movq %r9, %rdi
movl %ebp, %esi
callq 0x37474
movl %eax, %e... | /realnc[P]frobtads/tads2/voc.c |
voc_parse_words | static void voc_parse_words(char **wrdtxt, int *len, char **wrd2, int *len2)
{
/* get length and pointer to actual text */
*len = osrp2(*wrdtxt) - 2;
*wrdtxt += 2;
/* see if there's a second word - look for a space */
for (*wrd2 = *wrdtxt, *len2 = *len ; *len2 && !vocisspace(**wrd2) ;
... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq (%rdi), %rax
movzwl (%rax), %eax
addl $-0x2, %eax
movl %eax, (%rsi)
movq (%rdi), %rax
addq $0x2, %rax
movq %rax, (%rdi)
movq %rax, (%rdx)
movq %rsi, (%rsp)
movl (%rsi), %ebp
movl %ebp, (%rcx)
testl %ebp, %ebp
sete %r12b
je... | /realnc[P]frobtads/tads2/voc.c |
vociadd | void vociadd(voccxdef *ctx, objnum obj, objnum loc,
int numsc, objnum *sc, int flags)
{
vocidef *v;
vocidef *min;
vocidef *prv;
vocidef *minprv;
/* make sure we have a page table entry for this object */
vocialo(ctx, obj);
/* look in free list for an entry that's big enough */... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movl %ecx, %r15d
movl %edx, %r8d
movl %esi, %r10d
movq %rdi, %rbx
movl %esi, %r12d
shrl $0x8, %r12d
cmpq $0x0, 0x58(%rdi,%r12,8)
jne 0x37c18
movq (%rbx), %rdi
leaq 0x6f97(%rip), %rdx # 0x3eb7b
movl $0x800, %esi #... | /realnc[P]frobtads/tads2/voc.c |
vocrevert | void vocrevert(voccxdef *vctx)
{
vocidef ***vpg;
vocidef **v;
int i;
int j;
objnum obj;
/*
* Go through the inheritance records. Delete each dynamically
* allocated object, and revert each static object to its original
* load state.
*/
for (vpg... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x58(%rdi), %r13
movq $0x0, 0x18(%rsp)
xorl %eax, %eax
movq %r13, 0x20(%rsp)
movl %eax, 0x14(%rsp)
movq (%r13), %r14
testq %r14, %r14
je 0x37eba
xorl %r15d, %r15d
movq 0x18(%rsp), %r12
movq (%r14,%r15,8), %rax
testq ... | /realnc[P]frobtads/tads2/voc.c |
vocidel | void vocidel(voccxdef *ctx, objnum obj)
{
vocidef *v;
/* get entry out of page table, and clear page table slot */
v = vocinh(ctx, obj);
vocinh(ctx, obj) = (vocidef *)0;
/* link into free list */
if (v)
{
v->vocinxt = ctx->voccxifr;
ctx->voccxifr = v;
}
} | movzbl %sil, %ecx
movl %esi, %eax
shrl $0x8, %eax
movq 0x58(%rdi,%rax,8), %rdx
movq (%rdx,%rcx,8), %rax
movq $0x0, (%rdx,%rcx,8)
testq %rax, %rax
je 0x37f3c
movq 0x558(%rdi), %rcx
movq %rcx, 0x8(%rax)
movq %rax, 0x558(%rdi)
retq
| /realnc[P]frobtads/tads2/voc.c |
vocdel1 | void vocdel1(voccxdef *ctx, objnum objn, char *wrd1, prpnum prp,
int really_delete, int revert, int keep_undo)
{
int i;
vocdef *v;
vocdef *prv;
vocdef *nxt;
vocdef **vp;
vocwdef *vw;
vocwdef *prvw;
vocwdef *nxtw;
uint nxtidx;
uint idx;
i... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %r8d, 0x30(%rsp)
movl %ecx, 0xc(%rsp)
movl %esi, 0x10(%rsp)
movq %rdi, %r13
movl 0xb0(%rsp), %ebx
movq %rdx, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
testq %rdx, %rdx
movl %r9d, 0x8(%rsp)
je 0x37fb0
leaq 0x20(%rsp), %rdi
leaq 0x14(%rsp), %r... | /realnc[P]frobtads/tads2/voc.c |
vocini | void vocini(voccxdef *vocctx, errcxdef *errctx, mcmcxdef *memctx,
runcxdef *runctx, objucxdef *undoctx,
int fuses, int daemons, int notifiers)
{
CLRSTRUCT(*vocctx);
vocctx->voccxerr = errctx;
vocctx->voccxiplst = (uint)-1;
vocctx->voccxilst = VOCISIZ;
vocctx->voccxmem = memct... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %r15d
movq %r8, %r12
movq %rcx, %r13
movq %rdx, %rbp
movq %rsi, %r14
movq %rdi, %rbx
movl $0x11c0, %edx # imm = 0x11C0
xorl %esi, %esi
callq 0xe1b0
movq %r14, (%rbx)
movabsq $0x2000ffffffff, %rax # imm = 0x2000FFFFFFFF
m... | /realnc[P]frobtads/tads2/voc.c |
vocterm | void vocterm(voccxdef *ctx)
{
/* delete the fuses, daemons, and notifiers */
voctermfree(ctx->voccxfus);
voctermfree(ctx->voccxdmn);
voctermfree(ctx->voccxalm);
/* delete the private stack */
if (ctx->voc_stk_ptr != 0)
mchfre(ctx->voc_stk_ptr);
} | pushq %rbx
movq %rdi, %rbx
movq 0xf08(%rdi), %rdi
testq %rdi, %rdi
je 0x383ad
callq 0xe330
movq 0xef8(%rbx), %rdi
testq %rdi, %rdi
je 0x383be
callq 0xe330
movq 0xf18(%rbx), %rdi
testq %rdi, %rdi
je 0x383cf
callq 0xe330
movq 0x11a8(%rbx), %rdi
testq %rdi, %rdi
je 0x383e1
popq %rbx
jmp 0xe330
popq %rbx
retq
| /realnc[P]frobtads/tads2/voc.c |
voc_iterate | void voc_iterate(voccxdef *ctx, objnum objn,
void (*fn)(void *, vocdef *, vocwdef *), void *fnctx)
{
int i;
vocdef *v;
vocdef **vp;
vocwdef *vw;
uint idx;
/* go through each hash value looking for matching words */
for (i = VOCHASHSIZ, vp = ctx->voccxhsh ; i ... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r15
leaq 0x670(%rdi), %rax
movl $0x100, %ecx # imm = 0x100
movl %ecx, 0xc(%rsp)
movq %rax, 0x10(%rsp)
movq (%rax), %r12
testq %r12, %r12
je 0x38480
movl 0xc(%r12), %r... | /realnc[P]frobtads/tads2/voc.c |
voc_count | void voc_count(voccxdef *ctx, objnum objn, prpnum prp, int *cnt, int *siz)
{
struct voc_count_ctx fnctx;
/* set up the context with zero initial counts */
fnctx.cnt = 0;
fnctx.siz = 0;
fnctx.prp = prp;
/* iterate over all words for the object with our callback */
voc_iterate(ctx, objn, voc... | pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %r8, %rbx
movq %rcx, %r14
leaq 0xc(%rsp), %rcx
movq $0x0, (%rcx)
movw %dx, 0x8(%rcx)
leaq 0x24(%rip), %rdx # 0x384e8
callq 0x383ed
testq %r14, %r14
je 0x384d5
movl 0xc(%rsp), %eax
movl %eax, (%r14)
testq %rbx, %rbx
je 0x384e0
movl 0x10(%rsp), %eax
movl %eax, (%rbx)
add... | /realnc[P]frobtads/tads2/voc.c |
voc_count_cb | static void voc_count_cb(void *ctx0, vocdef *voc, vocwdef *vocw)
{
struct voc_count_ctx *ctx = (struct voc_count_ctx *)ctx0;
VARUSED(vocw);
/*
* If it matches the property (or we want all properties), count
* it. Don't count deleted objects.
*/
if ((ctx->prp == 0 || ctx->prp =... | movzwl 0x8(%rdi), %eax
testw %ax, %ax
je 0x384fa
movzbl 0x6(%rdx), %ecx
cmpw %cx, %ax
jne 0x3850f
testb $0x8, 0x7(%rdx)
jne 0x3850f
incl (%rdi)
movzbl 0x8(%rsi), %eax
movzbl 0x9(%rsi), %ecx
addl %eax, %ecx
addl %ecx, 0x4(%rdi)
retq
| /realnc[P]frobtads/tads2/voc.c |
QueryPlan::printResultSet() | void printResultSet() {
BatchResult *rs = nullptr;
while (true) {
rs = head_->next();
if (rs == nullptr)
break;
if (print_result_)
rs->print();
delete rs;
}
} | pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
testq %rax, %rax
je 0x2f1c
movq %rax, %r14
cmpb $0x1, 0x8(%rbx)
jne 0x2ef6
movq %r14, %rdi
callq 0x4062
movq %r14, %rdi
callq 0x4262
movl $0x38, %esi
movq %r14, %rdi
callq 0x2120
movq (%rbx), %rdi
movq (%rdi), %rax
ca... | /jieatcoderrect[P]jit_vectorize/common.h |
ColValCondDAGNode::~ColValCondDAGNode() | ~ColValCondDAGNode() final {
} | pushq %rbx
movq %rdi, %rbx
movq 0x28(%rdi), %rdi
leaq 0x38(%rbx), %rax
cmpq %rax, %rdi
je 0x35ce
movq (%rax), %rsi
incq %rsi
callq 0x2120
movl $0x48, %esi
movq %rbx, %rdi
popq %rbx
jmp 0x2120
| /jieatcoderrect[P]jit_vectorize/main_synthesis.cpp |
GeneticAlgorithm::init(int, DataCenter) | void GeneticAlgorithm::init(int generations, DataCenter dataCenter) {
this->dataCenter = dataCenter ;
srand (time(NULL));
findNumberOfRequests();
this->population = std::vector<std::vector<std::string>>(POPULATION_SIZE * 2);
this->generateInitialPopulation(POPULATION_SIZE);
for (int i = 0; i < g... | pushq %rbp
movq %rsp, %rbp
subq $0x180, %rsp # imm = 0x180
movq %rdx, -0x130(%rbp)
movl %esi, %eax
movq -0x130(%rbp), %rsi
movq %rdi, -0x8(%rbp)
movl %eax, -0xc(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x128(%rbp)
addq $0x18, %rdi
callq 0xdcb0
xorl %eax, %eax
movl %eax, %edi
callq 0x21b... | /NetoPedro[P]HashCode2017/GA/GeneticAlgorithm.cpp |
GeneticAlgorithm::findMaxCacheNumber(std::vector<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>>>>) | int GeneticAlgorithm::findMaxCacheNumber(std::vector<std::string> parent) {
int freeSpace1 = -1;
int parent1Count = 0;
int actualCache = 0;
std::vector<std::string>::iterator parentIterator = parent.begin();
std::vector<CacheServer *> caches = this->dataCenter.caches;
for (;;) {
if(paren... | pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rsi, -0xa0(%rbp)
movq %rdi, %rax
movq -0xa0(%rbp), %rdi
movq %rdi, -0x98(%rbp)
movq %rax, -0x8(%rbp)
movq %rdi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x90(%rbp)
movl $0xffffffff, -0x14(%rbp) # imm = 0xFFFFFFFF
movl $0x0, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
callq ... | /NetoPedro[P]HashCode2017/GA/GeneticAlgorithm.cpp |
testing::internal::RegisterTypeParameterizedTestSuite(char const*, testing::internal::CodeLocation) | void RegisterTypeParameterizedTestSuite(const char* test_suite_name,
CodeLocation code_location) {
GetUnitTestImpl()->type_parameterized_test_registry().RegisterTestSuite(
test_suite_name, code_location);
} | pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x1e80a
leaq 0x100(%rax), %r15
movq %rsp, %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1e7ec
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x9faa
movq %rsp, %rdi
callq 0x7ad8
addq $0x28, %rsp
popq %rbx
popq %r12
p... | /mlutken[P]nestle/testing/googletest/googletest/src/gtest.cc |
testing::internal::TypeParameterizedTestSuiteRegistry::RegisterTestSuite(char const*, testing::internal::CodeLocation) | void TypeParameterizedTestSuiteRegistry::RegisterTestSuite(
const char* test_suite_name, CodeLocation code_location) {
suites_.emplace(std::string(test_suite_name),
TypeParameterizedTestSuiteInfo(code_location));
} | pushq %r14
pushq %rbx
subq $0x88, %rsp
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x859e
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
callq 0x1e7ec
leaq 0x58(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x1e81a
leaq 0x10(%rsp), %rsi
leaq 0x58(%rsp), %rdx
movq %rbx, %rdi
callq 0x24b80
leaq 0x58... | /mlutken[P]nestle/testing/googletest/googletest/src/gtest.cc |
testing::internal::TypeParameterizedTestSuiteRegistry::CheckForInstantiations() | void TypeParameterizedTestSuiteRegistry::CheckForInstantiations() {
const auto& ignored = *GetIgnoredParameterizedTestSuites();
for (const auto& testcase : suites_) {
if (testcase.second.instantiated) continue;
if (ignored.find(testcase.first) != ignored.end()) continue;
std::string message =
"... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp # imm = 0x1A8
movq %rdi, %rbp
callq 0x9b9f
movq %rax, %r12
movq 0x18(%rbp), %r15
addq $0x8, %rbp
movq %rax, %r13
addq $0x8, %r13
movq %rbp, 0x38(%rsp)
movq %r13, 0x30(%rsp)
movq %rax, 0x28(%rsp)
cmpq %rbp, %r15
je 0xa37a
cmpb... | /mlutken[P]nestle/testing/googletest/googletest/src/gtest.cc |
testing::internal::GetArgvs[abi:cxx11]() | ::std::vector<std::string> GetArgvs() {
#if defined(GTEST_CUSTOM_GET_ARGVS_)
// GTEST_CUSTOM_GET_ARGVS_() may return a container of std::string or
// ::string. This code converts it to the appropriate type.
const auto& custom = GTEST_CUSTOM_GET_ARGVS_();
return ::std::vector<std::string>(custom.begin(), custom.... | pushq %rbx
movq %rdi, %rbx
leaq 0x36207(%rip), %rsi # 0x40688
callq 0x1e886
movq %rbx, %rax
popq %rbx
retq
| /mlutken[P]nestle/testing/googletest/googletest/src/gtest.cc |
testing::internal::FilePath::RemoveDirectoryName() const | FilePath FilePath::RemoveDirectoryName() const {
const char* const last_sep = FindLastPathSeparator();
return last_sep ? FilePath(last_sep + 1) : *this;
} | pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x1b822
testq %rax, %rax
je 0xa577
incq %rax
leaq 0x8(%rsp), %r14
leaq 0x7(%rsp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x859e
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1e8ee
leaq 0x8(%rsp), %rdi
callq 0x7ad8
jmp 0xa582
movq... | /mlutken[P]nestle/testing/googletest/googletest/src/gtest-filepath.cc |
testing::internal::UnitTestOptions::GetOutputFormat[abi:cxx11]() | std::string UnitTestOptions::GetOutputFormat() {
std::string s = GTEST_FLAG_GET(output);
const char* const gtest_output_flag = s.c_str();
const char* const colon = strchr(gtest_output_flag, ':');
return (colon == nullptr)
? std::string(gtest_output_flag)
: std::string(gtest_output_flag... | pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x36055(%rip), %rsi # 0x40608
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x77b0
movq (%r14), %r14
pushq $0x3a
popq %rsi
movq %r14, %rdi
callq 0x71d0
testq %rax, %rax
je 0xa5ea
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq %rbx, %rdi
movq %r14, %rsi
movq %ra... | /mlutken[P]nestle/testing/googletest/googletest/src/gtest.cc |
testing::internal::UnitTestOptions::GetAbsolutePathToOutputFile[abi:cxx11]() | std::string UnitTestOptions::GetAbsolutePathToOutputFile() {
std::string s = GTEST_FLAG_GET(output);
const char* const gtest_output_flag = s.c_str();
std::string format = GetOutputFormat();
if (format.empty())
format = std::string(kDefaultOutputFormat);
const char* const colon = strchr(gtest_output_flag... | pushq %r15
pushq %r14
pushq %rbx
subq $0x110, %rsp # imm = 0x110
movq %rdi, %rbx
leaq 0x35fcc(%rip), %rsi # 0x40608
leaq 0xf0(%rsp), %r14
movq %r14, %rdi
callq 0x77b0
movq (%r14), %r14
leaq 0xb0(%rsp), %rdi
callq 0xa5a2
cmpq $0x0, 0xb8(%rsp)
jne 0xa69a
leaq 0x1e0be(%rip), %rsi # 0x2872c
leaq 0x30(%rs... | /mlutken[P]nestle/testing/googletest/googletest/src/gtest.cc |
testing::internal::FilePath::ConcatPaths(testing::internal::FilePath const&, testing::internal::FilePath const&) | FilePath FilePath::ConcatPaths(const FilePath& directory,
const FilePath& relative_path) {
if (directory.IsEmpty())
return relative_path;
const FilePath dir(directory.RemoveTrailingPathSeparator());
return FilePath(dir.string() + kPathSeparator + relative_path.string());
} | pushq %r15
pushq %r14
pushq %rbx
subq $0x60, %rsp
movq %rdx, %r14
movq %rdi, %rbx
cmpq $0x0, 0x8(%rsi)
je 0xac84
leaq 0x40(%rsp), %r15
movq %r15, %rdi
callq 0x1b8dc
movq %rsp, %rdi
pushq $0x2f
popq %rdx
movq %r15, %rsi
callq 0x219d9
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
movq %r14, %rdx
callq 0x1e756
leaq 0x20(%rsp), %r... | /mlutken[P]nestle/testing/googletest/googletest/src/gtest-filepath.cc |
testing::internal::FilePath::GenerateUniqueFileName(testing::internal::FilePath const&, testing::internal::FilePath const&, char const*) | FilePath FilePath::GenerateUniqueFileName(const FilePath& directory,
const FilePath& base_name,
const char* extension) {
FilePath full_pathname;
int number = 0;
do {
full_pathname.Set(MakeFileName(directory, base_name, number+... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
callq 0x1e8da
xorl %ebp, %ebp
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
movl %ebp, %ecx
movq %r14, %r8
callq 0xaa20
movq %rbx, %rdi
movq %r13, %rs... | /mlutken[P]nestle/testing/googletest/googletest/src/gtest-filepath.cc |
testing::internal::UnitTestOptions::MatchesFilter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char const*) | bool UnitTestOptions::MatchesFilter(const std::string& name_str,
const char* filter) {
// The filter is a list of patterns separated by colons (:).
const char* pattern = filter;
while (true) {
// Find the bounds of this pattern.
const char* const next_sep = strchr(patte... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r15
movq (%rdi), %r12
movq 0x8(%rdi), %r13
addq %r12, %r13
pushq $0x3a
popq %rbx
movq %r15, %rdi
movl %ebx, %esi
callq 0x71d0
movq %rax, %r14
testq %rax, %rax
jne 0xadaa
movq %r15, %rdi
callq 0x71f0
addq %r15, %rax
movq %r12, %rdi
movq %r15, %rdx
movq %... | /mlutken[P]nestle/testing/googletest/googletest/src/gtest.cc |
testing::internal::UnitTestOptions::FilterMatchesTest(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | bool UnitTestOptions::FilterMatchesTest(const std::string& test_suite_name,
const std::string& test_name) {
const std::string& full_name = test_suite_name + "." + test_name.c_str();
// Split --gtest_filter at '-', if there is one, to separate into
// positive filter and ne... | pushq %r15
pushq %r14
pushq %rbx
subq $0xb0, %rsp
movq %rsi, %rbx
movq %rdi, %rsi
leaq 0x1fa1b(%rip), %rdx # 0x2a866
leaq 0x30(%rsp), %r14
movq %r14, %rdi
callq 0x1e91d
movq (%rbx), %rdx
leaq 0x90(%rsp), %rdi
movq %r14, %rsi
callq 0x1e737
leaq 0x30(%rsp), %rdi
callq 0x7ad8
leaq 0x35764(%rip), %rsi # 0x405e0
lea... | /mlutken[P]nestle/testing/googletest/googletest/src/gtest.cc |
testing::internal::SingleFailureChecker::~SingleFailureChecker() | SingleFailureChecker::~SingleFailureChecker() {
EXPECT_PRED_FORMAT3(HasOneFailure, *results_, type_, substr_);
} | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq (%rdi), %r14
movl 0x8(%rdi), %ebp
cmpl $0x2, %ebp
leaq 0x201f3(%rip), %rax # 0x2b3bc
leaq 0x201fc(%rip), %rsi # 0x2b3cc
cmoveq %rax, %rsi
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x859e
movq %rsp, %rd... | /mlutken[P]nestle/testing/googletest/googletest/src/gtest.cc |
testing::internal::DefaultGlobalTestPartResultReporter::ReportTestPartResult(testing::TestPartResult const&) | void DefaultGlobalTestPartResultReporter::ReportTestPartResult(
const TestPartResult& result) {
unit_test_->current_test_result()->AddTestPartResult(result);
unit_test_->listeners()->repeater()->OnTestPartResult(result);
} | pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rax
movq 0x170(%rax), %rdi
testq %rdi, %rdi
je 0xb523
addq $0x90, %rdi
jmp 0xb541
movq 0x168(%rax), %rdi
testq %rdi, %rdi
je 0xb538
addq $0x88, %rdi
jmp 0xb541
addq $0x178, %rax # imm = 0x178
movq %rax, %rdi
addq $0x38, %rdi
mo... | /mlutken[P]nestle/testing/googletest/googletest/src/gtest.cc |
testing::internal::AlwaysTrue() | bool AlwaysTrue() {
#if GTEST_HAS_EXCEPTIONS
// This condition is always false so AlwaysTrue() never actually throws,
// but it makes the compiler think that it may throw.
if (IsTrue(false))
throw ClassUniqueToAlwaysTrue();
#endif // GTEST_HAS_EXCEPTIONS
return true;
} | movb $0x1, %al
retq
nop
| /mlutken[P]nestle/testing/googletest/googletest/src/gtest.cc |
testing::Message::operator<<(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>> const&) | Message& Message::operator <<(const ::std::wstring& wstr) {
internal::StreamWideCharsToMessage(wstr.c_str(), wstr.length(), this);
return *this;
} | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq (%rsi), %r15
movq 0x8(%rsi), %r12
xorl %r13d, %r13d
movq %rsp, %r14
cmpq %r13, %r12
je 0xbaf4
cmpl $0x0, (%r15,%r13,4)
je 0xbadb
leaq (%r15,%r13,4), %rsi
movl %r12d, %edx
subl %r13d, %edx
movq %r14, %rdi
callq 0xdc06
movq %rbx,... | /mlutken[P]nestle/testing/googletest/googletest/src/gtest.cc |
testing::internal::StringStreamToString(std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char>>*) | std::string StringStreamToString(::std::stringstream* ss) {
const ::std::string& str = ss->str();
const char* const start = str.c_str();
const char* const end = start + str.length();
std::string result;
result.reserve(static_cast<size_t>(2 * (end - start)));
for (const char* ch = start; ch != end; ++ch) {
... | pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
addq $0x18, %rsi
movq %rsp, %r14
movq %r14, %rdi
callq 0x7910
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
andq $0x0, 0x8(%rbx)
movq (%r14), %r15
movq 0x8(%r14), %r12
movb $0x0, 0x10(%rbx)
leaq (%r12,%r12), %rsi
movq %rbx, %rdi
callq 0x7... | /mlutken[P]nestle/testing/googletest/googletest/src/gtest.cc |
testing::internal::PrettyUnitTestResultPrinter::OnTestPartResult(testing::TestPartResult const&) | void PrettyUnitTestResultPrinter::OnTestPartResult(
const TestPartResult& result) {
switch (result.type()) {
// If the test part succeeded, we don't need to do anything.
case TestPartResult::kSuccess:
return;
default:
// Print failure message from the assertion
// (e.g. expected this... | cmpl $0x0, (%rsi)
je 0x10506
pushq %rax
movq %rsi, %rdi
callq 0x10507
movq 0x2fa9b(%rip), %rax # 0x3ff98
movq (%rax), %rdi
popq %rax
jmp 0x7620
retq
| /mlutken[P]nestle/testing/googletest/googletest/src/gtest.cc |
testing::internal::PrettyUnitTestResultPrinter::OnTestCaseEnd(testing::TestSuite const&) | void PrettyUnitTestResultPrinter::OnTestCaseEnd(const TestCase& test_case) {
if (!GTEST_FLAG_GET(print_time)) return;
const std::string counts =
FormatCountableNoun(test_case.test_to_run_count(), "test", "tests");
ColoredPrintf(GTestColor::kGreen, "[----------] ");
printf("%s from %s (%s ms total)\n\n", ... | pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
cmpb $0x1, 0x2ff75(%rip) # 0x40629
jne 0x1074f
movq %rsi, %rbx
movq %rsi, %rdi
callq 0xb7c0
leaq 0x1a8c5(%rip), %rdx # 0x2af91
leaq 0x190f5(%rip), %rcx # 0x297c8
leaq 0x10(%rsp), %rdi
movl %eax, %esi
callq 0x1040f
leaq 0x19d5d(%rip), %rsi # 0x2a443
pushq... | /mlutken[P]nestle/testing/googletest/googletest/src/gtest.cc |
testing::internal::PrettyUnitTestResultPrinter::PrintSkippedTests(testing::UnitTest const&) | void PrettyUnitTestResultPrinter::PrintSkippedTests(const UnitTest& unit_test) {
const int skipped_test_count = unit_test.skipped_test_count();
if (skipped_test_count == 0) {
return;
}
for (int i = 0; i < unit_test.total_test_suite_count(); ++i) {
const TestSuite& test_suite = *unit_test.GetTestSuite(i... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x10ac4
testl %eax, %eax
je 0x10ab4
pushq $0xa
popq %r12
xorl %r13d, %r13d
movq 0x40(%rbx), %rax
movq 0xc0(%rax), %rcx
subq 0xb8(%rax), %rcx
shrq $0x3, %rcx
cmpl %ecx, %r13d
jge 0x10ab4
movq %rbx, %rdi
movl %r13d, %esi
ca... | /mlutken[P]nestle/testing/googletest/googletest/src/gtest.cc |
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.