; LLVM IR from aap/pdp6 :: newemu (panel6)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Panel6 = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.PDP6 = type { i32, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i64, i64, i8, i64, i64, i64, i32, i32, i32, i32, i32, i32, i64, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, i64, i64, i64, i8, i8, i8, i8, i64, i8, i8, i8, i32, %struct.FD, i64, i8, i8, i8, i8, i8, i8, i8, i8, i32, i32, %struct.FD, i32, i64, i64, %struct.FD, i8, i64, i64, i64, i64, i64, i8, i64 }
%struct.FD = type { i32, i32, i32 }

; Function Attrs: nounwind uwtable
define dso_local void @updateswitches(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #2
  %6 = load ptr, ptr %4, align 8, !tbaa !5
  %7 = getelementptr inbounds %struct.Panel6, ptr %6, i32 0, i32 3
  %8 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %8, ptr %5, align 4, !tbaa !12
  %9 = load i32, ptr %5, align 4, !tbaa !12
  %10 = and i32 %9, 1
  %11 = icmp ne i32 %10, 0
  %12 = xor i1 %11, true
  %13 = xor i1 %12, true
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.PDP6, ptr %14, i32 0, i32 4
  %16 = zext i1 %13 to i8
  store i8 %16, ptr %15, align 8, !tbaa !13
  %17 = load i32, ptr %5, align 4, !tbaa !12
  %18 = and i32 %17, 2
  %19 = icmp ne i32 %18, 0
  %20 = xor i1 %19, true
  %21 = xor i1 %20, true
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.PDP6, ptr %22, i32 0, i32 5
  %24 = zext i1 %21 to i8
  store i8 %24, ptr %23, align 1, !tbaa !18
  %25 = load i32, ptr %5, align 4, !tbaa !12
  %26 = and i32 %25, 4
  %27 = icmp ne i32 %26, 0
  %28 = xor i1 %27, true
  %29 = xor i1 %28, true
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.PDP6, ptr %30, i32 0, i32 9
  %32 = zext i1 %29 to i8
  store i8 %32, ptr %31, align 1, !tbaa !19
  %33 = load i32, ptr %5, align 4, !tbaa !12
  %34 = and i32 %33, 8
  %35 = icmp ne i32 %34, 0
  %36 = xor i1 %35, true
  %37 = xor i1 %36, true
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.PDP6, ptr %38, i32 0, i32 7
  %40 = zext i1 %37 to i8
  store i8 %40, ptr %39, align 1, !tbaa !20
  %41 = load i32, ptr %5, align 4, !tbaa !12
  %42 = and i32 %41, 16
  %43 = icmp ne i32 %42, 0
  %44 = xor i1 %43, true
  %45 = xor i1 %44, true
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.PDP6, ptr %46, i32 0, i32 8
  %48 = zext i1 %45 to i8
  store i8 %48, ptr %47, align 4, !tbaa !21
  %49 = load i32, ptr %5, align 4, !tbaa !12
  %50 = and i32 %49, 32
  %51 = icmp ne i32 %50, 0
  %52 = xor i1 %51, true
  %53 = xor i1 %52, true
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.PDP6, ptr %54, i32 0, i32 6
  %56 = zext i1 %53 to i8
  store i8 %56, ptr %55, align 2, !tbaa !22
  %57 = load i32, ptr %5, align 4, !tbaa !12
  %58 = and i32 %57, 64
  %59 = icmp ne i32 %58, 0
  %60 = xor i1 %59, true
  %61 = xor i1 %60, true
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.PDP6, ptr %62, i32 0, i32 14
  %64 = zext i1 %61 to i8
  store i8 %64, ptr %63, align 2, !tbaa !23
  %65 = load i32, ptr %5, align 4, !tbaa !12
  %66 = and i32 %65, 128
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %74

68:                                               ; preds = %2
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.PDP6, ptr %69, i32 0, i32 21
  %71 = load i8, ptr %70, align 1, !tbaa !24, !range !25, !noundef !26
  %72 = trunc i8 %71 to i1
  %73 = xor i1 %72, true
  br label %74

74:                                               ; preds = %68, %2
  %75 = phi i1 [ false, %2 ], [ %73, %68 ]
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.PDP6, ptr %76, i32 0, i32 15
  %78 = zext i1 %75 to i8
  store i8 %78, ptr %77, align 1, !tbaa !27
  %79 = load i32, ptr %5, align 4, !tbaa !12
  %80 = and i32 %79, 256
  %81 = icmp ne i32 %80, 0
  %82 = xor i1 %81, true
  %83 = xor i1 %82, true
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.PDP6, ptr %84, i32 0, i32 12
  %86 = zext i1 %83 to i8
  store i8 %86, ptr %85, align 8, !tbaa !28
  %87 = load i32, ptr %5, align 4, !tbaa !12
  %88 = and i32 %87, 512
  %89 = icmp ne i32 %88, 0
  %90 = xor i1 %89, true
  %91 = xor i1 %90, true
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.PDP6, ptr %92, i32 0, i32 13
  %94 = zext i1 %91 to i8
  store i8 %94, ptr %93, align 1, !tbaa !29
  %95 = load i32, ptr %5, align 4, !tbaa !12
  %96 = and i32 %95, 1024
  %97 = icmp ne i32 %96, 0
  %98 = xor i1 %97, true
  %99 = xor i1 %98, true
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.PDP6, ptr %100, i32 0, i32 10
  %102 = zext i1 %99 to i8
  store i8 %102, ptr %101, align 2, !tbaa !30
  %103 = load i32, ptr %5, align 4, !tbaa !12
  %104 = and i32 %103, 2048
  %105 = icmp ne i32 %104, 0
  %106 = xor i1 %105, true
  %107 = xor i1 %106, true
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.PDP6, ptr %108, i32 0, i32 11
  %110 = zext i1 %107 to i8
  store i8 %110, ptr %109, align 1, !tbaa !31
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.Panel6, ptr %111, i32 0, i32 3
  %113 = load i32, ptr %112, align 4, !tbaa !9
  %114 = and i32 %113, 131072
  %115 = icmp ne i32 %114, 0
  %116 = xor i1 %115, true
  %117 = xor i1 %116, true
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.PDP6, ptr %118, i32 0, i32 17
  %120 = zext i1 %117 to i8
  store i8 %120, ptr %119, align 1, !tbaa !32
  %121 = load i32, ptr %5, align 4, !tbaa !12
  %122 = and i32 %121, 32768
  %123 = icmp ne i32 %122, 0
  %124 = xor i1 %123, true
  %125 = xor i1 %124, true
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.PDP6, ptr %126, i32 0, i32 18
  %128 = zext i1 %125 to i8
  store i8 %128, ptr %127, align 2, !tbaa !33
  %129 = load i32, ptr %5, align 4, !tbaa !12
  %130 = and i32 %129, 16384
  %131 = icmp ne i32 %130, 0
  %132 = xor i1 %131, true
  %133 = xor i1 %132, true
  %134 = load ptr, ptr %3, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.PDP6, ptr %134, i32 0, i32 19
  %136 = zext i1 %133 to i8
  store i8 %136, ptr %135, align 1, !tbaa !34
  %137 = load i32, ptr %5, align 4, !tbaa !12
  %138 = and i32 %137, 65536
  %139 = icmp ne i32 %138, 0
  %140 = xor i1 %139, true
  %141 = xor i1 %140, true
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.PDP6, ptr %142, i32 0, i32 20
  %144 = zext i1 %141 to i8
  store i8 %144, ptr %143, align 8, !tbaa !35
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.Panel6, ptr %145, i32 0, i32 0
  %147 = load i32, ptr %146, align 4, !tbaa !36
  %148 = sext i32 %147 to i64
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.Panel6, ptr %149, i32 0, i32 1
  %151 = load i32, ptr %150, align 4, !tbaa !37
  %152 = sext i32 %151 to i64
  %153 = shl i64 %152, 18
  %154 = or i64 %148, %153
  %155 = load ptr, ptr %3, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.PDP6, ptr %155, i32 0, i32 33
  store i64 %154, ptr %156, align 8, !tbaa !38
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.Panel6, ptr %157, i32 0, i32 2
  %159 = load i32, ptr %158, align 4, !tbaa !39
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.PDP6, ptr %160, i32 0, i32 36
  store i32 %159, ptr %161, align 8, !tbaa !40
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.Panel6, ptr %162, i32 0, i32 4
  %164 = load i32, ptr %163, align 4, !tbaa !41
  %165 = and i32 %164, 4
  %166 = icmp ne i32 %165, 0
  %167 = xor i1 %166, true
  %168 = xor i1 %167, true
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.PDP6, ptr %169, i32 0, i32 145
  %171 = zext i1 %168 to i8
  store i8 %171, ptr %170, align 8, !tbaa !42
  %172 = load ptr, ptr %4, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.Panel6, ptr %172, i32 0, i32 4
  %174 = load i32, ptr %173, align 4, !tbaa !41
  %175 = and i32 %174, 8
  %176 = icmp ne i32 %175, 0
  %177 = xor i1 %176, true
  %178 = xor i1 %177, true
  %179 = load ptr, ptr %3, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.PDP6, ptr %179, i32 0, i32 134
  %181 = zext i1 %178 to i8
  store i8 %181, ptr %180, align 1, !tbaa !43
  %182 = load ptr, ptr %4, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.Panel6, ptr %182, i32 0, i32 4
  %184 = load i32, ptr %183, align 4, !tbaa !41
  %185 = and i32 %184, 1
  %186 = icmp ne i32 %185, 0
  %187 = xor i1 %186, true
  %188 = xor i1 %187, true
  %189 = load ptr, ptr %3, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.PDP6, ptr %189, i32 0, i32 132
  %191 = zext i1 %188 to i8
  store i8 %191, ptr %190, align 1, !tbaa !44
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.Panel6, ptr %192, i32 0, i32 4
  %194 = load i32, ptr %193, align 4, !tbaa !41
  %195 = and i32 %194, 2
  %196 = icmp ne i32 %195, 0
  %197 = xor i1 %196, true
  %198 = xor i1 %197, true
  %199 = load ptr, ptr %3, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.PDP6, ptr %199, i32 0, i32 133
  %201 = zext i1 %198 to i8
  store i8 %201, ptr %200, align 8, !tbaa !45
  %202 = load ptr, ptr %3, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.PDP6, ptr %202, i32 0, i32 4
  %204 = load i8, ptr %203, align 8, !tbaa !13, !range !25, !noundef !26
  %205 = trunc i8 %204 to i1
  br i1 %205, label %246, label %206

206:                                              ; preds = %74
  %207 = load ptr, ptr %3, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.PDP6, ptr %207, i32 0, i32 5
  %209 = load i8, ptr %208, align 1, !tbaa !18, !range !25, !noundef !26
  %210 = trunc i8 %209 to i1
  br i1 %210, label %246, label %211

211:                                              ; preds = %206
  %212 = load ptr, ptr %3, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.PDP6, ptr %212, i32 0, i32 9
  %214 = load i8, ptr %213, align 1, !tbaa !19, !range !25, !noundef !26
  %215 = trunc i8 %214 to i1
  br i1 %215, label %246, label %216

216:                                              ; preds = %211
  %217 = load ptr, ptr %3, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.PDP6, ptr %217, i32 0, i32 14
  %219 = load i8, ptr %218, align 2, !tbaa !23, !range !25, !noundef !26
  %220 = trunc i8 %219 to i1
  br i1 %220, label %246, label %221

221:                                              ; preds = %216
  %222 = load ptr, ptr %3, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.PDP6, ptr %222, i32 0, i32 15
  %224 = load i8, ptr %223, align 1, !tbaa !27, !range !25, !noundef !26
  %225 = trunc i8 %224 to i1
  br i1 %225, label %246, label %226

226:                                              ; preds = %221
  %227 = load ptr, ptr %3, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.PDP6, ptr %227, i32 0, i32 10
  %229 = load i8, ptr %228, align 2, !tbaa !30, !range !25, !noundef !26
  %230 = trunc i8 %229 to i1
  br i1 %230, label %246, label %231

231:                                              ; preds = %226
  %232 = load ptr, ptr %3, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.PDP6, ptr %232, i32 0, i32 11
  %234 = load i8, ptr %233, align 1, !tbaa !31, !range !25, !noundef !26
  %235 = trunc i8 %234 to i1
  br i1 %235, label %246, label %236

236:                                              ; preds = %231
  %237 = load ptr, ptr %3, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.PDP6, ptr %237, i32 0, i32 12
  %239 = load i8, ptr %238, align 8, !tbaa !28, !range !25, !noundef !26
  %240 = trunc i8 %239 to i1
  br i1 %240, label %246, label %241

241:                                              ; preds = %236
  %242 = load ptr, ptr %3, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.PDP6, ptr %242, i32 0, i32 13
  %244 = load i8, ptr %243, align 1, !tbaa !29, !range !25, !noundef !26
  %245 = trunc i8 %244 to i1
  br label %246

246:                                              ; preds = %241, %236, %231, %226, %221, %216, %211, %206, %74
  %247 = phi i1 [ true, %236 ], [ true, %231 ], [ true, %226 ], [ true, %221 ], [ true, %216 ], [ true, %211 ], [ true, %206 ], [ true, %74 ], [ %245, %241 ]
  %248 = load ptr, ptr %3, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.PDP6, ptr %248, i32 0, i32 16
  %250 = zext i1 %247 to i8
  store i8 %250, ptr %249, align 4, !tbaa !46
  %251 = load ptr, ptr %3, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.PDP6, ptr %251, i32 0, i32 171
  store i8 0, ptr %252, align 4, !tbaa !47
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #2
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 12}
!10 = !{!"Panel6", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !15, i64 16}
!14 = !{!"PDP6", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !15, i64 16, !15, i64 17, !15, i64 18, !15, i64 19, !15, i64 20, !15, i64 21, !15, i64 22, !15, i64 23, !15, i64 24, !15, i64 25, !15, i64 26, !15, i64 27, !15, i64 28, !15, i64 29, !15, i64 30, !15, i64 31, !15, i64 32, !15, i64 33, !15, i64 34, !15, i64 35, !15, i64 36, !15, i64 37, !15, i64 38, !15, i64 39, !16, i64 40, !16, i64 48, !7, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !16, i64 112, !7, i64 120, !15, i64 121, !15, i64 122, !15, i64 123, !15, i64 124, !15, i64 125, !15, i64 126, !15, i64 127, !15, i64 128, !15, i64 129, !15, i64 130, !15, i64 131, !15, i64 132, !15, i64 133, !15, i64 134, !15, i64 135, !15, i64 136, !15, i64 137, !15, i64 138, !15, i64 139, !15, i64 140, !15, i64 141, !15, i64 142, !15, i64 143, !15, i64 144, !15, i64 145, !15, i64 146, !15, i64 147, !15, i64 148, !15, i64 149, !15, i64 150, !15, i64 151, !15, i64 152, !15, i64 153, !15, i64 154, !15, i64 155, !15, i64 156, !15, i64 157, !15, i64 158, !15, i64 159, !15, i64 160, !15, i64 161, !15, i64 162, !15, i64 163, !15, i64 164, !15, i64 165, !15, i64 166, !15, i64 167, !15, i64 168, !15, i64 169, !15, i64 170, !15, i64 171, !15, i64 172, !15, i64 173, !15, i64 174, !15, i64 175, !15, i64 176, !15, i64 177, !15, i64 178, !15, i64 179, !7, i64 180, !7, i64 181, !7, i64 182, !7, i64 183, !15, i64 184, !15, i64 185, !15, i64 186, !15, i64 187, !15, i64 188, !11, i64 192, !11, i64 196, !11, i64 200, !15, i64 204, !15, i64 205, !15, i64 206, !15, i64 207, !15, i64 208, !15, i64 209, !15, i64 210, !15, i64 211, !15, i64 212, !15, i64 213, !15, i64 214, !15, i64 215, !7, i64 216, !15, i64 217, !15, i64 218, !15, i64 219, !15, i64 220, !15, i64 221, !15, i64 222, !15, i64 223, !15, i64 224, !15, i64 225, !15, i64 226, !15, i64 227, !15, i64 228, !15, i64 229, !7, i64 230, !11, i64 232, !11, i64 236, !16, i64 240, !16, i64 248, !16, i64 256, !15, i64 264, !15, i64 265, !15, i64 266, !7, i64 267, !16, i64 272, !15, i64 280, !15, i64 281, !15, i64 282, !11, i64 284, !17, i64 288, !16, i64 304, !7, i64 312, !15, i64 313, !15, i64 314, !15, i64 315, !7, i64 316, !15, i64 317, !15, i64 318, !7, i64 319, !11, i64 320, !11, i64 324, !17, i64 328, !11, i64 340, !16, i64 344, !16, i64 352, !17, i64 360, !15, i64 372, !16, i64 376, !16, i64 384, !16, i64 392, !16, i64 400, !16, i64 408, !15, i64 416, !16, i64 424}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!"long long", !7, i64 0}
!17 = !{!"FD", !11, i64 0, !11, i64 4, !11, i64 8}
!18 = !{!14, !15, i64 17}
!19 = !{!14, !15, i64 21}
!20 = !{!14, !15, i64 19}
!21 = !{!14, !15, i64 20}
!22 = !{!14, !15, i64 18}
!23 = !{!14, !15, i64 26}
!24 = !{!14, !15, i64 33}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!14, !15, i64 27}
!28 = !{!14, !15, i64 24}
!29 = !{!14, !15, i64 25}
!30 = !{!14, !15, i64 22}
!31 = !{!14, !15, i64 23}
!32 = !{!14, !15, i64 29}
!33 = !{!14, !15, i64 30}
!34 = !{!14, !15, i64 31}
!35 = !{!14, !15, i64 32}
!36 = !{!10, !11, i64 0}
!37 = !{!10, !11, i64 4}
!38 = !{!14, !16, i64 80}
!39 = !{!10, !11, i64 8}
!40 = !{!14, !11, i64 96}
!41 = !{!10, !11, i64 16}
!42 = !{!14, !15, i64 264}
!43 = !{!14, !15, i64 225}
!44 = !{!14, !15, i64 223}
!45 = !{!14, !15, i64 224}
!46 = !{!14, !15, i64 28}
!47 = !{!14, !15, i64 372}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable
define dso_local void @updateswitches(ptr nocapture noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %1, i64 12
  %4 = load i32, ptr %3, align 4, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = trunc i32 %4 to i8
  %7 = and i8 %6, 1
  store i8 %7, ptr %5, align 8, !tbaa !10
  %8 = getelementptr inbounds i8, ptr %0, i64 17
  %9 = lshr i8 %6, 1
  %10 = and i8 %9, 1
  store i8 %10, ptr %8, align 1, !tbaa !15
  %11 = getelementptr inbounds i8, ptr %0, i64 21
  %12 = lshr i8 %6, 2
  %13 = and i8 %12, 1
  store i8 %13, ptr %11, align 1, !tbaa !16
  %14 = getelementptr inbounds i8, ptr %0, i64 19
  %15 = lshr i8 %6, 3
  %16 = and i8 %15, 1
  store i8 %16, ptr %14, align 1, !tbaa !17
  %17 = getelementptr inbounds i8, ptr %0, i64 20
  %18 = lshr i8 %6, 4
  %19 = and i8 %18, 1
  store i8 %19, ptr %17, align 4, !tbaa !18
  %20 = getelementptr inbounds i8, ptr %0, i64 18
  %21 = lshr i8 %6, 5
  %22 = and i8 %21, 1
  store i8 %22, ptr %20, align 2, !tbaa !19
  %23 = getelementptr inbounds i8, ptr %0, i64 26
  %24 = lshr i8 %6, 6
  %25 = and i8 %24, 1
  store i8 %25, ptr %23, align 2, !tbaa !20
  %26 = and i32 %4, 128
  %.not = icmp eq i32 %26, 0
  br i1 %.not, label %31, label %27

27:                                               ; preds = %2
  %28 = getelementptr inbounds i8, ptr %0, i64 33
  %29 = load i8, ptr %28, align 1, !tbaa !21, !range !22, !noundef !23
  %30 = xor i8 %29, 1
  br label %31

31:                                               ; preds = %27, %2
  %32 = phi i8 [ 0, %2 ], [ %30, %27 ]
  %33 = getelementptr inbounds i8, ptr %0, i64 27
  store i8 %32, ptr %33, align 1, !tbaa !24
  %34 = getelementptr inbounds i8, ptr %0, i64 24
  %35 = lshr i32 %4, 8
  %36 = trunc i32 %35 to i8
  %37 = and i8 %36, 1
  store i8 %37, ptr %34, align 8, !tbaa !25
  %38 = getelementptr inbounds i8, ptr %0, i64 25
  %39 = lshr i32 %4, 9
  %40 = trunc i32 %39 to i8
  %41 = and i8 %40, 1
  store i8 %41, ptr %38, align 1, !tbaa !26
  %42 = getelementptr inbounds i8, ptr %0, i64 22
  %43 = lshr i32 %4, 10
  %44 = trunc i32 %43 to i8
  %45 = and i8 %44, 1
  store i8 %45, ptr %42, align 2, !tbaa !27
  %46 = getelementptr inbounds i8, ptr %0, i64 23
  %47 = lshr i32 %4, 11
  %48 = trunc i32 %47 to i8
  %49 = and i8 %48, 1
  store i8 %49, ptr %46, align 1, !tbaa !28
  %50 = getelementptr inbounds i8, ptr %0, i64 29
  %51 = lshr i32 %4, 17
  %52 = trunc i32 %51 to i8
  %53 = and i8 %52, 1
  store i8 %53, ptr %50, align 1, !tbaa !29
  %54 = getelementptr inbounds i8, ptr %0, i64 30
  %55 = lshr i32 %4, 15
  %56 = trunc i32 %55 to i8
  %57 = and i8 %56, 1
  store i8 %57, ptr %54, align 2, !tbaa !30
  %58 = getelementptr inbounds i8, ptr %0, i64 31
  %59 = lshr i32 %4, 14
  %60 = trunc i32 %59 to i8
  %61 = and i8 %60, 1
  store i8 %61, ptr %58, align 1, !tbaa !31
  %62 = getelementptr inbounds i8, ptr %0, i64 32
  %63 = lshr i32 %4, 16
  %64 = trunc i32 %63 to i8
  %65 = and i8 %64, 1
  store i8 %65, ptr %62, align 8, !tbaa !32
  %66 = load i32, ptr %1, align 4, !tbaa !33
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds i8, ptr %1, i64 4
  %69 = load i32, ptr %68, align 4, !tbaa !34
  %70 = sext i32 %69 to i64
  %71 = shl nsw i64 %70, 18
  %72 = or i64 %71, %67
  %73 = getelementptr inbounds i8, ptr %0, i64 80
  store i64 %72, ptr %73, align 8, !tbaa !35
  %74 = getelementptr inbounds i8, ptr %1, i64 8
  %75 = load i32, ptr %74, align 4, !tbaa !36
  %76 = getelementptr inbounds i8, ptr %0, i64 96
  store i32 %75, ptr %76, align 8, !tbaa !37
  %77 = getelementptr inbounds i8, ptr %1, i64 16
  %78 = load i32, ptr %77, align 4, !tbaa !38
  %79 = getelementptr inbounds i8, ptr %0, i64 264
  %80 = trunc i32 %78 to i8
  %81 = lshr i8 %80, 2
  %82 = and i8 %81, 1
  store i8 %82, ptr %79, align 8, !tbaa !39
  %83 = getelementptr inbounds i8, ptr %0, i64 225
  %84 = lshr i8 %80, 3
  %85 = and i8 %84, 1
  store i8 %85, ptr %83, align 1, !tbaa !40
  %86 = getelementptr inbounds i8, ptr %0, i64 223
  %87 = and i8 %80, 1
  store i8 %87, ptr %86, align 1, !tbaa !41
  %88 = getelementptr inbounds i8, ptr %0, i64 224
  %89 = lshr i8 %80, 1
  %90 = and i8 %89, 1
  store i8 %90, ptr %88, align 8, !tbaa !42
  %91 = trunc i32 %4 to i1
  br i1 %91, label %106, label %92

92:                                               ; preds = %31
  %93 = trunc i8 %9 to i1
  br i1 %93, label %106, label %94

94:                                               ; preds = %92
  %95 = trunc i8 %12 to i1
  br i1 %95, label %106, label %96

96:                                               ; preds = %94
  %97 = trunc i8 %24 to i1
  br i1 %97, label %106, label %98

98:                                               ; preds = %96
  %99 = trunc nuw i8 %32 to i1
  br i1 %99, label %106, label %100

100:                                              ; preds = %98
  %101 = trunc i32 %43 to i1
  br i1 %101, label %106, label %102

102:                                              ; preds = %100
  %103 = trunc i32 %47 to i1
  br i1 %103, label %106, label %104

104:                                              ; preds = %102
  %105 = trunc i32 %35 to i1
  %spec.select = select i1 %105, i8 1, i8 %41
  br label %106

106:                                              ; preds = %104, %102, %100, %98, %96, %94, %92, %31
  %107 = phi i8 [ 1, %102 ], [ 1, %100 ], [ 1, %98 ], [ 1, %96 ], [ 1, %94 ], [ 1, %92 ], [ 1, %31 ], [ %spec.select, %104 ]
  %108 = getelementptr inbounds i8, ptr %0, i64 28
  store i8 %107, ptr %108, align 4, !tbaa !43
  %109 = getelementptr inbounds i8, ptr %0, i64 372
  store i8 0, ptr %109, align 4, !tbaa !44
  ret void
}

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 12}
!6 = !{!"Panel6", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 16}
!11 = !{!"PDP6", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !12, i64 16, !12, i64 17, !12, i64 18, !12, i64 19, !12, i64 20, !12, i64 21, !12, i64 22, !12, i64 23, !12, i64 24, !12, i64 25, !12, i64 26, !12, i64 27, !12, i64 28, !12, i64 29, !12, i64 30, !12, i64 31, !12, i64 32, !12, i64 33, !12, i64 34, !12, i64 35, !12, i64 36, !12, i64 37, !12, i64 38, !12, i64 39, !13, i64 40, !13, i64 48, !8, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !13, i64 112, !8, i64 120, !12, i64 121, !12, i64 122, !12, i64 123, !12, i64 124, !12, i64 125, !12, i64 126, !12, i64 127, !12, i64 128, !12, i64 129, !12, i64 130, !12, i64 131, !12, i64 132, !12, i64 133, !12, i64 134, !12, i64 135, !12, i64 136, !12, i64 137, !12, i64 138, !12, i64 139, !12, i64 140, !12, i64 141, !12, i64 142, !12, i64 143, !12, i64 144, !12, i64 145, !12, i64 146, !12, i64 147, !12, i64 148, !12, i64 149, !12, i64 150, !12, i64 151, !12, i64 152, !12, i64 153, !12, i64 154, !12, i64 155, !12, i64 156, !12, i64 157, !12, i64 158, !12, i64 159, !12, i64 160, !12, i64 161, !12, i64 162, !12, i64 163, !12, i64 164, !12, i64 165, !12, i64 166, !12, i64 167, !12, i64 168, !12, i64 169, !12, i64 170, !12, i64 171, !12, i64 172, !12, i64 173, !12, i64 174, !12, i64 175, !12, i64 176, !12, i64 177, !12, i64 178, !12, i64 179, !8, i64 180, !8, i64 181, !8, i64 182, !8, i64 183, !12, i64 184, !12, i64 185, !12, i64 186, !12, i64 187, !12, i64 188, !7, i64 192, !7, i64 196, !7, i64 200, !12, i64 204, !12, i64 205, !12, i64 206, !12, i64 207, !12, i64 208, !12, i64 209, !12, i64 210, !12, i64 211, !12, i64 212, !12, i64 213, !12, i64 214, !12, i64 215, !8, i64 216, !12, i64 217, !12, i64 218, !12, i64 219, !12, i64 220, !12, i64 221, !12, i64 222, !12, i64 223, !12, i64 224, !12, i64 225, !12, i64 226, !12, i64 227, !12, i64 228, !12, i64 229, !8, i64 230, !7, i64 232, !7, i64 236, !13, i64 240, !13, i64 248, !13, i64 256, !12, i64 264, !12, i64 265, !12, i64 266, !8, i64 267, !13, i64 272, !12, i64 280, !12, i64 281, !12, i64 282, !7, i64 284, !14, i64 288, !13, i64 304, !8, i64 312, !12, i64 313, !12, i64 314, !12, i64 315, !8, i64 316, !12, i64 317, !12, i64 318, !8, i64 319, !7, i64 320, !7, i64 324, !14, i64 328, !7, i64 340, !13, i64 344, !13, i64 352, !14, i64 360, !12, i64 372, !13, i64 376, !13, i64 384, !13, i64 392, !13, i64 400, !13, i64 408, !12, i64 416, !13, i64 424}
!12 = !{!"_Bool", !8, i64 0}
!13 = !{!"long long", !8, i64 0}
!14 = !{!"FD", !7, i64 0, !7, i64 4, !7, i64 8}
!15 = !{!11, !12, i64 17}
!16 = !{!11, !12, i64 21}
!17 = !{!11, !12, i64 19}
!18 = !{!11, !12, i64 20}
!19 = !{!11, !12, i64 18}
!20 = !{!11, !12, i64 26}
!21 = !{!11, !12, i64 33}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!11, !12, i64 27}
!25 = !{!11, !12, i64 24}
!26 = !{!11, !12, i64 25}
!27 = !{!11, !12, i64 22}
!28 = !{!11, !12, i64 23}
!29 = !{!11, !12, i64 29}
!30 = !{!11, !12, i64 30}
!31 = !{!11, !12, i64 31}
!32 = !{!11, !12, i64 32}
!33 = !{!6, !7, i64 0}
!34 = !{!6, !7, i64 4}
!35 = !{!11, !13, i64 80}
!36 = !{!6, !7, i64 8}
!37 = !{!11, !7, i64 96}
!38 = !{!6, !7, i64 16}
!39 = !{!11, !12, i64 264}
!40 = !{!11, !12, i64 225}
!41 = !{!11, !12, i64 223}
!42 = !{!11, !12, i64 224}
!43 = !{!11, !12, i64 28}
!44 = !{!11, !12, i64 372}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass