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

; 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] }

@.str.34 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [7 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: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK7android7String84sizeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7android15ResTable_config14unpackLanguageEPc(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7android15ResTable_config12unpackRegionEPc(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7android15ResTable_config15appendDirLocaleERNS_7String8E(ptr noundef nonnull align 4 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(8) %1) #3 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca [4 x i8], align 1
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca [4 x i8], align 1
  %10 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8
  %12 = getelementptr inbounds %"struct.android::ResTable_config", ptr %11, i32 0, i32 2
  %13 = getelementptr inbounds %struct.anon.1, ptr %12, i32 0, i32 0
  %14 = getelementptr inbounds [2 x i8], ptr %13, i64 0, i64 0
  %15 = load i8, ptr %14, align 4, !tbaa !9
  %16 = icmp ne i8 %15, 0
  br i1 %16, label %18, label %17

17:                                               ; preds = %2
  br label %146

18:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #6
  %19 = getelementptr inbounds %"struct.android::ResTable_config", ptr %11, i32 0, i32 9
  %20 = getelementptr inbounds [4 x i8], ptr %19, i64 0, i64 0
  %21 = load i8, ptr %20, align 4, !tbaa !9
  %22 = sext i8 %21 to i32
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %29

24:                                               ; preds = %18
  %25 = getelementptr inbounds %"struct.android::ResTable_config", ptr %11, i32 0, i32 12
  %26 = load i8, ptr %25, align 4, !tbaa !10, !range !14, !noundef !15
  %27 = trunc i8 %26 to i1
  %28 = xor i1 %27, true
  br label %29

29:                                               ; preds = %24, %18
  %30 = phi i1 [ false, %18 ], [ %28, %24 ]
  %31 = zext i1 %30 to i8
  store i8 %31, ptr %5, align 1, !tbaa !16
  %32 = load i8, ptr %5, align 1, !tbaa !16, !range !14, !noundef !15
  %33 = trunc i8 %32 to i1
  br i1 %33, label %73, label %34

34:                                               ; preds = %29
  %35 = getelementptr inbounds %"struct.android::ResTable_config", ptr %11, i32 0, i32 10
  %36 = getelementptr inbounds [8 x i8], ptr %35, i64 0, i64 0
  %37 = load i8, ptr %36, align 4, !tbaa !9
  %38 = icmp ne i8 %37, 0
  br i1 %38, label %73, label %39

39:                                               ; preds = %34
  %40 = getelementptr inbounds %"struct.android::ResTable_config", ptr %11, i32 0, i32 13
  %41 = getelementptr inbounds [8 x i8], ptr %40, i64 0, i64 0
  %42 = load i8, ptr %41, align 1, !tbaa !9
  %43 = icmp ne i8 %42, 0
  br i1 %43, label %73, label %44

44:                                               ; preds = %39
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = call noundef i64 @_ZNK7android7String84sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %45)
  %47 = icmp ugt i64 %46, 0
  br i1 %47, label %48, label %51

48:                                               ; preds = %44
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = call noundef i32 @_ZN7android7String86appendEPKc(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef @.str.34)
  br label %51

51:                                               ; preds = %48, %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %52 = getelementptr inbounds [4 x i8], ptr %6, i64 0, i64 0
  %53 = call noundef i64 @_ZNK7android15ResTable_config14unpackLanguageEPc(ptr noundef nonnull align 4 dereferenceable(64) %11, ptr noundef %52)
  store i64 %53, ptr %7, align 8, !tbaa !17
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds [4 x i8], ptr %6, i64 0, i64 0
  %56 = load i64, ptr %7, align 8, !tbaa !17
  %57 = call noundef i32 @_ZN7android7String86appendEPKcm(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef %55, i64 noundef %56)
  %58 = getelementptr inbounds %"struct.android::ResTable_config", ptr %11, i32 0, i32 2
  %59 = getelementptr inbounds %struct.anon.1, ptr %58, i32 0, i32 1
  %60 = getelementptr inbounds [2 x i8], ptr %59, i64 0, i64 0
  %61 = load i8, ptr %60, align 2, !tbaa !9
  %62 = icmp ne i8 %61, 0
  br i1 %62, label %63, label %72

63:                                               ; preds = %51
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = call noundef i32 @_ZN7android7String86appendEPKc(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef @.str.35)
  %66 = getelementptr inbounds [4 x i8], ptr %6, i64 0, i64 0
  %67 = call noundef i64 @_ZNK7android15ResTable_config12unpackRegionEPc(ptr noundef nonnull align 4 dereferenceable(64) %11, ptr noundef %66)
  store i64 %67, ptr %7, align 8, !tbaa !17
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds [4 x i8], ptr %6, i64 0, i64 0
  %70 = load i64, ptr %7, align 8, !tbaa !17
  %71 = call noundef i32 @_ZN7android7String86appendEPKcm(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef %69, i64 noundef %70)
  br label %72

72:                                               ; preds = %63, %51
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %144

73:                                               ; preds = %39, %34, %29
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = call noundef i64 @_ZNK7android7String84sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %74)
  %76 = icmp ugt i64 %75, 0
  br i1 %76, label %77, label %80

77:                                               ; preds = %73
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = call noundef i32 @_ZN7android7String86appendEPKc(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef @.str.34)
  br label %80

80:                                               ; preds = %77, %73
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = call noundef i32 @_ZN7android7String86appendEPKc(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef @.str.36)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %83 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
  %84 = call noundef i64 @_ZNK7android15ResTable_config14unpackLanguageEPc(ptr noundef nonnull align 4 dereferenceable(64) %11, ptr noundef %83)
  store i64 %84, ptr %10, align 8, !tbaa !17
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
  %87 = load i64, ptr %10, align 8, !tbaa !17
  %88 = call noundef i32 @_ZN7android7String86appendEPKcm(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef %86, i64 noundef %87)
  %89 = load i8, ptr %5, align 1, !tbaa !16, !range !14, !noundef !15
  %90 = trunc i8 %89 to i1
  br i1 %90, label %91, label %98

91:                                               ; preds = %80
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = call noundef i32 @_ZN7android7String86appendEPKc(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef @.str.37)
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.android::ResTable_config", ptr %11, i32 0, i32 9
  %96 = getelementptr inbounds [4 x i8], ptr %95, i64 0, i64 0
  %97 = call noundef i32 @_ZN7android7String86appendEPKcm(ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef %96, i64 noundef 4)
  br label %98

98:                                               ; preds = %91, %80
  %99 = getelementptr inbounds %"struct.android::ResTable_config", ptr %11, i32 0, i32 2
  %100 = getelementptr inbounds %struct.anon.1, ptr %99, i32 0, i32 1
  %101 = getelementptr inbounds [2 x i8], ptr %100, i64 0, i64 0
  %102 = load i8, ptr %101, align 2, !tbaa !9
  %103 = icmp ne i8 %102, 0
  br i1 %103, label %104, label %113

104:                                              ; preds = %98
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = call noundef i32 @_ZN7android7String86appendEPKc(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef @.str.37)
  %107 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
  %108 = call noundef i64 @_ZNK7android15ResTable_config12unpackRegionEPc(ptr noundef nonnull align 4 dereferenceable(64) %11, ptr noundef %107)
  store i64 %108, ptr %10, align 8, !tbaa !17
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds [4 x i8], ptr %9, i64 0, i64 0
  %111 = load i64, ptr %10, align 8, !tbaa !17
  %112 = call noundef i32 @_ZN7android7String86appendEPKcm(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef %110, i64 noundef %111)
  br label %113

113:                                              ; preds = %104, %98
  %114 = getelementptr inbounds %"struct.android::ResTable_config", ptr %11, i32 0, i32 10
  %115 = getelementptr inbounds [8 x i8], ptr %114, i64 0, i64 0
  %116 = load i8, ptr %115, align 4, !tbaa !9
  %117 = icmp ne i8 %116, 0
  br i1 %117, label %118, label %128

118:                                              ; preds = %113
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = call noundef i32 @_ZN7android7String86appendEPKc(ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef @.str.37)
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.android::ResTable_config", ptr %11, i32 0, i32 10
  %123 = getelementptr inbounds [8 x i8], ptr %122, i64 0, i64 0
  %124 = getelementptr inbounds %"struct.android::ResTable_config", ptr %11, i32 0, i32 10
  %125 = getelementptr inbounds [8 x i8], ptr %124, i64 0, i64 0
  %126 = call i64 @strnlen(ptr noundef %125, i64 noundef 8) #7
  %127 = call noundef i32 @_ZN7android7String86appendEPKcm(ptr noundef nonnull align 8 dereferenceable(8) %121, ptr noundef %123, i64 noundef %126)
  br label %128

128:                                              ; preds = %118, %113
  %129 = getelementptr inbounds %"struct.android::ResTable_config", ptr %11, i32 0, i32 13
  %130 = getelementptr inbounds [8 x i8], ptr %129, i64 0, i64 0
  %131 = load i8, ptr %130, align 1, !tbaa !9
  %132 = icmp ne i8 %131, 0
  br i1 %132, label %133, label %143

133:                                              ; preds = %128
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = call noundef i32 @_ZN7android7String86appendEPKc(ptr noundef nonnull align 8 dereferenceable(8) %134, ptr noundef @.str.38)
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.android::ResTable_config", ptr %11, i32 0, i32 13
  %138 = getelementptr inbounds [8 x i8], ptr %137, i64 0, i64 0
  %139 = getelementptr inbounds %"struct.android::ResTable_config", ptr %11, i32 0, i32 13
  %140 = getelementptr inbounds [8 x i8], ptr %139, i64 0, i64 0
  %141 = call i64 @strnlen(ptr noundef %140, i64 noundef 8) #7
  %142 = call noundef i32 @_ZN7android7String86appendEPKcm(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef %138, i64 noundef %141)
  br label %143

143:                                              ; preds = %133, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  store i32 0, ptr %8, align 4
  br label %144

144:                                              ; preds = %143, %72
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
  %145 = load i32, ptr %8, align 4
  switch i32 %145, label %147 [
    i32 0, label %146
    i32 1, label %146
  ]

146:                                              ; preds = %144, %144, %17
  ret void

147:                                              ; preds = %144
  unreachable
}

