; LLVM IR from facebook/redex :: shared/QuickData.ll (ZN9QuickData9serializeERKSt10shared_ptrIP8_IO_FILEE)

; 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.FileHandle = type { ptr, i64, i64, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }
%class.QuickData = type { %"class.std::map", %"class.std::unordered_map" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, unsigned int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, unsigned int>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, unsigned int>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, unsigned int>>, std::less<std::__cxx11::basic_string<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::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.std::pair" = type <{ %"class.std::__cxx11::basic_string", i32, [4 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [24 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [116 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [50 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: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_IjtSt4hashIjESt8equal_toIjESaISt4pairIKjtEEES6_IS5_ES8_IS5_ESaISA_IKS5_SE_EEEixERSH_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt13unordered_mapIjtSt4hashIjESt8equal_toIjESaISt4pairIKjtEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9QuickData9serializeERKSt10shared_ptrIP8_IO_FILEE(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(16) %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %class.FileHandle, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %15 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i8, align 1
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %21 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca i8, align 1
  %27 = alloca i8, align 1
  %28 = alloca ptr, align 8
  %29 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %30 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %31 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %32 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #5
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt19__shared_ptr_accessIP8_IO_FILELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %33) #5
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZN10FileHandleC2EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef %35)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %36 = getelementptr inbounds %class.QuickData, ptr %32, i32 0, i32 1
  %37 = call noundef i64 @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_IjtSt4hashIjESt8equal_toIjESaISt4pairIKjtEEES6_IS5_ES8_IS5_ESaISA_IKS5_SE_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %36) #5
  %38 = trunc i64 %37 to i32
  store i32 %38, ptr %6, align 4, !tbaa !9
  %39 = load i32, ptr %6, align 4, !tbaa !9
  invoke void @_Z10write_wordR10FileHandlej(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef %39)
          to label %40 unwind label %70

40:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %41 = getelementptr inbounds %class.QuickData, ptr %32, i32 0, i32 0
  %42 = invoke noundef i32 @_ZN12_GLOBAL__N_122calculate_total_fieldsERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS6_ESaISt4pairIKS6_jEEE(ptr noundef nonnull align 8 dereferenceable(48) %41)
          to label %43 unwind label %74

43:                                               ; preds = %40
  store i32 %42, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %44 = load i32, ptr %6, align 4, !tbaa !9
  %45 = load i32, ptr %9, align 4, !tbaa !9
  %46 = invoke noundef i32 @_ZN12_GLOBAL__N_132calculate_dex_identifiers_offsetEjj(i32 noundef %44, i32 noundef %45)
          to label %47 unwind label %78

47:                                               ; preds = %43
  store i32 %46, ptr %10, align 4, !tbaa !9
  %48 = load i32, ptr %6, align 4, !tbaa !9
  %49 = load i32, ptr %9, align 4, !tbaa !9
  %50 = invoke noundef i32 @_ZN12_GLOBAL__N_132calculate_dex_identifiers_offsetEjj(i32 noundef %48, i32 noundef %49)
          to label %51 unwind label %78

51:                                               ; preds = %47
  invoke void @_Z10write_wordR10FileHandlej(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef %50)
          to label %52 unwind label %78

52:                                               ; preds = %51
  br label %53

53:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  %54 = invoke noundef i64 @_ZNK10FileHandle13bytes_writtenEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %55 unwind label %82

55:                                               ; preds = %53
  %56 = invoke noundef i32 @_ZN12_GLOBAL__N_114size_of_headerEv()
          to label %57 unwind label %82

57:                                               ; preds = %55
  %58 = zext i32 %56 to i64
  %59 = icmp eq i64 %54, %58
  %60 = zext i1 %59 to i8
  store i8 %60, ptr %11, align 1, !tbaa !11
  %61 = load i8, ptr %11, align 1, !tbaa !11, !range !13, !noundef !14
  %62 = trunc i8 %61 to i1
  br i1 %62, label %86, label %63

63:                                               ; preds = %57
  %64 = load ptr, ptr @stderr, align 8, !tbaa !5
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 92, ptr noundef @.str.2) #5
  %66 = load ptr, ptr @stderr, align 8, !tbaa !5
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef @.str.3) #5
  %68 = load ptr, ptr @stderr, align 8, !tbaa !5
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef @.str.4) #5
  br label %86

