int DistNextVertexList(Schema, A, D)
struct frvStruct *Schema;
struct Vertex **A;
struct Mark *D;
{
  (*A) = AccessVertexVertexListNext(*A);
  if ((*A) != 0 && AccessVertexMark(*A) == D)
    return (1);
  return (0);
}


x86 assembly (clang, -O0):
<DistNextVertexList>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
mov    $0x0,%al
call   1040 <AccessVertexVertexListNext@plt>
movslq %eax,%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x18(%rbp),%rax
cmpq   $0x0,(%rax)
je     1180 <DistNextVertexList+0x60>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
mov    $0x0,%al
call   1030 <AccessVertexMark@plt>
cltq
cmp    -0x20(%rbp),%rax
jne    1180 <DistNextVertexList+0x60>
movl   $0x1,-0x4(%rbp)
jmp    1187 <DistNextVertexList+0x67>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DistNextVertexList>:
push   %rbp
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rsi,%rbx
mov    (%rsi),%rdi
xor    %ebp,%ebp
xor    %eax,%eax
call   1040 <AccessVertexVertexListNext@plt>
movslq %eax,%rdi
mov    %rdi,(%rbx)
test   %edi,%edi
je     1153 <DistNextVertexList+0x33>
xor    %eax,%eax
call   1030 <AccessVertexMark@plt>
cltq
cmp    %r14,%rax
jne    1153 <DistNextVertexList+0x33>
mov    $0x1,%ebp
mov    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
%struct.frvStruct = type opaque
%struct.Vertex = type opaque
%struct.Mark = type opaque
define i32 @DistNextVertexList(%struct.frvStruct* %0, %struct.Vertex** %1, %struct.Mark* %2) {
%4 = alloca i32
%5 = alloca %struct.frvStruct*
%6 = alloca %struct.Vertex**
%7 = alloca %struct.Mark*
store %struct.frvStruct* %0, %struct.frvStruct** %5
store %struct.Vertex** %1, %struct.Vertex*** %6
store %struct.Mark* %2, %struct.Mark** %7
%8 = load %struct.Vertex**, %struct.Vertex*** %6
%9 = load %struct.Vertex*, %struct.Vertex** %8
%10 = call i32 (%struct.Vertex*, ...) bitcast (i32 (...)* @AccessVertexVertexListNext to i32 (%struct.Vertex*, ...)*)(%struct.Vertex* %9)
%11 = sext i32 %10 to i64
%12 = inttoptr i64 %11 to %struct.Vertex*
%13 = load %struct.Vertex**, %struct.Vertex*** %6
store %struct.Vertex* %12, %struct.Vertex** %13
%14 = load %struct.Vertex**, %struct.Vertex*** %6
%15 = load %struct.Vertex*, %struct.Vertex** %14
%16 = icmp ne %struct.Vertex* %15, null
br i1 %16, label %17, label %26
17: ; preds = %3
%18 = load %struct.Vertex**, %struct.Vertex*** %6
%19 = load %struct.Vertex*, %struct.Vertex** %18
%20 = call i32 (%struct.Vertex*, ...) bitcast (i32 (...)* @AccessVertexMark to i32 (%struct.Vertex*, ...)*)(%struct.Vertex* %19)
%21 = sext i32 %20 to i64
%22 = inttoptr i64 %21 to %struct.Mark*
%23 = load %struct.Mark*, %struct.Mark** %7
%24 = icmp eq %struct.Mark* %22, %23
br i1 %24, label %25, label %26
25: ; preds = %17
store i32 1, i32* %4
br label %27
26: ; preds = %17, %3
store i32 0, i32* %4
br label %27
27: ; preds = %26, %25
%28 = load i32, i32* %4
ret i32 %28
}

LLVM IR (-O2):
%struct.frvStruct = type opaque
%struct.Vertex = type opaque
%struct.Mark = type opaque
define i32 @DistNextVertexList(%struct.frvStruct* nocapture readnone %0, %struct.Vertex** nocapture %1, %struct.Mark* readnone %2) {
%4 = load %struct.Vertex*, %struct.Vertex** %1
%5 = tail call i32 (%struct.Vertex*, ...) bitcast (i32 (...)* @AccessVertexVertexListNext to i32 (%struct.Vertex*, ...)*)(%struct.Vertex* %4)
%6 = sext i32 %5 to i64
%7 = inttoptr i64 %6 to %struct.Vertex*
store %struct.Vertex* %7, %struct.Vertex** %1
%8 = icmp eq i32 %5, 0
br i1 %8, label %14, label %9
9: ; preds = %3
%10 = tail call i32 (%struct.Vertex*, ...) bitcast (i32 (...)* @AccessVertexMark to i32 (%struct.Vertex*, ...)*)(%struct.Vertex* %7)
%11 = sext i32 %10 to i64
%12 = inttoptr i64 %11 to %struct.Mark*
%13 = icmp eq %struct.Mark* %12, %2
br i1 %13, label %15, label %14
14: ; preds = %9, %3
br label %15
15: ; preds = %9, %14
%16 = phi i32 [ 0, %14 ], [ 1, %9 ]
ret i32 %16
}