declare noundef i32 @_ZN7android7String86appendEPKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

declare noundef i32 @_ZN7android7String86appendEPKcm(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) #4

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strnlen(ptr noundef, i64 noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 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, !13, i64 52}
!11 = !{!"_ZTSN7android15ResTable_configE", !12, 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 48, !13, i64 52, !7, i64 53}
!12 = !{!"int", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!13, !13, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"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"

@.str.34 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [7 x i8], align 1

; 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: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK7android7String84sizeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7android15ResTable_config14unpackLanguageEPc(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7android15ResTable_config12unpackRegionEPc(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7android15ResTable_config15appendDirLocaleERNS_7String8E(ptr noundef nonnull align 4 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(8) %1) local_unnamed_addr #3 align 2 {
  %3 = alloca [4 x i8], align 1
  %4 = alloca [4 x i8], align 1
  %5 = getelementptr inbounds i8, ptr %0, i64 8
  %6 = load i8, ptr %5, align 4, !tbaa !5
  %.not = icmp eq i8 %6, 0
  br i1 %.not, label %61, label %7

7:                                                ; preds = %2
  %8 = getelementptr inbounds i8, ptr %0, i64 36
  %9 = load i8, ptr %8, align 4, !tbaa !5
  %.not23 = icmp eq i8 %9, 0
  %10 = getelementptr inbounds i8, ptr %0, i64 52
  %11 = load i8, ptr %10, align 4, !range !8
  %12 = trunc nuw i8 %11 to i1
  %.not36 = select i1 %.not23, i1 true, i1 %12
  %13 = getelementptr inbounds i8, ptr %0, i64 40
  %14 = load i8, ptr %13, align 4
  %.not24 = icmp eq i8 %14, 0
  %or.cond = select i1 %.not36, i1 %.not24, i1 false
  %15 = getelementptr inbounds i8, ptr %0, i64 53
  %16 = load i8, ptr %15, align 1
  %.not25 = icmp eq i8 %16, 0
  %or.cond35 = select i1 %or.cond, i1 %.not25, i1 false
  %17 = tail call noundef i64 @_ZNK7android7String84sizeEv(ptr noundef nonnull align 8 dereferenceable(8) %1)
  %.not26 = icmp eq i64 %17, 0
  br i1 %or.cond35, label %18, label %31

18:                                               ; preds = %7
  br i1 %.not26, label %21, label %19

19:                                               ; preds = %18
  %20 = tail call noundef i32 @_ZN7android7String86appendEPKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.34)
  br label %21

21:                                               ; preds = %19, %18
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  %22 = call noundef i64 @_ZNK7android15ResTable_config14unpackLanguageEPc(ptr noundef nonnull align 4 dereferenceable(64) %0, ptr noundef nonnull %3)
  %23 = call noundef i32 @_ZN7android7String86appendEPKcm(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %3, i64 noundef %22)
  %24 = getelementptr inbounds i8, ptr %0, i64 10
  %25 = load i8, ptr %24, align 2, !tbaa !5
  %.not27 = icmp eq i8 %25, 0
  br i1 %.not27, label %30, label %26

26:                                               ; preds = %21
  %27 = call noundef i32 @_ZN7android7String86appendEPKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.35)
  %28 = call noundef i64 @_ZNK7android15ResTable_config12unpackRegionEPc(ptr noundef nonnull align 4 dereferenceable(64) %0, ptr noundef nonnull %3)
  %29 = call noundef i32 @_ZN7android7String86appendEPKcm(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %3, i64 noundef %28)
  br label %30

30:                                               ; preds = %26, %21
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  br label %61

31:                                               ; preds = %7
  br i1 %.not26, label %34, label %32

32:                                               ; preds = %31
  %33 = tail call noundef i32 @_ZN7android7String86appendEPKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.34)
  br label %34

