// File: /workspace/github_cpp_makefile_star2_O2/rpavlik[P]edid-decode/parse-base-block.cpp
// Function: edid_state::list_dmts()
void edid_state::list_dmts()
{
	char type[16];

	for (unsigned i = 0; i < ARRAY_SIZE(dmt_timings); i++) {
		sprintf(type, "DMT 0x%02x", dmt_timings[i].dmt_id);
		std::string flags;
		if (dmt_timings[i].std_id)
			flags += std::string("STD: ") +
				utohex(dmt_timings[i].std_id >> 8) + " " +
				utohex(dmt_timings[i].std_id & 0xff);
		if (dmt_timings[i].cvt_id)
			add_str(flags, std::string("CVT: ") +
				utohex(dmt_timings[i].cvt_id >> 16) + " " +
				utohex((dmt_timings[i].cvt_id >> 8) & 0xff) + " " +
				utohex(dmt_timings[i].cvt_id & 0xff));
		print_timings("", &dmt_timings[i].t, type, flags.c_str(), false, false);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x178, %rsp            # imm = 0x178
movq %rdi, 0x38(%rsp)
pushq $0x58
popq %r12
leaq 0x14607(%rip), %rbx     # 0x1c57c
leaq 0x138(%rsp), %r13
leaq 0x158(%rsp), %r15
subq $0x1, %r12
jb 0x8203
movl -0xc(%rbx), %edx
movq %rbx, 0x10(%rsp)
movl -0x8(%rbx), %ebx
leaq 0xa0(%rsp), %rdi
leaq 0x12936(%rip), %rsi     # 0x1a8df
xorl %eax, %eax
callq 0x3070
leaq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
andq $0x0, 0x20(%rsp)
movb $0x0, 0x28(%rsp)
testl %ebx, %ebx
je 0x8086
leaq 0x40(%rsp), %rdi
leaq 0x16762(%rip), %rsi     # 0x1e73b
leaq 0xb8(%rsp), %rdx
callq 0x75c4
movzbl %bh, %esi
movq %r13, %rdi
callq 0x4e28
movq %r15, %rdi
leaq 0x40(%rsp), %rsi
movq %r13, %rdx
callq 0x76b4
leaq 0x60(%rsp), %rdi
movq %r15, %rsi
leaq 0x1748a(%rip), %rdx     # 0x1f49a
callq 0x75a4
movzbl %bl, %esi
leaq 0x80(%rsp), %rbx
movq %rbx, %rdi
callq 0x4e28
leaq 0xd8(%rsp), %r14
movq %r14, %rdi
leaq 0x60(%rsp), %rsi
movq %rbx, %rdx
callq 0x76b4
leaq 0x18(%rsp), %rdi
movq %r14, %rsi
callq 0x3480
movq %r14, %rdi
callq 0x3130
leaq 0x80(%rsp), %rdi
callq 0x3130
leaq 0x60(%rsp), %rdi
callq 0x3130
movq %r15, %rdi
callq 0x3130
movq %r13, %rdi
callq 0x3130
leaq 0x40(%rsp), %rdi
callq 0x3130
movq 0x10(%rsp), %rax
movl -0x4(%rax), %ebx
testl %ebx, %ebx
je 0x81c3
movq %r15, %r14
leaq 0x80(%rsp), %rdi
leaq 0x16699(%rip), %rsi     # 0x1e741
leaq 0xf(%rsp), %rdx
callq 0x75c4
movl %ebx, %eax
shrl $0x10, %eax
movzbl %al, %esi
leaq 0xb8(%rsp), %r15
movq %r15, %rdi
callq 0x4e28
movq %r13, %rdi
leaq 0x80(%rsp), %rsi
movq %r15, %rdx
callq 0x76b4
leaq 0x40(%rsp), %rdi
movq %r13, %rsi
leaq 0x173ae(%rip), %rdx     # 0x1f49a
callq 0x75a4
movzbl %bh, %esi
leaq 0x118(%rsp), %rbp
movq %rbp, %rdi
callq 0x4e28
movq %r14, %rdi
leaq 0x40(%rsp), %rsi
movq %rbp, %rdx
callq 0x76b4
leaq 0x60(%rsp), %rdi
movq %r14, %rsi
leaq 0x17377(%rip), %rdx     # 0x1f49a
callq 0x75a4
movq %r14, %r15
movzbl %bl, %esi
leaq 0xf8(%rsp), %rbx
movq %rbx, %rdi
callq 0x4e28
leaq 0xd8(%rsp), %r14
movq %r14, %rdi
leaq 0x60(%rsp), %rsi
movq %rbx, %rdx
callq 0x76b4
leaq 0x18(%rsp), %rdi
movq %r14, %rsi
callq 0x8340
movq %r14, %rdi
callq 0x3130
leaq 0xf8(%rsp), %rdi
callq 0x3130
leaq 0x60(%rsp), %rdi
callq 0x3130
movq %r15, %rdi
callq 0x3130
leaq 0x118(%rsp), %rdi
callq 0x3130
leaq 0x40(%rsp), %rdi
callq 0x3130
movq %r13, %rdi
callq 0x3130
leaq 0xb8(%rsp), %rdi
callq 0x3130
leaq 0x80(%rsp), %rdi
callq 0x3130
movq 0x18(%rsp), %r8
andl $0x0, (%rsp)
movq 0x38(%rsp), %rdi
leaq 0x12ab1(%rip), %rsi     # 0x1ac89
movq 0x10(%rsp), %rbx
movq %rbx, %rdx
leaq 0xa0(%rsp), %rcx
xorl %r9d, %r9d
callq 0x3af0
leaq 0x18(%rsp), %rdi
callq 0x3130
addq $0x60, %rbx
jmp 0x7f85
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x833b
movq %rax, %rbx
jmp 0x82d4
jmp 0x833b
movq %rax, %rbx
jmp 0x8259
movq %rax, %rbx
jmp 0x829c
movq %rax, %rbx
jmp 0x82f8
movq %rax, %rbx
jmp 0x82c7
movq %rax, %rbx
jmp 0x831f
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
callq 0x3130
leaq 0xf8(%rsp), %rdi
callq 0x3130
jmp 0x82b0
movq %rax, %rbx
jmp 0x828f
movq %rax, %rbx
jmp 0x82eb
movq %rax, %rbx
jmp 0x82ba
movq %rax, %rbx
jmp 0x8312
movq %rax, %rbx
leaq 0xd8(%rsp), %rdi
callq 0x3130
leaq 0x80(%rsp), %rdi
callq 0x3130
leaq 0x60(%rsp), %rdi
callq 0x3130
jmp 0x8305
movq %rax, %rbx
jmp 0x82de
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x3130
leaq 0x158(%rsp), %rdi
callq 0x3130
leaq 0x118(%rsp), %rdi
callq 0x3130
leaq 0x40(%rsp), %rdi
callq 0x3130
leaq 0x138(%rsp), %rdi
callq 0x3130
leaq 0xb8(%rsp), %rdi
callq 0x3130
leaq 0x80(%rsp), %rdi
jmp 0x8324
movq %rax, %rbx
leaq 0x158(%rsp), %rdi
callq 0x3130
leaq 0x138(%rsp), %rdi
callq 0x3130
leaq 0x40(%rsp), %rdi
callq 0x3130
leaq 0x18(%rsp), %rdi
callq 0x3130
movq %rbx, %rdi
callq 0x3430
movq %rax, %rbx
jmp 0x8329