; LLVM IR from facebook/redex :: libredex/ApiLevelChecker.ll (ZN3api12LevelChecker15get_outer_classEPK8DexClass)

; 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.TraceContext = type { ptr, ptr, ptr, ptr, %"class.std::__cxx11::basic_string" }
%"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] }
%"class.std::basic_string_view" = type { i64, ptr }

@.str.19 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [28 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7DexType8get_typeESt17basic_string_viewIcSt11char_traitsIcEE(i64, ptr) #2 align 2

declare noundef ptr @_Z10type_classPK7DexType(ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN3api12LevelChecker15get_outer_classEPK8DexClass(ptr noundef %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %class.TraceContext, align 8
  %5 = alloca %"class.std::basic_string_view", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::basic_string_view", align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::basic_string_view", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %4) #5
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = call noundef ptr @_ZNK8DexClass8get_typeEv(ptr noundef nonnull align 8 dereferenceable(176) %18)
  call void @_ZN12TraceContextC2EPK7DexType(ptr noundef nonnull align 8 dereferenceable(64) %4, ptr noundef %19)
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #5
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = invoke { i64, ptr } @_ZNK8DexClass30get_deobfuscated_name_or_emptyEv(ptr noundef nonnull align 8 dereferenceable(176) %20)
          to label %22 unwind label %31

22:                                               ; preds = %1
  %23 = getelementptr inbounds { i64, ptr }, ptr %5, i32 0, i32 0
  %24 = extractvalue { i64, ptr } %21, 0
  store i64 %24, ptr %23, align 8
  %25 = getelementptr inbounds { i64, ptr }, ptr %5, i32 0, i32 1
  %26 = extractvalue { i64, ptr } %21, 1
  store ptr %26, ptr %25, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %27 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE12find_last_ofEcm(ptr noundef nonnull align 8 dereferenceable(16) %5, i8 noundef signext 36, i64 noundef -1) #5
  store i64 %27, ptr %8, align 8, !tbaa !9
  %28 = load i64, ptr %8, align 8, !tbaa !9
  %29 = icmp eq i64 %28, -1
  br i1 %29, label %30, label %35

30:                                               ; preds = %22
  store ptr null, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %130

31:                                               ; preds = %1
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %6, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %7, align 4
  br label %132

35:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %36 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE12find_last_ofEcm(ptr noundef nonnull align 8 dereferenceable(16) %5, i8 noundef signext 47, i64 noundef -1) #5
  store i64 %36, ptr %10, align 8, !tbaa !9
  %37 = load i64, ptr %10, align 8, !tbaa !9
  %38 = icmp eq i64 %37, -1
  br i1 %38, label %43, label %39

39:                                               ; preds = %35
  %40 = load i64, ptr %10, align 8, !tbaa !9
  %41 = load i64, ptr %8, align 8, !tbaa !9
  %42 = icmp ult i64 %40, %41
  br i1 %42, label %43, label %128

43:                                               ; preds = %39, %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #5
  %44 = load i64, ptr %8, align 8, !tbaa !9
  %45 = invoke { i64, ptr } @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6substrEmm(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef 0, i64 noundef %44)
          to label %46 unwind label %79

46:                                               ; preds = %43
  %47 = getelementptr inbounds { i64, ptr }, ptr %13, i32 0, i32 0
  %48 = extractvalue { i64, ptr } %45, 0
  store i64 %48, ptr %47, align 8
  %49 = getelementptr inbounds { i64, ptr }, ptr %13, i32 0, i32 1
  %50 = extractvalue { i64, ptr } %45, 1
  store ptr %50, ptr %49, align 8
  %51 = getelementptr inbounds { i64, ptr }, ptr %13, i32 0, i32 0
  %52 = load i64, ptr %51, align 8
  %53 = getelementptr inbounds { i64, ptr }, ptr %13, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8
  invoke void @_ZplB5cxx11St17basic_string_viewIcSt11char_traitsIcEEc(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %12, i64 %52, ptr %54, i8 noundef signext 59)
          to label %55 unwind label %79

55:                                               ; preds = %46
  store ptr %12, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %56) #5
  %58 = getelementptr inbounds { i64, ptr }, ptr %15, i32 0, i32 0
  %59 = extractvalue { i64, ptr } %57, 0
  store i64 %59, ptr %58, align 8
  %60 = getelementptr inbounds { i64, ptr }, ptr %15, i32 0, i32 1
  %61 = extractvalue { i64, ptr } %57, 1
  store ptr %61, ptr %60, align 8
  %62 = getelementptr inbounds { i64, ptr }, ptr %15, i32 0, i32 0
  %63 = load i64, ptr %62, align 8
  %64 = getelementptr inbounds { i64, ptr }, ptr %15, i32 0, i32 1
  %65 = load ptr, ptr %64, align 8
  %66 = invoke noundef ptr @_ZN7DexType8get_typeESt17basic_string_viewIcSt11char_traitsIcEE(i64 %63, ptr %65)
          to label %67 unwind label %83

67:                                               ; preds = %55
  store ptr %66, ptr %14, align 8, !tbaa !5
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = icmp eq ptr %68, null
  br i1 %69, label %70, label %90

70:                                               ; preds = %67
  br label %71

71:                                               ; preds = %70
  %72 = invoke noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 77, i32 noundef 4)
          to label %73 unwind label %83

73:                                               ; preds = %71
  br i1 %72, label %74, label %87

74:                                               ; preds = %73
  %75 = call noundef ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  %76 = load ptr, ptr %11, align 8, !tbaa !5
  %77 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %76) #5
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 77, i32 noundef 4, i1 noundef zeroext false, ptr noundef @.str.19, ptr noundef %75, ptr noundef %77)
          to label %78 unwind label %83

78:                                               ; preds = %74
  br label %87

79:                                               ; preds = %46, %43
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %6, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %7, align 4
  br label %127

83:                                               ; preds = %74, %71, %55
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %6, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %7, align 4
  br label %126

87:                                               ; preds = %78, %73
  br label %88

88:                                               ; preds = %87
  br label %89

89:                                               ; preds = %88
  store ptr null, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %125

90:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %91 = load ptr, ptr %14, align 8, !tbaa !5
  %92 = invoke noundef ptr @_Z10type_classPK7DexType(ptr noundef %91)
          to label %93 unwind label %105

93:                                               ; preds = %90
  store ptr %92, ptr %16, align 8, !tbaa !5
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = icmp eq ptr %94, null
  br i1 %95, label %96, label %121

96:                                               ; preds = %93
  br label %97

97:                                               ; preds = %96
  %98 = invoke noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 77, i32 noundef 4)
          to label %99 unwind label %105

99:                                               ; preds = %97
  br i1 %98, label %100, label %118

100:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #5
  %101 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_Z4showI7DexTypeRSoENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %17, ptr noundef %101)
          to label %102 unwind label %109

102:                                              ; preds = %100
  %103 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 77, i32 noundef 4, i1 noundef zeroext false, ptr noundef @.str.20, ptr noundef %103)
          to label %104 unwind label %113

104:                                              ; preds = %102
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #5
  br label %118

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

109:                                              ; preds = %100
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %6, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %7, align 4
  br label %117

113:                                              ; preds = %102
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %6, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %7, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #5
  br label %117

117:                                              ; preds = %113, %109
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #5
  br label %124

118:                                              ; preds = %104, %99
  br label %119

119:                                              ; preds = %118
  br label %120

120:                                              ; preds = %119
  store ptr null, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %123

121:                                              ; preds = %93
  %122 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %122, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %123

123:                                              ; preds = %121, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %125

124:                                              ; preds = %117, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %126

125:                                              ; preds = %123, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %129

126:                                              ; preds = %124, %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #5
  br label %127

127:                                              ; preds = %126, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %132

128:                                              ; preds = %39
  store ptr null, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %129

129:                                              ; preds = %128, %125
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %130

130:                                              ; preds = %129, %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  call void @_ZN12TraceContextD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %4) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %4) #5
  %131 = load ptr, ptr %2, align 8
  ret ptr %131

132:                                              ; preds = %127, %31
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  call void @_ZN12TraceContextD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %4) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %4) #5
  br label %133

133:                                              ; preds = %132
  %134 = load ptr, ptr %6, align 8
  %135 = load i32, ptr %7, align 4
  %136 = insertvalue { ptr, i32 } poison, ptr %134, 0
  %137 = insertvalue { ptr, i32 } %136, i32 %135, 1
  resume { ptr, i32 } %137
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, ptr } @_ZNK8DexClass30get_deobfuscated_name_or_emptyEv(ptr noundef nonnull align 8 dereferenceable(176)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE12find_last_ofEcm(ptr noundef nonnull align 8 dereferenceable(16), i8 noundef signext, i64 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZplB5cxx11St17basic_string_viewIcSt11char_traitsIcEEc(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i64, ptr, i8 noundef signext) #4

; Function Attrs: mustprogress uwtable
declare dso_local { i64, ptr } @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6substrEmm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

declare noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef, i32 noundef) #3

declare void @_Z5trace11TraceModuleibPKcz(i32 noundef, i32 noundef, i1 noundef zeroext, ptr noundef, ...) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4showI7DexTypeRSoENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef) #2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"long", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%class.TraceContext = type { ptr, ptr, ptr, ptr, %"class.std::__cxx11::basic_string" }
%"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] }
%"class.std::basic_string_view" = type { i64, ptr }