34:                                               ; preds = %32, %31
  %35 = tail call noundef i32 @_ZN7android7String86appendEPKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.36)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %36 = call noundef i64 @_ZNK7android15ResTable_config14unpackLanguageEPc(ptr noundef nonnull align 4 dereferenceable(64) %0, ptr noundef nonnull %4)
  %37 = call noundef i32 @_ZN7android7String86appendEPKcm(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %4, i64 noundef %36)
  br i1 %.not36, label %41, label %38

38:                                               ; preds = %34
  %39 = call noundef i32 @_ZN7android7String86appendEPKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.37)
  %40 = call noundef i32 @_ZN7android7String86appendEPKcm(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %8, i64 noundef 4)
  br label %41

41:                                               ; preds = %38, %34
  %42 = getelementptr inbounds i8, ptr %0, i64 10
  %43 = load i8, ptr %42, align 2, !tbaa !5
  %.not29 = icmp eq i8 %43, 0
  br i1 %.not29, label %48, label %44

44:                                               ; preds = %41
  %45 = call noundef i32 @_ZN7android7String86appendEPKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.37)
  %46 = call noundef i64 @_ZNK7android15ResTable_config12unpackRegionEPc(ptr noundef nonnull align 4 dereferenceable(64) %0, ptr noundef nonnull %4)
  %47 = call noundef i32 @_ZN7android7String86appendEPKcm(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %4, i64 noundef %46)
  br label %48

