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

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

%"class.android::String16" = type { ptr }
%"struct.android::ResTable_lib_header" = type { %"struct.android::ResChunk_header", i32 }
%"struct.android::ResChunk_header" = type { i16, i16, i32 }
%"struct.android::ResTable_lib_entry" = type { i32, [128 x i16] }
%"class.android::DynamicRefTable" = type <{ ptr, i8, [256 x i8], [7 x i8], %"class.android::KeyedVector", i8, [7 x i8] }>
%"class.android::KeyedVector" = type { %"class.android::SortedVector" }
%"class.android::SortedVector" = type { %"class.android::SortedVectorImpl" }
%"class.android::SortedVectorImpl" = type { %"class.android::VectorImpl" }
%"class.android::VectorImpl" = type { ptr, ptr, i64, i32, i64 }

@stderr = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [22 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; 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: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: nounwind
declare void @_ZN7android8String16D1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7android15DynamicRefTable4loadEPKNS_19ResTable_lib_headerE(ptr noundef nonnull align 8 dereferenceable(313) %0, ptr noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca [128 x i16], align 16
  %13 = alloca %"class.android::String16", align 8
  %14 = alloca i8, align 1
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.android::ResTable_lib_header", ptr %18, i32 0, i32 1
  %20 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %20, ptr %6, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.android::ResTable_lib_header", ptr %21, i32 0, i32 0
  %23 = getelementptr inbounds %"struct.android::ResChunk_header", ptr %22, i32 0, i32 2
  %24 = load i32, ptr %23, align 4, !tbaa !15
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.android::ResTable_lib_header", ptr %25, i32 0, i32 0
  %27 = getelementptr inbounds %"struct.android::ResChunk_header", ptr %26, i32 0, i32 1
  %28 = load i16, ptr %27, align 2, !tbaa !16
  %29 = zext i16 %28 to i32
  %30 = sub i32 %24, %29
  store i32 %30, ptr %7, align 4, !tbaa !14
  %31 = load i32, ptr %6, align 4, !tbaa !14
  %32 = zext i32 %31 to i64
  %33 = load i32, ptr %7, align 4, !tbaa !14
  %34 = zext i32 %33 to i64
  %35 = udiv i64 %34, 260
  %36 = icmp ugt i64 %32, %35
  br i1 %36, label %37, label %49

37:                                               ; preds = %2
  br label %38

38:                                               ; preds = %37
  %39 = load ptr, ptr @stderr, align 8, !tbaa !5
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str.111) #6
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = load i32, ptr %7, align 4, !tbaa !14
  %43 = load i32, ptr %6, align 4, !tbaa !14
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef @.str.112, i32 noundef %42, i32 noundef %43, i32 noundef 260) #6
  %45 = load ptr, ptr @stderr, align 8, !tbaa !5
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef @.str.2) #6
  br label %47

47:                                               ; preds = %38
  br label %48

48:                                               ; preds = %47
  store i32 -2147483648, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %107

49:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.android::ResTable_lib_header", ptr %51, i32 0, i32 0
  %53 = getelementptr inbounds %"struct.android::ResChunk_header", ptr %52, i32 0, i32 1
  %54 = load i16, ptr %53, align 2, !tbaa !16
  %55 = zext i16 %54 to i32
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds i8, ptr %50, i64 %56
  store ptr %57, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !14
  br label %58

58:                                               ; preds = %96, %49
  %59 = load i32, ptr %10, align 4, !tbaa !14
  %60 = load i32, ptr %6, align 4, !tbaa !14
  %61 = icmp ult i32 %59, %60
  br i1 %61, label %63, label %62

62:                                               ; preds = %58
  store i32 4, ptr %8, align 4
  br label %103

63:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.android::ResTable_lib_entry", ptr %64, i32 0, i32 0
  %66 = load i32, ptr %65, align 4, !tbaa !17
  store i32 %66, ptr %11, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 256, ptr %12) #6
  %67 = getelementptr inbounds [128 x i16], ptr %12, i64 0, i64 0
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.android::ResTable_lib_entry", ptr %68, i32 0, i32 1
  %70 = getelementptr inbounds [128 x i16], ptr %69, i64 0, i64 0
  call void @_ZN7androidL13strcpy16_dtohEPDsPKtm(ptr noundef %67, ptr noundef %70, i64 noundef 128)
  %71 = load i32, ptr %11, align 4, !tbaa !14
  %72 = icmp uge i32 %71, 256
  br i1 %72, label %73, label %84

