LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/xdsopl[P]FEC/./chien.hh
// Function: Chien<24, GF::Types<16, 65581, unsigned short>>::search(GF::Value<16, 65581, unsigned short>*, int, GF::Index<16, 65581, unsigned short>*)
static int search(ValueType *locator, int locator_degree, IndexType *locations)
	{
		ValueType tmp[locator_degree+1];
		for (int i = 0; i <= locator_degree; ++i)
			tmp[i] = locator[i];
		int count = 0;
		for (int i = 0; i < N; ++i) {
			ValueType sum(tmp[0]);
			for (int j = 1; j <= locator_degree; ++j)
				sum += tmp[j] *= IndexType(j);
			if (!sum)
				locations[count++] = IndexType(i);
		}
		return count;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, -0x40(%rbp)
leal 0x1(%rsi), %r14d
movq %rsp, %rbx
leaq 0xf(,%r14,2), %rax
andq $-0x10, %rax
subq %rax, %rbx
movq %rbx, %rsp
movq %rsi, -0x50(%rbp)
testl %esi, %esi
js 0xc272
movq %rdi, %rcx
leaq (%r14,%r14), %rdx
movq %rbx, %rdi
movq %rcx, %rsi
callq 0x2100
leaq 0x2(%rbx), %rax
movq %rax, -0x48(%rbp)
movl $0x0, -0x2c(%rbp)
xorl %r15d, %r15d
movq %rbx, -0x38(%rbp)
movzwl (%rbx), %r12d
cmpl $0x0, -0x50(%rbp)
jle 0xc2bf
movl $0x1, %r13d
movq -0x48(%rbp), %rbx
cmpq $0xffff, %r13           # imm = 0xFFFF
je 0xc2fb
movq %rbx, %rdi
movl %r13d, %esi
callq 0xc31a
xorl %eax, %r12d
incq %r13
addq $0x2, %rbx
cmpq %r13, %r14
jne 0xc29c
testw %r12w, %r12w
jne 0xc2d9
movl -0x2c(%rbp), %ecx
movslq %ecx, %rax
incl %ecx
movl %ecx, -0x2c(%rbp)
movq -0x40(%rbp), %rcx
movw %r15w, (%rcx,%rax,2)
movq -0x38(%rbp), %rbx
incl %r15d
cmpl $0xffff, %r15d          # imm = 0xFFFF
jne 0xc288
movl -0x2c(%rbp), %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x232a(%rip), %rdi      # 0xe62c
leaq 0x21ad(%rip), %rsi      # 0xe4b6
leaq 0x3c53(%rip), %rcx      # 0xff63
movl $0x3f, %edx
callq 0x20c0
// File: /workspace/github_cpp_makefile_star2_O1/xdsopl[P]FEC/./forney.hh
// Function: Forney<6, 1, GF::Types<4, 19, unsigned char>>::compute_evaluator(GF::Value<4, 19, unsigned char>*, GF::Value<4, 19, unsigned char>*, int, GF::Value<4, 19, unsigned char>*)
static int compute_evaluator(ValueType *syndromes, ValueType *locator, int locator_degree, ValueType *evaluator)
	{
		// $evaluator = (syndromes * locator) \bmod{x^{NR}}$
		int tmp = std::min(locator_degree, NR-1);
		int degree = -1;
		for (int i = 0; i <= tmp; ++i) {
			evaluator[i] = syndromes[i] * locator[0];
			for (int j = 1; j <= i; ++j)
				evaluator[i] += syndromes[i-j] * locator[j];
			if (evaluator[i])
				degree = i;
		}
		return degree;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, 0x20(%rsp)
testl %edx, %edx
js 0x8caa
movq %rsi, %r14
cmpl $0x5, %edx
movl $0x5, %eax
cmovll %edx, %eax
incl %eax
movq %rax, 0x10(%rsp)
leaq -0x1(%rdi), %rbp
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
xorl %r13d, %r13d
movq %rdi, 0x18(%rsp)
movl %eax, 0xc(%rsp)
movzbl (%rdi,%r13), %edi
movzbl (%r14), %esi
callq 0x874c
movq 0x20(%rsp), %rcx
leaq (%rcx,%r13), %r12
movb %al, (%rcx,%r13)
testq %r13, %r13
je 0x8c89
xorl %ebx, %ebx
movq %rbp, %r15
movzbl 0x1(%r14,%rbx), %esi
movzbl (%r15), %edi
callq 0x874c
movzbl %al, %esi
movq %r12, %rdi
callq 0x77e4
decq %r15
incq %rbx
cmpq %rbx, %r13
jne 0x8c64
cmpb $0x0, (%r12)
movl 0xc(%rsp), %eax
cmovnel %r13d, %eax
incq %r13
incq %rbp
cmpq 0x10(%rsp), %r13
movq 0x18(%rsp), %rdi
jne 0x8c3b
jmp 0x8caf
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/xdsopl[P]FEC/./reed_solomon.hh
// Function: ReedSolomon<16, 0, GF::Types<8, 285, unsigned char>>::encode(GF::Value<8, 285, unsigned char>*)
void encode(ValueType *code)
	{
		// $code = data * x^{NR} + (data * x^{NR}) \mod{generator}$
		for (int i = 0; i < NR; ++i)
			code[K+i] = ValueType(0);
		for (int i = 0; i < K; ++i) {
			ValueType feedback = code[i] + code[K];
			if (feedback) {
				IndexType fb = index(feedback);
				for (int j = 1; j < NR; ++j)
					code[K+j-1] = fma(fb, generator[NR-j], code[K+j]);
				code[N-1] = value(generator[0] * fb);
			} else {
				for (int j = 1; j < NR; ++j)
					code[K+j-1] = code[K+j];
				code[N-1] = ValueType(0);
			}
		}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xef(%rsi), %rax
movq %rax, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0xef(%rsi)
leaq 0xf0(%rsi), %r12
xorl %r13d, %r13d
movq %r12, 0x8(%rsp)
movb (%rbx,%r13), %al
movb 0xef(%rbx), %cl
cmpb %al, %cl
jne 0xa21f
movq (%r12), %rax
movl 0x8(%r12), %ecx
movzwl 0xc(%r12), %edx
movb 0xe(%r12), %sil
movq 0x10(%rsp), %rdi
movb %sil, 0xe(%rdi)
movw %dx, 0xc(%rdi)
movl %ecx, 0x8(%rdi)
movq %rax, (%rdi)
movb $0x0, 0xfe(%rbx)
jmp 0xa27a
xorb %al, %cl
movzbl %cl, %eax
movl $0xf, %r15d
leaq 0x6ebf(%rip), %rcx      # 0x110f0
movzbl (%rax,%rcx), %ebp
movzbl (%r14,%r15), %esi
movzbl (%r12), %edx
movl %ebp, %edi
callq 0xa2b8
movb %al, -0x1(%r12)
incq %r12
decq %r15
jne 0xa235
movzbl (%r14), %edi
movl %ebp, %esi
callq 0xa0b4
cmpb $-0x1, %al
je 0xa299
movzbl %al, %eax
leaq 0x6d84(%rip), %rcx      # 0x10ff0
movb (%rax,%rcx), %al
movb %al, 0xfe(%rbx)
movq 0x8(%rsp), %r12
incq %r13
cmpq $0xef, %r13
jne 0xa1e1
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x43f0(%rip), %rdi      # 0xe690
leaq 0x420f(%rip), %rsi      # 0xe4b6
leaq 0x5451(%rip), %rcx      # 0xf6ff
movl $0x67, %edx
callq 0x20c0
// File: /workspace/github_cpp_makefile_star2_O1/xdsopl[P]FEC/./galois_field.hh
// Function: GF::Value<4, 19, unsigned char> GF::fma<4, 19, unsigned char>(GF::Index<4, 19, unsigned char>, GF::Index<4, 19, unsigned char>, GF::Value<4, 19, unsigned char>)
Value<M, POLY, TYPE> fma(Index<M, POLY, TYPE> a, Index<M, POLY, TYPE> b, Value<M, POLY, TYPE> c)
{
	assert(a.i < a.modulus());
	assert(b.i < b.modulus());
	assert(c.v <= c.N);
	return value(a * b) + c;
}

// Assembly:
pushq %rbx
cmpb $0xf, %dil
jae 0x9136
cmpb $0xf, %sil
jae 0x9155
movl %edx, %ebx
cmpb $0x10, %bl
jae 0x9174
movzbl %dil, %edi
movzbl %sil, %esi
callq 0x79d1
cmpb $0xf, %al
jae 0x9193
movzbl %al, %eax
leaq 0x7e97(%rip), %rcx      # 0x10fc0
movzbl (%rax,%rcx), %edi
movzbl %bl, %esi
popq %rbx
jmp 0x795a
leaq 0x5553(%rip), %rdi      # 0xe690
leaq 0x5372(%rip), %rsi      # 0xe4b6
leaq 0x626a(%rip), %rcx      # 0xf3b5
movl $0xe0, %edx
callq 0x20c0
leaq 0x56af(%rip), %rdi      # 0xe80b
leaq 0x5353(%rip), %rsi      # 0xe4b6
leaq 0x624b(%rip), %rcx      # 0xf3b5
movl $0xe1, %edx
callq 0x20c0
leaq 0x55af(%rip), %rdi      # 0xe72a
leaq 0x5334(%rip), %rsi      # 0xe4b6
leaq 0x622c(%rip), %rcx      # 0xf3b5
movl $0xe2, %edx
callq 0x20c0
leaq 0x54f6(%rip), %rdi      # 0xe690
leaq 0x5315(%rip), %rsi      # 0xe4b6
leaq 0x558d(%rip), %rcx      # 0xe735
movl $0x67, %edx
callq 0x20c0
// File: /workspace/github_cpp_makefile_star2_O1/xdsopl[P]FEC/./reed_solomon.hh
// Function: ReedSolomon<16, 0, GF::Types<8, 285, unsigned char>>::decode(GF::Value<8, 285, unsigned char>*, GF::Index<8, 285, unsigned char>*, int)
int decode(ValueType *code, IndexType *erasures = 0, int erasures_count = 0)
	{
		assert(0 <= erasures_count && erasures_count <= NR);
#if 0
		for (int i = 0; i < erasures_count; ++i)
			code[(int)erasures[i]] = ValueType(0);
#endif
		ValueType syndromes[NR];
		if (!compute_syndromes(code, syndromes))
			return 0;
		IndexType locations[NR];
		ValueType magnitudes[NR];
		int count = Correction<NR, FCR, GF>::algorithm(syndromes, locations, magnitudes, erasures, erasures_count);
		if (count <= 0)
			return count;
		for (int i = 0; i < count; ++i)
			code[(int)locations[i]] += magnitudes[i];
		int corrections_count = 0;
		for (int i = 0; i < count; ++i)
			corrections_count += !!magnitudes[i];
		return corrections_count;
	}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
cmpl $0x11, %ecx
jae 0xa3bc
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %rbx
leaq 0x20(%rsp), %rdx
callq 0xa3dc
testl %eax, %eax
je 0xa3b1
leaq 0x20(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movq %rsp, %rdx
movq %r14, %rcx
movl %ebp, %r8d
callq 0xa470
testl %eax, %eax
jle 0xa3b3
movl %eax, %ecx
xorl %eax, %eax
movb (%rsp,%rax), %dl
movzbl 0x10(%rsp,%rax), %esi
xorb %dl, (%rbx,%rsi)
incq %rax
cmpq %rax, %rcx
jne 0xa389
xorl %edx, %edx
xorl %eax, %eax
cmpb $0x1, (%rsp,%rdx)
sbbl $-0x1, %eax
incq %rdx
cmpq %rdx, %rcx
jne 0xa3a0
jmp 0xa3b3
xorl %eax, %eax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x48dc(%rip), %rdi      # 0xec9f
leaq 0x5073(%rip), %rsi      # 0xf43d
leaq 0x5715(%rip), %rcx      # 0xfae6
movl $0x5b, %edx
callq 0x20c0
nop
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/main.cpp
// Function: warning(char const*)
void warning(const char *msg)
{
	cout << endl;
	cout << "****************************************" << endl;
	cout << "  !!! WARNING !!!" << endl;
	cout << "  " << msg << endl;
	cout << "****************************************" << endl;
	cout << endl;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x32f64(%rip), %rbx     # 0x36fd0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
leaq 0x2717d(%rip), %rsi     # 0x2b217
movl $0x28, %edx
movq %rbx, %rdi
callq 0x3360
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
leaq 0x2716b(%rip), %rsi     # 0x2b240
movl $0x11, %edx
movq %rbx, %rdi
callq 0x3360
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
leaq 0x27800(%rip), %rsi     # 0x2b910
movl $0x2, %edx
movq %rbx, %rdi
callq 0x3360
testq %r14, %r14
je 0x413e
movq %r14, %rdi
callq 0x3130
movq 0x32e9f(%rip), %rdi     # 0x36fd0
movq %r14, %rsi
movq %rax, %rdx
callq 0x3360
jmp 0x4155
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x34c0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
leaq 0x27094(%rip), %rsi     # 0x2b217
movl $0x28, %edx
movq %rbx, %rdi
callq 0x3360
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x31f0
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/main.cpp
// Function: getCurrentTime_ms()
unsigned long getCurrentTime_ms()
{
	static timeval tp;
	gettimeofday(&tp, NULL);
	
	static unsigned long currentTime_ms;
	currentTime_ms = tp.tv_sec * CURRENT_TIME_PER_SEC;	//Convert seconds to milliseconds
	currentTime_ms += tp.tv_usec / CURRENT_TIME_PER_SEC;	//Convert microseconds to milliseconds
	
	return currentTime_ms;
}

// Assembly:
pushq %rax
leaq 0x333d8(%rip), %rdi     # 0x37668
xorl %esi, %esi
callq 0x3490
imulq $0x3e8, 0x333c6(%rip), %rcx # imm = 0x3E8
movabsq $0x20c49ba5e353f7cf, %rax # imm = 0x20C49BA5E353F7CF
imulq 0x333bd(%rip)           # 0x37670
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x7, %rdx
addq %rdx, %rax
addq %rcx, %rax
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/main.cpp
// Function: writeSeparator(char, int, int)
void writeSeparator(char sepChar, int rowLength, int numRows)
{
	cout << endl << endl;
	for (int r = 0; r < numRows; r++)
	{
		for (int c = 0; c < rowLength; c++)
			cout << sepChar;
		cout << endl;
	}
	cout << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r14d
movl %esi, %ebp
movl %edi, %r15d
movq 0x30f29(%rip), %rbx     # 0x36fd0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movl %r14d, 0x4(%rsp)
testl %r14d, %r14d
jle 0x615c
xorl %r13d, %r13d
leaq 0x3(%rsp), %r12
movl %ebp, %r14d
testl %ebp, %ebp
jle 0x612b
movb %r15b, 0x3(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3360
decl %r14d
jne 0x6111
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
incl %r13d
cmpl 0x4(%rsp), %r13d
jne 0x610a
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/./ImageProcs.h
// Function: NoiseParam::operator=(NoiseParam const&)
const NoiseParam& operator=(const NoiseParam &np)
	{
		if (&np == this)
			return *this;
		
		set(
			np.label_.c_str(),
			np.lux_,
			np.minReflectance_,
			np.maxReflectance_,
			np.temperatureC_,
			//np.focalLengthMM_,
			np.pixelPitchMicrons_,
			np.fullWellCapacity_,
			np.readNoise_,
			np.ampVarFactor_,
			np.darkCurrentRoomTempElectronsPerPixPerSec_,
			np.hotPixelFactor_,
			np.hotPixelScalars_,
			np.quantumEfficiency_,
			np.ampGlowElectronsPerPixPerSec_,
			np.exposureSecs_,
			np.ampGain_,
			np.focalRatio_
		);
		
		selfCheck();
		
		return *this;
	}

// Assembly:
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
cmpq %rdi, %rsi
je 0xa77d
movq (%rsi), %rax
movsd 0x20(%rsi), %xmm0
movsd 0x28(%rsi), %xmm1
movsd 0x30(%rsi), %xmm2
movsd 0x38(%rsi), %xmm3
movsd 0x40(%rsi), %xmm4
movq 0x48(%rsi), %rdx
movsd 0x50(%rsi), %xmm5
movsd 0x58(%rsi), %xmm6
movsd 0x60(%rsi), %xmm7
movsd 0x68(%rsi), %xmm8
movq 0x70(%rsi), %rcx
leaq 0x78(%rsi), %r8
movsd 0x90(%rsi), %xmm9
movsd 0x98(%rsi), %xmm10
movsd 0xa0(%rsi), %xmm11
movsd 0xa8(%rsi), %xmm12
movsd %xmm12, 0x20(%rsp)
movsd %xmm11, 0x18(%rsp)
movsd %xmm10, 0x10(%rsp)
movsd %xmm9, 0x8(%rsp)
movsd %xmm8, (%rsp)
movq %rbx, %rdi
movq %rax, %rsi
callq 0xa786
movq %rbx, %rdi
callq 0xa0f4
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/ImageInterface.cpp
// Function: ImageInterface::operator=(ImageInterface const&)
const ImageInterface& ImageInterface::operator=(const ImageInterface &ir)
{
	if (&ir == this)
		return *this;
	
	filename_ = ir.filename_;
	resize(ir.width_, ir.height_);
	
	return *this;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq %rdi, %rsi
je 0xccdf
movq %rsi, %r14
addq $0x8, %rsi
leaq 0x8(%rbx), %rdi
callq 0x3170
movl 0x28(%r14), %esi
movl 0x2c(%r14), %edx
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x28(%rax)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/ImageInterface.cpp
// Function: ImageInterface::operator==(ImageInterface const&) const
bool ImageInterface::operator==(const ImageInterface &im) const
{
	if (&im == this)
		return true;
	
	//Notice, no check against the filename
	
	if (width_ != im.width_ || height_ != im.height_)
		return false;
	assert(totalPixels_ == im.totalPixels_);
	
	return true;
}

// Assembly:
movb $0x1, %al
cmpq %rdi, %rsi
je 0xcd09
movl 0x28(%rdi), %ecx
cmpl 0x28(%rsi), %ecx
jne 0xcd0a
movl 0x2c(%rdi), %ecx
cmpl 0x2c(%rsi), %ecx
jne 0xcd0a
movl 0x30(%rdi), %ecx
cmpl 0x30(%rsi), %ecx
jne 0xcd0d
retq
xorl %eax, %eax
retq
pushq %rax
leaq 0x1f249(%rip), %rdi     # 0x2bf5e
leaq 0x1f262(%rip), %rsi     # 0x2bf7e
leaq 0x1f26e(%rip), %rcx     # 0x2bf91
movl $0x3f, %edx
callq 0x31c0
nop
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/ImageInterface.cpp
// Function: ImageInterface::stripString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void ImageInterface::stripString(string &str)
{
	if (str.length() >= 4)	//Strip extension (presumably ".pgm" or ".ppm")
	{
		if (str[str.length() - 4] == '.'
			&& (isalpha(str[str.length() - 3]) || isalpha(str[str.length() - 2]) || isalpha(str[str.length() - 1])))
			str = str.substr(0, str.length() - 4);
	}
	
	for (int i = 0; i < 2; i++)	//Do this twice, once for "_out" and once for "_ori"
	{
		if (str.length() >= 4)	//Strip "_out" and "_ori" suffixes
		{
			if (str.substr(str.length() - 4, 4) == "_out" ||
				str.substr(str.length() - 4, 4) == "_ori")
				str = str.substr(0, str.length() - 4);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %r14
cmpq $0x4, %r14
jb 0xcdd3
movq (%rbx), %r15
cmpb $0x2e, -0x4(%r15,%r14)
jne 0xcdd3
movsbl -0x3(%r15,%r14), %edi
callq 0x3470
testl %eax, %eax
jne 0xcd95
movsbl -0x2(%r15,%r14), %edi
callq 0x3470
testl %eax, %eax
jne 0xcd95
movsbl -0x1(%r15,%r14), %edi
callq 0x3470
testl %eax, %eax
je 0xcdd3
addq $-0x4, %r14
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
movq %r14, %rcx
callq 0x3330
movq %rbx, %rdi
movq %r15, %rsi
callq 0x33a0
movq (%r15), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xcdd3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3310
leaq 0x18(%rsp), %r13
movl $0x1, %r15d
leaq 0x8(%rsp), %r14
leaq 0x28(%rsp), %r12
movq 0x8(%rbx), %rdx
cmpq $0x4, %rdx
jb 0xcec9
addq $-0x4, %rdx
movl $0x4, %ecx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3330
movq %r14, %rdi
leaq 0x1f1c3(%rip), %rsi     # 0x2bfd7
callq 0x30c0
movl %eax, %ebp
testl %eax, %eax
je 0xce4e
movq 0x8(%rbx), %rdx
addq $-0x4, %rdx
movl $0x4, %ecx
movq %r12, %rdi
movq %rbx, %rsi
callq 0x3330
movq %r12, %rdi
leaq 0x1f19b(%rip), %rsi     # 0x2bfdc
callq 0x30c0
testl %eax, %eax
sete %r12b
jmp 0xce51
movb $0x1, %r12b
testl %ebp, %ebp
je 0xce71
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0xce71
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3310
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xce88
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3310
testb %r12b, %r12b
leaq 0x28(%rsp), %r12
je 0xcec9
movq 0x8(%rbx), %rcx
addq $-0x4, %rcx
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x3330
movq %rbx, %rdi
movq %r14, %rsi
callq 0x33a0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xcec9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3310
decl %r15d
je 0xcde8
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0xcefb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3310
movq %rbx, %rdi
callq 0x3500
nop
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/ImageInterface.cpp
// Function: ImageInterface::resize(int, int)
bool ImageInterface::resize(int width, int height)
{
	if (width_ == width && height_ == height)
		return false;
	
	width_ = width;
	height_ = height;
	totalPixels_ = width_ * height_;
	
	return true;
}

// Assembly:
movl 0x28(%rdi), %eax
xorl %esi, %eax
movl 0x2c(%rdi), %ecx
xorl %edx, %ecx
orl %eax, %ecx
setne %al
je 0xcfcd
movl %esi, 0x28(%rdi)
movl %edx, 0x2c(%rdi)
imull %esi, %edx
movl %edx, 0x30(%rdi)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/ImageReal.cpp
// Function: ImageReal::operator=(ImageReal const&)
const ImageReal& ImageReal::operator=(const ImageReal &ir)
{
	if (&ir == this)
		return *this;
	
	ImageInterface::operator=(ir);
	
	resize(ir.width_, ir.height_);
	memcpy(img_, ir.img_, totalPixels_ * sizeof(Float_t));
	
	return *this;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq %rdi, %rsi
je 0xd073
movq %rsi, %r14
movq %rbx, %rdi
callq 0xccb2
movl 0x28(%r14), %esi
movl 0x2c(%r14), %edx
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x28(%rax)
movq 0x38(%rbx), %rdi
movq 0x38(%r14), %rsi
movslq 0x30(%rbx), %rdx
shlq $0x3, %rdx
callq 0x3260
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/ImageReal.cpp
// Function: ImageReal::resize(int, int)
bool ImageReal::resize(int width, int height)
{
	if (!ImageInterface::resize(width, height))
	{
		erase();
		return false;
	}
	
	if (img_)
		delete [] img_;
	img_ = new Float_t[totalPixels_];
	erase();
	
	return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
callq 0xcfb0
movl %eax, %ebx
movq 0x38(%r14), %rdi
testb %al, %al
je 0xd1de
testq %rdi, %rdi
je 0xd1b1
callq 0x33c0
movslq 0x30(%r14), %rax
leaq (,%rax,8), %r15
testq %rax, %rax
movq $-0x1, %rdi
cmovnsq %r15, %rdi
callq 0x3030
movq %rax, 0x38(%r14)
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
jmp 0xd1e8
movslq 0x30(%r14), %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x3190
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/ImageReal.cpp
// Function: ImageReal::normalize(double, bool)
void ImageReal::normalize(Float_t maxVal, bool normalizeUpToo)
{
	//Normalize the absolute value, some "images" might contain negative pixels
	Float_t maxCurrentVal = 0;
	for (int i = 0; i < totalPixels_; i++)
		if (fabs(img_[i]) > maxCurrentVal)
			maxCurrentVal = fabs(img_[i]);
	
	if (maxCurrentVal < maxVal && !normalizeUpToo)
		return;
	if (maxCurrentVal == 0)
		return;
	
	Float_t scalar = maxVal / maxCurrentVal;
	scale(scalar);
	
	//This doesn't really have anything to do with normalization
	for (int i = 0; i < totalPixels_; i++)
		img_[i] = fabs(img_[i]);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movslq 0x30(%rdi), %rax
xorpd %xmm1, %xmm1
xorpd %xmm2, %xmm2
testq %rax, %rax
jle 0xd25c
movq 0x38(%rbx), %rcx
xorpd %xmm4, %xmm4
xorl %edx, %edx
movapd 0x1ddcd(%rip), %xmm3    # 0x2b010
movsd (%rcx,%rdx,8), %xmm2
andpd %xmm3, %xmm2
maxsd %xmm4, %xmm2
incq %rdx
movapd %xmm2, %xmm4
cmpq %rdx, %rax
jne 0xd243
ucomisd %xmm2, %xmm0
setbe %al
ucomisd %xmm1, %xmm2
jne 0xd26b
jnp 0xd2aa
orb %sil, %al
je 0xd2aa
divsd %xmm2, %xmm0
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x30(%rax)
movslq 0x30(%rbx), %rax
testq %rax, %rax
jle 0xd2aa
movq 0x38(%rbx), %rcx
xorl %edx, %edx
movapd 0x1dd7c(%rip), %xmm0    # 0x2b010
movsd (%rcx,%rdx,8), %xmm1
andpd %xmm0, %xmm1
movlpd %xmm1, (%rcx,%rdx,8)
incq %rdx
cmpq %rdx, %rax
jne 0xd294
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/ImageReal.cpp
// Function: ImageReal::flipHorizontal()
void ImageReal::flipHorizontal()
{
	Float_t temp;
	for (int y = 0; y < height_; y++)
	{
		int halfWidth = width_ / 2;
		for (int x = 0; x < halfWidth; x++)
		{
			temp = (*this)(x, y);
			(*this)(x, y) = (*this)((width_ - 1) - x, y);
			(*this)((width_ - 1) - x, y) = temp;
		}
	}
}

// Assembly:
movl 0x2c(%rdi), %eax
testl %eax, %eax
jle 0xd318
pushq %r15
pushq %r14
pushq %rbx
movl 0x28(%rdi), %ecx
movl %ecx, %edx
shrl $0x1f, %edx
addl %ecx, %edx
sarl %edx
movq 0x38(%rdi), %rsi
leal -0x1(%rcx), %edi
xorl %r8d, %r8d
xorl %r9d, %r9d
movq %rdx, %r10
movl %r8d, %r11d
movl %edi, %ebx
cmpl $0x2, %ecx
jl 0xd306
movl %r11d, %r14d
movsd (%rsi,%r14,8), %xmm0
movl %ebx, %r15d
movsd (%rsi,%r15,8), %xmm1
movsd %xmm1, (%rsi,%r14,8)
movsd %xmm0, (%rsi,%r15,8)
decl %ebx
incl %r11d
decq %r10
jne 0xd2de
incl %r9d
addl %ecx, %edi
addl %ecx, %r8d
cmpl %eax, %r9d
jne 0xd2d1
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/ImageReal.cpp
// Function: ImageReal::flipVertical()
void ImageReal::flipVertical()
{
	Float_t temp;
	int halfHeight = height_ / 2;
	for (int y = 0; y < halfHeight; y++)
		for (int x = 0; x < width_; x++)
		{
			temp = (*this)(x, y);
			(*this)(x, y) = (*this)(x, (height_ - 1) - y);
			(*this)(x, (height_ - 1) - y) = temp;
		}
}

// Assembly:
movl 0x2c(%rdi), %eax
cmpl $0x2, %eax
jl 0xd382
pushq %r14
pushq %rbx
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
movl 0x28(%rdi), %edx
movq 0x38(%rdi), %rsi
decl %eax
imull %edx, %eax
xorl %edi, %edi
xorl %r8d, %r8d
movq %rdx, %r9
movl %eax, %r10d
movl %edi, %r11d
testl %edx, %edx
jle 0xd373
movl %r11d, %ebx
movsd (%rsi,%rbx,8), %xmm0
movl %r10d, %r14d
movsd (%rsi,%r14,8), %xmm1
movsd %xmm1, (%rsi,%rbx,8)
movsd %xmm0, (%rsi,%r14,8)
incl %r11d
incl %r10d
decq %r9
jne 0xd34c
incl %r8d
addl %edx, %edi
subl %edx, %eax
cmpl %ecx, %r8d
jne 0xd33f
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/ImageReal.cpp
// Function: ImageReal::rot90CW()
void ImageReal::rot90CW()
{
	ImageReal temp(width_, height_);
	Float_t *tempImgPtr = temp.img_;
	for (int y = 0; y < height_; y++)
		for (int x = 0; x < width_; x++)
			*tempImgPtr++ = img_[((height_ - 1) - x) * width_ + y];
	*this = temp;
}

// Assembly:
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movl 0x28(%rdi), %esi
movl 0x2c(%rdi), %edx
movq %rsp, %rdi
callq 0xd07e
movslq 0x2c(%rbx), %rax
testq %rax, %rax
jle 0xd3f3
movl 0x28(%rbx), %ecx
movslq %ecx, %rdx
leaq -0x1(%rax), %rsi
imulq %rdx, %rsi
shlq $0x3, %rsi
addq 0x38(%rbx), %rsi
movq 0x38(%rsp), %rdi
shlq $0x3, %rdx
negq %rdx
xorl %r8d, %r8d
movq %rcx, %r9
movq %rsi, %r10
testl %ecx, %ecx
jle 0xd3e7
movsd (%r10), %xmm0
movsd %xmm0, (%rdi)
addq $0x8, %rdi
addq %rdx, %r10
decq %r9
jne 0xd3d2
incq %r8
addq $0x8, %rsi
cmpq %rax, %r8
jne 0xd3c8
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xd036
movq %rsp, %rdi
callq 0xd0fc
addq $0x40, %rsp
popq %rbx
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0xd0fc
movq %rbx, %rdi
callq 0x3500
nop
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/ImageReal.cpp
// Function: ImageReal::rot180()
void ImageReal::rot180()
{
	Float_t temp;
	int halfTotalPixels = totalPixels_ / 2;
	for (int i = 0; i < halfTotalPixels; i++)
	{
		temp = img_[i];
		img_[i] = img_[(totalPixels_ - 1) - i];
		img_[(totalPixels_ - 1) - i] = temp;
	}
}

// Assembly:
movslq 0x30(%rdi), %rdx
cmpq $0x2, %rdx
jl 0xd45d
movl %edx, %eax
shrl %eax
movq 0x38(%rdi), %rcx
leaq (%rcx,%rdx,8), %rdx
addq $-0x8, %rdx
negq %rax
xorl %esi, %esi
movsd (%rcx), %xmm0
movsd (%rdx,%rsi,8), %xmm1
movsd %xmm1, (%rcx)
movsd %xmm0, (%rdx,%rsi,8)
addq $0x8, %rcx
decq %rsi
cmpq %rsi, %rax
jne 0xd43f
retq
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/ImageReal.cpp
// Function: ImageReal::rot90CCW()
void ImageReal::rot90CCW()
{
	ImageReal temp(width_, height_);
	Float_t *tempImgPtr = temp.img_;
	for (int y = 0; y < height_; y++)
		for (int x = 0; x < width_; x++)
			*tempImgPtr++ = img_
				[x * width_ + ((width_ - 1) - y)];
	*this = temp;
}

// Assembly:
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movl 0x28(%rdi), %esi
movl 0x2c(%rdi), %edx
movq %rsp, %rdi
callq 0xd07e
movslq 0x2c(%rbx), %rax
testq %rax, %rax
jle 0xd4c6
movq 0x38(%rsp), %rcx
movl 0x28(%rbx), %edx
movq 0x38(%rbx), %rdi
movslq %edx, %rsi
leaq (%rdi,%rsi,8), %rdi
addq $-0x8, %rdi
shlq $0x3, %rsi
xorl %r8d, %r8d
movq %rdx, %r9
movq %rdi, %r10
testl %edx, %edx
jle 0xd4ba
movsd (%r10), %xmm0
movsd %xmm0, (%rcx)
addq $0x8, %rcx
addq %rsi, %r10
decq %r9
jne 0xd4a5
incq %r8
addq $-0x8, %rdi
cmpq %rax, %r8
jne 0xd49b
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xd036
movq %rsp, %rdi
callq 0xd0fc
addq $0x40, %rsp
popq %rbx
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0xd0fc
movq %rbx, %rdi
callq 0x3500
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/ImageReal.cpp
// Function: ImageReal::downsample(ImageReal&, int, int) const
void ImageReal::downsample(ImageReal &imageOut, int startX, int startY) const
{
	assert(width_ % 2 == 0 && height_ % 2 == 0);
	
	int	widthOut = width_ / 2, heightOut = height_ / 2;
	if (imageOut.width() != widthOut || imageOut.height() != heightOut)
		imageOut.resize(widthOut, heightOut);
	
	int imageOutIdx = 0;
	for (int y = startY; y < height_; y += 2)
		for (int x = startX; x < width_; x += 2, ++imageOutIdx)
			imageOut[imageOutIdx] = img_[y * width_ + x];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movl 0x28(%rdi), %esi
testb $0x1, %sil
jne 0xd59d
movl %edx, %ebx
movq %rdi, %r14
movl 0x2c(%rdi), %edx
testb $0x1, %dl
jne 0xd59d
movl %ecx, %ebp
sarl %esi
sarl %edx
cmpl %esi, 0x28(%r15)
jne 0xd52c
cmpl %edx, 0x2c(%r15)
je 0xd535
movq (%r15), %rax
movq %r15, %rdi
callq *0x28(%rax)
movslq 0x2c(%r14), %rax
cmpl %ebp, %eax
jle 0xd592
movslq 0x28(%r14), %rcx
movq 0x38(%r15), %rdx
movslq %ebp, %rsi
movq %rcx, %rdi
imulq %rsi, %rdi
shlq $0x3, %rdi
addq 0x38(%r14), %rdi
movslq %ebx, %r8
movq %rcx, %r9
shlq $0x4, %r9
xorl %r10d, %r10d
movq %r8, %r11
cmpl %ebx, %ecx
jle 0xd586
movsd (%rdi,%r11,8), %xmm0
movl %r10d, %r14d
movsd %xmm0, (%rdx,%r14,8)
addq $0x2, %r11
incl %r10d
cmpq %rcx, %r11
jl 0xd56b
addq $0x2, %rsi
addq %r9, %rdi
cmpq %rax, %rsi
jl 0xd564
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1ea64(%rip), %rdi     # 0x2c008
leaq 0x1ea81(%rip), %rsi     # 0x2c02c
leaq 0x1ea88(%rip), %rcx     # 0x2c03a
movl $0xbc, %edx
callq 0x31c0
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/ImageReal.cpp
// Function: ImageReal::upsample(ImageReal&, int, int) const
void ImageReal::upsample(ImageReal &imageOut, int startX, int startY) const
{
	assert(width_ % 2 == 0 && height_ % 2 == 0);
	
	int widthOut = width_ * 2, heightOut = height_ * 2;
	if (imageOut.width() != widthOut || imageOut.height() != heightOut)
		imageOut.resize(widthOut, heightOut);
	
	int imageInIdx = 0;
	for (int y = startY; y < heightOut; y += 2)
		for (int x = startX; x < widthOut; x += 2, ++imageInIdx)
			imageOut[y * widthOut + x] = img_[imageInIdx];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x28(%rdi), %r13d
testb $0x1, %r13b
jne 0xd67c
movl 0x2c(%rdi), %r14d
testb $0x1, %r14b
jne 0xd67c
movl %ecx, %ebx
movl %edx, %ebp
movq %rsi, %r12
leal (,%r13,2), %r15d
addl %r14d, %r14d
cmpl %r15d, 0x28(%rsi)
jne 0xd602
cmpl %r14d, 0x2c(%r12)
je 0xd61a
movq (%r12), %rax
movq %rdi, (%rsp)
movq %r12, %rdi
movl %r15d, %esi
movl %r14d, %edx
callq *0x28(%rax)
movq (%rsp), %rdi
cmpl %ebx, %r14d
jle 0xd66d
movq 0x38(%rdi), %rax
movq 0x38(%r12), %rcx
movl %r13d, %edx
imull %ebx, %edx
addl %edx, %edx
shll $0x2, %r13d
xorl %esi, %esi
cmpl %ebp, %r15d
jle 0xd662
movslq %esi, %rdi
leaq (%rax,%rdi,8), %rdi
movl %ebp, %r8d
movsd (%rdi), %xmm0
leal (%rdx,%r8), %r9d
movsd %xmm0, (%rcx,%r9,8)
addl $0x2, %r8d
addq $0x8, %rdi
incl %esi
cmpl %r15d, %r8d
jl 0xd645
addl $0x2, %ebx
addl %r13d, %edx
cmpl %r14d, %ebx
jl 0xd636
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1e985(%rip), %rdi     # 0x2c008
leaq 0x1e9a2(%rip), %rsi     # 0x2c02c
leaq 0x1e9e1(%rip), %rcx     # 0x2c072
movl $0xcd, %edx
callq 0x31c0
nop
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/Image3ChnlReal.cpp
// Function: Image3ChnlReal::Image3ChnlReal(Image3ChnlReal const&)
Image3ChnlReal::Image3ChnlReal(const Image3ChnlReal &ir)
{
	img_.push_back(new ImageReal());
	img_.push_back(new ImageReal());
	img_.push_back(new ImageReal());
	
	*this = ir;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
callq 0xcb50
leaq 0x28bd6(%rip), %rax     # 0x36d08
movq %rax, (%rbx)
leaq 0x38(%rbx), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%rbx)
movq $0x0, 0x48(%rbx)
movl $0x40, %edi
callq 0x3300
movq %rax, %r12
movq %rax, %rdi
callq 0xcfd0
movq %rsp, %rsi
movq %r12, (%rsi)
movq %r14, %rdi
callq 0xf12e
movl $0x40, %edi
callq 0x3300
movq %rax, %r12
movq %rax, %rdi
callq 0xcfd0
movq %rsp, %rsi
movq %r12, (%rsi)
movq %r14, %rdi
callq 0xf12e
movl $0x40, %edi
callq 0x3300
movq %rax, %r12
movq %rax, %rdi
callq 0xcfd0
movq %rsp, %rsi
movq %r12, (%rsi)
movq %r14, %rdi
callq 0xf12e
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe20c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0xe1e4
jmp 0xe1ce
jmp 0xe1ce
movq %rax, %r15
movl $0x40, %esi
movq %r12, %rdi
callq 0x3310
jmp 0xe1e7
jmp 0xe1e4
jmp 0xe1e4
movq %rax, %r15
movq (%r14), %rdi
testq %rdi, %rdi
je 0xe1fb
movq 0x48(%rbx), %rsi
subq %rdi, %rsi
callq 0x3310
movq %rbx, %rdi
callq 0xcc8a
movq %r15, %rdi
callq 0x3500
nop
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/Image3ChnlReal.cpp
// Function: Image3ChnlReal::operator=(Image3ChnlReal const&)
const Image3ChnlReal& Image3ChnlReal::operator=(const Image3ChnlReal &ir)
{
	if (&ir == this)
		return *this;
	
	ImageInterface::operator=(ir);
	
	resize(ir.width_, ir.height_);
	*img_[0] = *ir.img_[0];
	*img_[1] = *ir.img_[1];
	*img_[2] = *ir.img_[2];
	
	return *this;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq %rdi, %rsi
je 0xe271
movq %rsi, %r14
movq %rbx, %rdi
callq 0xccb2
movl 0x28(%r14), %esi
movl 0x2c(%r14), %edx
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x28(%rax)
movq 0x38(%r14), %rax
movq (%rax), %rsi
movq 0x38(%rbx), %rax
movq (%rax), %rdi
callq 0xd036
movq 0x38(%r14), %rax
movq 0x8(%rax), %rsi
movq 0x38(%rbx), %rax
movq 0x8(%rax), %rdi
callq 0xd036
movq 0x38(%r14), %rax
movq 0x10(%rax), %rsi
movq 0x38(%rbx), %rax
movq 0x10(%rax), %rdi
callq 0xd036
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/Image3ChnlReal.cpp
// Function: Image3ChnlReal::~Image3ChnlReal()
Image3ChnlReal::~Image3ChnlReal()
{
	assert(img_.size() == 3);
	delete img_[0];
	delete img_[1];
	delete img_[2];
}

// Assembly:
pushq %rbx
leaq 0x2898e(%rip), %rax     # 0x36d08
movq %rax, (%rdi)
movq 0x38(%rdi), %rax
movq 0x40(%rdi), %rcx
subq %rax, %rcx
cmpq $0x18, %rcx
jne 0xe3e3
movq %rdi, %rbx
movq (%rax), %rdi
testq %rdi, %rdi
je 0xe39f
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x38(%rbx), %rax
movq 0x8(%rax), %rdi
testq %rdi, %rdi
je 0xe3b2
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x38(%rbx), %rax
movq 0x10(%rax), %rdi
testq %rdi, %rdi
je 0xe3c5
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0xe3da
movq 0x48(%rbx), %rsi
subq %rdi, %rsi
callq 0x3310
movq %rbx, %rdi
popq %rbx
jmp 0xcc8a
leaq 0x1deaf(%rip), %rdi     # 0x2c299
leaq 0x1deb9(%rip), %rsi     # 0x2c2aa
leaq 0x1dec5(%rip), %rcx     # 0x2c2bd
movl $0x2f, %edx
callq 0x31c0
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/Image3ChnlReal.cpp
// Function: Image3ChnlReal::operator==(Image3ChnlReal const&) const
bool Image3ChnlReal::operator==(const Image3ChnlReal &im) const
{
	if (&im == this)
		return true;
	
	if (!(ImageInterface::operator==(im)))
		return false;
	
	if (*img_[0] != *im.img_[0])
		return false;
	if (*img_[1] != *im.img_[1])
		return false;
	if (*img_[2] != *im.img_[2])
		return false;
	
	return true;
}

// Assembly:
cmpq %rdi, %rsi
je 0xe46c
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0xccea
testb %al, %al
je 0xe462
movq 0x38(%r14), %rax
movq (%rax), %rdi
movq 0x38(%rbx), %rax
movq (%rax), %rsi
callq 0xd17c
testb %al, %al
jne 0xe462
movq 0x38(%r14), %rax
movq 0x8(%rax), %rdi
movq 0x38(%rbx), %rax
movq 0x8(%rax), %rsi
callq 0xd17c
testb %al, %al
je 0xe46f
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movb $0x1, %al
retq
movq 0x38(%r14), %rax
movq 0x10(%rax), %rdi
movq 0x38(%rbx), %rax
movq 0x10(%rax), %rsi
callq 0xd17c
xorb $0x1, %al
jmp 0xe464
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/Image3ChnlReal.cpp
// Function: Image3ChnlReal::resize(int, int)
bool Image3ChnlReal::resize(int width, int height)
{
	if (!ImageInterface::resize(width, height))
	{
		erase();
		return false;
	}
	
	assert(img_.size() == 3);
	
	img_[0]->resize(width_, height_);
	img_[1]->resize(width_, height_);
	img_[2]->resize(width_, height_);
	
	return true;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0xcfb0
movl %eax, %ebx
testb %al, %al
je 0xe4fe
movq 0x38(%r14), %rax
movq 0x40(%r14), %rcx
subq %rax, %rcx
cmpq $0x18, %rcx
jne 0xe510
movq (%rax), %rdi
movl 0x28(%r14), %esi
movl 0x2c(%r14), %edx
movq (%rdi), %rax
callq *0x28(%rax)
movq 0x38(%r14), %rax
movq 0x8(%rax), %rdi
movl 0x28(%r14), %esi
movl 0x2c(%r14), %edx
movq (%rdi), %rax
callq *0x28(%rax)
movq 0x38(%r14), %rax
movq 0x10(%rax), %rdi
movl 0x28(%r14), %esi
movl 0x2c(%r14), %edx
movq (%rdi), %rax
callq *0x28(%rax)
jmp 0xe506
movq %r14, %rdi
callq 0xe530
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x1dd82(%rip), %rdi     # 0x2c299
leaq 0x1dd8c(%rip), %rsi     # 0x2c2aa
leaq 0x1ddc2(%rip), %rcx     # 0x2c2e7
movl $0x63, %edx
callq 0x31c0
nop
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/DebayerProcs.cpp
// Function: bilinear_procOnePixel(ImageReal&, Image3ChnlReal&, int, int)
void bilinear_procOnePixel(
	ImageReal &grayImage, Image3ChnlReal &rgbImage,
	int x, int y)
{
	Color color = determineBayerColor(x, y);
	
	Float_t color1 = 0, color2 = 0;
	bilinear_calcMissingColors(grayImage, rgbImage, x, y, color1, color2);
	
	//Fill in the output
	Float_t bayerValue = grayImage(x, y);
	switch (color)
	{
		case R:
			rgbImage(R, x, y) = bayerValue;
			rgbImage(G, x, y) = color1;
			rgbImage(B, x, y) = color2;
			break;
		case G:
			rgbImage(R, x, y) = color1;
			rgbImage(G, x, y) = bayerValue;
			rgbImage(B, x, y) = color2;
			break;
		case B:
			rgbImage(R, x, y) = color1;
			rgbImage(G, x, y) = color2;
			rgbImage(B, x, y) = bayerValue;
			break;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %ecx, %ebx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r12
movl %edx, %edi
movl %ecx, %esi
callq 0x23404
movl %eax, %r15d
xorl %eax, %eax
leaq 0x18(%rsp), %r8
movq %rax, (%r8)
leaq 0x10(%rsp), %r9
movq %rax, (%r9)
movq %r12, %rdi
movl %ebp, %edx
movl %ebx, %ecx
callq 0xf594
movq 0x38(%r12), %rax
movl 0x28(%r12), %ecx
imull %ebx, %ecx
addl %ebp, %ecx
movsd (%rax,%rcx,8), %xmm0
cmpl $0x2, %r15d
je 0xfc67
cmpl $0x1, %r15d
je 0xfc17
testl %r15d, %r15d
jne 0xfcd1
movq %r14, %rdi
xorl %esi, %esi
movl %ebp, %edx
movl %ebx, %ecx
movsd %xmm0, (%rsp)
callq 0xe55c
movsd (%rsp), %xmm0
movsd %xmm0, (%rax)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, (%rsp)
jmp 0xfc40
movsd 0x18(%rsp), %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r14, %rdi
xorl %esi, %esi
movl %ebp, %edx
movl %ebx, %ecx
movsd %xmm0, (%rsp)
callq 0xe55c
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rax)
movq %r14, %rdi
movl $0x1, %esi
movl %ebp, %edx
movl %ebx, %ecx
callq 0xe55c
movsd (%rsp), %xmm0
movsd %xmm0, (%rax)
movsd 0x10(%rsp), %xmm0
movsd %xmm0, (%rsp)
jmp 0xfcb7
movsd 0x18(%rsp), %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r14, %rdi
xorl %esi, %esi
movl %ebp, %edx
movl %ebx, %ecx
movsd %xmm0, (%rsp)
callq 0xe55c
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rax)
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movq %r14, %rdi
movl $0x1, %esi
movl %ebp, %edx
movl %ebx, %ecx
callq 0xe55c
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rax)
movq %r14, %rdi
movl $0x2, %esi
movl %ebp, %edx
movl %ebx, %ecx
callq 0xe55c
movsd (%rsp), %xmm0
movsd %xmm0, (%rax)
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/DebayerProcs.cpp
// Function: hue_constructGreenChannel(ImageReal&, Image3ChnlReal&, int, int)
void hue_constructGreenChannel(
	ImageReal &grayImage, Image3ChnlReal &rgbImage,
	int x, int y)
{
	assert(determineBayerColor(x, y) != G);
	
	int width = grayImage.width(), height = grayImage.height();
	
	Float_t colorL = 0;
	int divisor = 0;
	if (y > 0)
	{
		colorL += grayImage(x, y - 1);
		divisor++;
	}
	if (x < width - 1)
	{
		colorL += grayImage(x + 1, y);
		divisor++;
	}
	if (y < height - 1)
	{
		colorL += grayImage(x, y + 1);
		divisor++;
	}
	if (x > 0)
	{
		colorL += grayImage(x - 1, y);
		divisor++;
	}
	assert(divisor > 0);
	
	rgbImage(G, x, y) = (Float_t)colorL / (Float_t)divisor;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %r12
movl %edx, %edi
movl %ecx, %esi
callq 0x23404
cmpl $0x1, %eax
je 0xfe15
movl 0x28(%r12), %ecx
testl %ebx, %ebx
jle 0xfd80
leal -0x1(%rbx), %eax
movq 0x38(%r12), %rdx
imull %ecx, %eax
addl %r14d, %eax
xorpd %xmm1, %xmm1
addsd (%rdx,%rax,8), %xmm1
movl $0x1, %eax
jmp 0xfd86
xorl %eax, %eax
xorpd %xmm1, %xmm1
movl 0x2c(%r12), %edx
leal -0x1(%rcx), %esi
cmpl %r14d, %esi
jle 0xfda9
movq 0x38(%r12), %rsi
movl %ecx, %edi
imull %ebx, %edi
addl %r14d, %edi
incl %edi
addsd (%rsi,%rdi,8), %xmm1
incl %eax
decl %edx
cmpl %ebx, %edx
jle 0xfdc4
leal 0x1(%rbx), %edx
movq 0x38(%r12), %rsi
imull %ecx, %edx
addl %r14d, %edx
addsd (%rsi,%rdx,8), %xmm1
incl %eax
testl %r14d, %r14d
jle 0xfddd
movq 0x38(%r12), %rdx
imull %ebx, %ecx
addl %r14d, %ecx
decl %ecx
addsd (%rdx,%rcx,8), %xmm1
incl %eax
testl %eax, %eax
jle 0xfe34
cvtsi2sd %eax, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r15, %rdi
movl $0x1, %esi
movl %r14d, %edx
movl %ebx, %ecx
callq 0xe55c
movsd (%rsp), %xmm0
movsd %xmm0, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x1c766(%rip), %rdi     # 0x2c582
leaq 0x1c6a5(%rip), %rsi     # 0x2c4c8
leaq 0x1c777(%rip), %rcx     # 0x2c5a1
movl $0x156, %edx            # imm = 0x156
callq 0x31c0
leaq 0x1c6dc(%rip), %rdi     # 0x2c517
leaq 0x1c686(%rip), %rsi     # 0x2c4c8
leaq 0x1c758(%rip), %rcx     # 0x2c5a1
movl $0x170, %edx            # imm = 0x170
callq 0x31c0
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/DebayerProcs.cpp
// Function: bayer(Image3ChnlReal, ImageReal&)
void bayer(Image3ChnlReal rgbImage, ImageReal &grayImage)
{
	cout << endl << "Bayerizing..." << endl;
	
	int width = rgbImage.width(), height = rgbImage.height();
	
	if (grayImage.width() != rgbImage.width() || grayImage.height() != rgbImage.height())
		die("Bayer output isn't same size as bayer input");
	
	for (int y = 0; y < height; y++)
		for (int x = 0; x < width; x++)
		{
			Color color = determineBayerColor(x, y);
			switch (color)
			{
				case R:
					grayImage(x, y) = rgbImage(R, x, y);
					break;
				case G:
					grayImage(x, y) = rgbImage(G, x, y);
					break;
				case B:
					grayImage(x, y) = rgbImage(B, x, y);
					break;
			}
		}
	
	grayImage.setFilename(rgbImage.filename());
	grayImage.appendFilename("_b");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x252e5(%rip), %r15     # 0x36fd0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movq %rax, %r15
leaq 0x1ad7f(%rip), %rsi     # 0x2ca9b
movl $0xd, %edx
movq %rax, %rdi
callq 0x3360
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x32e0
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31f0
movl 0x28(%r14), %r12d
movl 0x2c(%r14), %r13d
cmpl %r12d, 0x28(%rbx)
jne 0x11d64
cmpl %r13d, 0x2c(%rbx)
je 0x11d70
leaq 0x1acff(%rip), %rdi     # 0x2ca6a
callq 0x403c
testl %r13d, %r13d
jle 0x11dc2
xorl %ebp, %ebp
testl %r12d, %r12d
jle 0x11dbb
xorl %r15d, %r15d
movl %r15d, %edi
movl %ebp, %esi
callq 0x23404
cmpl $0x2, %eax
ja 0x11db3
movq %r14, %rdi
movl %eax, %esi
movl %r15d, %edx
movl %ebp, %ecx
callq 0xe55c
movsd (%rax), %xmm0
movq 0x38(%rbx), %rax
movl 0x28(%rbx), %ecx
imull %ebp, %ecx
addl %r15d, %ecx
movsd %xmm0, (%rax,%rcx,8)
incl %r15d
cmpl %r15d, %r12d
jne 0x11d7f
incl %ebp
cmpl %r13d, %ebp
jne 0x11d77
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xa97e
movq %rbx, %rdi
movq %r14, %rsi
callq 0xcf04
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x11e05
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3310
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1ac81(%rip), %rsi     # 0x2ca96
leaq 0x1ac7c(%rip), %rdx     # 0x2ca98
leaq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0xaa0e
movq %rbx, %rdi
movq %r14, %rsi
callq 0xcf1e
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x11e4b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3310
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
jmp 0x11e6c
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x11e7c
movq (%r15), %rsi
incq %rsi
callq 0x3310
movq %rbx, %rdi
callq 0x3500
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/ImageProcs.cpp
// Function: xyz2rgb(double, double, double, double&, double&, double&)
void xyz2rgb(Float_t x, Float_t y, Float_t z,
			Float_t &r, Float_t &g, Float_t &b)
{
	r = x *  3.240479 + y * -1.537150 + z * -0.498535;
	g = x * -0.969256 + y *  1.875992 + z *  0.041556;
	b = x *  0.055648 + y * -0.204043 + z *  1.057311;
	
	if (r < 0)
		r = 0;
	else if (r > 1)
		r = 1;
	
	if (g < 0)
		g = 0;
	else if (g > 1)
		g = 1;
	
	if (b < 0)
		b = 0;
	else if (b > 1)
		b = 1;
}

// Assembly:
movsd 0x1a7cc(%rip), %xmm3    # 0x2cb38
mulsd %xmm1, %xmm3
movsd 0x1a7c8(%rip), %xmm4    # 0x2cb40
mulsd %xmm0, %xmm4
addsd %xmm3, %xmm4
movsd 0x1a7c0(%rip), %xmm3    # 0x2cb48
mulsd %xmm2, %xmm3
addsd %xmm4, %xmm3
movsd %xmm3, (%rdi)
movsd 0x1a7b4(%rip), %xmm3    # 0x2cb50
mulsd %xmm1, %xmm3
movsd 0x1a7b0(%rip), %xmm4    # 0x2cb58
mulsd %xmm0, %xmm4
addsd %xmm3, %xmm4
movsd 0x1a7a8(%rip), %xmm3    # 0x2cb60
mulsd %xmm2, %xmm3
addsd %xmm4, %xmm3
mulsd 0x1a7a0(%rip), %xmm1    # 0x2cb68
movsd %xmm3, (%rsi)
mulsd 0x1a79c(%rip), %xmm0    # 0x2cb70
addsd %xmm1, %xmm0
mulsd 0x1a798(%rip), %xmm2    # 0x2cb78
addsd %xmm0, %xmm2
movsd %xmm2, (%rdx)
movsd (%rdi), %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
ja 0x12404
movsd 0x18c5a(%rip), %xmm0    # 0x2b058
ucomisd %xmm0, %xmm1
jbe 0x12408
movsd %xmm0, (%rdi)
movsd (%rsi), %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
ja 0x12424
movsd 0x18c3a(%rip), %xmm0    # 0x2b058
ucomisd %xmm0, %xmm1
jbe 0x12428
movsd %xmm0, (%rsi)
movsd (%rdx), %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
ja 0x12444
movsd 0x18c1a(%rip), %xmm0    # 0x2b058
ucomisd %xmm0, %xmm1
jbe 0x12448
movsd %xmm0, (%rdx)
retq
// File: /workspace/github_cpp_makefile_star2_O1/kebwi[P]Trifid/src/ImageProcs.cpp
// Function: xyz2cielab(double, double, double, double&, double&, double&)
void xyz2cielab(Float_t x, Float_t y, Float_t z,
				Float_t &l, Float_t &a, Float_t &b)
{
	//assert(x >= 0 && x <= 1);
	//assert(y >= 0 && y <= 1);
	//assert(z >= 0 && z <= 1);
	
	//----------------------------------------------------------------------
	
	//Taken from http://www.easyrgb.com/math.php
	//and http://en.wikipedia.org/wiki/SRGB_color_space
	//and http://www.mediamacros.com/item/item-1006687658/
	//and http://www.cs.rit.edu/~ncs/color/t_convert.html
	
	//Two degree D65 white point tristimulus values
	x /= 95.047;
	y /= 100.0;
	z /= 108.883;
	
	if (x > 0.008856)
		x = pow(x, 1.0 / 3.0);
	else x = (7.787 * x) + (16.0 / 116.0);
	if (y > 0.008856)
		y = pow(y, 1.0 / 3.0);
	else y = (7.787 * y) + (16.0 / 116.0);
	if (z > 0.008856)
		z = pow(z, 1.0 / 3.0);
	else z = (7.787 * z) + (16.0 / 116.0);
	
	//This resource ( http://www.cs.rit.edu/~ncs/color/t_convert.html ) computes l like this:
	if (y > 0.008856)
		l = (116.0 * y) - 16.0;
	else l = 903.3 * y;
	//l = (116 * y) - 16;
	a = 500.0 * (x - y);
	b = 200.0 * (y - z);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movapd %xmm1, %xmm4
divsd 0x1a719(%rip), %xmm0    # 0x2cb80
divsd 0x1a719(%rip), %xmm4    # 0x2cb88
movapd %xmm2, %xmm5
ucomisd 0x1a71d(%rip), %xmm0    # 0x2cb98
jbe 0x124a4
movsd 0x1a72b(%rip), %xmm1    # 0x2cbb0
movsd %xmm4, 0x10(%rsp)
movsd %xmm5, 0x8(%rsp)
callq 0x34f0
movsd 0x8(%rsp), %xmm5
movsd 0x10(%rsp), %xmm4
jmp 0x124b4
mulsd 0x1a6f4(%rip), %xmm0    # 0x2cba0
addsd 0x1a6f4(%rip), %xmm0    # 0x2cba8
divsd 0x1a6d4(%rip), %xmm5    # 0x2cb90
ucomisd 0x1a6d4(%rip), %xmm4    # 0x2cb98
movsd %xmm0, 0x18(%rsp)
jbe 0x124ef
movsd 0x1a6dc(%rip), %xmm1    # 0x2cbb0
movapd %xmm4, %xmm0
movsd %xmm5, 0x8(%rsp)
callq 0x34f0
movsd 0x8(%rsp), %xmm5
movapd %xmm0, %xmm4
jmp 0x124ff
mulsd 0x1a6a9(%rip), %xmm4    # 0x2cba0
addsd 0x1a6a9(%rip), %xmm4    # 0x2cba8
ucomisd 0x1a691(%rip), %xmm5    # 0x2cb98
jbe 0x1252c
movsd 0x1a69f(%rip), %xmm1    # 0x2cbb0
movapd %xmm5, %xmm0
movsd %xmm4, 0x10(%rsp)
callq 0x34f0
movsd 0x10(%rsp), %xmm4
movapd %xmm0, %xmm5
jmp 0x1253c
mulsd 0x1a66c(%rip), %xmm5    # 0x2cba0
addsd 0x1a66c(%rip), %xmm5    # 0x2cba8
movsd 0x1a674(%rip), %xmm0    # 0x2cbb8
movsd 0x1a674(%rip), %xmm1    # 0x2cbc0
mulsd %xmm4, %xmm1
addsd 0x1a670(%rip), %xmm1    # 0x2cbc8
mulsd %xmm4, %xmm0
movsd 0x1a634(%rip), %xmm2    # 0x2cb98
cmpltsd %xmm4, %xmm2
movapd %xmm2, %xmm3
andnpd %xmm0, %xmm3
andpd %xmm1, %xmm2
orpd %xmm3, %xmm2
movlpd %xmm2, (%r15)
movsd 0x18(%rsp), %xmm0
subsd %xmm4, %xmm0
mulsd 0x1a640(%rip), %xmm0    # 0x2cbd0
movsd %xmm0, (%r14)
subsd %xmm5, %xmm4
mulsd 0x1a637(%rip), %xmm4    # 0x2cbd8
movsd %xmm4, (%rbx)
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq