#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 */
typedef int /*<<< orphan*/ uint64_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ SEEK_CUR;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, int);
scalar_t__ fseeko(int /*<<< orphan*/ *, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int mxf_skip(FILE *mxfFile, uint64_t len) {
  if (!(fseeko(mxfFile, len, SEEK_CUR) == 0)) {
    fprintf(stderr, "'%s' failed in line %d\n",
            "fseeko(mxfFile, len, SEEK_CUR) == 0", 185);
    return 0;
  };
  return 1;
}


x86 assembly (clang, -O0):
<mxf_skip>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    0x2eab(%rip),%rax
mov    (%rax),%edx
call   1040 <fseeko@plt>
cmp    $0x0,%rax
je     117b <mxf_skip+0x5b>
mov    0x2e83(%rip),%rax
mov    (%rax),%edi
lea    0xea2(%rip),%rsi
lea    0xeb3(%rip),%rdx
mov    $0xb9,%ecx
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1182 <mxf_skip+0x62>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mxf_skip>:
push   %rax
mov    0x2ec0(%rip),%rax
mov    (%rax),%edx
call   1040 <fseeko@plt>
test   %rax,%rax
je     1159 <mxf_skip+0x39>
mov    0x2e9d(%rip),%rax
mov    (%rax),%edi
lea    0xebc(%rip),%rsi
lea    0xecd(%rip),%rdx
mov    $0xb9,%ecx
call   1030 <fprintf@plt>
xor    %eax,%eax
pop    %rcx
ret
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@SEEK_CUR = global i32 0
@stderr = global i32 0
@.str = [24 x i8] c"'%s' failed in line %d\0A\00"
@.str.1 = [36 x i8] c"fseeko(mxfFile, len, SEEK_CUR) == 0\00"
define i32 @mxf_skip(i32* %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32*
%5 = alloca i32
store i32* %0, i32** %4
store i32 %1, i32* %5
%6 = load i32*, i32** %4
%7 = load i32, i32* %5
%8 = load i32, i32* @SEEK_CUR
%9 = call i64 @fseeko(i32* %6, i32 %7, i32 %8)
%10 = icmp eq i64 %9, 0
br i1 %10, label %14, label %11
11: ; preds = %2
%12 = load i32, i32* @stderr
%13 = call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0), i32 185)
store i32 0, i32* %3
br label %15
14: ; preds = %2
store i32 1, i32* %3
br label %15
15: ; preds = %14, %11
%16 = load i32, i32* %3
ret i32 %16
}

LLVM IR (-O2):
@SEEK_CUR = global i32 0
@stderr = global i32 0
@.str = [24 x i8] c"'%s' failed in line %d\0A\00"
@.str.1 = [36 x i8] c"fseeko(mxfFile, len, SEEK_CUR) == 0\00"
define i32 @mxf_skip(i32* nocapture %0, i32 %1) {
%3 = load i32, i32* @SEEK_CUR
%4 = tail call i64 @fseeko(i32* %0, i32 %1, i32 %3)
%5 = icmp eq i64 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %2
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0), i32 185)
br label %9
9: ; preds = %2, %6
%10 = phi i32 [ 0, %6 ], [ 1, %2 ]
ret i32 %10
}