// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mtp_std_terminal_SGRColor_RGB
static INT mtp_std_terminal_SGRColor_RGB (struct std_terminal_SGRColor in_SGRColor_1, INT *out_Int_3, INT *out_Int_4) {
	struct std_terminal_SGRColor_RGB v5 = *in_SGRColor_1.ptr.RGB;
	if (!--(in_SGRColor_1.ptr.RGB->refs)) {
		free(in_SGRColor_1.ptr.RGB);
	} else {
		incref(MKINT(v5.mInt_2));
		incref(MKINT(v5.mInt_1));
		incref(MKINT(v5.mInt));
	}
	*out_Int_4 = v5.mInt;
	*out_Int_3 = v5.mInt_1;
	return v5.mInt_2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movl %edi, -0x18(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rcx
movq %rcx, -0x48(%rbp)
movq 0x8(%rax), %rcx
movq %rcx, -0x40(%rbp)
movq 0x10(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq 0x18(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x3974b
movq -0x10(%rbp), %rdi
callq 0x5030
jmp 0x39996
jmp 0x3974d
movq -0x40(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq 0x357ccc(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x397f8
movq -0x40(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0x357ca3(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x60(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x68(%rbp), %rax
cmpq $0x0, %rax
je 0x397f8
movq -0x40(%rbp), %rax
movq %rax, -0x78(%rbp)
leaq 0x357c78(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x70(%rbp)
movq -0x78(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x397f8
movq -0x40(%rbp), %rax
movq %rax, -0x88(%rbp)
leaq 0x357c50(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x80(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x88(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x397fa
jmp 0x397fc
movq -0x38(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x357c1a(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x398c5
movq -0x38(%rbp), %rax
movq %rax, -0xa8(%rbp)
leaq 0x357be8(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0xa0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xa8(%rbp), %rax
cmpq $0x0, %rax
je 0x398c5
movq -0x38(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq 0x357bb4(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0xb0(%rbp)
movq -0xb8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x398c5
movq -0x38(%rbp), %rax
movq %rax, -0xc8(%rbp)
leaq 0x357b86(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0xc0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xc8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x398c7
jmp 0x398c9
movq -0x30(%rbp), %rax
movq %rax, -0xd8(%rbp)
leaq 0x357b4d(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x39992
movq -0x30(%rbp), %rax
movq %rax, -0xe8(%rbp)
leaq 0x357b1b(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0xe0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xe8(%rbp), %rax
cmpq $0x0, %rax
je 0x39992
movq -0x30(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq 0x357ae7(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0xf0(%rbp)
movq -0xf8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x39992
movq -0x30(%rbp), %rax
movq %rax, -0x108(%rbp)
leaq 0x357ab9(%rip), %rax    # 0x391428
orq $0x1, %rax
movq %rax, -0x100(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x108(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x39994
jmp 0x39996
movq -0x28(%rbp), %rax
movq -0x30(%rbp), %rcx
movq %rcx, (%rax)
movq -0x20(%rbp), %rax
movq -0x38(%rbp), %rcx
movq %rcx, (%rax)
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nopw %cs:(%rax,%rax)