#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 */
int /*<<< orphan*/ add_pars_per_file(char *, int /*<<< orphan*/ *, int, int,
                                     int /*<<< orphan*/, int, int,
                                     int /*<<< orphan*/ *);
int /*<<< orphan*/ config_error_exit(int, char *);
int /*<<< orphan*/ config_yes_no(char *);
char *find_next_par(char *);
void set_default_mark_change(int linenr, char *cmd, char *par) {
  char *re;
  if ((re = find_next_par(par)) == NULL)
    config_error_exit(
        linenr,
        "Scheme entry malformed: scheme name or regular expression missing.\n");
  add_pars_per_file(re, NULL, -1, -1, config_yes_no(par), -1, -1, NULL);
}


x86 assembly (clang, -O0):
<set_default_mark_change>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <find_next_par@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    1179 <set_default_mark_change+0x39>
mov    -0x4(%rbp),%edi
lea    0xe8c(%rip),%rsi
call   1050 <config_error_exit@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
call   1060 <config_yes_no@plt>
mov    -0x28(%rbp),%rdi
mov    %eax,%r8d
xor    %eax,%eax
mov    %eax,%esi
mov    $0xffffffff,%r9d
mov    %r9d,%edx
mov    %r9d,%ecx
movl   $0xffffffff,(%rsp)
movq   $0x0,0x8(%rsp)
call   1030 <add_pars_per_file@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_default_mark_change>:
push   %rbp
push   %r14
push   %rbx
mov    %rdx,%rbx
mov    %edi,%ebp
mov    %rdx,%rdi
call   1040 <find_next_par@plt>
mov    %rax,%r14
test   %rax,%rax
jne    1167 <set_default_mark_change+0x27>
lea    0xea0(%rip),%rsi
mov    %ebp,%edi
call   1050 <config_error_exit@plt>
mov    %rbx,%rdi
call   1060 <config_yes_no@plt>
mov    %r14,%rdi
xor    %esi,%esi
mov    $0xffffffff,%edx
mov    $0xffffffff,%ecx
mov    %eax,%r8d
mov    $0xffffffff,%r9d
push   $0x0
push   $0xffffffffffffffff
call   1030 <add_pars_per_file@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [68 x i8] c"Scheme entry malformed: scheme name or regular expression missing.\0A\00"
define void @set_default_mark_change(i32 %0, i8* %1, i8* %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
store i32 %0, i32* %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%8 = load i8*, i8** %6
%9 = call i8* @find_next_par(i8* %8)
store i8* %9, i8** %7
%10 = icmp eq i8* %9, null
br i1 %10, label %11, label %14
11: ; preds = %3
%12 = load i32, i32* %4
%13 = call i32 @config_error_exit(i32 %12, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str, i64 0, i64 0))
br label %14
14: ; preds = %11, %3
%15 = load i8*, i8** %7
%16 = load i8*, i8** %6
%17 = call i32 @config_yes_no(i8* %16)
%18 = call i32 @add_pars_per_file(i8* %15, i32* null, i32 -1, i32 -1, i32 %17, i32 -1, i32 -1, i32* null)
ret void
}

LLVM IR (-O2):
@.str = [68 x i8] c"Scheme entry malformed: scheme name or regular expression missing.\0A\00"
define void @set_default_mark_change(i32 %0, i8* nocapture readnone %1, i8* %2) {
%4 = tail call i8* @find_next_par(i8* %2)
%5 = icmp eq i8* %4, null
br i1 %5, label %6, label %8
6: ; preds = %3
%7 = tail call i32 @config_error_exit(i32 %0, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %6, %3
%9 = tail call i32 @config_yes_no(i8* %2)
%10 = tail call i32 @add_pars_per_file(i8* %4, i32* null, i32 -1, i32 -1, i32 %9, i32 -1, i32 -1, i32* null)
ret void
}