70:                                               ; preds = %2
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %7, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %8, align 4
  br label %308

74:                                               ; preds = %40
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %7, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %8, align 4
  br label %307

78:                                               ; preds = %51, %47, %43
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %7, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %8, align 4
  br label %306

82:                                               ; preds = %55, %53
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %7, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  br label %306

86:                                               ; preds = %63, %57
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  br label %87

87:                                               ; preds = %86
  br label %88

88:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %89 = invoke noundef i32 @_ZN12_GLOBAL__N_114size_of_headerEv()
          to label %90 unwind label %105

90:                                               ; preds = %88
  %91 = load i32, ptr %6, align 4, !tbaa !9
  %92 = invoke noundef i32 @_ZN12_GLOBAL__N_116size_of_dex_infoEj(i32 noundef %91)
          to label %93 unwind label %105

93:                                               ; preds = %90
  %94 = add i32 %89, %92
  store i32 %94, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %95 = getelementptr inbounds %class.QuickData, ptr %32, i32 0, i32 0
  store ptr %95, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %96 = load ptr, ptr %13, align 8, !tbaa !5
  %97 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %96) #5
  %98 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %14, i32 0, i32 0
  store ptr %97, ptr %98, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %99 = load ptr, ptr %13, align 8, !tbaa !5
  %100 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %99) #5
  %101 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %15, i32 0, i32 0
  store ptr %100, ptr %101, align 8
  br label %102

102:                                              ; preds = %126, %93
  %103 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEESB_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  br i1 %103, label %109, label %104

104:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %132

105:                                              ; preds = %90, %88
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %7, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %8, align 4
  br label %305

109:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %110 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  store ptr %110, ptr %16, align 8, !tbaa !5
  %111 = load ptr, ptr %16, align 8, !tbaa !5
  %112 = getelementptr inbounds %"struct.std::pair", ptr %111, i32 0, i32 1
  %113 = load i32, ptr %112, align 8, !tbaa !15
  invoke void @_Z10write_wordR10FileHandlej(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef %113)
          to label %114 unwind label %128

114:                                              ; preds = %109
  %115 = load i32, ptr %12, align 4, !tbaa !9
  invoke void @_Z10write_wordR10FileHandlej(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef %115)
          to label %116 unwind label %128

116:                                              ; preds = %114
  %117 = load ptr, ptr %16, align 8, !tbaa !5
  %118 = getelementptr inbounds %"struct.std::pair", ptr %117, i32 0, i32 1
  %119 = load i32, ptr %118, align 8, !tbaa !15
  %120 = zext i32 %119 to i64
  %121 = mul i64 %120, 2
  %122 = load i32, ptr %12, align 4, !tbaa !9
  %123 = zext i32 %122 to i64
  %124 = add i64 %123, %121
  %125 = trunc i64 %124 to i32
  store i32 %125, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %126

126:                                              ; preds = %116
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #5
  br label %102

128:                                              ; preds = %114, %109
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %7, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %305

132:                                              ; preds = %104
  br label %133

133:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #5
  %134 = invoke noundef i64 @_ZNK10FileHandle13bytes_writtenEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %135 unwind label %154

135:                                              ; preds = %133
  %136 = invoke noundef i32 @_ZN12_GLOBAL__N_114size_of_headerEv()
          to label %137 unwind label %154

137:                                              ; preds = %135
  %138 = load i32, ptr %6, align 4, !tbaa !9
  %139 = invoke noundef i32 @_ZN12_GLOBAL__N_116size_of_dex_infoEj(i32 noundef %138)
          to label %140 unwind label %154

140:                                              ; preds = %137
  %141 = add i32 %136, %139
  %142 = zext i32 %141 to i64
  %143 = icmp eq i64 %134, %142
  %144 = zext i1 %143 to i8
  store i8 %144, ptr %17, align 1, !tbaa !11
  %145 = load i8, ptr %17, align 1, !tbaa !11, !range !13, !noundef !14
  %146 = trunc i8 %145 to i1
  br i1 %146, label %158, label %147

147:                                              ; preds = %140
  %148 = load ptr, ptr @stderr, align 8, !tbaa !5
  %149 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %148, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 101, ptr noundef @.str.5) #5
  %150 = load ptr, ptr @stderr, align 8, !tbaa !5
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %150, ptr noundef @.str.3) #5
  %152 = load ptr, ptr @stderr, align 8, !tbaa !5
  %153 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef @.str.4) #5
  br label %158

154:                                              ; preds = %137, %135, %133
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %7, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  br label %305

158:                                              ; preds = %147, %140
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  br label %159

159:                                              ; preds = %158
  br label %160

160:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %161 = getelementptr inbounds %class.QuickData, ptr %32, i32 0, i32 0
  store ptr %161, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %162 = load ptr, ptr %19, align 8, !tbaa !5
  %163 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %162) #5
  %164 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %20, i32 0, i32 0
  store ptr %163, ptr %164, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %165 = load ptr, ptr %19, align 8, !tbaa !5
  %166 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %165) #5
  %167 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %21, i32 0, i32 0
  store ptr %166, ptr %167, align 8
  br label %168

168:                                              ; preds = %248, %160
  %169 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEESB_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  br i1 %169, label %171, label %170

170:                                              ; preds = %168
  store i32 8, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %251

171:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %172 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  store ptr %172, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %173 = getelementptr inbounds %class.QuickData, ptr %32, i32 0, i32 1
  %174 = load ptr, ptr %23, align 8, !tbaa !5
  %175 = getelementptr inbounds %"struct.std::pair", ptr %174, i32 0, i32 0
  %176 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_IjtSt4hashIjESt8equal_toIjESaISt4pairIKjtEEES6_IS5_ES8_IS5_ESaISA_IKS5_SE_EEEixERSH_(ptr noundef nonnull align 8 dereferenceable(56) %173, ptr noundef nonnull align 8 dereferenceable(32) %175)
          to label %177 unwind label %185

177:                                              ; preds = %171
  store ptr %176, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %178

178:                                              ; preds = %207, %177
  %179 = load i32, ptr %25, align 4, !tbaa !9
  %180 = load ptr, ptr %23, align 8, !tbaa !5
  %181 = getelementptr inbounds %"struct.std::pair", ptr %180, i32 0, i32 1
  %182 = load i32, ptr %181, align 8, !tbaa !15
  %183 = icmp ult i32 %179, %182
  br i1 %183, label %189, label %184

184:                                              ; preds = %178
  store i32 10, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %210

185:                                              ; preds = %171
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %7, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %8, align 4
  br label %250

189:                                              ; preds = %178
  %190 = load ptr, ptr %24, align 8, !tbaa !5
  %191 = invoke noundef i64 @_ZNKSt13unordered_mapIjtSt4hashIjESt8equal_toIjESaISt4pairIKjtEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) %190, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %192 unwind label %200

192:                                              ; preds = %189
  %193 = icmp ugt i64 %191, 0
  br i1 %193, label %194, label %204

194:                                              ; preds = %192
  %195 = load ptr, ptr %24, align 8, !tbaa !5
  %196 = invoke noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt13unordered_mapIjtSt4hashIjESt8equal_toIjESaISt4pairIKjtEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %195, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %197 unwind label %200

197:                                              ; preds = %194
  %198 = load i16, ptr %196, align 2, !tbaa !20
  invoke void @_Z11write_shortR10FileHandlet(ptr noundef nonnull align 8 dereferenceable(32) %5, i16 noundef zeroext %198)
          to label %199 unwind label %200

199:                                              ; preds = %197
  br label %206

200:                                              ; preds = %204, %197, %194, %189
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %7, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %250

204:                                              ; preds = %192
  invoke void @_Z11write_shortR10FileHandlet(ptr noundef nonnull align 8 dereferenceable(32) %5, i16 noundef zeroext 0)
          to label %205 unwind label %200

205:                                              ; preds = %204
  br label %206

206:                                              ; preds = %205, %199
  br label %207

207:                                              ; preds = %206
  %208 = load i32, ptr %25, align 4, !tbaa !9
  %209 = add i32 %208, 1
  store i32 %209, ptr %25, align 4, !tbaa !9
  br label %178, !llvm.loop !22

