// File: /workspace/github_cpp_makefile_star2_O3/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 0x15949
leaq 0x112dc(%rip), %rcx     # 0x26ab4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x17044(%rip), %rsi     # 0x2c833
leaq 0x17047(%rip), %rdx     # 0x2c83d
jmp 0x15939
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x170ad(%rip), %rsi     # 0x2c8b6
leaq 0x170af(%rip), %rdx     # 0x2c8bf
jmp 0x15939
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x1704b(%rip), %rsi     # 0x2c86e
leaq 0x17058(%rip), %rdx     # 0x2c882
jmp 0x15939
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x17083(%rip), %rsi     # 0x2c8c0
leaq 0x1707f(%rip), %rdx     # 0x2c8c3
jmp 0x15939
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x17044(%rip), %rsi     # 0x2c89b
leaq 0x17050(%rip), %rdx     # 0x2c8ae
jmp 0x15939
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x16fd2(%rip), %rsi     # 0x2c843
leaq 0x16fe0(%rip), %rdx     # 0x2c858
jmp 0x15939
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x16fce(%rip), %rsi     # 0x2c859
leaq 0x16fdb(%rip), %rdx     # 0x2c86d
jmp 0x15939
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x16fe2(%rip), %rsi     # 0x2c887
leaq 0x16fe0(%rip), %rdx     # 0x2c88c
jmp 0x15939
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x16f7f(%rip), %rsi     # 0x2c83e
leaq 0x16f7c(%rip), %rdx     # 0x2c842
jmp 0x15939
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x17809(%rip), %rsi     # 0x2d0df
leaq 0x17808(%rip), %rdx     # 0x2d0e5
jmp 0x15939
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x16fd7(%rip), %rsi     # 0x2c8c4
leaq 0x16fd7(%rip), %rdx     # 0x2c8cb
jmp 0x15939
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x16f7f(%rip), %rsi     # 0x2c883
leaq 0x16f7b(%rip), %rdx     # 0x2c886
jmp 0x15939
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x16f94(%rip), %rsi     # 0x2c8af
leaq 0x16f93(%rip), %rdx     # 0x2c8b5
jmp 0x15939
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x16f5b(%rip), %rsi     # 0x2c88d
leaq 0x16f61(%rip), %rdx     # 0x2c89a
movq %rbx, %rdi
addq $0x60, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x8d58
movzbl %sil, %ebp
leaq 0x16f78(%rip), %rsi     # 0x2c8cc
xorl %edi, %edi
movl %ebp, %edx
xorl %eax, %eax
callq 0x37cc
leaq 0x50(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x16f7b(%rip), %rsi     # 0x2c8ea
leaq 0x16f8a(%rip), %rdx     # 0x2c900
leaq 0x40(%rsp), %rdi
callq 0x8d58
leaq 0x20(%rsp), %rdi
movl %ebp, %esi
callq 0x59f2
movq 0x40(%rsp), %rcx
movq 0x48(%rsp), %r8
movq 0x28(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r14, %rcx
je 0x159ae
movq 0x50(%rsp), %rdi
movq 0x20(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x159d1
leaq 0x30(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x159cc
movq 0x30(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x159dd
leaq 0x40(%rsp), %rdi
callq 0x30b0
jmp 0x159eb
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 0x15a0e
movq %rsi, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x15a14
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 0x16e75(%rip), %rsi     # 0x2c8ad
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 0x15a62
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x15a68
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 0x15a9a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3260
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15ab5
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x15acc
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3260
addq $0x60, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15af8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x15af8
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15b18
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x15b18
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x15b2f
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3260
movq %rbx, %rdi
callq 0x3400
nop