#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 */
void crError(char *, char *, char *, int);
int memcmp(void const *, void const *, unsigned int);
int crMemcmp(const void *p1, const void *p2, unsigned int bytes) {
  ((p1) ? (void)0
        : crError("Assertion failed: %s, file %s, line %d", "p1",
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/alown/chromium/refs/heads/"
                  "cmake-fixing/util/mem.c",
                  135));
  ((p2) ? (void)0
        : crError("Assertion failed: %s, file %s, line %d", "p2",
                  "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                  "outputs/2022-01-22/02-19-57/repos/alown/chromium/refs/heads/"
                  "cmake-fixing/util/mem.c",
                  136));
  return memcmp(p1, p2, bytes);
}


x86 assembly (clang, -O0):
<crMemcmp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1143 <crMemcmp+0x23>
jmp    1162 <crMemcmp+0x42>
lea    0xeb6(%rip),%rdi
lea    0xed6(%rip),%rsi
lea    0xed2(%rip),%rdx
mov    $0x87,%ecx
call   1030 <crError@plt>
cmpq   $0x0,-0x10(%rbp)
je     1172 <crMemcmp+0x52>
jmp    1191 <crMemcmp+0x71>
lea    0xe87(%rip),%rdi
lea    0xf36(%rip),%rsi
lea    0xea3(%rip),%rdx
mov    $0x88,%ecx
call   1030 <crError@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1040 <memcmp@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<crMemcmp>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %rsi,%rbx
mov    %rdi,%rbp
test   %rdi,%rdi
je     1149 <crMemcmp+0x29>
test   %rbx,%rbx
je     116d <crMemcmp+0x4d>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r14d,%edx
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <memcmp@plt>
lea    0xeb0(%rip),%rdi
lea    0xed0(%rip),%rsi
lea    0xecc(%rip),%rdx
mov    $0x87,%ecx
call   1030 <crError@plt>
test   %rbx,%rbx
jne    1137 <crMemcmp+0x17>
lea    0xe8c(%rip),%rdi
lea    0xf3b(%rip),%rsi
lea    0xea8(%rip),%rdx
mov    $0x88,%ecx
call   1030 <crError@plt>
jmp    1137 <crMemcmp+0x17>

LLVM IR (-O0):
@.str = [39 x i8] c"Assertion failed: %s, file %s, line %d\00"
@.str.1 = [3 x i8] c"p1\00"
@.str.2 = [140 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/alown/chromium/refs/heads/cmake-fixing/util/mem.c\00"
@.str.3 = [3 x i8] c"p2\00"
define i32 @crMemcmp(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i8*, i8** %4
%8 = icmp ne i8* %7, null
br i1 %8, label %9, label %10
9: ; preds = %3
br label %11
10: ; preds = %3
br label %11
11: ; preds = %10, %9
%12 = load i8*, i8** %5
%13 = icmp ne i8* %12, null
br i1 %13, label %14, label %15
14: ; preds = %11
br label %16
15: ; preds = %11
br label %16
16: ; preds = %15, %14
%17 = load i8*, i8** %4
%18 = load i8*, i8** %5
%19 = load i32, i32* %6
%20 = call i32 @memcmp(i8* %17, i8* %18, i32 %19)
ret i32 %20
}

LLVM IR (-O2):
@.str = [39 x i8] c"Assertion failed: %s, file %s, line %d\00"
@.str.1 = [3 x i8] c"p1\00"
@.str.2 = [140 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/alown/chromium/refs/heads/cmake-fixing/util/mem.c\00"
@.str.3 = [3 x i8] c"p2\00"
define i32 @crMemcmp(i8* %0, i8* %1, i32 %2) {
%4 = icmp eq i8* %0, null
br i1 %4, label %5, label %6
5: ; preds = %3
tail call void @crError(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str.2, i64 0, i64 0), i32 135)
br label %6
6: ; preds = %3, %5
%7 = icmp eq i8* %1, null
br i1 %7, label %8, label %9
8: ; preds = %6
tail call void @crError(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str.2, i64 0, i64 0), i32 136)
br label %9
9: ; preds = %6, %8
%10 = tail call i32 @memcmp(i8* %0, i8* %1, i32 %2)
ret i32 %10
}