73:                                               ; preds = %63
  br label %74

74:                                               ; preds = %73
  %75 = load ptr, ptr @stderr, align 8, !tbaa !5
  %76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str.111) #6
  %77 = load ptr, ptr @stderr, align 8, !tbaa !5
  %78 = load i32, ptr %11, align 4, !tbaa !14
  %79 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef @.str.113, i32 noundef %78) #6
  %80 = load ptr, ptr @stderr, align 8, !tbaa !5
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str.2) #6
  br label %82

82:                                               ; preds = %74
  br label %83

83:                                               ; preds = %82
  store i32 -2147483648, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %93

84:                                               ; preds = %63
  %85 = getelementptr inbounds %"class.android::DynamicRefTable", ptr %17, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %86 = getelementptr inbounds [128 x i16], ptr %12, i64 0, i64 0
  call void @_ZN7android8String16C1EPKDs(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef %86)
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  %87 = load i32, ptr %11, align 4, !tbaa !14
  %88 = trunc i32 %87 to i8
  store i8 %88, ptr %14, align 1, !tbaa !19
  %89 = invoke noundef i64 @_ZN7android11KeyedVectorINS_8String16EhE15replaceValueForERKS1_RKh(ptr noundef nonnull align 8 dereferenceable(40) %85, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %90 unwind label %99

90:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @_ZN7android8String16D1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = getelementptr inbounds %"struct.android::ResTable_lib_entry", ptr %91, i64 1
  store ptr %92, ptr %9, align 8, !tbaa !5
  store i32 0, ptr %8, align 4
  br label %93

93:                                               ; preds = %90, %83
  call void @llvm.lifetime.end.p0(i64 256, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  %94 = load i32, ptr %8, align 4
  switch i32 %94, label %103 [
    i32 0, label %95
  ]

95:                                               ; preds = %93
  br label %96

96:                                               ; preds = %95
  %97 = load i32, ptr %10, align 4, !tbaa !14
  %98 = add i32 %97, 1
  store i32 %98, ptr %10, align 4, !tbaa !14
  br label %58, !llvm.loop !20

99:                                               ; preds = %84
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %15, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @_ZN7android8String16D1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %109

103:                                              ; preds = %93, %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  %104 = load i32, ptr %8, align 4
  switch i32 %104, label %106 [
    i32 4, label %105
  ]

105:                                              ; preds = %103
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %106

106:                                              ; preds = %105, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %107

107:                                              ; preds = %106, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  %108 = load i32, ptr %3, align 4
  ret i32 %108

109:                                              ; preds = %99
  %110 = load ptr, ptr %15, align 8
  %111 = load i32, ptr %16, align 4
  %112 = insertvalue { ptr, i32 } poison, ptr %110, 0
  %113 = insertvalue { ptr, i32 } %112, i32 %111, 1
  resume { ptr, i32 } %113
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7androidL13strcpy16_dtohEPDsPKtm(ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN7android11KeyedVectorINS_8String16EhE15replaceValueForERKS1_RKh(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) #4 align 2

declare void @_ZN7android8String16C1EPKDs(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind "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 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 = { 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 #5 = { "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 }

!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 = !{!10, !13, i64 8}
!10 = !{!"_ZTSN7android19ResTable_lib_headerE", !11, i64 0, !13, i64 8}
!11 = !{!"_ZTSN7android15ResChunk_headerE", !12, i64 0, !12, i64 2, !13, i64 4}
!12 = !{!"short", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!10, !13, i64 4}
!16 = !{!10, !12, i64 2}
!17 = !{!18, !13, i64 0}
!18 = !{!"_ZTSN7android18ResTable_lib_entryE", !13, i64 0, !7, i64 4}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


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

%"class.android::String16" = type { ptr }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [22 x i8], align 1

declare i32 @__gxx_personality_v0(...)

; 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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN7android8String16D1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7android15DynamicRefTable4loadEPKNS_19ResTable_lib_headerE(ptr noundef nonnull align 8 dereferenceable(313) %0, ptr noundef %1) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca [128 x i16], align 16
  %4 = alloca %"class.android::String16", align 8
  %5 = alloca i8, align 1
  %6 = getelementptr inbounds i8, ptr %1, i64 8
  %7 = load i32, ptr %6, align 4, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %1, i64 4
  %9 = load i32, ptr %8, align 4, !tbaa !12
  %10 = getelementptr inbounds i8, ptr %1, i64 2
  %11 = load i16, ptr %10, align 2, !tbaa !13
  %12 = zext i16 %11 to i32
  %13 = sub i32 %9, %12
  %14 = udiv i32 %13, 260
  %15 = icmp ugt i32 %7, %14
  br i1 %15, label %16, label %23

16:                                               ; preds = %2
  %17 = load ptr, ptr @stderr, align 8, !tbaa !14
  %18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str.111) #7
  %19 = load ptr, ptr @stderr, align 8, !tbaa !14
  %20 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str.112, i32 noundef %13, i32 noundef %7, i32 noundef 260) #7
  %21 = load ptr, ptr @stderr, align 8, !tbaa !14
  %22 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.2) #7
  br label %.loopexit

