; LLVM IR from facebook/redex :: libresource/ResourceTypes.ll (ZNK7android15ResTable_config18isLocaleBetterThanERKS0_PS1_)

; 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.android::ResTable_config" = type { i32, %union.anon, %union.anon.0, %union.anon.2, %union.anon.4, %union.anon.6, %union.anon.8, %union.anon.10, %union.anon.12, [4 x i8], [8 x i8], %union.anon.14, i8, [8 x i8] }
%union.anon = type { i32 }
%union.anon.0 = type { i32 }
%union.anon.2 = type { i32 }
%union.anon.4 = type { i32 }
%union.anon.6 = type { i32 }
%union.anon.8 = type { i32 }
%union.anon.10 = type { i32 }
%union.anon.12 = type { i32 }
%union.anon.14 = type { i32 }
%struct.anon.1 = type { [2 x i8], [2 x i8] }

@_ZN7androidL8kEnglishE = external hidden constant [2 x i8], align 1
@_ZN7androidL13kUnitedStatesE = external hidden constant [2 x i8], align 1

; 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
define dso_local noundef zeroext i1 @_ZNK7android15ResTable_config18isLocaleBetterThanERKS0_PS1_(ptr noundef nonnull align 4 dereferenceable(64) %0, ptr noundef nonnull align 4 dereferenceable(64) %1, ptr noundef %2) #1 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %14 = load ptr, ptr %5, align 8
  %15 = load ptr, ptr %7, align 8, !tbaa !5
  %16 = getelementptr inbounds %"struct.android::ResTable_config", ptr %15, i32 0, i32 2
  %17 = load i32, ptr %16, align 4, !tbaa !9
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %19, label %20

19:                                               ; preds = %3
  store i1 false, ptr %4, align 1
  br label %228

20:                                               ; preds = %3
  %21 = getelementptr inbounds %"struct.android::ResTable_config", ptr %14, i32 0, i32 2
  %22 = load i32, ptr %21, align 4, !tbaa !9
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %30

24:                                               ; preds = %20
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.android::ResTable_config", ptr %25, i32 0, i32 2
  %27 = load i32, ptr %26, align 4, !tbaa !9
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %30

29:                                               ; preds = %24
  store i1 false, ptr %4, align 1
  br label %228

30:                                               ; preds = %24, %20
  %31 = getelementptr inbounds %"struct.android::ResTable_config", ptr %14, i32 0, i32 2
  %32 = getelementptr inbounds %struct.anon.1, ptr %31, i32 0, i32 0
  %33 = getelementptr inbounds [2 x i8], ptr %32, i64 0, i64 0
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %"struct.android::ResTable_config", ptr %34, i32 0, i32 2
  %36 = getelementptr inbounds %struct.anon.1, ptr %35, i32 0, i32 0
  %37 = getelementptr inbounds [2 x i8], ptr %36, i64 0, i64 0
  %38 = call noundef zeroext i1 @_ZN7android18langsAreEquivalentEPKcS1_(ptr noundef %33, ptr noundef %37)
  br i1 %38, label %123, label %39

39:                                               ; preds = %30
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.android::ResTable_config", ptr %40, i32 0, i32 2
  %42 = getelementptr inbounds %struct.anon.1, ptr %41, i32 0, i32 0
  %43 = getelementptr inbounds [2 x i8], ptr %42, i64 0, i64 0
  %44 = call noundef zeroext i1 @_ZN7android12areIdenticalEPKcS1_(ptr noundef %43, ptr noundef @_ZN7androidL8kEnglishE)
  br i1 %44, label %45, label %116

45:                                               ; preds = %39
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.android::ResTable_config", ptr %46, i32 0, i32 2
  %48 = getelementptr inbounds %struct.anon.1, ptr %47, i32 0, i32 1
  %49 = getelementptr inbounds [2 x i8], ptr %48, i64 0, i64 0
  %50 = call noundef zeroext i1 @_ZN7android12areIdenticalEPKcS1_(ptr noundef %49, ptr noundef @_ZN7androidL13kUnitedStatesE)
  br i1 %50, label %51, label %89

51:                                               ; preds = %45
  %52 = getelementptr inbounds %"struct.android::ResTable_config", ptr %14, i32 0, i32 2
  %53 = getelementptr inbounds %struct.anon.1, ptr %52, i32 0, i32 0
  %54 = getelementptr inbounds [2 x i8], ptr %53, i64 0, i64 0
  %55 = load i8, ptr %54, align 4, !tbaa !9
  %56 = sext i8 %55 to i32
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %72

58:                                               ; preds = %51
  %59 = getelementptr inbounds %"struct.android::ResTable_config", ptr %14, i32 0, i32 2
  %60 = getelementptr inbounds %struct.anon.1, ptr %59, i32 0, i32 1
  %61 = getelementptr inbounds [2 x i8], ptr %60, i64 0, i64 0
  %62 = load i8, ptr %61, align 2, !tbaa !9
  %63 = sext i8 %62 to i32
  %64 = icmp eq i32 %63, 0
  br i1 %64, label %70, label %65

65:                                               ; preds = %58
  %66 = getelementptr inbounds %"struct.android::ResTable_config", ptr %14, i32 0, i32 2
  %67 = getelementptr inbounds %struct.anon.1, ptr %66, i32 0, i32 1
  %68 = getelementptr inbounds [2 x i8], ptr %67, i64 0, i64 0
  %69 = call noundef zeroext i1 @_ZN7android12areIdenticalEPKcS1_(ptr noundef %68, ptr noundef @_ZN7androidL13kUnitedStatesE)
  br label %70

70:                                               ; preds = %65, %58
  %71 = phi i1 [ true, %58 ], [ %69, %65 ]
  store i1 %71, ptr %4, align 1
  br label %228

72:                                               ; preds = %51
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.android::ResTable_config", ptr %73, i32 0, i32 2
  %75 = getelementptr inbounds %struct.anon.1, ptr %74, i32 0, i32 1
  %76 = getelementptr inbounds [2 x i8], ptr %75, i64 0, i64 0
  %77 = load i8, ptr %76, align 2, !tbaa !9
  %78 = sext i8 %77 to i32
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %86, label %80

80:                                               ; preds = %72
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.android::ResTable_config", ptr %81, i32 0, i32 2
  %83 = getelementptr inbounds %struct.anon.1, ptr %82, i32 0, i32 1
  %84 = getelementptr inbounds [2 x i8], ptr %83, i64 0, i64 0
  %85 = call noundef zeroext i1 @_ZN7android12areIdenticalEPKcS1_(ptr noundef %84, ptr noundef @_ZN7androidL13kUnitedStatesE)
  br label %86

86:                                               ; preds = %80, %72
  %87 = phi i1 [ true, %72 ], [ %85, %80 ]
  %88 = xor i1 %87, true
  store i1 %88, ptr %4, align 1
  br label %228

89:                                               ; preds = %45
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.android::ResTable_config", ptr %90, i32 0, i32 2
  %92 = getelementptr inbounds %struct.anon.1, ptr %91, i32 0, i32 1
  %93 = getelementptr inbounds [2 x i8], ptr %92, i64 0, i64 0
  %94 = call noundef zeroext i1 @_ZN7android28localeDataIsCloseToUsEnglishEPKc(ptr noundef %93)
  br i1 %94, label %95, label %114

95:                                               ; preds = %89
  %96 = getelementptr inbounds %"struct.android::ResTable_config", ptr %14, i32 0, i32 2
  %97 = getelementptr inbounds %struct.anon.1, ptr %96, i32 0, i32 0
  %98 = getelementptr inbounds [2 x i8], ptr %97, i64 0, i64 0
  %99 = load i8, ptr %98, align 4, !tbaa !9
  %100 = sext i8 %99 to i32
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %107

102:                                              ; preds = %95
  %103 = getelementptr inbounds %"struct.android::ResTable_config", ptr %14, i32 0, i32 2
  %104 = getelementptr inbounds %struct.anon.1, ptr %103, i32 0, i32 1
  %105 = getelementptr inbounds [2 x i8], ptr %104, i64 0, i64 0
  %106 = call noundef zeroext i1 @_ZN7android28localeDataIsCloseToUsEnglishEPKc(ptr noundef %105)
  store i1 %106, ptr %4, align 1
  br label %228

107:                                              ; preds = %95
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.android::ResTable_config", ptr %108, i32 0, i32 2
  %110 = getelementptr inbounds %struct.anon.1, ptr %109, i32 0, i32 1
  %111 = getelementptr inbounds [2 x i8], ptr %110, i64 0, i64 0
  %112 = call noundef zeroext i1 @_ZN7android28localeDataIsCloseToUsEnglishEPKc(ptr noundef %111)
  %113 = xor i1 %112, true
  store i1 %113, ptr %4, align 1
  br label %228

