; LLVM IR from facebook/redex :: libresource (Visitor)

; 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.arsc::ResChunkPullParser" = type { i32, ptr, i64, ptr }
%"struct.android::ResTable_overlayable_header" = type { %"struct.android::ResChunk_header", [256 x i16], [256 x i16] }
%"struct.android::ResChunk_header" = type { i16, i16, i32 }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [80 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: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4arsc11VisitorBase15get_file_offsetEPKv(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4arsc20ResourceTableVisitor5validEPKN7android27ResTable_overlayable_headerEPKNS1_34ResTable_overlayable_policy_headerE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZN4arscL8get_dataEPN7android15ResChunk_headerE(ptr noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN4arscL12get_data_lenEPN7android15ResChunk_headerE(ptr noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4arsc18ResChunkPullParserC2EPvm(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i64 noundef) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4arsc18ResChunkPullParser4NextEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4arsc20ResourceTableVisitor10policy_idsEPN7android34ResTable_overlayable_policy_headerE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4arsc20ResourceTableVisitor17visit_overlayableEPN7android16ResTable_packageEPNS1_27ResTable_overlayable_headerE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #3 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.arsc::ResChunkPullParser", align 8
  %9 = alloca i16, align 2
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  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
  %13 = load ptr, ptr %5, align 8
  br label %14

14:                                               ; preds = %3
  br label %15

15:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #5
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = getelementptr inbounds %"struct.android::ResTable_overlayable_header", ptr %16, i32 0, i32 0
  %18 = call noundef ptr @_ZN4arscL8get_dataEPN7android15ResChunk_headerE(ptr noundef %17)
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.android::ResTable_overlayable_header", ptr %19, i32 0, i32 0
  %21 = call noundef i32 @_ZN4arscL12get_data_lenEPN7android15ResChunk_headerE(ptr noundef %20)
  %22 = zext i32 %21 to i64
  call void @_ZN4arsc18ResChunkPullParserC2EPvm(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef %18, i64 noundef %22)
  br label %23

23:                                               ; preds = %83, %15
  %24 = call noundef i32 @_ZN4arsc18ResChunkPullParser4NextEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  %25 = call noundef zeroext i1 @_ZN4arsc18ResChunkPullParser11IsGoodEventENS0_5EventE(i32 noundef %24)
  br i1 %25, label %26, label %84

26:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 2, ptr %9) #5
  %27 = call noundef ptr @_ZN4arsc18ResChunkPullParser5chunkEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  %28 = getelementptr inbounds %"struct.android::ResChunk_header", ptr %27, i32 0, i32 0
  %29 = load i16, ptr %28, align 4, !tbaa !9
  store i16 %29, ptr %9, align 2, !tbaa !13
  %30 = load i16, ptr %9, align 2, !tbaa !13
  %31 = zext i16 %30 to i32
  %32 = icmp eq i32 %31, 517
  br i1 %32, label %33, label %66

33:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %34 = call noundef ptr @_ZN4arsc18ResChunkPullParser5chunkEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  %35 = call noundef ptr @_ZN4arscL13convert_chunkIN7android34ResTable_overlayable_policy_headerELm16EEEPT_PNS1_15ResChunk_headerE(ptr noundef %34)
  store ptr %35, ptr %10, align 8, !tbaa !5
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = call noundef zeroext i1 @_ZN4arsc20ResourceTableVisitor5validEPKN7android27ResTable_overlayable_headerEPKNS1_34ResTable_overlayable_policy_headerE(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef %36, ptr noundef %37)
  br i1 %38, label %49, label %39

39:                                               ; preds = %33
  br label %40

40:                                               ; preds = %39
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef @.str) #5
  %43 = load ptr, ptr @stderr, align 8, !tbaa !5
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef @.str.23) #5
  %45 = load ptr, ptr @stderr, align 8, !tbaa !5
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef @.str.5) #5
  br label %47

47:                                               ; preds = %40
  br label %48

48:                                               ; preds = %47
  store i1 false, ptr %4, align 1
  store i32 1, ptr %11, align 4
  br label %63

49:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = call noundef ptr @_ZN4arsc20ResourceTableVisitor10policy_idsEPN7android34ResTable_overlayable_policy_headerE(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef %50)
  store ptr %51, ptr %12, align 8, !tbaa !5
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = load ptr, ptr %13, align 8, !tbaa !14
  %57 = getelementptr inbounds ptr, ptr %56, i64 14
  %58 = load ptr, ptr %57, align 8
  %59 = call noundef zeroext i1 %58(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef %52, ptr noundef %53, ptr noundef %54, ptr noundef %55)
  br i1 %59, label %61, label %60

60:                                               ; preds = %49
  store i1 false, ptr %4, align 1
  store i32 1, ptr %11, align 4
  br label %62

61:                                               ; preds = %49
  store i32 0, ptr %11, align 4
  br label %62

62:                                               ; preds = %61, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %63

63:                                               ; preds = %62, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  %64 = load i32, ptr %11, align 4
  switch i32 %64, label %81 [
    i32 0, label %65
  ]

65:                                               ; preds = %63
  br label %80

66:                                               ; preds = %26
  br label %67

67:                                               ; preds = %66
  %68 = load ptr, ptr @stderr, align 8, !tbaa !5
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef @.str) #5
  %70 = load ptr, ptr @stderr, align 8, !tbaa !5
  %71 = load i16, ptr %9, align 2, !tbaa !13
  %72 = zext i16 %71 to i32
  %73 = call noundef ptr @_ZN4arsc18ResChunkPullParser5chunkEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
  %74 = call noundef i64 @_ZN4arsc11VisitorBase15get_file_offsetEPKv(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef %73)
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef @.str.24, i32 noundef %72, i64 noundef %74) #5
  %76 = load ptr, ptr @stderr, align 8, !tbaa !5
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef @.str.5) #5
  br label %78

78:                                               ; preds = %67
  br label %79

79:                                               ; preds = %78
  br label %80

80:                                               ; preds = %79, %65
  store i32 0, ptr %11, align 4
  br label %81

81:                                               ; preds = %80, %63
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #5
  %82 = load i32, ptr %11, align 4
  switch i32 %82, label %85 [
    i32 0, label %83
  ]

83:                                               ; preds = %81
  br label %23, !llvm.loop !16

84:                                               ; preds = %23
  store i1 true, ptr %4, align 1
  store i32 1, ptr %11, align 4
  br label %85

85:                                               ; preds = %84, %81
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  %86 = load i1, ptr %4, align 1
  ret i1 %86
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZN4arscL13convert_chunkIN7android34ResTable_overlayable_policy_headerELm16EEEPT_PNS1_15ResChunk_headerE(ptr noundef) #4

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 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 = { 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 #5 = { 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, !11, i64 0}
!10 = !{!"_ZTSN7android15ResChunk_headerE", !11, i64 0, !11, i64 2, !12, i64 4}
!11 = !{!"short", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"vtable pointer", !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"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.arsc::ResChunkPullParser" = type { i32, ptr, i64, ptr }

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [80 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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4arsc11VisitorBase15get_file_offsetEPKv(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4arsc20ResourceTableVisitor5validEPKN7android27ResTable_overlayable_headerEPKNS1_34ResTable_overlayable_policy_headerE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZN4arscL8get_dataEPN7android15ResChunk_headerE(ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN4arscL12get_data_lenEPN7android15ResChunk_headerE(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4arsc18ResChunkPullParserC2EPvm(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i64 noundef) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4arsc18ResChunkPullParser4NextEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4arsc20ResourceTableVisitor10policy_idsEPN7android34ResTable_overlayable_policy_headerE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4arsc20ResourceTableVisitor17visit_overlayableEPN7android16ResTable_packageEPNS1_27ResTable_overlayable_headerE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #3 align 2 {
  %4 = alloca %"class.arsc::ResChunkPullParser", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  %5 = tail call noundef ptr @_ZN4arscL8get_dataEPN7android15ResChunk_headerE(ptr noundef %2)
  %6 = tail call noundef i32 @_ZN4arscL12get_data_lenEPN7android15ResChunk_headerE(ptr noundef %2)
  %7 = zext i32 %6 to i64
  call void @_ZN4arsc18ResChunkPullParserC2EPvm(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef %5, i64 noundef %7)
  %8 = call noundef i32 @_ZN4arsc18ResChunkPullParser4NextEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
  %9 = call noundef zeroext i1 @_ZN4arsc18ResChunkPullParser11IsGoodEventENS0_5EventE(i32 noundef %8)
  br i1 %9, label %.lr.ph, label %.thread

.lr.ph:                                           ; preds = %3, %.critedge
  %10 = call noundef ptr @_ZN4arsc18ResChunkPullParser5chunkEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
  %11 = load i16, ptr %10, align 4, !tbaa !5
  %12 = icmp eq i16 %11, 517
  br i1 %12, label %13, label %30

13:                                               ; preds = %.lr.ph
  %14 = call noundef ptr @_ZN4arsc18ResChunkPullParser5chunkEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
  %15 = call noundef ptr @_ZN4arscL13convert_chunkIN7android34ResTable_overlayable_policy_headerELm16EEEPT_PNS1_15ResChunk_headerE(ptr noundef %14)
  %16 = call noundef zeroext i1 @_ZN4arsc20ResourceTableVisitor5validEPKN7android27ResTable_overlayable_headerEPKNS1_34ResTable_overlayable_policy_headerE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %2, ptr noundef %15)
  br i1 %16, label %24, label %17

17:                                               ; preds = %13
  %18 = load ptr, ptr @stderr, align 8, !tbaa !11
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str) #6
  %20 = load ptr, ptr @stderr, align 8, !tbaa !11
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.23) #6
  %22 = load ptr, ptr @stderr, align 8, !tbaa !11
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str.5) #6
  br label %.thread

24:                                               ; preds = %13
  %25 = call noundef ptr @_ZN4arsc20ResourceTableVisitor10policy_idsEPN7android34ResTable_overlayable_policy_headerE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %15)
  %26 = load ptr, ptr %0, align 8, !tbaa !13
  %27 = getelementptr inbounds i8, ptr %26, i64 112
  %28 = load ptr, ptr %27, align 8
  %29 = call noundef zeroext i1 %28(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, ptr noundef %2, ptr noundef %15, ptr noundef %25)
  br i1 %29, label %.critedge, label %.thread, !llvm.loop !15

30:                                               ; preds = %.lr.ph
  %31 = zext i16 %11 to i32
  %32 = load ptr, ptr @stderr, align 8, !tbaa !11
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str) #6
  %34 = load ptr, ptr @stderr, align 8, !tbaa !11
  %35 = call noundef ptr @_ZN4arsc18ResChunkPullParser5chunkEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
  %36 = call noundef i64 @_ZN4arsc11VisitorBase15get_file_offsetEPKv(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %35)
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.24, i32 noundef %31, i64 noundef %36) #6
  %38 = load ptr, ptr @stderr, align 8, !tbaa !11
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.5) #6
  br label %.critedge

.critedge:                                        ; preds = %24, %30
  %40 = call noundef i32 @_ZN4arsc18ResChunkPullParser4NextEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
  %41 = call noundef zeroext i1 @_ZN4arsc18ResChunkPullParser11IsGoodEventENS0_5EventE(i32 noundef %40)
  br i1 %41, label %.lr.ph, label %.thread

.thread:                                          ; preds = %.critedge, %24, %3, %17
  %.5 = phi i1 [ false, %17 ], [ true, %3 ], [ true, %.critedge ], [ false, %24 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  ret i1 %.5
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZN4arscL13convert_chunkIN7android34ResTable_overlayable_policy_headerELm16EEEPT_PNS1_15ResChunk_headerE(ptr noundef) local_unnamed_addr #4

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 = { 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 = { 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 #5 = { nounwind }
attributes #6 = { cold 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, !7, i64 0}
!6 = !{!"_ZTSN7android15ResChunk_headerE", !7, i64 0, !7, i64 2, !10, i64 4}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !9, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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