LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/lex.zconf.c
// Function: append_string
void append_string(const char *str, int size)
{
	int new_size = text_size + size + 1;
	if (new_size > text_asize) {
		text = realloc(text, new_size);
		text_asize = new_size;
		text_ptr = text + text_size;
	}
	memcpy(text_ptr, str, size);
	text_ptr += size;
	text_size += size;
	*text_ptr = 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %esi, %r15d
movq %rdi, %r14
movslq 0xea77(%rip), %rbx      # 0x14d60
leal (%rbx,%r15), %r13d
cmpl 0xea5c(%rip), %r13d     # 0x14d50
jge 0x62ff
movq 0xea5b(%rip), %rbx      # 0x14d58
jmp 0x6323
leal 0x1(%r13), %r12d
movq 0xea3e(%rip), %rdi      # 0x14d48
movq %r12, %rsi
callq 0x2270
movq %rax, 0xea2f(%rip)      # 0x14d48
movl %r12d, 0xea30(%rip)     # 0x14d50
addq %rax, %rbx
movslq %r15d, %r15
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x21f0
leaq (%rbx,%r15), %rax
movq %rax, 0xea19(%rip)      # 0x14d58
movl %r13d, 0xea1a(%rip)     # 0x14d60
movb $0x0, (%rbx,%r15)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/lex.zconf.c
// Function: zconfensure_buffer_stack
static void zconfensure_buffer_stack (void)
{
	int num_to_alloc;
    
	if (!(yy_buffer_stack)) {

		/* First allocation is just for 2 elements, since we don't know if this
		 * scanner will even need a stack. We use 2 instead of 1 to avoid an
		 * immediate realloc on the next call.
         */
		num_to_alloc = 1;
		(yy_buffer_stack) = (struct yy_buffer_state**)zconfalloc
								(num_to_alloc * sizeof(struct yy_buffer_state*)
								);
		
		memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
				
		(yy_buffer_stack_max) = num_to_alloc;
		(yy_buffer_stack_top) = 0;
		return;
	}

	if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){

		/* Increase the buffer to prepare for a possible push. */
		int grow_size = 8 /* arbitrary grow size */;

		num_to_alloc = (yy_buffer_stack_max) + grow_size;
		(yy_buffer_stack) = (struct yy_buffer_state**)zconfrealloc
								((yy_buffer_stack),
								num_to_alloc * sizeof(struct yy_buffer_state*)
								);

		/* zero only the new slots.*/
		memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
		(yy_buffer_stack_max) = num_to_alloc;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0xe9d5(%rip), %rdi      # 0x14d70
testq %rdi, %rdi
je 0x6400
movq 0xfa39(%rip), %rbx      # 0x15de0
leaq -0x1(%rbx), %rax
cmpq %rax, 0xe9c6(%rip)      # 0x14d78
jb 0x6426
movq %rbx, %rax
shlq $0x20, %rax
movabsq $0x800000000, %rcx      # imm = 0x800000000
addq %rax, %rcx
movq %rcx, %r14
sarq $0x20, %r14
shrq $0x1d, %rcx
movl %ecx, %esi
callq 0x2270
movq %rax, 0xe98f(%rip)      # 0x14d70
xorps %xmm0, %xmm0
movups %xmm0, (%rax,%rbx,8)
movups %xmm0, 0x30(%rax,%rbx,8)
movups %xmm0, 0x20(%rax,%rbx,8)
movups %xmm0, 0x10(%rax,%rbx,8)
movq %r14, 0xf9e2(%rip)      # 0x15de0
jmp 0x6426
pushq $0x8
popq %rdi
callq 0x2230
movq %rax, 0xe961(%rip)      # 0x14d70
andq $0x0, (%rax)
movq $0x1, 0xf9c2(%rip) # 0x15de0
andq $0x0, 0xe952(%rip)      # 0x14d78
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/lex.zconf.c
// Function: zconf_create_buffer
YY_BUFFER_STATE zconf_create_buffer  (FILE * file, int  size )
{
	YY_BUFFER_STATE b;
    
	b = (YY_BUFFER_STATE) zconfalloc(sizeof( struct yy_buffer_state )  );
	if ( ! b )
		YY_FATAL_ERROR( "out of dynamic memory in zconf_create_buffer()" );

	b->yy_buf_size = size;

	/* yy_ch_buf has to be 2 characters longer than the size given because
	 * we need to put in 2 end-of-buffer characters.
	 */
	b->yy_ch_buf = (char *) zconfalloc(b->yy_buf_size + 2  );
	if ( ! b->yy_ch_buf )
		YY_FATAL_ERROR( "out of dynamic memory in zconf_create_buffer()" );

	b->yy_is_our_buffer = 1;

	zconf_init_buffer(b,file );

	return b;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %r15d
movq %rdi, %rbx
pushq $0x40
popq %rdi
callq 0x2230
testq %rax, %rax
je 0x647e
movq %rax, %r14
movl %r15d, 0x18(%rax)
addl $0x2, %r15d
movq %r15, %rdi
callq 0x2230
movq %rax, 0x8(%r14)
testq %rax, %rax
je 0x647e
movl $0x1, 0x20(%r14)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6599
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x9305(%rip), %rdi      # 0xf78a
callq 0x64ce
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/lex.zconf.c
// Function: zconf_load_buffer_state
static void zconf_load_buffer_state  (void)
{
    	(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
	(yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
	zconfin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
	(yy_hold_char) = *(yy_c_buf_p);
}

// Assembly:
movq 0xe8df(%rip), %rax      # 0x14d70
movq 0xe8e0(%rip), %rcx      # 0x14d78
movq (%rax,%rcx,8), %rdx
movl 0x1c(%rdx), %esi
movl %esi, 0xe913(%rip)      # 0x14db8
movq 0x10(%rdx), %rdx
movq %rdx, 0xe8d0(%rip)      # 0x14d80
movq %rdx, 0xe8d9(%rip)      # 0x14d90
movq (%rax,%rcx,8), %rax
movq (%rax), %rax
movq %rax, 0xe86b(%rip)      # 0x14d30
movb (%rdx), %al
movb %al, 0xe8bb(%rip)       # 0x14d88
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/lex.zconf.c
// Function: yy_get_previous_state
static yy_state_type yy_get_previous_state (void)
{
	register yy_state_type yy_current_state;
	register char *yy_cp;
    
	yy_current_state = (yy_start);

	for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
		{
		yy_current_state = yy_nxt[yy_current_state][(*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1)];
		}

	return yy_current_state;
}

// Assembly:
movl 0xe870(%rip), %eax      # 0x14d68
movq 0xe891(%rip), %rcx      # 0x14d90
movq 0xe87a(%rip), %rdx      # 0x14d80
pushq $0x1
popq %rsi
leaq 0x48b0(%rip), %rdi      # 0xadc0
leaq 0x8759(%rip), %r8       # 0xec70
cmpq %rdx, %rcx
jae 0x653f
movzbl (%rcx), %r10d
movq %rsi, %r9
testq %r10, %r10
je 0x652c
movslq (%r8,%r10,4), %r9
cltq
imulq $0x4c, %rax, %rax
addq %rdi, %rax
movswl (%rax,%r9,2), %eax
incq %rcx
jmp 0x6517
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/lex.zconf.c
// Function: zconfrestart
void zconfrestart  (FILE * input_file )
{
    
	if ( ! YY_CURRENT_BUFFER ){
        zconfensure_buffer_stack ();
		YY_CURRENT_BUFFER_LVALUE =
            zconf_create_buffer(zconfin,YY_BUF_SIZE );
	}

	zconf_init_buffer(YY_CURRENT_BUFFER,input_file );
	zconf_load_buffer_state( );
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0xe825(%rip), %rax      # 0x14d70
testq %rax, %rax
je 0x6560
movq 0xe821(%rip), %rcx      # 0x14d78
movq (%rax,%rcx,8), %rdi
testq %rdi, %rdi
jne 0x658b
callq 0x6390
movq 0xe7c4(%rip), %rdi      # 0x14d30
movl $0x4000, %esi           # imm = 0x4000
callq 0x642e
movq %rax, %rdi
movq 0xe7f0(%rip), %rax      # 0x14d70
movq 0xe7f1(%rip), %rcx      # 0x14d78
movq %rdi, (%rax,%rcx,8)
movq %rbx, %rsi
callq 0x6599
popq %rbx
jmp 0x648a
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/lex.zconf.c
// Function: zconf_init_buffer
static void zconf_init_buffer  (YY_BUFFER_STATE  b, FILE * file )

{
	int oerrno = errno;
    
	zconf_flush_buffer(b );

	b->yy_input_file = file;
	b->yy_fill_buffer = 1;

    /* If b is the current buffer, then zconf_init_buffer was _probably_
     * called from zconfrestart() or through yy_get_next_buffer.
     * In that case, we don't want to reset the lineno or column.
     */
    if (b != YY_CURRENT_BUFFER){
        b->yy_bs_lineno = 1;
        b->yy_bs_column = 0;
    }

        b->yy_is_interactive = 0;
    
	errno = oerrno;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
callq 0x2060
movq %rax, %r14
movl (%rax), %ebp
movq %rbx, %rdi
callq 0x66be
movq %r15, (%rbx)
movl $0x1, 0x34(%rbx)
movq 0xe7a7(%rip), %rax      # 0x14d70
testq %rax, %rax
je 0x65db
movq 0xe7a3(%rip), %rcx      # 0x14d78
movq (%rax,%rcx,8), %rax
jmp 0x65dd
xorl %eax, %eax
cmpq %rbx, %rax
je 0x65ea
movq $0x1, 0x2c(%rbx)
andl $0x0, 0x24(%rbx)
movl %ebp, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/lex.zconf.c
// Function: zconf_switch_to_buffer
void zconf_switch_to_buffer  (YY_BUFFER_STATE  new_buffer )
{
    
	/* TODO. We should be able to replace this entire function body
	 * with
	 *		zconfpop_buffer_state();
	 *		zconfpush_buffer_state(new_buffer);
     */
	zconfensure_buffer_stack ();
	if ( YY_CURRENT_BUFFER == new_buffer )
		return;

	if ( YY_CURRENT_BUFFER )
		{
		/* Flush out information for old buffer. */
		*(yy_c_buf_p) = (yy_hold_char);
		YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
		}

	YY_CURRENT_BUFFER_LVALUE = new_buffer;
	zconf_load_buffer_state( );

	/* We don't actually know whether we did this switch during
	 * EOF (zconfwrap()) processing, but the only time this flag
	 * is looked at is after zconfwrap() is called, so it's safe
	 * to go ahead and always set it.
	 */
	(yy_did_buffer_switch_on_eof) = 1;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x6390
movq 0xe764(%rip), %rax      # 0x14d70
testq %rax, %rax
je 0x664c
movq 0xe760(%rip), %rcx      # 0x14d78
movq (%rax,%rcx,8), %rdx
cmpq %rbx, %rdx
je 0x6662
testq %rdx, %rdx
je 0x6658
movb 0xe75c(%rip), %dl       # 0x14d88
movq 0xe74d(%rip), %rsi      # 0x14d80
movb %dl, (%rsi)
movq (%rax,%rcx,8), %rdx
movq %rsi, 0x10(%rdx)
movl 0xe775(%rip), %edx      # 0x14db8
movq (%rax,%rcx,8), %rsi
movl %edx, 0x1c(%rsi)
jmp 0x6658
testq %rbx, %rbx
je 0x6662
movq 0xe720(%rip), %rcx      # 0x14d78
movq %rbx, (%rax,%rcx,8)
popq %rbx
jmp 0x648a
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/lex.zconf.c
// Function: zconf_delete_buffer
void zconf_delete_buffer (YY_BUFFER_STATE  b )
{
    
	if ( ! b )
		return;

	if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
		YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;

	if ( b->yy_is_our_buffer )
		zconffree((void *) b->yy_ch_buf  );

	zconffree((void *) b  );
}

// Assembly:
testq %rdi, %rdi
je 0x668d
pushq %rbx
movq %rdi, %rbx
movq 0xe6f5(%rip), %rax      # 0x14d70
testq %rax, %rax
je 0x668e
movq 0xe6f1(%rip), %rcx      # 0x14d78
movq (%rax,%rcx,8), %rcx
jmp 0x6690
retq
xorl %ecx, %ecx
cmpq %rbx, %rcx
jne 0x66a1
movq 0xe6dc(%rip), %rcx      # 0x14d78
andq $0x0, (%rax,%rcx,8)
cmpl $0x0, 0x20(%rbx)
je 0x66b0
movq 0x8(%rbx), %rdi
callq 0x2040
movq %rbx, %rdi
popq %rbx
jmp 0x2040
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/lex.zconf.c
// Function: zconfpush_buffer_state
void zconfpush_buffer_state (YY_BUFFER_STATE new_buffer )
{
    	if (new_buffer == NULL)
		return;

	zconfensure_buffer_stack();

	/* This block is copied from zconf_switch_to_buffer. */
	if ( YY_CURRENT_BUFFER )
		{
		/* Flush out information for old buffer. */
		*(yy_c_buf_p) = (yy_hold_char);
		YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
		YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
		}

	/* Only push if top exists. Otherwise, replace top. */
	if (YY_CURRENT_BUFFER)
		(yy_buffer_stack_top)++;
	YY_CURRENT_BUFFER_LVALUE = new_buffer;

	/* copied from zconf_switch_to_buffer. */
	zconf_load_buffer_state( );
	(yy_did_buffer_switch_on_eof) = 1;
}

// Assembly:
testq %rdi, %rdi
je 0x676a
pushq %rbx
movq %rdi, %rbx
callq 0x6390
movq 0xe651(%rip), %rax      # 0x14d70
movq 0xe652(%rip), %rcx      # 0x14d78
testq %rax, %rax
je 0x6760
cmpq $0x0, (%rax,%rcx,8)
je 0x6760
movb 0xe650(%rip), %dl       # 0x14d88
movq 0xe641(%rip), %rsi      # 0x14d80
movb %dl, (%rsi)
movq (%rax,%rcx,8), %rdx
movq %rsi, 0x10(%rdx)
movl 0xe669(%rip), %edx      # 0x14db8
movq (%rax,%rcx,8), %rsi
movl %edx, 0x1c(%rsi)
incq %rcx
movq %rcx, 0xe618(%rip)      # 0x14d78
movq %rbx, (%rax,%rcx,8)
popq %rbx
jmp 0x648a
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/lex.zconf.c
// Function: zconfpop_buffer_state
void zconfpop_buffer_state (void)
{
    	if (!YY_CURRENT_BUFFER)
		return;

	zconf_delete_buffer(YY_CURRENT_BUFFER );
	YY_CURRENT_BUFFER_LVALUE = NULL;
	if ((yy_buffer_stack_top) > 0)
		--(yy_buffer_stack_top);

	if (YY_CURRENT_BUFFER) {
		zconf_load_buffer_state( );
		(yy_did_buffer_switch_on_eof) = 1;
	}
}

// Assembly:
pushq %rax
movq 0xe5fd(%rip), %rax      # 0x14d70
testq %rax, %rax
je 0x67be
movq 0xe5f9(%rip), %rcx      # 0x14d78
movq (%rax,%rcx,8), %rdi
testq %rdi, %rdi
je 0x67be
callq 0x666b
movq 0xe5dc(%rip), %rax      # 0x14d70
movq 0xe5dd(%rip), %rcx      # 0x14d78
andq $0x0, (%rax,%rcx,8)
testq %rcx, %rcx
je 0x67be
leaq -0x1(%rcx), %rdx
movq %rdx, 0xe5c8(%rip)      # 0x14d78
cmpq $0x0, -0x8(%rax,%rcx,8)
je 0x67be
popq %rax
jmp 0x648a
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/lex.zconf.c
// Function: zconf_scan_bytes
YY_BUFFER_STATE zconf_scan_bytes  (yyconst char * bytes, int  len )
{
	YY_BUFFER_STATE b;
	char *buf;
	yy_size_t n;
	int i;
    
	/* Get memory for full buffer, including space for trailing EOB's. */
	n = len + 2;
	buf = (char *) zconfalloc(n  );
	if ( ! buf )
		YY_FATAL_ERROR( "out of dynamic memory in zconf_scan_bytes()" );

	for ( i = 0; i < len; ++i )
		buf[i] = bytes[i];

	buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;

	b = zconf_scan_buffer(buf,n );
	if ( ! b )
		YY_FATAL_ERROR( "bad buffer in zconf_scan_bytes()" );

	/* It's okay to grow etc. this buffer, and we should throw it
	 * away when we're done.
	 */
	b->yy_is_our_buffer = 1;

	return b;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %r14d
movq %rdi, %r15
leal 0x2(%r14), %ebx
movq %rbx, %rdi
callq 0x2230
testq %rax, %rax
je 0x68b1
xorl %ecx, %ecx
testl %r14d, %r14d
movl $0x0, %edx
cmovgl %r14d, %edx
cmpq %rcx, %rdx
je 0x688d
movb (%r15,%rcx), %sil
movb %sil, (%rax,%rcx)
incq %rcx
jmp 0x687b
movslq %r14d, %rcx
andw $0x0, (%rax,%rcx)
movq %rax, %rdi
movl %ebx, %esi
callq 0x67c0
testq %rax, %rax
je 0x68bd
movl $0x1, 0x20(%rax)
popq %rbx
popq %r14
popq %r15
retq
leaq 0x8f2e(%rip), %rdi      # 0xf7e6
callq 0x64ce
leaq 0x8f4e(%rip), %rdi      # 0xf812
callq 0x64ce
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/lex.zconf.c
// Function: zconflex_destroy
int zconflex_destroy  (void)
{
    
    /* Pop the buffer stack, destroying each element. */
	while(YY_CURRENT_BUFFER){
		zconf_delete_buffer(YY_CURRENT_BUFFER  );
		YY_CURRENT_BUFFER_LVALUE = NULL;
		zconfpop_buffer_state();
	}

	/* Destroy the stack itself. */
	zconffree((yy_buffer_stack) );
	(yy_buffer_stack) = NULL;

    return 0;
}

// Assembly:
pushq %rax
movq 0xe454(%rip), %rdi      # 0x14d70
testq %rdi, %rdi
je 0x6953
movq 0xe450(%rip), %rax      # 0x14d78
movq (%rdi,%rax,8), %rax
testq %rax, %rax
je 0x6953
movq %rax, %rdi
callq 0x666b
movq 0xe430(%rip), %rax      # 0x14d70
movq 0xe431(%rip), %rcx      # 0x14d78
andq $0x0, (%rax,%rcx,8)
callq 0x676b
jmp 0x6915
callq 0x2040
andq $0x0, 0xe410(%rip)      # 0x14d70
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/lex.zconf.c
// Function: zconf_fopen
FILE *zconf_fopen(const char *name)
{
	char *env, fullname[PATH_MAX+1];
	FILE *f;

	f = fopen(name, "r");
	if (!f && name[0] != '/') {
		env = getenv(SRCTREE);
		if (env) {
			sprintf(fullname, "%s/%s", env, name);
			f = fopen(fullname, "r");
		}
	}
	return f;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x1008, %rsp           # imm = 0x1008
movq %rdi, %rbx
leaq 0x92dc(%rip), %rsi      # 0xfc5b
callq 0x2290
testq %rax, %rax
jne 0x69cc
cmpb $0x2f, (%rbx)
je 0x69ca
leaq 0x8e9e(%rip), %rdi      # 0xf833
callq 0x2030
testq %rax, %rax
je 0x69ca
leaq 0x8e95(%rip), %rsi      # 0xf83b
movq %rsp, %r14
movq %r14, %rdi
movq %rax, %rdx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x22e0
leaq 0x929b(%rip), %rsi      # 0xfc5b
movq %r14, %rdi
callq 0x2290
jmp 0x69cc
xorl %eax, %eax
addq $0x1008, %rsp           # imm = 0x1008
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/./menu.c
// Function: file_lookup
struct file *file_lookup(const char *name)
{
	struct file *file;

	for (file = file_list; file; file = file->next) {
		if (!strcmp(name, file->name))
			return file;
	}

	file = malloc(sizeof(*file));
	memset(file, 0, sizeof(*file));
	file->name = strdup(name);
	file->next = file_list;
	file_list = file;
	return file;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0xf3f3(%rip), %rbx      # 0x15dd8
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x69ff
movq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0x2190
testl %eax, %eax
jne 0x69e5
jmp 0x6a2a
pushq $0x1
popq %rdi
pushq $0x20
popq %rsi
callq 0x2180
movq %rax, %rbx
movq %r14, %rdi
callq 0x2310
movq %rax, 0x10(%rbx)
movq 0xf3b8(%rip), %rax      # 0x15dd8
movq %rax, (%rbx)
movq %rbx, 0xf3ae(%rip)      # 0x15dd8
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/./confdata.c
// Function: conf_get_default_confname
char *conf_get_default_confname(void)
{
	struct stat buf;
	static char fullname[4096+1];
	char *env, *name;

	name = conf_expand_value(conf_defname);
	env = getenv(SRCTREE);
	if (env) {
		sprintf(fullname, "%s/%s", env, name);
		if (!stat(fullname, &buf))
			return fullname;
	}
	return name;
}

// Assembly:
pushq %rbx
subq $0x90, %rsp
leaq 0x87dc(%rip), %rdi      # 0xf220
callq 0x6a9e
leaq 0x8de3(%rip), %rdi      # 0xf833
callq 0x2030
testq %rax, %rax
je 0x6a8b
leaq 0xe35f(%rip), %rbx      # 0x14dc0
leaq 0x8dd3(%rip), %rsi      # 0xf83b
leaq 0xf381(%rip), %rcx      # 0x15df0
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x22e0
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x21c0
testl %eax, %eax
je 0x6a92
leaq 0xf35e(%rip), %rbx      # 0x15df0
movq %rbx, %rax
addq $0x90, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/./confdata.c
// Function: conf_expand_value
static char *conf_expand_value(const char *in)
{
	struct symbol *sym;
	const char *src;
	static char res_value[SYMBOL_MAXLENGTH];
	char *dst, name[SYMBOL_MAXLENGTH];

	res_value[0] = 0;
	dst = name;
	while ((src = strchr(in, '$'))) {
		strncat(res_value, in, src - in);
		src++;
		dst = name;
		while (isalnum(*src) || *src == '_')
			*dst++ = *src++;
		*dst = 0;
		sym = sym_lookup(name, 0);
		sym_calc_value(sym);
		strcat(res_value, sym_get_string_value(sym));
		in = src;
	}
	strcat(res_value, in);

	return res_value;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdi, %r13
movb $0x0, 0xf337(%rip)      # 0x15df0
pushq $0x24
popq %rbx
leaq 0xf32d(%rip), %r14      # 0x15df0
movq %rsp, %r15
movq %r13, %rdi
movl %ebx, %esi
callq 0x20f0
testq %rax, %rax
je 0x6b45
movq %rax, %r12
movq %rax, %rdx
subq %r13, %rdx
movq %r14, %rdi
movq %r13, %rsi
callq 0x2130
callq 0x2320
xorl %ebp, %ebp
jmp 0x6af8
movb %cl, (%rsp,%rbp)
incq %rbp
movsbq 0x1(%r12,%rbp), %rcx
cmpq $0x5f, %rcx
je 0x6af2
movq (%rax), %rdx
movzwl (%rdx,%rcx,2), %edx
andl $0x8, %edx
jne 0x6af2
movb $0x0, (%rsp,%rbp)
movq %r15, %rdi
xorl %esi, %esi
callq 0x503a
movq %rax, %r13
movq %rax, %rdi
callq 0x71aa
movq %r13, %rdi
callq 0x7c9f
movq %r14, %rdi
movq %rax, %rsi
callq 0x22d0
leaq (%r12,%rbp), %r13
incq %r13
jmp 0x6ac6
leaq 0xf2a4(%rip), %rdi      # 0x15df0
movq %r13, %rsi
callq 0x22d0
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/./symbol.c
// Function: sym_find
struct symbol *sym_find(const char *name)
{
	struct symbol *symbol = NULL;
	const char *ptr;
	int hash = 0;

	if (!name)
		return NULL;

	if (name[0] && !name[1]) {
		switch (name[0]) {
		case 'y': return &symbol_yes;
		case 'm': return &symbol_mod;
		case 'n': return &symbol_no;
		}
	}
	for (ptr = name; *ptr; ptr++)
		hash += *ptr;
	hash &= 0xff;

	for (symbol = symbol_hash[hash]; symbol; symbol = symbol->next) {
		if (!strcmp(symbol->name, name) &&
		    !(symbol->flags & SYMBOL_CONST))
				break;
	}

	return symbol;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x7052
movq %rdi, %rbx
movzbl (%rdi), %eax
testl %eax, %eax
je 0x700d
cmpb $0x0, 0x1(%rbx)
je 0x7060
leaq 0x1(%rbx), %rdx
xorl %ecx, %ecx
testb %al, %al
je 0x7023
movzbl %al, %eax
addl %eax, %ecx
movb (%rdx), %al
incq %rdx
jmp 0x7013
movzbl %cl, %eax
leaq 0xd4f3(%rip), %rcx      # 0x14520
leaq (%rcx,%rax,8), %r14
movq (%r14), %r14
testq %r14, %r14
je 0x7052
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq 0x2190
testl %eax, %eax
jne 0x7031
testb $0x7, 0x44(%r14)
jne 0x7031
jmp 0x7055
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
cmpl $0x79, %eax
je 0x7081
cmpl $0x6e, %eax
je 0x7078
cmpl $0x6d, %eax
jne 0x700d
leaq 0xd292(%rip), %r14      # 0x14308
jmp 0x7055
leaq 0xd1a9(%rip), %r14      # 0x14228
jmp 0x7055
leaq 0xd210(%rip), %r14      # 0x14298
jmp 0x7055
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/./symbol.c
// Function: sym_string_valid
bool sym_string_valid(struct symbol *sym, const char *str)
{
	char ch;

	switch (sym->type) {
	case S_STRING:
		return true;
	case S_INT:
		ch = *str++;
		if (ch == '-')
			ch = *str++;
		if (!isdigit(ch))
			return false;
		if (ch == '0' && *str != 0)
			return false;
		while ((ch = *str++)) {
			if (!isdigit(ch))
				return false;
		}
		return true;
	case S_HEX:
		if (str[0] == '0' && (str[1] == 'x' || str[1] == 'X'))
			str += 2;
		ch = *str++;
		do {
			if (!isxdigit(ch))
				return false;
		} while ((ch = *str++));
		return true;
	case S_BOOLEAN:
	case S_TRISTATE:
		switch (str[0]) {
		case 'y': case 'Y':
		case 'm': case 'M':
		case 'n': case 'N':
			return true;
		}
		return false;
	default:
		return false;
	}
}

// Assembly:
movl 0x18(%rdi), %eax
decl %eax
cmpl $0x4, %eax
ja 0x70ff
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
leaq 0x345f(%rip), %rcx      # 0xa500
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb (%rbx), %cl
addb $-0x4d, %cl
cmpb $0x2d, %cl
jae 0x7124
movabsq $0x100300001003, %rax   # imm = 0x100300001003
shrq %cl, %rax
jmp 0x7170
movb $0x1, %al
jmp 0x7170
movb (%rbx), %bpl
cmpb $0x2d, %bpl
jne 0x7103
movb 0x1(%rbx), %bpl
addq $0x2, %rbx
jmp 0x7106
movb (%rbx), %bpl
cmpb $0x30, %bpl
jne 0x7143
movzbl 0x1(%rbx), %eax
orl $0x20, %eax
cmpl $0x78, %eax
jne 0x7140
movb 0x2(%rbx), %bpl
addq $0x2, %rbx
jmp 0x7143
xorl %eax, %eax
jmp 0x7176
incq %rbx
callq 0x2320
movq (%rax), %rcx
movsbq %bpl, %rax
testb $0x8, 0x1(%rcx,%rax,2)
je 0x7124
cmpb $0x30, %bpl
jne 0x7128
cmpb $0x0, (%rbx)
je 0x7128
xorl %eax, %eax
jmp 0x7170
movsbq (%rbx), %rdx
testq %rdx, %rdx
sete %al
je 0x7170
incq %rbx
testb $0x8, 0x1(%rcx,%rdx,2)
jne 0x7128
jmp 0x7170
movb $0x30, %bpl
callq 0x2320
movq (%rax), %rcx
incq %rbx
movsbq %bpl, %rax
movzwl (%rcx,%rax,2), %edx
andl $0x1000, %edx           # imm = 0x1000
movl %edx, %eax
shrl $0xc, %eax
testl %edx, %edx
je 0x7170
movb (%rbx), %bpl
incq %rbx
testb %bpl, %bpl
jne 0x714e
addq $0x8, %rsp
popq %rbx
popq %rbp
andb $0x1, %al
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/./symbol.c
// Function: sym_string_within_range
bool sym_string_within_range(struct symbol *sym, const char *str)
{
	struct property *prop;
	int val;

	switch (sym->type) {
	case S_STRING:
		return sym_string_valid(sym, str);
	case S_INT:
		if (!sym_string_valid(sym, str))
			return false;
		prop = sym_get_range_prop(sym);
		if (!prop)
			return true;
		val = strtol(str, NULL, 10);
		return val >= strtol(prop->expr->left.sym->name, NULL, 10) &&
		       val <= strtol(prop->expr->right.sym->name, NULL, 10);
	case S_HEX:
		if (!sym_string_valid(sym, str))
			return false;
		prop = sym_get_range_prop(sym);
		if (!prop)
			return true;
		val = strtol(str, NULL, 16);
		return val >= strtol(prop->expr->left.sym->name, NULL, 16) &&
		       val <= strtol(prop->expr->right.sym->name, NULL, 16);
	case S_BOOLEAN:
	case S_TRISTATE:
		switch (str[0]) {
		case 'y': case 'Y':
			return sym_tristate_within_range(sym, yes);
		case 'm': case 'M':
			return sym_tristate_within_range(sym, mod);
		case 'n': case 'N':
			return sym_tristate_within_range(sym, no);
		}
		return false;
	default:
		return false;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl 0x18(%rdi), %eax
decl %eax
cmpl $0x4, %eax
ja 0x7629
movq %rsi, %r15
movq %rdi, %r14
leaq 0x302e(%rip), %rcx      # 0xa514
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movzbl (%r15), %eax
xorl %ebx, %ebx
addl $-0x4d, %eax
cmpl $0x2c, %eax
ja 0x762b
movabsq $0x100000001, %rcx      # imm = 0x100000001
btq %rax, %rcx
jb 0x763f
movabsq $0x200000002, %rcx      # imm = 0x200000002
btq %rax, %rcx
jb 0x7638
movabsq $0x100000001000, %rcx   # imm = 0x100000001000
btq %rax, %rcx
jae 0x762b
pushq $0x2
jmp 0x7641
movq %r14, %rdi
movq %r15, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x708a
movq %r14, %rdi
movq %r15, %rsi
callq 0x708a
testb %al, %al
je 0x7629
movq %r14, %rdi
callq 0x963a
testq %rax, %rax
je 0x7654
movq %rax, %r14
xorl %ebx, %ebx
pushq $0xa
popq %rbp
movq %r15, %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x21d0
movslq %eax, %r15
movq 0x30(%r14), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x21d0
cmpq %rax, %r15
jl 0x762b
movq 0x30(%r14), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rdi
pushq $0xa
jmp 0x7619
movq %r14, %rdi
movq %r15, %rsi
callq 0x708a
testb %al, %al
je 0x7629
movq %r14, %rdi
callq 0x963a
testq %rax, %rax
je 0x7654
movq %rax, %r14
xorl %ebx, %ebx
pushq $0x10
popq %rbp
movq %r15, %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x21d0
movslq %eax, %r15
movq 0x30(%r14), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rdi
xorl %esi, %esi
movl %ebp, %edx
callq 0x21d0
cmpq %rax, %r15
jl 0x762b
movq 0x30(%r14), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rdi
pushq $0x10
popq %rdx
xorl %esi, %esi
callq 0x21d0
cmpq %rax, %r15
setle %bl
jmp 0x762b
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
xorl %esi, %esi
jmp 0x7645
pushq $0x1
popq %rsi
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x9735
movb $0x1, %bl
jmp 0x762b
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/./symbol.c
// Function: sym_clear_all_valid
void sym_clear_all_valid(void)
{
	struct symbol *sym;
	int i;

	for_all_symbols(i, sym)
		sym->flags &= ~SYMBOL_VALID;
	sym_change_count++;
}

// Assembly:
xorl %eax, %eax
leaq 0xc945(%rip), %rcx      # 0x14520
cmpq $0x101, %rax            # imm = 0x101
je 0x7c00
leaq (%rcx,%rax,8), %rdx
movq (%rdx), %rdx
testq %rdx, %rdx
je 0x7bfb
cmpl $0x6, 0x18(%rdx)
je 0x7be7
andb $0x7f, 0x44(%rdx)
jmp 0x7be7
incq %rax
jmp 0x7bdb
incl 0xd122(%rip)            # 0x14d28
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/./menu.c
// Function: menu_is_visible
bool menu_is_visible(struct menu *menu)
{
	struct menu *child;
	struct symbol *sym;
	tristate visible;

	if (!menu->prompt)
		return false;
	sym = menu->sym;
	if (sym) {
		sym_calc_value(sym);
		visible = menu->prompt->visible.tri;
	} else
		visible = menu->prompt->visible.tri = expr_calc_value(menu->prompt->visible.expr);

	if (visible != no)
		return true;
	if (!sym || sym_get_tristate_value(menu->sym) == no)
		return false;

	for (child = menu->list; child; child = child->next)
		if (menu_is_visible(child))
			return true;
	return false;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq 0x20(%rdi), %rax
testq %rax, %rax
je 0x7c59
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
testq %rdi, %rdi
je 0x7c5d
callq 0x71aa
movq 0x20(%rbx), %rax
movb $0x1, %bpl
cmpl $0x0, 0x28(%rax)
jne 0x7c73
movq 0x18(%rbx), %rax
cmpl $0x0, 0x28(%rax)
je 0x7c59
addq $0x10, %rbx
movq (%rbx), %rbx
testq %rbx, %rbx
setne %bpl
je 0x7c73
movq %rbx, %rdi
callq 0x7c07
testb %al, %al
je 0x7c3f
jmp 0x7c73
xorl %ebp, %ebp
jmp 0x7c73
movq 0x20(%rax), %rdi
callq 0x9165
movq 0x20(%rbx), %rcx
movl %eax, 0x28(%rcx)
testl %eax, %eax
setne %bpl
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/./menu.c
// Function: menu_get_prompt
const char *menu_get_prompt(struct menu *menu)
{
	if (menu->prompt)
		return menu->prompt->text;
	else if (menu->sym)
		return menu->sym->name;
	return NULL;
}

// Assembly:
movq 0x20(%rdi), %rax
testq %rax, %rax
je 0x7c8b
addq $0x18, %rax
jmp 0x7c98
movq 0x18(%rdi), %rax
testq %rax, %rax
je 0x7c9c
addq $0x8, %rax
movq (%rax), %rax
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/./menu.c
// Function: file_write_dep
int file_write_dep(const char *name)
{
	struct file *file;
	FILE *out;

	if (!name)
		name = ".config.cmd";
	out = fopen(".config.tmp", "w");
	if (!out)
		return 1;
	fprintf(out, "deps_config := \\\n");
	for (file = file_list; file; file = file->next) {
		if (file->next)
			fprintf(out, "\t%s \\\n", file->name);
		else
			fprintf(out, "\t%s\n", file->name);
	}
	fprintf(out, "\n.config include/system_configuration.h: $(deps_config)\n\n$(deps_config):\n");
	fclose(out);
	rename(".config.tmp", name);
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
testq %rdi, %rdi
leaq 0x81ff(%rip), %rbx      # 0xfed9
cmovneq %rdi, %rbx
leaq 0x8200(%rip), %rdi      # 0xfee5
leaq 0x8650(%rip), %rsi      # 0x1033c
callq 0x2290
testq %rax, %rax
je 0x7d7a
movq %rax, %r14
leaq 0x81ed(%rip), %rdi      # 0xfef1
pushq $0x11
popq %rsi
pushq $0x1
popq %rdx
movq %rax, %rcx
callq 0x2300
leaq 0xe0bf(%rip), %r15      # 0x15dd8
leaq 0x81ea(%rip), %r12      # 0xff0a
leaq 0x81dc(%rip), %r13      # 0xff03
movq (%r15), %r15
testq %r15, %r15
je 0x7d4a
cmpq $0x0, (%r15)
movq 0x10(%r15), %rdx
movq %r13, %rsi
cmoveq %r12, %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x21b0
jmp 0x7d27
leaq 0x81be(%rip), %rdi      # 0xff0f
pushq $0x49
popq %rsi
pushq $0x1
popq %rdx
movq %r14, %rcx
callq 0x2300
movq %r14, %rdi
callq 0x20d0
leaq 0x8177(%rip), %rdi      # 0xfee5
movq %rbx, %rsi
callq 0x22a0
xorl %eax, %eax
jmp 0x7d7d
pushq $0x1
popq %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/./expr.c
// Function: expr_copy
struct expr *expr_copy(struct expr *org)
{
	struct expr *e;

	if (!org)
		return NULL;

	e = malloc(sizeof(*org));
	memcpy(e, org, sizeof(*org));
	switch (org->type) {
	case E_SYMBOL:
		e->left = org->left;
		break;
	case E_NOT:
		e->left.expr = expr_copy(org->left.expr);
		break;
	case E_EQUAL:
	case E_UNEQUAL:
		e->left.sym = org->left.sym;
		e->right.sym = org->right.sym;
		break;
	case E_AND:
	case E_OR:
	case E_CHOICE:
		e->left.expr = expr_copy(org->left.expr);
		e->right.expr = expr_copy(org->right.expr);
		break;
	default:
		printf("can't copy type %d\n", e->type);
		free(e);
		e = NULL;
		break;
	}

	return e;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x7e44
movq %rdi, %r14
pushq $0x18
popq %rdi
callq 0x2230
movq %rax, %rbx
movq 0x10(%r14), %rax
movq %rax, 0x10(%rbx)
movups (%r14), %xmm0
movups %xmm0, (%rbx)
movl (%r14), %eax
decl %eax
cmpl $0x6, %eax
ja 0x7e2c
leaq 0x2740(%rip), %rcx      # 0xa53c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r14), %rdi
callq 0x7dc5
movq %rax, 0x8(%rbx)
movq 0x10(%r14), %rdi
callq 0x7dc5
movq %rax, 0x10(%rbx)
jmp 0x7e5b
movups 0x8(%r14), %xmm0
movups %xmm0, 0x8(%rbx)
jmp 0x7e5b
movl (%rbx), %esi
leaq 0x7d21(%rip), %rdi      # 0xfb56
xorl %eax, %eax
callq 0x2100
movq %rbx, %rdi
callq 0x2040
xorl %ebx, %ebx
jmp 0x7e5b
movq 0x8(%r14), %rdi
callq 0x7dc5
jmp 0x7e57
movq 0x8(%r14), %rax
movq %rax, 0x8(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/./expr.c
// Function: expr_free
void expr_free(struct expr *e)
{
	if (!e)
		return;

	switch (e->type) {
	case E_SYMBOL:
		break;
	case E_NOT:
		expr_free(e->left.expr);
		return;
	case E_EQUAL:
	case E_UNEQUAL:
		break;
	case E_OR:
	case E_AND:
		expr_free(e->left.expr);
		expr_free(e->right.expr);
		break;
	default:
		printf("how to free type %d?\n", e->type);
		break;
	}
	free(e);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
testq %rbx, %rbx
je 0x7ea7
movl (%rbx), %esi
cmpl $0x7, %esi
ja 0x7ea9
cmpl $0x3, %esi
jne 0x7e81
movq 0x8(%rbx), %rbx
jmp 0x7e6a
movl $0xb0, %eax
btl %esi, %eax
jb 0x7eb7
pushq $0x6
popq %rax
btl %esi, %eax
jae 0x7ea9
movq 0x8(%rbx), %rdi
callq 0x7e66
movq 0x10(%rbx), %rdi
callq 0x7e66
jmp 0x7eb7
popq %rbx
retq
leaq 0x7cba(%rip), %rdi      # 0xfb6a
xorl %eax, %eax
callq 0x2100
movq %rbx, %rdi
popq %rbx
jmp 0x2040
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/./expr.c
// Function: expr_eliminate_eq
void expr_eliminate_eq(struct expr **ep1, struct expr **ep2)
{
	if (!e1 || !e2)
		return;
	switch (e1->type) {
	case E_OR:
	case E_AND:
		__expr_eliminate_eq(e1->type, ep1, ep2);
	default:
		;
	}
	if (e1->type != e2->type) switch (e2->type) {
	case E_OR:
	case E_AND:
		__expr_eliminate_eq(e2->type, ep1, ep2);
	default:
		;
	}
	e1 = expr_eliminate_yn(e1);
	e2 = expr_eliminate_yn(e2);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq (%rdi), %r15
testq %r15, %r15
je 0x7f37
movq %rsi, %rbx
movq (%rsi), %rax
testq %rax, %rax
je 0x7f37
movq %rdi, %r14
movl (%r15), %edi
leal -0x1(%rdi), %ecx
cmpl $0x1, %ecx
ja 0x7efa
movq %r14, %rsi
movq %rbx, %rdx
callq 0x7f3d
movq (%r14), %r15
movl (%r15), %edi
movq (%rbx), %rax
movl (%rax), %eax
cmpl %eax, %edi
sete %cl
leal -0x1(%rax), %edx
cmpl $0x2, %edx
setae %dl
orb %cl, %dl
jne 0x7f1e
movl %eax, %edi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x7f3d
movq (%r14), %r15
movq %r15, %rdi
callq 0x8008
movq %r15, (%r14)
movq (%rbx), %r14
movq %r14, %rdi
callq 0x8008
movq %r14, (%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/./expr.c
// Function: _expr_eliminate_eq
static void __expr_eliminate_eq(enum expr_type type, struct expr **ep1, struct expr **ep2)
{
	if (e1->type == type) {
		__expr_eliminate_eq(type, &e1->left.expr, &e2);
		__expr_eliminate_eq(type, &e1->right.expr, &e2);
		return;
	}
	if (e2->type == type) {
		__expr_eliminate_eq(type, &e1, &e2->left.expr);
		__expr_eliminate_eq(type, &e1, &e2->right.expr);
		return;
	}
	if (e1->type == E_SYMBOL && e2->type == E_SYMBOL &&
	    e1->left.sym == e2->left.sym && (e1->left.sym->flags & (SYMBOL_YES|SYMBOL_NO)))
		return;
	if (!expr_eq(e1, e2))
		return;
	trans_count++;
	expr_free(e1); expr_free(e2);
	switch (type) {
	case E_OR:
		e1 = expr_alloc_symbol(&symbol_no);
		e2 = expr_alloc_symbol(&symbol_no);
		break;
	case E_AND:
		e1 = expr_alloc_symbol(&symbol_yes);
		e2 = expr_alloc_symbol(&symbol_yes);
		break;
	default:
		;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %ebp
movq (%r14), %rsi
movl (%rsi), %eax
cmpl %ebp, %eax
je 0x7f75
movq (%rbx), %rdx
movl (%rdx), %ecx
cmpl %ebp, %ecx
jne 0x7f8c
addq $0x8, %rdx
movl %ebp, %edi
movq %r14, %rsi
callq 0x7f3d
movq (%rbx), %rbx
addq $0x10, %rbx
jmp 0x7f4c
addq $0x8, %rsi
movl %ebp, %edi
movq %rbx, %rdx
callq 0x7f3d
movq (%r14), %r14
addq $0x10, %r14
jmp 0x7f4c
cmpl $0x7, %eax
jne 0x7fa0
cmpl $0x7, %ecx
jne 0x7fa0
movq 0x8(%rsi), %rax
cmpq 0x8(%rdx), %rax
je 0x7fd8
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x818b
testl %eax, %eax
je 0x7ffd
incl 0xde0f(%rip)            # 0x15dc4
movq (%r14), %rdi
callq 0x7e66
movq (%rbx), %rdi
callq 0x7e66
cmpl $0x1, %ebp
je 0x7fe0
cmpl $0x2, %ebp
jne 0x7ffd
leaq 0xc2c2(%rip), %r15      # 0x14298
jmp 0x7fe7
testb $0x5, 0x44(%rax)
jne 0x7ffd
jmp 0x7fa0
leaq 0xc241(%rip), %r15      # 0x14228
movq %r15, %rdi
callq 0x5567
movq %rax, (%r14)
movq %r15, %rdi
callq 0x5567
movq %rax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/./expr.c
// Function: expr_eq
int expr_eq(struct expr *e1, struct expr *e2)
{
	int res, old_count;

	if (e1->type != e2->type)
		return 0;
	switch (e1->type) {
	case E_EQUAL:
	case E_UNEQUAL:
		return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym;
	case E_SYMBOL:
		return e1->left.sym == e2->left.sym;
	case E_NOT:
		return expr_eq(e1->left.expr, e2->left.expr);
	case E_AND:
	case E_OR:
		e1 = expr_copy(e1);
		e2 = expr_copy(e2);
		old_count = trans_count;
		expr_eliminate_eq(&e1, &e2);
		res = (e1->type == E_SYMBOL && e2->type == E_SYMBOL &&
		       e1->left.sym == e2->left.sym);
		expr_free(e1);
		expr_free(e2);
		trans_count = old_count;
		return res;
	case E_CHOICE:
	case E_RANGE:
	case E_NONE:
		/* panic */;
	}

	print_expr(0, e1, 0);
	printf(" = ");
	print_expr(0, e2, 0);
	printf(" ?\n");

	return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
leaq 0x23bb(%rip), %rax      # 0xa558
xorl %ebx, %ebx
movl (%rdi), %ecx
cmpl (%r14), %ecx
jne 0x8268
decl %ecx
cmpl $0x6, %ecx
ja 0x824c
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq 0x8(%rdi), %rdi
movq 0x8(%r14), %r14
jmp 0x819f
callq 0x7dc5
leaq 0x8(%rsp), %rbx
movq %rax, (%rbx)
movq %r14, %rdi
callq 0x7dc5
movq %rsp, %rsi
movq %rax, (%rsi)
movl 0xdbdb(%rip), %ebp      # 0x15dc4
movq %rbx, %rdi
callq 0x7ec0
movq (%rbx), %rdi
xorl %ebx, %ebx
cmpl $0x7, (%rdi)
jne 0x8211
movq (%rsp), %rax
cmpl $0x7, (%rax)
jne 0x8211
movq 0x8(%rdi), %rcx
xorl %ebx, %ebx
cmpq 0x8(%rax), %rcx
sete %bl
callq 0x7e66
movq (%rsp), %rdi
callq 0x7e66
movl %ebp, 0xdb9f(%rip)      # 0x15dc4
jmp 0x8268
movq 0x8(%rdi), %rax
cmpq 0x8(%r14), %rax
jne 0x8268
movq 0x10(%rdi), %rax
xorl %ebx, %ebx
cmpq 0x10(%r14), %rax
jmp 0x8247
movq 0x8(%rdi), %rax
xorl %ebx, %ebx
cmpq 0x8(%r14), %rax
sete %bl
jmp 0x8268
leaq 0x792d(%rip), %rdi      # 0xfb80
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x2100
leaq 0x80f3(%rip), %rdi      # 0x10356
callq 0x20a0
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/./expr.c
// Function: expr_trans_bool
struct expr *expr_trans_bool(struct expr *e)
{
	if (!e)
		return NULL;
	switch (e->type) {
	case E_AND:
	case E_OR:
	case E_NOT:
		e->left.expr = expr_trans_bool(e->left.expr);
		e->right.expr = expr_trans_bool(e->right.expr);
		break;
	case E_UNEQUAL:
		// FOO!=n -> FOO
		if (e->left.sym->type == S_TRISTATE) {
			if (e->right.sym == &symbol_no) {
				e->type = E_SYMBOL;
				e->right.sym = NULL;
			}
		}
		break;
	default:
		;
	}
	return e;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rdi, %rdi
je 0x82f0
movl (%rbx), %eax
leal -0x1(%rax), %ecx
cmpl $0x3, %ecx
jae 0x82c9
movq 0x8(%rbx), %r14
movq %r14, %rdi
callq 0x8291
movq %r14, 0x8(%rbx)
movq 0x10(%rbx), %r14
movq %r14, %rdi
callq 0x8291
movq %r14, 0x10(%rbx)
jmp 0x82f0
cmpl $0x5, %eax
jne 0x82f0
movq 0x8(%rbx), %rax
cmpl $0x2, 0x18(%rax)
jne 0x82f0
leaq 0xbf49(%rip), %rax      # 0x14228
cmpq %rax, 0x10(%rbx)
jne 0x82f0
movl $0x7, (%rbx)
andq $0x0, 0x10(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/./expr.c
// Function: expr_eliminate_dups
struct expr *expr_eliminate_dups(struct expr *e)
{
	int oldcount;
	if (!e)
		return e;

	oldcount = trans_count;
	while (1) {
		trans_count = 0;
		switch (e->type) {
		case E_OR: case E_AND:
			expr_eliminate_dups1(e->type, &e, &e);
			expr_eliminate_dups2(e->type, &e, &e);
		default:
			;
		}
		if (!trans_count)
			break;
		e = expr_eliminate_yn(e);
	}
	trans_count = oldcount;
	return e;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, 0x8(%rsp)
testq %rdi, %rdi
je 0x8825
movq %rdi, %rbx
movl 0xd5f7(%rip), %ebp      # 0x15dc4
leaq 0x8(%rsp), %r14
andl $0x0, 0xd5eb(%rip)      # 0x15dc4
movl (%rbx), %edi
leal -0x1(%rdi), %eax
cmpl $0x1, %eax
ja 0x881d
movq %r14, %rsi
movq %r14, %rdx
callq 0x8833
movq 0x8(%rsp), %rax
movl (%rax), %edi
movq %r14, %rsi
movq %r14, %rdx
callq 0x8906
cmpl $0x0, 0xd5bd(%rip)      # 0x15dc4
movq 0x8(%rsp), %rbx
je 0x881d
movq %rbx, %rdi
callq 0x8008
movq %rbx, 0x8(%rsp)
jmp 0x87d2
movl %ebp, 0xd5a1(%rip)      # 0x15dc4
jmp 0x8827
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/./expr.c
// Function: expr_eliminate_dups1
static void expr_eliminate_dups1(enum expr_type type, struct expr **ep1, struct expr **ep2)
{
#define e1 (*ep1)
#define e2 (*ep2)
	struct expr *tmp;

	if (e1->type == type) {
		expr_eliminate_dups1(type, &e1->left.expr, &e2);
		expr_eliminate_dups1(type, &e1->right.expr, &e2);
		return;
	}
	if (e2->type == type) {
		expr_eliminate_dups1(type, &e1, &e2->left.expr);
		expr_eliminate_dups1(type, &e1, &e2->right.expr);
		return;
	}
	if (e1 == e2)
		return;

	switch (e1->type) {
	case E_OR: case E_AND:
		expr_eliminate_dups1(e1->type, &e1, &e1);
	default:
		;
	}

	switch (type) {
	case E_OR:
		tmp = expr_join_or(e1, e2);
		if (tmp) {
			expr_free(e1); expr_free(e2);
			e1 = expr_alloc_symbol(&symbol_no);
			e2 = tmp;
			trans_count++;
		}
		break;
	case E_AND:
		tmp = expr_join_and(e1, e2);
		if (tmp) {
			expr_free(e1); expr_free(e2);
			e1 = expr_alloc_symbol(&symbol_yes);
			e2 = tmp;
			trans_count++;
		}
		break;
	default:
		;
	}
#undef e1
#undef e2
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %ebp
movq (%r14), %rsi
movl (%rsi), %edi
cmpl %ebp, %edi
je 0x886a
movq (%rbx), %rdx
cmpl %ebp, (%rdx)
jne 0x8881
addq $0x8, %rdx
movl %ebp, %edi
movq %r14, %rsi
callq 0x8833
movq (%rbx), %rbx
addq $0x10, %rbx
jmp 0x8843
addq $0x8, %rsi
movl %ebp, %edi
movq %rbx, %rdx
callq 0x8833
movq (%r14), %r14
addq $0x10, %r14
jmp 0x8843
cmpq %rdx, %rsi
je 0x88fd
leal -0x1(%rdi), %eax
cmpl $0x1, %eax
ja 0x8899
movq %r14, %rsi
movq %r14, %rdx
callq 0x8833
cmpl $0x2, %ebp
je 0x88bf
cmpl $0x1, %ebp
jne 0x88fd
movq (%r14), %rdi
movq (%rbx), %rsi
callq 0x82fb
testq %rax, %rax
je 0x88fd
movq %rax, %r15
leaq 0xb96b(%rip), %r12      # 0x14228
jmp 0x88d9
movq (%r14), %rdi
movq (%rbx), %rsi
callq 0x84b7
testq %rax, %rax
je 0x88fd
movq %rax, %r15
leaq 0xb9bf(%rip), %r12      # 0x14298
movq (%r14), %rdi
callq 0x7e66
movq (%rbx), %rdi
callq 0x7e66
movq %r12, %rdi
callq 0x5567
movq %rax, (%r14)
movq %r15, (%rbx)
incl 0xd4c7(%rip)            # 0x15dc4
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/./expr.c
// Function: expr_contains_symbol
int expr_contains_symbol(struct expr *dep, struct symbol *sym)
{
	if (!dep)
		return 0;

	switch (dep->type) {
	case E_AND:
	case E_OR:
		return expr_contains_symbol(dep->left.expr, sym) ||
		       expr_contains_symbol(dep->right.expr, sym);
	case E_SYMBOL:
		return dep->left.sym == sym;
	case E_EQUAL:
	case E_UNEQUAL:
		return dep->left.sym == sym ||
		       dep->right.sym == sym;
	case E_NOT:
		return expr_contains_symbol(dep->left.expr, sym);
	default:
		;
	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x8
popq %r15
leaq 0x186c(%rip), %r12      # 0xa590
pushq $0x1
popq %rbp
pushq $0x10
popq %r13
xorl %eax, %eax
testq %r14, %r14
je 0x8d7d
movl (%r14), %ecx
decl %ecx
cmpl $0x6, %ecx
ja 0x8d7d
movslq (%r12,%rcx,4), %rdx
addq %r12, %rdx
movq %r15, %rcx
jmpq *%rdx
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq 0x8d08
movq %r13, %rcx
testl %eax, %eax
jne 0x8d6d
movq (%r14,%rcx), %r14
jmp 0x8d2b
movl %ebp, %eax
cmpq %rbx, 0x8(%r14)
je 0x8d7d
pushq $0x10
jmp 0x8d73
movl %ebp, %eax
jmp 0x8d7d
pushq $0x8
popq %rcx
xorl %eax, %eax
cmpq %rbx, (%r14,%rcx)
sete %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/./expr.c
// Function: expr_depends_symbol
bool expr_depends_symbol(struct expr *dep, struct symbol *sym)
{
	if (!dep)
		return false;

	switch (dep->type) {
	case E_AND:
		return expr_depends_symbol(dep->left.expr, sym) ||
		       expr_depends_symbol(dep->right.expr, sym);
	case E_SYMBOL:
		return dep->left.sym == sym;
	case E_EQUAL:
		if (dep->left.sym == sym) {
			if (dep->right.sym == &symbol_yes || dep->right.sym == &symbol_mod)
				return true;
		}
		break;
	case E_UNEQUAL:
		if (dep->left.sym == sym) {
			if (dep->right.sym == &symbol_no)
				return true;
		}
		break;
	default:
		;
	}
 	return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x180c(%rip), %r15      # 0xa5ac
testq %rbx, %rbx
setne %bpl
je 0x8e21
movl (%rbx), %eax
addl $-0x2, %eax
cmpl $0x5, %eax
ja 0x8e1f
movslq (%r15,%rax,4), %rax
addq %r15, %rax
jmpq *%rax
movq 0x8(%rbx), %rdi
movq %r14, %rsi
callq 0x8d8c
testb %al, %al
jne 0x8e21
movq 0x10(%rbx), %rbx
jmp 0x8da0
cmpq %r14, 0x8(%rbx)
jne 0x8e1f
leaq 0xb449(%rip), %rax      # 0x14228
cmpq %rax, 0x10(%rbx)
jne 0x8e1f
movb $0x1, %bpl
jmp 0x8e21
cmpq %r14, 0x8(%rbx)
sete %bpl
jmp 0x8e21
cmpq %r14, 0x8(%rbx)
jne 0x8e1f
movq 0x10(%rbx), %rax
leaq 0xb493(%rip), %rcx      # 0x14298
cmpq %rcx, %rax
sete %cl
leaq 0xb4f6(%rip), %rdx      # 0x14308
cmpq %rdx, %rax
sete %al
orb %cl, %al
movb $0x1, %bpl
jne 0x8e21
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/./expr.c
// Function: expr_extract_eq_and
struct expr *expr_extract_eq_and(struct expr **ep1, struct expr **ep2)
{
	struct expr *tmp = NULL;
	expr_extract_eq(E_AND, &tmp, ep1, ep2);
	if (tmp) {
		*ep1 = expr_eliminate_yn(*ep1);
		*ep2 = expr_eliminate_yn(*ep2);
	}
	return tmp;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x8(%rsp), %r15
andq $0x0, (%r15)
pushq $0x2
popq %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x8e8c
cmpq $0x0, (%r15)
je 0x8e80
movq (%r14), %r15
movq %r15, %rdi
callq 0x8008
movq %r15, (%r14)
movq (%rbx), %r14
movq %r14, %rdi
callq 0x8008
movq %r14, (%rbx)
movq 0x8(%rsp), %rax
jmp 0x8e82
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/saltyJeff[P]uClibcpp/extra/config/./expr.c
// Function: expr_extract_eq
void expr_extract_eq(enum expr_type type, struct expr **ep, struct expr **ep1, struct expr **ep2)
{
#define e1 (*ep1)
#define e2 (*ep2)
	if (e1->type == type) {
		expr_extract_eq(type, ep, &e1->left.expr, &e2);
		expr_extract_eq(type, ep, &e1->right.expr, &e2);
		return;
	}
	if (e2->type == type) {
		expr_extract_eq(type, ep, ep1, &e2->left.expr);
		expr_extract_eq(type, ep, ep1, &e2->right.expr);
		return;
	}
	if (expr_eq(e1, e2)) {
		*ep = *ep ? expr_alloc_two(type, *ep, e1) : e1;
		expr_free(e2);
		if (type == E_AND) {
			e1 = expr_alloc_symbol(&symbol_yes);
			e2 = expr_alloc_symbol(&symbol_yes);
		} else if (type == E_OR) {
			e1 = expr_alloc_symbol(&symbol_no);
			e2 = expr_alloc_symbol(&symbol_no);
		}
	}
#undef e1
#undef e2
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movl %edi, %ebp
movq (%r14), %rdx
cmpl %ebp, (%rdx)
je 0x8ec6
movq (%rbx), %rcx
cmpl %ebp, (%rcx)
jne 0x8ee0
addq $0x8, %rcx
movl %ebp, %edi
movq %r15, %rsi
movq %r14, %rdx
callq 0x8e8c
movq (%rbx), %rbx
addq $0x10, %rbx
jmp 0x8e9e
addq $0x8, %rdx
movl %ebp, %edi
movq %r15, %rsi
movq %rbx, %rcx
callq 0x8e8c
movq (%r14), %r14
addq $0x10, %r14
jmp 0x8e9e
movq %rdx, %rdi
movq %rcx, %rsi
callq 0x818b
testl %eax, %eax
je 0x8f3f
movq (%r15), %rsi
movq (%r14), %rax
testq %rsi, %rsi
je 0x8f04
movl %ebp, %edi
movq %rax, %rdx
callq 0x55a2
movq %rax, (%r15)
movq (%rbx), %rdi
callq 0x7e66
cmpl $0x2, %ebp
je 0x8f22
cmpl $0x1, %ebp
jne 0x8f3f
leaq 0xb308(%rip), %r15      # 0x14228
jmp 0x8f29
leaq 0xb36f(%rip), %r15      # 0x14298
movq %r15, %rdi
callq 0x5567
movq %rax, (%r14)
movq %r15, %rdi
callq 0x5567
movq %rax, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq