// File: /workspace/github_cpp_makefile_star2_O2/kebwi[P]Trifid/src/./ImageProcs.h
// Function: NoiseParam::set(char const*, double, double, double, double, double, unsigned long, double, double, double, double, ImageReal*, double const*, double, double, double, double)
void set(
		const char *label,
		Float_t lux,
		Float_t minReflectance,
		Float_t maxReflectance,
		Float_t temperatureC,
		//Float_t focalLengthMM,
		Float_t pixelPitchMicrons,
		unsigned long fullWellCapacity,
		Float_t readNoise,
		//ImageReal *bias,
		Float_t ampVarFactor,
		Float_t darkCurrentRoomTempElectronsPerPixPerSec,
		Float_t hotPixelFactor,
		ImageReal *hotPixels,
		const Float_t quantumEfficiency[3],
		Float_t ampGlowElectronsPerPixPerSec,
		Float_t exposureSecs,
		Float_t ampGain,
		Float_t lensFnumber
	)
	{
		label_ = label;
		lux_ = lux;
		minReflectance_ = minReflectance;
		maxReflectance_ = maxReflectance;
		temperatureC_ = temperatureC;
		//focalLengthMM_ = focalLengthMM;
		pixelPitchMicrons_ = pixelPitchMicrons;
		fullWellCapacity_ = fullWellCapacity;
		readNoise_ = readNoise;
		//if (biases_)
		//	*biases_ = *bias;
		//else biases_ = new ImageReal(*bias);
		ampVarFactor_ = ampVarFactor;
		darkCurrentRoomTempElectronsPerPixPerSec_ = darkCurrentRoomTempElectronsPerPixPerSec;
		hotPixelFactor_ = hotPixelFactor;
		delete hotPixelScalars_;
		hotPixelScalars_ = NULL;
		if (hotPixels)
			hotPixelScalars_ = new ImageReal(*hotPixels);
		quantumEfficiency_[R] = quantumEfficiency[R];
		quantumEfficiency_[G] = quantumEfficiency[G];
		quantumEfficiency_[B] = quantumEfficiency[B];
		ampGlowElectronsPerPixPerSec_ = ampGlowElectronsPerPixPerSec;
		exposureSecs_ = exposureSecs;
		ampGain_ = ampGain;
		focalRatio_ = lensFnumber;
		
		selfCheck();
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r8, %rbx
movq %rcx, %r15
movsd %xmm7, 0x60(%rsp)
movsd %xmm6, 0x58(%rsp)
movsd %xmm5, 0x50(%rsp)
movq %rdx, %r12
movsd %xmm4, 0x48(%rsp)
movsd %xmm3, 0x40(%rsp)
movsd %xmm2, 0x38(%rsp)
movsd %xmm1, 0x30(%rsp)
movsd %xmm0, 0x20(%rsp)
movq %rdi, %r14
movsd 0xb0(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movsd 0xa8(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
movsd 0xa0(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0x98(%rsp), %xmm0
movsd %xmm0, (%rsp)
movsd 0x90(%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
callq 0x3520
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x20(%r14)
movsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x28(%r14)
movsd 0x38(%rsp), %xmm0
movsd %xmm0, 0x30(%r14)
movsd 0x40(%rsp), %xmm0
movsd %xmm0, 0x38(%r14)
movsd 0x48(%rsp), %xmm0
movsd %xmm0, 0x40(%r14)
movq %r12, 0x48(%r14)
movsd 0x50(%rsp), %xmm0
movsd %xmm0, 0x50(%r14)
movsd 0x58(%rsp), %xmm0
movsd %xmm0, 0x58(%r14)
movsd 0x60(%rsp), %xmm0
movsd %xmm0, 0x60(%r14)
movsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x68(%r14)
movq 0x70(%r14), %rdi
testq %rdi, %rdi
je 0x8899
movq (%rdi), %rax
callq *0x8(%rax)
andq $0x0, 0x70(%r14)
testq %r15, %r15
je 0x88bd
pushq $0x40
popq %rdi
callq 0x32d0
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0xa5a2
movq %r12, 0x70(%r14)
movsd (%rbx), %xmm0
movsd %xmm0, 0x78(%r14)
movsd 0x8(%rbx), %xmm0
movsd %xmm0, 0x80(%r14)
movsd 0x10(%rbx), %xmm0
movsd %xmm0, 0x88(%r14)
movsd (%rsp), %xmm0
movsd %xmm0, 0x90(%r14)
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x98(%r14)
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0xa0(%r14)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0xa8(%r14)
movq %r14, %rdi
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x815a
movq %rax, %rbx
pushq $0x40
popq %rsi
movq %r12, %rdi
callq 0x32e0
movq %rbx, %rdi
callq 0x34d0