void flag_visited_as_disabled(char *map) {
  int cur;
  for (cur = 0; cur < 22 * 80; cur++)
    if (map[cur] & (1 << 4))
      map[cur] = (map[cur] & 3) | (1 << 3);
    else
      map[cur] = map[cur] & (3 | (1 << 3));
}


x86 assembly (clang, -O0):
<flag_visited_as_disabled>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x6e0,-0xc(%rbp)
jge    1187 <flag_visited_as_disabled+0x87>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
and    $0x10,%eax
cmp    $0x0,%eax
je     1158 <flag_visited_as_disabled+0x58>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
and    $0x3,%eax
or     $0x8,%eax
mov    %al,%dl
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
jmp    1174 <flag_visited_as_disabled+0x74>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
and    $0xb,%eax
mov    %al,%dl
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
jmp    1179 <flag_visited_as_disabled+0x79>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <flag_visited_as_disabled+0xf>
pop    %rbp
ret

x86 assembly (clang, -O2):
<flag_visited_as_disabled>:
mov    $0x10,%eax
movdqa 0xef2(%rip),%xmm8
movdqa 0xef9(%rip),%xmm9
movdqa 0xf01(%rip),%xmm2
movdqa 0xf09(%rip),%xmm3
nopw   0x0(%rax,%rax,1)
movdqu -0x10(%rdi,%rax,1),%xmm5
movdqu (%rdi,%rax,1),%xmm0
movdqa %xmm5,%xmm6
psllw  $0x3,%xmm6
pand   %xmm8,%xmm6
pxor   %xmm7,%xmm7
pcmpgtb %xmm6,%xmm7
movdqa %xmm7,%xmm6
pandn  %xmm5,%xmm6
movdqa %xmm0,%xmm4
psllw  $0x3,%xmm4
pand   %xmm8,%xmm4
pxor   %xmm1,%xmm1
pcmpgtb %xmm4,%xmm1
movdqa %xmm1,%xmm4
pandn  %xmm0,%xmm4
pand   %xmm2,%xmm5
pand   %xmm2,%xmm0
por    %xmm3,%xmm5
por    %xmm3,%xmm0
pand   %xmm7,%xmm5
pand   %xmm9,%xmm6
por    %xmm5,%xmm6
pand   %xmm1,%xmm0
pand   %xmm9,%xmm4
por    %xmm0,%xmm4
movdqu %xmm6,-0x10(%rdi,%rax,1)
movdqu %xmm4,(%rdi,%rax,1)
add    $0x20,%rax
cmp    $0x6f0,%rax
jne    1130 <flag_visited_as_disabled+0x30>
ret

LLVM IR (-O0):
define void @flag_visited_as_disabled(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
store i32 0, i32* %3
br label %4
4: ; preds = %44, %1
%5 = load i32, i32* %3
%6 = icmp slt i32 %5, 1760
br i1 %6, label %7, label %47
7: ; preds = %4
%8 = load i8*, i8** %2
%9 = load i32, i32* %3
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, i8* %8, i64 %10
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = and i32 %13, 16
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %30
16: ; preds = %7
%17 = load i8*, i8** %2
%18 = load i32, i32* %3
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, i8* %17, i64 %19
%21 = load i8, i8* %20
%22 = sext i8 %21 to i32
%23 = and i32 %22, 3
%24 = or i32 %23, 8
%25 = trunc i32 %24 to i8
%26 = load i8*, i8** %2
%27 = load i32, i32* %3
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, i8* %26, i64 %28
store i8 %25, i8* %29
br label %43
30: ; preds = %7
%31 = load i8*, i8** %2
%32 = load i32, i32* %3
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, i8* %31, i64 %33
%35 = load i8, i8* %34
%36 = sext i8 %35 to i32
%37 = and i32 %36, 11
%38 = trunc i32 %37 to i8
%39 = load i8*, i8** %2
%40 = load i32, i32* %3
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, i8* %39, i64 %41
store i8 %38, i8* %42
br label %43
43: ; preds = %30, %16
br label %44
44: ; preds = %43
%45 = load i32, i32* %3
%46 = add nsw i32 %45, 1
store i32 %46, i32* %3
br label %4
47: ; preds = %4
ret void
}

LLVM IR (-O2):
define void @flag_visited_as_disabled(i8* nocapture %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i64 [ 0, %1 ], [ %24, %2 ]
%4 = getelementptr inbounds i8, i8* %0, i64 %3
%5 = bitcast i8* %4 to <16 x i8>*
%6 = load <16 x i8>, <16 x i8>* %5
%7 = getelementptr inbounds i8, i8* %4, i64 16
%8 = bitcast i8* %7 to <16 x i8>*
%9 = load <16 x i8>, <16 x i8>* %8
%10 = and <16 x i8> %6, <i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16>
%11 = and <16 x i8> %9, <i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16, i8 16>
%12 = icmp eq <16 x i8> %10, zeroinitializer
%13 = icmp eq <16 x i8> %11, zeroinitializer
%14 = and <16 x i8> %6, <i8 11, i8 11, i8 11, i8 11, i8 11, i8 11, i8 11, i8 11, i8 11, i8 11, i8 11, i8 11, i8 11, i8 11, i8 11, i8 11>
%15 = and <16 x i8> %9, <i8 11, i8 11, i8 11, i8 11, i8 11, i8 11, i8 11, i8 11, i8 11, i8 11, i8 11, i8 11, i8 11, i8 11, i8 11, i8 11>
%16 = and <16 x i8> %6, <i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3>
%17 = and <16 x i8> %9, <i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3>
%18 = or <16 x i8> %16, <i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8>
%19 = or <16 x i8> %17, <i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8, i8 8>
%20 = select <16 x i1> %12, <16 x i8> %14, <16 x i8> %18
%21 = select <16 x i1> %13, <16 x i8> %15, <16 x i8> %19
%22 = bitcast i8* %4 to <16 x i8>*
store <16 x i8> %20, <16 x i8>* %22
%23 = bitcast i8* %7 to <16 x i8>*
store <16 x i8> %21, <16 x i8>* %23
%24 = add nuw i64 %3, 32
%25 = icmp eq i64 %24, 1760
br i1 %25, label %26, label %2
26: ; preds = %2
ret void
}