210:                                              ; preds = %184
  %211 = load ptr, ptr %23, align 8, !tbaa !5
  %212 = getelementptr inbounds %"struct.std::pair", ptr %211, i32 0, i32 1
  %213 = load i32, ptr %212, align 8, !tbaa !15
  %214 = load i32, ptr %18, align 4, !tbaa !9
  %215 = add i32 %214, %213
  store i32 %215, ptr %18, align 4, !tbaa !9
  br label %216

216:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #5
  %217 = invoke noundef i64 @_ZNK10FileHandle13bytes_writtenEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %218 unwind label %241

218:                                              ; preds = %216
  %219 = invoke noundef i32 @_ZN12_GLOBAL__N_114size_of_headerEv()
          to label %220 unwind label %241

220:                                              ; preds = %218
  %221 = load i32, ptr %6, align 4, !tbaa !9
  %222 = invoke noundef i32 @_ZN12_GLOBAL__N_116size_of_dex_infoEj(i32 noundef %221)
          to label %223 unwind label %241

223:                                              ; preds = %220
  %224 = add i32 %219, %222
  %225 = zext i32 %224 to i64
  %226 = load i32, ptr %18, align 4, !tbaa !9
  %227 = zext i32 %226 to i64
  %228 = mul i64 %227, 2
  %229 = add i64 %225, %228
  %230 = icmp eq i64 %217, %229
  %231 = zext i1 %230 to i8
  store i8 %231, ptr %26, align 1, !tbaa !11
  %232 = load i8, ptr %26, align 1, !tbaa !11, !range !13, !noundef !14
  %233 = trunc i8 %232 to i1
  br i1 %233, label %245, label %234

234:                                              ; preds = %223
  %235 = load ptr, ptr @stderr, align 8, !tbaa !5
  %236 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %235, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 117, ptr noundef @.str.6) #5
  %237 = load ptr, ptr @stderr, align 8, !tbaa !5
  %238 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %237, ptr noundef @.str.3) #5
  %239 = load ptr, ptr @stderr, align 8, !tbaa !5
  %240 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %239, ptr noundef @.str.4) #5
  br label %245

241:                                              ; preds = %220, %218, %216
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %7, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #5
  br label %250

245:                                              ; preds = %234, %223
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #5
  br label %246

246:                                              ; preds = %245
  br label %247

247:                                              ; preds = %246
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %248

248:                                              ; preds = %247
  %249 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  br label %168

250:                                              ; preds = %241, %200, %185
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %304

251:                                              ; preds = %170
  br label %252

252:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #5
  %253 = invoke noundef i64 @_ZNK10FileHandle13bytes_writtenEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %254 unwind label %268

254:                                              ; preds = %252
  %255 = load i32, ptr %10, align 4, !tbaa !9
  %256 = zext i32 %255 to i64
  %257 = icmp eq i64 %253, %256
  %258 = zext i1 %257 to i8
  store i8 %258, ptr %27, align 1, !tbaa !11
  %259 = load i8, ptr %27, align 1, !tbaa !11, !range !13, !noundef !14
  %260 = trunc i8 %259 to i1
  br i1 %260, label %272, label %261

261:                                              ; preds = %254
  %262 = load ptr, ptr @stderr, align 8, !tbaa !5
  %263 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %262, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 120, ptr noundef @.str.7) #5
  %264 = load ptr, ptr @stderr, align 8, !tbaa !5
  %265 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %264, ptr noundef @.str.3) #5
  %266 = load ptr, ptr @stderr, align 8, !tbaa !5
  %267 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %266, ptr noundef @.str.4) #5
  br label %272

268:                                              ; preds = %252
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %7, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #5
  br label %304

272:                                              ; preds = %261, %254
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #5
  br label %273

273:                                              ; preds = %272
  br label %274

274:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %275 = getelementptr inbounds %class.QuickData, ptr %32, i32 0, i32 0
  store ptr %275, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %276 = load ptr, ptr %28, align 8, !tbaa !5
  %277 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %276) #5
  %278 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %29, i32 0, i32 0
  store ptr %277, ptr %278, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  %279 = load ptr, ptr %28, align 8, !tbaa !5
  %280 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %279) #5
  %281 = getelementptr inbounds %"struct.std::_Rb_tree_iterator", ptr %30, i32 0, i32 0
  store ptr %280, ptr %281, align 8
  br label %282

282:                                              ; preds = %295, %274
  %283 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEESB_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #5
  br i1 %283, label %285, label %284

284:                                              ; preds = %282
  store i32 17, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br label %301

285:                                              ; preds = %282
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  %286 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #5
  store ptr %286, ptr %31, align 8, !tbaa !5
  %287 = load ptr, ptr %31, align 8, !tbaa !5
  %288 = getelementptr inbounds %"struct.std::pair", ptr %287, i32 0, i32 0
  %289 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %288) #5
  %290 = trunc i64 %289 to i32
  invoke void @_Z10write_wordR10FileHandlej(ptr noundef nonnull align 8 dereferenceable(32) %5, i32 noundef %290)
          to label %291 unwind label %297

291:                                              ; preds = %285
  %292 = load ptr, ptr %31, align 8, !tbaa !5
  %293 = getelementptr inbounds %"struct.std::pair", ptr %292, i32 0, i32 0
  invoke void @_Z9write_strR10FileHandleRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %293)
          to label %294 unwind label %297

294:                                              ; preds = %291
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  br label %295

295:                                              ; preds = %294
  %296 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #5
  br label %282

297:                                              ; preds = %291, %285
  %298 = landingpad { ptr, i32 }
          cleanup
  %299 = extractvalue { ptr, i32 } %298, 0
  store ptr %299, ptr %7, align 8
  %300 = extractvalue { ptr, i32 } %298, 1
  store i32 %300, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br label %304

301:                                              ; preds = %284
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @_ZN10FileHandleD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  %302 = load ptr, ptr %4, align 8, !tbaa !5
  %303 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt19__shared_ptr_accessIP8_IO_FILELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %302) #5
  store ptr null, ptr %303, align 8, !tbaa !5
  ret void

304:                                              ; preds = %297, %268, %250
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %305

305:                                              ; preds = %304, %154, %128, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %306

306:                                              ; preds = %305, %82, %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %307

307:                                              ; preds = %306, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %308

308:                                              ; preds = %307, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @_ZN10FileHandleD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #5
  br label %309

309:                                              ; preds = %308
  %310 = load ptr, ptr %7, align 8
  %311 = load i32, ptr %8, align 4
  %312 = insertvalue { ptr, i32 } poison, ptr %310, 0
  %313 = insertvalue { ptr, i32 } %312, i32 %311, 1
  resume { ptr, i32 } %313
}

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

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

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

