LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/heltilda[P]cicada/ciclib.c
// Function: doMath
void doMath(ccFloat(MathFunction)(ccFloat argument))
{
    if (numBIF_args() != 1)  {  setError(wrong_argument_count_err, pcCodePtr-1);  return;  }
    
    doubleRegister = getBIFnumArg(1, -DBL_MAX, DBL_MAX);
    if (errCode != passed)  return;
    
    doubleRegister = MathFunction(doubleRegister);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x170b2
cmpl $0x1, %eax
jne 0x174ca
pushq $0x1
popq %rdi
movsd 0x28a7(%rip), %xmm0     # 0x19d40
movsd 0x28a7(%rip), %xmm1     # 0x19d48
callq 0x1715f
leaq 0xd2b3(%rip), %r14      # 0x24760
movsd %xmm0, 0x70(%r14)
cmpl $0x0, 0x18(%r14)
jne 0x174c2
callq *%rbx
movsd %xmm0, 0x70(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0xd28f(%rip), %rax      # 0x24760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
pushq $0x2d
popq %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xc7c2
// File: /workspace/github_c_makefile_star2_O2/heltilda[P]cicada/ciclib.c
// Function: writeBIFintArg
void writeBIFintArg(ccInt argNum, ccInt theNum)
{
    window *argWindow = getBIFmember(argNum);
    
    if (argWindow == NULL)  return;
    else if (argWindow->variable_ptr->type > double_type)  setError(type_mismatch_err, pcCodePtr-1);
    else if (argWindow->width != 1)  setError(multiple_indices_not_allowed_err, pcCodePtr-1);
    
    else  {
        doubleRegister = (ccFloat) theNum;
        saveDoubleRegister(argWindow->variable_ptr, argWindow->offset);   }
}

// Assembly:
pushq %rbx
movl %esi, %ebx
callq 0x170f5
testq %rax, %rax
je 0x17550
movq 0x10(%rax), %rdi
cmpl $0x4, 0xc0(%rdi)
jl 0x17552
leaq 0xd21f(%rip), %rax      # 0x24760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
pushq $0x11
jmp 0x17585
popq %rbx
retq
cmpl $0x1, 0x1c(%rax)
jne 0x17571
cvtsi2sd %ebx, %xmm0
leaq 0xd1fd(%rip), %rcx      # 0x24760
movsd %xmm0, 0x70(%rcx)
movl 0x18(%rax), %esi
popq %rbx
jmp 0x1452b
leaq 0xd1e8(%rip), %rax      # 0x24760
movq 0xb8(%rax), %rsi
addq $-0x4, %rsi
pushq $0x1f
popq %rdi
popq %rbx
jmp 0xc7c2
// File: /workspace/github_c_makefile_star2_O2/heltilda[P]cicada/userfn.c
// Function: callMinMax
ccInt callMinMax(ccInt argc, char **argv)
{
    ccInt c1, listTop, *bestIdx, mult;
    ccFloat *theList, *bestValue;
    arg_info *argInfo = (arg_info *) argv[argc];
    
    getArgs(argc, argv, &theList, byValue(&mult), &bestIdx, &bestValue);
    listTop = argInfo[0].argIndices;
    
    *bestIdx = 1;
    *bestValue = mult * theList[0];
    
    for (c1 = 0; c1 < argInfo[0].argIndices; c1++)  {
    if (mult*theList[c1] > *bestValue)  {
        *bestIdx = c1 + 1;
        *bestValue = mult * theList[c1];
    }}
    
    return passed;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movslq %edi, %rdi
movq (%rsi,%rdi,8), %r12
leaq 0x10(%rsp), %rbp
movq %rbp, (%rsp)
xorl %r13d, %r13d
leaq 0x18(%rsp), %rbx
leaq 0xc(%rsp), %r14
leaq 0x20(%rsp), %r15
movq %rbx, %rdx
xorl %ecx, %ecx
movq %r14, %r8
movq %r15, %r9
xorl %eax, %eax
callq 0x17892
movq (%r15), %rax
movl $0x1, (%rax)
movl (%r14), %esi
cvtsi2sd %esi, %xmm0
movq (%rbx), %rcx
mulsd (%rcx), %xmm0
movq (%rbp), %rdx
movsd %xmm0, (%rdx)
movslq 0x4(%r12), %rdi
cvtsi2sd %esi, %xmm1
cmpq %rdi, %r13
jge 0x17669
movsd (%rcx,%r13,8), %xmm2
movapd %xmm2, %xmm3
mulsd %xmm1, %xmm3
incq %r13
ucomisd %xmm0, %xmm3
jbe 0x17638
movl %r13d, (%rax)
movl 0xc(%rsp), %esi
cvtsi2sd %esi, %xmm0
mulsd %xmm0, %xmm2
movapd %xmm2, %xmm0
jmp 0x1762b
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/heltilda[P]cicada/userfn.c
// Function: callSum
ccInt callSum(ccInt argc, char **argv)
{
    ccInt c1;
    ccFloat *theList, *theSum;
    arg_info *argInfo = (arg_info *) argv[argc];
    
    getArgs(argc, argv, &theList, &theSum);
    
    *theSum = 0.;
    for (c1 = 0; c1 < argInfo[0].argIndices; c1++)  *theSum += theList[c1];
    
    return passed;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movslq %edi, %rdi
movq (%rsi,%rdi,8), %r12
xorl %r15d, %r15d
leaq 0x10(%rsp), %rbx
leaq 0x8(%rsp), %r14
movq %rbx, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0x17892
movq (%r14), %rax
andq $0x0, (%rax)
movslq 0x4(%r12), %rcx
movq (%rbx), %rdx
xorpd %xmm0, %xmm0
cmpq %rcx, %r15
jge 0x176cd
addsd (%rdx,%r15,8), %xmm0
movsd %xmm0, (%rax)
incq %r15
jmp 0x176b9
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/heltilda[P]cicada/userfn.c
// Function: callMakeLinkList
ccInt callMakeLinkList(ccInt argc, char **argv)
{
    ccInt *linkList, firstIndex, direction, cl;
    ccFloat *sortingList;
    arg_info *argInfo = (arg_info *) argv[argc];
    
    getArgs(argc, argv, &sortingList, &linkList, byValue(&direction));
    
    for (cl = 0; cl < argInfo[0].argIndices; cl++)  linkList[cl] = -1;
    
    firstIndex = makeLinkList(0, argInfo[0].argIndices-1, direction, sortingList, linkList);
    
    return firstIndex;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movslq %edi, %rdi
movq (%rsi,%rdi,8), %r14
xorl %r15d, %r15d
leaq 0x10(%rsp), %rdx
leaq 0x18(%rsp), %rbx
leaq 0xc(%rsp), %r9
movq %rbx, %rcx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x17892
movq (%rbx), %r8
movslq 0x4(%r14), %rsi
cmpq %rsi, %r15
jge 0x17720
orl $-0x1, (%r8,%r15,4)
incq %r15
jmp 0x1770d
decl %esi
movl 0xc(%rsp), %edx
movq 0x10(%rsp), %rcx
xorl %edi, %edi
callq 0x179f8
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/heltilda[P]cicada/userfn.c
// Function: getArgs
void getArgs(ccInt argc, char **argv, ...)
{
    ccInt loopArg;
    va_list theArgs;
    char **nextarg;
    arg_info *myArgInfo = (arg_info *) argv[argc];
    
    va_start(theArgs, argv);
    for (loopArg = 0; loopArg < argc; loopArg++)  {
        nextarg = va_arg(theArgs, char **);
        if (nextarg != NULL)
            *nextarg = argv[loopArg];
        else  {
            nextarg = va_arg(theArgs, char **);
            if (nextarg == NULL)  {
                loopArg = ((ccInt) va_arg(theArgs, int)) - 1;
                if (loopArg < -1)  break;       }
            else  {
                size_t numBytes = (size_t) myArgInfo[loopArg].argIndices*typeSizes[myArgInfo[loopArg].argType];
                if (numBytes > 0)  memcpy((void *) nextarg, (void *) argv[loopArg], numBytes);
    }   }   }
    va_end(theArgs);
    
    return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xd0, %rsp
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x20(%rsp), %rsi
movq %rdx, 0x10(%rsi)
movq %rcx, 0x18(%rsi)
movq %r8, 0x20(%rsi)
movq %r9, 0x28(%rsi)
testb %al, %al
je 0x178f6
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movslq %edi, %rax
movq (%rbx,%rax,8), %r14
movq %rsi, 0x10(%rsp)
leaq 0x100(%rsp), %rax
movq %rax, 0x8(%rsp)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%rsp)
xorl %r12d, %r12d
leaq 0x2399(%rip), %r15      # 0x19cc0
cmpl %ebp, %r12d
jge 0x179e8
movl (%rsp), %eax
cmpq $0x28, %rax
ja 0x17949
movq %rax, %rcx
addq 0x10(%rsp), %rcx
addl $0x8, %eax
movl %eax, (%rsp)
jmp 0x17957
movq 0x8(%rsp), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movl %r12d, %ecx
testq %rdx, %rdx
je 0x1796e
movq (%rbx,%rcx,8), %rax
movq %rax, (%rdx)
incl %r12d
jmp 0x17927
cmpl $0x28, %eax
ja 0x17982
movl %eax, %edx
addq 0x10(%rsp), %rdx
addl $0x8, %eax
movl %eax, (%rsp)
jmp 0x17990
movq 0x8(%rsp), %rdx
leaq 0x8(%rdx), %rsi
movq %rsi, 0x8(%rsp)
movq (%rdx), %rdi
testq %rdi, %rdi
je 0x179b9
movslq 0x4(%r14,%rcx,8), %rax
movslq (%r14,%rcx,8), %rdx
movslq (%r15,%rdx,4), %rdx
imulq %rax, %rdx
testq %rdx, %rdx
je 0x17969
movq (%rbx,%rcx,8), %rsi
callq 0x8110
jmp 0x17969
cmpl $0x28, %eax
ja 0x179cd
movl %eax, %ecx
addq 0x10(%rsp), %rcx
addl $0x8, %eax
movl %eax, (%rsp)
jmp 0x179db
movq 0x8(%rsp), %rcx
leaq 0x8(%rcx), %rax
movq %rax, 0x8(%rsp)
movl (%rcx), %r12d
testl %r12d, %r12d
js 0x179e8
decl %r12d
jmp 0x17969
addq $0xd0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/heltilda[P]cicada/userfn.c
// Function: makeLinkList
ccInt makeLinkList(const ccInt left, const ccInt right, const ccInt direction, const ccFloat *sortingList, ccInt *linklist)
{
    ccInt middle, first, toWrite, side, nextSide, idx[2];
    
    if (right > left)  {
        
        middle = floor((right + left)/2);
        idx[0] = makeLinkList(left, middle, direction, sortingList, linklist);
        idx[1] = makeLinkList(middle + 1, right, direction, sortingList, linklist);
        
        if ((sortingList[idx[0]] - sortingList[idx[1]])*direction <= 0)  side = 0;
        else  side = 1;
        
        first = toWrite = idx[side];
        idx[side] = linklist[idx[side]];
        
        while ((idx[0] != -1) && (idx[1] != -1))  {
            
            if ((sortingList[idx[0]] - sortingList[idx[1]])*direction <= 0)  nextSide = 0;
            else  nextSide = 1;
            
            if (side != nextSide)  {
                linklist[toWrite] = idx[nextSide];
                side = nextSide;       }
            
            toWrite = idx[side];
            idx[side] = linklist[idx[side]];    }
        
        linklist[toWrite] = idx[1-side];
        
        return first;    }
        
    else  return left;
}

// Assembly:
cmpl %edi, %esi
jle 0x17aec
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r14
movl %edx, %ebp
movl %esi, %r15d
leal (%r15,%rdi), %eax
pushq $0x2
popq %rcx
cltd
idivl %ecx
movl %eax, %r12d
movl %eax, %esi
movl %ebp, %edx
movq %r14, %rcx
callq 0x179f8
movl %eax, %r13d
movl %eax, (%rsp)
incl %r12d
movl %r12d, %edi
movl %r15d, %esi
movl %ebp, %edx
movq %r14, %rcx
movq %rbx, %r8
callq 0x179f8
movl %eax, 0x4(%rsp)
movslq %r13d, %rcx
movsd (%r14,%rcx,8), %xmm2
cltq
subsd (%r14,%rax,8), %xmm2
cvtsi2sd %ebp, %xmm0
mulsd %xmm0, %xmm2
xorpd %xmm1, %xmm1
xorl %eax, %eax
ucomisd %xmm2, %xmm1
setb %al
leaq (%rsp,%rax,4), %rdx
movl (%rdx), %edi
movl %edi, %ecx
movslq %ecx, %rcx
movl (%rbx,%rcx,4), %esi
movl %esi, (%rdx)
movslq (%rsp), %rdx
cmpq $-0x1, %rdx
je 0x17ad3
movl 0x4(%rsp), %esi
cmpl $-0x1, %esi
je 0x17ad3
movslq %esi, %rsi
movsd (%r14,%rdx,8), %xmm2
subsd (%r14,%rsi,8), %xmm2
mulsd %xmm0, %xmm2
xorl %edx, %edx
ucomisd %xmm2, %xmm1
setb %dl
cmpl %edx, %eax
je 0x17ac9
xorl %eax, %eax
ucomisd %xmm2, %xmm1
setb %al
movl (%rsp,%rax,4), %eax
movl %eax, (%rbx,%rcx,4)
movl %edx, %eax
movl %eax, %ecx
leaq (%rsp,%rcx,4), %rdx
movl (%rdx), %ecx
jmp 0x17a7d
pushq $0x1
popq %rdx
subl %eax, %edx
movl (%rsp,%rdx,4), %eax
movl %eax, (%rbx,%rcx,4)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
movl %edi, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O2/heltilda[P]cicada/ccmain.c
// Function: runCicada
ccInt runCicada(ccInt argc, char **argv)
{
    ccInt rtrn;
    
    cc_compile_global_struct hold_compile_globals = cc_compile_globals;
    cc_interpret_global_struct hold_interpret_globals = cc_interpret_globals;
    cc_bytecode_global_struct hold_bytecode_globals = cc_bytecode_globals;
    
    rtrn = cicadaMain(argc, argv);
    
    cc_compile_globals = hold_compile_globals;
    cc_interpret_globals = hold_interpret_globals;
    cc_bytecode_globals = hold_bytecode_globals;
    
    return rtrn;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x388, %rsp            # imm = 0x388
movq %rsi, %r13
movl %edi, %ebp
leaq 0xc793(%rip), %rbx      # 0x242a0
movq 0x10(%rbx), %rax
movq %rax, 0x10(%rsp)
movups (%rbx), %xmm0
movaps %xmm0, (%rsp)
leaq 0xcb84(%rip), %rsi      # 0x246a8
leaq 0x20(%rsp), %r14
movl $0xb8, %edx
movq %r14, %rdi
callq 0x8110
leaq 0xcc23(%rip), %r15      # 0x24760
leaq 0xd8(%rsp), %r12
movl $0x2b0, %edx            # imm = 0x2B0
movq %r12, %rdi
movq %r15, %rsi
callq 0x8110
movl %ebp, %edi
movq %r13, %rsi
callq 0x17ba9
movl %eax, %ebp
movaps (%rsp), %xmm0
movups %xmm0, (%rbx)
movq 0x10(%rsp), %rax
movq %rax, 0x10(%rbx)
movl $0xb8, %edx
leaq 0xcb2b(%rip), %rdi      # 0x246a8
movq %r14, %rsi
callq 0x8110
movl $0x2b0, %edx            # imm = 0x2B0
movq %r15, %rdi
movq %r12, %rsi
callq 0x8110
movl %ebp, %eax
addq $0x388, %rsp            # imm = 0x388
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/heltilda[P]cicada/ccmain.c
// Function: cleanUp
void cleanUp()
{
    derefCodeList(&codeRegister);
    
    deletePLL(&VariableList);
    deletePLL(&MasterCodeList);
    deleteStack(&PCStack);
    deleteLinkedList(&codeRegister);
    deleteLinkedList(&(GL_Object.arrayDimList));
    deleteLinkedList(&stringRegister);
    
    return;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
leaq 0xc2a9(%rip), %rbx      # 0x24760
leaq 0x98(%rbx), %r14
movq %r14, %rdi
callq 0x133db
leaq 0xc1db(%rip), %r15      # 0x246a8
leaq 0x48(%r15), %rdi
callq 0x913f
movq %r15, %rdi
callq 0x913f
addq $0x90, %r15
movq %r15, %rdi
callq 0x929d
movq %r14, %rdi
callq 0x846b
leaq 0xe0(%rbx), %rdi
callq 0x846b
addq $0x78, %rbx
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x846b
nop
// File: /workspace/github_c_makefile_star2_O2/MrOneTwo[P]tinycc-dynamic-compilation/main.c
// Function: main
int
main(int argc, char* argv[])
{
  signal(SIGINT, signal_handler);

  script_t script;
  script.path = argv[1];

  while (1)
  {
    struct timespec t = {};
    t.tv_sec = 0;
    t.tv_nsec = 200000000;
    nanosleep(&t, &t);

    compile_program(&script);
    printf("%s\n", script.hello());
    printf("%s\n", script.bye());
  }

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
leaq -0x26(%rip), %rsi       # 0x256c
pushq $0x2
popq %rdi
callq 0x2280
movq 0x8(%rbx), %rax
movq %rax, -0x30(%rbp)
leaq -0x40(%rbp), %r14
leaq 0x2fa57(%rip), %r12     # 0x32004
andq $0x0, -0x40(%rbp)
movq $0xbebc200, -0x38(%rbp) # imm = 0xBEBC200
movq %r14, %rdi
movq %r14, %rsi
callq 0x2170
callq 0x3bd0
testq %rax, %rax
je 0x2676
movq %rax, %rbx
movq %rax, %rdi
movq %r12, %rsi
callq 0x45a0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3d80
movq %rbx, %rdi
xorl %esi, %esi
leaq 0xc4(%rip), %rdx        # 0x26bc
callq 0x3040
movq %rbx, %rdi
leaq 0x2fa09(%rip), %rsi     # 0x32010
callq 0x46c0
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0x4290
movq %rbx, %rdi
movq -0x30(%rbp), %rsi
callq 0x4110
testl %eax, %eax
js 0x268d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x296a0
movslq %eax, %rsi
pushq $0x1
popq %rdi
callq 0x2260
testq %rax, %rax
je 0x2684
movq %rbx, %rdi
movq %rax, %rsi
callq 0x296a0
testl %eax, %eax
js 0x2684
movq %rbx, %rdi
leaq 0x2f9b9(%rip), %rsi     # 0x32013
callq 0x1fb60
movq %rax, %r15
movq %rbx, %rdi
leaq 0x2f9b4(%rip), %rsi     # 0x32020
callq 0x1fb60
movq %rax, %r13
jmp 0x26a1
leaq 0x2f9bc(%rip), %rdi     # 0x32039
callq 0x20e0
jmp 0x26a1
leaq 0x2f9d6(%rip), %rdi     # 0x32061
jmp 0x2694
leaq 0x2fa02(%rip), %rdi     # 0x32096
callq 0x20e0
movq %rbx, %rdi
callq 0x3c60
callq *%r15
movq %rax, %rdi
callq 0x20e0
callq *%r13
movq %rax, %rdi
callq 0x20e0
jmp 0x25ad
// File: /workspace/github_c_makefile_star2_O2/eric-lo[P]3150/3-ProcessUser/fork_example_2.c
// Function: main
int main(void) {
	int result;

	printf("before fork ...\n");
	result = fork();
	printf("result = %d\n", result);

	if(result == 0) {
		sleep(1);
		printf("I'm the child\n");
		printf("My PID is %d\n", getpid());
	}
	else {
		sleep(1);
		printf("I'm the parent\n");
		printf("My PID is %d\n", getpid());
	}

	printf("program terminated\n");

	return 0;
}

// Assembly:
pushq %rbx
leaq 0xe9b(%rip), %rdi       # 0x201f
callq 0x1030
callq 0x1070
movl %eax, %ebx
leaq 0xe6d(%rip), %rdi       # 0x2004
movl %eax, %esi
xorl %eax, %eax
callq 0x1050
pushq $0x1
popq %rdi
callq 0x1060
testl %ebx, %ebx
leaq 0xe8d(%rip), %rax       # 0x203e
leaq 0xe77(%rip), %rdi       # 0x202f
cmoveq %rax, %rdi
callq 0x1030
callq 0x1040
leaq 0xe44(%rip), %rdi       # 0x2011
movl %eax, %esi
xorl %eax, %eax
callq 0x1050
leaq 0xe6f(%rip), %rdi       # 0x204c
callq 0x1030
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/aes128poetv2aes4/ref/poet.c
// Function: process_header
void process_header(poet_ctx_t *ctx,
                    const unsigned char *header,
                    unsigned long long header_len)
{
    block mask;
    block in;
    block out;
    uint64_t offset = 0;

    ctx->mlen = 0;
    memset(ctx->tau, 0, BLOCKLEN);
    memcpy(mask, ctx->l, BLOCKLEN);

    // Process parameters
    encode_parameters(in, NUM_BLOCKS_PER_PART, INTERMEDIATE_TAGLEN);

    xor_block(in, in, mask);

    aes_encrypt(in, out, &(ctx->aes_enc));
    xor_block(ctx->tau, out, ctx->tau);
    gf128_double(mask);

    while (header_len >= BLOCKLEN) {
        xor_block(in, header + offset, mask);
        aes_encrypt(in, out, &(ctx->aes_enc));
        xor_block(ctx->tau, out, ctx->tau);

        offset += BLOCKLEN;
        header_len -= BLOCKLEN;

        gf128_double(mask);
    }

    //  Final block 
    memset(in, 0, BLOCKLEN);
    memcpy(in, header + offset, header_len);
    in[header_len] = 0x80;
    xor_block(in, mask, in);
    aes_encrypt(in, out, &(ctx->aes_enc));
    
    xor_block(ctx->tau, out, ctx->tau);
    aes_encrypt(ctx->tau, ctx->tau, &(ctx->aes_enc));

    memcpy(ctx->x, ctx->tau, BLOCKLEN);
    memcpy(ctx->y, ctx->tau, BLOCKLEN);
    ctx->y[BLOCKLEN - 1] ^= 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r15
movq %rsi, %r12
andq $0x0, 0x340(%rdi)
leaq 0x32c(%rdi), %r14
vxorps %xmm0, %xmm0, %xmm0
vmovups %xmm0, 0x32c(%rdi)
movq %rdi, 0x8(%rsp)
vmovups 0x2ec(%rdi), %xmm1
vmovaps %xmm1, 0x20(%rsp)
vmovaps %xmm0, 0x10(%rsp)
xorl %eax, %eax
xorl %ecx, %ecx
cmpq $0x8, %rcx
je 0x3abe
movb %al, 0x10(%rsp,%rcx)
movb %al, 0x18(%rsp,%rcx)
incq %rcx
jmp 0x3aab
leaq 0x10(%rsp), %r13
leaq 0x20(%rsp), %rbp
movq %r13, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x3bd2
leaq 0x30(%rsp), %rbx
movq %r13, %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
callq 0x1100
movq %r14, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x3bd2
movq %rbp, %rdi
callq 0x3be9
cmpq $0x10, %r15
jb 0x3b3d
movq %r13, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x3bd2
movq %r13, %rdi
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
callq 0x1100
movq %r14, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x3bd2
addq $-0x10, %r15
addq $0x10, %r12
jmp 0x3af9
vxorps %xmm0, %xmm0, %xmm0
leaq 0x10(%rsp), %rbx
vmovaps %xmm0, (%rbx)
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x1110
movb $-0x80, 0x10(%rsp,%r15)
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
movq %rbx, %rdx
callq 0x3bd2
leaq 0x30(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rbx
movq %rbx, %rdx
callq 0x1100
movq %r14, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x3bd2
movq %r14, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1100
vmovups (%r14), %xmm0
vmovups %xmm0, 0x30c(%rbx)
vmovups (%r14), %xmm0
vmovups %xmm0, 0x31c(%rbx)
xorb $0x1, 0x32b(%rbx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/aes128poetv2aes4/ref/poet.c
// Function: compare_blocks
static int compare_blocks(const unsigned char* a, 
                          const unsigned char* b, 
                          const size_t num_bytes)
{
    unsigned char result = 0;
    size_t i;
    
    for (i = 0; i < num_bytes; i++) {
        result |= a[i] ^ b[i];
    }
    
    return result;
}

// Assembly:
xorl %eax, %eax
xorl %ecx, %ecx
cmpq %rcx, %rdx
je 0x424b
movb (%rsi,%rcx), %r8b
xorb (%rdi,%rcx), %r8b
orb %r8b, %al
incq %rcx
jmp 0x4236
movzbl %al, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O2/ramirezsebas[P]TP-LISTINGS/./src/capitulo_5/5.9/popen.c
// Function: main
int main()
{
    FILE *stream = popen("sort", "w");
    fprintf(stream, "This is a test.\n");
    fprintf(stream, "Hello, world.\n");
    fprintf(stream, "My dog has fleas.\n");
    fprintf(stream, "This program is great.\n");
    fprintf(stream, "One fish, two fish.\n");
    return pclose(stream);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
leaq 0xe9a(%rip), %rdi       # 0x2004
leaq 0xe98(%rip), %rsi       # 0x2009
callq 0x1040
movq %rax, %rbx
leaq 0xe8b(%rip), %rdi       # 0x200b
pushq $0x10
popq %rsi
pushq $0x1
popq %r14
movq %r14, %rdx
movq %rax, %rcx
callq 0x1050
leaq 0xe83(%rip), %rdi       # 0x201c
pushq $0xe
popq %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x1050
leaq 0xe7d(%rip), %rdi       # 0x202b
pushq $0x12
popq %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x1050
leaq 0xe7b(%rip), %rdi       # 0x203e
pushq $0x17
popq %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x1050
leaq 0xe7e(%rip), %rdi       # 0x2056
pushq $0x14
popq %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x1050
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O2/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: defineSymbol
SYM_T *defineSymbol( char *name, WORD32 val, SYMTYP type, WORD32 start )
{
    SYM_T  *sym;
    WORD32  xref_count;

    if( strlen( name ) < 1 )
    {
	return( &sym_undefined );		/* Protect against non-existent names. */
    }
    sym = lookup( name, type );
    xref_count = 0;			/* Set concordance for normal defintion. */

    if( M_DEFINED( sym->type ) && sym->val != val && M_NOTRDEF( sym -> type ))
    {
	if( pass == 2 )
	{
	    errorSymbol( &redefined_symbol, sym->name, start );
	    type = type | REDEFINED;
	    sym->xref_count++;		/* Referenced symbol, count it. */
	    xref_count = sym->xref_count;
	    /* moved inside "if pass2" -plb 10/2/03 allow redefinition
	     * of predefined symbols during pass1
	     */
	    return ( sym );
	}
    }

    if( pass == 2 && xref )
    {
	/* Put the definition line number in the concordance table. */
	/* Defined symbols are not counted as references. */
	if (sym->xref_index >= 0) {	/* beware macro dummies */
	    xreftab[sym->xref_index] = lineno;
	    /* Put the line number in the concordance table. */
	    xreftab[sym->xref_index + xref_count] = lineno;
	}
    }

    /* Now set the value and the type. */
    sym->val = val & 0777777;
    sym->type = type;
    return( sym );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpb $0x0, (%rdi)
je 0x2650
movl %ecx, %r15d
movl %edx, %ebp
movl %esi, %r14d
movl %edx, %esi
callq 0x3c2e
movq %rax, %rbx
movl (%rax), %ecx
testb $0x1, %cl
jne 0x2659
movl 0x7732(%rip), %eax      # 0x9d80
jmp 0x2695
leaq 0x76d9(%rip), %rbx      # 0x9d30
jmp 0x26d0
movl 0x7721(%rip), %eax      # 0x9d80
cmpl %r14d, 0xc(%rbx)
je 0x2695
testw $0x14a, %cx             # imm = 0x14A
setne %cl
cmpl $0x2, %eax
sete %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x2695
movq %rbx, %rsi
addq $0x4, %rsi
leaq 0x74b8(%rip), %rdi      # 0x9b40
movl %r15d, %edx
callq 0x3ea0
incl 0x14(%rbx)
jmp 0x26d0
cmpl $0x2, %eax
jne 0x26c3
cmpb $0x0, 0x76c8(%rip)      # 0x9d69
je 0x26c3
movslq 0x10(%rbx), %rax
testq %rax, %rax
js 0x26c3
movl 0x9aaa(%rip), %ecx      # 0xc15c
movq 0x77ff(%rip), %rdx      # 0x9eb8
movl %ecx, (%rdx,%rax,4)
movslq 0x10(%rbx), %rax
movl %ecx, (%rdx,%rax,4)
andl $0x3ffff, %r14d         # imm = 0x3FFFF
movl %r14d, 0xc(%rbx)
movl %ebp, (%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: onePass
void onePass() {
    int     ix;

    clc = 4;				/* Default location is 4 */
    start_addr = 0;			/* No starting address. */
    nconst = 0;				/* No constant blocks seen */
    nvars = 0;				/* No variables seen */

    while (curmacro) {			/* pop macro stack */
	struct macinv *mp;

	mp = curmacro->prev;
	free(curmacro);
	curmacro = mp;
    }

    for( ix = 0; ix < mac_count; ix++) {
	if (mac_defs[ix])
	    free( mac_defs[ix] );
	mac_defs[ix] = NULL;
    }
    mac_count = 0;			/* No macros defined. */

    listed = TRUE;
    lineno = 0;
    list_pageno = 0;
    list_lineno = 0;
    list_title_set = FALSE;
    page_lineno = LIST_LINES_PER_PAGE;	/* Force top of page for new titles. */
    radix = 8;				/* Initial radix is octal (base 8). */

    /* Now open the first input file. */
    end_of_input = FALSE;
    filix_curr = filix_start;		/* Initialize pointer to input files. */
    if(( infile = fopen( save_argv[filix_curr], "r" )) == NULL ) {
	fprintf( stderr, "%s: cannot open \"%s\"\n", save_argv[0],
		save_argv[filix_curr] );
	exit( -1 );
    }

    for (;;) {
	readLine();
	if (end_of_input) {
	    eob();
	    fclose( infile );
	    return;
	}
	processLine();
    } /* forever */
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
andl $0x0, 0x9709(%rip)      # 0xc148
movl $0x4, 0x966b(%rip)      # 0xc0b4
andl $0x0, 0x96fc(%rip)      # 0xc14c
andl $0x0, 0x96f9(%rip)      # 0xc150
movq 0x9662(%rip), %rdi      # 0xc0c0
testq %rdi, %rdi
je 0x2a78
movq 0x78(%rdi), %rbx
callq 0x2030
movq %rbx, 0x964d(%rip)      # 0xc0c0
movq %rbx, %rdi
jmp 0x2a5e
leaq 0x75d1(%rip), %rbx      # 0xa050
xorl %r14d, %r14d
movslq 0x96cb(%rip), %rax      # 0xc154
cmpq %rax, %r14
jge 0x2aa3
movq (%rbx), %rdi
callq 0x2030
andq $0x0, (%rbx)
incq %r14
addq $0x8, %rbx
jmp 0x2a82
andl $0x0, 0x96aa(%rip)      # 0xc154
andl $0x0, 0x96ab(%rip)      # 0xc15c
movl $0x1, 0x969d(%rip)      # 0xc158
andl $0x0, 0x969e(%rip)      # 0xc160
andl $0x0, 0x969b(%rip)      # 0xc164
xorl %eax, %eax
movb %al, 0x95f7(%rip)       # 0xc0c8
movl $0x3c, 0x968d(%rip)     # 0xc168
movl $0x8, 0x965b(%rip)      # 0xc140
movb %al, 0x9645(%rip)       # 0xc130
movslq 0x73d6(%rip), %rax      # 0x9ec8
movl %eax, 0x9674(%rip)      # 0xc16c
movq 0x7259(%rip), %rcx      # 0x9d58
movq (%rcx,%rax,8), %rdi
leaq 0x3602(%rip), %rsi      # 0x610c
callq 0x2140
movq %rax, 0x73aa(%rip)      # 0x9ec0
testq %rax, %rax
je 0x2b43
callq 0x4379
cmpb $0x0, 0x9609(%rip)      # 0xc130
jne 0x2b30
callq 0x36d8
jmp 0x2b1b
movq 0x7389(%rip), %rdi      # 0x9ec0
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2080
movq 0x64ae(%rip), %rax      # 0x8ff8
movq (%rax), %rdi
movq 0x7204(%rip), %rax      # 0x9d58
movq (%rax), %rdx
movslq 0x960e(%rip), %rcx      # 0xc16c
movq (%rax,%rcx,8), %rcx
leaq 0x3b7a(%rip), %rsi      # 0x66e3
xorl %eax, %eax
callq 0x2110
pushq $-0x1
popq %rdi
callq 0x2170
// File: /workspace/github_c_makefile_star2_O2/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: punchLeader
void punchLeader( WORD32 count )
{
  WORD32  ix;

  /* If value is zero, set to the default of 2 feet of leader. */
  count = ( count == 0 ) ? 240 : count;

  if( objectfile != NULL )
  {
    for( ix = 0; ix < count; ix++ )
    {
      fputc( 0, objectfile );
    }
  }
}

// Assembly:
cmpq $0x0, 0x7290(%rip)      # 0x9e10
je 0x2ba8
pushq %rbx
xorl %eax, %eax
testl %edi, %edi
cmovlel %eax, %edi
movl $0xf0, %ebx
cmovnel %edi, %ebx
subl $0x1, %ebx
jb 0x2ba7
movq 0x7272(%rip), %rsi      # 0x9e10
xorl %edi, %edi
callq 0x20c0
jmp 0x2b92
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: punchLoader
void
punchLoader() {
    int i;

    if (noinput)
	return;

    for (i = 0; i < DIM(loader); i++)
	punchLocObjectRIM(LOADERBASE+i, loader[i]);
    punchTriplet( JMP | LOADERBASE );
}

// Assembly:
cmpl $0x0, 0x71b4(%rip)      # 0x9d64
je 0x2bb3
retq
pushq %r15
pushq %r14
pushq %rbx
movl $0xfe9, %ebx            # imm = 0xFE9
xorl %r14d, %r14d
leaq 0x6e19(%rip), %r15      # 0x99e0
cmpq $0x54, %r14
je 0x2be0
movl (%r14,%r15), %esi
movl %ebx, %edi
callq 0x4ffc
incl %ebx
addq $0x4, %r14
jmp 0x2bc7
movl $0x30fe9, %edi          # imm = 0x30FE9
popq %rbx
popq %r14
popq %r15
jmp 0x4f56
// File: /workspace/github_c_makefile_star2_O2/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: constants
void
constants(void) {
    int i;

    /* XXX illegal inside macro (curmacro != NULL) */

    if (pass == 1) {
	lit_loc[nconst] = clc;

	/* just use addition?! */
	for (i = 0; i < lit_count[nconst]; i++)
	    incrementClc();

	nconst++;
	return;
    }

    /* pass 2: */
    /* XXX complain if clc != lit_base[nconst]? */

    for (i = 0; i < lit_count[nconst]; i++) {
	if (i < nlit)
	    punchOutObject( clc, litter[i] & 0777777); /* punch it! */
	incrementClc();
    }

    nconst++;
    nlit = 0;				/* litter[] now empty */
}

// Assembly:
cmpl $0x1, 0x718a(%rip)      # 0x9d80
jne 0x2c35
movl 0x94b6(%rip), %ecx      # 0xc0b4
movslq 0x9547(%rip), %rax      # 0xc14c
leaq 0xa784(%rip), %rdx      # 0xd390
movl %ecx, (%rdx,%rax,4)
leaq 0x97aa(%rip), %rdx      # 0xc3c0
movl (%rdx,%rax,4), %esi
xorl %edx, %edx
testl %esi, %esi
cmovgl %esi, %edx
subl $0x1, %edx
jb 0x2ca2
incl %ecx
andl $0xfff, %ecx            # imm = 0xFFF
movl %ecx, 0x9481(%rip)      # 0xc0b4
jmp 0x2c20
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
leaq 0x97ad(%rip), %rbx      # 0xc3f0
movl 0x9503(%rip), %eax      # 0xc14c
xorl %r14d, %r14d
leaq 0x976d(%rip), %r15      # 0xc3c0
movl $0x3ffff, %ebp          # imm = 0x3FFFF
movslq %eax, %rcx
movslq (%r15,%rcx,4), %rcx
cmpq %rcx, %r14
jge 0x2cab
movslq 0x7245(%rip), %rcx      # 0x9eb0
movl 0x9443(%rip), %edi      # 0xc0b4
cmpq %rcx, %r14
jge 0x2c8b
movl (%rbx), %esi
andl %ebp, %esi
callq 0x433c
movl 0x94c7(%rip), %eax      # 0xc14c
movl 0x9429(%rip), %edi      # 0xc0b4
incl %edi
andl $0xfff, %edi            # imm = 0xFFF
movl %edi, 0x941b(%rip)      # 0xc0b4
incq %r14
addq $0x4, %rbx
jmp 0x2c58
incl %eax
movl %eax, 0x94a2(%rip)      # 0xc14c
retq
incl %eax
movl %eax, 0x9499(%rip)      # 0xc14c
andl $0x0, 0x71f6(%rip)      # 0x9eb0
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: printSymbolTable
void printSymbolTable()
{
    int    ix;
    int    symbol_lines;
    SYM_T *sym;
    char mark;

    symbol_lines = 0;
    for (ix = 0, sym = symtab; ix < symbol_top; ix++, sym++) {
	if (M_FIXED(sym->type) || M_PSEUDO(sym->type) ||
	    M_MACRO(sym->type) || M_EPSEUDO(sym->type))
	    continue;

	if (symbol_lines == 0) {
	    topOfForm( list_title, s_symtable );
	    symbol_lines = LIST_LINES_PER_PAGE;
	}

	switch( sym->type & ( DEFINED | REDEFINED )) {
	case UNDEFINED:
	    mark = '?';
	    break;

	case REDEFINED:
	    mark = '#';
	    break;

	default:
	    mark = ' ';
	    break;
	}
	fprintf( listfile, "%c%-6.6s %6.6o\n", mark, sym->name, sym->val );
	symbol_lines--;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x7071(%rip), %r12      # 0x9d48
movl 0x7073(%rip), %eax      # 0x9d50
pushq $0x3c
popq %r14
pushq $0x3f
popq %r13
leaq 0x3b03(%rip), %r15      # 0x67ef
xorl %ebx, %ebx
xorl %ebp, %ebp
cmpl %eax, %ebx
jge 0x2d78
movl (%r12), %ecx
movl %ecx, %edx
andl $0x2, %edx
shrl %edx
movl %ecx, %esi
notl %esi
testw $0x101, %si             # imm = 0x101
sete %sil
orb %dl, %sil
jne 0x2d6d
testl %ebp, %ebp
jne 0x2d33
leaq 0x93b0(%rip), %rdi      # 0xc0d0
leaq 0x6d2b(%rip), %rsi      # 0x9a52
callq 0x4d45
movl (%r12), %ecx
movl %r14d, %ebp
andl $0x11, %ecx
xorl %eax, %eax
cmpl $0x11, %ecx
sete %al
leal (%rax,%rax,2), %edx
addl $0x20, %edx
testl %ecx, %ecx
cmovel %r13d, %edx
movq 0x714f(%rip), %rdi      # 0x9ea0
leaq 0x4(%r12), %rcx
movl 0xc(%r12), %r8d
movq %r15, %rsi
xorl %eax, %eax
callq 0x2110
decl %ebp
movl 0x6fe3(%rip), %eax      # 0x9d50
incl %ebx
addq $0x18, %r12
jmp 0x2cf0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: printPermanentSymbolTable
void printPermanentSymbolTable()
{
    int     ix;
    FILE   *permfile;

    if(( permfile = fopen( permpathname, "w" )) == NULL )
    {
	exit( 2 );
    }

    fprintf( permfile, "/ PERMANENT SYMBOL TABLE\n/\n" );
    fprintf( permfile, "        expunge\n/\n" );

    for( ix = 0; ix < symbol_top; ix++ )
    {
	int type = symtab[ix].type;
	if( M_FIXED(type) && !M_PSEUDO(type) && !M_EPSEUDO(type) )
	    fprintf( permfile, "\t%s=%o\n",
		     symtab[ix].name, symtab[ix].val );
    }
    fclose( permfile );
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
leaq 0x713a(%rip), %rdi      # 0x9ed0
leaq 0x3769(%rip), %rsi      # 0x6506
callq 0x2140
testq %rax, %rax
je 0x2e55
movq %rax, %rbx
leaq 0x3a4a(%rip), %rdi      # 0x67ff
pushq $0x1b
popq %rsi
pushq $0x1
popq %r14
movq %r14, %rdx
movq %rax, %rcx
callq 0x2180
leaq 0x3a4d(%rip), %rdi      # 0x681b
pushq $0x12
popq %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x2180
movl 0x6f6e(%rip), %eax      # 0x9d50
leaq 0x3a45(%rip), %r14      # 0x682e
xorl %r15d, %r15d
xorl %r12d, %r12d
movslq %eax, %rcx
cmpq %rcx, %r12
jge 0x2e42
movq 0x6f4a(%rip), %rcx      # 0x9d48
movl (%rcx,%r15), %edx
movl %edx, %esi
notl %esi
testb $-0x7d, %sil
je 0x2e39
movl %edx, %esi
andl $0x2, %esi
je 0x2e39
andl $0x43, %edx
cmpl $0x43, %edx
je 0x2e39
leaq (%rcx,%r15), %rdx
addq $0x4, %rdx
movl 0x8(%rdx), %ecx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x2110
movl 0x6f17(%rip), %eax      # 0x9d50
incq %r12
addq $0x18, %r15
jmp 0x2def
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2080
pushq $0x2
popq %rdi
callq 0x2170
// File: /workspace/github_c_makefile_star2_O2/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: dump_symbols
void
dump_symbols(void) {
    int ix;
    WORD32 addr;

    objectfile = fopen( sympathname, "wb" );
    if (!objectfile) {
	perror(sympathname);
	return;
    }

    punchLeader(0);
    punchLoader();
    punchLeader(5);

    /* XXX fudge addr -- get count, and subtract 2N from 07750? */
    addr = 05000;

    for( ix = 0; ix < symbol_top; ix++ ) {
	int i, type;
	WORD32 name;

	type = symtab[ix].type;
	if (M_FIXED(type) || M_PSEUDO(type) || M_MACRO(type))
	    continue;

	name = 0;
	for (i = 0; i < 3; i++) {
	    char c;

	    c = symtab[ix].name[i];
	    /* XXX leave on NUL? */

	    c = ascii_to_fiodec[tolower(c) & 0177];
	    /* XXX check for BAD entries? */

	    /* XXX OR in val<<(3-i)*6?? */
	    name <<= 6;
	    name |= c & CHARBITS;
	}
	punchLocObject(addr++, permute(name));
	punchLocObject(addr++, symtab[ix].val);
    }
    flushLoader();
    punchTriplet( JMP );		/* ??? */
    punchLeader(0);
    fclose(objectfile);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x6ef3(%rip), %rdi      # 0x9f50
leaq 0x349f(%rip), %rsi      # 0x6503
callq 0x2140
movq %rax, 0x6da0(%rip)      # 0x9e10
testq %rax, %rax
je 0x317d
xorl %r14d, %r14d
xorl %edi, %edi
callq 0x2b78
callq 0x2ba9
pushq $0x5
popq %rdi
callq 0x2b78
movl $0xa00, %ebx            # imm = 0xA00
pushq $0x4
popq %r15
movl 0x6cb1(%rip), %eax      # 0x9d50
leaq 0x6bba(%rip), %r13      # 0x9c60
movslq %eax, %rcx
cmpq %rcx, %r14
jge 0x314d
movq 0x6c8f(%rip), %rbp      # 0x9d48
imulq $0x18, %r14, %r12
movl (%rbp,%r12), %ecx
movl %ecx, %edx
andl $0x2, %edx
shrl %edx
notl %ecx
testw $0x101, %cx             # imm = 0x101
sete %cl
orb %dl, %cl
jne 0x3141
callq 0x21a0
movq (%rax), %rcx
addq %r15, %rbp
xorl %eax, %eax
pushq $-0x3
popq %rdx
testq %rdx, %rdx
je 0x310a
movsbq 0x3(%rbp,%rdx), %rsi
movl (%rcx,%rsi,4), %esi
andl $0x7f, %esi
movzbl (%rsi,%r13), %esi
shll $0x6, %eax
andl $0x3f, %esi
orl %esi, %eax
incq %rdx
jmp 0x30e7
leal 0x1(%rbx), %ebp
leal (%rax,%rax), %esi
andl $0x20820, %esi          # imm = 0x20820
xorl %eax, %esi
xorl $0x20000, %esi          # imm = 0x20000
movl %ebx, %edi
callq 0x4f8e
addl $0x2, %ebx
movq 0x6c19(%rip), %rax      # 0x9d48
movl 0xc(%rax,%r12), %esi
movl %ebp, %edi
callq 0x4f8e
movl 0x6c0f(%rip), %eax      # 0x9d50
incq %r14
addq $0x18, %r15
jmp 0x30a6
callq 0x5012
movl $0x30000, %edi          # imm = 0x30000
callq 0x4f56
xorl %edi, %edi
callq 0x2b78
movq 0x6ca6(%rip), %rdi      # 0x9e10
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2080
leaq 0x6dcc(%rip), %rdi      # 0x9f50
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2150
// File: /workspace/github_c_makefile_star2_O2/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: getw
WORD32
getw(FILE *f)
{
    int i, c;
    WORD32 w;

    w = 0;
    for (i = 0; i < 3;) {
	c = getc(f);
	if (c == -1)
	    return -1;
	if (c & 0200) {			/* ignore if ch8 not punched */
	    w <<= 6;
	    w |= c & 077;
	    i++;
	}
    }
    return w;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
xorl %r15d, %r15d
pushq $-0x1
popq %rbp
xorl %ebx, %ebx
cmpl $0x2, %r15d
ja 0x31df
movq %r14, %rdi
callq 0x2190
cmpl $-0x1, %eax
je 0x31dd
movl %eax, %ecx
andl $0x80, %ecx
movl %ebx, %edx
shll $0x6, %edx
andl $0x3f, %eax
orl %edx, %eax
movl %ecx, %edx
shrl $0x7, %edx
addl %edx, %r15d
testl %ecx, %ecx
cmovnel %eax, %ebx
jmp 0x31a9
movl %ebp, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: addsym
void
addsym(WORD32 sym, WORD32 val)
{
    char name[4];

    sym = permute(sym);
    name[0] = fiodec_to_ascii[(sym >>12) & 077];
    name[1] = fiodec_to_ascii[(sym >> 6) & 077];
    name[2] = fiodec_to_ascii[sym & 077];
    name[3] = '\0';
    defineSymbol( name, val, LABEL, 0);
}

// Assembly:
pushq %rax
leal (%rdi,%rdi), %eax
andl $0x20820, %eax          # imm = 0x20820
xorl %edi, %eax
movl %eax, %ecx
shrl $0xc, %ecx
andl $0x3f, %ecx
xorq $0x20, %rcx
leaq 0x6ac6(%rip), %rdx      # 0x9ce0
movb (%rcx,%rdx), %cl
leaq 0x4(%rsp), %rdi
movb %cl, (%rdi)
movl %eax, %ecx
shrl $0x6, %ecx
andl $0x3f, %ecx
movb (%rcx,%rdx), %cl
movb %cl, 0x1(%rdi)
andl $0x3f, %eax
movb (%rax,%rdx), %al
movb %al, 0x2(%rdi)
movb $0x0, 0x3(%rdi)
pushq $0x9
popq %rdx
xorl %ecx, %ecx
callq 0x2623
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: next
void
next(int op) {
    char c;

    /* Save start column of previous lexeme for diagnostic messages. */
    lexstartprev = lexstart;
    lextermprev = lexterm;

    c = line[cc];
    if (c == ' ') {
	/* eat spaces */
	do {
	    c = line[++cc];
	} while (c == ' ');
	if (op)				/* looking for operators? */
	    cc--;			/* return one */
    }

    overbar = 0;
    lexstart = cc;
    c = line[cc];
    if( isalnum(c) || ISOVERBAR(c)) {
	if (ISOVERBAR(c))
	    overbar = 1;
	do {
	    c = line[++cc];
	    if (ISOVERBAR(c))
		overbar = 1;
	} while (isalnum(c) || ISOVERBAR(c));
    }
    else if(!ISDONE(c) || c == '\t')	/* not end of line, or comment */
	cc++;				/* advance past all punctuation */
    lexterm = cc;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl 0x8b2c(%rip), %eax      # 0xc0b0
movl %eax, 0x8bba(%rip)      # 0xc144
movl 0x8bac(%rip), %eax      # 0xc13c
movl %eax, 0x9e2a(%rip)      # 0xd3c0
movl 0x8b1c(%rip), %ebx      # 0xc0b8
movslq %ebx, %rax
leaq 0x8aaa(%rip), %r14      # 0xc050
cmpb $0x20, (%rax,%r14)
jne 0x35d0
addq %r14, %rax
incq %rax
incl %ebx
cmpb $0x20, (%rax)
leaq 0x1(%rax), %rax
je 0x35b3
movl %ebx, 0x8af4(%rip)      # 0xc0b8
testl %edi, %edi
je 0x35d0
decl %ebx
movl %ebx, 0x8ae8(%rip)      # 0xc0b8
andl $0x0, 0x9de1(%rip)      # 0xd3b8
movl %ebx, 0x8ad3(%rip)      # 0xc0b0
movslq %ebx, %r15
movsbq (%r15,%r14), %r13
movzbl %r13b, %r12d
callq 0x21b0
movq (%rax), %rax
movzwl (%rax,%r13,2), %ecx
testb $0x8, %cl
jne 0x3643
cmpl $0x5c, %r12d
je 0x364f
cmpl $0x7e, %r12d
je 0x364f
cmpl $0x2f, %r12d
setne %al
testl %r12d, %r12d
setne %cl
leal -0xb(%r12), %edx
cmpb $-0x2, %dl
setb %dl
cmpl $0x9, %r12d
je 0x362b
andb %cl, %al
andb %dl, %al
je 0x3633
incl %ebx
movl %ebx, 0x8a85(%rip)      # 0xc0b8
movl %ebx, 0x8b03(%rip)      # 0xc13c
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
cmpl $0x7e, %r12d
je 0x364f
cmpl $0x5c, %r12d
jne 0x3659
movl $0x1, 0x9d5f(%rip)      # 0xd3b8
leal 0x1(%r15), %ebx
leaq (%r15,%r14), %rcx
incq %rcx
movzbl (%rcx), %edx
cmpl $0x7e, %edx
je 0x3671
cmpl $0x5c, %edx
jne 0x367b
movl $0x1, 0x9d3d(%rip)      # 0xd3b8
movsbq %dl, %rsi
testb $0x8, (%rax,%rsi,2)
jne 0x3693
cmpb $0x5c, %dl
je 0x3693
movzbl %sil, %edx
cmpl $0x7e, %edx
jne 0x362d
incl %ebx
incq %rcx
jmp 0x3664
// File: /workspace/github_c_makefile_star2_O2/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: getExprs
WORD32 getExprs()
{
    SYM_T sym;

    sym = getExpr();
    if (sym.type == PSEUDO)
	errorMessage( &value_required, lexstart ); /* XXX wrong pointer? */

    return sym.val & 0777777;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsp, %r14
movq %r14, %rdi
callq 0x41c3
movl 0xc(%r14), %ebx
cmpl $0x43, (%r14)
jne 0x36c8
movl 0x89f4(%rip), %esi      # 0xc0b0
leaq 0x648d(%rip), %rdi      # 0x9b50
callq 0x45ba
andl $0x3ffff, %ebx          # imm = 0x3FFFF
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: printLine
void printLine( char *line, WORD32 loc, WORD32 val, LINESTYLE_T linestyle )
{
  if( listfile == NULL )
  {
    save_error_count = 0;
    return;
  }

  printPageBreak();

  list_lineno++;
  page_lineno++;
  switch( linestyle )
  {
  default:
  case LINE:
    fprintf( listfile, "%5d                   ", lineno );
    fputs( line, listfile );
    listed = TRUE;
    break;

  case LINE_VAL:
    if( !listed )
    {
      fprintf( listfile, "%5d       %6.6o      ", lineno, val );
      fputs( line, listfile );
      listed = TRUE;
    }
    else
    {
      fprintf( listfile, "            %6.6o\n", val );
    }
    break;

  case LINE_LOC:
    if( !listed )
    {
      fprintf( listfile, "%5d %5.5o             ", lineno, loc );
      fputs( line, listfile );
      listed = TRUE;
    }
    else
    {
      fprintf( listfile, "      %5.5o\n", loc );
    }
    break;

  case LINE_LOC_VAL:
    if( !listed )
    {
      fprintf( listfile, "%5d %5.5o %6.6o      ", lineno, loc, val );
      fputs( line, listfile );
      listed = TRUE;
    }
    else
    {
      fprintf( listfile, "      %5.5o %6.6o\n", loc, val );
    }
    break;

  case LOC_VAL:
    fprintf( listfile, "      %5.5o %6.6o\n", loc, val );
    break;
  }
  printErrorMessages();
}

// Assembly:
cmpq $0x0, 0x63b8(%rip)      # 0x9ea0
je 0x3b49
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %r15d
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
callq 0x4e35
incl 0x865d(%rip)            # 0xc164
incl 0x865b(%rip)            # 0xc168
decl %r15d
cmpl $0x3, %r15d
ja 0x3ba5
leaq 0x2513(%rip), %rax      # 0x6034
movslq (%rax,%r15,4), %rcx
addq %rax, %rcx
jmpq *%rcx
cmpl $0x0, 0x8627(%rip)      # 0xc158
movq 0x6368(%rip), %rdi      # 0x9ea0
je 0x3bd4
leaq 0x2be1(%rip), %rsi      # 0x6726
movl %ebp, %edx
jmp 0x3b74
andl $0x0, 0x6364(%rip)      # 0x9eb4
retq
movq 0x6348(%rip), %rdi      # 0x9ea0
jmp 0x3b90
cmpl $0x0, 0x85f7(%rip)      # 0xc158
movq 0x6338(%rip), %rdi      # 0x9ea0
je 0x3bc2
leaq 0x2bdf(%rip), %rsi      # 0x6750
movl %r14d, %edx
xorl %eax, %eax
callq 0x2110
jmp 0x3c1f
cmpl $0x0, 0x85d1(%rip)      # 0xc158
movq 0x6312(%rip), %rdi      # 0x9ea0
je 0x3bec
leaq 0x2bdc(%rip), %rsi      # 0x6773
movl %r14d, %edx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x2110
jmp 0x3c1f
movq 0x62f4(%rip), %rdi      # 0x9ea0
movl 0x85aa(%rip), %edx      # 0xc15c
leaq 0x2b40(%rip), %rsi      # 0x66f9
xorl %eax, %eax
callq 0x2110
jmp 0x3c06
movl 0x8594(%rip), %edx      # 0xc15c
leaq 0x2b6a(%rip), %rsi      # 0x6739
movl %r14d, %ecx
jmp 0x3be3
movl 0x8582(%rip), %edx      # 0xc15c
leaq 0x2b2f(%rip), %rsi      # 0x6710
movl %ebp, %ecx
xorl %eax, %eax
callq 0x2110
jmp 0x3c06
movl 0x856a(%rip), %edx      # 0xc15c
leaq 0x2b64(%rip), %rsi      # 0x675d
movl %r14d, %ecx
movl %ebp, %r8d
xorl %eax, %eax
callq 0x2110
movq 0x6293(%rip), %rsi      # 0x9ea0
movq %rbx, %rdi
callq 0x20b0
movl $0x1, 0x8539(%rip)      # 0xc158
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x4e4d
// File: /workspace/github_c_makefile_star2_O2/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: lexemeToName
char *lexemeToName( char *name, WORD32 from, WORD32 term )
{
    int to;

    to = 0;
    while( from < term && to < SYMLEN-1) {
	char c = line[from++];
	if (ISOVERBAR(c))
	    continue;
	name[to++] = c;
    }
    name[to] = '\0';

    return( name );
}

// Assembly:
movq %rdi, %rax
movslq %esi, %rcx
movslq %edx, %rdx
xorl %esi, %esi
leaq 0x81e1(%rip), %rdi      # 0xc050
movl %esi, %r8d
cmpq %rdx, %rcx
jge 0x3e9a
cmpl $0x5, %esi
ja 0x3e9a
movzbl (%rcx,%rdi), %r9d
cmpl $0x7e, %r9d
je 0x3e8d
cmpl $0x5c, %r9d
jne 0x3e92
incq %rcx
jmp 0x3e6f
incl %esi
movb %r9b, (%rax,%r8)
jmp 0x3e8d
movb $0x0, (%rax,%r8)
retq
// File: /workspace/github_c_makefile_star2_O2/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: evalSymbol
SYM_T *evalSymbol()
{
    char   name[SYMLEN];
    SYM_T *sym;

    sym = lookup( lexemeToName( name, lexstart, lexterm ), UNDEFINED);

    sym->xref_count++;			/* Count the number of references to symbol. */

    if( xref && pass == 2 && sym->xref_index >= 0)
    {
	/* Put the line number in the concordance table. */
	xreftab[sym->xref_index + sym->xref_count] = lineno;
    }

    return( sym );
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movl 0x80f1(%rip), %esi      # 0xc0b0
movl 0x8177(%rip), %edx      # 0xc13c
leaq 0x9(%rsp), %rbx
movq %rbx, %rdi
callq 0x3e5d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3c2e
movslq 0x14(%rax), %rcx
incq %rcx
movl %ecx, 0x14(%rax)
cmpb $0x0, 0x5d7c(%rip)      # 0x9d69
je 0x4014
cmpl $0x2, 0x5d8a(%rip)      # 0x9d80
jne 0x4014
movslq 0x10(%rax), %rdx
testq %rdx, %rdx
js 0x4014
movl 0x8155(%rip), %esi      # 0xc15c
movq 0x5eaa(%rip), %rdi      # 0x9eb8
addq %rcx, %rdx
movl %esi, (%rdi,%rdx,4)
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: eval
SYM_T eval() {
    SYM_T sym;

    switch (line[lexstart]) {
    case '-':				/* unary - */
	next(1);
	sym = eval2();			/* skip op */
	sym.val ^= 0777777;
	break;
    case '+':				/* unary + */
	next(1);			/* skip op */
	/* fall */
    default:
	sym = eval2();
    }
    return sym;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movslq 0x7a6a(%rip), %rax      # 0xc0b0
leaq 0x7a03(%rip), %rcx      # 0xc050
movzbl (%rax,%rcx), %eax
cmpl $0x2b, %eax
je 0x4674
cmpl $0x2d, %eax
jne 0x467c
pushq $0x1
popq %rdi
callq 0x3575
movq %rbx, %rdi
callq 0x49a0
xorl $0x3ffff, 0xc(%rbx)     # imm = 0x3FFFF
jmp 0x4684
pushq $0x1
popq %rdi
callq 0x3575
movq %rbx, %rdi
callq 0x49a0
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: moveToEndOfLine
void moveToEndOfLine()
{
    while( !ISEND( line[cc] )) cc++;	/* XXX wrong! will stop on a tab! */
    lexstart = cc;
    lexterm = cc;
    lexstartprev = lexstart;
}

// Assembly:
movslq 0x7a28(%rip), %rax      # 0xc0b8
leaq 0x79b9(%rip), %rcx      # 0xc050
addq %rax, %rcx
movl $0x601, %edx            # imm = 0x601
movzbl (%rcx), %esi
cmpl $0xa, %esi
ja 0x46ac
btl %esi, %edx
jb 0x46b9
incl %eax
movl %eax, 0x7a04(%rip)      # 0xc0b8
incq %rcx
jmp 0x469f
movl %eax, 0x79f1(%rip)      # 0xc0b0
movl %eax, 0x7a77(%rip)      # 0xc13c
movl %eax, 0x7a79(%rip)      # 0xc144
retq