; LLVM IR from facebook/redex :: libresource/Serialize.ll (ZN4arsc17ResPackageBuilderC2EPN7android16ResTable_packageE)

; 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::ResPackageBuilder" = type { %"struct.std::pair.148", %"struct.std::pair.148", %"class.std::map.150", %"class.std::vector.156", %"class.std::vector.161", i32, i32, i32, i32, [128 x i16] }
%"struct.std::pair.148" = type { %"class.std::shared_ptr", ptr }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.std::map.150" = type { %"class.std::_Rb_tree.151" }
%"class.std::_Rb_tree.151" = type { %"struct.std::_Rb_tree<unsigned char, std::pair<const unsigned char, std::pair<std::shared_ptr<arsc::ResTableTypeBuilder>, arsc::TypeInfo>>, std::_Select1st<std::pair<const unsigned char, std::pair<std::shared_ptr<arsc::ResTableTypeBuilder>, arsc::TypeInfo>>>, std::less<unsigned char>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned char, std::pair<const unsigned char, std::pair<std::shared_ptr<arsc::ResTableTypeBuilder>, arsc::TypeInfo>>, std::_Select1st<std::pair<const unsigned char, std::pair<std::shared_ptr<arsc::ResTableTypeBuilder>, arsc::TypeInfo>>>, std::less<unsigned char>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector.156" = type { %"struct.std::_Vector_base.157" }
%"struct.std::_Vector_base.157" = type { %"struct.std::_Vector_base<arsc::OverlayInfo, std::allocator<arsc::OverlayInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<arsc::OverlayInfo, std::allocator<arsc::OverlayInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<arsc::OverlayInfo, std::allocator<arsc::OverlayInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<arsc::OverlayInfo, std::allocator<arsc::OverlayInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.161" = type { %"struct.std::_Vector_base.162" }
%"struct.std::_Vector_base.162" = type { %"struct.std::_Vector_base<android::ResChunk_header *, std::allocator<android::ResChunk_header *>>::_Vector_impl" }
%"struct.std::_Vector_base<android::ResChunk_header *, std::allocator<android::ResChunk_header *>>::_Vector_impl" = type { %"struct.std::_Vector_base<android::ResChunk_header *, std::allocator<android::ResChunk_header *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<android::ResChunk_header *, std::allocator<android::ResChunk_header *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.android::ResTable_package" = type { %"struct.android::ResChunk_header", i32, [128 x i16], i32, i32, i32, i32, i32 }
%"struct.android::ResChunk_header" = type { i16, i16, i32 }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4arsc17ResPackageBuilderC2EPN7android16ResTable_packageE(ptr noundef nonnull align 8 dereferenceable(416) %0, ptr noundef %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8
  %8 = getelementptr inbounds %"class.arsc::ResPackageBuilder", ptr %7, i32 0, i32 0
  call void @_ZNSt4pairISt10shared_ptrIN4arsc20ResStringPoolBuilderEEPN7android20ResStringPool_headerEEC2IS3_S6_TnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ESA_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %9 = getelementptr inbounds %"class.arsc::ResPackageBuilder", ptr %7, i32 0, i32 1
  invoke void @_ZNSt4pairISt10shared_ptrIN4arsc20ResStringPoolBuilderEEPN7android20ResStringPool_headerEEC2IS3_S6_TnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ESA_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %10 unwind label %36

10:                                               ; preds = %2
  %11 = getelementptr inbounds %"class.arsc::ResPackageBuilder", ptr %7, i32 0, i32 2
  call void @_ZNSt3mapIhSt4pairISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS2_8TypeInfoEESt4lessIhESaIS0_IKhS6_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #3
  %12 = getelementptr inbounds %"class.arsc::ResPackageBuilder", ptr %7, i32 0, i32 3
  call void @_ZNSt6vectorIN4arsc11OverlayInfoESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #3
  %13 = getelementptr inbounds %"class.arsc::ResPackageBuilder", ptr %7, i32 0, i32 4
  call void @_ZNSt6vectorIPN7android15ResChunk_headerESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #3
  %14 = getelementptr inbounds %"class.arsc::ResPackageBuilder", ptr %7, i32 0, i32 5
  store i32 0, ptr %14, align 8, !tbaa !9
  %15 = getelementptr inbounds %"class.arsc::ResPackageBuilder", ptr %7, i32 0, i32 6
  store i32 0, ptr %15, align 4, !tbaa !33
  %16 = getelementptr inbounds %"class.arsc::ResPackageBuilder", ptr %7, i32 0, i32 7
  store i32 0, ptr %16, align 8, !tbaa !34
  %17 = getelementptr inbounds %"class.arsc::ResPackageBuilder", ptr %7, i32 0, i32 8
  store i32 0, ptr %17, align 4, !tbaa !35
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.android::ResTable_package", ptr %18, i32 0, i32 1
  %20 = load i32, ptr %19, align 4, !tbaa !36
  invoke void @_ZN4arsc17ResPackageBuilder6set_idEj(ptr noundef nonnull align 8 dereferenceable(416) %7, i32 noundef %20)
          to label %21 unwind label %40

21:                                               ; preds = %10
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN4arsc17ResPackageBuilder17copy_package_nameEPN7android16ResTable_packageE(ptr noundef nonnull align 8 dereferenceable(416) %7, ptr noundef %22)
          to label %23 unwind label %40

23:                                               ; preds = %21
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.android::ResTable_package", ptr %24, i32 0, i32 6
  %26 = load i32, ptr %25, align 4, !tbaa !40
  invoke void @_ZN4arsc17ResPackageBuilder19set_last_public_keyEj(ptr noundef nonnull align 8 dereferenceable(416) %7, i32 noundef %26)
          to label %27 unwind label %40

27:                                               ; preds = %23
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.android::ResTable_package", ptr %28, i32 0, i32 4
  %30 = load i32, ptr %29, align 4, !tbaa !41
  invoke void @_ZN4arsc17ResPackageBuilder20set_last_public_typeEj(ptr noundef nonnull align 8 dereferenceable(416) %7, i32 noundef %30)
          to label %31 unwind label %40

31:                                               ; preds = %27
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.android::ResTable_package", ptr %32, i32 0, i32 7
  %34 = load i32, ptr %33, align 4, !tbaa !42
  invoke void @_ZN4arsc17ResPackageBuilder18set_type_id_offsetEj(ptr noundef nonnull align 8 dereferenceable(416) %7, i32 noundef %34)
          to label %35 unwind label %40

35:                                               ; preds = %31
  ret void

36:                                               ; preds = %2
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %5, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %6, align 4
  br label %44

40:                                               ; preds = %31, %27, %23, %21, %10
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %5, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %6, align 4
  call void @_ZNSt6vectorIPN7android15ResChunk_headerESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #3
  call void @_ZNSt6vectorIN4arsc11OverlayInfoESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #3
  call void @_ZNSt3mapIhSt4pairISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS2_8TypeInfoEESt4lessIhESaIS0_IKhS6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #3
  call void @_ZNSt4pairISt10shared_ptrIN4arsc20ResStringPoolBuilderEEPN7android20ResStringPool_headerEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #3
  br label %44

44:                                               ; preds = %40, %36
  call void @_ZNSt4pairISt10shared_ptrIN4arsc20ResStringPoolBuilderEEPN7android20ResStringPool_headerEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #3
  br label %45

45:                                               ; preds = %44
  %46 = load ptr, ptr %5, align 8
  %47 = load i32, ptr %6, align 4
  %48 = insertvalue { ptr, i32 } poison, ptr %46, 0
  %49 = insertvalue { ptr, i32 } %48, i32 %47, 1
  resume { ptr, i32 } %49
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairISt10shared_ptrIN4arsc20ResStringPoolBuilderEEPN7android20ResStringPool_headerEEC2IS3_S6_TnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ESA_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIhSt4pairISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS2_8TypeInfoEESt4lessIhESaIS0_IKhS6_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN4arsc11OverlayInfoESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIPN7android15ResChunk_headerESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4arsc17ResPackageBuilder6set_idEj(ptr noundef nonnull align 8 dereferenceable(416), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4arsc17ResPackageBuilder17copy_package_nameEPN7android16ResTable_packageE(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4arsc17ResPackageBuilder19set_last_public_keyEj(ptr noundef nonnull align 8 dereferenceable(416), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4arsc17ResPackageBuilder20set_last_public_typeEj(ptr noundef nonnull align 8 dereferenceable(416), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4arsc17ResPackageBuilder18set_type_id_offsetEj(ptr noundef nonnull align 8 dereferenceable(416), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIPN7android15ResChunk_headerESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN4arsc11OverlayInfoESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIhSt4pairISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS2_8TypeInfoEESt4lessIhESaIS0_IKhS6_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairISt10shared_ptrIN4arsc20ResStringPoolBuilderEEPN7android20ResStringPool_headerEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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 = { 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 #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 = { 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, !32, i64 144}
!10 = !{!"_ZTSN4arsc17ResPackageBuilderE", !11, i64 0, !11, i64 24, !15, i64 48, !24, i64 96, !28, i64 120, !32, i64 144, !32, i64 148, !32, i64 152, !32, i64 156, !7, i64 160}
!11 = !{!"_ZTSSt4pairISt10shared_ptrIN4arsc20ResStringPoolBuilderEEPN7android20ResStringPool_headerEE", !12, i64 0, !6, i64 16}
!12 = !{!"_ZTSSt10shared_ptrIN4arsc20ResStringPoolBuilderEE", !13, i64 0}
!13 = !{!"_ZTSSt12__shared_ptrIN4arsc20ResStringPoolBuilderELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !14, i64 8}
!14 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!15 = !{!"_ZTSSt3mapIhSt4pairISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS2_8TypeInfoEESt4lessIhESaIS0_IKhS6_EEE", !16, i64 0}
!16 = !{!"_ZTSSt8_Rb_treeIhSt4pairIKhS0_ISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS3_8TypeInfoEEESt10_Select1stIS8_ESt4lessIhESaIS8_EE", !17, i64 0}
!17 = !{!"_ZTSNSt8_Rb_treeIhSt4pairIKhS0_ISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS3_8TypeInfoEEESt10_Select1stIS8_ESt4lessIhESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !18, i64 0, !20, i64 8}
!18 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessIhEE", !19, i64 0}
!19 = !{!"_ZTSSt4lessIhE"}
!20 = !{!"_ZTSSt15_Rb_tree_header", !21, i64 0, !23, i64 32}
!21 = !{!"_ZTSSt18_Rb_tree_node_base", !22, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!22 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = !{!"_ZTSSt6vectorIN4arsc11OverlayInfoESaIS1_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIN4arsc11OverlayInfoESaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN4arsc11OverlayInfoESaIS1_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN4arsc11OverlayInfoESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"_ZTSSt6vectorIPN7android15ResChunk_headerESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIPN7android15ResChunk_headerESaIS2_EE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIPN7android15ResChunk_headerESaIS2_EE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIPN7android15ResChunk_headerESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!32 = !{!"int", !7, i64 0}
!33 = !{!10, !32, i64 148}
!34 = !{!10, !32, i64 152}
!35 = !{!10, !32, i64 156}
!36 = !{!37, !32, i64 8}
!37 = !{!"_ZTSN7android16ResTable_packageE", !38, i64 0, !32, i64 8, !7, i64 12, !32, i64 268, !32, i64 272, !32, i64 276, !32, i64 280, !32, i64 284}
!38 = !{!"_ZTSN7android15ResChunk_headerE", !39, i64 0, !39, i64 2, !32, i64 4}
!39 = !{!"short", !7, i64 0}
!40 = !{!37, !32, i64 280}
!41 = !{!37, !32, i64 272}
!42 = !{!37, !32, i64 284}


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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4arsc17ResPackageBuilderC2EPN7android16ResTable_packageE(ptr noundef nonnull align 8 dereferenceable(416) %0, ptr noundef %1) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  tail call void @_ZNSt4pairISt10shared_ptrIN4arsc20ResStringPoolBuilderEEPN7android20ResStringPool_headerEEC2IS3_S6_TnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ESA_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %3 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZNSt4pairISt10shared_ptrIN4arsc20ResStringPoolBuilderEEPN7android20ResStringPool_headerEEC2IS3_S6_TnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ESA_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %4 = getelementptr inbounds i8, ptr %0, i64 48
  tail call void @_ZNSt3mapIhSt4pairISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS2_8TypeInfoEESt4lessIhESaIS0_IKhS6_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #2
  %5 = getelementptr inbounds i8, ptr %0, i64 96
  tail call void @_ZNSt6vectorIN4arsc11OverlayInfoESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #2
  %6 = getelementptr inbounds i8, ptr %0, i64 120
  tail call void @_ZNSt6vectorIPN7android15ResChunk_headerESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #2
  %7 = getelementptr inbounds i8, ptr %0, i64 144
  %8 = getelementptr inbounds i8, ptr %1, i64 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %7, i8 0, i64 16, i1 false)
  %9 = load i32, ptr %8, align 4, !tbaa !5
  tail call void @_ZN4arsc17ResPackageBuilder6set_idEj(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 noundef %9)
  tail call void @_ZN4arsc17ResPackageBuilder17copy_package_nameEPN7android16ResTable_packageE(ptr noundef nonnull align 8 dereferenceable(416) %0, ptr noundef %1)
  %10 = getelementptr inbounds i8, ptr %1, i64 280
  %11 = load i32, ptr %10, align 4, !tbaa !12
  tail call void @_ZN4arsc17ResPackageBuilder19set_last_public_keyEj(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 noundef %11)
  %12 = getelementptr inbounds i8, ptr %1, i64 272
  %13 = load i32, ptr %12, align 4, !tbaa !13
  tail call void @_ZN4arsc17ResPackageBuilder20set_last_public_typeEj(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 noundef %13)
  %14 = getelementptr inbounds i8, ptr %1, i64 284
  %15 = load i32, ptr %14, align 4, !tbaa !14
  tail call void @_ZN4arsc17ResPackageBuilder18set_type_id_offsetEj(ptr noundef nonnull align 8 dereferenceable(416) %0, i32 noundef %15)
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairISt10shared_ptrIN4arsc20ResStringPoolBuilderEEPN7android20ResStringPool_headerEEC2IS3_S6_TnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ESA_IT0_EEE5valueEbE4typeELb1EEEv(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt3mapIhSt4pairISt10shared_ptrIN4arsc19ResTableTypeBuilderEENS2_8TypeInfoEESt4lessIhESaIS0_IKhS6_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN4arsc11OverlayInfoESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIPN7android15ResChunk_headerESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4arsc17ResPackageBuilder6set_idEj(ptr noundef nonnull align 8 dereferenceable(416), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4arsc17ResPackageBuilder17copy_package_nameEPN7android16ResTable_packageE(ptr noundef nonnull align 8 dereferenceable(416), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4arsc17ResPackageBuilder19set_last_public_keyEj(ptr noundef nonnull align 8 dereferenceable(416), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4arsc17ResPackageBuilder20set_last_public_typeEj(ptr noundef nonnull align 8 dereferenceable(416), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4arsc17ResPackageBuilder18set_type_id_offsetEj(ptr noundef nonnull align 8 dereferenceable(416), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

attributes #0 = { 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 #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 = !{!"_ZTSN7android16ResTable_packageE", !7, i64 0, !11, i64 8, !9, i64 12, !11, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284}
!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 280}
!13 = !{!6, !11, i64 272}
!14 = !{!6, !11, i64 284}


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