// File: /workspace/github_cpp_makefile_star2_O1/rpavlik[P]edid-decode/edid-decode.cpp
// Function: msg(bool, char const*, ...)
void msg(bool is_warn, const char *fmt, ...)
{
	char buf[1024] = "";
	va_list ap;

	va_start(ap, fmt);
	vsprintf(buf, fmt, ap);
	va_end(ap);

	if (is_warn)
		state.warnings++;
	else
		state.failures++;
	if (state.data_block.empty())
		s_msgs[state.block_nr][is_warn] += std::string("  ") + buf;
	else
		s_msgs[state.block_nr][is_warn] += "  " + state.data_block + ": " + buf;

	if (options[OptCheckInline])
		printf("%s: %s", is_warn ? "WARN" : "FAIL", buf);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x538, %rsp            # imm = 0x538
movq %rsi, %r14
movl %edi, %ebx
leaq 0x80(%rsp), %r12
movq %rdx, 0x10(%r12)
movq %rcx, 0x18(%r12)
movq %r8, 0x20(%r12)
movq %r9, 0x28(%r12)
testb %al, %al
je 0x385f
movaps %xmm0, 0xb0(%rsp)
movaps %xmm1, 0xc0(%rsp)
movaps %xmm2, 0xd0(%rsp)
movaps %xmm3, 0xe0(%rsp)
movaps %xmm4, 0xf0(%rsp)
movaps %xmm5, 0x100(%rsp)
movaps %xmm6, 0x110(%rsp)
movaps %xmm7, 0x120(%rsp)
leaq 0x130(%rsp), %r15
movl $0x400, %edx            # imm = 0x400
movq %r15, %rdi
xorl %esi, %esi
callq 0x3150
leaq 0x60(%rsp), %rdx
movq %r12, 0x10(%rdx)
leaq 0x560(%rsp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%rdx)
movq %r15, %rdi
movq %r14, %rsi
callq 0x3120
testl %ebx, %ebx
je 0x38af
incl 0x36eaf(%rip)           # 0x3a75c
jmp 0x38b5
incl 0x36eab(%rip)           # 0x3a760
cmpq $0x0, 0x36e5b(%rip)     # 0x3a718
je 0x3910
leaq 0x21b83(%rip), %rsi     # 0x25449
leaq 0x36e43(%rip), %rdx     # 0x3a710
leaq 0x40(%rsp), %r14
movq %r14, %rdi
callq 0x8a79
leaq 0x2efb6(%rip), %rsi     # 0x32897
movq %r14, %rdi
callq 0x3420
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3970
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x3977
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x21b29(%rip), %rsi     # 0x25449
leaq 0x21b24(%rip), %rdx     # 0x2544b
leaq 0x20(%rsp), %rdi
callq 0x8f6e
leaq 0x20(%rsp), %rdi
leaq 0x130(%rsp), %rsi
callq 0x3420
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3a52
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x3a59
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x130(%rsp), %rsi
callq 0x3420
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x39c6
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x39cd
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x36cfd(%rip), %eax     # 0x3a6e8
shlq $0x6, %rax
leaq 0x3766a(%rip), %rcx     # 0x3b060
movzbl %bl, %edi
shll $0x5, %edi
addq %rcx, %rdi
addq %rax, %rdi
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0x30b0
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x3a26
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x3a3d
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3260
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3ac9
movq 0x50(%rsp), %rsi
jmp 0x3ac1
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x36c71(%rip), %eax     # 0x3a6e8
shlq $0x6, %rax
leaq 0x375de(%rip), %rcx     # 0x3b060
movzbl %bl, %edi
shll $0x5, %edi
addq %rcx, %rdi
addq %rax, %rdi
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0x30b0
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x3ab2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x3ac9
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3260
cmpb $0x0, 0x3b613(%rip)     # 0x3f0e3
je 0x3afc
leaq 0x1c61b(%rip), %rax     # 0x200f4
leaq 0x1c619(%rip), %rsi     # 0x200f9
testb %bl, %bl
cmovneq %rax, %rsi
leaq 0x1c600(%rip), %rdi     # 0x200ed
leaq 0x130(%rsp), %rdx
xorl %eax, %eax
callq 0x3030
addq $0x538, %rsp            # imm = 0x538
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x3b29
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x3b29
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x3b94
movq 0x30(%rsp), %rsi
jmp 0x3b8c
movq %rax, %rbx
jmp 0x3b94
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x3b5d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x3b5d
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x3b79
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x3b79
movq %rax, %rbx
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3b94
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3260
movq %rbx, %rdi
callq 0x3400