declare void @_Z10write_wordR10FileHandlej(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_122calculate_total_fieldsERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS6_ESaISt4pairIKS6_jEEE(ptr noundef nonnull align 8 dereferenceable(48)) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_132calculate_dex_identifiers_offsetEjj(i32 noundef, i32 noundef) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_114size_of_headerEv() #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_116size_of_dex_infoEj(i32 noundef) #2

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

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

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

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

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

declare void @_Z11write_shortR10FileHandlet(ptr noundef nonnull align 8 dereferenceable(32), i16 noundef zeroext) #3

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

declare void @_Z9write_strR10FileHandleRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #3

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !10, i64 32}
!16 = !{!"_ZTSSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjE", !17, i64 0, !10, i64 32}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !19, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"short", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"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.FileHandle = type { ptr, i64, i64, ptr }
%"struct.std::_Rb_tree_iterator" = type { ptr }

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [24 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [116 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [50 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 uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_IjtSt4hashIjESt8equal_toIjESaISt4pairIKjtEEES6_IS5_ES8_IS5_ESaISA_IKS5_SE_EEEixERSH_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt13unordered_mapIjtSt4hashIjESt8equal_toIjESaISt4pairIKjtEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNKSt13unordered_mapIjtSt4hashIjESt8equal_toIjESaISt4pairIKjtEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9QuickData9serializeERKSt10shared_ptrIP8_IO_FILEE(ptr noundef nonnull align 8 dereferenceable(104) %0, ptr noundef nonnull align 8 dereferenceable(16) %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %class.FileHandle, align 8
  %4 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %5 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %6 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %7 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::_Rb_tree_iterator", align 8
  %10 = alloca %"struct.std::_Rb_tree_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
  %11 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt19__shared_ptr_accessIP8_IO_FILELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #5
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN10FileHandleC2EP8_IO_FILE(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef %12)
  %13 = getelementptr inbounds i8, ptr %0, i64 48
  %14 = call noundef i64 @_ZNKSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_IjtSt4hashIjESt8equal_toIjESaISt4pairIKjtEEES6_IS5_ES8_IS5_ESaISA_IKS5_SE_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(56) %13) #5
  %15 = trunc i64 %14 to i32
  invoke void @_Z10write_wordR10FileHandlej(ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef %15)
          to label %16 unwind label %34

16:                                               ; preds = %2
  %17 = call noundef i32 @_ZN12_GLOBAL__N_122calculate_total_fieldsERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS6_ESaISt4pairIKS6_jEEE(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %18 = invoke noundef i32 @_ZN12_GLOBAL__N_132calculate_dex_identifiers_offsetEjj(i32 noundef %15, i32 noundef %17)
          to label %19 unwind label %36

19:                                               ; preds = %16
  %20 = invoke noundef i32 @_ZN12_GLOBAL__N_132calculate_dex_identifiers_offsetEjj(i32 noundef %15, i32 noundef %17)
          to label %21 unwind label %36

21:                                               ; preds = %19
  invoke void @_Z10write_wordR10FileHandlej(ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef %20)
          to label %22 unwind label %36

22:                                               ; preds = %21
  %23 = call noundef i64 @_ZNK10FileHandle13bytes_writtenEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %24 = call noundef i32 @_ZN12_GLOBAL__N_114size_of_headerEv()
  %25 = zext i32 %24 to i64
  %26 = icmp eq i64 %23, %25
  br i1 %26, label %38, label %27

27:                                               ; preds = %22
  %28 = load ptr, ptr @stderr, align 8, !tbaa !5
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 92, ptr noundef nonnull @.str.2) #6
  %30 = load ptr, ptr @stderr, align 8, !tbaa !5
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str.3) #6
  %32 = load ptr, ptr @stderr, align 8, !tbaa !5
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.4) #6
  br label %38

34:                                               ; preds = %2
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %140

36:                                               ; preds = %21, %19, %16
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %140

38:                                               ; preds = %27, %22
  %39 = call noundef i32 @_ZN12_GLOBAL__N_114size_of_headerEv()
  %40 = call noundef i32 @_ZN12_GLOBAL__N_116size_of_dex_infoEj(i32 noundef %15)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %41 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
  store ptr %41, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %42 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
  store ptr %42, ptr %5, align 8
  %43 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEESB_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %43, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %38
  %44 = add i32 %40, %39
  br label %.lr.ph

._crit_edge:                                      ; preds = %55, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  %45 = call noundef i64 @_ZNK10FileHandle13bytes_writtenEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %46 = call noundef i32 @_ZN12_GLOBAL__N_114size_of_headerEv()
  %47 = call noundef i32 @_ZN12_GLOBAL__N_116size_of_dex_infoEj(i32 noundef %15)
  %48 = add i32 %47, %46
  %49 = zext i32 %48 to i64
  %50 = icmp eq i64 %45, %49
  br i1 %50, label %70, label %63

.lr.ph:                                           ; preds = %.lr.ph.preheader, %55
  %.04150 = phi i32 [ %58, %55 ], [ %44, %.lr.ph.preheader ]
  %51 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %52 = getelementptr inbounds i8, ptr %51, i64 32
  %53 = load i32, ptr %52, align 8, !tbaa !9
  invoke void @_Z10write_wordR10FileHandlej(ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef %53)
          to label %54 unwind label %61

54:                                               ; preds = %.lr.ph
  invoke void @_Z10write_wordR10FileHandlej(ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef %.04150)
          to label %55 unwind label %61

55:                                               ; preds = %54
  %56 = load i32, ptr %52, align 8, !tbaa !9
  %57 = shl i32 %56, 1
  %58 = add i32 %57, %.04150
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %60 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEESB_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %60, label %.lr.ph, label %._crit_edge

61:                                               ; preds = %54, %.lr.ph
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %140

63:                                               ; preds = %._crit_edge
  %64 = load ptr, ptr @stderr, align 8, !tbaa !5
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 101, ptr noundef nonnull @.str.5) #6
  %66 = load ptr, ptr @stderr, align 8, !tbaa !5
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef nonnull @.str.3) #6
  %68 = load ptr, ptr @stderr, align 8, !tbaa !5
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef nonnull @.str.4) #6
  br label %70

