#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);
scalar_t__ memcpy(void *, void const *, unsigned int);
void crMemcpy(void *dst, const void *src, unsigned int bytes) {
  ((dst) ? (void)0
         : crError("Assertion failed: %s, file %s, line %d", "dst",
                   "/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",
                   116));
  ((src) ? (void)0
         : crError("Assertion failed: %s, file %s, line %d", "src",
                   "/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",
                   117));
  (void)memcpy(dst, src, bytes);
}


x86 assembly (clang, -O0):
<crMemcpy>:
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 <crMemcpy+0x23>
jmp    1162 <crMemcpy+0x42>
lea    0xeb6(%rip),%rdi
lea    0xed6(%rip),%rsi
lea    0xed3(%rip),%rdx
mov    $0x74,%ecx
call   1030 <crError@plt>
cmpq   $0x0,-0x10(%rbp)
je     1172 <crMemcpy+0x52>
jmp    1191 <crMemcpy+0x71>
lea    0xe87(%rip),%rdi
lea    0xf37(%rip),%rsi
lea    0xea4(%rip),%rdx
mov    $0x75,%ecx
call   1030 <crError@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1040 <memcpy@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<crMemcpy>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %rsi,%rbx
mov    %rdi,%rbp
test   %rdi,%rdi
je     1149 <crMemcpy+0x29>
test   %rbx,%rbx
je     116d <crMemcpy+0x4d>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r14d,%edx
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <memcpy@plt>
lea    0xeb0(%rip),%rdi
lea    0xed0(%rip),%rsi
lea    0xecd(%rip),%rdx
mov    $0x74,%ecx
call   1030 <crError@plt>
test   %rbx,%rbx
jne    1137 <crMemcpy+0x17>
lea    0xe8c(%rip),%rdi
lea    0xf3c(%rip),%rsi
lea    0xea9(%rip),%rdx
mov    $0x75,%ecx
call   1030 <crError@plt>
jmp    1137 <crMemcpy+0x17>

LLVM IR (-O0):
@.str = [39 x i8] c"Assertion failed: %s, file %s, line %d\00"
@.str.1 = [4 x i8] c"dst\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 = [4 x i8] c"src\00"
define void @crMemcpy(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 i64 @memcpy(i8* %17, i8* %18, i32 %19)
ret void
}

LLVM IR (-O2):
@.str = [39 x i8] c"Assertion failed: %s, file %s, line %d\00"
@.str.1 = [4 x i8] c"dst\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 = [4 x i8] c"src\00"
define void @crMemcpy(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 ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str.2, i64 0, i64 0), i32 116)
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 ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str.2, i64 0, i64 0), i32 117)
br label %9
9: ; preds = %6, %8
%10 = tail call i64 @memcpy(i8* %0, i8* %1, i32 %2)
ret void
}