114:                                              ; preds = %89
  br label %115

115:                                              ; preds = %114
  br label %116

116:                                              ; preds = %115, %39
  %117 = getelementptr inbounds %"struct.android::ResTable_config", ptr %14, i32 0, i32 2
  %118 = getelementptr inbounds %struct.anon.1, ptr %117, i32 0, i32 0
  %119 = getelementptr inbounds [2 x i8], ptr %118, i64 0, i64 0
  %120 = load i8, ptr %119, align 4, !tbaa !9
  %121 = sext i8 %120 to i32
  %122 = icmp ne i32 %121, 0
  store i1 %122, ptr %4, align 1
  br label %228

123:                                              ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %124 = getelementptr inbounds %"struct.android::ResTable_config", ptr %14, i32 0, i32 2
  %125 = getelementptr inbounds %struct.anon.1, ptr %124, i32 0, i32 1
  %126 = getelementptr inbounds [2 x i8], ptr %125, i64 0, i64 0
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.android::ResTable_config", ptr %127, i32 0, i32 2
  %129 = getelementptr inbounds %struct.anon.1, ptr %128, i32 0, i32 1
  %130 = getelementptr inbounds [2 x i8], ptr %129, i64 0, i64 0
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  %132 = getelementptr inbounds %"struct.android::ResTable_config", ptr %131, i32 0, i32 2
  %133 = getelementptr inbounds %struct.anon.1, ptr %132, i32 0, i32 0
  %134 = getelementptr inbounds [2 x i8], ptr %133, i64 0, i64 0
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = getelementptr inbounds %"struct.android::ResTable_config", ptr %135, i32 0, i32 9
  %137 = getelementptr inbounds [4 x i8], ptr %136, i64 0, i64 0
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.android::ResTable_config", ptr %138, i32 0, i32 2
  %140 = getelementptr inbounds %struct.anon.1, ptr %139, i32 0, i32 1
  %141 = getelementptr inbounds [2 x i8], ptr %140, i64 0, i64 0
  %142 = call noundef i32 @_ZN7android24localeDataCompareRegionsEPKcS1_S1_S1_S1_(ptr noundef %126, ptr noundef %130, ptr noundef %134, ptr noundef %137, ptr noundef %141)
  store i32 %142, ptr %8, align 4, !tbaa !10
  %143 = load i32, ptr %8, align 4, !tbaa !10
  %144 = icmp ne i32 %143, 0
  br i1 %144, label %145, label %148

145:                                              ; preds = %123
  %146 = load i32, ptr %8, align 4, !tbaa !10
  %147 = icmp sgt i32 %146, 0
  store i1 %147, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %227

148:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  %149 = getelementptr inbounds %"struct.android::ResTable_config", ptr %14, i32 0, i32 10
  %150 = getelementptr inbounds [8 x i8], ptr %149, i64 0, i64 0
  %151 = load ptr, ptr %7, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.android::ResTable_config", ptr %151, i32 0, i32 10
  %153 = getelementptr inbounds [8 x i8], ptr %152, i64 0, i64 0
  %154 = call i32 @strncmp(ptr noundef %150, ptr noundef %153, i64 noundef 8) #7
  %155 = icmp eq i32 %154, 0
  %156 = zext i1 %155 to i8
  store i8 %156, ptr %10, align 1, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = getelementptr inbounds %"struct.android::ResTable_config", ptr %157, i32 0, i32 10
  %159 = getelementptr inbounds [8 x i8], ptr %158, i64 0, i64 0
  %160 = load ptr, ptr %7, align 8, !tbaa !5
  %161 = getelementptr inbounds %"struct.android::ResTable_config", ptr %160, i32 0, i32 10
  %162 = getelementptr inbounds [8 x i8], ptr %161, i64 0, i64 0
  %163 = call i32 @strncmp(ptr noundef %159, ptr noundef %162, i64 noundef 8) #7
  %164 = icmp eq i32 %163, 0
  %165 = zext i1 %164 to i8
  store i8 %165, ptr %11, align 1, !tbaa !12
  %166 = load i8, ptr %10, align 1, !tbaa !12, !range !14, !noundef !15
  %167 = trunc i8 %166 to i1
  %168 = zext i1 %167 to i32
  %169 = load i8, ptr %11, align 1, !tbaa !12, !range !14, !noundef !15
  %170 = trunc i8 %169 to i1
  %171 = zext i1 %170 to i32
  %172 = icmp ne i32 %168, %171
  br i1 %172, label %173, label %176