70:                                               ; preds = %63, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %71 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
  store ptr %71, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %72 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
  store ptr %72, ptr %7, align 8
  %73 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEESB_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %73, label %.lr.ph56, label %._crit_edge57

._crit_edge57:                                    ; preds = %115, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %74 = call noundef i64 @_ZNK10FileHandle13bytes_writtenEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %75 = zext i32 %18 to i64
  %76 = icmp eq i64 %74, %75
  br i1 %76, label %126, label %119

.lr.ph56:                                         ; preds = %70, %115
  %.04254 = phi i32 [ %82, %115 ], [ 0, %70 ]
  %77 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %78 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES_IjtSt4hashIjESt8equal_toIjESaISt4pairIKjtEEES6_IS5_ES8_IS5_ESaISA_IKS5_SE_EEEixERSH_(ptr noundef nonnull align 8 dereferenceable(56) %13, ptr noundef nonnull align 8 dereferenceable(32) %77)
          to label %79 unwind label %92

79:                                               ; preds = %.lr.ph56
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %80 = getelementptr inbounds i8, ptr %77, i64 32
  store i32 0, ptr %8, align 4, !tbaa !15
  %81 = load i32, ptr %80, align 8, !tbaa !9
  %.not61 = icmp eq i32 %81, 0
  br i1 %.not61, label %._crit_edge53, label %.lr.ph52

._crit_edge53:                                    ; preds = %103, %79
  %.lcssa = phi i32 [ 0, %79 ], [ %106, %103 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  %82 = add i32 %.lcssa, %.04254
  %83 = call noundef i64 @_ZNK10FileHandle13bytes_writtenEv(ptr noundef nonnull align 8 dereferenceable(32) %3)
  %84 = call noundef i32 @_ZN12_GLOBAL__N_114size_of_headerEv()
  %85 = call noundef i32 @_ZN12_GLOBAL__N_116size_of_dex_infoEj(i32 noundef %15)
  %86 = add i32 %85, %84
  %87 = zext i32 %86 to i64
  %88 = zext i32 %82 to i64
  %89 = shl nuw nsw i64 %88, 1
  %90 = add nuw nsw i64 %89, %87
  %91 = icmp eq i64 %83, %90
  br i1 %91, label %115, label %108

92:                                               ; preds = %.lr.ph56
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %118

.lr.ph52:                                         ; preds = %79, %103
  %94 = invoke noundef i64 @_ZNKSt13unordered_mapIjtSt4hashIjESt8equal_toIjESaISt4pairIKjtEEE5countERS5_(ptr noundef nonnull align 8 dereferenceable(56) %78, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %95 unwind label %100

95:                                               ; preds = %.lr.ph52
  %.not = icmp eq i64 %94, 0
  br i1 %.not, label %.invoke, label %96

96:                                               ; preds = %95
  %97 = invoke noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt13unordered_mapIjtSt4hashIjESt8equal_toIjESaISt4pairIKjtEEEixERS5_(ptr noundef nonnull align 8 dereferenceable(56) %78, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %98 unwind label %100

98:                                               ; preds = %96
  %99 = load i16, ptr %97, align 2, !tbaa !16
  br label %.invoke

100:                                              ; preds = %.invoke, %96, %.lr.ph52
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  br label %118

.invoke:                                          ; preds = %95, %98
  %102 = phi i16 [ %99, %98 ], [ 0, %95 ]
  invoke void @_Z11write_shortR10FileHandlet(ptr noundef nonnull align 8 dereferenceable(32) %3, i16 noundef zeroext %102)
          to label %103 unwind label %100

103:                                              ; preds = %.invoke
  %104 = load i32, ptr %8, align 4, !tbaa !15
  %105 = add i32 %104, 1
  store i32 %105, ptr %8, align 4, !tbaa !15
  %106 = load i32, ptr %80, align 8, !tbaa !9
  %107 = icmp ult i32 %105, %106
  br i1 %107, label %.lr.ph52, label %._crit_edge53, !llvm.loop !18

108:                                              ; preds = %._crit_edge53
  %109 = load ptr, ptr @stderr, align 8, !tbaa !5
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 117, ptr noundef nonnull @.str.6) #6
  %111 = load ptr, ptr @stderr, align 8, !tbaa !5
  %112 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %111, ptr noundef nonnull @.str.3) #6
  %113 = load ptr, ptr @stderr, align 8, !tbaa !5
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %113, ptr noundef nonnull @.str.4) #6
  br label %115

