// File: /workspace/github_cpp_makefile_star2_O1/alex-courtis[P]xlayoutdisplay/src/Edid.cpp
// Function: Edid::Edid(unsigned char const*, unsigned long, char const*)
Edid::Edid(const unsigned char *edid, const size_t length, const char *name) {
    if (length < EDID_MIN_LENGTH)
        throw invalid_argument(string(name) + " has Edid size " + to_string(length) + ", expected at least " +
                               to_string(EDID_MIN_LENGTH));

    this->edid = (unsigned char *) malloc(length);
    memcpy(this->edid, edid, length);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xf0, %rsp
movq %rdx, %r14
leaq 0x1de2b(%rip), %rax     # 0x248c0
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
cmpq $0x7f, %rdx
jbe 0x6ad6
movq %rsi, %rbx
movq %rdi, %r12
movq %r14, %rdi
callq 0x6540
movq %rax, 0x8(%r12)
movq %rax, %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0xf0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x62f0
movq %rcx, %r15
movl $0x10, %edi
callq 0x61c0
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
leaq 0xf(%rsp), %rdx
movq %r15, %rsi
callq 0x6f06
leaq 0x13516(%rip), %rsi     # 0x1a018
leaq 0x90(%rsp), %rdi
callq 0x67c0
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x6b30
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x6b3d
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x70(%rsp), %rdi
movq %r14, %rsi
callq 0x6f43
leaq 0xb0(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0x6e5e
leaq 0x134a8(%rip), %rsi     # 0x1a028
leaq 0xb0(%rsp), %rdi
callq 0x67c0
leaq 0x40(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x6bb0
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x6bbd
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x50(%rsp), %rdi
movl $0x80, %esi
callq 0x6fd3
leaq 0xd0(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x50(%rsp), %rdx
callq 0x6e5e
movb $0x1, %bpl
leaq 0xd0(%rsp), %rsi
movq %rbx, %rdi
callq 0x66f0
xorl %ebp, %ebp
movq 0x1e3b1(%rip), %rsi     # 0x24fc8
movq 0x1e392(%rip), %rdx     # 0x24fb0
movq %rbx, %rdi
callq 0x66c0
movq %rax, %r14
leaq 0xe0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6c52
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x63a0
jmp 0x6c52
movq %rax, %r14
movb $0x1, %bpl
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6c75
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x63a0
jmp 0x6c75
movq %rax, %r14
movb $0x1, %bpl
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x6c94
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x63a0
jmp 0x6c94
movq %rax, %r14
movb $0x1, %bpl
leaq 0xc0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6cbd
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x63a0
jmp 0x6cbd
movq %rax, %r14
movb $0x1, %bpl
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6ce6
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x63a0
jmp 0x6ce6
movq %rax, %r14
movb $0x1, %bpl
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x6d05
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x63a0
jmp 0x6d05
movq %rax, %r14
movb $0x1, %bpl
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6d2e
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x63a0
jmp 0x6d2e
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x6d3b
movq %rbx, %rdi
callq 0x62b0
movq %r14, %rdi
callq 0x6700
nop