LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/ohkimur[P]the-c-programming-language-2nd-edition-solutions/chapter_7/exercise_7_02/print.c
// Function: main
int main(int argc, char *argv[])
{
  if (!parse_arg_list(argc, argv))
  {
    puts("Error: invalid arguments.");
    return EXIT_FAILURE;
  }

  int c;
  size_t col_pos = 1;
  while ((c = getc(stdin)) != EOF)
  {
    if (is_ascii(c))
    {
      if (c == '\n')
      {
        c = ' ';
      }

      putc(c, stdout);
      ++col_pos;
    }
    else
    {
      if (octal)
      {
        col_pos += printf("\\%o", c) - 1;
      }
      else
      {
        col_pos += printf("\\%x", c) - 1;
      }
    }

    if (col_pos >= MAX_LINE_LEN - OFFSET)
    {
      if (isblank(c))
      {
        col_pos = 1;
        putc('\n', stdout);
      }
    }
  }
  putc('\n', stdout);

  return EXIT_SUCCESS;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
callq 0x1255
testl %eax, %eax
je 0x1237
pushq $0x1
popq %r14
movq 0x2e41(%rip), %r13      # 0x3fe0
movq 0x2e32(%rip), %rbx      # 0x3fd8
pushq $0x20
popq %rbp
movq %r14, %r12
movq (%r13), %rdi
callq 0x1060
cmpl $-0x1, %eax
je 0x1228
movl %eax, %r15d
cmpl $0x7f, %eax
jle 0x11d4
cmpl $0x0, 0x2e87(%rip)      # 0x4050
je 0x11ec
leaq 0xe4c(%rip), %rdi       # 0x201e
jmp 0x11f3
cmpl $0xa, %r15d
cmovel %ebp, %r15d
movq (%rbx), %rsi
movl %r15d, %edi
callq 0x1050
movq %r14, %rax
jmp 0x1201
leaq 0xe2f(%rip), %rdi       # 0x2022
movl %r15d, %esi
xorl %eax, %eax
callq 0x1040
decl %eax
cltq
addq %rax, %r12
cmpq $0x46, %r12
jb 0x11ac
callq 0x1070
movq (%rax), %rax
movslq %r15d, %rcx
testb $0x1, (%rax,%rcx,2)
je 0x11ac
movq (%rbx), %rsi
pushq $0xa
popq %rdi
callq 0x1050
jmp 0x11a9
movq (%rbx), %rsi
pushq $0xa
popq %rdi
callq 0x1050
xorl %eax, %eax
jmp 0x1246
leaq 0xdc6(%rip), %rdi       # 0x2004
callq 0x1030
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ohkimur[P]the-c-programming-language-2nd-edition-solutions/chapter_7/exercise_7_02/print.c
// Function: parse_arg_list
boolean parse_arg_list(int argc, char *argv[])
{
  if (argc == 2)
  {
    if (strcmp(argv[1], "-o") == 0)
    {
      octal = true;
      return true;
    }
    else if (strcmp(argv[1], "-x") == 0)
    {
      octal = false;
      return true;
    }
  }

  return false;
}

// Assembly:
xorl %eax, %eax
cmpl $0x2, %edi
jne 0x127f
movq 0x8(%rsi), %rcx
cmpb $0x2d, (%rcx)
jne 0x127f
cmpb $0x6f, 0x1(%rcx)
jne 0x1271
cmpb $0x0, 0x2(%rcx)
je 0x1280
cmpb $0x78, 0x1(%rcx)
jne 0x127f
xorl %eax, %eax
cmpb $0x0, 0x2(%rcx)
je 0x1283
retq
pushq $0x1
popq %rax
movl %eax, 0x2dc7(%rip)      # 0x4050
pushq $0x1
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/miniupnp[P]hfsplustools/src/hfsdisplay.c
// Function: main
int main(int argc, char * * argv)
{
	FILE * f;

	if(argc < 2) {
		fprintf(stderr, "usage: %s <file.iso>\n", argv[0]);
		return 1;
	}
	f = fopen(argv[1], "rb");
	if(!f) {
		fprintf(stderr, "Failed to open file %s\n", argv[1]);
		return 2;
	}
	read_partition_map(f);
	if(hfs_part_sector == 0 && hfs_part_sector_count == 0) {
		printf("HFS/HFS+ partition not found\n");
	} else {
		read_hfs_volume_header(f);
		read_catalog(f);
	}
	fclose(f);
	return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
cmpl $0x1, %edi
jle 0x12ac
movq 0x8(%r14), %rdi
leaq 0x1dc7(%rip), %rsi      # 0x301a
callq 0x1100
testq %rax, %rax
je 0x12cb
movq %rax, %rbx
movq %rax, %rdi
callq 0x265b
leaq 0x4e45(%rip), %rax      # 0x60b4
leaq 0x4e42(%rip), %rcx      # 0x60b8
movl (%rcx), %ecx
orl (%rax), %ecx
jne 0x128a
leaq 0x1db2(%rip), %rdi      # 0x3035
callq 0x1060
jmp 0x129a
movq %rbx, %rdi
callq 0x13e4
movq %rbx, %rdi
callq 0x25ad
movq %rbx, %rdi
callq 0x1080
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x4d45(%rip), %rax      # 0x5ff8
movq (%rax), %rdi
movq (%r14), %rdx
leaq 0x1d44(%rip), %rsi      # 0x3004
xorl %eax, %eax
callq 0x10b0
pushq $0x1
jmp 0x12e9
movq 0x4d26(%rip), %rax      # 0x5ff8
movq (%rax), %rdi
movq 0x8(%r14), %rdx
leaq 0x1d3d(%rip), %rsi      # 0x301d
xorl %eax, %eax
callq 0x10b0
pushq $0x2
popq %rax
jmp 0x12a4
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/tt.c
// Function: interrupt_handler
static void interrupt_handler( int signum ) {
	signal( signum, interrupt_handler );
	env.interrupted = 1;
	if( env.worker ) {
		/* Terminate current worker. */
		( ( struct worker * ) env.worker )->env.interrupted = 1;
	}
}

// Assembly:
pushq %rax
leaq -0x8(%rip), %rsi        # 0x360f
callq 0x3190
movb $0x1, 0x15dad(%rip)     # 0x193d0
movq 0x1612e(%rip), %rax     # 0x19758
testq %rax, %rax
je 0x3633
movb $0x1, 0x38(%rax)
popq %rax
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: new_element
struct element* new_element( int str_len ) {
	struct element *elem = malloc( sizeof( struct element ) + sizeof( char ) * ( str_len + 1 ) );
	if( elem ) {
		memset( elem, 0, sizeof( struct element ) );
		elem->str.string = ( char * ) &elem[ 1 ];
		elem->str.string[ str_len ] = 0;
		elem->str.reference_count = 1;
		elem->str.length = str_len;
		elem->str.type = ELEMENT;
	}
	return elem;
}

// Assembly:
pushq %rbx
movslq %edi, %rbx
leaq 0x31(%rbx), %rdi
callq 0x31b0
testq %rax, %rax
je 0x3673
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movq %rax, %rcx
addq $0x30, %rcx
movq %rcx, 0x8(%rax)
movb $0x0, 0x30(%rax,%rbx)
movq $0x1, (%rax)
movl %ebx, 0x10(%rax)
movb $0x1, 0x14(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: new_array
struct array* new_array( struct environment *env, int length, int str_len ) {
	size_t refs_size = length * sizeof( struct string * );
	size_t nums_size = length * sizeof( number );
	struct array *arr = calloc( 1, sizeof( struct array ) + refs_size + nums_size + str_len + 1 );
	if( arr ) {
		arr->string_values = ( struct string ** ) &arr[ 1 ];
		arr->number_values = ( number * ) &arr->string_values[ length ];
		arr->str.string = ( char * ) &arr->number_values[ length ];
		arr->str.length = str_len;
		arr->str.reference_count = 1;
		arr->str.type = ARRAY;
		arr->length = length;
		arr->prev = &env->arrays;
		arr->next = env->arrays.next;
		if( arr->next ) {
			arr->next->prev = arr;
		} 
		env->arrays.next = arr;
	}
	return arr;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rdi, %rbx
movslq %esi, %r14
movslq %edx, %rax
imulq $0xc, %r14, %rcx
leaq (%rax,%rcx), %rsi
addq $0x49, %rsi
pushq $0x1
popq %rdi
callq 0x3130
testq %rax, %rax
je 0x36e8
leaq 0x48(%rax), %rcx
movq %rcx, 0x20(%rax)
leaq (%rax,%r14,8), %rcx
addq $0x48, %rcx
movq %rcx, 0x18(%rax)
leaq (%rcx,%r14,4), %rcx
movq %rcx, 0x8(%rax)
movl %ebp, 0x10(%rax)
movq $0x1, (%rax)
movb $0x2, 0x14(%rax)
movl %r14d, 0x40(%rax)
leaq 0x38(%rbx), %rcx
movq %rcx, 0x30(%rax)
movq 0x70(%rbx), %rcx
movq %rcx, 0x38(%rax)
testq %rcx, %rcx
je 0x36e4
movq %rax, 0x30(%rcx)
movq %rax, 0x70(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: new_source
struct source* new_source( int str_len ) {
	struct source *src = malloc( sizeof( struct source ) + sizeof( char ) * ( str_len + 1 ) );
	if( src ) {
		memset( src, 0, sizeof( struct source ) );
		src->str.string = ( char * ) &src[ 1 ];
		src->str.reference_count = 1;
		src->str.length = str_len;
		src->str.type = SOURCE;
	}
	return src;
}

// Assembly:
pushq %rbx
movl %edi, %ebx
movslq %edi, %rdi
addq $0x21, %rdi
callq 0x31b0
testq %rax, %rax
je 0x3721
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq %rax, %rcx
addq $0x20, %rcx
movq %rcx, 0x8(%rax)
movq $0x1, (%rax)
movl %ebx, 0x10(%rax)
movb $0x8, 0x14(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: new_string
struct string* new_string( int length ) {
	struct string *str = malloc( sizeof( struct string ) + sizeof( char ) * ( length + 1 ) );
	if( str ) {
		memset( str, 0, sizeof( struct string ) );
		str->string = ( char * ) &str[ 1 ];
		str->string[ length ] = 0;
		str->reference_count = 1;
		str->length = length;
	}
	return str;
}

// Assembly:
pushq %rbx
movslq %edi, %rbx
leaq 0x19(%rbx), %rdi
callq 0x31b0
testq %rax, %rax
je 0x3754
andq $0x0, 0x10(%rax)
movq %rax, %rcx
addq $0x18, %rcx
movq %rcx, 0x8(%rax)
movb $0x0, 0x18(%rax,%rbx)
movq $0x1, (%rax)
movl %ebx, 0x10(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: new_string_value
struct string* new_string_value( char *source ) {
	struct string *str = new_string( strlen( source ) );
	if( str ) {
		strcpy( str->string, source );
	}
	return str;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x30c0
movl %eax, %edi
callq 0x3723
movq %rax, %r14
testq %rax, %rax
je 0x377d
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq 0x3070
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: load_file
long load_file( char *file_name, char *buffer, long offset, long count, char *message ) {
	long length, remain = -1;
	FILE *input_file = fopen( file_name, "rb" );
	if( input_file != NULL ) {
		if( fseek( input_file, 0L, SEEK_END ) == 0 ) {
			length = ftell( input_file );
			if( length >= 0 ) {
				if( offset < 0 || offset > length ) {
					offset = length;
				}
				remain = length - offset;
				if( remain > 0 && buffer ) {
					if( count > remain ) {
						count = remain;
					}
					remain = fseek( input_file, offset, SEEK_SET );
					if( remain == 0 ) {
						clearerr( input_file );
						remain = fread( buffer, 1, count, input_file );
						if( ferror( input_file ) ) {
							remain = -1;
						}
					}
				}
			}
		}
		fclose( input_file );
	}
	if( remain < 0 ) {
		strncpy( message, strerror( errno ), 63 );
		message[ 63 ] = 0;
	}
	return remain;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r15
movq %rdx, %rbp
movq %rsi, %r12
leaq 0xda11(%rip), %rsi      # 0x111b7
callq 0x31d0
testq %rax, %rax
je 0x37d7
movq %rax, %r14
pushq $0x2
popq %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0x31c0
pushq $-0x1
popq %r13
testl %eax, %eax
je 0x380b
movq %r14, %rdi
callq 0x30a0
testq %r13, %r13
jns 0x37f9
jmp 0x37db
pushq $-0x1
popq %r13
callq 0x3040
movl (%rax), %edi
callq 0x3220
pushq $0x3f
popq %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3050
movb $0x0, 0x3f(%rbx)
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, (%rsp)
movq %r14, %rdi
callq 0x3160
testq %rax, %rax
js 0x37c8
movq %rax, %r15
cmpq %rbp, %rax
cmovbq %rax, %rbp
subq %rbp, %r15
setle %al
testq %r12, %r12
sete %cl
orb %al, %cl
jne 0x384f
movq %r14, %rdi
movq %rbp, %rsi
xorl %edx, %edx
callq 0x31c0
testl %eax, %eax
je 0x3857
movslq %eax, %r13
jmp 0x37c8
movq %r15, %r13
jmp 0x37c8
movq (%rsp), %r13
cmpq %r13, %r15
cmovlq %r15, %r13
movq %r14, %rdi
callq 0x3170
pushq $0x1
popq %rsi
movq %r12, %rdi
movq %r13, %rdx
movq %r14, %rcx
callq 0x3090
movq %rax, %r15
movq %r14, %rdi
callq 0x3080
xorl %r13d, %r13d
negl %eax
sbbq %r13, %r13
orq %r15, %r13
jmp 0x37c8
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: dispose_variable
void dispose_variable( struct variable *var ) {
	var->number_value = 0;
	if( var->string_value ) {
		unref_string( var->string_value );
		var->string_value = NULL;
	}
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
andl $0x0, (%rdi)
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x38b0
callq 0x38b2
andq $0x0, 0x8(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: unref_string
void unref_string( struct string *str ) {
	if( str->reference_count == 1 ) {
		switch( str->type ) {
			default:
			case STRING:
				free( str );
				break;
			case ELEMENT:
				dispose_element( ( struct element * ) str );
				break;
			case ARRAY:
				dispose_array( ( struct array * ) str );
				break;
			case STRUCT:
				dispose_structure( ( struct structure * ) str );
				break;
			case GLOBAL: case CONST:
				dispose_global_variable( ( struct global_variable * ) str );
				break;
			case FUNCTION:
				dispose_function( ( struct function * ) str );
				break;
			case SOURCE:
				dispose_source( ( struct source * ) str );
				break;
			case CUSTOM:
				( ( struct custom * ) str )->type->dispose( str );
				break;
		}
	} else {
		str->reference_count--;
	}
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
cmpq $0x1, %rax
jne 0x3900
movzbl 0x14(%rbx), %eax
decl %eax
cmpl $0x8, %eax
ja 0x3976
leaq 0xd7bf(%rip), %rcx      # 0x11094
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x18(%rbx), %rdi
callq 0x3988
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x38f5
callq 0x38b2
movq 0x38(%rbx), %rdi
callq 0x3a26
jmp 0x3976
decq %rax
movq %rax, (%rbx)
popq %rbx
retq
movq 0x28(%rbx), %rdi
cmpq %rbx, %rdi
je 0x3916
callq 0x38b2
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x3924
callq 0x38b2
movq 0x48(%rbx), %rdi
callq 0x7868
movq 0x58(%rbx), %rdi
callq 0x39e8
jmp 0x3976
movq %rbx, %rdi
callq 0x7825
movq 0x30(%rbx), %rax
testq %rax, %rax
je 0x3976
movq 0x38(%rbx), %rcx
movq %rcx, 0x38(%rax)
testq %rcx, %rcx
je 0x3976
movq %rax, 0x30(%rcx)
jmp 0x3976
movq 0x18(%rbx), %rdi
jmp 0x3971
movq 0x18(%rbx), %rax
movq %rbx, %rdi
popq %rbx
jmpq *0x18(%rax)
movq 0x20(%rbx), %rdi
callq 0x3b47
movq %rbx, %rdi
popq %rbx
jmp 0x3030
movq %rbx, %rdi
popq %rbx
jmp 0x3a69
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: assign_variable
void assign_variable( struct variable *src, struct variable *dest ) {
	if( dest->string_value ) {
		unref_string( dest->string_value );
	}
	dest->number_value = src->number_value;
	dest->string_value = src->string_value;
	if( dest->string_value ) {
		dest->string_value->reference_count++;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rsi), %rdi
testq %rdi, %rdi
je 0x39ae
callq 0x38b2
movl (%r14), %eax
movl %eax, (%rbx)
movq 0x8(%r14), %rax
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x39c3
incq (%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: evaluate_string_literal_expression
enum result evaluate_string_literal_expression( struct expression *this,
	struct variables *vars, struct variable *result ) {
	result->number_value = ( ( struct value_expression * ) this )->num;
	result->string_value = ( ( struct value_expression * ) this )->str;
	result->string_value->reference_count++;
	return OKAY;
}

// Assembly:
movl 0x28(%rdi), %eax
movl %eax, (%rdx)
movq 0x20(%rdi), %rax
movq %rax, 0x8(%rdx)
incq (%rax)
pushq $0x1
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: dispose_statements
void dispose_statements( struct statement *statements ) {
	struct statement *next;
	while( statements ) {
		next = statements->next;
		dispose_expressions( statements->source );
		if( statements->dispose ) {
			statements->dispose( statements );
		} else {
			free( statements );
		}
		statements = next;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rbx, %rbx
je 0x3a1e
movq 0x8(%rbx), %rdi
movq 0x20(%rbx), %r14
callq 0x3a26
movq 0x18(%rbx), %rax
movq %rbx, %rdi
testq %rax, %rax
je 0x3a14
callq *%rax
movq %r14, %rbx
jmp 0x39ef
callq 0x3030
movq %r14, %rbx
jmp 0x39ef
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: dispose_expressions
static void dispose_expressions( struct expression *expr ) {
	struct expression *next;
	while( expr ) {
		next = expr->next;
		dispose_expressions( expr->parameters );
		if( expr->evaluate == evaluate_string_literal_expression ) {
			unref_string( ( ( struct value_expression * ) expr )->str );
		}
		free( expr );
		expr = next;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq -0x61(%rip), %r14       # 0x39d4
testq %rbx, %rbx
je 0x3a63
movq 0x8(%rbx), %rdi
movq 0x10(%rbx), %r15
callq 0x3a26
cmpq %r14, 0x18(%rbx)
jne 0x3a56
movq 0x20(%rbx), %rdi
callq 0x38b2
movq %rbx, %rdi
callq 0x3030
movq %r15, %rbx
jmp 0x3a35
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: dispose_element
static void dispose_element( struct element *elem ) {
	struct element *prev;
	while( elem ) {
		if( elem->str.reference_count == 1 ) {
			if( elem->child ) {
				dispose_element( elem->child );
			}
			prev = elem;
			elem = elem->next;
			free( prev );
		} else {
			elem->str.reference_count--;
			elem = NULL;
		}
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rbx, %rbx
je 0x3aa7
movq (%rbx), %rax
cmpq $0x1, %rax
jne 0x3a9d
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x3a8c
callq 0x3a69
movq 0x20(%rbx), %r14
movq %rbx, %rdi
callq 0x3030
movq %r14, %rbx
jmp 0x3a70
decq %rax
movq %rax, (%rbx)
xorl %ebx, %ebx
jmp 0x3a70
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: dispose_environment
void dispose_environment( struct environment *env ) {
	int idx;
	for( idx = 0; idx < 32; idx++ ) {
		dispose_string_list( env->decls_index[ idx ] );
		dispose_keywords( env->statements_index[ idx ] );
		dispose_operators( env->operators_index[ idx ] );
	}
	dispose_string_list( env->globals );
	dispose_arrays( &env->arrays );
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorl %r14d, %r14d
cmpq $0x20, %r14
je 0x3b08
movq 0x280(%rbx,%r14,8), %rdi
callq 0x3b47
movq 0x80(%rbx,%r14,8), %rdi
testq %rdi, %rdi
je 0x3ae8
movq 0x18(%rdi), %r15
callq 0x3030
movq %r15, %rdi
jmp 0x3ad5
movq 0x180(%rbx,%r14,8), %rdi
testq %rdi, %rdi
je 0x3b03
movq 0x18(%rdi), %r15
callq 0x3030
movq %r15, %rdi
jmp 0x3af0
incq %r14
jmp 0x3aba
movq 0x380(%rbx), %rdi
callq 0x3b47
addq $0x70, %rbx
movq %rbx, %r14
movq (%r14), %r14
testq %r14, %r14
je 0x3b39
incq (%r14)
movq %r14, %rdi
callq 0x7825
addq $0x38, %r14
jmp 0x3b1b
callq 0x38b2
movq (%rbx), %rdi
testq %rdi, %rdi
jne 0x3b34
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: dispose_string_list
static void dispose_string_list( struct string_list *list ) {
	struct string_list *next;
	while( list ) {
		next = list->next;
		unref_string( list->str );
		free( list );
		list = next;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rbx, %rbx
je 0x3b6c
movq (%rbx), %rdi
movq 0x8(%rbx), %r14
callq 0x38b2
movq %rbx, %rdi
callq 0x3030
movq %r14, %rbx
jmp 0x3b4e
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: throw_exit
enum result throw_exit( struct variables *vars, number exit_code, const char *message ) {
	struct variable *exception = vars->exception;
	struct environment *env = vars->func->env;
	env->exit.reference_count = 2;
	env->exit.type = EXIT;
	env->exit.string = ( char * ) message;
	dispose_temporary( exception );
	exception->number_value = exit_code;
	exception->string_value = &env->exit;
	return EXCEPTION;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
movq 0x8(%rdi), %r14
movq 0x18(%rdi), %rax
movq 0x40(%rax), %rax
leaq 0x20(%rax), %r15
movq $0x2, 0x20(%rax)
movb $0xa, 0x34(%rax)
movq %rdx, 0x28(%rax)
movq %r14, %rdi
callq 0x3988
movl %ebx, (%r14)
movq %r15, 0x8(%r14)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: throw
enum result throw( struct variables *vars, struct expression *source, number num, const char *string ) {
	struct variable *exception = vars->exception;
	struct array *arr = NULL;
	if( string ) {
		arr = stack_trace( source, vars, strlen( string ), 16 );
		if( arr ) {
			strcpy( arr->str.string, string );
		} else {
			return throw_exit( vars, 1, OUT_OF_MEMORY );
		}
	}
	dispose_temporary( exception );
	exception->number_value = num;
	exception->string_value = &arr->str;
	return EXCEPTION;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %edx, %ebx
movq 0x8(%rdi), %r14
testq %rcx, %rcx
je 0x3bfa
movq %rcx, %r15
movq %rsi, %r13
movq %rdi, %r12
movq %rcx, %rdi
callq 0x30c0
movq %r13, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0x3c2c
testq %rax, %rax
je 0x3c0e
movq %rax, %r13
movq 0x8(%rax), %rdi
movq %r15, %rsi
callq 0x3070
jmp 0x3bfd
xorl %r13d, %r13d
movq %r14, %rdi
callq 0x3988
movl %ebx, (%r14)
movq %r13, 0x8(%r14)
jmp 0x3c20
movq 0x1455b(%rip), %rdx     # 0x18170
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x3b74
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: stack_trace
static struct array* stack_trace( struct expression *expr, struct variables *vars, int msg_len, int max_depth ) {
	struct array *arr = new_array( vars->func->env, max_depth, msg_len );
	int idx = 0, line = expr->line;
	if( arr ) {
		while( vars && vars->func && idx < max_depth ) {
			vars->func->str.reference_count++;
			arr->string_values[ idx ] = &vars->func->str;
			arr->number_values[ idx++ ] = line;
			line = vars->line;
			vars = vars->parent;
		}
		arr->length = idx;
	}
	return arr;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rsi), %rax
movq 0x40(%rax), %rdi
pushq $0x10
popq %rsi
callq 0x3675
testq %rax, %rax
je 0x3c88
xorl %ecx, %ecx
testq %rbx, %rbx
je 0x3c85
movq 0x18(%rbx), %rdx
testq %rdx, %rdx
je 0x3c85
cmpq $0xf, %rcx
ja 0x3c85
movl (%r14), %esi
incq (%rdx)
movq 0x20(%rax), %rdi
movq %rdx, (%rdi,%rcx,8)
movq 0x18(%rax), %rdx
movl %esi, (%rdx,%rcx,4)
incq %rcx
movq %rbx, %r14
movq (%rbx), %rbx
addq $0x20, %r14
jmp 0x3c4d
movl %ecx, 0x40(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: write_byte_string
int write_byte_string( char *bytes, int count, char *output ) {
	int chr, size, idx = 0, length = 0;
	if( output ) {
		output[ length++ ] = '"';
		while( idx < count ) {
			chr = bytes[ idx++ ];
			if( chr == '"' || chr == '\\' ) {
				output[ length++ ] = '\\';
				output[ length++ ] = chr;
			} else if( ( chr & 0x7F ) < 32 || chr == 127 ) {
				output[ length++ ] = '\\';
				output[ length++ ] = '0' + ( ( chr >> 6 ) & 0x3 );
				output[ length++ ] = '0' + ( ( chr >> 3 ) & 0x7 );
				output[ length++ ] = '0' + ( chr & 0x7 );
			} else {
				output[ length++ ] = chr;
			}
		}
		output[ length++ ] = '"';
	} else {
		length = 2;
		while( idx < count && length > 0 ) {
			chr = bytes[ idx++ ];
			if( chr == '"' || chr == '\\' ) {
				size = 2;
			} else if( ( chr & 0x7F ) < 32 || chr == 127 ) {
				size = 4;
			} else {
				size = 1;
			}
			if( MAX_INTEGER - length > size ) {
				length += size;
			} else {
				length = -1;
			}
		}
	}
	return length;
}

// Assembly:
testq %rdx, %rdx
je 0x3d34
movb $0x22, (%rdx)
xorl %eax, %eax
testl %esi, %esi
cmovlel %eax, %esi
pushq $0x1
popq %r9
movslq %r9d, %rcx
cmpq %rax, %rsi
je 0x3d2c
movzbl (%rdi,%rax), %r8d
cmpl $0x5c, %r8d
je 0x3cc0
cmpl $0x22, %r8d
jne 0x3cd2
movb $0x5c, (%rdx,%rcx)
leal 0x2(%rcx), %r9d
movb %r8b, 0x1(%rdx,%rcx)
incq %rax
jmp 0x3ca7
testb $0x60, %r8b
setne %r9b
cmpb $0x7f, %r8b
setne %r10b
testb %r9b, %r10b
jne 0x3d22
movb $0x5c, (%rdx,%rcx)
movl %r8d, %r9d
shrb $0x6, %r9b
orb $0x30, %r9b
movb %r9b, 0x1(%rdx,%rcx)
movl %r8d, %r9d
shrb $0x3, %r9b
andb $0x7, %r9b
orb $0x30, %r9b
movb %r9b, 0x2(%rdx,%rcx)
andb $0x7, %r8b
orb $0x30, %r8b
leal 0x4(%rcx), %r9d
movb %r8b, 0x3(%rdx,%rcx)
jmp 0x3ccd
leal 0x1(%rcx), %r9d
movb %r8b, (%rdx,%rcx)
jmp 0x3ccd
leal 0x1(%rcx), %eax
movb $0x22, (%rdx,%rcx)
retq
movslq %esi, %rcx
pushq $0x2
popq %rdx
xorl %esi, %esi
pushq $-0x1
popq %r8
pushq $0x4
popq %r9
movl %edx, %eax
cmpq %rcx, %rsi
jge 0x3d33
testl %eax, %eax
jle 0x3d33
movzbl (%rdi,%rsi), %r11d
movl %edx, %r10d
cmpl $0x22, %r11d
je 0x3d7e
movl %edx, %r10d
cmpl $0x5c, %r11d
je 0x3d7e
xorl %r10d, %r10d
testb $0x60, %r11b
sete %r10b
cmpb $0x7f, %r11b
leal 0x1(%r10,%r10,2), %r10d
cmovel %r9d, %r10d
movl %eax, %r11d
xorl $0x7fffffff, %r11d      # imm = 0x7FFFFFFF
cmpl %r10d, %r11d
ja 0x3d92
movl %r8d, %eax
jmp 0x3d95
addl %r10d, %eax
incq %rsi
jmp 0x3d46
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: add_decl
struct string_list* add_decl( struct string *decl, int line, struct environment *env, char *message ) {
	struct string_list *list = NULL;
	int hash = validate_decl( decl, line, env, message ) - 1;
	if( message[ 0 ] == 0 ) {
		list = new_string_list( decl, env->decls_index[ hash ] );
		if( list ) {
			env->decls_index[ hash ] = list;
		} else {
			strcpy( message, OUT_OF_MEMORY );
		}
	}
	return list;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r15
callq 0x830f
movl %eax, %r12d
testl %eax, %eax
je 0x3df6
leal -0x1(%r12), %eax
movq 0x280(%rbx,%rax,8), %rdi
movq 0x8(%r15), %r13
movl 0x10(%r15), %edx
movq %r13, %rsi
xorl %ecx, %ecx
callq 0x81fe
testq %rax, %rax
je 0x3df6
leaq 0xdc34(%rip), %rsi      # 0x11a1b
movq %r14, %rdi
movq %r13, %rdx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x3200
cmpb $0x0, (%r14)
je 0x3e00
xorl %eax, %eax
jmp 0x3e23
movslq %r12d, %r12
movq 0x278(%rbx,%r12,8), %rsi
movq %r15, %rdi
callq 0x3e43
testq %rax, %rax
je 0x3e32
decq %r12
movq %rax, 0x280(%rbx,%r12,8)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x14337(%rip), %rsi     # 0x18170
movq %r14, %rdi
callq 0x3070
jmp 0x3dfc
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: new_string_list
static struct string_list* new_string_list( struct string *value, struct string_list *next ) {
	struct string_list *list = malloc( sizeof( struct string_list ) );
	if( list ) {
		list->str = value;
		value->reference_count++;
		list->next = next;
	}
	return list;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x10
popq %rdi
callq 0x31b0
testq %rax, %rax
je 0x3e64
movq %r14, (%rax)
incq (%r14)
movq %rbx, 0x8(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: add_constants
int add_constants( struct constant *constants, struct environment *env, char *message ) {
	struct global_variable *global;
	while( constants->name && message[ 0 ] == 0 ) {
		global = new_global_variable( constants->name, NULL, NULL, NULL, message );
		if( global ) {
			if( add_global( global, 0, env, message ) ) {
				global->str.type = CONST;
				global->value.number_value = constants->number_value;
				if( constants->string_value ) {
					global->value.string_value = new_string_literal( constants->string_value );
					if( global->value.string_value == NULL ) {
						strcpy( message, OUT_OF_MEMORY );
					}
				}
			}
			unref_string( &global->str );
		}
		constants++;
	}
	return message[ 0 ] == 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
addq $0x10, %r15
movq -0x10(%r15), %rdi
movb (%rbx), %cl
testq %rdi, %rdi
je 0x3efe
testb %cl, %cl
jne 0x3efe
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x3f11
testq %rax, %rax
je 0x3ef8
movq %rax, %r12
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x3fda
testq %rax, %rax
je 0x3ef0
movb $0x5, 0x14(%r12)
movl -0x8(%r15), %eax
movl %eax, 0x18(%r12)
movq (%r15), %rdi
testq %rdi, %rdi
je 0x3ef0
callq 0x403d
movq %rax, 0x20(%r12)
testq %rax, %rax
jne 0x3ef0
movq 0x14288(%rip), %rsi     # 0x18170
movq %rbx, %rdi
callq 0x3070
movq %r12, %rdi
callq 0x38b2
addq $0x18, %r15
jmp 0x3e81
xorl %eax, %eax
testb %cl, %cl
sete %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: new_global_variable
static struct global_variable* new_global_variable( char *name,
	struct structure *type, struct function *init_function, struct expression *initializer, char *message ) {
	int nlen = strlen( name );
	int qlen = qualify_name( init_function, name, nlen, NULL );
	struct global_variable *global = malloc( sizeof( struct global_variable ) + sizeof( char ) * ( qlen + 1 ) );
	if( global ) {
		global->str.reference_count = 1;
		global->str.string = ( char * ) &global[ 1 ];
		qualify_name( init_function, name, nlen, global->str.string );
		global->str.length = qlen;
		global->str.type = GLOBAL;
		global->value.number_value = 0;
		global->value.string_value = NULL;
		global->type = type;
		global->init_function = init_function;
		if( init_function ) {
			init_function->str.reference_count++;
		}
		global->initializer = initializer;
	} else {
		strcpy( message, OUT_OF_MEMORY );
	}
	return global;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, 0x8(%rsp)
movq %rcx, 0x10(%rsp)
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
callq 0x30c0
movq %rax, %rbp
movl %ebp, %r13d
testq %r14, %r14
je 0x3f58
movq 0x30(%r14), %rax
movl %ebp, %r13d
testq %rax, %rax
je 0x3f58
movl 0x10(%rax), %eax
leal (%rax,%rbp), %r13d
incl %r13d
movslq %r13d, %rdi
addq $0x41, %rdi
callq 0x31b0
movq %rax, %rbx
testq %rax, %rax
je 0x3fb7
movq $0x1, (%rbx)
movq %rbx, %rcx
addq $0x40, %rcx
movq %rcx, 0x8(%rbx)
movq %r14, %rdi
movq %r12, %rsi
movl %ebp, %edx
callq 0x787e
andl $0x0, 0x18(%rbx)
andq $0x0, 0x20(%rbx)
movl %r13d, 0x10(%rbx)
movb $0x4, 0x14(%rbx)
movq %r15, 0x28(%rbx)
movq %r14, 0x30(%rbx)
testq %r14, %r14
je 0x3fac
incq (%r14)
movq 0x10(%rsp), %rax
movq %rax, 0x38(%rbx)
jmp 0x3fc8
movq 0x141b2(%rip), %rsi     # 0x18170
movq 0x8(%rsp), %rdi
callq 0x3070
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: add_global
static struct string_list* add_global( struct global_variable *global, int line, struct environment *env, char *message ) {
	struct string_list *list = append_string_list( &env->globals, &env->globals_tail, &global->str );
	if( list ) {
		list = add_decl( &global->str, line, env, message );
	} else {
		strcpy( message, OUT_OF_MEMORY );
	}
	return list;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r15
leaq 0x380(%rdx), %rdi
leaq 0x388(%rdx), %rsi
movq %r15, %rdx
callq 0x790a
testq %rax, %rax
je 0x4021
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3d9a
movq 0x14148(%rip), %rsi     # 0x18170
movq %rbx, %rdi
callq 0x3070
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: new_string_literal
static struct string* new_string_literal( char *source ) {
	struct string *str = new_string( unquote_string( source, NULL, '"' ) );
	if( str ) {
		str->length = unquote_string( source, str->string, '"' );
	}
	return str;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x22
popq %rdx
xorl %esi, %esi
callq 0x793e
movl %eax, %edi
callq 0x3723
movq %rax, %r14
testq %rax, %rax
je 0x4070
movq 0x8(%r14), %rsi
pushq $0x22
popq %rdx
movq %rbx, %rdi
callq 0x793e
movl %eax, 0x10(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: evaluate_local
enum result evaluate_local( struct expression *this,
	struct variables *vars, struct variable *result ) {
	struct variable *var = &vars->locals[ this->index ];
	result->number_value = var->number_value;
	if( var->string_value ) {
		result->string_value = var->string_value;
		result->string_value->reference_count++;
	}
	return OKAY;
}

// Assembly:
movq 0x10(%rsi), %rax
movslq 0x4(%rdi), %rcx
shlq $0x4, %rcx
movl (%rax,%rcx), %esi
movl %esi, (%rdx)
movq 0x8(%rax,%rcx), %rax
testq %rax, %rax
je 0x409d
movq %rax, 0x8(%rdx)
incq (%rax)
pushq $0x1
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: evaluate_local_post_inc
enum result evaluate_local_post_inc( struct expression *this,
	struct variables *vars, struct variable *result ) {
	struct variable *var = &vars->locals[ this->index ];
	if( var->string_value ) {
		return throw( vars, this, 0, "Not a number." );
	} else {
		result->number_value = var->number_value++;
	}
	return OKAY;
}

// Assembly:
pushq %rbx
movq %rdi, %rax
movq 0x10(%rsi), %rcx
movslq 0x4(%rdi), %rdi
shlq $0x4, %rdi
cmpq $0x0, 0x8(%rcx,%rdi)
je 0x40d1
leaq 0xd0fa(%rip), %rcx      # 0x111ba
xorl %ebx, %ebx
movq %rsi, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x3bb2
jmp 0x40e0
addq %rdi, %rcx
movl (%rcx), %eax
leal 0x1(%rax), %esi
movl %esi, (%rcx)
movl %eax, (%rdx)
pushq $0x1
popq %rbx
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: evaluate_global
enum result evaluate_global( struct expression *this,
	struct variables *vars, struct variable *result ) {
	struct variable *var = &( ( struct global_variable * ) ( ( struct value_expression * ) this )->str )->value;
	result->number_value = var->number_value;
	if( var->string_value ) {
		result->string_value = var->string_value;
		result->string_value->reference_count++;
	}
	return OKAY;
}

// Assembly:
movq 0x20(%rdi), %rax
movl 0x18(%rax), %ecx
movl %ecx, (%rdx)
movq 0x20(%rax), %rax
testq %rax, %rax
je 0x4140
movq %rax, 0x8(%rdx)
incq (%rax)
pushq $0x1
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: execute_local_assignment
enum result execute_local_assignment( struct statement *this,
	struct variables *vars, struct variable *result ) {
	struct variable var = { 0 }, *dest = &vars->locals[ this->local ];
	enum result ret = this->source->evaluate( this->source, vars, &var );
	if( ret ) {
		dispose_temporary( dest );
		dest->number_value = var.number_value;
		dest->string_value = var.string_value;
	}
	return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
xorps %xmm0, %xmm0
movq %rsp, %rdx
movaps %xmm0, (%rdx)
movq 0x10(%rsi), %r14
movslq (%rdi), %r15
movq 0x8(%rdi), %rdi
callq *0x18(%rdi)
movl %eax, %ebx
testl %eax, %eax
je 0x4188
shlq $0x4, %r15
leaq (%r14,%r15), %rdi
callq 0x3988
movl (%rsp), %eax
movl %eax, (%r14,%r15)
movq 0x8(%rsp), %rax
movq %rax, 0x8(%r14,%r15)
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: throw_interrupted
enum result throw_interrupted( struct variables *vars, struct expression *source ) {
	if( vars->func->env->worker ) {
		return throw_exit( vars, 0, "Interrupted." );
	} else {
		return throw( vars, source, 0, "Interrupted.");
	}
}

// Assembly:
pushq %rax
movq 0x18(%rdi), %rax
movq 0x40(%rax), %rax
cmpq $0x0, 0x3a0(%rax)
je 0x41cc
leaq 0xd005(%rip), %rdx      # 0x111c8
xorl %esi, %esi
callq 0x3b74
jmp 0x41da
leaq 0xcff5(%rip), %rcx      # 0x111c8
xorl %edx, %edx
callq 0x3bb2
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: is_instance
enum result is_instance( struct variable *var, struct structure *type, struct variables *vars, struct expression *source ) {
	char msg[ 128 ];
	struct structure *struc;
	if( var->string_value && var->string_value->type == ARRAY ) {
		struc = ( ( struct array * ) var->string_value )->structure;
		while( struc ) {
			if( type == struc ) {
				return OKAY;
			}
			struc = struc->super;
		}
	}
	if( vars ) {
		sprintf( msg, "Not an instance of '%.64s'.", type->str.string );
		return throw( vars, source, var->number_value, msg );
	}
	return EXCEPTION;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rdi, %r15
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x423e
cmpb $0x2, 0x14(%rax)
jne 0x423e
addq $0x28, %rax
pushq $0x1
popq %rbp
movq (%rax), %rcx
testq %rcx, %rcx
je 0x423e
leaq 0x30(%rcx), %rax
cmpq %rsi, %rcx
jne 0x422b
jmp 0x4272
testq %r14, %r14
je 0x4270
movq 0x8(%rsi), %rdx
leaq 0xcf87(%rip), %rsi      # 0x111d5
xorl %ebp, %ebp
movq %rsp, %r12
movq %r12, %rdi
xorl %eax, %eax
callq 0x3200
movl (%r15), %edx
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rcx
callq 0x3bb2
jmp 0x4272
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: evaluate_string
enum result evaluate_string( struct expression *expr, struct variables *vars, struct variable *result ) {
	enum result ret = expr->evaluate( expr, vars, result );
	if( ret && result->string_value == NULL ) {
		ret = throw( vars, expr, 0, "Not a string." );
	}
	return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r14
callq *0x18(%rdi)
testl %eax, %eax
je 0x42be
movl %eax, %ebx
cmpq $0x0, 0x8(%r12)
jne 0x42c0
leaq 0xcf44(%rip), %rcx      # 0x111f1
xorl %ebx, %ebx
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3bb2
jmp 0x42c0
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: evaluate_element
enum result evaluate_element( struct expression *expr, struct variables *vars, struct variable *result, int allow_null ) {
	enum result ret = expr->evaluate( expr, vars, result );
	if( ret ) {
		if( result->string_value ) {
			if( result->string_value->type == ELEMENT ) {
				return ret;
			}
		} else if( allow_null && !result->number_value ) {
			return ret;
		}
		ret = throw( vars, expr, 0, "Not an element." );
		dispose_variable( result );
	}
	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %r12d
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
callq *0x18(%rdi)
testl %eax, %eax
je 0x42fc
movl %eax, %ebp
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x4300
cmpb $0x1, 0x14(%rax)
jne 0x430a
jmp 0x4328
xorl %ebp, %ebp
jmp 0x4328
testl %r12d, %r12d
je 0x430a
cmpl $0x0, (%rbx)
je 0x4328
leaq 0xceee(%rip), %rcx      # 0x111ff
xorl %ebp, %ebp
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3bb2
movq %rbx, %rdi
callq 0x3896
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: to_int
enum result to_int( struct variable *var, int *result, struct variables *vars, struct expression *source ) {
	number value;
	enum result ret;
	if( var->string_value ) {
		if( var->string_value->type == CUSTOM && ( ( struct custom * ) var->string_value )->type->to_num ) {
			ret = ( ( struct custom * ) var->string_value )->type->to_num( var, &value, vars, source );
		} else {
			ret = throw( vars, source, 0, "Not a number." );
		}
		if( ret ) {
			*result = ( long_int ) value;
		}
		return ret;
	}
	*result = ( long_int ) var->number_value;
	return OKAY;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x4385
cmpb $0x9, 0x14(%rax)
jne 0x436a
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x436a
leaq 0x4(%rsp), %rsi
callq *%rax
testl %eax, %eax
je 0x4395
movl %eax, %ebp
movl 0x4(%rsp), %eax
movl %eax, (%rbx)
jmp 0x438c
leaq 0xce49(%rip), %rax      # 0x111ba
xorl %ebp, %ebp
movq %rdx, %rdi
movq %rcx, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x3bb2
jmp 0x438c
movl (%rdi), %eax
movl %eax, (%rbx)
pushq $0x1
popq %rbp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
xorl %ebp, %ebp
jmp 0x438c
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: to_num
enum result to_num( struct variable *var, number *result, struct variables *vars, struct expression *source ) {
	if( var->string_value ) {
		if( var->string_value->type == CUSTOM && ( ( struct custom * ) var->string_value )->type->to_num ) {
			return ( ( struct custom * ) var->string_value )->type->to_num( var, result, vars, source );
		} else {
			return throw( vars, source, 0, "Not a number." );
		}
	}
	*result = var->number_value;
	return OKAY;
}

// Assembly:
pushq %rbx
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x43d4
cmpb $0x9, 0x14(%rax)
jne 0x43b9
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x43b9
popq %rbx
jmpq *%rax
leaq 0xcdfa(%rip), %rax      # 0x111ba
xorl %ebx, %ebx
movq %rdx, %rdi
movq %rcx, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x3bb2
jmp 0x43db
movl (%rdi), %eax
movl %eax, (%rsi)
pushq $0x1
popq %rbx
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: assign_array_variable
enum result assign_array_variable( struct variable *src, struct array *arr, int idx, struct variables *vars, struct expression *source ) {
	struct string *str;
	if( arr->string_values ) {
		arr->number_values[ idx ] = src->number_value;
		str = arr->string_values[ idx ];
		if( str ) {
			unref_string( str );
		}
		str = src->string_value;
		arr->string_values[ idx ] = str;
		if( str ) {
			str->reference_count++;
		}
		return OKAY;
	}
	return to_num( src, &arr->number_values[ idx ], vars, source );
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x20(%rsi), %rax
testq %rax, %rax
je 0x442b
movl (%rbx), %ecx
movq 0x18(%r14), %rsi
movslq %edx, %r15
movl %ecx, (%rsi,%r15,4)
movq (%rax,%r15,8), %rdi
testq %rdi, %rdi
je 0x4412
callq 0x38b2
movq 0x20(%r14), %rax
movq 0x8(%rbx), %rcx
movq %rcx, (%rax,%r15,8)
testq %rcx, %rcx
je 0x4422
incq (%rcx)
pushq $0x1
popq %rax
popq %rbx
popq %r14
popq %r15
retq
movslq %edx, %rsi
shlq $0x2, %rsi
addq 0x18(%r14), %rsi
movq %rbx, %rdi
movq %rcx, %rdx
movq %r8, %rcx
popq %rbx
popq %r14
popq %r15
jmp 0x4399
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: evaluate_number
enum result evaluate_number( struct expression *expr, struct variables *vars, number *result ) {
	enum result ret;
	struct variable var, *local;
	if( expr->evaluate == evaluate_number_literal_expression ) {
		*result = ( ( struct value_expression * ) expr )->num;
		return OKAY;
	} else if( expr->evaluate == evaluate_local ) {
		local = &vars->locals[ expr->index ];
		if( local->string_value ) {
			return to_num( local, result, vars, expr );
		}
		*result = local->number_value;
		return OKAY;
	}
	var.number_value = 0;
	var.string_value = NULL;
	ret = expr->evaluate( expr, vars, &var );
	if( ret ) {
		if( var.string_value ) {
			ret = to_num( &var, result, vars, expr );
			dispose_temporary( &var );
		} else {
			*result = var.number_value;
		}
	}
	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rdi, %r14
movq 0x18(%rdi), %rax
leaq -0xa9b(%rip), %rcx      # 0x39cb
cmpq %rcx, %rax
je 0x44b9
movq %rsi, %r15
leaq -0x3fa(%rip), %rcx      # 0x407b
cmpq %rcx, %rax
je 0x44c4
movq %rsp, %rdx
andl $0x0, (%rdx)
andq $0x0, 0x8(%rdx)
movq %r14, %rdi
movq %r15, %rsi
callq *%rax
testl %eax, %eax
je 0x44f6
cmpq $0x0, 0x8(%rsp)
je 0x44fa
movq %rsp, %r12
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x4399
movl %eax, %ebp
movq %r12, %rdi
callq 0x3988
jmp 0x4501
movl 0x28(%r14), %eax
movl %eax, (%rbx)
pushq $0x1
popq %rbp
jmp 0x4501
movq 0x10(%r15), %rax
movslq 0x4(%r14), %rcx
shlq $0x4, %rcx
leaq (%rax,%rcx), %rdi
cmpq $0x0, 0x8(%rax,%rcx)
je 0x4510
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x4399
xorl %ebp, %ebp
jmp 0x4501
movl %eax, %ebp
movl (%rsp), %eax
movl %eax, (%rbx)
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl (%rdi), %eax
jmp 0x44bd
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: evaluate_integer
enum result evaluate_integer( struct expression *expr, struct variables *vars, int *result ) {
	enum result ret;
	struct variable var, *local;
	if( expr->evaluate == evaluate_number_literal_expression ) {
		*result = expr->index;
		return OKAY;
	} else if( expr->evaluate == evaluate_local ) {
		local = &vars->locals[ expr->index ];
		if( local->string_value ) {
			return to_int( local, result, vars, expr );
		}
		*result = ( long_int ) local->number_value;
		return OKAY;
	}
	var.number_value = 0;
	var.string_value = NULL;
	ret = expr->evaluate( expr, vars, &var );
	if( ret ) {
		if( var.string_value ) {
			ret = to_int( &var, result, vars, expr );
			dispose_temporary( &var );
		} else {
			*result = ( long_int ) var.number_value;
		}
	}
	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rdi, %r14
movq 0x18(%rdi), %rax
leaq -0xb66(%rip), %rcx      # 0x39cb
cmpq %rcx, %rax
je 0x4584
movq %rsi, %r15
leaq -0x4c5(%rip), %rcx      # 0x407b
cmpq %rcx, %rax
je 0x458f
movq %rsp, %rdx
andl $0x0, (%rdx)
andq $0x0, 0x8(%rdx)
movq %r14, %rdi
movq %r15, %rsi
callq *%rax
testl %eax, %eax
je 0x45c1
cmpq $0x0, 0x8(%rsp)
je 0x45c5
movq %rsp, %r12
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x4333
movl %eax, %ebp
movq %r12, %rdi
callq 0x3988
jmp 0x45cc
movl 0x4(%r14), %eax
movl %eax, (%rbx)
pushq $0x1
popq %rbp
jmp 0x45cc
movq 0x10(%r15), %rax
movslq 0x4(%r14), %rcx
shlq $0x4, %rcx
leaq (%rax,%rcx), %rdi
cmpq $0x0, 0x8(%rax,%rcx)
je 0x45db
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x4333
xorl %ebp, %ebp
jmp 0x45cc
movl %eax, %ebp
movl (%rsp), %eax
movl %eax, (%rbx)
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl (%rdi), %eax
jmp 0x4588
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: evaluate_custom
enum result evaluate_custom( struct expression *expr, struct custom_type *type, struct variables *vars, struct variable *result ) {
	char msg[ 128 ];
	enum result ret = expr->evaluate( expr, vars, result );
	if( ret ) {
		if( is_custom_instance( result->string_value, type ) ) {
			return ret;
		}
		sprintf( msg, "Not an instance of '%.64s'.", type->name );
		ret = throw( vars, expr, 0, msg );
		dispose_variable( result );
	}
	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r15
movq %rdx, %rsi
movq %rcx, %rdx
callq *0x18(%rdi)
testl %eax, %eax
je 0x4669
movl %eax, %ebp
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x4635
cmpb $0x9, 0x14(%rax)
jne 0x4635
cmpq %r12, 0x18(%rax)
je 0x466b
movq (%r12), %rdx
leaq 0xcb95(%rip), %rsi      # 0x111d5
xorl %ebp, %ebp
movq %rsp, %r12
movq %r12, %rdi
xorl %eax, %eax
callq 0x3200
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %r12, %rcx
callq 0x3bb2
movq %rbx, %rdi
callq 0x3896
jmp 0x466b
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/martincameron[P]towntalk/towntalk.c
// Function: execute_increment_statement
enum result execute_increment_statement( struct statement *this,
	struct variables *vars, struct variable *result ) {
	struct variable *local = &vars->locals[ this->local ];
	if( local->string_value ) {
		return throw( vars, this->source, 0, "Not a number." );
	}
	local->number_value++;
	return OKAY;
}

// Assembly:
pushq %rbx
movq 0x10(%rsi), %rax
movslq (%rdi), %rcx
shlq $0x4, %rcx
cmpq $0x0, 0x8(%rax,%rcx)
je 0x481a
movq 0x8(%rdi), %rax
leaq 0xc9b1(%rip), %rcx      # 0x111ba
xorl %ebx, %ebx
movq %rsi, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x3bb2
jmp 0x4822
addq %rcx, %rax
incl (%rax)
pushq $0x1
popq %rbx
movl %ebx, %eax
popq %rbx
retq