char dos_file_match_ignore_case(const char *a, const char *b, char is_dir) {
  char matched = dos_file_match_ignore_spaces(a, b, is_dir);
  if (!matched) {
    char *la = 0;
    char *lb = 0;
    if (a) {
      la = duplstr_((a), (__FUNCTION__),
                    "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                    "outputs/2022-01-22/02-19-57/repos/goblinhack/fatdisk/refs/"
                    "heads/master/fat.c",
                    __FUNCTION__, 2719);
    }
    if (b) {
      lb = duplstr_((b), (__FUNCTION__),
                    "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                    "outputs/2022-01-22/02-19-57/repos/goblinhack/fatdisk/refs/"
                    "heads/master/fat.c",
                    __FUNCTION__, 2723);
    }
    matched = dos_file_match_ignore_spaces(la, lb, is_dir);
    if (la) {
      myfree_((la),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/goblinhack/fatdisk/refs/heads/master/"
              "fat.c",
              __FUNCTION__, 2729);
    }
    if (lb) {
      myfree_((lb),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/goblinhack/fatdisk/refs/heads/master/"
              "fat.c",
              __FUNCTION__, 2733);
    }
  }
  return (matched);
}


x86 assembly (clang, -O0):
<dos_file_match_ignore_case>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %dl,%al
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %al,-0x11(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
movsbl -0x11(%rbp),%edx
mov    $0x0,%al
call   1050 <dos_file_match_ignore_spaces@plt>
mov    %al,-0x12(%rbp)
cmpb   $0x0,-0x12(%rbp)
jne    1248 <dos_file_match_ignore_case+0x118>
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     11a8 <dos_file_match_ignore_case+0x78>
mov    -0x8(%rbp),%rdi
lea    0xe75(%rip),%rcx
lea    0xe89(%rip),%rdx
mov    $0xa9f,%r8d
mov    %rcx,%rsi
mov    $0x0,%al
call   1040 <duplstr_@plt>
cltq
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     11db <dos_file_match_ignore_case+0xab>
mov    -0x10(%rbp),%rdi
lea    0xe42(%rip),%rcx
lea    0xe56(%rip),%rdx
mov    $0xaa3,%r8d
mov    %rcx,%rsi
mov    $0x0,%al
call   1040 <duplstr_@plt>
cltq
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
movsbl -0x11(%rbp),%edx
mov    $0x0,%al
call   1050 <dos_file_match_ignore_spaces@plt>
mov    %al,-0x12(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     121a <dos_file_match_ignore_case+0xea>
mov    -0x20(%rbp),%rdi
lea    0xe14(%rip),%rsi
lea    0xdf2(%rip),%rdx
mov    $0xaa9,%ecx
mov    $0x0,%al
call   1030 <myfree_@plt>
cmpq   $0x0,-0x28(%rbp)
je     1243 <dos_file_match_ignore_case+0x113>
mov    -0x28(%rbp),%rdi
lea    0xdeb(%rip),%rsi
lea    0xdc9(%rip),%rdx
mov    $0xaad,%ecx
mov    $0x0,%al
call   1030 <myfree_@plt>
jmp    1248 <dos_file_match_ignore_case+0x118>
movsbl -0x12(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dos_file_match_ignore_case>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %edx,%r15d
mov    %rsi,%r12
mov    %rdi,%rbx
xor    %eax,%eax
call   1050 <dos_file_match_ignore_spaces@plt>
mov    %eax,%ebp
test   %bpl,%bpl
jne    1207 <dos_file_match_ignore_case+0xd7>
test   %rbx,%rbx
je     11a7 <dos_file_match_ignore_case+0x77>
lea    0xebc(%rip),%rdx
lea    0xe9a(%rip),%rcx
mov    %rbx,%rdi
mov    %rcx,%rsi
mov    $0xa9f,%r8d
xor    %eax,%eax
call   1040 <duplstr_@plt>
movslq %eax,%r14
test   %r12,%r12
je     11af <dos_file_match_ignore_case+0x7f>
lea    0xe93(%rip),%rdx
lea    0xe71(%rip),%rcx
mov    %r12,%rdi
mov    %rcx,%rsi
mov    $0xaa3,%r8d
xor    %eax,%eax
call   1040 <duplstr_@plt>
movslq %eax,%rbx
jmp    11b1 <dos_file_match_ignore_case+0x81>
xor    %r14d,%r14d
test   %r12,%r12
jne    1181 <dos_file_match_ignore_case+0x51>
xor    %ebx,%ebx
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1050 <dos_file_match_ignore_spaces@plt>
mov    %eax,%ebp
test   %r14,%r14
je     11e5 <dos_file_match_ignore_case+0xb5>
lea    0xe4c(%rip),%rsi
lea    0xe2a(%rip),%rdx
mov    %r14,%rdi
mov    $0xaa9,%ecx
xor    %eax,%eax
call   1030 <myfree_@plt>
test   %rbx,%rbx
je     1207 <dos_file_match_ignore_case+0xd7>
lea    0xe2a(%rip),%rsi
lea    0xe08(%rip),%rdx
mov    %rbx,%rdi
mov    $0xaad,%ecx
xor    %eax,%eax
call   1030 <myfree_@plt>
mov    %ebp,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__FUNCTION__.dos_file_match_ignore_case = [27 x i8] c"dos_file_match_ignore_case\00"
@.str = [133 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/goblinhack/fatdisk/refs/heads/master/fat.c\00"
define signext i8 @dos_file_match_ignore_case(i8* %0, i8* %1, i8 signext %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8*
%9 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8 %2, i8* %6
%10 = load i8*, i8** %4
%11 = load i8*, i8** %5
%12 = load i8, i8* %6
%13 = sext i8 %12 to i32
%14 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @dos_file_match_ignore_spaces to i32 (i8*, i8*, i32, ...)*)(i8* %10, i8* %11, i32 %13)
%15 = trunc i32 %14 to i8
store i8 %15, i8* %7
%16 = load i8, i8* %7
%17 = icmp ne i8 %16, 0
br i1 %17, label %53, label %18
18: ; preds = %3
store i8* null, i8** %8
store i8* null, i8** %9
%19 = load i8*, i8** %4
%20 = icmp ne i8* %19, null
br i1 %20, label %21, label %26
21: ; preds = %18
%22 = load i8*, i8** %4
%23 = call i32 (i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @duplstr_ to i32 (i8*, i8*, i8*, i8*, i32, ...)*)(i8* %22, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @__FUNCTION__.dos_file_match_ignore_case, i64 0, i64 0), i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @__FUNCTION__.dos_file_match_ignore_case, i64 0, i64 0), i32 2719)
%24 = sext i32 %23 to i64
%25 = inttoptr i64 %24 to i8*
store i8* %25, i8** %8
br label %26
26: ; preds = %21, %18
%27 = load i8*, i8** %5
%28 = icmp ne i8* %27, null
br i1 %28, label %29, label %34
29: ; preds = %26
%30 = load i8*, i8** %5
%31 = call i32 (i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @duplstr_ to i32 (i8*, i8*, i8*, i8*, i32, ...)*)(i8* %30, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @__FUNCTION__.dos_file_match_ignore_case, i64 0, i64 0), i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @__FUNCTION__.dos_file_match_ignore_case, i64 0, i64 0), i32 2723)
%32 = sext i32 %31 to i64
%33 = inttoptr i64 %32 to i8*
store i8* %33, i8** %9
br label %34
34: ; preds = %29, %26
%35 = load i8*, i8** %8
%36 = load i8*, i8** %9
%37 = load i8, i8* %6
%38 = sext i8 %37 to i32
%39 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @dos_file_match_ignore_spaces to i32 (i8*, i8*, i32, ...)*)(i8* %35, i8* %36, i32 %38)
%40 = trunc i32 %39 to i8
store i8 %40, i8* %7
%41 = load i8*, i8** %8
%42 = icmp ne i8* %41, null
br i1 %42, label %43, label %46
43: ; preds = %34
%44 = load i8*, i8** %8
%45 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @myfree_ to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %44, i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @__FUNCTION__.dos_file_match_ignore_case, i64 0, i64 0), i32 2729)
br label %46
46: ; preds = %43, %34
%47 = load i8*, i8** %9
%48 = icmp ne i8* %47, null
br i1 %48, label %49, label %52
49: ; preds = %46
%50 = load i8*, i8** %9
%51 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @myfree_ to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %50, i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @__FUNCTION__.dos_file_match_ignore_case, i64 0, i64 0), i32 2733)
br label %52
52: ; preds = %49, %46
br label %53
53: ; preds = %52, %3
%54 = load i8, i8* %7
ret i8 %54
}

