#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 EXIT_FAILURE;
int EXIT_SUCCESS;
scalar_t__ strcmp(char *, char *);
int check_mounts(char *ft_name, char *ft_dir, char *ft_type, char *mt_name,
                 char *mt_dir, char *mt_type, char *type) {
  if (((strcmp(ft_type, type)) == 0) && (strcmp(mt_type, type) == 0)) {
    if (((strcmp(ft_name, mt_name)) == 0) && (strcmp(ft_dir, mt_dir) == 0)) {
      return (EXIT_SUCCESS);
    }
  }
  return (EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<check_mounts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
mov    -0x20(%rbp),%rdi
mov    0x10(%rbp),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11a6 <check_mounts+0x96>
mov    -0x38(%rbp),%rdi
mov    0x10(%rbp),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11a6 <check_mounts+0x96>
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11a1 <check_mounts+0x91>
mov    -0x18(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11a1 <check_mounts+0x91>
mov    0x2e41(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    11b2 <check_mounts+0xa2>
jmp    11a6 <check_mounts+0x96>
mov    0x2e33(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_mounts>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%rbx
mov    %r8,%r14
mov    %rcx,%r12
mov    %rsi,%r15
mov    %rdi,%r13
mov    0x40(%rsp),%rbp
mov    %rdx,%rdi
mov    %rbp,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
jne    116f <check_mounts+0x5f>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
jne    116f <check_mounts+0x5f>
mov    %r13,%rdi
mov    %r12,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
jne    116f <check_mounts+0x5f>
mov    %r15,%rdi
mov    %r14,%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1187 <check_mounts+0x77>
mov    0x2e6a(%rip),%rax
mov    (%rax),%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2e4a(%rip),%rax
jmp    1176 <check_mounts+0x66>

LLVM IR (-O0):
@EXIT_SUCCESS = global i32 0
@EXIT_FAILURE = global i32 0
define i32 @check_mounts(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6) {
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
store i8* %0, i8** %9
store i8* %1, i8** %10
store i8* %2, i8** %11
store i8* %3, i8** %12
store i8* %4, i8** %13
store i8* %5, i8** %14
store i8* %6, i8** %15
%16 = load i8*, i8** %11
%17 = load i8*, i8** %15
%18 = call i64 @strcmp(i8* %16, i8* %17)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %38
20: ; preds = %7
%21 = load i8*, i8** %14
%22 = load i8*, i8** %15
%23 = call i64 @strcmp(i8* %21, i8* %22)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %38
25: ; preds = %20
%26 = load i8*, i8** %9
%27 = load i8*, i8** %12
%28 = call i64 @strcmp(i8* %26, i8* %27)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %37
30: ; preds = %25
%31 = load i8*, i8** %10
%32 = load i8*, i8** %13
%33 = call i64 @strcmp(i8* %31, i8* %32)
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %30
%36 = load i32, i32* @EXIT_SUCCESS
store i32 %36, i32* %8
br label %40
37: ; preds = %30, %25
br label %38
38: ; preds = %37, %20, %7
%39 = load i32, i32* @EXIT_FAILURE
store i32 %39, i32* %8
br label %40
40: ; preds = %38, %35
%41 = load i32, i32* %8
ret i32 %41
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
@EXIT_FAILURE = global i32 0
define i32 @check_mounts(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6) {
%8 = tail call i64 @strcmp(i8* %2, i8* %6)
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %19
10: ; preds = %7
%11 = tail call i64 @strcmp(i8* %5, i8* %6)
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %19
13: ; preds = %10
%14 = tail call i64 @strcmp(i8* %0, i8* %3)
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = tail call i64 @strcmp(i8* %1, i8* %4)
%18 = icmp eq i64 %17, 0
br i1 %18, label %20, label %19
19: ; preds = %13, %16, %10, %7
br label %20
20: ; preds = %16, %19
%21 = phi i32* [ @EXIT_FAILURE, %19 ], [ @EXIT_SUCCESS, %16 ]
%22 = load i32, i32* %21
ret i32 %22
}