173:                                              ; preds = %148
  %174 = load i8, ptr %10, align 1, !tbaa !12, !range !14, !noundef !15
  %175 = trunc i8 %174 to i1
  store i1 %175, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %226

176:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  %177 = getelementptr inbounds %"struct.android::ResTable_config", ptr %14, i32 0, i32 13
  %178 = getelementptr inbounds [8 x i8], ptr %177, i64 0, i64 0
  %179 = load ptr, ptr %7, align 8, !tbaa !5
  %180 = getelementptr inbounds %"struct.android::ResTable_config", ptr %179, i32 0, i32 13
  %181 = getelementptr inbounds [8 x i8], ptr %180, i64 0, i64 0
  %182 = call i32 @strncmp(ptr noundef %178, ptr noundef %181, i64 noundef 8) #7
  %183 = icmp eq i32 %182, 0
  %184 = zext i1 %183 to i8
  store i8 %184, ptr %12, align 1, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = getelementptr inbounds %"struct.android::ResTable_config", ptr %185, i32 0, i32 13
  %187 = getelementptr inbounds [8 x i8], ptr %186, i64 0, i64 0
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  %189 = getelementptr inbounds %"struct.android::ResTable_config", ptr %188, i32 0, i32 13
  %190 = getelementptr inbounds [8 x i8], ptr %189, i64 0, i64 0
  %191 = call i32 @strncmp(ptr noundef %187, ptr noundef %190, i64 noundef 8) #7
  %192 = icmp eq i32 %191, 0
  %193 = zext i1 %192 to i8
  store i8 %193, ptr %13, align 1, !tbaa !12
  %194 = load i8, ptr %12, align 1, !tbaa !12, !range !14, !noundef !15
  %195 = trunc i8 %194 to i1
  %196 = zext i1 %195 to i32
  %197 = load i8, ptr %13, align 1, !tbaa !12, !range !14, !noundef !15
  %198 = trunc i8 %197 to i1
  %199 = zext i1 %198 to i32
  %200 = icmp ne i32 %196, %199
  br i1 %200, label %201, label %204

201:                                              ; preds = %176
  %202 = load i8, ptr %12, align 1, !tbaa !12, !range !14, !noundef !15
  %203 = trunc i8 %202 to i1
  store i1 %203, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %225

204:                                              ; preds = %176
  %205 = getelementptr inbounds %"struct.android::ResTable_config", ptr %14, i32 0, i32 2
  %206 = getelementptr inbounds %struct.anon.1, ptr %205, i32 0, i32 0
  %207 = getelementptr inbounds [2 x i8], ptr %206, i64 0, i64 0
  %208 = load ptr, ptr %7, align 8, !tbaa !5
  %209 = getelementptr inbounds %"struct.android::ResTable_config", ptr %208, i32 0, i32 2
  %210 = getelementptr inbounds %struct.anon.1, ptr %209, i32 0, i32 0
  %211 = getelementptr inbounds [2 x i8], ptr %210, i64 0, i64 0
  %212 = call noundef zeroext i1 @_ZN7android12areIdenticalEPKcS1_(ptr noundef %207, ptr noundef %211)
  br i1 %212, label %213, label %224

213:                                              ; preds = %204
  %214 = load ptr, ptr %6, align 8, !tbaa !5
  %215 = getelementptr inbounds %"struct.android::ResTable_config", ptr %214, i32 0, i32 2
  %216 = getelementptr inbounds %struct.anon.1, ptr %215, i32 0, i32 0
  %217 = getelementptr inbounds [2 x i8], ptr %216, i64 0, i64 0
  %218 = load ptr, ptr %7, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.android::ResTable_config", ptr %218, i32 0, i32 2
  %220 = getelementptr inbounds %struct.anon.1, ptr %219, i32 0, i32 0
  %221 = getelementptr inbounds [2 x i8], ptr %220, i64 0, i64 0
  %222 = call noundef zeroext i1 @_ZN7android12areIdenticalEPKcS1_(ptr noundef %217, ptr noundef %221)
  br i1 %222, label %224, label %223

223:                                              ; preds = %213
  store i1 true, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %225

224:                                              ; preds = %213, %204
  store i1 false, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %225

225:                                              ; preds = %224, %223, %201
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  br label %226