LLVM IR (-O2):
@__FUNCTION__.dos_file_match_ignore_case = [27 x i8] c"dos_file_match_ignore_case\00"
@.str = [133 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/goblinhack/fatdisk/refs/heads/master/fat.c\00"
define signext i8 @dos_file_match_ignore_case(i8* %0, i8* %1, i8 signext %2) {
%4 = sext i8 %2 to i32
%5 = tail call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @dos_file_match_ignore_spaces to i32 (i8*, i8*, i32, ...)*)(i8* %0, i8* %1, i32 %4)
%6 = trunc i32 %5 to i8
%7 = icmp eq i8 %6, 0
br i1 %7, label %8, label %32
8: ; preds = %3
%9 = icmp eq i8* %0, null
br i1 %9, label %14, label %10
10: ; preds = %8
%11 = tail call i32 (i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @duplstr_ to i32 (i8*, i8*, i8*, i8*, i32, ...)*)(i8* %0, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @__FUNCTION__.dos_file_match_ignore_case, i64 0, i64 0), i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @__FUNCTION__.dos_file_match_ignore_case, i64 0, i64 0), i32 2719)
%12 = sext i32 %11 to i64
%13 = inttoptr i64 %12 to i8*
br label %14
14: ; preds = %10, %8
%15 = phi i8* [ %13, %10 ], [ null, %8 ]
%16 = icmp eq i8* %1, null
br i1 %16, label %21, label %17
17: ; preds = %14
%18 = tail call i32 (i8*, i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @duplstr_ to i32 (i8*, i8*, i8*, i8*, i32, ...)*)(i8* %1, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @__FUNCTION__.dos_file_match_ignore_case, i64 0, i64 0), i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @__FUNCTION__.dos_file_match_ignore_case, i64 0, i64 0), i32 2723)
%19 = sext i32 %18 to i64
%20 = inttoptr i64 %19 to i8*
br label %21
21: ; preds = %17, %14
%22 = phi i8* [ %20, %17 ], [ null, %14 ]
%23 = tail call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @dos_file_match_ignore_spaces to i32 (i8*, i8*, i32, ...)*)(i8* %15, i8* %22, i32 %4)
%24 = trunc i32 %23 to i8
%25 = icmp eq i8* %15, null
br i1 %25, label %28, label %26
26: ; preds = %21
%27 = tail call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @myfree_ to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %15, i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @__FUNCTION__.dos_file_match_ignore_case, i64 0, i64 0), i32 2729)
br label %28
28: ; preds = %26, %21
%29 = icmp eq i8* %22, null
br i1 %29, label %32, label %30
30: ; preds = %28
%31 = tail call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @myfree_ to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %22, i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @__FUNCTION__.dos_file_match_ignore_case, i64 0, i64 0), i32 2733)
br label %32
32: ; preds = %28, %30, %3
%33 = phi i8 [ %6, %3 ], [ %24, %30 ], [ %24, %28 ]
ret i8 %33
}