#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ print_subsection(char *, unsigned char *, int, int);
void dump_breakdown(unsigned char *edid) {
  (void)("Extracted contents:\n");
  print_subsection("header", edid, 0, 7);
  print_subsection("serial number", edid, 8, 17);
  print_subsection("version", edid, 18, 19);
  print_subsection("basic params", edid, 20, 24);
  print_subsection("chroma info", edid, 25, 34);
  print_subsection("established", edid, 35, 37);
  print_subsection("standard", edid, 38, 53);
  print_subsection("descriptor 1", edid, 54, 71);
  print_subsection("descriptor 2", edid, 72, 89);
  print_subsection("descriptor 3", edid, 90, 107);
  print_subsection("descriptor 4", edid, 108, 125);
  print_subsection("extensions", edid, 126, 126);
  print_subsection("checksum", edid, 127, 127);
  (void)("\n");
}


x86 assembly (clang, -O0):
<dump_breakdown>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xeee(%rip),%rdi
xor    %edx,%edx
mov    $0x7,%ecx
call   1030 <print_subsection@plt>
mov    -0x8(%rbp),%rsi
lea    0xede(%rip),%rdi
mov    $0x8,%edx
mov    $0x11,%ecx
call   1030 <print_subsection@plt>
mov    -0x8(%rbp),%rsi
lea    0xed2(%rip),%rdi
mov    $0x12,%edx
mov    $0x13,%ecx
call   1030 <print_subsection@plt>
mov    -0x8(%rbp),%rsi
lea    0xec0(%rip),%rdi
mov    $0x14,%edx
mov    $0x18,%ecx
call   1030 <print_subsection@plt>
mov    -0x8(%rbp),%rsi
lea    0xeb3(%rip),%rdi
mov    $0x19,%edx
mov    $0x22,%ecx
call   1030 <print_subsection@plt>
mov    -0x8(%rbp),%rsi
lea    0xea5(%rip),%rdi
mov    $0x23,%edx
mov    $0x25,%ecx
call   1030 <print_subsection@plt>
mov    -0x8(%rbp),%rsi
lea    0xe97(%rip),%rdi
mov    $0x26,%edx
mov    $0x35,%ecx
call   1030 <print_subsection@plt>
mov    -0x8(%rbp),%rsi
lea    0xe86(%rip),%rdi
mov    $0x36,%edx
mov    $0x47,%ecx
call   1030 <print_subsection@plt>
mov    -0x8(%rbp),%rsi
lea    0xe79(%rip),%rdi
mov    $0x48,%edx
mov    $0x59,%ecx
call   1030 <print_subsection@plt>
mov    -0x8(%rbp),%rsi
lea    0xe6c(%rip),%rdi
mov    $0x5a,%edx
mov    $0x6b,%ecx
call   1030 <print_subsection@plt>
mov    -0x8(%rbp),%rsi
lea    0xe5f(%rip),%rdi
mov    $0x6c,%edx
mov    $0x7d,%ecx
call   1030 <print_subsection@plt>
mov    -0x8(%rbp),%rsi
lea    0xe52(%rip),%rdi
mov    $0x7e,%ecx
mov    %ecx,%edx
call   1030 <print_subsection@plt>
mov    -0x8(%rbp),%rsi
lea    0xe46(%rip),%rdi
mov    $0x7f,%ecx
mov    %ecx,%edx
call   1030 <print_subsection@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dump_breakdown>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rdi
mov    %rbx,%rsi
xor    %edx,%edx
mov    $0x7,%ecx
call   1030 <print_subsection@plt>
lea    0xed6(%rip),%rdi
mov    %rbx,%rsi
mov    $0x8,%edx
mov    $0x11,%ecx
call   1030 <print_subsection@plt>
lea    0xecb(%rip),%rdi
mov    %rbx,%rsi
mov    $0x12,%edx
mov    $0x13,%ecx
call   1030 <print_subsection@plt>
lea    0xeba(%rip),%rdi
mov    %rbx,%rsi
mov    $0x14,%edx
mov    $0x18,%ecx
call   1030 <print_subsection@plt>
lea    0xeae(%rip),%rdi
mov    %rbx,%rsi
mov    $0x19,%edx
mov    $0x22,%ecx
call   1030 <print_subsection@plt>
lea    0xea1(%rip),%rdi
mov    %rbx,%rsi
mov    $0x23,%edx
mov    $0x25,%ecx
call   1030 <print_subsection@plt>
lea    0xe94(%rip),%rdi
mov    %rbx,%rsi
mov    $0x26,%edx
mov    $0x35,%ecx
call   1030 <print_subsection@plt>
lea    0xe84(%rip),%rdi
mov    %rbx,%rsi
mov    $0x36,%edx
mov    $0x47,%ecx
call   1030 <print_subsection@plt>
lea    0xe78(%rip),%rdi
mov    %rbx,%rsi
mov    $0x48,%edx
mov    $0x59,%ecx
call   1030 <print_subsection@plt>
lea    0xe6c(%rip),%rdi
mov    %rbx,%rsi
mov    $0x5a,%edx
mov    $0x6b,%ecx
call   1030 <print_subsection@plt>
lea    0xe60(%rip),%rdi
mov    %rbx,%rsi
mov    $0x6c,%edx
mov    $0x7d,%ecx
call   1030 <print_subsection@plt>
lea    0xe54(%rip),%rdi
mov    %rbx,%rsi
mov    $0x7e,%edx
mov    $0x7e,%ecx
call   1030 <print_subsection@plt>
lea    0xe46(%rip),%rdi
mov    %rbx,%rsi
mov    $0x7f,%edx
mov    $0x7f,%ecx
pop    %rbx
jmp    1030 <print_subsection@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"Extracted contents:\0A\00"
@.str.1 = [7 x i8] c"header\00"
@.str.2 = [14 x i8] c"serial number\00"
@.str.3 = [8 x i8] c"version\00"
@.str.4 = [13 x i8] c"basic params\00"
@.str.5 = [12 x i8] c"chroma info\00"
@.str.6 = [12 x i8] c"established\00"
@.str.7 = [9 x i8] c"standard\00"
@.str.8 = [13 x i8] c"descriptor 1\00"
@.str.9 = [13 x i8] c"descriptor 2\00"
@.str.10 = [13 x i8] c"descriptor 3\00"
@.str.11 = [13 x i8] c"descriptor 4\00"
@.str.12 = [11 x i8] c"extensions\00"
@.str.13 = [9 x i8] c"checksum\00"
@.str.14 = [2 x i8] c"\0A\00"
define void @dump_breakdown(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @print_subsection(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %3, i32 0, i32 7)
%5 = load i8*, i8** %2
%6 = call i32 @print_subsection(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* %5, i32 8, i32 17)
%7 = load i8*, i8** %2
%8 = call i32 @print_subsection(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %7, i32 18, i32 19)
%9 = load i8*, i8** %2
%10 = call i32 @print_subsection(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* %9, i32 20, i32 24)
%11 = load i8*, i8** %2
%12 = call i32 @print_subsection(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* %11, i32 25, i32 34)
%13 = load i8*, i8** %2
%14 = call i32 @print_subsection(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i8* %13, i32 35, i32 37)
%15 = load i8*, i8** %2
%16 = call i32 @print_subsection(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* %15, i32 38, i32 53)
%17 = load i8*, i8** %2
%18 = call i32 @print_subsection(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i8* %17, i32 54, i32 71)
%19 = load i8*, i8** %2
%20 = call i32 @print_subsection(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i8* %19, i32 72, i32 89)
%21 = load i8*, i8** %2
%22 = call i32 @print_subsection(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), i8* %21, i32 90, i32 107)
%23 = load i8*, i8** %2
%24 = call i32 @print_subsection(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* %23, i32 108, i32 125)
%25 = load i8*, i8** %2
%26 = call i32 @print_subsection(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i8* %25, i32 126, i32 126)
%27 = load i8*, i8** %2
%28 = call i32 @print_subsection(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0), i8* %27, i32 127, i32 127)
ret void
}

