// File: /workspace/github_cpp_makefile_star2_O1/rpavlik[P]edid-decode/parse-cta-block.cpp
// Function: audio_format[abi:cxx11](unsigned char)
static std::string audio_format(unsigned char x)
{
	switch (x) {
	case 1: return "Linear PCM";
	case 2: return "AC-3";
	case 3: return "MPEG 1 (Layers 1 & 2)";
	case 4: return "MPEG 1 Layer 3 (MP3)";
	case 5: return "MPEG2 (multichannel)";
	case 6: return "AAC LC";
	case 7: return "DTS";
	case 8: return "ATRAC";
	case 9: return "One Bit Audio";
	case 10: return "Enhanced AC-3 (DD+)";
	case 11: return "DTS-HD";
	case 12: return "MAT (MLP)";
	case 13: return "DST";
	case 14: return "WMA Pro";
	default: break;
	}
	fail("Unknown Audio Format 0x%02x.\n", x);
	return std::string("Unknown Audio Format (") + utohex(x) + ")";
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x60, %rsp
movq %rdi, %rbx
leal -0x1(%rsi), %eax
cmpl $0xd, %eax
ja 0x15aac
leaq 0x11155(%rip), %rcx     # 0x26a8c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x16ebd(%rip), %rsi     # 0x2c80b
leaq 0x16ec0(%rip), %rdx     # 0x2c815
jmp 0x15a98
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x16f26(%rip), %rsi     # 0x2c88e
leaq 0x16f28(%rip), %rdx     # 0x2c897
jmp 0x15a98
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x16ec4(%rip), %rsi     # 0x2c846
leaq 0x16ed1(%rip), %rdx     # 0x2c85a
jmp 0x15a98
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x16efc(%rip), %rsi     # 0x2c898
leaq 0x16ef8(%rip), %rdx     # 0x2c89b
jmp 0x15a98
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x16ebd(%rip), %rsi     # 0x2c873
leaq 0x16ec9(%rip), %rdx     # 0x2c886
jmp 0x15a98
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x16e4b(%rip), %rsi     # 0x2c81b
leaq 0x16e59(%rip), %rdx     # 0x2c830
jmp 0x15a98
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x16e47(%rip), %rsi     # 0x2c831
leaq 0x16e54(%rip), %rdx     # 0x2c845
jmp 0x15a98
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x16e5b(%rip), %rsi     # 0x2c85f
leaq 0x16e59(%rip), %rdx     # 0x2c864
jmp 0x15a98
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x16df8(%rip), %rsi     # 0x2c816
leaq 0x16df5(%rip), %rdx     # 0x2c81a
jmp 0x15a98
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x17682(%rip), %rsi     # 0x2d0b7
leaq 0x17681(%rip), %rdx     # 0x2d0bd
jmp 0x15a98
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x16e50(%rip), %rsi     # 0x2c89c
leaq 0x16e50(%rip), %rdx     # 0x2c8a3
jmp 0x15a98
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x16df8(%rip), %rsi     # 0x2c85b
leaq 0x16df4(%rip), %rdx     # 0x2c85e
jmp 0x15a98
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x16e0d(%rip), %rsi     # 0x2c887
leaq 0x16e0c(%rip), %rdx     # 0x2c88d
jmp 0x15a98
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x16dd4(%rip), %rsi     # 0x2c865
leaq 0x16dda(%rip), %rdx     # 0x2c872
movq %rbx, %rdi
callq 0x8f6e
movq %rbx, %rax
addq $0x60, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movzbl %sil, %ebp
leaq 0x16ded(%rip), %rsi     # 0x2c8a4
xorl %edi, %edi
movl %ebp, %edx
xorl %eax, %eax
callq 0x37ec
leaq 0x50(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x16df0(%rip), %rsi     # 0x2c8c2
leaq 0x16dff(%rip), %rdx     # 0x2c8d8
leaq 0x40(%rsp), %rdi
callq 0x8f6e
leaq 0x20(%rsp), %rdi
movl %ebp, %esi
callq 0x59df
movq 0x40(%rsp), %rcx
movq 0x48(%rsp), %r8
movq 0x28(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r14, %rcx
je 0x15b11
movq 0x50(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x15b30
leaq 0x30(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x15b2b
movq 0x30(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x15b41
movq 0x20(%rsp), %rsi
leaq 0x40(%rsp), %rdi
callq 0x30b0
jmp 0x15b4f
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3290
leaq 0x10(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x15b72
movq %rsi, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x15b78
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x16ce9(%rip), %rsi     # 0x2c885
movq %rsp, %rdi
callq 0x3420
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x15bc6
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x15bcc
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15bfe
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3260
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15c19
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x15aa0
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x15aa0
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15c5c
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x15c5c
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15c7c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x15c7c
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x15c93
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3260
movq %rbx, %rdi
callq 0x3400
nop