LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/aap[P]rx-0/pdp1/mach.c
// Function: spec
static void
spec(PDP1 *pdp)
{
	// PB
	pdp->run = 0;
	if(pdp->start_sw || pdp->deposit_sw || pdp->examine_sw)
		pdp->rim = 0;

	// SP1
	pdp->run_enable = 1;
	pdp->ma = 0;
	if(pdp->start_sw)
		pdp->cyc = 0;
	if(pdp->deposit_sw)
		pdp->ac = 0;
	if(pdp->start_sw || pdp->deposit_sw || pdp->examine_sw)
		sc(pdp);

	// SP2
	if(pdp->start_sw || pdp->deposit_sw || pdp->examine_sw)
		pdp->pc |= pdp->ta;
	if(pdp->deposit_sw || pdp->examine_sw || pdp->rim)
		pdp->cyc = 1;
	if(pdp->examine_sw)
		pdp->ir |= 020>>1;
	if(pdp->deposit_sw) {
		pdp->ir |= 024>>1;
		pdp->ac |= pdp->tw;
	}

	// SP3
	if(pdp->deposit_sw || pdp->examine_sw) {
		pdp->ma |= pdp->pc;
		pdp->cychack = 1;
	}

	// SP4
	if(pdp->start_sw || pdp->continue_sw)
		pdp->run = 1;

	pdp->start_sw = 0;
	pdp->stop_sw = 0;
	pdp->continue_sw = 0;
	pdp->examine_sw = 0;
	pdp->deposit_sw = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl $0x0, 0x4034(%rdi)
movl 0x4020(%rdi), %ecx
testl %ecx, %ecx
je 0x47f9
xorl %edx, %edx
movl %edx, 0x4058(%rdi)
movq $0x1, 0x4038(%rdi)
movl %edx, 0xc(%rdi)
leaq 0x4030(%rdi), %rax
cmpl %edx, 0x4030(%rdi)
jne 0x4822
movb $0x1, %dl
jmp 0x482a
leaq 0x4030(%rdi), %rax
cmpl $0x0, 0x4030(%rdi)
je 0x48a5
xorl %edx, %edx
movl %edx, 0x4058(%rdi)
movl $0x1, 0x4038(%rdi)
movl %edx, 0xc(%rdi)
movl $0x0, (%rdi)
xorl %edx, %edx
xorl %esi, %esi
movq %rsi, 0x4040(%rdi)
movq %rsi, 0x4050(%rdi)
movq %rsi, 0x4064(%rdi)
movl $0x0, 0x406c(%rdi)
movq %rsi, 0x10(%rdi)
movabsq $0x100000000, %rsi      # imm = 0x100000000
movq %rsi, 0x405c(%rdi)
testl %ecx, %ecx
je 0x487e
movl 0x4018(%rdi), %esi
movl %esi, 0x10(%rdi)
testb %dl, %dl
je 0x48a1
movb $0x1, %dl
cmpl $0x0, 0x402c(%rdi)
jne 0x48e3
jmp 0x48d8
testb %dl, %dl
je 0x4898
cmpl $0x0, 0x402c(%rdi)
je 0x48d8
movl 0x4018(%rdi), %edx
orl %edx, 0x10(%rdi)
movb $0x1, %dl
jmp 0x48e3
movl 0x4018(%rdi), %edx
movl %edx, 0x10(%rdi)
xorl %edx, %edx
jmp 0x48e3
cmpl $0x0, 0x402c(%rdi)
je 0x48b8
movl $0x0, 0x4058(%rdi)
movl $0x1, 0x4038(%rdi)
movl $0x0, 0xc(%rdi)
movb $0x1, %dl
cmpl $0x0, 0x402c(%rdi)
jne 0x482a
movb $0x1, %dl
cmpl $0x0, 0x4058(%rdi)
je 0x492a
movl $0x1, 0x403c(%rdi)
cmpl $0x0, 0x402c(%rdi)
je 0x4905
movl 0x14(%rdi), %esi
orl $0x8, %esi
movl %esi, 0x14(%rdi)
testb %dl, %dl
je 0x490c
jmp 0x491a
testb %dl, %dl
jne 0x492a
movl 0x14(%rdi), %esi
orl $0xa, %esi
movl %esi, 0x14(%rdi)
movl 0x401c(%rdi), %edx
orl %edx, (%rdi)
movl 0x10(%rdi), %edx
movl %edx, 0xc(%rdi)
movl $0x1, 0x4080(%rdi)
leaq 0x4020(%rdi), %rdx
testl %ecx, %ecx
jne 0x493e
cmpl $0x0, 0x4028(%rdi)
je 0x4948
movl $0x1, 0x4034(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%rdx)
movl $0x0, (%rax)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/aap[P]rx-0/pdp1/mach.c
// Function: initmach
void
initmach(void)
{
	memset(&pdp1, 0, sizeof(pdp1));
	pdp1.ioc = 1;

	int i = 0100;
	pdp1.core[i++] = 0760400;

	cmdchan = chancreate(sizeof(Msg), 1);
	threadcreate(simthread, &pdp1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
leaq 0x8d7b(%rip), %rbx      # 0xe580
movl $0x4084, %edx           # imm = 0x4084
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2110
movl $0x1, 0xcdc2(%rip)      # 0x125e0
movl $0x3e100, 0x8e70(%rip)  # imm = 0x3E100
movl $0x8, %edi
movl $0x1, %esi
callq 0x3da3
movq %rax, 0xce3a(%rip)      # 0x12678
leaq -0xeef(%rip), %rdi      # 0x4956
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x3ba8
// File: /workspace/github_c_makefile_star2_O3/aap[P]rx-0/pdp1/mach.c
// Function: shro
static void
shro(PDP1 *pdp)
{
	int ac = AC;
	int io = IO;
	switch((MB>>9) & 017) {
	case 001:	// RAL
		ac = (AC&~B0)<<1 | (AC&B0)>>17;
		break;
	case 002:	// RIL
		io = (IO&~B0)<<1 | (IO&B0)>>17;
		break;
	case 003:	// RCL
		ac = (AC&~B0)<<1 | (IO&B0)>>17;
		io = (IO&~B0)<<1 | (AC&B0)>>17;
		break;
	case 005:	// SAL
		ac = (AC&B0) | (AC&~(B0|B1))<<1 | (AC&B0)>>17;
		break;
	case 006:	// SIL
		io = (IO&B0) | (IO&~(B0|B1))<<1 | (IO&B0)>>17;
		break;
	case 007:	// SCL
		ac = (AC&B0) | (AC&~(B0|B1))<<1 | (IO&B0)>>17;
		io = (IO&~B0)<<1 | (AC&B0)>>17;
		break;
	case 011:	// RAR
		ac = (AC&B17)<<17 | AC>>1;
		break;
	case 012:	// RIR
		io = (IO&B17)<<17 | IO>>1;
		break;
	case 013:	// RCR
		ac = (IO&B17)<<17 | AC>>1;
		io = (AC&B17)<<17 | IO>>1;
		break;
	case 015:	// SAR
		ac = (AC&B0) | AC>>1;
		break;
	case 016:	// SIR
		io = (IO&B0) | IO>>1;
		break;
	case 017:	// SCR
		ac = (AC&B0) | AC>>1;
		io = (AC&B17)<<17 | IO>>1;
		break;
	}
	AC = ac;
	IO = io;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl (%rdi), %ecx
movl 0x4(%rdi), %eax
movl 0x8(%rdi), %edx
shrl $0x9, %edx
andl $0xf, %edx
decl %edx
cmpl $0xe, %edx
ja 0x5988
leaq 0xba7(%rip), %rsi       # 0x6424
movslq (%rsi,%rdx,4), %rdx
addq %rsi, %rdx
jmpq *%rdx
movl %ecx, %edx
andl $0xfffdffff, %edx       # imm = 0xFFFDFFFF
shrl $0x11, %ecx
andl $0x1, %ecx
leal (%rcx,%rdx,2), %ecx
jmp 0x5988
movl %eax, %edx
andl $0x20000, %edx          # imm = 0x20000
jmp 0x592b
movl $0xfffdffff, %edx       # imm = 0xFFFDFFFF
movl %ecx, %esi
andl %edx, %esi
movl %eax, %r8d
shrl $0x11, %r8d
andl $0x1, %r8d
leal (%r8,%rsi,2), %esi
andl %edx, %eax
shrl $0x11, %ecx
andl $0x1, %ecx
leal (%rcx,%rax,2), %eax
jmp 0x5986
movl %ecx, %edx
andl $0x20000, %edx          # imm = 0x20000
andl $0xfffcffff, %ecx       # imm = 0xFFFCFFFF
movl %eax, %esi
shrl $0x11, %esi
andl $0x1, %esi
leal (%rsi,%rcx,2), %ecx
orl %edx, %ecx
andl $0xfffdffff, %eax       # imm = 0xFFFDFFFF
shrl $0x11, %edx
leal (%rdx,%rax,2), %eax
jmp 0x5988
movl %ecx, %edx
andl $0x20000, %edx          # imm = 0x20000
jmp 0x5976
movl %eax, %edx
andl $0xfffdffff, %edx       # imm = 0xFFFDFFFF
shrl $0x11, %eax
andl $0x1, %eax
leal (%rax,%rdx,2), %eax
jmp 0x5988
movl %ecx, %edx
andl $0x1, %edx
shll $0x11, %edx
jmp 0x5968
movl %eax, %edx
andl $0x1, %edx
shll $0x11, %edx
shrl %eax
jmp 0x595c
movl %ecx, %edx
andl $0x20000, %edx          # imm = 0x20000
andl $0xfffcffff, %ecx       # imm = 0xFFFCFFFF
movl %edx, %esi
shrl $0x11, %esi
leal (%rsi,%rcx,2), %ecx
jmp 0x596a
movl %eax, %edx
andl $0x20000, %edx          # imm = 0x20000
andl $0xfffcffff, %eax       # imm = 0xFFFCFFFF
movl %edx, %esi
shrl $0x11, %esi
leal (%rsi,%rax,2), %eax
orl %edx, %eax
jmp 0x5988
movl %ecx, %edx
andl $0x20000, %edx          # imm = 0x20000
shrl %ecx
orl %edx, %ecx
jmp 0x5988
movl %eax, %edx
andl $0x1, %edx
shll $0x11, %edx
movl %ecx, %esi
shrl %esi
orl %edx, %esi
andl $0x1, %ecx
shll $0x11, %ecx
shrl %eax
orl %ecx, %eax
movl %esi, %ecx
movl %ecx, (%rdi)
movl %eax, 0x4(%rdi)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/tyabu12[P]pl0compiler/codegen.c
// Function: genCodeV
int genCodeV(OpCode op, int v) { /* 命令語の生成、アドレス部にv         */
    checkMax();
    code[cIndex].opCode = op;
    code[cIndex].u.value = v;
    return cIndex;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebx
movl %edi, %ebp
movl 0x5df6(%rip), %ecx      # 0x80d8
leal 0x1(%rcx), %eax
movl %eax, 0x5ded(%rip)      # 0x80d8
cmpl $0xc7, %ecx
jl 0x2305
leaq 0x2f09(%rip), %rdi      # 0x5203
callq 0x3bd9
movl 0x5dd3(%rip), %eax      # 0x80d8
cltq
leaq (%rax,%rax,2), %rcx
leaq 0x5dde(%rip), %rdx      # 0x80f0
movl %ebp, (%rdx,%rcx,4)
movl %ebx, 0x4(%rdx,%rcx,4)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/tyabu12[P]pl0compiler/codegen.c
// Function: genCodeT
int genCodeT(OpCode op, int ti) { /* 命令語の生成、アドレスは名前表から */
    checkMax();
    code[cIndex].opCode = op;
    code[cIndex].u.addr = relAddr(ti);
    return cIndex;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movl %edi, %ebp
movl 0x5da7(%rip), %ecx      # 0x80d8
leal 0x1(%rcx), %eax
movl %eax, 0x5d9e(%rip)      # 0x80d8
cmpl $0xc7, %ecx
jl 0x2354
leaq 0x2eba(%rip), %rdi      # 0x5203
callq 0x3bd9
movl 0x5d84(%rip), %eax      # 0x80d8
cltq
leaq (%rax,%rax,2), %r14
leaq 0x5d8f(%rip), %r15      # 0x80f0
movl %ebp, (%r15,%r14,4)
movl %ebx, %edi
callq 0x35b0
movq %rax, 0x4(%r15,%r14,4)
movl 0x5d61(%rip), %eax      # 0x80d8
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/tyabu12[P]pl0compiler/codegen.c
// Function: genCodeO
int genCodeO(Operator p) {      /* 命令語の生成、アドレス部に演算命令    */
    checkMax();
    code[cIndex].opCode = opr;
    code[cIndex].u.optr = p;
    return cIndex;
}

// Assembly:
pushq %rbx
movl %edi, %ebx
movl 0x5d4d(%rip), %ecx      # 0x80d8
leal 0x1(%rcx), %eax
movl %eax, 0x5d44(%rip)      # 0x80d8
cmpl $0xc7, %ecx
jl 0x23ae
leaq 0x2e60(%rip), %rdi      # 0x5203
callq 0x3bd9
movl 0x5d2a(%rip), %eax      # 0x80d8
cltq
leaq (%rax,%rax,2), %rcx
leaq 0x5d35(%rip), %rdx      # 0x80f0
movl $0x1, (%rdx,%rcx,4)
movl %ebx, 0x4(%rdx,%rcx,4)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/tyabu12[P]pl0compiler/codegen.c
// Function: genCodeR
int genCodeR() {                /* ret命令語の生成                      */
    if (code[cIndex].opCode == ret)
        return cIndex;          /* 直前がretなら生成せず                */
    checkMax();
    code[cIndex].opCode = ret;
    code[cIndex].u.addr.level = bLevel();
    code[cIndex].u.addr.addr = fPars(); /* パラメタ数（実行スタックの解放用） */
    return cIndex;
}

// Assembly:
pushq %rbx
movslq 0x5d08(%rip), %rax      # 0x80d8
leaq (%rax,%rax,2), %rcx
leaq 0x5d15(%rip), %rbx      # 0x80f0
cmpl $0x5, (%rbx,%rcx,4)
je 0x243f
leal 0x1(%rax), %ecx
movl %ecx, 0x5cee(%rip)      # 0x80d8
cmpl $0xc7, %eax
jl 0x2403
leaq 0x2e0b(%rip), %rdi      # 0x5203
callq 0x3bd9
movl 0x5cd5(%rip), %ecx      # 0x80d8
movslq %ecx, %rax
leaq (%rax,%rax,2), %rax
movl $0x5, (%rbx,%rax,4)
xorl %eax, %eax
callq 0x3297
movslq 0x5cb9(%rip), %rcx      # 0x80d8
leaq (%rcx,%rcx,2), %rcx
movl %eax, 0x4(%rbx,%rcx,4)
xorl %eax, %eax
callq 0x329e
movl %eax, %ecx
movslq 0x5ca1(%rip), %rax      # 0x80d8
leaq (%rax,%rax,2), %rdx
movl %ecx, 0x8(%rbx,%rdx,4)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/tyabu12[P]pl0compiler/codegen.c
// Function: listCode
void listCode(FILE *fp, int showLineNumber) { /* 命令語のリスティング */
    int i;
    if (fp == NULL) {
      fp = stdin;
      fprintf(stdout, "\ncode\n");
    }
    for (i = 0; i <= cIndex; i++) {
        if (showLineNumber) fprintf(fp, "%3d: ", i);
        printCode(fp, i, '\n');
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
testq %rdi, %rdi
jne 0x2497
movq 0x5b54(%rip), %rax      # 0x7fc8
movq (%rax), %r14
movq 0x5b42(%rip), %rax      # 0x7fc0
movq (%rax), %rcx
leaq 0x2c9c(%rip), %rdi      # 0x5124
movl $0x6, %esi
movl $0x1, %edx
callq 0x2180
cmpl $0x0, 0x5c3a(%rip)      # 0x80d8
js 0x24d8
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
leaq 0x2c7f(%rip), %r15      # 0x512b
incl %ebp
testl %ebx, %ebx
je 0x24c1
movq %r14, %rdi
movq %r15, %rsi
movl %ebp, %edx
xorl %eax, %eax
callq 0x2110
movq %r14, %rdi
movl %ebp, %esi
movl $0xa, %edx
callq 0x24e3
cmpl 0x5c02(%rip), %ebp      # 0x80d8
jl 0x24ac
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/tyabu12[P]pl0compiler/codegen.c
// Function: stepBackward
void stepBackward(Mem *m) {     /* 目的コード（命令語）の1ステップ後退 */
  const int stepCount = m->stepCount;
  const int secretMode = m->secretMode, secretValue = m->secretValue;
  if (stepCount == 0) return; /* これ以上後退できない */
  initMemory(m, (secretMode ? &secretValue : NULL));
  while (m->stepCount != stepCount-1) stepForward(m); /* 1つ前のステップまで前進 */
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl 0x1f64(%rdi), %ebp
movl 0x216c(%rdi), %eax
movl 0x2170(%rdi), %ecx
movl %ecx, 0x4(%rsp)
testl %ebp, %ebp
je 0x2f3e
movq %rdi, %rbx
xorl %ecx, %ecx
testl %eax, %eax
leaq 0x4(%rsp), %rsi
cmoveq %rcx, %rsi
callq 0x2908
decl %ebp
cmpl %ebp, 0x1f64(%rbx)
je 0x2f3e
movq %rbx, %rdi
callq 0x2bcc
jmp 0x2f2c
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/tyabu12[P]pl0compiler/table.c
// Function: blockBegin
void blockBegin(int firstAddr) { /* ブロックの始まり(最初の変数の番地)で呼ばれる */
    if (level == -1) {          /* 主ブロックの時、初期設定             */
        localAddr = firstAddr;
        tIndex = 0;
        level++;
        return;
    }
    if (level == MAXLEVEL-1)
        errorF("too many nested blocks");
    lIndex[level] = tIndex;     /* 今までのブロックの情報を格納         */
    addr[level] = localAddr;
    localAddr = firstAddr;      /* 新しいブロックの最初の変数の番地     */
    level++;                    /* 新しいブロックのレベル               */
    return;
}

// Assembly:
pushq %rbx
movl %edi, %ebx
movl 0x4edb(%rip), %eax      # 0x80dc
cmpl $0x4, %eax
je 0x321f
cmpl $-0x1, %eax
jne 0x3231
movl %ebx, 0x583f(%rip)      # 0x8a50
movl $0x0, 0x5839(%rip)      # 0x8a54
xorl %eax, %eax
jmp 0x325b
leaq 0x20ba(%rip), %rdi      # 0x52e0
callq 0x3bd9
movl 0x4eab(%rip), %eax      # 0x80dc
movl 0x581d(%rip), %ecx      # 0x8a54
cltq
leaq 0x5820(%rip), %rdx      # 0x8a60
movl %ecx, (%rdx,%rax,4)
movl 0x5807(%rip), %ecx      # 0x8a50
leaq 0x5830(%rip), %rdx      # 0x8a80
movl %ecx, (%rdx,%rax,4)
movl %ebx, 0x57f7(%rip)      # 0x8a50
incl %eax
movl %eax, 0x4e7b(%rip)      # 0x80dc
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/tyabu12[P]pl0compiler/table.c
// Function: enterTfunc
int enterTfunc(char *id, int v) { /* 名前表に関数名と先頭番地を登録     */
    enterT(id);
    nameTable[tIndex].kind = funcId;
    nameTable[tIndex].u.f.raddr.level = level;
    nameTable[tIndex].u.f.raddr.addr = v; /* 関数の先頭番地             */
    nameTable[tIndex].u.f.pars = 0; /* パラメタ数の初期値               */
    tfIndex = tIndex;
    return tIndex;
}

// Assembly:
pushq %rbx
movl %esi, %ebx
callq 0x32c5
movslq 0x573e(%rip), %rax      # 0x8a54
leaq (%rax,%rax,2), %rcx
shlq $0x4, %rcx
leaq 0x577b(%rip), %rdx      # 0x8aa0
movl $0x1, (%rcx,%rdx)
movl 0x4daa(%rip), %esi      # 0x80dc
movl %esi, 0x24(%rcx,%rdx)
movl %ebx, 0x28(%rcx,%rdx)
movl $0x0, 0x2c(%rcx,%rdx)
movl %eax, 0x6a18(%rip)      # 0x9d60
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/tyabu12[P]pl0compiler/table.c
// Function: enterTpar
int enterTpar(char *id) {       /* 名前表にパラメタ名を登録             */
    enterT(id);
    nameTable[tIndex].kind = parId;
    nameTable[tIndex].u.raddr.level = level;
    nameTable[tfIndex].u.f.pars++; /* 関数のパラメタ数のカウント        */
    return tIndex;
}

// Assembly:
pushq %rax
callq 0x32c5
movslq 0x56fd(%rip), %rax      # 0x8a54
leaq (%rax,%rax,2), %rcx
shlq $0x4, %rcx
leaq 0x573a(%rip), %rdx      # 0x8aa0
movl $0x2, (%rcx,%rdx)
movl 0x4d69(%rip), %esi      # 0x80dc
movl %esi, 0x24(%rcx,%rdx)
movslq 0x69e2(%rip), %rcx      # 0x9d60
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
incl 0x2c(%rcx,%rdx)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/tyabu12[P]pl0compiler/table.c
// Function: enterTvar
int enterTvar(char *id) {       /* 名前表に変数名を登録                 */
    enterT(id);
    nameTable[tIndex].kind = varId;
    nameTable[tIndex].u.raddr.level = level;
    nameTable[tIndex].u.raddr.addr = localAddr++;
    return tIndex;
}

// Assembly:
pushq %rax
callq 0x32c5
movslq 0x56bb(%rip), %rax      # 0x8a54
leaq (%rax,%rax,2), %rcx
shlq $0x4, %rcx
leaq 0x56f8(%rip), %rdx      # 0x8aa0
movl $0x0, (%rcx,%rdx)
movl 0x4d27(%rip), %esi      # 0x80dc
movl %esi, 0x24(%rcx,%rdx)
movl 0x5691(%rip), %esi      # 0x8a50
leal 0x1(%rsi), %edi
movl %edi, 0x5688(%rip)      # 0x8a50
movl %esi, 0x28(%rcx,%rdx)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/tyabu12[P]pl0compiler/table.c
// Function: enterTconst
int enterTconst(char *id, int v) { /* 名前表に定数名とその値を登録      */
    enterT(id);
    nameTable[tIndex].kind = constId;
    nameTable[tIndex].u.value = v;
    return tIndex;
}

// Assembly:
pushq %rbx
movl %esi, %ebx
callq 0x32c5
movslq 0x5677(%rip), %rax      # 0x8a54
leaq (%rax,%rax,2), %rcx
shlq $0x4, %rcx
leaq 0x56b4(%rip), %rdx      # 0x8aa0
movl $0x3, (%rcx,%rdx)
movl %ebx, 0x24(%rcx,%rdx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/tyabu12[P]pl0compiler/table.c
// Function: endpar
void endpar() {                 /* パラメタ宣言部の最後で呼ばれる       */
    int i;
    int pars = nameTable[tfIndex].u.f.pars;
    if (pars == 0)  return;
    for (i=1; i <= pars; i++)   /* 各パラメタの番地を求める             */
         nameTable[tfIndex+i].u.raddr.addr = i-1-pars;
}

// Assembly:
movslq 0x6960(%rip), %rax      # 0x9d60
leaq (%rax,%rax,2), %rdx
shlq $0x4, %rdx
leaq 0x5691(%rip), %rsi      # 0x8aa0
movslq 0x2c(%rdx,%rsi), %rax
testq %rax, %rax
jle 0x34bc
leal 0x1(%rax), %ecx
andl $-0x2, %ecx
movq %rax, %rdi
decq %rdi
movq %rdi, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
addq %rsi, %rdx
addq $0x88, %rdx
negl %eax
xorl %esi, %esi
movdqa 0x1e77(%rip), %xmm1     # 0x52c0
movdqa 0x1e7f(%rip), %xmm2     # 0x52d0
pxor %xmm2, %xmm0
pcmpeqd %xmm3, %xmm3
movq %rsi, %xmm4
pshufd $0x44, %xmm4, %xmm4     # xmm4 = xmm4[0,1,0,1]
por %xmm1, %xmm4
pxor %xmm2, %xmm4
movdqa %xmm4, %xmm5
pcmpgtd %xmm0, %xmm5
pcmpeqd %xmm0, %xmm4
pshufd $0xf5, %xmm4, %xmm6     # xmm6 = xmm4[1,1,3,3]
pand %xmm5, %xmm6
pshufd $0xf5, %xmm5, %xmm4     # xmm4 = xmm5[1,1,3,3]
por %xmm6, %xmm4
movd %xmm4, %edi
notl %edi
testb $0x1, %dil
je 0x3498
movl %eax, -0x30(%rdx)
pxor %xmm3, %xmm4
pextrw $0x4, %xmm4, %edi
testb $0x1, %dil
je 0x34ac
leal 0x1(%rax), %edi
movl %edi, (%rdx)
addq $0x2, %rsi
addq $0x60, %rdx
addl $0x2, %eax
cmpq %rsi, %rcx
jne 0x3459
retq
// File: /workspace/github_c_makefile_star2_O3/tyabu12[P]pl0compiler/table.c
// Function: searchT
int searchT(char *id, KindT k) { /* 名前idの名前表の位置を返す          */
                                /* 未宣言の時エラーとする               */
    int i;
    i = tIndex;
    strcpy(nameTable[0].name, id); /* 番兵をたてる                      */
    while ( strcmp(id, nameTable[i].name) )
        i--;
    if (i)                      /* 名前があった                         */
        return i;
    else {                      /* 名前がなかった                       */
        errorType("undef");
        if (k == varId) return enterTvar(id); /* 変数の時は仮登録       */
        return 0;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movslq 0x5569(%rip), %r12      # 0x8a54
leaq 0x55b2(%rip), %rdi      # 0x8aa4
movq %rbx, %rsi
callq 0x2050
leaq 0x559f(%rip), %r15      # 0x8aa0
leaq (%r12,%r12,2), %rax
shlq $0x4, %rax
leaq (%rax,%r15), %r14
addq $0x4, %r14
movq $-0x1, %r13
movq %rbx, %rdi
movq %r14, %rsi
callq 0x20f0
incq %r13
addq $-0x30, %r14
testl %eax, %eax
jne 0x3518
cmpq %r13, %r12
jne 0x3585
leaq 0x1dcc(%rip), %rdi      # 0x5306
callq 0x3a83
xorl %eax, %eax
testl %ebp, %ebp
jne 0x358b
movq %rbx, %rdi
callq 0x32c5
movslq 0x5500(%rip), %rax      # 0x8a54
leaq (%rax,%rax,2), %rcx
shlq $0x4, %rcx
movl $0x0, (%rcx,%r15)
movl 0x4b72(%rip), %edx      # 0x80dc
movl %edx, 0x24(%rcx,%r15)
movl 0x54db(%rip), %edx      # 0x8a50
leal 0x1(%rdx), %esi
movl %esi, 0x54d2(%rip)      # 0x8a50
movl %edx, 0x28(%rcx,%r15)
jmp 0x358b
movl %r12d, %eax
subq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/tyabu12[P]pl0compiler/getSource.c
// Function: openSource
int openSource(char fileName[], int outHtml) { /* ソースファイルのopen */
    char *fileNameO = "g.out.html";
    if ((fpi = fopen(fileName, "r")) == NULL ) {
        printf("can't open %s\n", fileName);
        return 0;
    }
    if (outHtml) {
        if ((fphtml = fopen(fileNameO, "w")) == NULL) { /* .htmlファイルを作る */
            printf("can't open %s\n", fileNameO);
            return 0;
        }
    } else {
        fphtml = fopen("/dev/null", "w"); /* 書き込みを破棄 */
    }
    return 1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
leaq 0x1f2a(%rip), %rsi      # 0x553a
callq 0x2140
movq %rax, 0x6754(%rip)      # 0x9d70
testq %rax, %rax
je 0x365b
testl %ebx, %ebx
je 0x3670
leaq 0x1d64(%rip), %rdi      # 0x5390
leaq 0x1bb6(%rip), %rsi      # 0x51e9
callq 0x2140
movq %rax, 0x6739(%rip)      # 0x9d78
movl $0x1, %ebx
testq %rax, %rax
jne 0x368f
leaq 0x1d4b(%rip), %rdi      # 0x539b
leaq 0x1d39(%rip), %rsi      # 0x5390
xorl %ebx, %ebx
jmp 0x3667
leaq 0x1d39(%rip), %rdi      # 0x539b
xorl %ebx, %ebx
movq %r14, %rsi
xorl %eax, %eax
callq 0x2090
jmp 0x368f
leaq 0x1d33(%rip), %rdi      # 0x53aa
leaq 0x1b6b(%rip), %rsi      # 0x51e9
callq 0x2140
movq %rax, 0x66ee(%rip)      # 0x9d78
movl $0x1, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/tyabu12[P]pl0compiler/getSource.c
// Function: finalSource
void finalSource() {
    if (cToken.kind == Period)
        printcToken();
    else
        errorInsert(Period);
    fprintf(fphtml, "\n</PRE>\n</BODY>\n</HTML>\n");
}

// Assembly:
pushq %rax
cmpl $0x1c, 0x63d8(%rip)     # 0x9d8c
jne 0x39bd
callq 0x409b
jmp 0x39e5
movq 0x63b4(%rip), %rdi      # 0x9d78
leaq 0x1a7f(%rip), %rsi      # 0x544a
leaq 0x1a98(%rip), %rdx      # 0x546a
leaq 0x1b9b(%rip), %rcx      # 0x5574
xorl %eax, %eax
callq 0x2110
callq 0x3a3a
movq 0x638c(%rip), %rcx      # 0x9d78
leaq 0x1add(%rip), %rdi      # 0x54d0
movl $0x18, %esi
movl $0x1, %edx
popq %rax
jmp 0x2180
// File: /workspace/github_c_makefile_star2_O3/tyabu12[P]pl0compiler/getSource.c
// Function: errorNoCheck
void errorNoCheck() {           /* エラーの個数のカウント、多すぎたら終わり */
    if (errorNo++ > MAXERROR) {
        fprintf(fphtml, "too many errors\n</PRE>\n</BODY>\n</HTML>\n");
        printf("abort compilation\n");
        exit(1);
    }
}

// Assembly:
movl 0x6370(%rip), %eax      # 0x9db0
leal 0x1(%rax), %ecx
movl %ecx, 0x6367(%rip)      # 0x9db0
cmpl $0x1f, %eax
jge 0x3a4f
retq
pushq %rax
movq 0x6321(%rip), %rcx      # 0x9d78
leaq 0x19a3(%rip), %rdi      # 0x5401
movl $0x27, %esi
movl $0x1, %edx
callq 0x2180
leaq 0x1b3c(%rip), %rdi      # 0x55b0
callq 0x2060
movl $0x1, %edi
callq 0x2170
// File: /workspace/github_c_makefile_star2_O3/tyabu12[P]pl0compiler/getSource.c
// Function: errorType
void errorType(char *m) {       /* 型エラーを.htmlファイルに出力 */
    printSpaces();
    fprintf(fphtml, "<FONT COLOR=%s>%s</FONT>", TYPE_C, m);
    printcToken();
    errorNoCheck();
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x4040
movq 0x62e5(%rip), %rdi      # 0x9d78
leaq 0x198f(%rip), %rsi      # 0x5429
leaq 0x19a1(%rip), %rdx      # 0x5442
movq %rbx, %rcx
xorl %eax, %eax
callq 0x2110
callq 0x409b
popq %rbx
jmp 0x3a3a
// File: /workspace/github_c_makefile_star2_O3/tyabu12[P]pl0compiler/getSource.c
// Function: errorDelete
void errorDelete() {            /* 今読んだトークンを読み捨てる         */
    int i = (int)cToken.kind;
    printSpaces();
    printed = 1;
    if (i < end_of_KeyWd)       /* 予約語                               */
        fprintf(fphtml, "<FONT COLOR=%s><b>%s</b></FONT>", DELETE_C, KeyWdT[i].word);
    else if (i < end_of_KeySym) /* 演算子か区切り記号                   */
        fprintf(fphtml, "<FONT COLOR=%s>%s</FONT>", DELETE_C, KeyWdT[i].word);
    else if (i==(int)Id)        /* Identfier */
        fprintf(fphtml, "<FONT COLOR=%s>%s</FONT>", DELETE_C, cToken.u.id);
    else if (i==(int)Num)       /* Num */
        fprintf(fphtml, "<FONT COLOR=%s>%d</FONT>", DELETE_C, cToken.u.value);
}

// Assembly:
pushq %rbx
movslq 0x6288(%rip), %rbx      # 0x9d8c
callq 0x4040
movb $0x1, 0x6278(%rip)      # 0x9d88
cmpq $0xd, %rbx
jg 0x3b35
movq 0x625b(%rip), %rdi      # 0x9d78
shlq $0x4, %rbx
leaq 0x40a8(%rip), %rax      # 0x7bd0
movq (%rbx,%rax), %rcx
leaq 0x1917(%rip), %rsi      # 0x544a
jmp 0x3b57
cmpl $0x1e, %ebx
ja 0x3b66
movq 0x6237(%rip), %rdi      # 0x9d78
shlq $0x4, %rbx
leaq 0x4084(%rip), %rax      # 0x7bd0
movq (%rbx,%rax), %rcx
leaq 0x18d2(%rip), %rsi      # 0x5429
leaq 0x1945(%rip), %rdx      # 0x54a3
xorl %eax, %eax
popq %rbx
jmp 0x2110
cmpl $0x21, %ebx
je 0x3b8e
cmpl $0x20, %ebx
jne 0x3bb1
movq 0x6201(%rip), %rdi      # 0x9d78
leaq 0x18ab(%rip), %rsi      # 0x5429
leaq 0x191e(%rip), %rdx      # 0x54a3
leaq 0x6204(%rip), %rcx      # 0x9d90
jmp 0x3b5e
movq 0x61e3(%rip), %rdi      # 0x9d78
movl 0x61f5(%rip), %ecx      # 0x9d90
leaq 0x1909(%rip), %rsi      # 0x54ab
leaq 0x18fa(%rip), %rdx      # 0x54a3
xorl %eax, %eax
popq %rbx
jmp 0x2110
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/tyabu12[P]pl0compiler/getSource.c
// Function: errorF
void errorF(char *m) {          /* エラーメッセージを出力し、コンパイル終了 */
    errorMessage(m);
    fprintf(fphtml, "fatal errors\n</PRE>\n</BODY>\n</HTML>\n");
    if (errorNo)
        printf("total %d errors\n", errorNo);
    printf("abort compilation\n");
    exit (1);
}

// Assembly:
pushq %rax
movq %rdi, %rcx
movq 0x6194(%rip), %rdi      # 0x9d78
leaq 0x183e(%rip), %rsi      # 0x5429
leaq 0x1850(%rip), %rdx      # 0x5442
xorl %eax, %eax
callq 0x2110
callq 0x3a3a
movq 0x6173(%rip), %rcx      # 0x9d78
leaq 0x18b8(%rip), %rdi      # 0x54c4
movl $0x24, %esi
movl $0x1, %edx
callq 0x2180
movl 0x618f(%rip), %esi      # 0x9db0
testl %esi, %esi
je 0x3c33
leaq 0x18bd(%rip), %rdi      # 0x54e9
xorl %eax, %eax
callq 0x2090
leaq 0x1976(%rip), %rdi      # 0x55b0
callq 0x2060
movl $0x1, %edi
callq 0x2170
// File: /workspace/github_c_makefile_star2_O3/tyabu12[P]pl0compiler/getSource.c
// Function: checkGet
Token checkGet(Token t, KeyId k) { /* t.kind == k のチェック            */
    /* t.kind == k なら、次のトークンを読んで返す                       */
    /* t.kind != k ならエラーメッセージを出し、t と k が共に記号、または予約語なら */
    /* t を捨て、次のトークンを読んで返す（ t を k で置き換えたことになる） */
    /* それ以外の場合、k を挿入したことにして、t を返す                 */
    if (t.kind == k)
        return nextToken();
    if ((isKeyWd(k) && isKeyWd(t.kind)) ||
        (isKeySym(k) && isKeySym(t.kind))){
        errorDelete();
        errorInsert(k);
        return nextToken();
    }
    errorInsert(k);
    return t;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl 0x20(%rsp), %eax
cmpl %esi, %eax
je 0x3fd0
movl %esi, %r14d
cmpl $0xe, %esi
setb %cl
cmpl $0xe, %eax
setb %dl
testb %dl, %cl
jne 0x3f98
leal -0x1f(%r14), %ecx
cmpl $-0x11, %ecx
setb %cl
addl $-0x1f, %eax
cmpl $-0x11, %eax
setb %al
orb %cl, %al
je 0x3f98
leaq 0x20(%rsp), %r15
movq 0x5e25(%rip), %rdi      # 0x9d78
movl %r14d, %eax
shlq $0x4, %rax
leaq 0x3c6f(%rip), %rcx      # 0x7bd0
movq (%rax,%rcx), %rcx
leaq 0x14de(%rip), %rsi      # 0x544a
leaq 0x14f7(%rip), %rdx      # 0x546a
xorl %eax, %eax
callq 0x2110
callq 0x3a3a
movl 0x20(%r15), %eax
movl %eax, 0x20(%rbx)
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups %xmm1, 0x10(%rbx)
movups %xmm0, (%rbx)
jmp 0x3fd8
callq 0x3afc
movq 0x5dd4(%rip), %rdi      # 0x9d78
movl %r14d, %eax
shlq $0x4, %rax
leaq 0x3c1e(%rip), %rcx      # 0x7bd0
movq (%rax,%rcx), %rcx
leaq 0x148d(%rip), %rsi      # 0x544a
leaq 0x14a6(%rip), %rdx      # 0x546a
xorl %eax, %eax
callq 0x2110
callq 0x3a3a
movq %rbx, %rdi
callq 0x3c50
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/tyabu12[P]pl0compiler/getSource.c
// Function: nextChar
char nextChar() {               /* 次の１文字を返す関数                 */
    char ch;
    if (lineIndex == -1){
        if (fgets(line, MAXLINE, fpi) != NULL){
            /* puts(line); */   /* 通常のエラーメッセージの出力の場合（参考まで） */
            lineIndex = 0;
        } else
            errorF("end of file\n"); /* end of fileならコンパイル終了   */
    }
    if ((ch = line[lineIndex++]) == '\n'){ /* chに次の１文字            */
        lineIndex = -1;         /* それが改行文字なら次の行の入力準備   */
        return '\n';            /* 文字としては改行文字を返す           */
    }
    return ch;
}

// Assembly:
pushq %rax
movl 0x5d91(%rip), %ecx      # 0x9d80
cmpl $-0x1, %ecx
jne 0x4013
movq 0x5d75(%rip), %rdx      # 0x9d70
leaq 0x61ce(%rip), %rdi      # 0xa1d0
movl $0x78, %esi
callq 0x20e0
xorl %ecx, %ecx
testq %rax, %rax
je 0x4034
movslq %ecx, %rax
incl %ecx
leaq 0x61b1(%rip), %rdx      # 0xa1d0
movb (%rax,%rdx), %al
cmpb $0xa, %al
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmovnel %ecx, %edx
movl %edx, 0x5d4e(%rip)      # 0x9d80
popq %rcx
retq
leaq 0x1548(%rip), %rdi      # 0x5583
callq 0x3bd9
// File: /workspace/github_c_makefile_star2_O3/tyabu12[P]pl0compiler/getSource.c
// Function: printSpaces
static void printSpaces() {     /* 空白や改行の印字                     */
    while (CR-- > 0)
        fprintf(fphtml, "\n");
    while (spaces-- > 0)
        fprintf(fphtml, " ");
    CR = 0; spaces = 0;
}

// Assembly:
pushq %rax
movl 0x5d71(%rip), %eax      # 0x9db8
leal -0x1(%rax), %ecx
movl %ecx, 0x5d68(%rip)      # 0x9db8
testl %eax, %eax
jle 0x4078
movq 0x5d1d(%rip), %rsi      # 0x9d78
movl $0xa, %edi
callq 0x20d0
jmp 0x4041
movq 0x5d0a(%rip), %rsi      # 0x9d78
movl $0x20, %edi
callq 0x20d0
movl 0x5d36(%rip), %eax      # 0x9db4
leal -0x1(%rax), %ecx
movl %ecx, 0x5d2d(%rip)      # 0x9db4
testl %eax, %eax
jg 0x4067
xorl %eax, %eax
movl %eax, 0x5d25(%rip)      # 0x9db8
movl %eax, 0x5d1b(%rip)      # 0x9db4
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O3/tyabu12[P]pl0compiler/getSource.c
// Function: printcToken
void printcToken() {            /* 現在のトークンの印字                 */
    int i = (int)cToken.kind;
    if (printed){
        printed = 0; return;
    }
    printed = 1;
    printSpaces();              /* トークンの前の空白や改行印字         */
    if (i < end_of_KeyWd)       /* 予約語                               */
        fprintf(fphtml, "<b>%s</b>", KeyWdT[i].word);
    else if (i < end_of_KeySym) /* 演算子か区切り記号                   */
        fprintf(fphtml, "%s", KeyWdT[i].word);
    else if (i == (int)Id) {    /* Identfier                            */
        switch (idKind) {
        case varId:
            fprintf(fphtml, "%s", cToken.u.id); return;
        case parId:
            fprintf(fphtml, "<i>%s</i>", cToken.u.id); return;
        case funcId:
            fprintf(fphtml, "<i>%s</i>", cToken.u.id); return;
        case constId:
            fprintf(fphtml, "<tt>%s</tt>", cToken.u.id); return;
        }
    } else if (i == (int)Num)   /* Num                                  */
        fprintf(fphtml, "%d", cToken.u.value);
}

// Assembly:
pushq %rbx
cmpb $0x1, 0x5ce5(%rip)      # 0x9d88
jne 0x40ae
movb $0x0, 0x5cdc(%rip)      # 0x9d88
popq %rbx
retq
movslq 0x5cd7(%rip), %rbx      # 0x9d8c
movb $0x1, 0x5ccc(%rip)      # 0x9d88
callq 0x4040
cmpl $0xd, %ebx
jg 0x40eb
movq 0x5cab(%rip), %rdi      # 0x9d78
shlq $0x4, %rbx
leaq 0x3af8(%rip), %rax      # 0x7bd0
movq (%rbx,%rax), %rdx
leaq 0x14ad(%rip), %rsi      # 0x5590
xorl %eax, %eax
popq %rbx
jmp 0x2110
cmpl $0x1e, %ebx
ja 0x410c
movq 0x5c81(%rip), %rsi      # 0x9d78
shlq $0x4, %rbx
leaq 0x3ace(%rip), %rax      # 0x7bd0
movq (%rbx,%rax), %rdi
popq %rbx
jmp 0x20b0
cmpl $0x21, %ebx
je 0x4142
cmpl $0x20, %ebx
jne 0x40ac
movl 0x60a4(%rip), %eax      # 0xa1c0
cmpq $0x3, %rax
ja 0x40ac
leaq 0x1257(%rip), %rcx      # 0x5380
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x5c3f(%rip), %rdi      # 0x9d78
leaq 0x145a(%rip), %rsi      # 0x559a
jmp 0x417c
movq 0x5c2f(%rip), %rdi      # 0x9d78
movl 0x5c41(%rip), %edx      # 0x9d90
leaq 0x1012(%rip), %rsi      # 0x5168
xorl %eax, %eax
popq %rbx
jmp 0x2110
movq 0x5c13(%rip), %rsi      # 0x9d78
leaq 0x5c24(%rip), %rdi      # 0x9d90
jmp 0x4106
movq 0x5c03(%rip), %rdi      # 0x9d78
leaq 0x1428(%rip), %rsi      # 0x55a4
leaq 0x5c0d(%rip), %rdx      # 0x9d90
jmp 0x40e3
// File: /workspace/github_c_makefile_star2_O3/masyagin1998[P]GCI/src/parser/parser.c
// Function: print_parser_error
void print_parser_error(const struct PARSER_ERROR*err)
{
    size_t i;
    
    char tmp[128];

    token_type_to_str(err->get_tok, tmp, sizeof(tmp));
    fprintf(stderr, "%zu:%zu: error: invalid token: \"%s\"; expected tokens: ",
            err->line, err->pos, tmp);

    i = 0;
    while (err->exp_toks[i] != TOKEN_TYPE_EOF) {
        token_type_to_str(err->exp_toks[i], tmp, sizeof(tmp));        
        fprintf(stderr, "\"%s\" ", tmp);
        i++;
    }

    fprintf(stderr, "\n");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
movl 0x40(%rdi), %edi
movq %rsp, %r14
movl $0x80, %edx
movq %r14, %rsi
callq 0x59bf
movq 0x16a5e(%rip), %r12     # 0x17ff0
movq (%r12), %rdi
movq 0x48(%rbx), %rdx
movq 0x50(%rbx), %rcx
leaq 0xe30f(%rip), %rsi      # 0xf8b4
movq %r14, %r8
xorl %eax, %eax
callq 0x1100
movl (%rbx), %edi
cmpl $0x26, %edi
je 0x15ed
addq $0x4, %rbx
movq %rsp, %r14
leaq 0xe327(%rip), %r15      # 0xf8eb
movl $0x80, %edx
movq %r14, %rsi
callq 0x59bf
movq (%r12), %rdi
movq %r15, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x1100
movl (%rbx), %edi
addq $0x4, %rbx
cmpl $0x26, %edi
jne 0x15c4
movq (%r12), %rsi
pushq $0xa
popq %rdi
callq 0x10c0
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/masyagin1998[P]GCI/src/utils/utils.c
// Function: file_open
FILE*file_open(const char*fname, const char*mode)
{
    if (strcmp(fname, "stdin") == 0) {
        return stdin;
    } else if (strcmp(fname, "stdout") == 0) {
        return stdout;
    } else if (strcmp(fname, "stderr") == 0) {
        return stderr;
    } else {
        FILE*f = fopen(fname, mode);
        if (f == NULL) {
            fprintf(stderr, "Unable to open file \"%s\" with mode \"%s\"",
                    fname, mode);
            exit(EXIT_FAILURE);
        }
        return f;
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xafa3(%rip), %rsi      # 0xf398
callq 0x10f0
testl %eax, %eax
je 0x443f
leaq 0xac44(%rip), %rsi      # 0xf049
movq %r14, %rdi
callq 0x10f0
testl %eax, %eax
je 0x4448
leaq 0xaf86(%rip), %rsi      # 0xf39e
movq %r14, %rdi
callq 0x10f0
testl %eax, %eax
je 0x4451
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1170
testq %rax, %rax
jne 0x445b
movq %r14, %rdi
movq %rbx, %rsi
callq 0x140e
movq 0x13b82(%rip), %rax     # 0x17fc8
jmp 0x4458
movq 0x13b71(%rip), %rax     # 0x17fc0
jmp 0x4458
movq 0x13b98(%rip), %rax     # 0x17ff0
movq (%rax), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O3/masyagin1998[P]GCI/src/lexer/lexer.c
// Function: lexer_conf_from_file
void lexer_conf_from_file(lexer_type_t lexer, const char*fname)
{
    FILE*f;

    size_t read;
    
    strncpy(lexer->program_name, fname, sizeof(lexer->program_name));

    if (strcmp(fname, "stdin") == 0) {
        f = stdin;
    } else {
        f = file_open(fname, "r");
    }

    fseek(f, 0, SEEK_END);
    lexer->program_len = ftell(f);
    fseek(f, 0, SEEK_SET);

    SAFE_MALLOC(lexer->program, lexer->program_len + 1);

    read = fread(lexer->program, sizeof(char), lexer->program_len, f);
    if (read != lexer->program_len) {
        fprintf(stderr, "Unable to read input file \"%s\"", fname);
        exit(EXIT_FAILURE);
    }
    lexer->program[lexer->program_len] = '\0';

    lexer->cur.program = lexer->program;
    lexer->cur.program_len = lexer->program_len;

    fclose(f);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
addq $0x10, %rdi
movl $0x100, %edx            # imm = 0x100
callq 0x1040
leaq 0xaef4(%rip), %rsi      # 0xf398
movq %r14, %rdi
callq 0x10f0
testl %eax, %eax
je 0x44c4
leaq 0xb21a(%rip), %rsi      # 0xf6d1
movq %r14, %rdi
callq 0x43e4
movq %rax, %r15
jmp 0x44ce
movq 0x13afd(%rip), %rax     # 0x17fc8
movq (%rax), %r15
movq %r15, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x1150
movq %r15, %rdi
callq 0x1110
movq %rax, 0x8(%rbx)
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1150
movq 0x8(%rbx), %r12
leaq 0x1(%r12), %r13
movq %r13, %rdi
callq 0x1130
movq %rax, (%rbx)
testq %rax, %rax
je 0x4549
movl $0x1, %esi
movq %rax, %rdi
movq %r12, %rdx
movq %r15, %rcx
callq 0x1060
cmpq 0x8(%rbx), %rax
jne 0x4551
movq (%rbx), %rcx
movb $0x0, (%rcx,%rax)
movups (%rbx), %xmm0
movups %xmm0, 0x110(%rbx)
movq %r15, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x1070
movq %r13, %rdi
callq 0x148a
movq %r14, %rdi
callq 0x1466
// File: /workspace/github_c_makefile_star2_O3/masyagin1998[P]GCI/src/lexer/lexer.c
// Function: dump_lexer_to_xml_file
void dump_lexer_to_xml_file(FILE*f, lexer_type_t lexer)
{
    struct TOKEN*tok;
    char tmp_str[4096];

    fprintf(f, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
    fprintf(f, "<tokens>\n");

    lexer_next_token(lexer, &tok);
    while (tok->token_type != TOKEN_TYPE_EOF) {
        token_to_xml_string(tok, tmp_str, sizeof(tmp_str));
        fprintf(f, "\t%s\n", tmp_str);
        token_free(tok);
        lexer_next_token(lexer, &tok);
    }
    token_free(tok);

    fprintf(f, "</tokens>\n");        
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1010, %rsp           # imm = 0x1010
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xa8f8(%rip), %rdi      # 0xf62c
movl $0x27, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x1190
leaq 0xa907(%rip), %rdi      # 0xf654
movl $0x9, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x1190
leaq 0x8(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x45d6
movq (%r15), %rdi
cmpl $0x26, (%rdi)
je 0x4dc4
leaq 0x10(%rsp), %r15
leaq 0xa8db(%rip), %r12      # 0xf65e
leaq 0x8(%rsp), %r13
movl $0x1000, %edx           # imm = 0x1000
movq %r15, %rsi
callq 0x52b7
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x1100
movq 0x8(%rsp), %rdi
callq 0x53ac
movq %r14, %rdi
movq %r13, %rsi
callq 0x45d6
movq 0x8(%rsp), %rdi
cmpl $0x26, (%rdi)
jne 0x4d88
callq 0x53ac
leaq 0xa893(%rip), %rdi      # 0xf663
movl $0xa, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x1190
addq $0x1010, %rsp           # imm = 0x1010
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/masyagin1998[P]GCI/src/lexer/token.c
// Function: token_read_keyword
void token_read_keyword(struct TOKEN**tok, const struct POS*pos, enum TOKEN_TYPE tok_type, const char*keyword, size_t keyword_len)
{
    struct TOKEN*new_tok;
    struct POS p = (*pos);
    size_t i;

    PREFIX_UNUSED(keyword);
    
    new_tok = create_token();

    new_tok->token_type = tok_type;
    new_tok->group_type = GROUP_TYPE_KEYWORDS;

    i = 0;
    while (i != keyword_len) {
        p = pos_next(&p);
        i++;
    }

    new_tok->frag.starting = (*pos);
    new_tok->frag.following = p;

    (*tok) = new_tok;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r8, %r12
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x20(%rsi), %rax
movq %rax, 0x20(%rsp)
movups (%rsi), %xmm0
movups 0x10(%rsi), %xmm1
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, (%rsp)
callq 0x4e08
movq %rax, %r15
movl %ebp, (%rax)
movl $0x0, 0x4(%rax)
testq %r12, %r12
je 0x4ea1
leaq 0x30(%rsp), %r13
movq %rsp, %rbp
movq %r13, %rdi
movq %rbp, %rsi
callq 0x54e6
movq 0x50(%rsp), %rax
movq %rax, 0x20(%rsp)
movups 0x30(%rsp), %xmm0
movups 0x40(%rsp), %xmm1
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, (%rsp)
decq %r12
jne 0x4e74
movq 0x20(%r14), %rax
movq %rax, 0x28(%r15)
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups %xmm1, 0x18(%r15)
movups %xmm0, 0x8(%r15)
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
movups %xmm0, 0x30(%r15)
movups %xmm1, 0x40(%r15)
movq 0x20(%rsp), %rax
movq %rax, 0x50(%r15)
movq %r15, (%rbx)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/masyagin1998[P]GCI/src/lexer/token.c
// Function: token_read_number
int token_read_number(struct TOKEN**tok, const struct POS*pos)
{
    enum LEXER_CODES r = LEXER_OK;
    
    struct TOKEN*new_tok;
    struct POS p = (*pos);
    
    new_tok = create_token();

    new_tok->token_type = TOKEN_TYPE_NUMBER;
    new_tok->group_type = GROUP_TYPE_NUMBERS;

    while (pos_is_digit(&p)) {
        p = pos_next(&p);
    }
    if (pos_get_code(&p) == '.') {
        r = LEXER_INVALID_TOKEN;
        p = pos_next(&p);
        while (pos_is_digit(&p)) {
            r = LEXER_OK;
            p = pos_next(&p);
        }
    }

    new_tok->frag.starting = (*pos);
    new_tok->frag.following = p;

    char tmp_str[64];
    snprintf(tmp_str, sizeof(tmp_str),
             "%.*s",
             (int) (new_tok->frag.following.index - new_tok->frag.starting.index),
             new_tok->frag.starting.program + new_tok->frag.starting.index);

    new_tok->int_val = atoll(tmp_str);

    (*tok) = new_tok;

    return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movq 0x20(%rsi), %rax
movq %rsp, %r12
movq %rax, 0x20(%r12)
movups (%rsi), %xmm0
movups 0x10(%rsi), %xmm1
movaps %xmm1, 0x10(%r12)
movaps %xmm0, (%r12)
callq 0x4e08
movq %rax, %r14
movabsq $0x20000001d, %rax      # imm = 0x20000001D
movq %rax, (%r14)
movq %r12, %rdi
callq 0x5425
testl %eax, %eax
je 0x4f79
leaq 0x30(%rsp), %r12
movq %rsp, %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x54e6
movq 0x50(%rsp), %rax
movq %rax, 0x20(%rsp)
movups 0x30(%rsp), %xmm0
movups 0x40(%rsp), %xmm1
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, (%rsp)
movq %r13, %rdi
callq 0x5425
testl %eax, %eax
jne 0x4f45
movq %rsp, %rdi
callq 0x53ea
xorl %ebp, %ebp
cmpl $0x2e, %eax
jne 0x500c
leaq 0x30(%rsp), %r12
movq %rsp, %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x54e6
movq 0x20(%r12), %rax
movq %rax, 0x20(%r13)
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movaps %xmm1, 0x10(%r13)
movaps %xmm0, (%r13)
movq %r13, %rdi
callq 0x5425
testl %eax, %eax
je 0x5007
leaq 0x30(%rsp), %r12
movq %rsp, %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x54e6
movq 0x50(%rsp), %rax
movq %rax, 0x20(%rsp)
movups 0x30(%rsp), %xmm0
movups 0x40(%rsp), %xmm1
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, (%rsp)
movq %r13, %rdi
callq 0x5425
testl %eax, %eax
jne 0x4fd1
jmp 0x500c
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq 0x20(%r15), %rax
movq %rax, 0x28(%r14)
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups %xmm1, 0x18(%r14)
movups %xmm0, 0x8(%r14)
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
movups %xmm0, 0x30(%r14)
movups %xmm1, 0x40(%r14)
movq 0x20(%rsp), %rax
movq %rax, 0x50(%r14)
movl 0x50(%r14), %ecx
movq 0x28(%r14), %r8
subl %r8d, %ecx
addq 0x8(%r14), %r8
leaq 0xa63d(%rip), %rdx      # 0xf696
leaq 0x30(%rsp), %r15
movl $0x40, %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x10b0
movq %r15, %rdi
callq 0x10e0
movq %rax, 0x58(%r14)
movq %r14, (%rbx)
movl %ebp, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/masyagin1998[P]GCI/src/lexer/token.c
// Function: token_read_unknown
void token_read_unknown(struct TOKEN**tok, const struct POS*pos)
{
    struct TOKEN*new_tok;
    struct POS p = (*pos);

    new_tok = create_token();

    while (pos_is_unknown(&p)) {
        p = pos_next(&p);
    }

    new_tok->token_type = TOKEN_TYPE_UNKNOWN;
    new_tok->group_type = GROUP_TYPE_AUX;
    new_tok->frag.starting = (*pos);
    new_tok->frag.following = p;

    (*tok) = new_tok;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x20(%rsi), %rax
movq %rsp, %r12
movq %rax, 0x20(%r12)
movups (%rsi), %xmm0
movups 0x10(%rsi), %xmm1
movaps %xmm1, 0x10(%r12)
movaps %xmm0, (%r12)
callq 0x4e08
movq %rax, %r15
movq %r12, %rdi
callq 0x5466
testl %eax, %eax
je 0x5262
leaq 0x28(%rsp), %r12
movq %rsp, %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x54e6
movq 0x48(%rsp), %rax
movq %rax, 0x20(%rsp)
movups 0x28(%rsp), %xmm0
movups 0x38(%rsp), %xmm1
movaps %xmm1, 0x10(%rsp)
movaps %xmm0, (%rsp)
movq %r13, %rdi
callq 0x5466
testl %eax, %eax
jne 0x522e
movabsq $0x400000027, %rax      # imm = 0x400000027
movq %rax, (%r15)
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups %xmm0, 0x8(%r15)
movups %xmm1, 0x18(%r15)
movq 0x20(%r14), %rax
movq %rax, 0x28(%r15)
movaps (%rsp), %xmm0
movaps 0x10(%rsp), %xmm1
movups %xmm0, 0x30(%r15)
movups %xmm1, 0x40(%r15)
movq 0x20(%rsp), %rax
movq %rax, 0x50(%r15)
movq %r15, (%rbx)
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/masyagin1998[P]GCI/src/lexer/token.c
// Function: token_to_xml_string
void token_to_xml_string(const struct TOKEN*tok, char*str, size_t len)
{
    switch (tok->group_type) {
    case GROUP_TYPE_KEYWORDS:
        TOKEN_GEN_STR("keyword");
        break;
    case GROUP_TYPE_IDENTS:
        TOKEN_GEN_STR("ident");
        break;
    case GROUP_TYPE_NUMBERS:
        TOKEN_GEN_STR("number");
        break;
    case GROUP_TYPE_OPS:
        TOKEN_GEN_STR("operator");
        break;
    case GROUP_TYPE_AUX:
        TOKEN_GEN_STR("aux");
        break;
    }
}

// Assembly:
pushq %rax
movl 0x4(%rdi), %eax
cmpq $0x4, %rax
ja 0x53aa
leaq 0xa3a4(%rip), %rcx      # 0xf670
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x18(%rdi), %r8
movq 0x20(%rdi), %r9
movl 0x50(%rdi), %r10d
movq 0x28(%rdi), %r11
subl %r11d, %r10d
addq 0x8(%rdi), %r11
subq $0x8, %rsp
leaq 0xa3c7(%rip), %rcx      # 0xf6be
jmp 0x538a
movq 0x18(%rdi), %r8
movq 0x20(%rdi), %r9
movl 0x50(%rdi), %r10d
movq 0x28(%rdi), %r11
subl %r11d, %r10d
addq 0x8(%rdi), %r11
subq $0x8, %rsp
leaq 0xa3be(%rip), %rcx      # 0xf6dc
jmp 0x538a
movq 0x18(%rdi), %r8
movq 0x20(%rdi), %r9
movl 0x50(%rdi), %r10d
movq 0x28(%rdi), %r11
subl %r11d, %r10d
addq 0x8(%rdi), %r11
subq $0x8, %rsp
leaq 0xa38a(%rip), %rcx      # 0xf6cc
jmp 0x538a
movq 0x18(%rdi), %r8
movq 0x20(%rdi), %r9
movl 0x50(%rdi), %r10d
movq 0x28(%rdi), %r11
subl %r11d, %r10d
addq 0x8(%rdi), %r11
subq $0x8, %rsp
leaq 0xa36d(%rip), %rcx      # 0xf6d3
jmp 0x538a
movq 0x18(%rdi), %r8
movq 0x20(%rdi), %r9
movl 0x50(%rdi), %r10d
movq 0x28(%rdi), %r11
subl %r11d, %r10d
addq 0x8(%rdi), %r11
subq $0x8, %rsp
leaq 0xa33c(%rip), %rcx      # 0xf6c6
leaq 0xa30a(%rip), %rax      # 0xf69b
movq %rsi, %rdi
movq %rdx, %rsi
movq %rax, %rdx
xorl %eax, %eax
pushq %rcx
pushq %r11
pushq %r10
callq 0x10b0
addq $0x20, %rsp
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O3/masyagin1998[P]GCI/src/lexer/pos.c
// Function: pos_is_unknown
int pos_is_unknown(const struct POS*pos)
{
    size_t i;
    const char symbols[] = { '|', '&', '=', '!', '<', '>', '+', '-', '*', '/', '%', '(', ')', '{', '}', ',', ';', '.', ':' };
    
    if (pos_is_whitespace(pos) || pos_is_newline(pos) || pos_is_digit(pos) || pos_is_letter(pos)) {
        return 0;
    }

    for (i = 0; i < sizeof(symbols) / sizeof(char); i++) {
        if (symbols[i] == pos_get_code(pos)) {
            return 0;
        }
    }

    return 1;
}

// Assembly:
movq (%rdi), %rdx
movq 0x20(%rdi), %rsi
movzbl (%rdx,%rsi), %ecx
xorl %eax, %eax
cmpl $0x9, %ecx
je 0x54a2
cmpl $0xd, %ecx
je 0x54a3
cmpl $0x20, %ecx
je 0x54a2
cmpb $0xa, %cl
setne %dl
leal -0x3a(%rcx), %esi
cmpb $-0xa, %sil
setb %sil
testb %dl, %sil
je 0x54a2
cmpb $0x61, %cl
jl 0x54dc
cmpb $0x7a, %cl
ja 0x54bd
retq
leaq (%rdx,%rsi), %r8
leaq 0x1(%rsi), %r9
cmpq 0x8(%rdi), %r9
leaq 0x1(%rdx,%rsi), %rdx
cmovaeq %r8, %rdx
cmpb $0xa, (%rdx)
je 0x54a2
xorl %eax, %eax
leaq 0xa21a(%rip), %rdx      # 0xf6e0
xorl %esi, %esi
cmpb (%rsi,%rdx), %cl
je 0x54a2
incq %rsi
cmpq $0x13, %rsi
jne 0x54c8
movl $0x1, %eax
retq
leal -0x5b(%rcx), %edx
cmpb $-0x1b, %dl
ja 0x54a2
jmp 0x54bd
// File: /workspace/github_c_makefile_star2_O3/masyagin1998[P]GCI/src/lexer/pos.c
// Function: pos_next
struct POS pos_next(const struct POS*pos)
{
    size_t new_line = pos->line;
    size_t new_pos = pos->pos;
    size_t new_index = pos->index;

    if (!pos_is_eof(pos)) {
        if (pos_is_newline(pos)) {
            new_line++;
            new_pos = 1;
        } else {
            new_pos++;
        }
        new_index++;
    }

    return (struct POS) {
        .program     = pos->program,
        .program_len = pos->program_len,
        .line        = new_line,
        .pos         = new_pos,    
        .index       = new_index,
    };
}

// Assembly:
movq %rdi, %rax
movq 0x10(%rsi), %rcx
movq 0x18(%rsi), %rdx
movq 0x20(%rsi), %r9
movq (%rsi), %rdi
movq 0x8(%rsi), %rsi
movq %rsi, %r8
subq $0x1, %r8
setb %r10b
cmpq %r8, %r9
sete %r8b
orb %r10b, %r8b
je 0x5518
movq %r9, %r8
jmp 0x5552
movb (%rdi,%r9), %r10b
leaq 0x1(%r9), %r8
cmpb $0xd, %r10b
jne 0x5537
addq %rdi, %r9
leaq (%rdi,%r8), %r10
cmpq %rsi, %r8
cmovaeq %r9, %r10
movb (%r10), %r10b
incq %rdx
xorl %r9d, %r9d
cmpb $0xa, %r10b
sete %r9b
movl $0x1, %r10d
cmoveq %r10, %rdx
addq %r9, %rcx
movq %rdi, (%rax)
movq %rsi, 0x8(%rax)
movq %rcx, 0x10(%rax)
movq %rdx, 0x18(%rax)
movq %r8, 0x20(%rax)
retq