23:                                               ; preds = %2
  %.not34.not = icmp eq i32 %7, 0
  br i1 %.not34.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %23
  %24 = zext i16 %11 to i64
  %25 = getelementptr inbounds i8, ptr %1, i64 %24
  %26 = getelementptr inbounds i8, ptr %0, i64 272
  br label %27

27:                                               ; preds = %.lr.ph, %41
  %.02636 = phi ptr [ %25, %.lr.ph ], [ %42, %41 ]
  %.02835 = phi i32 [ 0, %.lr.ph ], [ %43, %41 ]
  %28 = load i32, ptr %.02636, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %3) #8
  %29 = getelementptr inbounds i8, ptr %.02636, i64 4
  call void @_ZN7androidL13strcpy16_dtohEPDsPKtm(ptr noundef nonnull %3, ptr noundef nonnull %29, i64 noundef 128)
  %30 = icmp ult i32 %28, 256
  br i1 %30, label %31, label %34

31:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  call void @_ZN7android8String16C1EPKDs(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull %3)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #8
  %32 = trunc nuw i32 %28 to i8
  store i8 %32, ptr %5, align 1, !tbaa !18
  %33 = invoke noundef i64 @_ZN7android11KeyedVectorINS_8String16EhE15replaceValueForERKS1_RKh(ptr noundef nonnull align 8 dereferenceable(40) %26, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %41 unwind label %44

34:                                               ; preds = %27
  %35 = load ptr, ptr @stderr, align 8, !tbaa !14
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef nonnull @.str.111) #7
  %37 = load ptr, ptr @stderr, align 8, !tbaa !14
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str.113, i32 noundef %28) #7
  %39 = load ptr, ptr @stderr, align 8, !tbaa !14
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str.2) #7
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #8
  br label %.loopexit

41:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  call void @_ZN7android8String16D1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  %42 = getelementptr inbounds i8, ptr %.02636, i64 260
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #8
  %43 = add nuw i32 %.02835, 1
  %exitcond.not = icmp eq i32 %43, %7
  br i1 %exitcond.not, label %.loopexit, label %27, !llvm.loop !19

44:                                               ; preds = %31
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  call void @_ZN7android8String16D1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %3) #8
  resume { ptr, i32 } %45

.loopexit:                                        ; preds = %41, %23, %34, %16
  %.4 = phi i32 [ -2147483648, %16 ], [ -2147483648, %34 ], [ 0, %23 ], [ 0, %41 ]
  ret i32 %.4
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7androidL13strcpy16_dtohEPDsPKtm(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN7android11KeyedVectorINS_8String16EhE15replaceValueForERKS1_RKh(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #5 align 2

declare void @_ZN7android8String16C1EPKDs(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree nounwind "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 = { nounwind "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 = { 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 #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 = { "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 #7 = { cold nounwind }
attributes #8 = { 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, !11, i64 8}
!6 = !{!"_ZTSN7android19ResTable_lib_headerE", !7, i64 0, !11, i64 8}
!7 = !{!"_ZTSN7android15ResChunk_headerE", !8, i64 0, !8, i64 2, !11, i64 4}
!8 = !{!"short", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!6, !11, i64 4}
!13 = !{!6, !8, i64 2}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !9, i64 0}
!16 = !{!17, !11, i64 0}
!17 = !{!"_ZTSN7android18ResTable_lib_entryE", !11, i64 0, !9, i64 4}
!18 = !{!9, !9, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass