LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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
movl $0x2, %edi
callq 0x2280
movq 0x8(%rbx), %rax
movq %rax, -0x30(%rbp)
leaq -0x40(%rbp), %r14
leaq 0x2fa71(%rip), %r12     # 0x32020
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
movq $0xbebc200, -0x38(%rbp) # imm = 0xBEBC200
movq %r14, %rdi
movq %r14, %rsi
callq 0x2170
callq 0x3be0
testq %rax, %rax
je 0x267e
movq %rax, %rbx
movq %rax, %rdi
movq %r12, %rsi
callq 0x45b0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3d90
movq %rbx, %rdi
xorl %esi, %esi
leaq 0xc8(%rip), %rdx        # 0x26c4
callq 0x3050
movq %rbx, %rdi
leaq 0x2fa21(%rip), %rsi     # 0x3202c
callq 0x46d0
movq %rbx, %rdi
movl $0x1, %esi
callq 0x42a0
movq %rbx, %rdi
movq -0x30(%rbp), %rsi
callq 0x4120
testl %eax, %eax
js 0x2695
movq %rbx, %rdi
xorl %esi, %esi
callq 0x296b0
movslq %eax, %rsi
movl $0x1, %edi
callq 0x2260
testq %rax, %rax
je 0x268c
movq %rbx, %rdi
movq %rax, %rsi
callq 0x296b0
testl %eax, %eax
js 0x268c
movq %rbx, %rdi
leaq 0x2f9cd(%rip), %rsi     # 0x3202f
callq 0x1fb70
movq %rax, %r13
movq %rbx, %rdi
leaq 0x2f9c8(%rip), %rsi     # 0x3203c
callq 0x1fb70
movq %rax, %r15
jmp 0x26a9
leaq 0x2f9d0(%rip), %rdi     # 0x32055
callq 0x20e0
jmp 0x26a9
leaq 0x2f9ea(%rip), %rdi     # 0x3207d
jmp 0x269c
leaq 0x2fa16(%rip), %rdi     # 0x320b2
callq 0x20e0
movq %rbx, %rdi
callq 0x3c70
callq *%r13
movq %rax, %rdi
callq 0x20e0
callq *%r15
movq %rax, %rdi
callq 0x20e0
jmp 0x25af
// File: /workspace/github_c_makefile_star2_O1/ohkimur[P]the-c-programming-language-2nd-edition-solutions/chapter_5/exercise_5_04/strend.c
// Function: strend
int strend(char *s, char *t)
{
  // Determine the lengths of the strings.
  size_t s_length = strlen(s);
  size_t t_length = strlen(t);

  // Move the s & t pointer to the end of the corresponding strings.
  s += s_length - 1;
  t += t_length - 1;

  // Check backwards if each character from string t occurs in the corresonding
  // location from the string s.
  while (*s-- == *t--)
    --t_length;

  return !t_length;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x1040
movq %rax, %r15
movq %rbx, %rdi
callq 0x1040
leaq (%rax,%rbx), %rcx
decq %rcx
leaq (%r15,%r14), %rsi
decq %rsi
xorl %edx, %edx
movq %rdx, %rdi
movb (%rsi,%rdx), %r8b
decq %rdx
cmpb (%rcx,%rdi), %r8b
je 0x11d3
notq %rax
xorl %ecx, %ecx
cmpq %rdx, %rax
sete %cl
movl %ecx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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
movl $0x1, %edi
callq 0x1060
testl %ebx, %ebx
leaq 0xe8b(%rip), %rax       # 0x203e
leaq 0xe75(%rip), %rdi       # 0x202f
cmoveq %rax, %rdi
callq 0x1030
callq 0x1040
leaq 0xe42(%rip), %rdi       # 0x2011
movl %eax, %esi
xorl %eax, %eax
callq 0x1050
leaq 0xe6d(%rip), %rdi       # 0x204c
callq 0x1030
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/aes128poetv2aes4/ref/poet.c
// Function: keysetup_encrypt_only
void keysetup_encrypt_only(poet_ctx_t *ctx, const unsigned char key[KEYLEN_BITS])
{
    block ctr;
    AES_KEY aes_enc;

    memset(ctx->tau, 0, BLOCKLEN);
    memset(ctr, 0, BLOCKLEN);

    //  Generate block cipher key 
    aes_expand_enc_key(key, KEYLEN_BITS, &aes_enc);
    aes_encrypt(ctr, ctx->k, &aes_enc);

    aes_expand_enc_key(ctx->k, KEYLEN_BITS, &(ctx->aes_enc));

    //  Generate header key 
    ctr[BLOCKLEN - 1] = 1; 
    aes_encrypt(ctr, ctx->l, &aes_enc);

    //  Generate e-AXU hash-function keys 
    ctr[BLOCKLEN - 1] = 2; 
    aes_encrypt(ctr, ctx->k_axu, &aes_enc);
    aes_expand_enc_key(ctx->k_axu, KEYLEN_BITS, &(ctx->aes_axu));
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdi, %rbx
vxorps %xmm0, %xmm0, %xmm0
vmovups %xmm0, 0x32c(%rdi)
movq %rsp, %r14
vmovaps %xmm0, (%r14)
leaq 0x14(%rsp), %r15
movq %rsi, %rdi
movl $0x80, %esi
movq %r15, %rdx
callq 0x10d0
leaq 0x2dc(%rbx), %r12
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x1100
movq %r12, %rdi
movl $0x80, %esi
movq %rbx, %rdx
callq 0x10d0
movb $0x1, 0xf(%r14)
leaq 0x2ec(%rbx), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x1100
movb $0x2, 0xf(%r14)
leaq 0x2fc(%rbx), %r12
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x1100
addq $0x1e8, %rbx            # imm = 0x1E8
movq %r12, %rdi
movl $0x80, %esi
movq %rbx, %rdx
callq 0x10d0
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 %rbx
pushq %rax
leaq 0xe9b(%rip), %rdi       # 0x2004
leaq 0xe99(%rip), %rsi       # 0x2009
callq 0x1040
movq %rax, %rbx
leaq 0xe8c(%rip), %rdi       # 0x200b
movl $0x10, %esi
movl $0x1, %edx
movq %rax, %rcx
callq 0x1050
leaq 0xe84(%rip), %rdi       # 0x201c
movl $0xe, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x1050
leaq 0xe7a(%rip), %rdi       # 0x202b
movl $0x12, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x1050
leaq 0xe74(%rip), %rdi       # 0x203e
movl $0x17, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x1050
leaq 0xe73(%rip), %rdi       # 0x2056
movl $0x14, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x1050
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O1/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 0x299c
movl %ecx, %r15d
movl %edx, %ebp
movl %esi, %r14d
movl %edx, %esi
callq 0x4015
movq %rax, %rbx
movl (%rax), %eax
testb $0x1, %al
je 0x2955
cmpl %r14d, 0xc(%rbx)
jne 0x29b1
cmpl $0x2, 0x7424(%rip)      # 0x9d80
jne 0x298d
cmpb $0x0, 0x7404(%rip)      # 0x9d69
je 0x298d
movslq 0x10(%rbx), %rax
testq %rax, %rax
js 0x298d
movl 0x97e6(%rip), %ecx      # 0xc15c
movq 0x753b(%rip), %rdx      # 0x9eb8
movl %ecx, (%rdx,%rax,4)
movl 0x97d6(%rip), %eax      # 0xc15c
movslq 0x10(%rbx), %rcx
movl %eax, (%rdx,%rcx,4)
andl $0x3ffff, %r14d         # imm = 0x3FFFF
movl %r14d, 0xc(%rbx)
movl %ebp, (%rbx)
jmp 0x29a3
leaq 0x738d(%rip), %rbx      # 0x9d30
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
testl $0x14a, %eax            # imm = 0x14A
je 0x2955
cmpl $0x2, 0x73c1(%rip)      # 0x9d80
jne 0x2955
movq %rbx, %rsi
addq $0x4, %rsi
leaq 0x7171(%rip), %rdi      # 0x9b40
movl %r15d, %edx
callq 0x42f3
incl 0x14(%rbx)
jmp 0x29a3
// File: /workspace/github_c_makefile_star2_O1/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
movl $0x4, 0x942f(%rip)      # 0xc0b4
xorl %eax, %eax
movl %eax, 0x94bb(%rip)      # 0xc148
movl %eax, 0x94b9(%rip)      # 0xc14c
movl %eax, 0x94b7(%rip)      # 0xc150
movq 0x9420(%rip), %rdi      # 0xc0c0
testq %rdi, %rdi
je 0x2cbd
movq 0x78(%rdi), %rbx
callq 0x2030
movq %rbx, 0x940b(%rip)      # 0xc0c0
movq %rbx, %rdi
testq %rbx, %rbx
jne 0x2ca5
cmpl $0x0, 0x9490(%rip)      # 0xc154
jle 0x2cf7
leaq 0x7383(%rip), %rbx      # 0xa050
xorl %r14d, %r14d
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2cdd
callq 0x2030
movq $0x0, (%rbx)
incq %r14
movslq 0x9466(%rip), %rax      # 0xc154
addq $0x8, %rbx
cmpq %rax, %r14
jl 0x2cd0
xorl %eax, %eax
movl %eax, 0x9455(%rip)      # 0xc154
movl $0x1, 0x944f(%rip)      # 0xc158
movl %eax, 0x944d(%rip)      # 0xc15c
movl %eax, 0x944b(%rip)      # 0xc160
movl %eax, 0x9449(%rip)      # 0xc164
movb %al, 0x93a7(%rip)       # 0xc0c8
movl $0x3c, 0x943d(%rip)     # 0xc168
movl $0x8, 0x940b(%rip)      # 0xc140
movb %al, 0x93f5(%rip)       # 0xc130
movslq 0x7186(%rip), %rax      # 0x9ec8
movl %eax, 0x9424(%rip)      # 0xc16c
movq 0x7009(%rip), %rcx      # 0x9d58
movq (%rcx,%rax,8), %rdi
leaq 0x33b2(%rip), %rsi      # 0x610c
callq 0x2140
movq %rax, 0x715a(%rip)      # 0x9ec0
testq %rax, %rax
je 0x2d93
callq 0x4883
cmpb $0x0, 0x93b9(%rip)      # 0xc130
jne 0x2d80
callq 0x39c8
jmp 0x2d6b
movq 0x7139(%rip), %rdi      # 0x9ec0
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2080
callq 0x2313
// File: /workspace/github_c_makefile_star2_O1/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:
pushq %rbx
testl %edi, %edi
movl $0xf0, %ebx
cmovnel %edi, %ebx
cmpq $0x0, 0x7065(%rip)      # 0x9e10
sete %al
testl %ebx, %ebx
setle %cl
orb %al, %cl
jne 0x2dc9
movq 0x7052(%rip), %rsi      # 0x9e10
xorl %edi, %edi
callq 0x20c0
decl %ebx
jne 0x2db7
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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, 0x6f92(%rip)      # 0x9d64
je 0x2dd5
retq
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl $0x1afe9, %ebx          # imm = 0x1AFE9
xorl %r14d, %r14d
leaq 0x6bf5(%rip), %r15      # 0x99e0
movl (%r14,%r15), %ebp
movl %ebx, %edi
callq 0x5516
movl %ebp, %edi
callq 0x5516
incl %ebx
addq $0x4, %r14
cmpq $0x54, %r14
jne 0x2deb
movl $0x30fe9, %edi          # imm = 0x30FE9
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x5516
// File: /workspace/github_c_makefile_star2_O1/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, 0x6f5c(%rip)      # 0x9d80
jne 0x2e6c
movl 0x9288(%rip), %ecx      # 0xc0b4
movslq 0x9319(%rip), %rax      # 0xc14c
leaq 0xa556(%rip), %rdx      # 0xd390
movl %ecx, (%rdx,%rax,4)
leaq 0x957c(%rip), %rcx      # 0xc3c0
movl (%rcx,%rax,4), %ecx
testl %ecx, %ecx
jle 0x2e63
movl 0x9263(%rip), %edx      # 0xc0b4
incl %edx
andl $0xfff, %edx            # imm = 0xFFF
decl %ecx
jne 0x2e51
movl %edx, 0x9251(%rip)      # 0xc0b4
incl %eax
movl %eax, 0x92e1(%rip)      # 0xc14c
retq
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movslq 0x92ce(%rip), %rax      # 0xc14c
leaq 0x953b(%rip), %r15      # 0xc3c0
cmpl $0x0, (%r15,%rax,4)
jle 0x2f01
leaq 0x955d(%rip), %r12      # 0xc3f0
xorl %r13d, %r13d
leaq 0x91b3(%rip), %rbx      # 0xc050
movslq 0x700c(%rip), %rax      # 0x9eb0
cmpq %rax, %r13
jge 0x2ed7
movl 0x9205(%rip), %ebp      # 0xc0b4
movl (%r12), %r14d
movl $0x3ffff, %eax          # imm = 0x3FFFF
andl %eax, %r14d
movq %rbx, %rdi
movl %ebp, %esi
movl %r14d, %edx
movl $0x2, %ecx
callq 0x3eb2
movl %ebp, %edi
movl %r14d, %esi
callq 0x5576
movl 0x91d7(%rip), %eax      # 0xc0b4
incl %eax
andl $0xfff, %eax            # imm = 0xFFF
movl %eax, 0x91ca(%rip)      # 0xc0b4
incq %r13
movslq 0x9258(%rip), %rax      # 0xc14c
movslq (%r15,%rax,4), %rcx
addq $0x4, %r12
cmpq %rcx, %r13
jl 0x2e9d
incl %eax
movl %eax, 0x9243(%rip)      # 0xc14c
movl $0x0, 0x6f9d(%rip)      # 0x9eb0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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:
cmpl $0x0, 0x6e27(%rip)      # 0x9d50
jle 0x2fdf
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x6e07(%rip), %r12      # 0x9d48
leaq 0x6b0a(%rip), %r14      # 0x9a52
movl $0x3f, %ebp
leaq 0x389b(%rip), %r15      # 0x67ef
xorl %ebx, %ebx
xorl %r13d, %r13d
movl (%r12), %eax
movl %eax, %ecx
andl $0x2, %ecx
shrl %ecx
notl %eax
testl $0x101, %eax            # imm = 0x101
sete %al
orb %cl, %al
jne 0x2fc1
testl %ebx, %ebx
jne 0x2f8a
leaq 0x9153(%rip), %rdi      # 0xc0d0
movq %r14, %rsi
callq 0x52ec
movl $0x3c, %ebx
movl (%r12), %eax
movl 0xc(%r12), %r8d
andl $0x11, %eax
xorl %ecx, %ecx
cmpl $0x11, %eax
sete %cl
leal (%rcx,%rcx,2), %edx
addl $0x20, %edx
testl %eax, %eax
cmovel %ebp, %edx
movq 0x6ef0(%rip), %rdi      # 0x9ea0
leaq 0x4(%r12), %rcx
movq %r15, %rsi
xorl %eax, %eax
callq 0x2110
decl %ebx
incl %r13d
addq $0x18, %r12
cmpl 0x6d81(%rip), %r13d     # 0x9d50
jl 0x2f59
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x6ee1(%rip), %rdi      # 0x9ed0
leaq 0x3510(%rip), %rsi      # 0x6506
callq 0x2140
testq %rax, %rax
je 0x30b0
movq %rax, %rbx
leaq 0x37f1(%rip), %rdi      # 0x67ff
movl $0x1b, %esi
movl $0x1, %edx
movq %rax, %rcx
callq 0x2180
leaq 0x37f4(%rip), %rdi      # 0x681b
movl $0x12, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x2180
cmpl $0x0, 0x6d10(%rip)      # 0x9d50
jle 0x309d
leaq 0x37e5(%rip), %r14      # 0x682e
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x6cf2(%rip), %rax      # 0x9d48
movl (%rax,%r15), %ecx
movl %ecx, %edx
notl %edx
testb $-0x7d, %dl
je 0x308a
movl %ecx, %edx
andl $0x2, %edx
je 0x308a
andl $0x43, %ecx
cmpl $0x43, %ecx
je 0x308a
leaq (%rax,%r15), %rdx
addq $0x4, %rdx
movl 0x8(%rdx), %ecx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x2110
incq %r12
movslq 0x6cbc(%rip), %rax      # 0x9d50
addq $0x18, %r15
cmpq %rax, %r12
jl 0x304f
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2080
movl $0x2, %edi
callq 0x2170
// File: /workspace/github_c_makefile_star2_O1/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 0x6ca2(%rip), %rdi      # 0x9f50
leaq 0x324e(%rip), %rsi      # 0x6503
callq 0x2140
movq %rax, 0x6b4f(%rip)      # 0x9e10
testq %rax, %rax
je 0x33fc
movl $0xf0, %ebx
movq 0x6b3a(%rip), %rsi      # 0x9e10
xorl %edi, %edi
callq 0x20c0
decl %ebx
jne 0x32cf
callq 0x2dcb
movl $0x5, %edi
callq 0x2d98
cmpl $0x0, 0x6a59(%rip)      # 0x9d50
jle 0x33b2
movl $0xa00, %ebx            # imm = 0xA00
movl $0x4, %r14d
xorl %r15d, %r15d
leaq 0x694e(%rip), %r12      # 0x9c60
movq 0x6a2f(%rip), %rbp      # 0x9d48
leaq (%r15,%r15,2), %r13
movl (%rbp,%r13,8), %eax
movl %eax, %ecx
andl $0x2, %ecx
shrl %ecx
notl %eax
testl $0x101, %eax            # imm = 0x101
sete %al
orb %cl, %al
jne 0x339b
callq 0x21a0
movq (%rax), %rax
addq %r14, %rbp
xorl %edx, %edx
xorl %ecx, %ecx
movsbq (%rbp,%rdx), %rsi
movl (%rax,%rsi,4), %esi
andl $0x7f, %esi
movl %ecx, %edi
movzbl (%rsi,%r12), %ecx
shll $0x6, %edi
andl $0x3f, %ecx
orl %edi, %ecx
incq %rdx
cmpq $0x3, %rdx
jne 0x3346
leal 0x1(%rbx), %ebp
leal (%rcx,%rcx), %esi
andl $0x20820, %esi          # imm = 0x20820
xorl %ecx, %esi
xorl $0x20000, %esi          # imm = 0x20000
movl %ebx, %edi
callq 0x5576
addl $0x2, %ebx
movq 0x69b9(%rip), %rax      # 0x9d48
movl 0xc(%rax,%r13,8), %esi
movl %ebp, %edi
callq 0x5576
incq %r15
movslq 0x69ab(%rip), %rax      # 0x9d50
addq $0x18, %r14
cmpq %rax, %r15
jl 0x3312
callq 0x5601
movl $0x30000, %edi          # imm = 0x30000
callq 0x5516
cmpq $0x0, 0x6a47(%rip)      # 0x9e10
je 0x33e2
movl $0xf0, %ebx
movq 0x6a39(%rip), %rsi      # 0x9e10
xorl %edi, %edi
callq 0x20c0
decl %ebx
jne 0x33d0
movq 0x6a27(%rip), %rdi      # 0x9e10
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2080
leaq 0x6b4d(%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_O1/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 %r14
pushq %rbx
movq %rdi, %r14
xorl %ebx, %ebx
xorl %ebp, %ebp
movq %r14, %rdi
callq 0x2190
cmpl $-0x1, %eax
je 0x3453
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, %ebp
testl %ecx, %ecx
cmovnel %eax, %ebx
cmpl $0x3, %ebp
jl 0x3421
jmp 0x3458
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x6853(%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)
movl $0x9, %edx
xorl %ecx, %ecx
callq 0x292b
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r12
pushq %rbx
pushq %rax
movl 0x8858(%rip), %eax      # 0xc0b0
movl %eax, 0x88e6(%rip)      # 0xc144
movl 0x88d8(%rip), %eax      # 0xc13c
movl %eax, 0x9b56(%rip)      # 0xd3c0
movslq 0x8847(%rip), %rax      # 0xc0b8
leaq 0x87d8(%rip), %rbx      # 0xc050
cmpb $0x20, (%rax,%rbx)
jne 0x38a9
movslq 0x8833(%rip), %rax      # 0xc0b8
leaq (%rax,%rbx), %rcx
incq %rcx
incl %eax
cmpb $0x20, (%rcx)
leaq 0x1(%rcx), %rcx
je 0x388c
movl %eax, 0x881b(%rip)      # 0xc0b8
testl %edi, %edi
je 0x38a9
decl %eax
movl %eax, 0x880f(%rip)      # 0xc0b8
movl $0x0, 0x9b05(%rip)      # 0xd3b8
movslq 0x87fe(%rip), %r14      # 0xc0b8
movl %r14d, 0x87ef(%rip)     # 0xc0b0
movsbq (%r14,%rbx), %r12
movzbl %r12b, %r15d
callq 0x21b0
movq (%rax), %rax
movzwl (%rax,%r12,2), %ecx
testb $0x8, %cl
jne 0x392d
cmpl $0x5c, %r15d
je 0x3939
cmpl $0x7e, %r15d
je 0x3939
cmpl $0x2f, %r15d
setne %al
testl %r15d, %r15d
setne %cl
leal -0xb(%r15), %edx
cmpb $-0x2, %dl
setb %dl
cmpl $0x9, %r15d
je 0x390b
andb %cl, %al
andb %dl, %al
je 0x3915
leal 0x1(%r14), %ecx
movl %ecx, 0x87a3(%rip)      # 0xc0b8
movl 0x879d(%rip), %eax      # 0xc0b8
movl %eax, 0x881b(%rip)      # 0xc13c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
cmpl $0x7e, %r15d
je 0x3939
cmpl $0x5c, %r15d
jne 0x3943
movl $0x1, 0x9a75(%rip)      # 0xd3b8
movslq 0x876e(%rip), %rdx      # 0xc0b8
leal 0x1(%rdx), %ecx
addq %rbx, %rdx
incq %rdx
movzbl (%rdx), %esi
cmpl $0x7e, %esi
je 0x3960
cmpl $0x5c, %esi
jne 0x396a
movl $0x1, 0x9a4e(%rip)      # 0xd3b8
movsbq %sil, %rdi
testb $0x8, (%rax,%rdi,2)
jne 0x3983
cmpb $0x5c, %sil
je 0x3983
movzbl %dil, %esi
cmpl $0x7e, %esi
jne 0x390f
incl %ecx
incq %rdx
jmp 0x3953
// File: /workspace/github_c_makefile_star2_O1/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 0x461b
movl 0xc(%r14), %ebx
cmpl $0x43, (%r14)
jne 0x39b8
movl 0x8704(%rip), %esi      # 0xc0b0
leaq 0x619d(%rip), %rdi      # 0x9b50
callq 0x4ab6
andl $0x3ffff, %ebx          # imm = 0x3FFFF
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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
xorl %ecx, %ecx
cmpl %edx, %esi
jge 0x42ee
movslq %esi, %rsi
movslq %edx, %rdx
leaq 0x7d8c(%rip), %rdi      # 0xc050
movzbl (%rsi,%rdi), %r8d
cmpl $0x5c, %r8d
je 0x42de
cmpl $0x7e, %r8d
je 0x42de
movslq %ecx, %r9
incl %ecx
movb %r8b, (%rax,%r9)
incq %rsi
cmpq %rdx, %rsi
jge 0x42eb
cmpl $0x6, %ecx
jl 0x42c4
movslq %ecx, %rcx
movb $0x0, (%rax,%rcx)
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x7c9e(%rip), %esi      # 0xc0b0
movl 0x7d24(%rip), %edx      # 0xc13c
leaq 0x9(%rsp), %rbx
movq %rbx, %rdi
callq 0x42ae
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4015
movslq 0x14(%rax), %rcx
incq %rcx
movl %ecx, 0x14(%rax)
cmpb $0x0, 0x5929(%rip)      # 0x9d69
je 0x4467
cmpl $0x2, 0x5937(%rip)      # 0x9d80
jne 0x4467
movslq 0x10(%rax), %rdx
testq %rdx, %rdx
js 0x4467
movl 0x7d02(%rip), %esi      # 0xc15c
movq 0x5a57(%rip), %rdi      # 0x9eb8
addq %rcx, %rdx
movl %esi, (%rdi,%rdx,4)
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x756e(%rip), %rax      # 0xc0b0
leaq 0x7507(%rip), %rcx      # 0xc050
movzbl (%rax,%rcx), %eax
cmpl $0x2b, %eax
je 0x4b72
cmpl $0x2d, %eax
jne 0x4b7c
movl $0x1, %edi
callq 0x384a
movq %rbx, %rdi
callq 0x4eab
xorl $0x3ffff, 0xc(%rbx)     # imm = 0x3FFFF
jmp 0x4b84
movl $0x1, %edi
callq 0x384a
movq %rbx, %rdi
callq 0x4eab
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x7528(%rip), %rax      # 0xc0b8
leaq 0x74b9(%rip), %rcx      # 0xc050
addq %rax, %rcx
movl $0x601, %edx            # imm = 0x601
movzbl (%rcx), %esi
cmpl $0xa, %esi
ja 0x4bac
btl %esi, %edx
jb 0x4bb9
incl %eax
movl %eax, 0x7504(%rip)      # 0xc0b8
incq %rcx
jmp 0x4b9f
movl %eax, 0x74f1(%rip)      # 0xc0b0
movl %eax, 0x7577(%rip)      # 0xc13c
movl %eax, 0x7579(%rip)      # 0xc144
retq
// File: /workspace/github_c_makefile_star2_O1/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: nextfiodec
int
nextfiodec(int *ccase, int delim)
{
    unsigned char c;

    for (;;) {
	if (cc >= maxcc) {
	    if (delim == -1)
		return -1;

	    /* XXX MUST NOT BE IN A REPEAT!! */
	    readLine();			/* danger will robinson! */
	    if (end_of_input)
		return -1;
	}
	c = line[cc];
	switch (c) {
	case '\n':
	    c = '\r';
	    break;
	case '\r':
	    continue;
	}
	break;
    }

    if (delim != -1 && c == delim) {
	if (*ccase == LC) {
	    cc++;			/* eat delim */
	    return -1;
	}
	*ccase = LC;
	return CONCISE_LC;		/* shift down first */
    }

    if (c > 0177) {			/* non-ascii */
	errorMessage( &illegal_character, cc );
	c = 0;				/* space?! */
    }

    c = ascii_to_fiodec[c&0177];
    if (c == BAD) {
	errorMessage( &illegal_character, cc );
	c = 0;				/* space?! */
    }

    if (!(c & *ccase)) {		/* char not in current case? */
	*ccase ^= BC;			/* switch case */
	if (*ccase == LC)
	    return CONCISE_LC;		/* shift down */
	else
	    return CONCISE_UC;		/* shift up */
    }
    cc++;
    return c & CHARBITS;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x7471(%rip), %r15      # 0xc050
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movl 0x74cd(%rip), %eax      # 0xc0b8
cmpl 0x7543(%rip), %eax      # 0xc134
jl 0x4c0e
cmpl $-0x1, %ebp
je 0x4cbb
callq 0x4883
cmpb $0x0, 0x7528(%rip)      # 0xc130
jne 0x4cbb
movslq 0x74a3(%rip), %rsi      # 0xc0b8
movzbl (%rsi,%r15), %eax
cmpl $0xd, %eax
je 0x4be5
cmpl $0xa, %eax
jne 0x4c26
movb $0xd, %al
movzbl %al, %ecx
cmpl %ebp, %ecx
jne 0x4c45
cmpl $0x80, (%rbx)
jne 0x4c93
incl %esi
movl %esi, 0x747b(%rip)      # 0xc0b8
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0x4cbb
testb %al, %al
jns 0x4c57
leaq 0x4e40(%rip), %rdi      # 0x9a90
callq 0x4ab6
xorl %eax, %eax
movzbl %al, %eax
leaq 0x4fff(%rip), %rcx      # 0x9c60
movb (%rax,%rcx), %al
cmpb $0xc, %al
jne 0x4c7c
movl 0x744a(%rip), %esi      # 0xc0b8
leaq 0x4e1b(%rip), %rdi      # 0x9a90
callq 0x4ab6
xorl %eax, %eax
movzbl %al, %r14d
movl (%rbx), %eax
testl %r14d, %eax
je 0x4ca1
incl 0x742b(%rip)            # 0xc0b8
andl $0x3f, %r14d
jmp 0x4cbb
movl $0x80, (%rbx)
movl $0x3a, %r14d
jmp 0x4cbb
movl %eax, %ecx
xorl $0xc0, %ecx
movl %ecx, (%rbx)
xorl %ecx, %ecx
cmpl $0x40, %eax
setne %cl
leal 0x3a(,%rcx,2), %r14d
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: flex
WORD32 flex()
{
    WORD32 w;
    int shift;
    int ccase;

    if (line[lexstart] == ' ')		/* always? */
	next(0);

    /* original version appears to take next 3 characters,
     * REGARDLESS of what they are (tab, newline, space?)!
     */
    w = 0;
    ccase = LC;				/* current case */
    for (shift = 12; shift >= 0; shift -= 6) {
	unsigned char c;
	if( lexstart >= maxcc )
	    break;

	c = line[lexstart];
	if (c == '\t' || c == '\n') {
	    if (ccase == LC)
		break;
	    c = CONCISE_LC;			/* shift down first */
	}
	else {
	    if (c > 0177) {		/* non-ascii */
		errorMessage( &illegal_character, lexstart );
		c = 0;
	    }

	    c = ascii_to_fiodec[c&0177];
	    if (c == BAD) {
		errorMessage( &illegal_character, lexstart );
		c = 0;
	    }

	    if (!(c & ccase)) {		/* char not in current case? */
		ccase ^= BC;		/* switch case */
		if (ccase == LC)
		    c = CONCISE_LC;	/* shift down */
		else
		    c = CONCISE_UC;	/* shift up */
	    }
	    else
		lexstart++;
	}
	w |= (c & CHARBITS) << shift;
    }
    /* error to get here w/ case == UC? nah. shift down could be next */
    return w;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movslq 0x73d5(%rip), %rax      # 0xc0b0
leaq 0x736e(%rip), %r12      # 0xc050
cmpb $0x20, (%rax,%r12)
jne 0x4cf0
xorl %edi, %edi
callq 0x384a
xorl %ebx, %ebx
movl $0xc, %r15d
movl $0x80, %ebp
leaq 0x4d8c(%rip), %r14      # 0x9a90
leaq 0x4f55(%rip), %r13      # 0x9c60
movslq 0x739e(%rip), %rsi      # 0xc0b0
cmpl 0x741c(%rip), %esi      # 0xc134
jge 0x4d38
movb (%rsi,%r12), %al
leal -0x9(%rax), %ecx
cmpb $0x1, %cl
ja 0x4d3c
movl $0x3a, %eax
cmpl $0x80, %ebp
jne 0x4d8e
movl $0x80, %ebp
xorl %eax, %eax
jmp 0x4d97
testb %al, %al
jns 0x4d4a
movq %r14, %rdi
callq 0x4ab6
xorl %eax, %eax
movzbl %al, %eax
movb (%rax,%r13), %al
cmpb $0xc, %al
jne 0x4d65
movl 0x7355(%rip), %esi      # 0xc0b0
movq %r14, %rdi
callq 0x4ab6
xorl %eax, %eax
movzbl %al, %ecx
testl %ecx, %ebp
je 0x4d79
incl 0x733e(%rip)            # 0xc0b0
andb $0x3f, %al
movzbl %al, %eax
jmp 0x4d8e
xorl %eax, %eax
cmpl $0x40, %ebp
setne %al
xorl $0xc0, %ebp
leal 0x3a(,%rax,2), %eax
movl %r15d, %ecx
shll %cl, %eax
orl %eax, %ebx
movb $0x1, %al
testb %al, %al
je 0x4dac
leal -0x6(%r15), %eax
cmpl $0x5, %r15d
movl %eax, %r15d
ja 0x4d0b
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: getChar
WORD32 getChar()
{
    unsigned char c, pos;

    if( cc >= maxcc )
	return 0;			/* XXX error? */
    pos = line[cc++];
    if (pos != 'l' && pos != 'm' && pos != 'r') {
	errorMessage( &illegal_character, lexstart );
	return 0;
    }

    if( cc >= maxcc )
	return 0;			/* XXX error? */

    c = line[cc++];
    if (c > 0177) {
	errorMessage( &illegal_character, lexstart );
	c = 0;
    }

    c = ascii_to_fiodec[c];
    if (c == BAD) {
	errorMessage( &illegal_character, lexstart );
	c = 0;
    }

    if (!(c & LC)) {			/* upper case only char? */
	c = CONCISE_UC;			/* take a shift up */
	cc--;				/* and leave char for next luser */
    }

    c &= CHARBITS;
    switch (pos) {
    case 'l': return c << 12;
    case 'm': return c << 6;
    case 'r': return c;
    }
    /* should not happen */
    return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movslq 0x72f0(%rip), %rax      # 0xc0b8
movl 0x7366(%rip), %edx      # 0xc134
xorl %ebx, %ebx
cmpl %edx, %eax
jge 0x4ea1
movq %rax, %rcx
incq %rcx
movl %ecx, 0x72d4(%rip)      # 0xc0b8
leaq 0x7265(%rip), %rsi      # 0xc050
movzbl (%rax,%rsi), %r14d
leal -0x6c(%r14), %edi
cmpl $0x6, %edi
ja 0x4e82
movl $0x43, %r8d
btl %edi, %r8d
jae 0x4e82
cmpl %edx, %ecx
jge 0x4ea1
addl $0x2, %eax
movl %eax, 0x729e(%rip)      # 0xc0b8
movb (%rcx,%rsi), %al
testb %al, %al
jns 0x4e35
movl 0x7289(%rip), %esi      # 0xc0b0
leaq 0x4c62(%rip), %rdi      # 0x9a90
callq 0x4ab6
xorl %eax, %eax
movzbl %al, %eax
leaq 0x4e21(%rip), %rcx      # 0x9c60
movb (%rax,%rcx), %al
cmpb $0xc, %al
jne 0x4e5a
movl 0x7264(%rip), %esi      # 0xc0b0
leaq 0x4c3d(%rip), %rdi      # 0x9a90
callq 0x4ab6
xorl %eax, %eax
testb %al, %al
js 0x4e66
decl 0x7254(%rip)            # 0xc0b8
movb $0x3c, %al
andb $0x3f, %al
cmpl $0x72, %r14d
je 0x4e9e
cmpl $0x6d, %r14d
je 0x4e96
cmpl $0x6c, %r14d
jne 0x4ea1
movzbl %al, %ebx
shll $0xc, %ebx
jmp 0x4ea1
movl 0x7228(%rip), %esi      # 0xc0b0
leaq 0x4c01(%rip), %rdi      # 0x9a90
callq 0x4ab6
jmp 0x4ea1
movzbl %al, %ebx
shll $0x6, %ebx
jmp 0x4ea1
movzbl %al, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: literal
WORD32
literal( WORD32 value )
{
    int i;

    if (nconst >= MAX_CONSTANTS) {
	fprintf(stderr, "too many 'constants'; increase MAX_CONSTANTS\n");
	exit(1);
    }

    if (pass == 1) {
	if (++lit_count[nconst] == MAX_LITERALS) {
	    fprintf(stderr, "too many literals; increase MAX_LITERALS\n");
	    exit(1);
	}
	return lit_count[nconst];
    }

#if 1
    /*
     * pool constants; makes for a shorter tape
     * (but "middle" constants blocks can't shrink)
     */
    for (i = 0; i < nlit; i++)
	if (litter[i] == value)
	    return lit_loc[nconst] + i;
#endif

    /* paranoia */
    if (nlit == MAX_LITERALS) {
	fprintf(stderr, "too many literals; increase MAX_LITERALS\n");
	exit(1);
    }

    /* not found, save it */
    litter[nlit] = value;

    /* use base for this block, determined on pass1 */
    return lit_loc[nconst] + nlit++;
}

// Assembly:
pushq %rax
movslq 0x6f1d(%rip), %rcx      # 0xc14c
cmpq $0xa, %rcx
jge 0x52bc
cmpl $0x1, 0x4b40(%rip)      # 0x9d80
jne 0x525d
leaq 0x7177(%rip), %rdx      # 0xc3c0
movl (%rdx,%rcx,4), %eax
incl %eax
movl %eax, (%rdx,%rcx,4)
cmpl $0x3e8, %eax            # imm = 0x3E8
jne 0x52ba
callq 0x2427
movslq 0x4c4c(%rip), %rdx      # 0x9eb0
leaq 0x7185(%rip), %rax      # 0xc3f0
testq %rdx, %rdx
jle 0x528c
movq %rdx, %r8
negq %r8
xorl %esi, %esi
movq %rax, %r9
cmpl %edi, (%r9)
je 0x52ae
decq %rsi
addq $0x4, %r9
cmpq %rsi, %r8
jne 0x527b
cmpl $0x3e8, %edx            # imm = 0x3E8
je 0x52c1
movl %edi, (%rax,%rdx,4)
leaq 0x80f2(%rip), %rax      # 0xd390
leal 0x1(%rdx), %esi
movl %esi, 0x4c09(%rip)      # 0x9eb0
movl (%rax,%rcx,4), %eax
addl %edx, %eax
jmp 0x52ba
leaq 0x80db(%rip), %rax      # 0xd390
movl (%rax,%rcx,4), %eax
subl %esi, %eax
popq %rcx
retq
callq 0x244c
callq 0x2402
// File: /workspace/github_c_makefile_star2_O1/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: punchLocObject
void punchLocObject( WORD32 loc, WORD32 val )
{
    if (!rim_mode) {
	if ((loc & LOADERBUFMASK) == 0 || /* full/force alignment */
	    loaderbufcount > 0 &&
	    loc != loaderbufstart + loaderbufcount) /* disjoint */
	    flushLoader();
	if (loaderbufcount == 0)
	    loaderbufstart = loc;
	loaderbuf[loaderbufcount++] = val;
    }
    else
	punchLocObjectRIM( loc, val );
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebx
movl %edi, %ebp
cmpb $0x0, 0x47de(%rip)      # 0x9d62
je 0x55a0
orl $0x1a000, %ebp          # imm = 0x1A000
movl %ebp, %edi
callq 0x5516
movl %ebx, %edi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x5516
testb $0x3f, %bpl
je 0x55ba
movl 0x6d04(%rip), %eax      # 0xc2b0
testl %eax, %eax
jle 0x55bf
addl 0x6cfe(%rip), %eax      # 0xc2b4
cmpl %ebp, %eax
je 0x55bf
callq 0x5601
movslq 0x6cea(%rip), %rax      # 0xc2b0
testq %rax, %rax
jne 0x55d1
movl %ebp, 0x6ce3(%rip)      # 0xc2b4
leal 0x1(%rax), %ecx
movl %ecx, 0x6cd6(%rip)      # 0xc2b0
leaq 0x6cdf(%rip), %rcx      # 0xc2c0
movl %ebx, (%rcx,%rax,4)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: flushLoader
void
flushLoader() {
    WORD32 sum;
    int i;

    if (loaderbufcount == 0)
	return;

    sum = 0;
    PW( DIO | loaderbufstart );
    PW( DIO | loaderbufstart + loaderbufcount );
    for (i = 0; i < loaderbufcount; i++)
	PW( loaderbuf[i] );

    /* roll over all the overflows at once */
    if (sum & ~0777777)
	sum = (sum & 0777777) + (sum >> 18);
    if (sum & 01000000)			/* one more time */
	sum++;
    PW( sum );

    punchLeader(5);
    loaderbufcount = 0;
}

// Assembly:
cmpl $0x0, 0x6ca8(%rip)      # 0xc2b0
je 0x56af
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl $0x1a000, %ebp          # imm = 0x1A000
movl 0x6c94(%rip), %ebx      # 0xc2b4
orl %ebp, %ebx
movl %ebx, %edi
callq 0x5516
movl 0x6c81(%rip), %edi      # 0xc2b0
addl 0x6c7f(%rip), %edi      # 0xc2b4
orl %ebp, %edi
addl %edi, %ebx
callq 0x5516
cmpl $0x0, 0x6c6b(%rip)      # 0xc2b0
jle 0x566e
leaq 0x6c72(%rip), %r14      # 0xc2c0
xorl %r15d, %r15d
movl (%r14), %edi
addl %edi, %ebx
callq 0x5516
incq %r15
movslq 0x6c4b(%rip), %rax      # 0xc2b0
addq $0x4, %r14
cmpq %rax, %r15
jl 0x5651
movl %ebx, %eax
andl $0x3ffff, %eax          # imm = 0x3FFFF
movl %ebx, %edi
sarl $0x12, %edi
addl %eax, %edi
cmpl $0x40000, %ebx          # imm = 0x40000
cmovbl %ebx, %edi
btl $0x12, %edi
adcl $0x0, %edi
callq 0x5516
movl $0x5, %edi
callq 0x2d98
movl $0x0, 0x6c0b(%rip)      # 0xc2b0
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: isLexSymbol
BOOL isLexSymbol()
{
    int ix;

    /* XXX alpha within first 4? 3?? */
    for( ix = lexstart; ix < lexterm; ix++ )
	if(isalpha(line[ix]))
	    return TRUE;			/* any position will do! */
    return FALSE;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movslq 0x69e8(%rip), %rbx      # 0xc0b0
movl 0x6a6d(%rip), %r14d     # 0xc13c
cmpl %ebx, %r14d
jle 0x5700
callq 0x21b0
movq (%rax), %rax
subl %ebx, %r14d
xorl %ecx, %ecx
leaq 0x6968(%rip), %rdx      # 0xc050
leaq (%rbx,%rcx), %rsi
movsbq (%rdx,%rsi), %rsi
testb $0x4, 0x1(%rax,%rsi,2)
jne 0x5704
incq %rcx
cmpl %ecx, %r14d
jne 0x56e8
xorl %eax, %eax
jmp 0x5706
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: variables
void
variables() {
    /* XXX error if "variables" already seen (in this pass) */
    /* XXX error if different address on pass 2 */
    if (pass == 2)
	printLine( line, clc, 0, LINE_LOC );
    vars_addr = clc;
    vars_end = clc = (clc + nvars) & ADDRESS_FIELD;
    if (pass == 2)
	printLine( line, clc, 0, LINE_LOC);
}

// Assembly:
cmpl $0x2, 0x430b(%rip)      # 0x9d80
jne 0x5a95
pushq %rax
movl 0x6636(%rip), %esi      # 0xc0b4
leaq 0x65cb(%rip), %rdi      # 0xc050
xorl %edx, %edx
movl $0x4, %ecx
callq 0x3eb2
addq $0x8, %rsp
movl 0x6619(%rip), %esi      # 0xc0b4
movl %esi, 0x791b(%rip)      # 0xd3bc
addl 0x66a9(%rip), %esi      # 0xc150
andl $0xfff, %esi            # imm = 0xFFF
movl %esi, 0x6601(%rip)      # 0xc0b4
movl %esi, 0x790f(%rip)      # 0xd3c8
cmpl $0x2, 0x42c0(%rip)      # 0x9d80
jne 0x5ad5
leaq 0x6587(%rip), %rdi      # 0xc050
xorl %edx, %edx
movl $0x4, %ecx
jmp 0x3eb2
retq
// File: /workspace/github_c_makefile_star2_O1/simh[P]simtools/crossassemblers/macro1/macro1.c
// Function: text
void
text(void)
{
    char delim;
    WORD32 w;
    int count;
    int ccase;
    /* XXX error in repeat!! */
    do {
	if (cc == maxcc) {
	    /* XXX EOL before delim found!!! */
	    fprintf(stderr, "FIX ME!\n");
	    return;
	}
	delim = line[cc++];
    } while (delim == ' ');		/* others? NL */

    w = count = 0;
    ccase = LC;
    for (;;) {
	int c = nextfiodec(&ccase, delim);
	if (c == -1)
	    break;
	w |= c << ((2-count)*6);
	if (++count == 3) {
	    punchOutObject(clc, w);	/* punch it! */
	    incrementClc();
	    count = w = 0;
	}
    }
    if (count > 0) {
	punchOutObject(clc, w);		/* punch remainder */
	incrementClc();
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movslq 0x664c(%rip), %rax      # 0xc134
movslq 0x65c9(%rip), %rcx      # 0xc0b8
leal 0x1(%rcx), %edx
leaq 0x6557(%rip), %rsi      # 0xc050
cmpq %rcx, %rax
je 0x5be9
movl %edx, 0x65b0(%rip)      # 0xc0b8
movsbl (%rcx,%rsi), %ebx
incq %rcx
incl %edx
cmpl $0x20, %ebx
je 0x5af9
leaq 0x4(%rsp), %r14
movl $0x80, (%r14)
xorl %r13d, %r13d
leaq 0x6524(%rip), %r15      # 0xc050
xorl %ebp, %ebp
movq %r14, %rdi
movl %ebx, %esi
callq 0x4bcc
movl %eax, %r12d
cmpl $-0x1, %eax
je 0x5b98
movb $0x2, %al
subb %r13b, %al
movzbl %al, %eax
addl %eax, %eax
leal (%rax,%rax,2), %ecx
movl %r12d, %eax
shll %cl, %eax
orl %eax, %ebp
incl %r13d
cmpl $0x3, %r13d
jne 0x5b98
movl 0x6550(%rip), %r13d     # 0xc0b4
movq %r15, %rdi
movl %r13d, %esi
movl %ebp, %edx
movl $0x2, %ecx
callq 0x3eb2
movl %r13d, %edi
movl %ebp, %esi
callq 0x5576
movl 0x652e(%rip), %eax      # 0xc0b4
incl %eax
andl $0xfff, %eax            # imm = 0xFFF
movl %eax, 0x6521(%rip)      # 0xc0b4
xorl %r13d, %r13d
xorl %ebp, %ebp
cmpl $-0x1, %r12d
jne 0x5b2e
testl %r13d, %r13d
jle 0x5bda
movl 0x650b(%rip), %ebx      # 0xc0b4
leaq 0x64a0(%rip), %rdi      # 0xc050
movl %ebx, %esi
movl %ebp, %edx
movl $0x2, %ecx
callq 0x3eb2
movl %ebx, %edi
movl %ebp, %esi
callq 0x5576
movl 0x64e7(%rip), %eax      # 0xc0b4
incl %eax
andl $0xfff, %eax            # imm = 0xFFF
movl %eax, 0x64da(%rip)      # 0xc0b4
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2496
jmp 0x5bda
// File: /workspace/github_c_makefile_star2_O1/OstCollector[P]config2c/config2c.c
// Function: make_message
const char *make_message(const char *fmt, ...)
{
	int size = 0;
	char *p = NULL;
	va_list ap;

	/* Determine required size */

	va_start(ap, fmt);
	size = vsnprintf(p, size, fmt, ap);
	va_end(ap);

	if (size < 0)
		return NULL;

	size++;		    /* For '\0' */
	p = malloc(size);
	if (p == NULL)
		return NULL;

	va_start(ap, fmt);
	size = vsnprintf(p, size, fmt, ap);
	if (size < 0) {
		free(p);
		return NULL;
	}
	va_end(ap);

	return p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdi, %rbx
leaq -0xf0(%rbp), %r12
movq %rsi, 0x8(%r12)
movq %rdx, 0x10(%r12)
movq %rcx, 0x18(%r12)
movq %r8, 0x20(%r12)
movq %r9, 0x28(%r12)
testb %al, %al
je 0x7e83
movaps %xmm0, -0xc0(%rbp)
movaps %xmm1, -0xb0(%rbp)
movaps %xmm2, -0xa0(%rbp)
movaps %xmm3, -0x90(%rbp)
movaps %xmm4, -0x80(%rbp)
movaps %xmm5, -0x70(%rbp)
movaps %xmm6, -0x60(%rbp)
movaps %xmm7, -0x50(%rbp)
leaq -0x40(%rbp), %rcx
movq %r12, 0x10(%rcx)
leaq 0x10(%rbp), %rax
movq %rax, 0x8(%rcx)
movabsq $0x3000000008, %r13     # imm = 0x3000000008
movq %r13, (%rcx)
xorl %r14d, %r14d
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x2080
testl %eax, %eax
js 0x7ef9
movl %eax, %r15d
incl %r15d
movq %r15, %rdi
callq 0x2150
testq %rax, %rax
je 0x7ef6
movq %rax, %r14
leaq -0x40(%rbp), %rcx
movq %r12, 0x10(%rcx)
leaq 0x10(%rbp), %rax
movq %rax, 0x8(%rcx)
movq %r13, (%rcx)
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2080
testl %eax, %eax
jns 0x7ef9
movq %r14, %rdi
callq 0x2030
xorl %r14d, %r14d
movq %r14, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq