// File: /workspace/github_c_makefile_star2_O0/ender672[P]liboil/test.c
// Function: postprocess
static void postprocess(long double *in, enum oil_colorspace cs)
{
	long double alpha;
	switch (cs) {
	case OIL_CS_G:
		in[0] = clamp_f(in[0]);
		break;
	case OIL_CS_GA:
		alpha = clamp_f(in[1]);
		if (alpha != 0.0L) {
			in[0] /= alpha;
		}
		in[0] = clamp_f(in[0]);
		in[1] = alpha;
		break;
	case OIL_CS_RGB:
		in[0] = linear_sample_to_srgb_reference(in[0]);
		in[1] = linear_sample_to_srgb_reference(in[1]);
		in[2] = linear_sample_to_srgb_reference(in[2]);
		break;
	case OIL_CS_RGBX:
		in[0] = linear_sample_to_srgb_reference(in[0]);
		in[1] = linear_sample_to_srgb_reference(in[1]);
		in[2] = linear_sample_to_srgb_reference(in[2]);
		in[3] = 0;
		break;
	case OIL_CS_RGBA:
		alpha = clamp_f(in[3]);
		if (alpha != 0.0L) {
			in[0] /= alpha;
			in[1] /= alpha;
			in[2] /= alpha;
		}
		in[0] = linear_sample_to_srgb_reference(in[0]);
		in[1] = linear_sample_to_srgb_reference(in[1]);
		in[2] = linear_sample_to_srgb_reference(in[2]);
		in[3] = alpha;
		break;
	case OIL_CS_CMYK:
		in[0] = clamp_f(in[0]);
		in[1] = clamp_f(in[1]);
		in[2] = clamp_f(in[2]);
		in[3] = clamp_f(in[3]);
		break;
	case OIL_CS_UNKNOWN:
		break;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x24(%rbp)
testl %eax, %eax
je 0x5165
jmp 0x4eff
movl -0x24(%rbp), %eax
subl $0x1, %eax
je 0x4f52
jmp 0x4f09
movl -0x24(%rbp), %eax
subl $0x2, %eax
je 0x4f6d
jmp 0x4f13
movl -0x24(%rbp), %eax
subl $0x3, %eax
je 0x4fc4
jmp 0x4f21
movl -0x24(%rbp), %eax
subl $0x4, %eax
je 0x500f
jmp 0x4f2f
movl -0x24(%rbp), %eax
subl $0x104, %eax            # imm = 0x104
je 0x5063
jmp 0x4f3f
movl -0x24(%rbp), %eax
subl $0x204, %eax            # imm = 0x204
je 0x5105
jmp 0x5167
movq -0x8(%rbp), %rax
fldt (%rax)
movq %rsp, %rax
fstpt (%rax)
callq 0x5780
movq -0x8(%rbp), %rax
fstpt (%rax)
jmp 0x5167
movq -0x8(%rbp), %rax
fldt 0x10(%rax)
movq %rsp, %rax
fstpt (%rax)
callq 0x5780
fstpt -0x20(%rbp)
fldt -0x20(%rbp)
fldz
fxch %st(1)
fucompi %st(1), %st
fstp %st(0)
jne 0x4f92
jp 0x4f92
jmp 0x4f9f
fldt -0x20(%rbp)
movq -0x8(%rbp), %rax
fldt (%rax)
fdivp %st, %st(1)
fstpt (%rax)
movq -0x8(%rbp), %rax
fldt (%rax)
movq %rsp, %rax
fstpt (%rax)
callq 0x5780
movq -0x8(%rbp), %rax
fstpt (%rax)
fldt -0x20(%rbp)
movq -0x8(%rbp), %rax
fstpt 0x10(%rax)
jmp 0x5167
movq -0x8(%rbp), %rax
fldt (%rax)
movq %rsp, %rax
fstpt (%rax)
callq 0x57c0
movq -0x8(%rbp), %rax
fstpt (%rax)
movq -0x8(%rbp), %rax
fldt 0x10(%rax)
movq %rsp, %rax
fstpt (%rax)
callq 0x57c0
movq -0x8(%rbp), %rax
fstpt 0x10(%rax)
movq -0x8(%rbp), %rax
fldt 0x20(%rax)
movq %rsp, %rax
fstpt (%rax)
callq 0x57c0
movq -0x8(%rbp), %rax
fstpt 0x20(%rax)
jmp 0x5167
movq -0x8(%rbp), %rax
fldt (%rax)
movq %rsp, %rax
fstpt (%rax)
callq 0x57c0
movq -0x8(%rbp), %rax
fstpt (%rax)
movq -0x8(%rbp), %rax
fldt 0x10(%rax)
movq %rsp, %rax
fstpt (%rax)
callq 0x57c0
movq -0x8(%rbp), %rax
fstpt 0x10(%rax)
movq -0x8(%rbp), %rax
fldt 0x20(%rax)
movq %rsp, %rax
fstpt (%rax)
callq 0x57c0
movq -0x8(%rbp), %rax
fstpt 0x20(%rax)
movq -0x8(%rbp), %rax
fldz
fstpt 0x30(%rax)
jmp 0x5167
movq -0x8(%rbp), %rax
fldt 0x30(%rax)
movq %rsp, %rax
fstpt (%rax)
callq 0x5780
fstpt -0x20(%rbp)
fldt -0x20(%rbp)
fldz
fxch %st(1)
fucompi %st(1), %st
fstp %st(0)
jne 0x5088
jp 0x5088
jmp 0x50b3
fldt -0x20(%rbp)
movq -0x8(%rbp), %rax
fldt (%rax)
fdivp %st, %st(1)
fstpt (%rax)
fldt -0x20(%rbp)
movq -0x8(%rbp), %rax
fldt 0x10(%rax)
fdivp %st, %st(1)
fstpt 0x10(%rax)
fldt -0x20(%rbp)
movq -0x8(%rbp), %rax
fldt 0x20(%rax)
fdivp %st, %st(1)
fstpt 0x20(%rax)
movq -0x8(%rbp), %rax
fldt (%rax)
movq %rsp, %rax
fstpt (%rax)
callq 0x57c0
movq -0x8(%rbp), %rax
fstpt (%rax)
movq -0x8(%rbp), %rax
fldt 0x10(%rax)
movq %rsp, %rax
fstpt (%rax)
callq 0x57c0
movq -0x8(%rbp), %rax
fstpt 0x10(%rax)
movq -0x8(%rbp), %rax
fldt 0x20(%rax)
movq %rsp, %rax
fstpt (%rax)
callq 0x57c0
movq -0x8(%rbp), %rax
fstpt 0x20(%rax)
fldt -0x20(%rbp)
movq -0x8(%rbp), %rax
fstpt 0x30(%rax)
jmp 0x5167
movq -0x8(%rbp), %rax
fldt (%rax)
movq %rsp, %rax
fstpt (%rax)
callq 0x5780
movq -0x8(%rbp), %rax
fstpt (%rax)
movq -0x8(%rbp), %rax
fldt 0x10(%rax)
movq %rsp, %rax
fstpt (%rax)
callq 0x5780
movq -0x8(%rbp), %rax
fstpt 0x10(%rax)
movq -0x8(%rbp), %rax
fldt 0x20(%rax)
movq %rsp, %rax
fstpt (%rax)
callq 0x5780
movq -0x8(%rbp), %rax
fstpt 0x20(%rax)
movq -0x8(%rbp), %rax
fldt 0x30(%rax)
movq %rsp, %rax
fstpt (%rax)
callq 0x5780
movq -0x8(%rbp), %rax
fstpt 0x30(%rax)
jmp 0x5167
jmp 0x5167
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)