115:                                              ; preds = %108, %._crit_edge53
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %117 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEESB_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %117, label %.lr.ph56, label %._crit_edge57

118:                                              ; preds = %100, %92
  %.pn = phi { ptr, i32 } [ %101, %100 ], [ %93, %92 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %140

119:                                              ; preds = %._crit_edge57
  %120 = load ptr, ptr @stderr, align 8, !tbaa !5
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 120, ptr noundef nonnull @.str.7) #6
  %122 = load ptr, ptr @stderr, align 8, !tbaa !5
  %123 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %122, ptr noundef nonnull @.str.3) #6
  %124 = load ptr, ptr @stderr, align 8, !tbaa !5
  %125 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef nonnull @.str.4) #6
  br label %126

126:                                              ; preds = %119, %._crit_edge57
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %127 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
  store ptr %127, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %128 = call ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS5_ESaISt4pairIKS5_jEEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #5
  store ptr %128, ptr %10, align 8
  %129 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEESB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br i1 %129, label %.lr.ph59, label %._crit_edge60

._crit_edge60:                                    ; preds = %135, %126
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @_ZN10FileHandleD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt19__shared_ptr_accessIP8_IO_FILELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %1) #5
  store ptr null, ptr %130, align 8, !tbaa !5
  ret void

.lr.ph59:                                         ; preds = %126, %135
  %131 = call noundef nonnull align 8 dereferenceable(36) ptr @_ZNKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %132 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %131) #5
  %133 = trunc i64 %132 to i32
  invoke void @_Z10write_wordR10FileHandlej(ptr noundef nonnull align 8 dereferenceable(32) %3, i32 noundef %133)
          to label %134 unwind label %138

134:                                              ; preds = %.lr.ph59
  invoke void @_Z9write_strR10FileHandleRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %131)
          to label %135 unwind label %138

135:                                              ; preds = %134
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %137 = call noundef zeroext i1 @_ZStneRKSt17_Rb_tree_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjEESB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br i1 %137, label %.lr.ph59, label %._crit_edge60

138:                                              ; preds = %134, %.lr.ph59
  %139 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %140

140:                                              ; preds = %36, %118, %138, %61, %34
  %.pn45.pn.pn = phi { ptr, i32 } [ %35, %34 ], [ %37, %36 ], [ %62, %61 ], [ %.pn, %118 ], [ %139, %138 ]
  call void @_ZN10FileHandleD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn45.pn.pn
}

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

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

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

declare void @_Z10write_wordR10FileHandlej(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_122calculate_total_fieldsERSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjSt4lessIS6_ESaISt4pairIKS6_jEEE(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_132calculate_dex_identifiers_offsetEjj(i32 noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_114size_of_headerEv() local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN12_GLOBAL__N_116size_of_dex_infoEj(i32 noundef) local_unnamed_addr #2

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

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

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

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

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

declare void @_Z11write_shortR10FileHandlet(ptr noundef nonnull align 8 dereferenceable(32), i16 noundef zeroext) local_unnamed_addr #3

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

declare void @_Z9write_strR10FileHandleRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !14, i64 32}
!10 = !{!"_ZTSSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEjE", !11, i64 0, !14, i64 32}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !13, i64 8, !7, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!14, !14, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


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