226:                                              ; preds = %225, %173
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  br label %227

227:                                              ; preds = %226, %145
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %228

228:                                              ; preds = %227, %116, %107, %102, %86, %70, %29, %19
  %229 = load i1, ptr %4, align 1
  ret i1 %229
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7android18langsAreEquivalentEPKcS1_(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7android12areIdenticalEPKcS1_(ptr noundef, ptr noundef) #3

declare noundef zeroext i1 @_ZN7android28localeDataIsCloseToUsEnglishEPKc(ptr noundef) #4

declare noundef i32 @_ZN7android24localeDataCompareRegionsEPKcS1_S1_S1_S1_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 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 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 = { 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 #4 = { "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 = { nounwind willreturn memory(read) "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(read) }

!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 = !{}


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

@_ZN7androidL8kEnglishE = external hidden constant [2 x i8], align 1
@_ZN7androidL13kUnitedStatesE = external hidden constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7android15ResTable_config18isLocaleBetterThanERKS0_PS1_(ptr noundef nonnull align 4 dereferenceable(64) %0, ptr noundef nonnull align 4 dereferenceable(64) %1, ptr noundef %2) local_unnamed_addr #0 align 2 {
  %4 = getelementptr inbounds i8, ptr %2, i64 8
  %5 = load i32, ptr %4, align 4, !tbaa !5
  %6 = icmp eq i32 %5, 0
  br i1 %6, label %79, label %7

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = icmp eq i32 %9, 0
  %11 = getelementptr inbounds i8, ptr %1, i64 8
  %12 = load i32, ptr %11, align 4
  %13 = icmp eq i32 %12, 0
  %or.cond = select i1 %10, i1 %13, i1 false
  br i1 %or.cond, label %79, label %14

14:                                               ; preds = %7
  %15 = tail call noundef zeroext i1 @_ZN7android18langsAreEquivalentEPKcS1_(ptr noundef nonnull %8, ptr noundef nonnull %11)
  br i1 %15, label %50, label %16

16:                                               ; preds = %14
  %17 = tail call noundef zeroext i1 @_ZN7android12areIdenticalEPKcS1_(ptr noundef nonnull %4, ptr noundef nonnull @_ZN7androidL8kEnglishE)
  br i1 %17, label %18, label %47

18:                                               ; preds = %16
  %19 = getelementptr inbounds i8, ptr %2, i64 10
  %20 = tail call noundef zeroext i1 @_ZN7android12areIdenticalEPKcS1_(ptr noundef nonnull %19, ptr noundef nonnull @_ZN7androidL13kUnitedStatesE)
  br i1 %20, label %21, label %36

21:                                               ; preds = %18
  %22 = load i8, ptr %8, align 4, !tbaa !5
  %.not32 = icmp eq i8 %22, 0
  br i1 %.not32, label %29, label %23

23:                                               ; preds = %21
  %24 = getelementptr inbounds i8, ptr %0, i64 10
  %25 = load i8, ptr %24, align 2, !tbaa !5
  %26 = icmp eq i8 %25, 0
  br i1 %26, label %79, label %27

27:                                               ; preds = %23
  %28 = tail call noundef zeroext i1 @_ZN7android12areIdenticalEPKcS1_(ptr noundef nonnull %24, ptr noundef nonnull @_ZN7androidL13kUnitedStatesE)
  br label %79

29:                                               ; preds = %21
  %30 = getelementptr inbounds i8, ptr %1, i64 10
  %31 = load i8, ptr %30, align 2, !tbaa !5
  %32 = icmp eq i8 %31, 0
  br i1 %32, label %79, label %33

33:                                               ; preds = %29
  %34 = tail call noundef zeroext i1 @_ZN7android12areIdenticalEPKcS1_(ptr noundef nonnull %30, ptr noundef nonnull @_ZN7androidL13kUnitedStatesE)
  %35 = xor i1 %34, true
  br label %79

36:                                               ; preds = %18
  %37 = tail call noundef zeroext i1 @_ZN7android28localeDataIsCloseToUsEnglishEPKc(ptr noundef nonnull %19)
  br i1 %37, label %38, label %47

38:                                               ; preds = %36
  %39 = load i8, ptr %8, align 4, !tbaa !5
  %.not = icmp eq i8 %39, 0
  br i1 %.not, label %43, label %40

40:                                               ; preds = %38
  %41 = getelementptr inbounds i8, ptr %0, i64 10
  %42 = tail call noundef zeroext i1 @_ZN7android28localeDataIsCloseToUsEnglishEPKc(ptr noundef nonnull %41)
  br label %79

43:                                               ; preds = %38
  %44 = getelementptr inbounds i8, ptr %1, i64 10
  %45 = tail call noundef zeroext i1 @_ZN7android28localeDataIsCloseToUsEnglishEPKc(ptr noundef nonnull %44)
  %46 = xor i1 %45, true
  br label %79

47:                                               ; preds = %36, %16
  %48 = load i8, ptr %8, align 4, !tbaa !5
  %49 = icmp ne i8 %48, 0
  br label %79

50:                                               ; preds = %14
  %51 = getelementptr inbounds i8, ptr %0, i64 10
  %52 = getelementptr inbounds i8, ptr %1, i64 10
  %53 = getelementptr inbounds i8, ptr %2, i64 36
  %54 = getelementptr inbounds i8, ptr %2, i64 10
  %55 = tail call noundef i32 @_ZN7android24localeDataCompareRegionsEPKcS1_S1_S1_S1_(ptr noundef nonnull %51, ptr noundef nonnull %52, ptr noundef nonnull %4, ptr noundef nonnull %53, ptr noundef nonnull %54)
  %.not33 = icmp eq i32 %55, 0
  br i1 %.not33, label %58, label %56

56:                                               ; preds = %50
  %57 = icmp sgt i32 %55, 0
  br label %79

58:                                               ; preds = %50
  %59 = getelementptr inbounds i8, ptr %0, i64 40
  %60 = getelementptr inbounds i8, ptr %2, i64 40
  %61 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %59, ptr noundef nonnull dereferenceable(1) %60, i64 noundef 8) #5
  %62 = icmp eq i32 %61, 0
  %63 = getelementptr inbounds i8, ptr %1, i64 40
  %64 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %63, ptr noundef nonnull dereferenceable(1) %60, i64 noundef 8) #5
  %65 = icmp ne i32 %64, 0
  %.not34 = xor i1 %62, %65
  br i1 %.not34, label %66, label %79