48:                                               ; preds = %44, %41
  %49 = load i8, ptr %13, align 4, !tbaa !5
  %.not30 = icmp eq i8 %49, 0
  br i1 %.not30, label %54, label %50

50:                                               ; preds = %48
  %51 = call noundef i32 @_ZN7android7String86appendEPKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.37)
  %52 = call i64 @strnlen(ptr noundef nonnull dereferenceable(1) %13, i64 noundef 8) #7
  %53 = call noundef i32 @_ZN7android7String86appendEPKcm(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %13, i64 noundef %52)
  br label %54

54:                                               ; preds = %50, %48
  %55 = load i8, ptr %15, align 1, !tbaa !5
  %.not31 = icmp eq i8 %55, 0
  br i1 %.not31, label %60, label %56

56:                                               ; preds = %54
  %57 = call noundef i32 @_ZN7android7String86appendEPKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str.38)
  %58 = call i64 @strnlen(ptr noundef nonnull dereferenceable(1) %15, i64 noundef 8) #7
  %59 = call noundef i32 @_ZN7android7String86appendEPKcm(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull %15, i64 noundef %58)
  br label %60

60:                                               ; preds = %56, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  br label %61

61:                                               ; preds = %30, %60, %2
  ret void
}

declare noundef i32 @_ZN7android7String86appendEPKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

declare noundef i32 @_ZN7android7String86appendEPKcm(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) local_unnamed_addr #4

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 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 = { 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 #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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{i8 0, i8 2}


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