#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*/ combine;

/* Variables and functions */
int /*<<< orphan*/ memcmp(char *, char *, int);
int /*<<< orphan*/ snprintf(char *, int, char *, char *, char *);
int is_inner_sub_vendev(char *line, char *search, char *search2) {
  char combine[10];
  snprintf(combine, sizeof(combine), "%s %s", &search[2], &search2[2]);
  if (line[0] != '\t' && line[1] != '\t')
    return 0;
  return !memcmp(combine, &line[2], 9);
}


x86 assembly (clang, -O0):
<is_inner_sub_vendev>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
lea    -0x2a(%rbp),%rdi
mov    -0x18(%rbp),%rcx
add    $0x2,%rcx
mov    -0x20(%rbp),%r8
add    $0x2,%r8
mov    $0xa,%esi
lea    0xeac(%rip),%rdx
call   1030 <snprintf@plt>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
je     1186 <is_inner_sub_vendev+0x66>
mov    -0x10(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x9,%eax
je     1186 <is_inner_sub_vendev+0x66>
movl   $0x0,-0x4(%rbp)
jmp    11ac <is_inner_sub_vendev+0x8c>
lea    -0x2a(%rbp),%rdi
mov    -0x10(%rbp),%rsi
add    $0x2,%rsi
mov    $0x9,%edx
call   1040 <memcmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_inner_sub_vendev>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
lea    0x2(%rsi),%rcx
lea    0x2(%rdx),%r8
lea    0xec9(%rip),%rdx
lea    0x6(%rsp),%rdi
mov    $0xa,%esi
call   1030 <snprintf@plt>
cmpb   $0x9,(%rbx)
je     1153 <is_inner_sub_vendev+0x33>
xor    %eax,%eax
cmpb   $0x9,0x1(%rbx)
jne    1172 <is_inner_sub_vendev+0x52>
add    $0x2,%rbx
lea    0x6(%rsp),%rdi
mov    %rbx,%rsi
mov    $0x9,%edx
call   1040 <memcmp@plt>
mov    %eax,%ecx
xor    %eax,%eax
test   %ecx,%ecx
sete   %al
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%s %s\00"
define i32 @is_inner_sub_vendev(i8* %0, i8* %1, i8* %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca [10 x i8]
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
%9 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 0
%10 = load i8*, i8** %6
%11 = getelementptr inbounds i8, i8* %10, i64 2
%12 = load i8*, i8** %7
%13 = getelementptr inbounds i8, i8* %12, i64 2
%14 = call i32 @snprintf(i8* %9, i32 10, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %11, i8* %13)
%15 = load i8*, i8** %5
%16 = getelementptr inbounds i8, i8* %15, i64 0
%17 = load i8, i8* %16
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 9
br i1 %19, label %20, label %27
20: ; preds = %3
%21 = load i8*, i8** %5
%22 = getelementptr inbounds i8, i8* %21, i64 1
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = icmp ne i32 %24, 9
br i1 %25, label %26, label %27
26: ; preds = %20
store i32 0, i32* %4
br label %35
27: ; preds = %20, %3
%28 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 0
%29 = load i8*, i8** %5
%30 = getelementptr inbounds i8, i8* %29, i64 2
%31 = call i32 @memcmp(i8* %28, i8* %30, i32 9)
%32 = icmp ne i32 %31, 0
%33 = xor i1 %32, true
%34 = zext i1 %33 to i32
store i32 %34, i32* %4
br label %35
35: ; preds = %27, %26
%36 = load i32, i32* %4
ret i32 %36
}

LLVM IR (-O2):
@.str = [6 x i8] c"%s %s\00"
define i32 @is_inner_sub_vendev(i8* %0, i8* %1, i8* %2) {
%4 = alloca [10 x i8]
%5 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%6 = getelementptr inbounds i8, i8* %1, i64 2
%7 = getelementptr inbounds i8, i8* %2, i64 2
%8 = call i32 @snprintf(i8* %5, i32 10, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %6, i8* %7)
%9 = load i8, i8* %0
%10 = icmp eq i8 %9, 9
br i1 %10, label %15, label %11
11: ; preds = %3
%12 = getelementptr inbounds i8, i8* %0, i64 1
%13 = load i8, i8* %12
%14 = icmp eq i8 %13, 9
br i1 %14, label %15, label %20
15: ; preds = %11, %3
%16 = getelementptr inbounds i8, i8* %0, i64 2
%17 = call i32 @memcmp(i8* %5, i8* %16, i32 9)
%18 = icmp eq i32 %17, 0
%19 = zext i1 %18 to i32
br label %20
20: ; preds = %11, %15
%21 = phi i32 [ %19, %15 ], [ 0, %11 ]
ret i32 %21
}