66:                                               ; preds = %58
  %67 = getelementptr inbounds i8, ptr %0, i64 53
  %68 = getelementptr inbounds i8, ptr %2, i64 53
  %69 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %67, ptr noundef nonnull dereferenceable(1) %68, i64 noundef 8) #5
  %70 = icmp eq i32 %69, 0
  %71 = getelementptr inbounds i8, ptr %1, i64 53
  %72 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %71, ptr noundef nonnull dereferenceable(1) %68, i64 noundef 8) #5
  %73 = icmp ne i32 %72, 0
  %.not35 = xor i1 %70, %73
  br i1 %.not35, label %74, label %79

74:                                               ; preds = %66
  %75 = tail call noundef zeroext i1 @_ZN7android12areIdenticalEPKcS1_(ptr noundef nonnull %8, ptr noundef nonnull %4)
  br i1 %75, label %76, label %78

76:                                               ; preds = %74
  %77 = tail call noundef zeroext i1 @_ZN7android12areIdenticalEPKcS1_(ptr noundef nonnull %11, ptr noundef nonnull %4)
  br i1 %77, label %78, label %79

78:                                               ; preds = %76, %74
  br label %79

79:                                               ; preds = %56, %78, %66, %76, %58, %29, %33, %23, %27, %7, %3, %47, %43, %40
  %.3 = phi i1 [ %42, %40 ], [ %46, %43 ], [ %49, %47 ], [ false, %3 ], [ false, %7 ], [ true, %23 ], [ %28, %27 ], [ false, %29 ], [ %35, %33 ], [ %57, %56 ], [ %62, %58 ], [ false, %78 ], [ %70, %66 ], [ true, %76 ]
  ret i1 %.3
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7android18langsAreEquivalentEPKcS1_(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7android12areIdenticalEPKcS1_(ptr noundef, ptr noundef) local_unnamed_addr #2

declare noundef zeroext i1 @_ZN7android28localeDataIsCloseToUsEnglishEPKc(ptr noundef) local_unnamed_addr #3

declare noundef i32 @_ZN7android24localeDataCompareRegionsEPKcS1_S1_S1_S1_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strncmp(ptr nocapture noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #4

attributes #0 = { 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 #1 = { 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 #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 = { "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 nounwind willreturn memory(argmem: read) "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 = { nounwind willreturn memory(read) }

!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"}


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