LLVM IR (-O2):
@.str.1 = [7 x i8] c"header\00"
@.str.2 = [14 x i8] c"serial number\00"
@.str.3 = [8 x i8] c"version\00"
@.str.4 = [13 x i8] c"basic params\00"
@.str.5 = [12 x i8] c"chroma info\00"
@.str.6 = [12 x i8] c"established\00"
@.str.7 = [9 x i8] c"standard\00"
@.str.8 = [13 x i8] c"descriptor 1\00"
@.str.9 = [13 x i8] c"descriptor 2\00"
@.str.10 = [13 x i8] c"descriptor 3\00"
@.str.11 = [13 x i8] c"descriptor 4\00"
@.str.12 = [11 x i8] c"extensions\00"
@.str.13 = [9 x i8] c"checksum\00"
define void @dump_breakdown(i8* %0) {
%2 = tail call i32 @print_subsection(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* %0, i32 0, i32 7)
%3 = tail call i32 @print_subsection(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* %0, i32 8, i32 17)
%4 = tail call i32 @print_subsection(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %0, i32 18, i32 19)
%5 = tail call i32 @print_subsection(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* %0, i32 20, i32 24)
%6 = tail call i32 @print_subsection(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* %0, i32 25, i32 34)
%7 = tail call i32 @print_subsection(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i8* %0, i32 35, i32 37)
%8 = tail call i32 @print_subsection(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* %0, i32 38, i32 53)
%9 = tail call i32 @print_subsection(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i8* %0, i32 54, i32 71)
%10 = tail call i32 @print_subsection(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i8* %0, i32 72, i32 89)
%11 = tail call i32 @print_subsection(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), i8* %0, i32 90, i32 107)
%12 = tail call i32 @print_subsection(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* %0, i32 108, i32 125)
%13 = tail call i32 @print_subsection(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i8* %0, i32 126, i32 126)
%14 = tail call i32 @print_subsection(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0), i8* %0, i32 127, i32 127)
ret void
}