@.str.19 = external hidden unnamed_addr constant [33 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

; 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 nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN7DexType8get_typeESt17basic_string_viewIcSt11char_traitsIcEE(i64, ptr) local_unnamed_addr #2 align 2

declare noundef ptr @_Z10type_classPK7DexType(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN3api12LevelChecker15get_outer_classEPK8DexClass(ptr noundef nonnull %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %class.TraceContext, align 8
  %3 = alloca %"class.std::basic_string_view", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #5
  %5 = tail call noundef ptr @_ZNK8DexClass8get_typeEv(ptr noundef nonnull align 8 dereferenceable(176) %0)
  call void @_ZN12TraceContextC2EPK7DexType(ptr noundef nonnull align 8 dereferenceable(64) %2, ptr noundef %5)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  %6 = invoke { i64, ptr } @_ZNK8DexClass30get_deobfuscated_name_or_emptyEv(ptr noundef nonnull align 8 dereferenceable(176) %0)
          to label %7 unwind label %13

7:                                                ; preds = %1
  %8 = extractvalue { i64, ptr } %6, 0
  store i64 %8, ptr %3, align 8
  %9 = getelementptr inbounds i8, ptr %3, i64 8
  %10 = extractvalue { i64, ptr } %6, 1
  store ptr %10, ptr %9, align 8
  %11 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE12find_last_ofEcm(ptr noundef nonnull align 8 dereferenceable(16) %3, i8 noundef signext 36, i64 noundef -1) #5
  %12 = icmp eq i64 %11, -1
  br i1 %12, label %47, label %15

13:                                               ; preds = %1
  %14 = landingpad { ptr, i32 }
          cleanup
  br label %48

15:                                               ; preds = %7
  %16 = call noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE12find_last_ofEcm(ptr noundef nonnull align 8 dereferenceable(16) %3, i8 noundef signext 47, i64 noundef -1) #5
  %17 = icmp eq i64 %16, -1
  %18 = icmp ult i64 %16, %11
  %or.cond = or i1 %17, %18
  br i1 %or.cond, label %19, label %47

19:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  %20 = invoke { i64, ptr } @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6substrEmm(ptr noundef nonnull align 8 dereferenceable(16) %3, i64 noundef 0, i64 noundef %11)
          to label %21 unwind label %37

21:                                               ; preds = %19
  %22 = extractvalue { i64, ptr } %20, 0
  %23 = extractvalue { i64, ptr } %20, 1
  invoke void @_ZplB5cxx11St17basic_string_viewIcSt11char_traitsIcEEc(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, i64 %22, ptr %23, i8 noundef signext 59)
          to label %24 unwind label %37

24:                                               ; preds = %21
  %25 = call { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  %26 = extractvalue { i64, ptr } %25, 0
  %27 = extractvalue { i64, ptr } %25, 1
  %28 = invoke noundef ptr @_ZN7DexType8get_typeESt17basic_string_viewIcSt11char_traitsIcEE(i64 %26, ptr %27)
          to label %29 unwind label %39

29:                                               ; preds = %24
  %30 = icmp eq ptr %28, null
  br i1 %30, label %31, label %41

31:                                               ; preds = %29
  %32 = invoke noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef 77, i32 noundef 4)
          to label %33 unwind label %39

33:                                               ; preds = %31
  br i1 %32, label %34, label %45

34:                                               ; preds = %33
  %35 = call noundef ptr @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(16) %3) #5
  %36 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  invoke void (i32, i32, i1, ptr, ...) @_Z5trace11TraceModuleibPKcz(i32 noundef 77, i32 noundef 4, i1 noundef zeroext false, ptr noundef nonnull @.str.19, ptr noundef %35, ptr noundef %36)
          to label %45 unwind label %39

37:                                               ; preds = %21, %19
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %48

39:                                               ; preds = %34, %31, %24
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %46

41:                                               ; preds = %29
  %42 = invoke noundef ptr @_Z10type_classPK7DexType(ptr noundef nonnull %28)
          to label %45 unwind label %43

43:                                               ; preds = %41
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %46

45:                                               ; preds = %41, %33, %34
  %.1 = phi ptr [ null, %34 ], [ null, %33 ], [ %42, %41 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br label %47

46:                                               ; preds = %43, %39
  %.pn = phi { ptr, i32 } [ %40, %39 ], [ %44, %43 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br label %48

47:                                               ; preds = %45, %15, %7
  %.3 = phi ptr [ null, %7 ], [ %.1, %45 ], [ null, %15 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  call void @_ZN12TraceContextD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %2) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #5
  ret ptr %.3

48:                                               ; preds = %37, %46, %13
  %.pn.pn.pn = phi { ptr, i32 } [ %14, %13 ], [ %.pn, %46 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  call void @_ZN12TraceContextD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %2) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, ptr } @_ZNK8DexClass30get_deobfuscated_name_or_emptyEv(ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE12find_last_ofEcm(ptr noundef nonnull align 8 dereferenceable(16), i8 noundef signext, i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZplB5cxx11St17basic_string_viewIcSt11char_traitsIcEEc(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i64, ptr, i8 noundef signext) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local { i64, ptr } @_ZNKSt17basic_string_viewIcSt11char_traitsIcEE6substrEmm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare { i64, ptr } @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEcvSt17basic_string_viewIcS2_EEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

declare noundef zeroext i1 @_Z12traceEnabled11TraceModulei(i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @_Z5trace11TraceModuleibPKcz(i32 noundef, i32 noundef, i1 noundef zeroext, ptr noundef, ...) local_unnamed_addr #3

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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)"}


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