// File: /workspace/github_cpp_makefile_star2_O2/rpavlik[P]edid-decode/parse-base-block.cpp
// Function: edid_state::detailed_block(unsigned char const*)
void edid_state::detailed_block(const unsigned char *x)
{
	static const unsigned char zero_descr[18] = { 0 };
	unsigned cnt;
	unsigned i;

	base.detailed_block_cnt++;
	if (x[0] || x[1]) {
		detailed_timings("    ", x);
		if (base.seen_non_detailed_descriptor)
			fail("Invalid detailed timing descriptor ordering.\n");
		return;
	}

	data_block = "Display Descriptor #" + std::to_string(base.detailed_block_cnt);
	/* Monitor descriptor block, not detailed timing descriptor. */
	if (x[2] != 0) {
		/* 1.3, 3.10.3 */
		fail("Monitor descriptor block has byte 2 nonzero (0x%02x).\n", x[2]);
	}
	if ((base.edid_minor < 4 || x[3] != 0xfd) && x[4] != 0x00) {
		/* 1.3, 3.10.3 */
		fail("Monitor descriptor block has byte 4 nonzero (0x%02x).\n", x[4]);
	}

	base.seen_non_detailed_descriptor = true;
	if (base.edid_minor == 0)
		fail("Has descriptor blocks other than detailed timings.\n");

	if (!memcmp(x, zero_descr, sizeof(zero_descr))) {
		data_block = "Empty Descriptor";
		printf("    %s\n", data_block.c_str());
		fail("Use Dummy Descriptor instead of all zeroes.\n");
		return;
	}

	switch (x[3]) {
	case 0x0e:
		detailed_epi(x);
		return;
	case 0x10:
		data_block = "Dummy Descriptor";
		printf("    %s:\n", data_block.c_str());
		for (i = 5; i < 18; i++) {
			if (x[i]) {
				fail("Dummy block filled with garbage.\n");
				break;
			}
		}
		return;
	case 0xf7:
		data_block = "Established timings III";
		printf("    %s:\n", data_block.c_str());
		for (i = 0; i < ARRAY_SIZE(established_timings3_dmt_ids); i++)
			if (x[6 + i / 8] & (1 << (7 - i % 8))) {
				unsigned char dmt_id = established_timings3_dmt_ids[i];
				char type[16];

				sprintf(type, "DMT 0x%02x", dmt_id);
				print_timings("      ", find_dmt_id(dmt_id), type);
			}
		return;
	case 0xf8:
		data_block = "CVT 3 Byte Timing Codes";
		printf("    %s:\n", data_block.c_str());
		if (x[5] != 0x01) {
			fail("Invalid version number %u.\n", x[5]);
			return;
		}
		for (i = 0; i < 4; i++)
			detailed_cvt_descriptor("      ", x + 6 + (i * 3), !i);
		return;
	case 0xf9:
		data_block = "Display Color Management Data";
		printf("    %s:\n", data_block.c_str());
		printf("      Version : %d\n", x[5]);
		printf("      Red a3  : %.2f\n", (short)(x[6] | (x[7] << 8)) / 100.0);
		printf("      Red a2  : %.2f\n", (short)(x[8] | (x[9] << 8)) / 100.0);
		printf("      Green a3: %.2f\n", (short)(x[10] | (x[11] << 8)) / 100.0);
		printf("      Green a2: %.2f\n", (short)(x[12] | (x[13] << 8)) / 100.0);
		printf("      Blue a3 : %.2f\n", (short)(x[14] | (x[15] << 8)) / 100.0);
		printf("      Blue a2 : %.2f\n", (short)(x[16] | (x[17] << 8)) / 100.0);
		return;
	case 0xfa:
		data_block = "Standard Timing Identifications";
		printf("    %s:\n", data_block.c_str());
		for (cnt = i = 0; i < 6; i++) {
			if (x[5 + i * 2] != 0x01 || x[5 + i * 2 + 1] != 0x01)
				cnt++;
			print_standard_timing("      ", x[5 + i * 2], x[5 + i * 2 + 1]);
		}
		if (!cnt)
			warn("%s block without any timings.\n", data_block.c_str());
		return;
	case 0xfb: {
		unsigned w_x, w_y;
		unsigned gamma;

		data_block = "Color Point Data";
		printf("    %s:\n", data_block.c_str());
		w_x = (x[7] << 2) | ((x[6] >> 2) & 3);
		w_y = (x[8] << 2) | (x[6] & 3);
		gamma = x[9];
		printf("      Index: %u White: 0.%04u, 0.%04u", x[5],
		       (w_x * 10000) / 1024, (w_y * 10000) / 1024);
		if (gamma == 0xff)
			printf(" Gamma: is defined in an extension block");
		else
			printf(" Gamma: %.2f", ((gamma + 100.0) / 100.0));
		printf("\n");
		if (x[10] == 0)
			return;
		w_x = (x[12] << 2) | ((x[11] >> 2) & 3);
		w_y = (x[13] << 2) | (x[11] & 3);
		gamma = x[14];
		printf("      Index: %u White: 0.%04u, 0.%04u", x[10],
		       (w_x * 10000) / 1024, (w_y * 10000) / 1024);
		if (gamma == 0xff)
			printf(" Gamma: is defined in an extension block");
		else
			printf(" Gamma: %.2f", ((gamma + 100.0) / 100.0));
		printf("\n");
		return;
	}
	case 0xfc:
		data_block = "Display Product Name";
		base.has_name_descriptor = 1;
		printf("    %s: '%s'\n", data_block.c_str(), extract_string(x + 5, 13));
		return;
	case 0xfd:
		detailed_display_range_limits(x);
		return;
	case 0xfe:
		if (!base.has_spwg || base.detailed_block_cnt < 3) {
			data_block = "Alphanumeric Data String";
			printf("    %s: '%s'\n", data_block.c_str(),
			       extract_string(x + 5, 13));
			return;
		}
		if (base.detailed_block_cnt == 3) {
			char buf[6] = { 0 };

			data_block = "SPWG Descriptor #3";
			printf("    %s:\n", data_block.c_str());
			memcpy(buf, x + 5, 5);
			if (strlen(buf) != 5)
				fail("Invalid PC Maker P/N length.\n");
			printf("      SPWG PC Maker P/N: '%s'\n", buf);
			printf("      SPWG LCD Supplier EEDID Revision: %hhu\n", x[10]);
			printf("      SPWG Manufacturer P/N: '%s'\n", extract_string(x + 11, 7));
		} else {
			data_block = "SPWG Descriptor #4";
			printf("    %s:\n", data_block.c_str());
			printf("      SMBUS Values: 0x%02hhx 0x%02hhx 0x%02hhx 0x%02hhx"
			       " 0x%02hhx 0x%02hhx 0x%02hhx 0x%02hhx\n",
			       x[5], x[6], x[7], x[8], x[9], x[10], x[11], x[12]);
			printf("      LVDS Channels: %hhu\n", x[13]);
			printf("      Panel Self Test %sPresent\n", x[14] ? "" : "Not ");
			if (x[15] != 0x0a || x[16] != 0x20 || x[17] != 0x20)
				fail("Invalid trailing data.\n");
		}
		return;
	case 0xff: {
		data_block = "Display Product Serial Number";
		char *sn = extract_string(x + 5, 13);
		if (hide_serial_numbers)
			printf("    %s: ...\n", data_block.c_str());
		else
			printf("    %s: '%s'\n", data_block.c_str(), sn);
		base.has_serial_string = 1;
		return;
	}
	default:
		printf("    %s Display Descriptor (0x%02hhx):",
		       x[3] <= 0x0f ? "Manufacturer-Specified" : "Unknown", x[3]);
		hex_block(" ", x + 2, 16);
		if (x[3] > 0x0f)
			fail("Unknown Type 0x%02hhx.\n", x[3]);
		return;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movl 0xbc(%rdi), %esi
incl %esi
movl %esi, 0xbc(%rdi)
cmpb $0x0, (%rbx)
jne 0xa13f
cmpb $0x0, 0x1(%rbx)
je 0xa180
leaq 0x15351(%rip), %rsi     # 0x1f497
pushq $0x1
popq %rcx
movq %r14, %rdi
movq %rbx, %rdx
callq 0x96f0
cmpb $0x1, 0xc4(%r14)
jne 0xa342
leaq 0x15333(%rip), %rsi     # 0x1f49c
xorl %edi, %edi
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x362c
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x7675
leaq 0x15336(%rip), %rsi     # 0x1f4ca
movq %rsp, %rdi
movq %r15, %rdx
callq 0xbafb
leaq 0x30(%r14), %r15
movq %rsp, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x32f0
movq %r12, %rdi
callq 0x3130
leaq 0x28(%rsp), %rdi
callq 0x3130
movzbl 0x2(%rbx), %edx
testl %edx, %edx
je 0xa1db
leaq 0x1530d(%rip), %rsi     # 0x1f4df
xorl %edi, %edi
xorl %eax, %eax
callq 0x362c
movl 0x88(%r14), %eax
cmpl $0x4, %eax
jb 0xa1f7
cmpb $-0x3, 0x3(%rbx)
jne 0xa1f7
movb $0x1, 0xc4(%r14)
jmp 0xa232
movzbl 0x4(%rbx), %edx
testl %edx, %edx
je 0xa216
leaq 0x15310(%rip), %rsi     # 0x1f516
xorl %edi, %edi
xorl %eax, %eax
callq 0x362c
movl 0x88(%r14), %eax
movb $0x1, 0xc4(%r14)
testl %eax, %eax
jne 0xa232
leaq 0x15324(%rip), %rsi     # 0x1f54d
xorl %edi, %edi
xorl %eax, %eax
callq 0x362c
leaq 0x14467(%rip), %rsi     # 0x1e6a0
pushq $0x12
popq %rdx
movq %rbx, %rdi
callq 0x3290
testl %eax, %eax
je 0xa312
movzbl 0x3(%rbx), %edx
leal -0xf7(%rdx), %eax
cmpl $0x8, %eax
ja 0xa351
leaq 0x122b6(%rip), %rcx     # 0x1c51c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x1537c(%rip), %rsi     # 0x1f5f2
movq %r15, %rdi
callq 0x3460
movq (%r15), %rsi
leaq 0x14b81(%rip), %rdi     # 0x1ee09
xorl %eax, %eax
callq 0x3030
movq %rsp, %r12
leaq 0x109f0(%rip), %rbp     # 0x1ac89
xorl %r13d, %r13d
cmpq $0x2c, %r13
je 0xa342
movl %r13d, %eax
shrl $0x3, %eax
movzbl 0x6(%rbx,%rax), %eax
movl %r13d, %ecx
notb %cl
movzbl %cl, %ecx
andl $0x7, %ecx
btl %ecx, %eax
jae 0xa30d
leaq 0x143a8(%rip), %rax     # 0x1e670
movzbl (%r13,%rax), %r15d
movq %r12, %rdi
leaq 0x10607(%rip), %rsi     # 0x1a8df
movl %r15d, %edx
xorl %eax, %eax
callq 0x3070
movl %r15d, %edi
callq 0x7d78
subq $0x8, %rsp
movq %r14, %rdi
leaq 0x1519d(%rip), %rsi     # 0x1f495
movq %rax, %rdx
movq %r12, %rcx
movq %rbp, %r8
xorl %r9d, %r9d
pushq $0x1
callq 0x3af0
popq %rcx
popq %rdx
incq %r13
jmp 0xa29c
leaq 0x15268(%rip), %rsi     # 0x1f581
movq %r15, %rdi
callq 0x3460
movq (%r15), %rsi
leaq 0x1a3fc(%rip), %rdi     # 0x24727
xorl %eax, %eax
callq 0x3030
leaq 0x15259(%rip), %rsi     # 0x1f592
xorl %edi, %edi
xorl %eax, %eax
callq 0x362c
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x10, %edx
je 0xa5af
cmpl $0xe, %edx
jne 0xa6e4
movq %r14, %rdi
movq %rbx, %rsi
callq 0x92be
jmp 0xa342
leaq 0x153bc(%rip), %rsi     # 0x1f733
movq %r15, %rdi
callq 0x3460
movq (%r15), %rsi
leaq 0x14a80(%rip), %rdi     # 0x1ee09
xorl %eax, %eax
callq 0x3030
movzbl 0x7(%rbx), %eax
movzbl 0x6(%rbx), %ecx
movl %ecx, %edx
shrl $0x2, %edx
andl $0x3, %edx
leal (%rdx,%rax,4), %eax
movzbl 0x8(%rbx), %edx
andl $0x3, %ecx
leal (%rcx,%rdx,4), %ecx
movb 0x9(%rbx), %bpl
movzbl 0x5(%rbx), %esi
imull $0x2710, %eax, %edx     # imm = 0x2710
shrl $0xa, %edx
imull $0x2710, %ecx, %ecx     # imm = 0x2710
shrl $0xa, %ecx
leaq 0x15376(%rip), %rdi     # 0x1f744
xorl %eax, %eax
callq 0x3030
cmpb $-0x1, %bpl
je 0xa770
movzbl %bpl, %eax
cvtsi2sd %eax, %xmm0
movsd 0xfc31(%rip), %xmm1     # 0x1a020
addsd %xmm1, %xmm0
divsd %xmm1, %xmm0
leaq 0x15395(%rip), %rdi     # 0x1f793
movb $0x1, %al
callq 0x3030
jmp 0xa77e
leaq 0x1522d(%rip), %rsi     # 0x1f63e
movq %r15, %rdi
callq 0x3460
movq (%r15), %rsi
leaq 0x149e6(%rip), %rdi     # 0x1ee09
xorl %eax, %eax
callq 0x3030
movzbl 0x5(%rbx), %esi
leaq 0x15227(%rip), %rdi     # 0x1f65c
xorl %eax, %eax
callq 0x3030
movswl 0x6(%rbx), %eax
cvtsi2sd %eax, %xmm0
divsd 0xfbd4(%rip), %xmm0     # 0x1a020
leaq 0x1521d(%rip), %rdi     # 0x1f670
movb $0x1, %al
callq 0x3030
movswl 0x8(%rbx), %eax
cvtsi2sd %eax, %xmm0
divsd 0xfbb6(%rip), %xmm0     # 0x1a020
leaq 0x15215(%rip), %rdi     # 0x1f686
movb $0x1, %al
callq 0x3030
movswl 0xa(%rbx), %eax
cvtsi2sd %eax, %xmm0
divsd 0xfb98(%rip), %xmm0     # 0x1a020
leaq 0x1520d(%rip), %rdi     # 0x1f69c
movb $0x1, %al
callq 0x3030
movswl 0xc(%rbx), %eax
cvtsi2sd %eax, %xmm0
divsd 0xfb7a(%rip), %xmm0     # 0x1a020
leaq 0x15205(%rip), %rdi     # 0x1f6b2
movb $0x1, %al
callq 0x3030
movswl 0xe(%rbx), %eax
cvtsi2sd %eax, %xmm0
divsd 0xfb5c(%rip), %xmm0     # 0x1a020
leaq 0x151fd(%rip), %rdi     # 0x1f6c8
movb $0x1, %al
callq 0x3030
movswl 0x10(%rbx), %eax
cvtsi2sd %eax, %xmm0
divsd 0xfb3e(%rip), %xmm0     # 0x1a020
leaq 0x151f5(%rip), %rdi     # 0x1f6de
movb $0x1, %al
callq 0x3030
jmp 0xa342
leaq 0x151f8(%rip), %rsi     # 0x1f6f4
movq %r15, %rdi
callq 0x3460
movq (%r15), %rsi
leaq 0x148fb(%rip), %rdi     # 0x1ee09
xorl %r13d, %r13d
xorl %eax, %eax
callq 0x3030
leaq 0x14f76(%rip), %r12     # 0x1f495
xorl %ebp, %ebp
cmpq $0x6, %r13
je 0xa55d
movzbl 0x5(%rbx,%r13,2), %edx
movl %edx, %eax
xorl $0x1, %eax
movzbl 0x6(%rbx,%r13,2), %ecx
movl %ecx, %esi
xorl $0x1, %esi
xorl %edi, %edi
orl %eax, %esi
setne %dil
addl %edi, %ebp
movq %r14, %rdi
movq %r12, %rsi
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x8800
incq %r13
jmp 0xa521
testl %ebp, %ebp
jne 0xa342
movq (%r15), %rdx
leaq 0x151a5(%rip), %rsi     # 0x1f714
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x362c
jmp 0xa342
cmpb $0x1, 0xb9(%r14)
jne 0xa598
movl 0xbc(%r14), %eax
cmpl $0x2, %eax
ja 0xa805
leaq 0x15224(%rip), %rsi     # 0x1f7c3
movq %r15, %rdi
callq 0x3460
movq (%r15), %r14
jmp 0xa66f
leaq 0x15009(%rip), %rsi     # 0x1f5bf
movq %r15, %rdi
callq 0x3460
movq (%r15), %rsi
leaq 0x14841(%rip), %rdi     # 0x1ee09
xorl %eax, %eax
callq 0x3030
pushq $-0xd
popq %rax
testq %rax, %rax
je 0xa342
cmpb $0x0, 0x12(%rbx,%rax)
leaq 0x1(%rax), %rax
je 0xa5d2
leaq 0x14fe3(%rip), %rsi     # 0x1f5d0
jmp 0xa339
leaq 0x15011(%rip), %rsi     # 0x1f60a
movq %r15, %rdi
callq 0x3460
movq (%r15), %rsi
leaq 0x147fe(%rip), %rdi     # 0x1ee09
xorl %eax, %eax
callq 0x3030
movzbl 0x5(%rbx), %edx
cmpl $0x1, %edx
jne 0xa739
addq $0x6, %rbx
xorl %r12d, %r12d
leaq 0x14e68(%rip), %r15     # 0x1f495
cmpq $0xc, %r12
je 0xa342
leaq (%rbx,%r12), %rdx
xorl %ecx, %ecx
testq %r12, %r12
sete %cl
movq %r14, %rdi
movq %r15, %rsi
callq 0x83d4
addq $0x3, %r12
jmp 0xa62d
leaq 0x15145(%rip), %rsi     # 0x1f7a0
movq %r15, %rdi
callq 0x3460
movb $0x1, 0x8c(%r14)
movq 0x30(%r14), %r14
addq $0x5, %rbx
pushq $0xd
popq %rsi
movq %rbx, %rdi
callq 0x86b4
leaq 0x15130(%rip), %rdi     # 0x1f7b5
leaq 0x36b54(%rip), %rdx     # 0x411e0
movq %r14, %rsi
xorl %eax, %eax
callq 0x3030
jmp 0xa342
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8abc
jmp 0xa342
leaq 0x15294(%rip), %rsi     # 0x1f946
movq %r15, %rdi
callq 0x3460
addq $0x5, %rbx
pushq $0xd
popq %rsi
movq %rbx, %rdi
callq 0x86b4
movq 0x30(%r14), %rsi
cmpb $0x1, 0x52(%r14)
jne 0xa74e
leaq 0x15289(%rip), %rdi     # 0x1f964
xorl %eax, %eax
callq 0x3030
jmp 0xa763
leaq 0x2(%rbx), %r14
cmpb $0x10, %dl
leaq 0x152a5(%rip), %rax     # 0x1f997
leaq 0x152b5(%rip), %rsi     # 0x1f9ae
cmovbq %rax, %rsi
leaq 0x1526d(%rip), %rdi     # 0x1f971
xorl %eax, %eax
callq 0x3030
leaq 0x14d88(%rip), %rdi     # 0x1f49a
pushq $0x1
popq %rcx
pushq $0x10
popq %rdx
movq %r14, %rsi
movl %edx, %r8d
callq 0x4fc1
movzbl 0x3(%rbx), %edx
cmpl $0x10, %edx
jb 0xa342
leaq 0x1527f(%rip), %rsi     # 0x1f9b6
jmp 0xa740
leaq 0x14ee2(%rip), %rsi     # 0x1f622
xorl %edi, %edi
xorl %eax, %eax
callq 0x362c
jmp 0xa342
leaq 0x15060(%rip), %rdi     # 0x1f7b5
leaq 0x36a84(%rip), %rdx     # 0x411e0
xorl %eax, %eax
callq 0x3030
movb $0x1, 0x8f(%r14)
jmp 0xa342
leaq 0x14ff3(%rip), %rdi     # 0x1f76a
xorl %eax, %eax
callq 0x3030
pushq $0xa
popq %rdi
callq 0x3340
movzbl 0xa(%rbx), %esi
testl %esi, %esi
je 0xa342
movzbl 0xc(%rbx), %eax
movzbl 0xb(%rbx), %ecx
movl %ecx, %edx
shrl $0x2, %edx
andl $0x3, %edx
leal (%rdx,%rax,4), %eax
movzbl 0xd(%rbx), %edx
andl $0x3, %ecx
leal (%rcx,%rdx,4), %ecx
movb 0xe(%rbx), %bl
imull $0x2710, %eax, %edx     # imm = 0x2710
shrl $0xa, %edx
imull $0x2710, %ecx, %ecx     # imm = 0x2710
shrl $0xa, %ecx
leaq 0x14f79(%rip), %rdi     # 0x1f744
xorl %eax, %eax
callq 0x3030
cmpb $-0x1, %bl
je 0xa8ad
movzbl %bl, %eax
cvtsi2sd %eax, %xmm0
movsd 0xf836(%rip), %xmm1     # 0x1a020
addsd %xmm1, %xmm0
divsd %xmm1, %xmm0
leaq 0x14f9a(%rip), %rdi     # 0x1f793
movb $0x1, %al
callq 0x3030
jmp 0xa8bb
cmpl $0x3, %eax
jne 0xa8c8
movq %rsp, %r14
movb $0x0, 0x5(%r14)
leaq 0x14fbf(%rip), %rsi     # 0x1f7dc
movq %r15, %rdi
callq 0x3460
movq (%r15), %rsi
leaq 0x145da(%rip), %rdi     # 0x1ee09
xorl %eax, %eax
callq 0x3030
movl 0x5(%rbx), %eax
movl %eax, (%r14)
movb 0x9(%rbx), %al
movb %al, 0x4(%r14)
movq %r14, %rdi
callq 0x3110
cmpq $0x5, %rax
je 0xa861
leaq 0x14f97(%rip), %rsi     # 0x1f7ef
xorl %edi, %edi
xorl %eax, %eax
callq 0x362c
leaq 0x14fa5(%rip), %rdi     # 0x1f80d
movq %rsp, %rsi
xorl %eax, %eax
callq 0x3030
movzbl 0xa(%rbx), %esi
leaq 0x14faf(%rip), %rdi     # 0x1f82c
xorl %eax, %eax
callq 0x3030
addq $0xb, %rbx
pushq $0x7
popq %rsi
movq %rbx, %rdi
callq 0x86b4
leaq 0x14fc0(%rip), %rdi     # 0x1f85a
leaq 0x3693f(%rip), %rsi     # 0x411e0
xorl %eax, %eax
callq 0x3030
jmp 0xa342
leaq 0x14eb6(%rip), %rdi     # 0x1f76a
xorl %eax, %eax
callq 0x3030
pushq $0xa
popq %rdi
callq 0x3340
jmp 0xa342
leaq 0x14fae(%rip), %rsi     # 0x1f87d
movq %r15, %rdi
callq 0x3460
movq (%r15), %rsi
leaq 0x14528(%rip), %rdi     # 0x1ee09
xorl %eax, %eax
callq 0x3030
movzbl 0x5(%rbx), %esi
movzbl 0x6(%rbx), %edx
movzbl 0x7(%rbx), %ecx
movzbl 0x8(%rbx), %r8d
movzbl 0x9(%rbx), %r9d
movzbl 0xa(%rbx), %r10d
movzbl 0xb(%rbx), %r11d
movzbl 0xc(%rbx), %r14d
subq $0x8, %rsp
leaq 0x14f78(%rip), %rdi     # 0x1f890
xorl %eax, %eax
pushq %r14
pushq %r11
pushq %r10
callq 0x3030
addq $0x20, %rsp
movzbl 0xd(%rbx), %esi
leaq 0x14fb9(%rip), %rdi     # 0x1f8ed
xorl %eax, %eax
callq 0x3030
cmpb $0x0, 0xe(%rbx)
leaq 0x14fe3(%rip), %rax     # 0x1f929
leaq 0x1033c(%rip), %rsi     # 0x1ac89
cmoveq %rax, %rsi
leaq 0x14fb0(%rip), %rdi     # 0x1f908
xorl %eax, %eax
callq 0x3030
cmpb $0xa, 0xf(%rbx)
jne 0xa975
cmpb $0x20, 0x10(%rbx)
jne 0xa975
cmpb $0x20, 0x11(%rbx)
je 0xa342
leaq 0x14fb2(%rip), %rsi     # 0x1f92e
jmp 0xa339
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x3130
movq %rbx, %rdi
callq 0x3430