// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
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 %rsi, %r13
movq %rdi, %r14
movsd 0xc0(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movsd 0xb8(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
movsd 0xb0(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0xa8(%rsp), %xmm0
movsd %xmm0, (%rsp)
movsd 0xa0(%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
movq 0x8(%rdi), %rbp
movq %rsi, %rdi
callq 0x3130
movq %r14, %rdi
xorl %esi, %esi
movq %rbp, %rdx
movq %r13, %rcx
movq %rax, %r8
callq 0x3430
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 0xa8bb
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x70(%r14)
testq %r15, %r15
je 0xa8e4
movl $0x40, %edi
callq 0x3300
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0xcfee
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 %r13
popq %r14
popq %r15
popq %rbp
jmp 0xa0f4
movq %rax, %rbx
movl $0x40, %esi
movq %r12, %rdi
callq 0x3310
movq %rbx, %rdi
callq 0x3500