#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 */
struct cymkd_parser {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ consume(struct cymkd_parser *);
scalar_t__ isspace(int /*<<< orphan*/);
int /*<<< orphan*/ match(struct cymkd_parser *, char);
int /*<<< orphan*/ next(struct cymkd_parser *);
int /*<<< orphan*/ text_and_inline(struct cymkd_parser *);
bool block_quote_line(struct cymkd_parser *parser) {
  if (!match(parser, '>')) {
    return false;
  }
  while (isspace(next(parser))) {
    consume(parser);
  }
  if (!text_and_inline(parser)) {
    return false;
  }
  return true;
}


x86 assembly (clang, -O0):
<block_quote_line>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x3e,%esi
call   1070 <match@plt>
cmp    $0x0,%eax
jne    117f <block_quote_line+0x2f>
movl   $0x0,-0x4(%rbp)
jmp    11d1 <block_quote_line+0x81>
jmp    1184 <block_quote_line+0x34>
mov    -0x10(%rbp),%rdi
call   1040 <next@plt>
mov    %eax,%edi
call   1030 <isspace@plt>
cmp    $0x0,%rax
je     11ac <block_quote_line+0x5c>
mov    -0x10(%rbp),%rdi
call   1050 <consume@plt>
jmp    1184 <block_quote_line+0x34>
mov    -0x10(%rbp),%rdi
call   1060 <text_and_inline@plt>
cmp    $0x0,%eax
jne    11ca <block_quote_line+0x7a>
movl   $0x0,-0x4(%rbp)
jmp    11d1 <block_quote_line+0x81>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<block_quote_line>:
push   %rbx
mov    %rdi,%rbx
mov    $0x3e,%esi
call   1070 <match@plt>
test   %eax,%eax
je     11a1 <block_quote_line+0x51>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rbx,%rdi
call   1040 <next@plt>
mov    %eax,%edi
call   1030 <isspace@plt>
test   %rax,%rax
je     118e <block_quote_line+0x3e>
mov    %rbx,%rdi
call   1050 <consume@plt>
jmp    1170 <block_quote_line+0x20>
mov    %rbx,%rdi
call   1060 <text_and_inline@plt>
mov    %eax,%ecx
xor    %eax,%eax
test   %ecx,%ecx
setne  %al
pop    %rbx
ret
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
%struct.cymkd_parser = type { i32 }
define i32 @block_quote_line(%struct.cymkd_parser* %0) {
%2 = alloca i32
%3 = alloca %struct.cymkd_parser*
store %struct.cymkd_parser* %0, %struct.cymkd_parser** %3
%4 = load %struct.cymkd_parser*, %struct.cymkd_parser** %3
%5 = call i32 @match(%struct.cymkd_parser* %4, i8 signext 62)
%6 = icmp ne i32 %5, 0
br i1 %6, label %8, label %7
7: ; preds = %1
store i32 0, i32* %2
br label %23
8: ; preds = %1
br label %9
9: ; preds = %14, %8
%10 = load %struct.cymkd_parser*, %struct.cymkd_parser** %3
%11 = call i32 @next(%struct.cymkd_parser* %10)
%12 = call i64 @isspace(i32 %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %9
%15 = load %struct.cymkd_parser*, %struct.cymkd_parser** %3
%16 = call i32 @consume(%struct.cymkd_parser* %15)
br label %9
17: ; preds = %9
%18 = load %struct.cymkd_parser*, %struct.cymkd_parser** %3
%19 = call i32 @text_and_inline(%struct.cymkd_parser* %18)
%20 = icmp ne i32 %19, 0
br i1 %20, label %22, label %21
21: ; preds = %17
store i32 0, i32* %2
br label %23
22: ; preds = %17
store i32 1, i32* %2
br label %23
23: ; preds = %22, %21, %7
%24 = load i32, i32* %2
ret i32 %24
}

LLVM IR (-O2):
%struct.cymkd_parser = type { i32 }
define i32 @block_quote_line(%struct.cymkd_parser* %0) {
%2 = tail call i32 @match(%struct.cymkd_parser* %0, i8 signext 62)
%3 = icmp eq i32 %2, 0
br i1 %3, label %17, label %4
4: ; preds = %1
%5 = tail call i32 @next(%struct.cymkd_parser* %0)
%6 = tail call i64 @isspace(i32 %5)
%7 = icmp eq i64 %6, 0
br i1 %7, label %13, label %8
8: ; preds = %4, %8
%9 = tail call i32 @consume(%struct.cymkd_parser* %0)
%10 = tail call i32 @next(%struct.cymkd_parser* %0)
%11 = tail call i64 @isspace(i32 %10)
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %8
13: ; preds = %8, %4
%14 = tail call i32 @text_and_inline(%struct.cymkd_parser* %0)
%15 = icmp ne i32 %14, 0
%16 = zext i1 %15 to i32
br label %17
17: ; preds = %13, %1
%18 = phi i32 [ 0, %1 ], [ %16, %13 ]
ret i32 %18
}