; LLVM IR from facebook/redex :: libresource/LocaleData.ll (ZN7android24localeDataCompareRegionsEPKcS1_S1_S1_S1_)

; 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.std::array" = type { [2 x i32] }

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN7android13findAncestorsEPjPljPKcPKjm(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN7android12findDistanceEjPKcPKjm(i32 noundef, ptr noundef, ptr noundef, i64 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7android24localeDataCompareRegionsEPKcS1_S1_S1_S1_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #1 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca [4 x i32], align 16
  %18 = alloca i64, align 8
  %19 = alloca %"struct.std::array", align 4
  %20 = alloca i64, align 8
  %21 = alloca i32, align 4
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i8, align 1
  %25 = alloca i8, align 1
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i64 0
  %28 = load i8, ptr %27, align 1, !tbaa !9
  %29 = sext i8 %28 to i32
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %30, i64 0
  %32 = load i8, ptr %31, align 1, !tbaa !9
  %33 = sext i8 %32 to i32
  %34 = icmp eq i32 %29, %33
  br i1 %34, label %35, label %46

35:                                               ; preds = %5
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %36, i64 1
  %38 = load i8, ptr %37, align 1, !tbaa !9
  %39 = sext i8 %38 to i32
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %40, i64 1
  %42 = load i8, ptr %41, align 1, !tbaa !9
  %43 = sext i8 %42 to i32
  %44 = icmp eq i32 %39, %43
  br i1 %44, label %45, label %46

45:                                               ; preds = %35
  store i32 0, ptr %6, align 4
  br label %154

46:                                               ; preds = %35, %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = call noundef i32 @_ZN7android10packLocaleEPKcS1_(ptr noundef %47, ptr noundef %48)
  store i32 %49, ptr %12, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = call noundef i32 @_ZN7android10packLocaleEPKcS1_(ptr noundef %50, ptr noundef %51)
  store i32 %52, ptr %13, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = call noundef i32 @_ZN7android10packLocaleEPKcS1_(ptr noundef %53, ptr noundef %54)
  store i32 %55, ptr %14, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #6
  %56 = load i32, ptr %12, align 4, !tbaa !10
  %57 = call noundef zeroext i1 @_ZN7android16isSpecialSpanishEj(i32 noundef %56)
  %58 = zext i1 %57 to i8
  store i8 %58, ptr %15, align 1, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  %59 = load i32, ptr %13, align 4, !tbaa !10
  %60 = call noundef zeroext i1 @_ZN7android16isSpecialSpanishEj(i32 noundef %59)
  %61 = zext i1 %60 to i8
  store i8 %61, ptr %16, align 1, !tbaa !12
  %62 = load i8, ptr %15, align 1, !tbaa !12, !range !14, !noundef !15
  %63 = trunc i8 %62 to i1
  br i1 %63, label %64, label %71

64:                                               ; preds = %46
  %65 = load i8, ptr %16, align 1, !tbaa !12, !range !14, !noundef !15
  %66 = trunc i8 %65 to i1
  br i1 %66, label %71, label %67

67:                                               ; preds = %64
  %68 = load i32, ptr %13, align 4, !tbaa !10
  %69 = icmp ne i32 %68, 1702077476
  br i1 %69, label %70, label %71

70:                                               ; preds = %67
  store i32 1702077476, ptr %12, align 4, !tbaa !10
  br label %82

71:                                               ; preds = %67, %64, %46
  %72 = load i8, ptr %16, align 1, !tbaa !12, !range !14, !noundef !15
  %73 = trunc i8 %72 to i1
  br i1 %73, label %74, label %81

74:                                               ; preds = %71
  %75 = load i8, ptr %15, align 1, !tbaa !12, !range !14, !noundef !15
  %76 = trunc i8 %75 to i1
  br i1 %76, label %81, label %77

77:                                               ; preds = %74
  %78 = load i32, ptr %12, align 4, !tbaa !10
  %79 = icmp ne i32 %78, 1702077476
  br i1 %79, label %80, label %81

80:                                               ; preds = %77
  store i32 1702077476, ptr %13, align 4, !tbaa !10
  br label %81

81:                                               ; preds = %80, %77, %74, %71
  br label %82

82:                                               ; preds = %81, %70
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %83 = getelementptr inbounds %"struct.std::array", ptr %19, i32 0, i32 0
  %84 = load i32, ptr %12, align 4, !tbaa !10
  store i32 %84, ptr %83, align 4, !tbaa !10
  %85 = getelementptr inbounds i32, ptr %83, i64 1
  %86 = load i32, ptr %13, align 4, !tbaa !10
  store i32 %86, ptr %85, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %87 = getelementptr inbounds [4 x i32], ptr %17, i64 0, i64 0
  %88 = load i32, ptr %14, align 4, !tbaa !10
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = call noundef ptr @_ZNKSt5arrayIjLm2EE4dataEv(ptr noundef nonnull align 4 dereferenceable(8) %19) #6
  %91 = call noundef i64 @_ZNKSt5arrayIjLm2EE4sizeEv(ptr noundef nonnull align 4 dereferenceable(8) %19) #7
  %92 = call noundef i64 @_ZN7android13findAncestorsEPjPljPKcPKjm(ptr noundef %87, ptr noundef %18, i32 noundef %88, ptr noundef %89, ptr noundef %90, i64 noundef %91)
  store i64 %92, ptr %20, align 8, !tbaa !16
  %93 = load i64, ptr %18, align 8, !tbaa !16
  %94 = icmp eq i64 %93, 0
  br i1 %94, label %95, label %96

95:                                               ; preds = %82
  store i32 1, ptr %6, align 4
  store i32 1, ptr %21, align 4
  br label %153

96:                                               ; preds = %82
  %97 = load i64, ptr %18, align 8, !tbaa !16
  %98 = icmp eq i64 %97, 1
  br i1 %98, label %99, label %100

99:                                               ; preds = %96
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %21, align 4
  br label %153

100:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %101 = load i32, ptr %12, align 4, !tbaa !10
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  %103 = getelementptr inbounds [4 x i32], ptr %17, i64 0, i64 0
  %104 = load i64, ptr %20, align 8, !tbaa !16
  %105 = call noundef i64 @_ZN7android12findDistanceEjPKcPKjm(i32 noundef %101, ptr noundef %102, ptr noundef %103, i64 noundef %104)
  store i64 %105, ptr %22, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %106 = load i32, ptr %13, align 4, !tbaa !10
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  %108 = getelementptr inbounds [4 x i32], ptr %17, i64 0, i64 0
  %109 = load i64, ptr %20, align 8, !tbaa !16
  %110 = call noundef i64 @_ZN7android12findDistanceEjPKcPKjm(i32 noundef %106, ptr noundef %107, ptr noundef %108, i64 noundef %109)
  store i64 %110, ptr %23, align 8, !tbaa !16
  %111 = load i64, ptr %22, align 8, !tbaa !16
  %112 = load i64, ptr %23, align 8, !tbaa !16
  %113 = icmp ne i64 %111, %112
  br i1 %113, label %114, label %120

114:                                              ; preds = %100
  %115 = load i64, ptr %23, align 8, !tbaa !16
  %116 = trunc i64 %115 to i32
  %117 = load i64, ptr %22, align 8, !tbaa !16
  %118 = trunc i64 %117 to i32
  %119 = sub nsw i32 %116, %118
  store i32 %119, ptr %6, align 4
  store i32 1, ptr %21, align 4
  br label %152

120:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  %121 = load i32, ptr %12, align 4, !tbaa !10
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  %123 = call noundef zeroext i1 @_ZN7android16isRepresentativeEjPKc(i32 noundef %121, ptr noundef %122)
  %124 = zext i1 %123 to i8
  store i8 %124, ptr %24, align 1, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 1, ptr %25) #6
  %125 = load i32, ptr %13, align 4, !tbaa !10
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  %127 = call noundef zeroext i1 @_ZN7android16isRepresentativeEjPKc(i32 noundef %125, ptr noundef %126)
  %128 = zext i1 %127 to i8
  store i8 %128, ptr %25, align 1, !tbaa !12
  %129 = load i8, ptr %24, align 1, !tbaa !12, !range !14, !noundef !15
  %130 = trunc i8 %129 to i1
  %131 = zext i1 %130 to i32
  %132 = load i8, ptr %25, align 1, !tbaa !12, !range !14, !noundef !15
  %133 = trunc i8 %132 to i1
  %134 = zext i1 %133 to i32
  %135 = icmp ne i32 %131, %134
  br i1 %135, label %136, label %144

136:                                              ; preds = %120
  %137 = load i8, ptr %24, align 1, !tbaa !12, !range !14, !noundef !15
  %138 = trunc i8 %137 to i1
  %139 = zext i1 %138 to i32
  %140 = load i8, ptr %25, align 1, !tbaa !12, !range !14, !noundef !15
  %141 = trunc i8 %140 to i1
  %142 = zext i1 %141 to i32
  %143 = sub nsw i32 %139, %142
  store i32 %143, ptr %6, align 4
  store i32 1, ptr %21, align 4
  br label %151

144:                                              ; preds = %120
  %145 = load i32, ptr %13, align 4, !tbaa !10
  %146 = zext i32 %145 to i64
  %147 = load i32, ptr %12, align 4, !tbaa !10
  %148 = zext i32 %147 to i64
  %149 = sub nsw i64 %146, %148
  %150 = trunc i64 %149 to i32
  store i32 %150, ptr %6, align 4
  store i32 1, ptr %21, align 4
  br label %151

151:                                              ; preds = %144, %136
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  br label %152

152:                                              ; preds = %151, %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %153

153:                                              ; preds = %152, %99, %95
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %154

154:                                              ; preds = %153, %45
  %155 = load i32, ptr %6, align 4
  ret i32 %155
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7android10packLocaleEPKcS1_(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7android16isSpecialSpanishEj(i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt5arrayIjLm2EE4dataEv(ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef i64 @_ZNKSt5arrayIjLm2EE4sizeEv(ptr noundef nonnull align 4 dereferenceable(8)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7android16isRepresentativeEjPKc(i32 noundef, ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress 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 #3 = { mustprogress 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 #4 = { mustprogress nounwind willreturn memory(none) 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 #5 = { inlinehint mustprogress 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(none) }

!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++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !7, i64 0}


; 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"

%"struct.std::array" = type { [2 x i32] }

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN7android13findAncestorsEPjPljPKcPKjm(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN7android12findDistanceEjPKcPKjm(i32 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7android24localeDataCompareRegionsEPKcS1_S1_S1_S1_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #1 {
  %6 = alloca [4 x i32], align 16
  %7 = alloca i64, align 8
  %8 = alloca %"struct.std::array", align 4
  %9 = load i8, ptr %0, align 1, !tbaa !5
  %10 = load i8, ptr %1, align 1, !tbaa !5
  %11 = icmp eq i8 %9, %10
  br i1 %11, label %12, label %18

12:                                               ; preds = %5
  %13 = getelementptr inbounds i8, ptr %0, i64 1
  %14 = load i8, ptr %13, align 1, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %1, i64 1
  %16 = load i8, ptr %15, align 1, !tbaa !5
  %17 = icmp eq i8 %14, %16
  br i1 %17, label %49, label %18

18:                                               ; preds = %12, %5
  %19 = tail call noundef i32 @_ZN7android10packLocaleEPKcS1_(ptr noundef %2, ptr noundef nonnull %0)
  %20 = tail call noundef i32 @_ZN7android10packLocaleEPKcS1_(ptr noundef %2, ptr noundef nonnull %1)
  %21 = tail call noundef i32 @_ZN7android10packLocaleEPKcS1_(ptr noundef %2, ptr noundef %4)
  %22 = tail call noundef zeroext i1 @_ZN7android16isSpecialSpanishEj(i32 noundef %19)
  %23 = tail call noundef zeroext i1 @_ZN7android16isSpecialSpanishEj(i32 noundef %20)
  %.not57 = xor i1 %22, true
  %24 = icmp eq i32 %20, 1702077476
  %25 = or i1 %24, %.not57
  %26 = icmp eq i32 %19, 1702077476
  %or.cond4.not = or i1 %26, %22
  %spec.select = select i1 %or.cond4.not, i32 %20, i32 1702077476
  %.047 = select i1 %23, i32 %spec.select, i32 %20
  %27 = or i1 %23, %25
  %.046 = select i1 %27, i32 %19, i32 1702077476
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  store i32 %.046, ptr %8, align 4, !tbaa !8
  %28 = getelementptr inbounds i8, ptr %8, i64 4
  store i32 %.047, ptr %28, align 4, !tbaa !8
  %29 = call noundef ptr @_ZNKSt5arrayIjLm2EE4dataEv(ptr noundef nonnull align 4 dereferenceable(8) %8) #6
  %30 = call noundef i64 @_ZNKSt5arrayIjLm2EE4sizeEv(ptr noundef nonnull align 4 dereferenceable(8) %8) #7
  %31 = call noundef i64 @_ZN7android13findAncestorsEPjPljPKcPKjm(ptr noundef nonnull %6, ptr noundef nonnull %7, i32 noundef %21, ptr noundef %3, ptr noundef %29, i64 noundef %30)
  %32 = load i64, ptr %7, align 8, !tbaa !10
  switch i64 %32, label %34 [
    i64 0, label %48
    i64 1, label %33
  ]

33:                                               ; preds = %18
  br label %48

34:                                               ; preds = %18
  %35 = call noundef i64 @_ZN7android12findDistanceEjPKcPKjm(i32 noundef %.046, ptr noundef %3, ptr noundef nonnull %6, i64 noundef %31)
  %36 = call noundef i64 @_ZN7android12findDistanceEjPKcPKjm(i32 noundef %.047, ptr noundef %3, ptr noundef nonnull %6, i64 noundef %31)
  %.not = icmp eq i64 %35, %36
  br i1 %.not, label %41, label %37

37:                                               ; preds = %34
  %38 = trunc i64 %36 to i32
  %39 = trunc i64 %35 to i32
  %40 = sub nsw i32 %38, %39
  br label %48

41:                                               ; preds = %34
  %42 = call noundef zeroext i1 @_ZN7android16isRepresentativeEjPKc(i32 noundef %.046, ptr noundef %3)
  %43 = call noundef zeroext i1 @_ZN7android16isRepresentativeEjPKc(i32 noundef %.047, ptr noundef %3)
  %44 = xor i1 %42, %43
  %.neg = sext i1 %43 to i32
  %45 = zext i1 %42 to i32
  %46 = add nsw i32 %.neg, %45
  %47 = sub i32 %.047, %.046
  %.0 = select i1 %44, i32 %46, i32 %47
  br label %48

48:                                               ; preds = %37, %41, %18, %33
  %.2 = phi i32 [ -1, %33 ], [ 1, %18 ], [ %40, %37 ], [ %.0, %41 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  br label %49

49:                                               ; preds = %12, %48
  %.3 = phi i32 [ %.2, %48 ], [ 0, %12 ]
  ret i32 %.3
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7android10packLocaleEPKcS1_(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7android16isSpecialSpanishEj(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt5arrayIjLm2EE4dataEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef i64 @_ZNKSt5arrayIjLm2EE4sizeEv(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7android16isRepresentativeEjPKc(i32 noundef, ptr noundef) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 #2 = { inlinehint mustprogress 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 #3 = { mustprogress 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 #4 = { mustprogress nofree nosync nounwind willreturn memory(none) 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 #5 = { inlinehint mustprogress 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(none) }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !6, i64 0}


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