LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/searsm8[P]FM_Partitioning/fmpart.cpp
// Function: FMPartitionPass()
bool FMPartitionPass()
{
	printf("\n****BEGIN PARTITION PASS #%d****\n", pass_count);
	
	int starting_cut_size = cut_size;
	int swap_count = 0;
	positive_gains_exhausted = false; //true after the initial gain bucket has been exhausted of positive gains
					//used to prevent updating the best_partition too often	
	int saves_performed = 0;
	
	//perform moves until no legal moves remain
	while(performNextMove())
	{		
		swap_count++;
		
		//if a solution with better cut_size was found AND all positive gains have been exhausted
		if(positive_gains_exhausted && cut_size <= min_cut_size-20)
		{
			saveBestSolution();
			saves_performed++;
		}				
	} 	
		    	
	//revert back to the best solution that was found this pass
	recallBestSolution();
		
	printf("****PASS %d COMPLETE: ", pass_count);
	findCutsize();
	printTimestamp();
	
	if(starting_cut_size == cut_size) //if no improvement was made i.e. stuck in local minimum
		return false;
	else return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl 0x4cdf(%rip), %esi      # 0x8174
leaq 0x1cab(%rip), %rdi      # 0x5147
xorl %eax, %eax
callq 0x2040
movl 0x4d9f(%rip), %ebx      # 0x8248
movb $0x0, 0x4dcc(%rip)      # 0x827c
callq 0x3549
testb %al, %al
je 0x3516
cmpb $0x1, 0x4dbc(%rip)      # 0x827c
jne 0x34b0
movl 0x4d80(%rip), %eax      # 0x8248
movl 0x4da2(%rip), %ecx      # 0x8270
addl $-0x14, %ecx
cmpl %ecx, %eax
jg 0x34b0
movl %eax, 0x4d95(%rip)      # 0x8270
movq 0x4d26(%rip), %rax      # 0x8208
movq 0x4d17(%rip), %rcx      # 0x8200
subq %rcx, %rax
je 0x34b0
sarq $0x3, %rax
cmpq $0x1, %rax
adcq $0x0, %rax
xorl %edx, %edx
movq (%rcx,%rdx,8), %rsi
movl 0x84(%rsi), %edi
movl %edi, 0x88(%rsi)
incq %rdx
cmpq %rdx, %rax
jne 0x34fc
jmp 0x34b0
callq 0x3375
movl 0x4c53(%rip), %esi      # 0x8174
leaq 0x1c42(%rip), %rdi      # 0x516a
xorl %eax, %eax
callq 0x2040
callq 0x30cc
callq 0x3694
cmpl 0x4d09(%rip), %ebx      # 0x8248
setne %al
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/searsm8[P]FM_Partitioning/fmpart.cpp
// Function: main
int main(int argc, char *argv[])
{	
	start_time = std::clock();
	timestamp = std::clock();
	
	//add the example number from the argument to the filepath	
	if(argc > 1) strcat(file_path, argv[1]);
	else strcat(file_path, "1"); //defaults to example 1
	strcat(file_path, "/");
	
	readCellsFile();
	readNetsFile();
	initialPartition();
	
	printf("Initial ");
	findCutsize();
	min_cut_size = cut_size; //initialize min_cut_size
	initial_partition_cut_size = cut_size; //remember the initial cut_size
	
	computeGains();	
	printTimestamp();
	printf("************************************************\n");
		
	int max_num_passes = 20;
	
	//perform passes until local minimum is found, or max_num_passes is exceeded
	while(FMPartitionPass() && pass_count < max_num_passes)
	{
		pass_count++;		
	}		
		
	printf("\n************************************************\nFinal partition areas:\n");
	printPartitionAreas();
	
	printf("Final ");
	findCutsize();
	
	printToFile();	
	
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movl %edi, %r14d
callq 0x20d0
movq %rax, 0x48c0(%rip)      # 0x8280
callq 0x20d0
movq %rax, 0x48bc(%rip)      # 0x8288
cmpl $0x2, %r14d
jl 0x39e4
movq 0x8(%rbx), %rsi
leaq 0x4773(%rip), %rdi      # 0x8150
callq 0x2240
jmp 0x39f9
leaq 0x4765(%rip), %rbx      # 0x8150
movq %rbx, %rdi
callq 0x20a0
movw $0x31, (%rax,%rbx)
leaq 0x4750(%rip), %rbx      # 0x8150
movq %rbx, %rdi
callq 0x20a0
movw $0x2f, (%rax,%rbx)
callq 0x253c
callq 0x2bb8
callq 0x2f83
leaq 0x193e(%rip), %rdi      # 0x5362
xorl %eax, %eax
callq 0x2040
callq 0x30cc
movl 0x4812(%rip), %eax      # 0x8248
movl %eax, 0x4834(%rip)      # 0x8270
movl %eax, 0x4832(%rip)      # 0x8274
callq 0x320c
callq 0x3694
leaq 0x19ee(%rip), %rdi      # 0x5441
callq 0x21f0
callq 0x3489
movl 0x4711(%rip), %ecx      # 0x8174
cmpl $0x14, %ecx
setl %dl
andb %al, %dl
cmpb $0x1, %dl
jne 0x3a8c
incl %ecx
movl %ecx, 0x46fc(%rip)      # 0x8174
callq 0x3489
testb %al, %al
je 0x3a8c
movl 0x46ed(%rip), %ecx      # 0x8174
cmpl $0x14, %ecx
jl 0x3a70
leaq 0x19df(%rip), %rdi      # 0x5472
callq 0x21f0
callq 0x3059
leaq 0x18c7(%rip), %rdi      # 0x536b
xorl %eax, %eax
callq 0x2040
callq 0x30cc
callq 0x3748
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/searsm8[P]FM_Partitioning/fmpart.cpp
// Function: CELL::updateGain(int)
void updateGain(int gain_change)
	{		
		//if the cell is locked, do nothing. Only update free cells.
		//because locked cells are no longer considered for this pass
		if(locked || fixed) return;
		
		//remove the old entry in gain bucket
		gain_bucket[partition].erase(gain_itr);
		
		gain += gain_change;
						
		//add the new entry to gain bucket, and set new gain_itr
		gain_itr = gain_bucket[partition].insert(pair <int, CELL*> (gain, this));		
	}

// Assembly:
cmpb $0x0, 0x7d(%rdi)
jne 0x41af
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
cmpb $0x0, 0x7c(%rdi)
jne 0x41a5
movl %esi, %r14d
movslq 0x84(%rbx), %rax
leaq (%rax,%rax,2), %rdi
shlq $0x4, %rdi
leaq 0x4041(%rip), %r15      # 0x81a0
addq %r15, %rdi
movq 0x90(%rbx), %rsi
callq 0x41b0
addl 0x80(%rbx), %r14d
movl %r14d, 0x80(%rbx)
movslq 0x84(%rbx), %rax
leaq (%rax,%rax,2), %rdi
shlq $0x4, %rdi
addq %r15, %rdi
leaq -0x28(%rbp), %rsi
movl %r14d, (%rsi)
movq %rbx, 0x8(%rsi)
callq 0x41f6
movq %rax, 0x90(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/lunasorcery[P]brailify/./stb/stb_image_resize.h
// Function: stbir_resize_subpixel
STBIRDEF int stbir_resize_subpixel(const void *input_pixels , int input_w , int input_h , int input_stride_in_bytes,
                                         void *output_pixels, int output_w, int output_h, int output_stride_in_bytes,
                                   stbir_datatype datatype,
                                   int num_channels, int alpha_channel, int flags,
                                   stbir_edge edge_mode_horizontal, stbir_edge edge_mode_vertical, 
                                   stbir_filter filter_horizontal,  stbir_filter filter_vertical,
                                   stbir_colorspace space, void *alloc_context,
                                   float x_scale, float y_scale,
                                   float x_offset, float y_offset)
{
    float transform[4];
    transform[0] = x_scale;
    transform[1] = y_scale;
    transform[2] = x_offset;
    transform[3] = y_offset;
    return stbir__resize_arbitrary(alloc_context, input_pixels, input_w, input_h, input_stride_in_bytes,
        output_pixels, output_w, output_h, output_stride_in_bytes,
        0,0,1,1,transform,num_channels,alpha_channel,flags, datatype, filter_horizontal, filter_vertical,
        edge_mode_horizontal, edge_mode_vertical, space);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl 0x38(%rbp), %r14d
movl 0x20(%rbp), %r12d
leaq -0x40(%rbp), %r15
movss %xmm0, (%r15)
movss %xmm1, 0x4(%r15)
movss %xmm2, 0x8(%r15)
movss %xmm3, 0xc(%r15)
movl 0x50(%rbp), %r13d
movl 0x58(%rbp), %ebx
movl 0x40(%rbp), %r11d
movl 0x48(%rbp), %r10d
movl 0x60(%rbp), %eax
movss 0x11a7e(%rip), %xmm2    # 0x16008
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
movaps %xmm2, %xmm3
pushq %rax
pushq %r10
pushq %r11
pushq %rbx
pushq %r13
pushq %r12
pushq %r14
movl 0x30(%rbp), %eax
pushq %rax
movl 0x28(%rbp), %eax
pushq %rax
pushq %r15
movl 0x18(%rbp), %eax
pushq %rax
movl 0x10(%rbp), %eax
pushq %rax
callq 0x3116
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/lunasorcery[P]brailify/main.cpp
// Function: parseCommandLine(int, char**)
void parseCommandLine(int argc, char** argv)
{
	while (1) {
		static struct option long_options[] = {
			{ "invert",          no_argument, 0, 'i' },
			{ "width",     required_argument, 0, 'w' },
			{ "threshold", required_argument, 0, 't' },
			{ 0, 0, 0, 0 }
		};

		int option_index = 0;
		int c = getopt_long(argc, argv, "iw:t:", long_options, &option_index);

		if (c == -1)
			break;

		switch (c) {
			case 'i': {
				flagInvert = true;
				break;
			}
			case 'w': {
				resizeWidth = strtol(optarg, nullptr, 10);
				if (resizeWidth <= 0) {
					printf("Width must be greater than zero.\n");
					exit(1);
				}
				break;
			}
			case 't': {
				useThreshold = true;
				threshold = strtol(optarg, nullptr, 10);
				break;
			}
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %r14d
leaq 0x1259b(%rip), %r15     # 0x16d98
leaq 0x1790c(%rip), %r12     # 0x1c110
leaq -0x2c(%rbp), %r13
movl $0x0, -0x2c(%rbp)
movl %r14d, %edi
movq %rbx, %rsi
movq %r15, %rdx
movq %r12, %rcx
movq %r13, %r8
callq 0x11a0
cmpl $0x73, %eax
jle 0x4854
cmpl $0x74, %eax
je 0x4862
cmpl $0x77, %eax
jne 0x4808
movq 0x17797(%rip), %rax     # 0x1bfd0
movq (%rax), %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x1140
movl %eax, 0x1798a(%rip)     # 0x1c1d8
testl %eax, %eax
jg 0x4808
jmp 0x489f
cmpl $0x69, %eax
jne 0x4887
movb $0x1, 0x17974(%rip)     # 0x1c1d4
jmp 0x4808
movb $0x1, 0x1796c(%rip)     # 0x1c1d5
movq 0x17760(%rip), %rax     # 0x1bfd0
movq (%rax), %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x1140
movl %eax, 0x1787b(%rip)     # 0x1c100
jmp 0x4808
cmpl $-0x1, %eax
jne 0x4808
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x13c27(%rip), %rdi     # 0x184cd
callq 0x1160
movl $0x1, %edi
callq 0x1100
// File: /workspace/github_cpp_makefile_star2_O3/lunasorcery[P]brailify/main.cpp
// Function: main
int main(int argc, char** argv)
{
	parseCommandLine(argc, argv);

	if (optind >= argc) {
		printf("No filepath provided.\n");
		return 1;
	}

	for (int i = optind; i < argc; ++i) {
		processFile(argv[i]);
	}

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movl %edi, %ebx
callq 0x47e2
movq 0x1752d(%rip), %rax     # 0x1bfe0
movslq (%rax), %rax
cmpl %eax, %ebx
jle 0x4ad9
leaq (%r14,%rax,8), %r15
subl %eax, %ebx
xorl %r14d, %r14d
xorl %r12d, %r12d
movq (%r15,%r12,8), %rdi
callq 0x48b5
incq %r12
cmpl %r12d, %ebx
jne 0x4ac6
jmp 0x4aeb
leaq 0x13a0e(%rip), %rdi     # 0x184ee
callq 0x1160
movl $0x1, %r14d
movl %r14d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/lunasorcery[P]brailify/./stb/stb_image_resize.h
// Function: stbir__get_filter_pixel_width(stbir_filter, float)
static int stbir__get_filter_pixel_width(stbir_filter filter, float scale)
{
    STBIR_ASSERT(filter != 0);
    STBIR_ASSERT(filter < STBIR__ARRAY_SIZE(stbir__filter_info_table));

    if (stbir__use_upsampling(scale))
        return (int)ceil(stbir__filter_info_table[filter].support(1/scale) * 2);
    else
        return (int)ceil(stbir__filter_info_table[filter].support(scale) * 2 / scale);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
testl %edi, %edi
je 0x1274a
cmpl $0x6, %edi
jae 0x12769
movaps %xmm0, %xmm1
movl %edi, %eax
shlq $0x4, %rax
ucomiss 0x3902(%rip), %xmm0     # 0x16008
leaq 0x9643(%rip), %rcx      # 0x1bd50
movq 0x8(%rax,%rcx), %rax
ja 0x12729
movaps %xmm1, %xmm0
movss %xmm1, -0x4(%rbp)
callq *%rax
addss %xmm0, %xmm0
divss -0x4(%rbp), %xmm0
jmp 0x1273b
movss 0x38d7(%rip), %xmm0     # 0x16008
divss %xmm1, %xmm0
callq *%rax
addss %xmm0, %xmm0
callq 0x1070
cvttss2si %xmm0, %eax
addq $0x10, %rsp
popq %rbp
retq
leaq 0x51e4(%rip), %rdi      # 0x17935
leaq 0x511c(%rip), %rsi      # 0x17874
leaq 0x5245(%rip), %rcx      # 0x179a4
movl $0x36b, %edx            # imm = 0x36B
callq 0x1080
leaq 0x51e0(%rip), %rdi      # 0x17950
leaq 0x50fd(%rip), %rsi      # 0x17874
leaq 0x5226(%rip), %rcx      # 0x179a4
movl $0x36c, %edx            # imm = 0x36C
callq 0x1080
// File: /workspace/github_cpp_makefile_star2_O3/lunasorcery[P]brailify/./stb/stb_image_resize.h
// Function: stbir__filter_trapezoid(float, float)
static float stbir__filter_trapezoid(float x, float scale)
{
    float halfscale = scale / 2;
    float t = 0.5f + halfscale;
    STBIR_ASSERT(scale <= 1);

    x = (float)fabs(x);

    if (x >= t)
        return 0;
    else
    {
        float r = 0.5f - halfscale;
        if (x <= r)
            return 1;
        else
            return (t - x) / scale;
    }
}

// Assembly:
movss 0x386f(%rip), %xmm2     # 0x16008
ucomiss %xmm1, %xmm2
jb 0x127ec
movss 0x3866(%rip), %xmm4     # 0x1600c
movaps %xmm1, %xmm5
mulss %xmm4, %xmm5
movaps %xmm5, %xmm3
andps 0x3969(%rip), %xmm0     # 0x16120
addss %xmm4, %xmm3
xorps %xmm2, %xmm2
ucomiss %xmm3, %xmm0
jae 0x127e8
subss %xmm5, %xmm4
subss %xmm0, %xmm3
divss %xmm1, %xmm3
cmpnless %xmm4, %xmm0
andps %xmm0, %xmm3
movss 0x3829(%rip), %xmm1     # 0x16008
andnps %xmm1, %xmm0
orps %xmm3, %xmm0
movaps %xmm0, %xmm2
movaps %xmm2, %xmm0
retq
pushq %rbp
movq %rsp, %rbp
leaq 0x51e4(%rip), %rdi      # 0x179db
leaq 0x5076(%rip), %rsi      # 0x17874
leaq 0x51e1(%rip), %rcx      # 0x179e6
movl $0x2f1, %edx            # imm = 0x2F1
callq 0x1080
// File: /workspace/github_cpp_makefile_star2_O3/lunasorcery[P]brailify/./stb/stb_image_resize.h
// Function: stbir__filter_cubic(float, float)
static float stbir__filter_cubic(float x, float s)
{
    STBIR__UNUSED_PARAM(s);

    x = (float)fabs(x);

    if (x < 1.0f)
        return (4 + x*x*(3*x - 6))/6;
    else if (x < 2.0f)
        return (8 + x*(-12 + x*(6 - x)))/6;

    return (0.0f);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movaps %xmm0, %xmm1
movaps 0x3890(%rip), %xmm2     # 0x16120
andps %xmm0, %xmm2
movss 0x376d(%rip), %xmm0     # 0x16008
ucomiss %xmm2, %xmm0
jbe 0x128ce
mulss %xmm1, %xmm1
movss 0x3778(%rip), %xmm0     # 0x16024
mulss %xmm2, %xmm0
addss 0x3780(%rip), %xmm0     # 0x16038
mulss %xmm1, %xmm0
addss 0x3778(%rip), %xmm0     # 0x1603c
divss 0x3760(%rip), %xmm0     # 0x1602c
jmp 0x12909
xorps %xmm0, %xmm0
movss 0x374f(%rip), %xmm1     # 0x16028
ucomiss %xmm2, %xmm1
jbe 0x12909
movss 0x3746(%rip), %xmm1     # 0x1602c
movaps %xmm1, %xmm0
subss %xmm2, %xmm0
mulss %xmm2, %xmm0
addss 0x3737(%rip), %xmm0     # 0x16030
mulss %xmm2, %xmm0
addss 0x372f(%rip), %xmm0     # 0x16034
divss %xmm1, %xmm0
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/lunasorcery[P]brailify/./stb/stb_image_resize.h
// Function: stbir__filter_catmullrom(float, float)
static float stbir__filter_catmullrom(float x, float s)
{
    STBIR__UNUSED_PARAM(s);

    x = (float)fabs(x);

    if (x < 1.0f)
        return 1 - x*x*(2.5f - 1.5f*x);
    else if (x < 2.0f)
        return 2 - x*(4 + x*(0.5f*x - 2.5f));

    return (0.0f);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
andps 0x37fc(%rip), %xmm0     # 0x16120
movss 0x36dc(%rip), %xmm1     # 0x16008
ucomiss %xmm0, %xmm1
jbe 0x12953
movss 0x370b(%rip), %xmm2     # 0x16044
mulss %xmm0, %xmm2
addss 0x3703(%rip), %xmm2     # 0x16048
mulss %xmm0, %xmm0
mulss %xmm2, %xmm0
subss %xmm0, %xmm1
jmp 0x12988
movss 0x36cd(%rip), %xmm1     # 0x16028
ucomiss %xmm0, %xmm1
jbe 0x1298d
movss 0x36a4(%rip), %xmm2     # 0x1600c
mulss %xmm0, %xmm2
addss 0x36cc(%rip), %xmm2     # 0x16040
mulss %xmm0, %xmm2
addss 0x36bc(%rip), %xmm2     # 0x1603c
mulss %xmm0, %xmm2
subss %xmm2, %xmm1
movaps %xmm1, %xmm0
jmp 0x12990
xorps %xmm0, %xmm0
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/lunasorcery[P]brailify/./stb/stb_image_resize.h
// Function: stbir__filter_mitchell(float, float)
static float stbir__filter_mitchell(float x, float s)
{
    STBIR__UNUSED_PARAM(s);

    x = (float)fabs(x);

    if (x < 1.0f)
        return (16 + x*x*(21 * x - 36))/18;
    else if (x < 2.0f)
        return (32 + x*(-60 + x*(36 - 7*x)))/18;

    return (0.0f);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movaps %xmm0, %xmm1
movaps 0x3780(%rip), %xmm2     # 0x16120
andps %xmm0, %xmm2
movss 0x365d(%rip), %xmm0     # 0x16008
ucomiss %xmm2, %xmm0
jbe 0x129d6
mulss %xmm1, %xmm1
movss 0x36a4(%rip), %xmm0     # 0x16060
mulss %xmm2, %xmm0
addss 0x369c(%rip), %xmm0     # 0x16064
mulss %xmm1, %xmm0
addss 0x3694(%rip), %xmm0     # 0x16068
jmp 0x12a12
xorps %xmm0, %xmm0
movss 0x3647(%rip), %xmm1     # 0x16028
ucomiss %xmm2, %xmm1
jbe 0x12a1a
movss 0x365e(%rip), %xmm0     # 0x1604c
mulss %xmm2, %xmm0
addss 0x3656(%rip), %xmm0     # 0x16050
mulss %xmm2, %xmm0
addss 0x364e(%rip), %xmm0     # 0x16054
mulss %xmm2, %xmm0
addss 0x3646(%rip), %xmm0     # 0x16058
divss 0x3642(%rip), %xmm0     # 0x1605c
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/lunasorcery[P]brailify/./stb/stb_image_resize.h
// Function: stbir__decode_and_resample_upsample(stbir__info*, int)
static void stbir__decode_and_resample_upsample(stbir__info* stbir_info, int n)
{
    // Decode the nth scanline from the source image into the decode buffer.
    stbir__decode_scanline(stbir_info, n);

    // Now resample it into the ring buffer.
    if (stbir__use_width_upsampling(stbir_info))
        stbir__resample_horizontal_upsample(stbir_info, n, stbir__add_empty_ring_buffer_entry(stbir_info, n));
    else
        stbir__resample_horizontal_downsample(stbir_info, n, stbir__add_empty_ring_buffer_entry(stbir_info, n));

    // Now it's sitting in the ring buffer ready to be used as source for the vertical sampling.
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %r14d
movq %rdi, %rbx
callq 0x13452
movss 0x44(%rbx), %xmm0
movss %xmm0, -0x14(%rbp)
movq %rbx, %rdi
movl %r14d, %esi
callq 0x147de
movss -0x14(%rbp), %xmm0
movq %rbx, %rdi
movq %rax, %rsi
addq $0x10, %rsp
ucomiss 0x2bca(%rip), %xmm0     # 0x16008
ja 0x13449
popq %rbx
popq %r14
popq %rbp
jmp 0x14887
popq %rbx
popq %r14
popq %rbp
jmp 0x143ce
// File: /workspace/github_cpp_makefile_star2_O3/lunasorcery[P]brailify/./stb/stb_image_resize.h
// Function: stbir__add_empty_ring_buffer_entry(stbir__info*, int)
static float* stbir__add_empty_ring_buffer_entry(stbir__info* stbir_info, int n)
{
    int ring_buffer_index;
    float* ring_buffer;

    if (stbir_info->ring_buffer_begin_index < 0)
    {
        ring_buffer_index = stbir_info->ring_buffer_begin_index = 0;
        stbir_info->ring_buffer_first_scanline = n;
    }
    else
    {
        ring_buffer_index = (stbir_info->ring_buffer_begin_index + (stbir_info->ring_buffer_last_scanline - stbir_info->ring_buffer_first_scanline) + 1) % stbir_info->vertical_filter_pixel_width;
        STBIR_ASSERT(ring_buffer_index != stbir_info->ring_buffer_begin_index);
    }

    ring_buffer = stbir__get_ring_buffer_entry(stbir_info->ring_buffer, ring_buffer_index, stbir_info->ring_buffer_length_bytes / sizeof(float));
    memset(ring_buffer, 0, stbir_info->ring_buffer_length_bytes);

    stbir_info->ring_buffer_last_scanline = n;

    return ring_buffer;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movl 0xd4(%rdi), %ecx
testl %ecx, %ecx
js 0x14834
movl 0xd0(%r14), %eax
addl %ecx, %eax
subl 0xcc(%r14), %eax
incl %eax
cltd
idivl 0xb4(%r14)
cmpl %ecx, %edx
jne 0x14848
leaq 0x3a31(%rip), %rdi      # 0x1824d
leaq 0x3051(%rip), %rsi      # 0x17874
leaq 0x3a5c(%rip), %rcx      # 0x18286
movl $0x58c, %edx            # imm = 0x58C
callq 0x1080
movl $0x0, 0xd4(%r14)
movl %ebx, 0xcc(%r14)
xorl %edx, %edx
movslq 0xc8(%r14), %rax
movl %eax, %ecx
sarl $0x2, %ecx
imull %edx, %ecx
movslq %ecx, %r15
shlq $0x2, %r15
addq 0xd8(%r14), %r15
movq %r15, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x1060
movl %ebx, 0xd0(%r14)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/lukewagner[P]asmjs2wasm/src/parser.cpp
// Function: parser::parse_asmjs(memory::Pool&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
Func&
parser::parse_asmjs(memory::Pool& pool, const string& chars)
{
  // cashew needs to be able to mutate the chars
  vector<char> mutable_chars(chars.begin(), chars.end());

  cashew::Parser<Node*, Builder> parser(pool);
  Node* top_level = parser.parseToplevel(mutable_chars.data());

  List<Node>& top = top_level->as<Block>().stmts;
  if (top.compute_length() != 1 || !top.first().is<Func>())
    throw runtime_error("expecting single top-level asm.js module function");

  Func& func = top.first().as<Func>();
  List<Node>& body = func.body.stmts;
  if (body.empty() || !body.first().is<String>() || !body.first().as<String>().str.equals("use asm"))
    throw runtime_error("expecting single top-level asm.js module function");

  return func;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rsp, %rdi
leaq 0x18(%rsp), %rcx
movq %rax, %rsi
callq 0x3194
leaq 0x18(%rsp), %rdi
movq %rbx, %rsi
callq 0x31d6
movq (%rsp), %rsi
leaq 0x18(%rsp), %rdi
callq 0x3218
cmpl $0xe, 0x8(%rax)
jne 0x3131
addq $0x10, %rax
movl $0x2, %ecx
movq %rax, %rdx
movq (%rdx), %rdx
decl %ecx
testq %rdx, %rdx
jne 0x3059
testl %ecx, %ecx
jne 0x30ff
movq (%rax), %rbx
cmpl $0x17, 0x8(%rbx)
jne 0x30ff
movq 0x28(%rbx), %rcx
movq 0x10(%rcx), %rax
cmpq 0x18(%rcx), %rax
je 0x30cb
cmpl $0x2, 0x8(%rax)
jne 0x30cb
movq 0x10(%rax), %rdi
leaq 0x506b(%rip), %rsi      # 0x8102
callq 0x21f0
testl %eax, %eax
jne 0x30cb
leaq 0x18(%rsp), %rdi
callq 0x327a
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x30c0
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2190
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
retq
movl $0x10, %edi
callq 0x20b0
movq %rax, %r14
leaq 0x4ff1(%rip), %rsi      # 0x80d0
movq %rax, %rdi
callq 0x2070
movq 0x9f02(%rip), %rsi      # 0xcff0
movq 0x9ebb(%rip), %rdx      # 0xcfb0
movq %r14, %rdi
callq 0x2260
jmp 0x3131
movl $0x10, %edi
callq 0x20b0
movq %rax, %r14
leaq 0x4fbd(%rip), %rsi      # 0x80d0
movq %rax, %rdi
callq 0x2070
movq 0x9ece(%rip), %rsi      # 0xcff0
movq 0x9e87(%rip), %rdx      # 0xcfb0
movq %r14, %rdi
callq 0x2260
leaq 0x4fd2(%rip), %rdi      # 0x810a
leaq 0x4fd3(%rip), %rsi      # 0x8112
leaq 0x500b(%rip), %rcx      # 0x8151
movl $0x1f, %edx
callq 0x2100
jmp 0x315b
jmp 0x3160
jmp 0x315b
movq %rax, %rbx
jmp 0x3175
movq %rax, %rbx
jmp 0x316b
movq %rax, %rbx
movq %r14, %rdi
callq 0x2110
leaq 0x18(%rsp), %rdi
callq 0x327a
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x318b
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2190
movq %rbx, %rdi
callq 0x2270
nop
// File: /workspace/github_cpp_makefile_star2_O3/lukewagner[P]asmjs2wasm/src/cashew/parser.h
// Function: cashew::Parser<asmjs_ast::Node*, Builder>::parseBlock(char*&, asmjs_ast::Node*, char const*, cashew::IString, cashew::IString)
NodeRef parseBlock(char*& src, NodeRef block=nullptr, const char* seps=";", IString keywordSep1=IString(), IString keywordSep2=IString()) {
    //dump("parseBlock", src);
    if (!block) block = builder.makeBlock();
    while (*src) {
      src = skipSpace(src);
      if (*src == 0) break;
      if (*src == ';') {
        src++; // skip a statement in this block
        continue;
      }
      if (hasChar(seps, *src)) break;
      if (!!keywordSep1) {
        Frag next(src);
        if (next.type == KEYWORD && next.str == keywordSep1) break;
      }
      if (!!keywordSep2) {
        Frag next(src);
        if (next.type == KEYWORD && next.str == keywordSep2) break;
      }
      NodeRef element = parseElementOrStatement(src, seps);
      builder.appendToBlock(block, element);
    }
    return block;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %rbp
movq %rsi, %r12
movq %rdi, %r13
testq %rdx, %rdx
jne 0x35b7
movq 0x28(%r13), %rdi
movl $0x20, %esi
callq 0x3ca4
movq %rax, %rbp
movq $0x0, (%rax)
movl $0xe, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq (%r12), %rax
cmpb $0x0, (%rax)
je 0x367f
leaq 0x28(%r13), %rcx
movq %rcx, 0x10(%rsp)
movq %rax, %rdi
callq 0x3692
movq %rax, (%r12)
movzbl (%rax), %ecx
cmpl $0x3b, %ecx
je 0x366f
testl %ecx, %ecx
je 0x367f
movq %r15, %rdx
movb (%rdx), %sil
cmpb %cl, %sil
je 0x3600
incq %rdx
testb %sil, %sil
jne 0x35f0
testb %sil, %sil
jne 0x367f
testq %r14, %r14
je 0x3628
cmpb $0x0, (%r14)
je 0x3628
movq %rsp, %rdi
movq %rax, %rsi
callq 0x3704
cmpl $0x0, 0xc(%rsp)
jne 0x3628
cmpq %r14, (%rsp)
je 0x367f
testq %rbx, %rbx
je 0x364b
cmpb $0x0, (%rbx)
je 0x364b
movq (%r12), %rsi
movq %rsp, %rdi
callq 0x3704
cmpl $0x0, 0xc(%rsp)
jne 0x364b
cmpq %rbx, (%rsp)
je 0x367f
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x3bd6
movq 0x10(%rsp), %rdi
movq %rbp, %rsi
movq %rax, %rdx
callq 0x3c52
movq (%r12), %rax
jmp 0x3676
incq %rax
movq %rax, (%r12)
cmpb $0x0, (%rax)
jne 0x35cd
movq %rbp, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/lukewagner[P]asmjs2wasm/src/cashew/parser.h
// Function: cashew::Parser<asmjs_ast::Node*, Builder>::skipSpace(char*)
static char* skipSpace(char* curr) {
    while (*curr) {
      if (isSpace(*curr)) {
        curr++;
        continue;
      }
      if (curr[0] == '/' && curr[1] == '/') {
        curr += 2;
        while (*curr && *curr != '\n') curr++;
        if (*curr) curr++;
        continue;
      }
      if (curr[0] == '/' && curr[1] == '*') {
        curr += 2;
        while (*curr && (curr[0] != '*' || curr[1] != '/')) curr++;
        curr += 2;
        continue;
      }
      break;
    }
    return curr;
  }

// Assembly:
movq %rdi, %rax
movabsq $0x100002600, %rcx      # imm = 0x100002600
movzbl (%rax), %edx
cmpq $0x2f, %rdx
ja 0x3703
btq %rdx, %rcx
jae 0x36b3
incq %rax
jmp 0x369f
cmpq $0x2f, %rdx
jne 0x3703
movzbl 0x1(%rax), %edx
cmpl $0x2a, %edx
je 0x36dc
cmpl $0x2f, %edx
jne 0x3703
addq $0x2, %rax
movzbl (%rax), %edx
testl %edx, %edx
je 0x36fa
cmpl $0xa, %edx
je 0x36fa
incq %rax
jmp 0x36cb
addq $0x4, %rax
movzbl -0x2(%rax), %edx
cmpl $0x2a, %edx
je 0x36ef
testl %edx, %edx
jne 0x36f5
jmp 0x369f
cmpb $0x2f, -0x1(%rax)
je 0x369f
incq %rax
jmp 0x36e0
cmpb $0x1, %dl
sbbq $-0x1, %rax
jmp 0x369f
retq
// File: /workspace/github_cpp_makefile_star2_O3/lukewagner[P]asmjs2wasm/src/cashew/parser.h
// Function: cashew::Parser<asmjs_ast::Node*, Builder>::parseElementOrStatement(char*&, char const*)
NodeRef parseElementOrStatement(char*& src, const char *seps) {
    src = skipSpace(src);
    if (*src == ';') {
      src++;
      return builder.makeBlock(); // we don't need the brackets here, but oh well
    }
    NodeRef ret = parseElement(src, seps);
    src = skipSpace(src);
    if (*src == ';') {
      ret = builder.makeStatement(ret);
      src++;
    }
    return ret;
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movq (%rsi), %rdi
callq 0x3692
movq %rax, (%rbx)
cmpb $0x3b, (%rax)
jne 0x3c22
incq %rax
movq %rax, (%rbx)
movq 0x28(%r14), %rdi
movl $0x20, %esi
callq 0x3ca4
movq %rax, %r14
movq $0x0, (%rax)
movl $0xe, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
jmp 0x3c49
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x4484
movq %rax, %r14
movq (%rbx), %rdi
callq 0x3692
movq %rax, (%rbx)
cmpb $0x3b, (%rax)
jne 0x3c49
incq %rax
movq %rax, (%rbx)
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/lukewagner[P]asmjs2wasm/src/memory.h
// Function: memory::Pool::alloc(unsigned long)
void* alloc(size_t bytes)
  {
    if (remain_ < bytes) {
      remain_ = std::max<size_t>(bytes, 64 * 1024);
      allocs_.emplace_back(new uint8_t[remain_]);
      free_ = allocs_.back().get();
    }

    uint8_t* ret = free_;
    free_ += bytes;
    remain_ -= bytes;
    return ret;
  }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x20(%rdi), %rcx
cmpq %rsi, %rcx
jae 0x3cec
cmpq $0x10001, %r14          # imm = 0x10001
movl $0x10000, %edi          # imm = 0x10000
cmovaeq %r14, %rdi
movq %rdi, 0x20(%rbx)
callq 0x2030
movq %rsp, %rsi
movq %rax, (%rsi)
movq %rbx, %rdi
callq 0x3d0a
movq 0x8(%rbx), %rax
movq 0x20(%rbx), %rcx
addq $-0x8, %rax
jmp 0x3cf0
leaq 0x18(%rbx), %rax
movq (%rax), %rax
leaq (%rax,%r14), %rdx
movq %rdx, 0x18(%rbx)
subq %r14, %rcx
movq %rcx, 0x20(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/lukewagner[P]asmjs2wasm/src/cashew/istring.h
// Function: cashew::IString::set(char const*, bool)
void set(const char *s, bool reuse=true) {
    typedef std::unordered_set<const char *, CStringHash, CStringEqual> StringSet;
    static StringSet* strings = new StringSet();

    if (reuse) {
      auto result = strings->insert(s); // if already present, does nothing
      str = *(result.first);
    } else {
      auto existing = strings->find(s);
      if (existing == strings->end()) {
        char *copy = (char*)malloc(strlen(s)+1); // XXX leaked
        strcpy(copy, s);
        s = copy;
      } else {
        s = *existing;
      }
      strings->insert(s);
      str = s;
    }
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebp
movq %rdi, %rbx
movq %rsi, (%rsp)
movb 0x92f7(%rip), %al       # 0xd1a8
testb %al, %al
je 0x3f45
movq 0x92e0(%rip), %rdi      # 0xd1a0
testb %bpl, %bpl
je 0x3ede
leaq 0x8(%rsp), %rdx
movq %rdi, (%rdx)
movq %rsp, %rsi
callq 0x3fba
movq %rax, %r14
addq $0x8, %r14
jmp 0x3f32
movq %rsp, %r14
movq %r14, %rsi
callq 0x42f8
testq %rax, %rax
je 0x3ef4
movq 0x8(%rax), %r15
jmp 0x3f17
movq (%rsp), %r12
movq %r12, %rdi
callq 0x2090
leaq 0x1(%rax), %rdi
callq 0x21e0
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
callq 0x2160
movq %r15, (%rsp)
movq 0x927e(%rip), %rdi      # 0xd1a0
leaq 0x8(%rsp), %rdx
movq %rdi, (%rdx)
movq %r14, %rsi
callq 0x3fba
movq (%r14), %rax
movq %rax, (%rbx)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x925c(%rip), %rdi      # 0xd1a8
callq 0x2280
testl %eax, %eax
je 0x3eb9
movl $0x38, %edi
callq 0x2180
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rax)
movq %rax, %rcx
addq $0x30, %rcx
movq %rcx, (%rax)
movq $0x1, 0x8(%rax)
movups %xmm0, 0x10(%rax)
movl $0x3f800000, 0x20(%rax) # imm = 0x3F800000
movups %xmm0, 0x28(%rax)
movq %rax, 0x920e(%rip)      # 0xd1a0
leaq 0x920f(%rip), %rdi      # 0xd1a8
callq 0x20f0
jmp 0x3eb9
movq %rax, %rbx
leaq 0x91fb(%rip), %rdi      # 0xd1a8
callq 0x20e0
movq %rbx, %rdi
callq 0x2270
// File: /workspace/github_cpp_makefile_star2_O3/lukewagner[P]asmjs2wasm/src/cashew/parser.h
// Function: cashew::Parser<asmjs_ast::Node*, Builder>::parseElement(char*&, char const*)
NodeRef parseElement(char*& src, const char* seps=";") {
    //dump("parseElement", src);
    src = skipSpace(src);
    Frag frag(src);
    src += frag.size;
    switch (frag.type) {
      case KEYWORD: {
        return parseAfterKeyword(frag, src, seps);
      }
      case IDENT:
      case STRING:
      case INT:
      case DOUBLE: {
        src = skipSpace(src);
        if (frag.type == IDENT) return parseAfterIdent(frag, src, seps);
        else return parseExpression(parseFrag(frag), src, seps);
      }
      case SEPARATOR: {
        if (frag.str == OPEN_PAREN) return parseExpression(parseAfterParen(src), src, seps);
        if (frag.str == OPEN_BRACE) return parseExpression(parseAfterBrace(src), src, seps);
        if (frag.str == OPEN_CURLY) return parseExpression(parseAfterCurly(src), src, seps);
        assert(0);
      }
      case OPERATOR: {
        return parseExpression(frag.str, src, seps);
      }
      default: /* dump("parseElement", src); printf("bad frag type: %d\n", frag.type); */ assert(0);
    }
    return nullptr;
  }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rsi), %rdi
callq 0x3692
movq %rax, (%r14)
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %rax, %rsi
callq 0x3704
movslq 0x8(%r12), %rdi
addq (%r14), %rdi
movq %rdi, (%r14)
movl 0xc(%r12), %eax
cmpq $0x6, %rax
ja 0x45a7
leaq 0x3bd0(%rip), %rcx      # 0x80a4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
callq 0x3692
movq %rax, (%r14)
cmpl $0x2, 0x14(%rsp)
jne 0x4501
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x47e6
jmp 0x4545
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x5184
movq %r15, %rdi
movl $0x1, %esi
movq %rax, %rdx
jmp 0x453a
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x45e6
jmp 0x4545
movq 0x8(%rsp), %rdx
movq %r15, %rdi
xorl %esi, %esi
movq %r14, %rcx
movq %rbx, %r8
callq 0x494c
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x8(%rsp), %rax
leaq 0x8e63(%rip), %rcx      # 0xd3c0
cmpq (%rcx), %rax
je 0x4587
leaq 0x8e5f(%rip), %rcx      # 0xd3c8
cmpq (%rcx), %rax
je 0x4597
leaq 0x8e5b(%rip), %rcx      # 0xd3d0
cmpq (%rcx), %rax
jne 0x45c6
movq %r15, %rdi
movq %r14, %rsi
callq 0x5446
jmp 0x450e
movq %r15, %rdi
movq %r14, %rsi
callq 0x526a
jmp 0x450e
movq %r15, %rdi
movq %r14, %rsi
callq 0x533e
jmp 0x450e
leaq 0x44fa(%rip), %rdi      # 0x8aa8
leaq 0x3c42(%rip), %rsi      # 0x81f7
leaq 0x3d15(%rip), %rcx      # 0x82d1
movl $0x138, %edx            # imm = 0x138
callq 0x2100
leaq 0x44db(%rip), %rdi      # 0x8aa8
leaq 0x3c23(%rip), %rsi      # 0x81f7
leaq 0x3cf6(%rip), %rcx      # 0x82d1
movl $0x133, %edx            # imm = 0x133
callq 0x2100
nop
// File: /workspace/github_cpp_makefile_star2_O3/lukewagner[P]asmjs2wasm/src/cashew/parser.h
// Function: cashew::Parser<asmjs_ast::Node*, Builder>::parseAfterIdent(cashew::Parser<asmjs_ast::Node*, Builder>::Frag&, char*&, char const*)
NodeRef parseAfterIdent(Frag& frag, char*& src, const char* seps) {
    assert(!isSpace(*src));
    if (*src == '(') return parseExpression(parseCall(parseFrag(frag), src), src, seps);
    if (*src == '[') return parseExpression(parseIndexing(parseFrag(frag), src), src, seps);
    if (*src == ':' && expressionPartsStack.back().size() == 0) {
      src++;
      src = skipSpace(src);
      NodeRef inner;
      if (*src == '{') { // context lets us know this is not an object, but a block
        inner = parseBracketedBlock(src);
      } else {
        inner = parseElement(src, seps);
      }
      return builder.makeLabel(frag.str, inner);
    }
    if (*src == '.') return parseExpression(parseDotting(parseFrag(frag), src), src, seps);
    return parseExpression(parseFrag(frag), src, seps);
  }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq (%rdx), %rdi
movzbl (%rdi), %eax
cmpl $0x2d, %eax
jg 0x4835
cmpl $0x27, %eax
jle 0x48aa
cmpl $0x28, %eax
jne 0x48bc
movq %rbx, %rdi
movq %r12, %rsi
callq 0x5184
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x647a
jmp 0x48c7
cmpl $0x2e, %eax
je 0x485f
cmpl $0x3a, %eax
je 0x487a
cmpl $0x5b, %eax
jne 0x48bc
movq %rbx, %rdi
movq %r12, %rsi
callq 0x5184
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x65ea
jmp 0x48c7
movq %rbx, %rdi
movq %r12, %rsi
callq 0x5184
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x6716
jmp 0x48c7
movq 0x8(%rbx), %rax
movq -0x10(%rax), %rcx
cmpq -0x18(%rax), %rcx
jne 0x48bc
incq %rdi
movq %rdi, (%r15)
callq 0x3692
movq %rax, (%r15)
cmpb $0x7b, (%rax)
jne 0x48e8
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x609e
jmp 0x48f6
leal -0x9(%rax), %ecx
cmpl $0x2, %ecx
jb 0x492d
cmpl $0xd, %eax
je 0x492d
cmpl $0x20, %eax
je 0x492d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x5184
movq %rbx, %rdi
movl $0x1, %esi
movq %rax, %rdx
movq %r15, %rcx
movq %r14, %r8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x494c
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x4484
movq %rax, %r14
movq (%r12), %r15
movq 0x28(%rbx), %rdi
movl $0x20, %esi
callq 0x3ca4
movq $0x0, (%rax)
movl $0x13, 0x8(%rax)
movq %r15, 0x10(%rax)
movq %r14, 0x18(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x38b4(%rip), %rdi      # 0x81e8
leaq 0x38bc(%rip), %rsi      # 0x81f7
leaq 0x4028(%rip), %rcx      # 0x896a
movl $0x20b, %edx            # imm = 0x20B
callq 0x2100
// File: /workspace/github_cpp_makefile_star2_O3/lukewagner[P]asmjs2wasm/src/cashew/parser.h
// Function: cashew::Parser<asmjs_ast::Node*, Builder>::parseFrag(cashew::Parser<asmjs_ast::Node*, Builder>::Frag&)
NodeRef parseFrag(Frag& frag) {
    switch (frag.type) {
      case IDENT:  return builder.makeName(frag.str);
      case STRING: return builder.makeString(frag.str);
      case INT:    return builder.makeInt(uint32_t(frag.num));
      case DOUBLE: return builder.makeDouble(frag.num);
      default: assert(0);
    }
    return nullptr;
  }

// Assembly:
pushq %rbx
subq $0x10, %rsp
movl 0xc(%rsi), %eax
addl $-0x2, %eax
cmpl $0x3, %eax
ja 0x524b
leaq 0x2f21(%rip), %rcx      # 0x80c0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rsi), %rbx
movq 0x28(%rdi), %rdi
movl $0x18, %esi
callq 0x3ca4
movq $0x0, (%rax)
movl $0x5, 0x8(%rax)
jmp 0x5241
cvttsd2si (%rsi), %rbx
movq 0x28(%rdi), %rdi
movl $0x10, %esi
callq 0x3ca4
movq $0x0, (%rax)
movl $0x1, 0x8(%rax)
movl %ebx, 0xc(%rax)
jmp 0x5245
movsd (%rsi), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x28(%rdi), %rdi
movl $0x18, %esi
callq 0x3ca4
movq $0x0, (%rax)
movl $0x0, 0x8(%rax)
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x10(%rax)
jmp 0x5245
movq (%rsi), %rbx
movq 0x28(%rdi), %rdi
movl $0x18, %esi
callq 0x3ca4
movq $0x0, (%rax)
movl $0x2, 0x8(%rax)
movq %rbx, 0x10(%rax)
addq $0x10, %rsp
popq %rbx
retq
leaq 0x3856(%rip), %rdi      # 0x8aa8
leaq 0x2f9e(%rip), %rsi      # 0x81f7
leaq 0x3baf(%rip), %rcx      # 0x8e0f
movl $0x143, %edx            # imm = 0x143
callq 0x2100
// File: /workspace/github_cpp_makefile_star2_O3/lukewagner[P]asmjs2wasm/src/cashew/parser.h
// Function: cashew::Parser<asmjs_ast::Node*, Builder>::parseAfterParen(char*&)
NodeRef parseAfterParen(char*& src) {
    expressionPartsStack.resize(expressionPartsStack.size()+1);
    src = skipSpace(src);
    NodeRef ret = parseElement(src, ")");
    src = skipSpace(src);
    assert(*src == ')');
    src++;
    assert(expressionPartsStack.back().size() == 0);
    expressionPartsStack.pop_back();
    return ret;
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rdi), %rax
subq (%rdi), %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rsi
incq %rsi
callq 0x3334
movq (%r14), %rdi
callq 0x3692
movq %rax, (%r14)
leaq 0x2e68(%rip), %rdx      # 0x8110
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4484
movq %rax, %r15
movq (%r14), %rdi
callq 0x3692
movq %rax, (%r14)
cmpb $0x29, (%rax)
jne 0x52ff
incq %rax
movq %rax, (%r14)
movq 0x8(%rbx), %rax
movq -0x18(%rax), %rdi
movq -0x10(%rax), %rcx
cmpq %rdi, %rcx
jne 0x531e
leaq -0x18(%rax), %rdx
movq %rdx, 0x8(%rbx)
testq %rcx, %rcx
je 0x52f6
movq -0x8(%rax), %rsi
subq %rdi, %rsi
callq 0x2190
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x31c7(%rip), %rdi      # 0x84cd
leaq 0x2eea(%rip), %rsi      # 0x81f7
leaq 0x3b72(%rip), %rcx      # 0x8e86
movl $0x24f, %edx            # imm = 0x24F
callq 0x2100
leaq 0x375d(%rip), %rdi      # 0x8a82
leaq 0x2ecb(%rip), %rsi      # 0x81f7
leaq 0x3b53(%rip), %rcx      # 0x8e86
movl $0x251, %edx            # imm = 0x251
callq 0x2100
nop
// File: /workspace/github_cpp_makefile_star2_O3/lukewagner[P]asmjs2wasm/src/cashew/parser.h
// Function: cashew::Parser<asmjs_ast::Node*, Builder>::parseAfterBrace(char*&)
NodeRef parseAfterBrace(char*& src) {
    expressionPartsStack.resize(expressionPartsStack.size()+1);
    NodeRef ret = builder.makeArray();
    while (1) {
      src = skipSpace(src);
      assert(*src);
      if (*src == ']') break;
      NodeRef element = parseElement(src, ",]");
      builder.appendToArray(ret, element);
      src = skipSpace(src);
      if (*src == ',') {
        src++;
        continue;
      } else assert(*src == ']');
    }
    assert(*src == ']');
    src++;
    return ret;
  }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rax
subq (%rdi), %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rsi
incq %rsi
callq 0x3334
leaq 0x28(%r14), %r15
movq 0x28(%r14), %rdi
movl $0x20, %esi
callq 0x3ca4
movq %rax, %r12
movq $0x0, (%rax)
movl $0x3, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq (%rbx), %rdi
leaq 0x3be5(%rip), %r13      # 0x8f87
callq 0x3692
movq %rax, (%rbx)
movzbl (%rax), %ecx
cmpl $0x5d, %ecx
je 0x53f5
testl %ecx, %ecx
je 0x5408
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x4484
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x6aec
movq (%rbx), %rdi
callq 0x3692
movq %rax, %rdi
movq %rax, (%rbx)
movzbl (%rax), %eax
cmpl $0x5d, %eax
je 0x53a2
cmpl $0x2c, %eax
jne 0x5427
incq %rdi
movq %rdi, (%rbx)
jmp 0x53a2
incq %rax
movq %rax, (%rbx)
movq %r12, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x3af5(%rip), %rdi      # 0x8f04
leaq 0x2de1(%rip), %rsi      # 0x81f7
leaq 0x3aec(%rip), %rcx      # 0x8f09
movl $0x25b, %edx            # imm = 0x25B
callq 0x2100
leaq 0x370d(%rip), %rdi      # 0x8b3b
leaq 0x2dc2(%rip), %rsi      # 0x81f7
leaq 0x3acd(%rip), %rcx      # 0x8f09
movl $0x263, %edx            # imm = 0x263
callq 0x2100
// File: /workspace/github_cpp_makefile_star2_O3/lukewagner[P]asmjs2wasm/src/cashew/parser.h
// Function: cashew::Parser<asmjs_ast::Node*, Builder>::parseAfterCurly(char*&)
NodeRef parseAfterCurly(char*& src) {
    expressionPartsStack.resize(expressionPartsStack.size()+1);
    NodeRef ret = builder.makeObject();
    while (1) {
      src = skipSpace(src);
      assert(*src);
      if (*src == '}') break;
      Frag key(src);
      assert(key.type == IDENT || key.type == STRING);
      src += key.size;
      src = skipSpace(src);
      assert(*src == ':');
      src++;
      NodeRef value = parseElement(src, ",}");
      builder.appendToObject(ret, key.str, value);
      src = skipSpace(src);
      if (*src == ',') {
        src++;
        continue;
      } else assert(*src == '}');
    }
    assert(*src == '}');
    src++;
    return ret;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rax
subq (%rdi), %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rax, %rsi
incq %rsi
callq 0x3334
leaq 0x28(%r14), %r15
movq 0x28(%r14), %rdi
movl $0x20, %esi
callq 0x3ca4
movq %rax, %r12
movq $0x0, (%rax)
movl $0x4, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq (%rbx), %rdi
leaq 0x8(%rsp), %r13
leaq 0x3bac(%rip), %rbp      # 0x9060
callq 0x3692
movq %rax, (%rbx)
movzbl (%rax), %ecx
cmpl $0x7d, %ecx
je 0x555c
testl %ecx, %ecx
je 0x5574
movq %r13, %rdi
movq %rax, %rsi
callq 0x3704
movl 0x14(%rsp), %eax
andl $-0x2, %eax
cmpl $0x2, %eax
jne 0x55b2
movslq 0x10(%rsp), %rdi
addq (%rbx), %rdi
movq %rdi, (%rbx)
callq 0x3692
movq %rax, (%rbx)
cmpb $0x3a, (%rax)
jne 0x5593
incq %rax
movq %rax, (%rbx)
movq %r14, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0x4484
movq 0x8(%rsp), %rdx
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rcx
callq 0x6b34
movq (%rbx), %rdi
callq 0x3692
movq %rax, %rdi
movq %rax, (%rbx)
movzbl (%rax), %eax
cmpl $0x7d, %eax
je 0x54b4
cmpl $0x2c, %eax
jne 0x55d1
incq %rdi
movq %rdi, (%rbx)
jmp 0x54b4
incq %rax
movq %rax, (%rbx)
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3989(%rip), %rdi      # 0x8f04
leaq 0x2c75(%rip), %rsi      # 0x81f7
leaq 0x3a31(%rip), %rcx      # 0x8fba
movl $0x26f, %edx            # imm = 0x26F
callq 0x2100
leaq 0x3364(%rip), %rdi      # 0x88fe
leaq 0x2c56(%rip), %rsi      # 0x81f7
leaq 0x3a12(%rip), %rcx      # 0x8fba
movl $0x275, %edx            # imm = 0x275
callq 0x2100
leaq 0x3a7f(%rip), %rdi      # 0x9038
leaq 0x2c37(%rip), %rsi      # 0x81f7
leaq 0x39f3(%rip), %rcx      # 0x8fba
movl $0x272, %edx            # imm = 0x272
callq 0x2100
leaq 0x2f9b(%rip), %rdi      # 0x8573
leaq 0x2c18(%rip), %rsi      # 0x81f7
leaq 0x39d4(%rip), %rcx      # 0x8fba
movl $0x27d, %edx            # imm = 0x27D
callq 0x2100
// File: /workspace/github_cpp_makefile_star2_O3/lukewagner[P]asmjs2wasm/src/cashew/parser.h
// Function: cashew::Parser<asmjs_ast::Node*, Builder>::parseVar(cashew::Parser<asmjs_ast::Node*, Builder>::Frag&, char*&, char const*)
NodeRef parseVar(Frag& frag, char*& src, const char* seps) {
    NodeRef ret = builder.makeVar(frag.str == CONST);
    while (1) {
      src = skipSpace(src);
      if (*src == ';') break;
      Frag name(src);
      assert(name.type == IDENT);
      NodeRef value;
      src += name.size;
      src = skipSpace(src);
      if (*src == '=') {
        src++;
        src = skipSpace(src);
        value = parseElement(src, ";,");
      }
      builder.appendToVar(ret, name.str, value);
      src = skipSpace(src);
      if (*src && *src == ';') break;
      if (*src && *src == ',') {
        src++;
        continue;
      }
      assert(0);
    }
    assert(*src == ';');
    src++;
    return ret;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rdi, %r15
movq 0x28(%rdi), %rdi
movl $0x20, %esi
callq 0x3ca4
movq %rax, %r14
movq $0x0, (%rax)
movl $0xd, 0x8(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq (%rbx), %rdi
callq 0x3692
movq %rax, (%rbx)
cmpb $0x3b, (%rax)
je 0x58a1
leaq 0x28(%r15), %r12
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %rax, %rsi
callq 0x3704
cmpl $0x2, 0x14(%rsp)
jne 0x58b9
movslq 0x10(%rsp), %rdi
addq (%rbx), %rdi
movq %rdi, (%rbx)
callq 0x3692
movq %rax, (%rbx)
cmpb $0x3d, (%rax)
jne 0x5855
incq %rax
movq %rax, (%rbx)
movq %rax, %rdi
callq 0x3692
movq %rax, (%rbx)
movq %r15, %rdi
movq %rbx, %rsi
leaq 0x2dd2(%rip), %rdx      # 0x861f
callq 0x4484
movq %rax, %rbp
movq 0x8(%rsp), %rdx
movq %r12, %rdi
movq %r14, %rsi
movq %rbp, %rcx
callq 0x615e
movq (%rbx), %rdi
callq 0x3692
movq %rax, (%rbx)
movzbl (%rax), %ecx
cmpl $0x2c, %ecx
jne 0x5897
incq %rax
movq %rax, (%rbx)
movq %rax, %rdi
callq 0x3692
movq %rax, (%rbx)
cmpb $0x3b, (%rax)
jne 0x5801
jmp 0x58a1
cmpl $0x3b, %ecx
jne 0x58d8
cmpb $0x3b, (%rax)
jne 0x58f7
incq %rax
movq %rax, (%rbx)
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2cbf(%rip), %rdi      # 0x857f
leaq 0x2930(%rip), %rsi      # 0x81f7
leaq 0x2cc4(%rip), %rcx      # 0x8592
movl $0x182, %edx            # imm = 0x182
callq 0x2100
leaq 0x31c9(%rip), %rdi      # 0x8aa8
leaq 0x2911(%rip), %rsi      # 0x81f7
leaq 0x2ca5(%rip), %rcx      # 0x8592
movl $0x192, %edx            # imm = 0x192
callq 0x2100
leaq 0x2d24(%rip), %rdi      # 0x8622
leaq 0x28f2(%rip), %rsi      # 0x81f7
leaq 0x2c86(%rip), %rcx      # 0x8592
movl $0x194, %edx            # imm = 0x194
callq 0x2100
// File: /workspace/github_cpp_makefile_star2_O3/lukewagner[P]asmjs2wasm/src/cashew/parser.h
// Function: cashew::Parser<asmjs_ast::Node*, Builder>::parseReturn(cashew::Parser<asmjs_ast::Node*, Builder>::Frag&, char*&, char const*)
NodeRef parseReturn(Frag& frag, char*& src, const char* seps) {
    src = skipSpace(src);
    NodeRef value = !hasChar(seps, *src) ? parseElement(src, seps) : nullptr;
    src = skipSpace(src);
    assert(hasChar(seps, *src));
    if (*src == ';') src++;
    return builder.makeReturn(value);
  }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %r14
movq %rdi, %rbx
movq (%rdx), %rdi
callq 0x3692
movq %rax, (%r14)
movb (%rax), %cl
movq %r15, %rdx
movb (%rdx), %sil
cmpb %cl, %sil
je 0x5947
incq %rdx
testb %sil, %sil
jne 0x5937
testb %sil, %sil
je 0x5951
xorl %r12d, %r12d
jmp 0x5965
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x4484
movq %rax, %r12
movq (%r14), %rax
movq %rax, %rdi
callq 0x3692
movq %rax, (%r14)
movb (%rax), %cl
movb (%r15), %dl
cmpb %cl, %dl
je 0x5980
incq %r15
testb %dl, %dl
jne 0x5972
testb %dl, %dl
je 0x59bb
cmpb $0x3b, %cl
jne 0x598f
incq %rax
movq %rax, (%r14)
movq 0x28(%rbx), %rdi
movl $0x18, %esi
callq 0x3ca4
movq $0x0, (%rax)
movl $0xf, 0x8(%rax)
movq %r12, 0x10(%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x2c9a(%rip), %rdi      # 0x865c
leaq 0x282e(%rip), %rsi      # 0x81f7
leaq 0x2ca0(%rip), %rcx      # 0x8670
movl $0x19d, %edx            # imm = 0x19D
callq 0x2100