// File: 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 %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movsd 0x30(%rbp), %xmm8
movsd 0x28(%rbp), %xmm8
movsd 0x20(%rbp), %xmm8
movsd 0x18(%rbp), %xmm8
movsd 0x10(%rbp), %xmm8
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movsd %xmm0, -0x18(%rbp)
movsd %xmm1, -0x20(%rbp)
movsd %xmm2, -0x28(%rbp)
movsd %xmm3, -0x30(%rbp)
movsd %xmm4, -0x38(%rbp)
movq %rdx, -0x40(%rbp)
movsd %xmm5, -0x48(%rbp)
movsd %xmm6, -0x50(%rbp)
movsd %xmm7, -0x58(%rbp)
movq %rcx, -0x60(%rbp)
movq %r8, -0x68(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x88(%rbp)
movq -0x10(%rbp), %rsi
callq 0x44f0
movq -0x88(%rbp), %rax
movsd -0x18(%rbp), %xmm0
movsd %xmm0, 0x20(%rax)
movsd -0x20(%rbp), %xmm0
movsd %xmm0, 0x28(%rax)
movsd -0x28(%rbp), %xmm0
movsd %xmm0, 0x30(%rax)
movsd -0x30(%rbp), %xmm0
movsd %xmm0, 0x38(%rax)
movsd -0x38(%rbp), %xmm0
movsd %xmm0, 0x40(%rax)
movq -0x40(%rbp), %rcx
movq %rcx, 0x48(%rax)
movsd -0x48(%rbp), %xmm0
movsd %xmm0, 0x50(%rax)
movsd -0x50(%rbp), %xmm0
movsd %xmm0, 0x58(%rax)
movsd -0x58(%rbp), %xmm0
movsd %xmm0, 0x60(%rax)
movsd 0x10(%rbp), %xmm0
movsd %xmm0, 0x68(%rax)
movq 0x70(%rax), %rax
movq %rax, -0x80(%rbp)
cmpq $0x0, %rax
je 0xf7ca
movq -0x80(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq -0x88(%rbp), %rax
movq $0x0, 0x70(%rax)
cmpq $0x0, -0x60(%rbp)
je 0xf835
movl $0x40, %edi
callq 0x43a0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x90(%rbp)
movq -0x60(%rbp), %rsi
callq 0x15620
jmp 0xf802
movq -0x88(%rbp), %rax
movq -0x90(%rbp), %rcx
movq %rcx, 0x70(%rax)
jmp 0xf835
movq -0x90(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
movl $0x40, %esi
callq 0x43b0
jmp 0xf8ad
movq -0x88(%rbp), %rdi
movq -0x68(%rbp), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x78(%rdi)
movq -0x68(%rbp), %rax
movsd 0x8(%rax), %xmm0
movsd %xmm0, 0x80(%rdi)
movq -0x68(%rbp), %rax
movsd 0x10(%rax), %xmm0
movsd %xmm0, 0x88(%rdi)
movsd 0x18(%rbp), %xmm0
movsd %xmm0, 0x90(%rdi)
movsd 0x20(%rbp), %xmm0
movsd %xmm0, 0x98(%rdi)
movsd 0x28(%rbp), %xmm0
movsd %xmm0, 0xa0(%rdi)
movsd 0x30(%rbp), %xmm0
movsd %xmm0, 0xa8(%rdi)
callq 0xe770
addq $0x90, %rsp
popq %rbp
retq
movq -0x70(%rbp), %rdi
callq 0x4620
nopw %cs:(%rax,%rax)