; LLVM IR from yinqiwen/ardb :: src/common/geo (geohash_helper)

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

%struct.GeoHashRange = type { double, double }
%struct.GeoHashBits = type { i64, i8 }
%struct.GeoHashArea = type { %struct.GeoHashBits, %struct.GeoHashRange, %struct.GeoHashRange }
%"struct.std::pair" = type { %"struct.btree::btree_iterator", i8, [7 x i8] }
%"struct.btree::btree_iterator" = type <{ ptr, i32, [4 x i8] }>
%struct.GeoHashNeighbors = type { %struct.GeoHashBits, %struct.GeoHashBits, %struct.GeoHashBits, %struct.GeoHashBits, %struct.GeoHashBits, %struct.GeoHashBits, %struct.GeoHashBits, %struct.GeoHashBits }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4ardb13GeoHashHelper13GetCoordRangeEhR12GeoHashRangeS2_(i8 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4ardb13GeoHashHelper18GetAreasByRadiusV2EhdddRN5btree9btree_setI11GeoHashBitsNS_21GeoHashBitsComparatorESaIS3_ELi256EEE(i8 noundef zeroext %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #1 align 2 {
  %6 = alloca i8, align 1
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %struct.GeoHashRange, align 8
  %12 = alloca %struct.GeoHashRange, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca %struct.GeoHashBits, align 8
  %21 = alloca %struct.GeoHashRange, align 8
  %22 = alloca %struct.GeoHashRange, align 8
  %23 = alloca %struct.GeoHashArea, align 8
  %24 = alloca %struct.GeoHashRange, align 8
  %25 = alloca %struct.GeoHashRange, align 8
  %26 = alloca %struct.GeoHashBits, align 8
  %27 = alloca %"struct.std::pair", align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca %struct.GeoHashNeighbors, align 8
  %31 = alloca i8, align 1
  %32 = alloca i8, align 1
  %33 = alloca i8, align 1
  %34 = alloca i8, align 1
  %35 = alloca %struct.GeoHashBits, align 8
  %36 = alloca %struct.GeoHashBits, align 8
  %37 = alloca %struct.GeoHashBits, align 8
  %38 = alloca %"struct.std::pair", align 8
  %39 = alloca %struct.GeoHashBits, align 8
  %40 = alloca %struct.GeoHashBits, align 8
  %41 = alloca %"struct.std::pair", align 8
  %42 = alloca %"struct.std::pair", align 8
  %43 = alloca %struct.GeoHashBits, align 8
  %44 = alloca %struct.GeoHashBits, align 8
  %45 = alloca %struct.GeoHashBits, align 8
  %46 = alloca %"struct.std::pair", align 8
  %47 = alloca %struct.GeoHashBits, align 8
  %48 = alloca %struct.GeoHashBits, align 8
  %49 = alloca %"struct.std::pair", align 8
  %50 = alloca %"struct.std::pair", align 8
  %51 = alloca %struct.GeoHashBits, align 8
  %52 = alloca %struct.GeoHashBits, align 8
  %53 = alloca %struct.GeoHashBits, align 8
  %54 = alloca %"struct.std::pair", align 8
  %55 = alloca %struct.GeoHashBits, align 8
  %56 = alloca %struct.GeoHashBits, align 8
  %57 = alloca %"struct.std::pair", align 8
  %58 = alloca %"struct.std::pair", align 8
  %59 = alloca %struct.GeoHashBits, align 8
  %60 = alloca %struct.GeoHashBits, align 8
  %61 = alloca %struct.GeoHashBits, align 8
  %62 = alloca %"struct.std::pair", align 8
  %63 = alloca %struct.GeoHashBits, align 8
  %64 = alloca %struct.GeoHashBits, align 8
  %65 = alloca %"struct.std::pair", align 8
  %66 = alloca %"struct.std::pair", align 8
  %67 = alloca %struct.GeoHashBits, align 8
  %68 = alloca %struct.GeoHashBits, align 8
  %69 = alloca %struct.GeoHashBits, align 8
  %70 = alloca %"struct.std::pair", align 8
  %71 = alloca %struct.GeoHashBits, align 8
  %72 = alloca %struct.GeoHashBits, align 8
  %73 = alloca %"struct.std::pair", align 8
  %74 = alloca %struct.GeoHashBits, align 8
  %75 = alloca %struct.GeoHashBits, align 8
  %76 = alloca %"struct.std::pair", align 8
  %77 = alloca %struct.GeoHashBits, align 8
  %78 = alloca %struct.GeoHashBits, align 8
  %79 = alloca %"struct.std::pair", align 8
  %80 = alloca %struct.GeoHashBits, align 8
  %81 = alloca %struct.GeoHashBits, align 8
  %82 = alloca %"struct.std::pair", align 8
  %83 = alloca %"struct.std::pair", align 8
  %84 = alloca %struct.GeoHashBits, align 8
  %85 = alloca %struct.GeoHashBits, align 8
  %86 = alloca %struct.GeoHashBits, align 8
  %87 = alloca %"struct.std::pair", align 8
  %88 = alloca %struct.GeoHashBits, align 8
  %89 = alloca %struct.GeoHashBits, align 8
  %90 = alloca %"struct.std::pair", align 8
  %91 = alloca %struct.GeoHashBits, align 8
  %92 = alloca %struct.GeoHashBits, align 8
  %93 = alloca %"struct.std::pair", align 8
  %94 = alloca %struct.GeoHashBits, align 8
  %95 = alloca %struct.GeoHashBits, align 8
  %96 = alloca %"struct.std::pair", align 8
  %97 = alloca %struct.GeoHashBits, align 8
  %98 = alloca %struct.GeoHashBits, align 8
  %99 = alloca %"struct.std::pair", align 8
  %100 = alloca %"struct.std::pair", align 8
  %101 = alloca %struct.GeoHashBits, align 8
  %102 = alloca %struct.GeoHashBits, align 8
  %103 = alloca %struct.GeoHashBits, align 8
  %104 = alloca %"struct.std::pair", align 8
  %105 = alloca %struct.GeoHashBits, align 8
  %106 = alloca %struct.GeoHashBits, align 8
  %107 = alloca %"struct.std::pair", align 8
  %108 = alloca %struct.GeoHashBits, align 8
  %109 = alloca %struct.GeoHashBits, align 8
  %110 = alloca %"struct.std::pair", align 8
  %111 = alloca %struct.GeoHashBits, align 8
  %112 = alloca %struct.GeoHashBits, align 8
  %113 = alloca %"struct.std::pair", align 8
  %114 = alloca %struct.GeoHashBits, align 8
  %115 = alloca %struct.GeoHashBits, align 8
  %116 = alloca %"struct.std::pair", align 8
  %117 = alloca %"struct.std::pair", align 8
  %118 = alloca %struct.GeoHashBits, align 8
  %119 = alloca %struct.GeoHashBits, align 8
  %120 = alloca %struct.GeoHashBits, align 8
  %121 = alloca %"struct.std::pair", align 8
  %122 = alloca %struct.GeoHashBits, align 8
  %123 = alloca %struct.GeoHashBits, align 8
  %124 = alloca %"struct.std::pair", align 8
  %125 = alloca %struct.GeoHashBits, align 8
  %126 = alloca %struct.GeoHashBits, align 8
  %127 = alloca %"struct.std::pair", align 8
  %128 = alloca %struct.GeoHashBits, align 8
  %129 = alloca %struct.GeoHashBits, align 8
  %130 = alloca %"struct.std::pair", align 8
  %131 = alloca %struct.GeoHashBits, align 8
  %132 = alloca %struct.GeoHashBits, align 8
  %133 = alloca %"struct.std::pair", align 8
  %134 = alloca %"struct.std::pair", align 8
  store i8 %0, ptr %6, align 1, !tbaa !5
  store double %1, ptr %7, align 8, !tbaa !8
  store double %2, ptr %8, align 8, !tbaa !8
  store double %3, ptr %9, align 8, !tbaa !8
  store ptr %4, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  %135 = load i8, ptr %6, align 1, !tbaa !5
  %136 = call noundef i32 @_ZN4ardb13GeoHashHelper13GetCoordRangeEhR12GeoHashRangeS2_(i8 noundef zeroext %135, ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %137 = load double, ptr %9, align 8, !tbaa !8
  store double %137, ptr %13, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %138 = load double, ptr %9, align 8, !tbaa !8
  store double %138, ptr %14, align 8, !tbaa !8
  %139 = load i8, ptr %6, align 1, !tbaa !5
  %140 = zext i8 %139 to i32
  %141 = icmp eq i32 %140, 1
  br i1 %141, label %142, label %150

142:                                              ; preds = %5
  %143 = load double, ptr %9, align 8, !tbaa !8
  %144 = load double, ptr %7, align 8, !tbaa !8
  %145 = call double @cos(double noundef %144) #6
  %146 = fmul double 1.113200e+05, %145
  %147 = fdiv double %143, %146
  store double %147, ptr %14, align 8, !tbaa !8
  %148 = load double, ptr %9, align 8, !tbaa !8
  %149 = fdiv double %148, 1.105400e+05
  store double %149, ptr %13, align 8, !tbaa !8
  br label %150

150:                                              ; preds = %142, %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %151 = load double, ptr %7, align 8, !tbaa !8
  %152 = load double, ptr %14, align 8, !tbaa !8
  %153 = fsub double %151, %152
  store double %153, ptr %15, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %154 = load double, ptr %7, align 8, !tbaa !8
  %155 = load double, ptr %14, align 8, !tbaa !8
  %156 = fadd double %154, %155
  store double %156, ptr %16, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %157 = load double, ptr %8, align 8, !tbaa !8
  %158 = load double, ptr %13, align 8, !tbaa !8
  %159 = fsub double %157, %158
  store double %159, ptr %17, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %160 = load double, ptr %8, align 8, !tbaa !8
  %161 = load double, ptr %13, align 8, !tbaa !8
  %162 = fadd double %160, %161
  store double %162, ptr %18, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %163 = load double, ptr %9, align 8, !tbaa !8
  %164 = call noundef zeroext i8 @_ZN4ardbL32estimate_geohash_steps_by_radiusEd(double noundef %163)
  %165 = zext i8 %164 to i32
  store i32 %165, ptr %19, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %11, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %11, i64 16, i1 false), !tbaa.struct !14
  %166 = load double, ptr %7, align 8, !tbaa !8
  %167 = load double, ptr %8, align 8, !tbaa !8
  %168 = load i32, ptr %19, align 4, !tbaa !12
  %169 = trunc i32 %168 to i8
  %170 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %171 = load double, ptr %170, align 8
  %172 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %173 = load double, ptr %172, align 8
  %174 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %175 = load double, ptr %174, align 8
  %176 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %177 = load double, ptr %176, align 8
  %178 = call i32 @geohash_fast_encode(double %171, double %173, double %175, double %177, double noundef %166, double noundef %167, i8 noundef zeroext %169, ptr noundef %20)
  call void @llvm.lifetime.start.p0(i64 48, ptr %23) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %11, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %11, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !15
  %179 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %180 = load double, ptr %179, align 8
  %181 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %182 = load double, ptr %181, align 8
  %183 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %184 = load double, ptr %183, align 8
  %185 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %186 = load double, ptr %185, align 8
  %187 = getelementptr inbounds { i64, i8 }, ptr %26, i32 0, i32 0
  %188 = load i64, ptr %187, align 8
  %189 = getelementptr inbounds { i64, i8 }, ptr %26, i32 0, i32 1
  %190 = load i8, ptr %189, align 8
  %191 = call i32 @geohash_fast_decode(double %180, double %182, double %184, double %186, i64 %188, i8 %190, ptr noundef %23)
  %192 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %27, ptr noundef nonnull align 8 dereferenceable(8) %192, ptr noundef nonnull align 8 dereferenceable(16) %20)
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %193 = getelementptr inbounds %struct.GeoHashArea, ptr %23, i32 0, i32 2
  %194 = getelementptr inbounds %struct.GeoHashRange, ptr %193, i32 0, i32 0
  %195 = load double, ptr %194, align 8, !tbaa !18
  %196 = getelementptr inbounds %struct.GeoHashArea, ptr %23, i32 0, i32 2
  %197 = getelementptr inbounds %struct.GeoHashRange, ptr %196, i32 0, i32 1
  %198 = load double, ptr %197, align 8, !tbaa !22
  %199 = fsub double %195, %198
  %200 = fdiv double %199, 2.000000e+00
  store double %200, ptr %28, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %201 = getelementptr inbounds %struct.GeoHashArea, ptr %23, i32 0, i32 1
  %202 = getelementptr inbounds %struct.GeoHashRange, ptr %201, i32 0, i32 0
  %203 = load double, ptr %202, align 8, !tbaa !23
  %204 = getelementptr inbounds %struct.GeoHashArea, ptr %23, i32 0, i32 1
  %205 = getelementptr inbounds %struct.GeoHashRange, ptr %204, i32 0, i32 1
  %206 = load double, ptr %205, align 8, !tbaa !24
  %207 = fsub double %203, %206
  %208 = fdiv double %207, 2.000000e+00
  store double %208, ptr %29, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 128, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #6
  store i8 0, ptr %31, align 1, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 1, ptr %32) #6
  store i8 0, ptr %32, align 1, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #6
  store i8 0, ptr %33, align 1, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #6
  store i8 0, ptr %34, align 1, !tbaa !25
  %209 = load double, ptr %18, align 8, !tbaa !8
  %210 = getelementptr inbounds %struct.GeoHashArea, ptr %23, i32 0, i32 2
  %211 = getelementptr inbounds %struct.GeoHashRange, ptr %210, i32 0, i32 0
  %212 = load double, ptr %211, align 8, !tbaa !18
  %213 = fcmp ogt double %209, %212
  br i1 %213, label %214, label %255

214:                                              ; preds = %150
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !15
  %215 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 1
  %216 = getelementptr inbounds { i64, i8 }, ptr %35, i32 0, i32 0
  %217 = load i64, ptr %216, align 8
  %218 = getelementptr inbounds { i64, i8 }, ptr %35, i32 0, i32 1
  %219 = load i8, ptr %218, align 8
  %220 = call i32 @geohash_get_neighbor(i64 %217, i8 %219, i32 noundef 1, ptr noundef %215)
  %221 = getelementptr inbounds %struct.GeoHashArea, ptr %23, i32 0, i32 2
  %222 = getelementptr inbounds %struct.GeoHashRange, ptr %221, i32 0, i32 0
  %223 = load double, ptr %222, align 8, !tbaa !18
  %224 = load double, ptr %28, align 8, !tbaa !8
  %225 = fadd double %223, %224
  %226 = load double, ptr %18, align 8, !tbaa !8
  %227 = fcmp ogt double %225, %226
  br i1 %227, label %228, label %251

228:                                              ; preds = %214
  %229 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #6
  %230 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %37, ptr align 8 %230, i64 16, i1 false), !tbaa.struct !15
  %231 = getelementptr inbounds { i64, i8 }, ptr %37, i32 0, i32 0
  %232 = load i64, ptr %231, align 8
  %233 = getelementptr inbounds { i64, i8 }, ptr %37, i32 0, i32 1
  %234 = load i8, ptr %233, align 8
  %235 = call { i64, i8 } @geohash_next_leftbottom(i64 %232, i8 %234)
  %236 = getelementptr inbounds { i64, i8 }, ptr %36, i32 0, i32 0
  %237 = extractvalue { i64, i8 } %235, 0
  store i64 %237, ptr %236, align 8
  %238 = getelementptr inbounds { i64, i8 }, ptr %36, i32 0, i32 1
  %239 = extractvalue { i64, i8 } %235, 1
  store i8 %239, ptr %238, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %38) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %38, ptr noundef nonnull align 8 dereferenceable(8) %229, ptr noundef nonnull align 8 dereferenceable(16) %36)
  call void @llvm.lifetime.end.p0(i64 24, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #6
  %240 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #6
  %241 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %40, ptr align 8 %241, i64 16, i1 false), !tbaa.struct !15
  %242 = getelementptr inbounds { i64, i8 }, ptr %40, i32 0, i32 0
  %243 = load i64, ptr %242, align 8
  %244 = getelementptr inbounds { i64, i8 }, ptr %40, i32 0, i32 1
  %245 = load i8, ptr %244, align 8
  %246 = call { i64, i8 } @geohash_next_lefttop(i64 %243, i8 %245)
  %247 = getelementptr inbounds { i64, i8 }, ptr %39, i32 0, i32 0
  %248 = extractvalue { i64, i8 } %246, 0
  store i64 %248, ptr %247, align 8
  %249 = getelementptr inbounds { i64, i8 }, ptr %39, i32 0, i32 1
  %250 = extractvalue { i64, i8 } %246, 1
  store i8 %250, ptr %249, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %41) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %41, ptr noundef nonnull align 8 dereferenceable(8) %240, ptr noundef nonnull align 8 dereferenceable(16) %39)
  call void @llvm.lifetime.end.p0(i64 24, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #6
  store i8 1, ptr %31, align 1, !tbaa !25
  br label %254

251:                                              ; preds = %214
  %252 = load ptr, ptr %10, align 8, !tbaa !10
  %253 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 24, ptr %42) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %42, ptr noundef nonnull align 8 dereferenceable(8) %252, ptr noundef nonnull align 8 dereferenceable(16) %253)
  call void @llvm.lifetime.end.p0(i64 24, ptr %42) #6
  br label %254

254:                                              ; preds = %251, %228
  br label %255

255:                                              ; preds = %254, %150
  %256 = load double, ptr %17, align 8, !tbaa !8
  %257 = getelementptr inbounds %struct.GeoHashArea, ptr %23, i32 0, i32 2
  %258 = getelementptr inbounds %struct.GeoHashRange, ptr %257, i32 0, i32 1
  %259 = load double, ptr %258, align 8, !tbaa !22
  %260 = fcmp olt double %256, %259
  br i1 %260, label %261, label %302

261:                                              ; preds = %255
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %43, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !15
  %262 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 2
  %263 = getelementptr inbounds { i64, i8 }, ptr %43, i32 0, i32 0
  %264 = load i64, ptr %263, align 8
  %265 = getelementptr inbounds { i64, i8 }, ptr %43, i32 0, i32 1
  %266 = load i8, ptr %265, align 8
  %267 = call i32 @geohash_get_neighbor(i64 %264, i8 %266, i32 noundef 2, ptr noundef %262)
  %268 = getelementptr inbounds %struct.GeoHashArea, ptr %23, i32 0, i32 2
  %269 = getelementptr inbounds %struct.GeoHashRange, ptr %268, i32 0, i32 1
  %270 = load double, ptr %269, align 8, !tbaa !22
  %271 = load double, ptr %28, align 8, !tbaa !8
  %272 = fsub double %270, %271
  %273 = load double, ptr %17, align 8, !tbaa !8
  %274 = fcmp olt double %272, %273
  br i1 %274, label %275, label %298

275:                                              ; preds = %261
  %276 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #6
  %277 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %45, ptr align 8 %277, i64 16, i1 false), !tbaa.struct !15
  %278 = getelementptr inbounds { i64, i8 }, ptr %45, i32 0, i32 0
  %279 = load i64, ptr %278, align 8
  %280 = getelementptr inbounds { i64, i8 }, ptr %45, i32 0, i32 1
  %281 = load i8, ptr %280, align 8
  %282 = call { i64, i8 } @geohash_next_rightbottom(i64 %279, i8 %281)
  %283 = getelementptr inbounds { i64, i8 }, ptr %44, i32 0, i32 0
  %284 = extractvalue { i64, i8 } %282, 0
  store i64 %284, ptr %283, align 8
  %285 = getelementptr inbounds { i64, i8 }, ptr %44, i32 0, i32 1
  %286 = extractvalue { i64, i8 } %282, 1
  store i8 %286, ptr %285, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %46) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %46, ptr noundef nonnull align 8 dereferenceable(8) %276, ptr noundef nonnull align 8 dereferenceable(16) %44)
  call void @llvm.lifetime.end.p0(i64 24, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #6
  %287 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %47) #6
  %288 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %48, ptr align 8 %288, i64 16, i1 false), !tbaa.struct !15
  %289 = getelementptr inbounds { i64, i8 }, ptr %48, i32 0, i32 0
  %290 = load i64, ptr %289, align 8
  %291 = getelementptr inbounds { i64, i8 }, ptr %48, i32 0, i32 1
  %292 = load i8, ptr %291, align 8
  %293 = call { i64, i8 } @geohash_next_righttop(i64 %290, i8 %292)
  %294 = getelementptr inbounds { i64, i8 }, ptr %47, i32 0, i32 0
  %295 = extractvalue { i64, i8 } %293, 0
  store i64 %295, ptr %294, align 8
  %296 = getelementptr inbounds { i64, i8 }, ptr %47, i32 0, i32 1
  %297 = extractvalue { i64, i8 } %293, 1
  store i8 %297, ptr %296, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %49) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %49, ptr noundef nonnull align 8 dereferenceable(8) %287, ptr noundef nonnull align 8 dereferenceable(16) %47)
  call void @llvm.lifetime.end.p0(i64 24, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %47) #6
  store i8 1, ptr %32, align 1, !tbaa !25
  br label %301

298:                                              ; preds = %261
  %299 = load ptr, ptr %10, align 8, !tbaa !10
  %300 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 24, ptr %50) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %50, ptr noundef nonnull align 8 dereferenceable(8) %299, ptr noundef nonnull align 8 dereferenceable(16) %300)
  call void @llvm.lifetime.end.p0(i64 24, ptr %50) #6
  br label %301

301:                                              ; preds = %298, %275
  br label %302

302:                                              ; preds = %301, %255
  %303 = load double, ptr %16, align 8, !tbaa !8
  %304 = getelementptr inbounds %struct.GeoHashArea, ptr %23, i32 0, i32 1
  %305 = getelementptr inbounds %struct.GeoHashRange, ptr %304, i32 0, i32 0
  %306 = load double, ptr %305, align 8, !tbaa !23
  %307 = fcmp ogt double %303, %306
  br i1 %307, label %308, label %349

308:                                              ; preds = %302
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %51, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !15
  %309 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 0
  %310 = getelementptr inbounds { i64, i8 }, ptr %51, i32 0, i32 0
  %311 = load i64, ptr %310, align 8
  %312 = getelementptr inbounds { i64, i8 }, ptr %51, i32 0, i32 1
  %313 = load i8, ptr %312, align 8
  %314 = call i32 @geohash_get_neighbor(i64 %311, i8 %313, i32 noundef 0, ptr noundef %309)
  %315 = getelementptr inbounds %struct.GeoHashArea, ptr %23, i32 0, i32 1
  %316 = getelementptr inbounds %struct.GeoHashRange, ptr %315, i32 0, i32 0
  %317 = load double, ptr %316, align 8, !tbaa !23
  %318 = load double, ptr %29, align 8, !tbaa !8
  %319 = fadd double %317, %318
  %320 = load double, ptr %16, align 8, !tbaa !8
  %321 = fcmp ogt double %319, %320
  br i1 %321, label %322, label %345

322:                                              ; preds = %308
  %323 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %52) #6
  %324 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %53, ptr align 8 %324, i64 16, i1 false), !tbaa.struct !15
  %325 = getelementptr inbounds { i64, i8 }, ptr %53, i32 0, i32 0
  %326 = load i64, ptr %325, align 8
  %327 = getelementptr inbounds { i64, i8 }, ptr %53, i32 0, i32 1
  %328 = load i8, ptr %327, align 8
  %329 = call { i64, i8 } @geohash_next_rightbottom(i64 %326, i8 %328)
  %330 = getelementptr inbounds { i64, i8 }, ptr %52, i32 0, i32 0
  %331 = extractvalue { i64, i8 } %329, 0
  store i64 %331, ptr %330, align 8
  %332 = getelementptr inbounds { i64, i8 }, ptr %52, i32 0, i32 1
  %333 = extractvalue { i64, i8 } %329, 1
  store i8 %333, ptr %332, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %54) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %54, ptr noundef nonnull align 8 dereferenceable(8) %323, ptr noundef nonnull align 8 dereferenceable(16) %52)
  call void @llvm.lifetime.end.p0(i64 24, ptr %54) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %52) #6
  %334 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %55) #6
  %335 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %56, ptr align 8 %335, i64 16, i1 false), !tbaa.struct !15
  %336 = getelementptr inbounds { i64, i8 }, ptr %56, i32 0, i32 0
  %337 = load i64, ptr %336, align 8
  %338 = getelementptr inbounds { i64, i8 }, ptr %56, i32 0, i32 1
  %339 = load i8, ptr %338, align 8
  %340 = call { i64, i8 } @geohash_next_leftbottom(i64 %337, i8 %339)
  %341 = getelementptr inbounds { i64, i8 }, ptr %55, i32 0, i32 0
  %342 = extractvalue { i64, i8 } %340, 0
  store i64 %342, ptr %341, align 8
  %343 = getelementptr inbounds { i64, i8 }, ptr %55, i32 0, i32 1
  %344 = extractvalue { i64, i8 } %340, 1
  store i8 %344, ptr %343, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %57) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %57, ptr noundef nonnull align 8 dereferenceable(8) %334, ptr noundef nonnull align 8 dereferenceable(16) %55)
  call void @llvm.lifetime.end.p0(i64 24, ptr %57) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %55) #6
  store i8 1, ptr %33, align 1, !tbaa !25
  br label %348

345:                                              ; preds = %308
  %346 = load ptr, ptr %10, align 8, !tbaa !10
  %347 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 24, ptr %58) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %58, ptr noundef nonnull align 8 dereferenceable(8) %346, ptr noundef nonnull align 8 dereferenceable(16) %347)
  call void @llvm.lifetime.end.p0(i64 24, ptr %58) #6
  br label %348

348:                                              ; preds = %345, %322
  br label %349

349:                                              ; preds = %348, %302
  %350 = load double, ptr %15, align 8, !tbaa !8
  %351 = getelementptr inbounds %struct.GeoHashArea, ptr %23, i32 0, i32 1
  %352 = getelementptr inbounds %struct.GeoHashRange, ptr %351, i32 0, i32 1
  %353 = load double, ptr %352, align 8, !tbaa !24
  %354 = fcmp olt double %350, %353
  br i1 %354, label %355, label %396

355:                                              ; preds = %349
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %59, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !15
  %356 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 3
  %357 = getelementptr inbounds { i64, i8 }, ptr %59, i32 0, i32 0
  %358 = load i64, ptr %357, align 8
  %359 = getelementptr inbounds { i64, i8 }, ptr %59, i32 0, i32 1
  %360 = load i8, ptr %359, align 8
  %361 = call i32 @geohash_get_neighbor(i64 %358, i8 %360, i32 noundef 3, ptr noundef %356)
  %362 = getelementptr inbounds %struct.GeoHashArea, ptr %23, i32 0, i32 1
  %363 = getelementptr inbounds %struct.GeoHashRange, ptr %362, i32 0, i32 1
  %364 = load double, ptr %363, align 8, !tbaa !24
  %365 = load double, ptr %29, align 8, !tbaa !8
  %366 = fsub double %364, %365
  %367 = load double, ptr %15, align 8, !tbaa !8
  %368 = fcmp olt double %366, %367
  br i1 %368, label %369, label %392

369:                                              ; preds = %355
  %370 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %60) #6
  %371 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %61, ptr align 8 %371, i64 16, i1 false), !tbaa.struct !15
  %372 = getelementptr inbounds { i64, i8 }, ptr %61, i32 0, i32 0
  %373 = load i64, ptr %372, align 8
  %374 = getelementptr inbounds { i64, i8 }, ptr %61, i32 0, i32 1
  %375 = load i8, ptr %374, align 8
  %376 = call { i64, i8 } @geohash_next_righttop(i64 %373, i8 %375)
  %377 = getelementptr inbounds { i64, i8 }, ptr %60, i32 0, i32 0
  %378 = extractvalue { i64, i8 } %376, 0
  store i64 %378, ptr %377, align 8
  %379 = getelementptr inbounds { i64, i8 }, ptr %60, i32 0, i32 1
  %380 = extractvalue { i64, i8 } %376, 1
  store i8 %380, ptr %379, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %62) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %62, ptr noundef nonnull align 8 dereferenceable(8) %370, ptr noundef nonnull align 8 dereferenceable(16) %60)
  call void @llvm.lifetime.end.p0(i64 24, ptr %62) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %60) #6
  %381 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %63) #6
  %382 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %64, ptr align 8 %382, i64 16, i1 false), !tbaa.struct !15
  %383 = getelementptr inbounds { i64, i8 }, ptr %64, i32 0, i32 0
  %384 = load i64, ptr %383, align 8
  %385 = getelementptr inbounds { i64, i8 }, ptr %64, i32 0, i32 1
  %386 = load i8, ptr %385, align 8
  %387 = call { i64, i8 } @geohash_next_lefttop(i64 %384, i8 %386)
  %388 = getelementptr inbounds { i64, i8 }, ptr %63, i32 0, i32 0
  %389 = extractvalue { i64, i8 } %387, 0
  store i64 %389, ptr %388, align 8
  %390 = getelementptr inbounds { i64, i8 }, ptr %63, i32 0, i32 1
  %391 = extractvalue { i64, i8 } %387, 1
  store i8 %391, ptr %390, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %65) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %65, ptr noundef nonnull align 8 dereferenceable(8) %381, ptr noundef nonnull align 8 dereferenceable(16) %63)
  call void @llvm.lifetime.end.p0(i64 24, ptr %65) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %63) #6
  store i8 1, ptr %34, align 1, !tbaa !25
  br label %395

392:                                              ; preds = %355
  %393 = load ptr, ptr %10, align 8, !tbaa !10
  %394 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 24, ptr %66) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %66, ptr noundef nonnull align 8 dereferenceable(8) %393, ptr noundef nonnull align 8 dereferenceable(16) %394)
  call void @llvm.lifetime.end.p0(i64 24, ptr %66) #6
  br label %395

395:                                              ; preds = %392, %369
  br label %396

396:                                              ; preds = %395, %349
  %397 = load double, ptr %18, align 8, !tbaa !8
  %398 = getelementptr inbounds %struct.GeoHashArea, ptr %23, i32 0, i32 2
  %399 = getelementptr inbounds %struct.GeoHashRange, ptr %398, i32 0, i32 0
  %400 = load double, ptr %399, align 8, !tbaa !18
  %401 = fcmp ogt double %397, %400
  br i1 %401, label %402, label %490

402:                                              ; preds = %396
  %403 = load double, ptr %16, align 8, !tbaa !8
  %404 = getelementptr inbounds %struct.GeoHashArea, ptr %23, i32 0, i32 1
  %405 = getelementptr inbounds %struct.GeoHashRange, ptr %404, i32 0, i32 0
  %406 = load double, ptr %405, align 8, !tbaa !23
  %407 = fcmp ogt double %403, %406
  br i1 %407, label %408, label %490

408:                                              ; preds = %402
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %67, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !15
  %409 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 4
  %410 = getelementptr inbounds { i64, i8 }, ptr %67, i32 0, i32 0
  %411 = load i64, ptr %410, align 8
  %412 = getelementptr inbounds { i64, i8 }, ptr %67, i32 0, i32 1
  %413 = load i8, ptr %412, align 8
  %414 = call i32 @geohash_get_neighbor(i64 %411, i8 %413, i32 noundef 7, ptr noundef %409)
  %415 = load i8, ptr %33, align 1, !tbaa !25, !range !27, !noundef !28
  %416 = trunc i8 %415 to i1
  br i1 %416, label %417, label %432

417:                                              ; preds = %408
  %418 = load i8, ptr %31, align 1, !tbaa !25, !range !27, !noundef !28
  %419 = trunc i8 %418 to i1
  br i1 %419, label %420, label %432

420:                                              ; preds = %417
  %421 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %68) #6
  %422 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %69, ptr align 8 %422, i64 16, i1 false), !tbaa.struct !15
  %423 = getelementptr inbounds { i64, i8 }, ptr %69, i32 0, i32 0
  %424 = load i64, ptr %423, align 8
  %425 = getelementptr inbounds { i64, i8 }, ptr %69, i32 0, i32 1
  %426 = load i8, ptr %425, align 8
  %427 = call { i64, i8 } @geohash_next_leftbottom(i64 %424, i8 %426)
  %428 = getelementptr inbounds { i64, i8 }, ptr %68, i32 0, i32 0
  %429 = extractvalue { i64, i8 } %427, 0
  store i64 %429, ptr %428, align 8
  %430 = getelementptr inbounds { i64, i8 }, ptr %68, i32 0, i32 1
  %431 = extractvalue { i64, i8 } %427, 1
  store i8 %431, ptr %430, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %70) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %70, ptr noundef nonnull align 8 dereferenceable(8) %421, ptr noundef nonnull align 8 dereferenceable(16) %68)
  call void @llvm.lifetime.end.p0(i64 24, ptr %70) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %68) #6
  br label %489

432:                                              ; preds = %417, %408
  %433 = load i8, ptr %33, align 1, !tbaa !25, !range !27, !noundef !28
  %434 = trunc i8 %433 to i1
  br i1 %434, label %435, label %458

435:                                              ; preds = %432
  %436 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %71) #6
  %437 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %72, ptr align 8 %437, i64 16, i1 false), !tbaa.struct !15
  %438 = getelementptr inbounds { i64, i8 }, ptr %72, i32 0, i32 0
  %439 = load i64, ptr %438, align 8
  %440 = getelementptr inbounds { i64, i8 }, ptr %72, i32 0, i32 1
  %441 = load i8, ptr %440, align 8
  %442 = call { i64, i8 } @geohash_next_rightbottom(i64 %439, i8 %441)
  %443 = getelementptr inbounds { i64, i8 }, ptr %71, i32 0, i32 0
  %444 = extractvalue { i64, i8 } %442, 0
  store i64 %444, ptr %443, align 8
  %445 = getelementptr inbounds { i64, i8 }, ptr %71, i32 0, i32 1
  %446 = extractvalue { i64, i8 } %442, 1
  store i8 %446, ptr %445, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %73) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %73, ptr noundef nonnull align 8 dereferenceable(8) %436, ptr noundef nonnull align 8 dereferenceable(16) %71)
  call void @llvm.lifetime.end.p0(i64 24, ptr %73) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %71) #6
  %447 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %74) #6
  %448 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %75, ptr align 8 %448, i64 16, i1 false), !tbaa.struct !15
  %449 = getelementptr inbounds { i64, i8 }, ptr %75, i32 0, i32 0
  %450 = load i64, ptr %449, align 8
  %451 = getelementptr inbounds { i64, i8 }, ptr %75, i32 0, i32 1
  %452 = load i8, ptr %451, align 8
  %453 = call { i64, i8 } @geohash_next_leftbottom(i64 %450, i8 %452)
  %454 = getelementptr inbounds { i64, i8 }, ptr %74, i32 0, i32 0
  %455 = extractvalue { i64, i8 } %453, 0
  store i64 %455, ptr %454, align 8
  %456 = getelementptr inbounds { i64, i8 }, ptr %74, i32 0, i32 1
  %457 = extractvalue { i64, i8 } %453, 1
  store i8 %457, ptr %456, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %76) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %76, ptr noundef nonnull align 8 dereferenceable(8) %447, ptr noundef nonnull align 8 dereferenceable(16) %74)
  call void @llvm.lifetime.end.p0(i64 24, ptr %76) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %74) #6
  br label %488

458:                                              ; preds = %432
  %459 = load i8, ptr %31, align 1, !tbaa !25, !range !27, !noundef !28
  %460 = trunc i8 %459 to i1
  br i1 %460, label %461, label %484

461:                                              ; preds = %458
  %462 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %77) #6
  %463 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %78, ptr align 8 %463, i64 16, i1 false), !tbaa.struct !15
  %464 = getelementptr inbounds { i64, i8 }, ptr %78, i32 0, i32 0
  %465 = load i64, ptr %464, align 8
  %466 = getelementptr inbounds { i64, i8 }, ptr %78, i32 0, i32 1
  %467 = load i8, ptr %466, align 8
  %468 = call { i64, i8 } @geohash_next_leftbottom(i64 %465, i8 %467)
  %469 = getelementptr inbounds { i64, i8 }, ptr %77, i32 0, i32 0
  %470 = extractvalue { i64, i8 } %468, 0
  store i64 %470, ptr %469, align 8
  %471 = getelementptr inbounds { i64, i8 }, ptr %77, i32 0, i32 1
  %472 = extractvalue { i64, i8 } %468, 1
  store i8 %472, ptr %471, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %79) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %79, ptr noundef nonnull align 8 dereferenceable(8) %462, ptr noundef nonnull align 8 dereferenceable(16) %77)
  call void @llvm.lifetime.end.p0(i64 24, ptr %79) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %77) #6
  %473 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %80) #6
  %474 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %81, ptr align 8 %474, i64 16, i1 false), !tbaa.struct !15
  %475 = getelementptr inbounds { i64, i8 }, ptr %81, i32 0, i32 0
  %476 = load i64, ptr %475, align 8
  %477 = getelementptr inbounds { i64, i8 }, ptr %81, i32 0, i32 1
  %478 = load i8, ptr %477, align 8
  %479 = call { i64, i8 } @geohash_next_lefttop(i64 %476, i8 %478)
  %480 = getelementptr inbounds { i64, i8 }, ptr %80, i32 0, i32 0
  %481 = extractvalue { i64, i8 } %479, 0
  store i64 %481, ptr %480, align 8
  %482 = getelementptr inbounds { i64, i8 }, ptr %80, i32 0, i32 1
  %483 = extractvalue { i64, i8 } %479, 1
  store i8 %483, ptr %482, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %82) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %82, ptr noundef nonnull align 8 dereferenceable(8) %473, ptr noundef nonnull align 8 dereferenceable(16) %80)
  call void @llvm.lifetime.end.p0(i64 24, ptr %82) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %80) #6
  br label %487

484:                                              ; preds = %458
  %485 = load ptr, ptr %10, align 8, !tbaa !10
  %486 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 24, ptr %83) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %83, ptr noundef nonnull align 8 dereferenceable(8) %485, ptr noundef nonnull align 8 dereferenceable(16) %486)
  call void @llvm.lifetime.end.p0(i64 24, ptr %83) #6
  br label %487

487:                                              ; preds = %484, %461
  br label %488

488:                                              ; preds = %487, %435
  br label %489

489:                                              ; preds = %488, %420
  br label %490

490:                                              ; preds = %489, %402, %396
  %491 = load double, ptr %18, align 8, !tbaa !8
  %492 = getelementptr inbounds %struct.GeoHashArea, ptr %23, i32 0, i32 2
  %493 = getelementptr inbounds %struct.GeoHashRange, ptr %492, i32 0, i32 0
  %494 = load double, ptr %493, align 8, !tbaa !18
  %495 = fcmp ogt double %491, %494
  br i1 %495, label %496, label %584

496:                                              ; preds = %490
  %497 = load double, ptr %15, align 8, !tbaa !8
  %498 = getelementptr inbounds %struct.GeoHashArea, ptr %23, i32 0, i32 1
  %499 = getelementptr inbounds %struct.GeoHashRange, ptr %498, i32 0, i32 1
  %500 = load double, ptr %499, align 8, !tbaa !24
  %501 = fcmp olt double %497, %500
  br i1 %501, label %502, label %584

502:                                              ; preds = %496
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %84, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !15
  %503 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 5
  %504 = getelementptr inbounds { i64, i8 }, ptr %84, i32 0, i32 0
  %505 = load i64, ptr %504, align 8
  %506 = getelementptr inbounds { i64, i8 }, ptr %84, i32 0, i32 1
  %507 = load i8, ptr %506, align 8
  %508 = call i32 @geohash_get_neighbor(i64 %505, i8 %507, i32 noundef 5, ptr noundef %503)
  %509 = load i8, ptr %34, align 1, !tbaa !25, !range !27, !noundef !28
  %510 = trunc i8 %509 to i1
  br i1 %510, label %511, label %526

511:                                              ; preds = %502
  %512 = load i8, ptr %31, align 1, !tbaa !25, !range !27, !noundef !28
  %513 = trunc i8 %512 to i1
  br i1 %513, label %514, label %526

514:                                              ; preds = %511
  %515 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %85) #6
  %516 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %86, ptr align 8 %516, i64 16, i1 false), !tbaa.struct !15
  %517 = getelementptr inbounds { i64, i8 }, ptr %86, i32 0, i32 0
  %518 = load i64, ptr %517, align 8
  %519 = getelementptr inbounds { i64, i8 }, ptr %86, i32 0, i32 1
  %520 = load i8, ptr %519, align 8
  %521 = call { i64, i8 } @geohash_next_lefttop(i64 %518, i8 %520)
  %522 = getelementptr inbounds { i64, i8 }, ptr %85, i32 0, i32 0
  %523 = extractvalue { i64, i8 } %521, 0
  store i64 %523, ptr %522, align 8
  %524 = getelementptr inbounds { i64, i8 }, ptr %85, i32 0, i32 1
  %525 = extractvalue { i64, i8 } %521, 1
  store i8 %525, ptr %524, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %87) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %87, ptr noundef nonnull align 8 dereferenceable(8) %515, ptr noundef nonnull align 8 dereferenceable(16) %85)
  call void @llvm.lifetime.end.p0(i64 24, ptr %87) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %85) #6
  br label %583

526:                                              ; preds = %511, %502
  %527 = load i8, ptr %34, align 1, !tbaa !25, !range !27, !noundef !28
  %528 = trunc i8 %527 to i1
  br i1 %528, label %529, label %552

529:                                              ; preds = %526
  %530 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %88) #6
  %531 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %89, ptr align 8 %531, i64 16, i1 false), !tbaa.struct !15
  %532 = getelementptr inbounds { i64, i8 }, ptr %89, i32 0, i32 0
  %533 = load i64, ptr %532, align 8
  %534 = getelementptr inbounds { i64, i8 }, ptr %89, i32 0, i32 1
  %535 = load i8, ptr %534, align 8
  %536 = call { i64, i8 } @geohash_next_righttop(i64 %533, i8 %535)
  %537 = getelementptr inbounds { i64, i8 }, ptr %88, i32 0, i32 0
  %538 = extractvalue { i64, i8 } %536, 0
  store i64 %538, ptr %537, align 8
  %539 = getelementptr inbounds { i64, i8 }, ptr %88, i32 0, i32 1
  %540 = extractvalue { i64, i8 } %536, 1
  store i8 %540, ptr %539, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %90) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %90, ptr noundef nonnull align 8 dereferenceable(8) %530, ptr noundef nonnull align 8 dereferenceable(16) %88)
  call void @llvm.lifetime.end.p0(i64 24, ptr %90) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %88) #6
  %541 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %91) #6
  %542 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %92, ptr align 8 %542, i64 16, i1 false), !tbaa.struct !15
  %543 = getelementptr inbounds { i64, i8 }, ptr %92, i32 0, i32 0
  %544 = load i64, ptr %543, align 8
  %545 = getelementptr inbounds { i64, i8 }, ptr %92, i32 0, i32 1
  %546 = load i8, ptr %545, align 8
  %547 = call { i64, i8 } @geohash_next_lefttop(i64 %544, i8 %546)
  %548 = getelementptr inbounds { i64, i8 }, ptr %91, i32 0, i32 0
  %549 = extractvalue { i64, i8 } %547, 0
  store i64 %549, ptr %548, align 8
  %550 = getelementptr inbounds { i64, i8 }, ptr %91, i32 0, i32 1
  %551 = extractvalue { i64, i8 } %547, 1
  store i8 %551, ptr %550, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %93) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %93, ptr noundef nonnull align 8 dereferenceable(8) %541, ptr noundef nonnull align 8 dereferenceable(16) %91)
  call void @llvm.lifetime.end.p0(i64 24, ptr %93) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %91) #6
  br label %582

552:                                              ; preds = %526
  %553 = load i8, ptr %31, align 1, !tbaa !25, !range !27, !noundef !28
  %554 = trunc i8 %553 to i1
  br i1 %554, label %555, label %578

555:                                              ; preds = %552
  %556 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %94) #6
  %557 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %95, ptr align 8 %557, i64 16, i1 false), !tbaa.struct !15
  %558 = getelementptr inbounds { i64, i8 }, ptr %95, i32 0, i32 0
  %559 = load i64, ptr %558, align 8
  %560 = getelementptr inbounds { i64, i8 }, ptr %95, i32 0, i32 1
  %561 = load i8, ptr %560, align 8
  %562 = call { i64, i8 } @geohash_next_leftbottom(i64 %559, i8 %561)
  %563 = getelementptr inbounds { i64, i8 }, ptr %94, i32 0, i32 0
  %564 = extractvalue { i64, i8 } %562, 0
  store i64 %564, ptr %563, align 8
  %565 = getelementptr inbounds { i64, i8 }, ptr %94, i32 0, i32 1
  %566 = extractvalue { i64, i8 } %562, 1
  store i8 %566, ptr %565, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %96) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %96, ptr noundef nonnull align 8 dereferenceable(8) %556, ptr noundef nonnull align 8 dereferenceable(16) %94)
  call void @llvm.lifetime.end.p0(i64 24, ptr %96) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %94) #6
  %567 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %97) #6
  %568 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %98, ptr align 8 %568, i64 16, i1 false), !tbaa.struct !15
  %569 = getelementptr inbounds { i64, i8 }, ptr %98, i32 0, i32 0
  %570 = load i64, ptr %569, align 8
  %571 = getelementptr inbounds { i64, i8 }, ptr %98, i32 0, i32 1
  %572 = load i8, ptr %571, align 8
  %573 = call { i64, i8 } @geohash_next_lefttop(i64 %570, i8 %572)
  %574 = getelementptr inbounds { i64, i8 }, ptr %97, i32 0, i32 0
  %575 = extractvalue { i64, i8 } %573, 0
  store i64 %575, ptr %574, align 8
  %576 = getelementptr inbounds { i64, i8 }, ptr %97, i32 0, i32 1
  %577 = extractvalue { i64, i8 } %573, 1
  store i8 %577, ptr %576, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %99) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %99, ptr noundef nonnull align 8 dereferenceable(8) %567, ptr noundef nonnull align 8 dereferenceable(16) %97)
  call void @llvm.lifetime.end.p0(i64 24, ptr %99) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %97) #6
  br label %581

578:                                              ; preds = %552
  %579 = load ptr, ptr %10, align 8, !tbaa !10
  %580 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 5
  call void @llvm.lifetime.start.p0(i64 24, ptr %100) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %100, ptr noundef nonnull align 8 dereferenceable(8) %579, ptr noundef nonnull align 8 dereferenceable(16) %580)
  call void @llvm.lifetime.end.p0(i64 24, ptr %100) #6
  br label %581

581:                                              ; preds = %578, %555
  br label %582

582:                                              ; preds = %581, %529
  br label %583

583:                                              ; preds = %582, %514
  br label %584

584:                                              ; preds = %583, %496, %490
  %585 = load double, ptr %17, align 8, !tbaa !8
  %586 = getelementptr inbounds %struct.GeoHashArea, ptr %23, i32 0, i32 2
  %587 = getelementptr inbounds %struct.GeoHashRange, ptr %586, i32 0, i32 1
  %588 = load double, ptr %587, align 8, !tbaa !22
  %589 = fcmp olt double %585, %588
  br i1 %589, label %590, label %678

590:                                              ; preds = %584
  %591 = load double, ptr %16, align 8, !tbaa !8
  %592 = getelementptr inbounds %struct.GeoHashArea, ptr %23, i32 0, i32 1
  %593 = getelementptr inbounds %struct.GeoHashRange, ptr %592, i32 0, i32 0
  %594 = load double, ptr %593, align 8, !tbaa !23
  %595 = fcmp ogt double %591, %594
  br i1 %595, label %596, label %678

596:                                              ; preds = %590
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %101, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !15
  %597 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 6
  %598 = getelementptr inbounds { i64, i8 }, ptr %101, i32 0, i32 0
  %599 = load i64, ptr %598, align 8
  %600 = getelementptr inbounds { i64, i8 }, ptr %101, i32 0, i32 1
  %601 = load i8, ptr %600, align 8
  %602 = call i32 @geohash_get_neighbor(i64 %599, i8 %601, i32 noundef 6, ptr noundef %597)
  %603 = load i8, ptr %33, align 1, !tbaa !25, !range !27, !noundef !28
  %604 = trunc i8 %603 to i1
  br i1 %604, label %605, label %620

605:                                              ; preds = %596
  %606 = load i8, ptr %32, align 1, !tbaa !25, !range !27, !noundef !28
  %607 = trunc i8 %606 to i1
  br i1 %607, label %608, label %620

608:                                              ; preds = %605
  %609 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %102) #6
  %610 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %103, ptr align 8 %610, i64 16, i1 false), !tbaa.struct !15
  %611 = getelementptr inbounds { i64, i8 }, ptr %103, i32 0, i32 0
  %612 = load i64, ptr %611, align 8
  %613 = getelementptr inbounds { i64, i8 }, ptr %103, i32 0, i32 1
  %614 = load i8, ptr %613, align 8
  %615 = call { i64, i8 } @geohash_next_rightbottom(i64 %612, i8 %614)
  %616 = getelementptr inbounds { i64, i8 }, ptr %102, i32 0, i32 0
  %617 = extractvalue { i64, i8 } %615, 0
  store i64 %617, ptr %616, align 8
  %618 = getelementptr inbounds { i64, i8 }, ptr %102, i32 0, i32 1
  %619 = extractvalue { i64, i8 } %615, 1
  store i8 %619, ptr %618, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %104) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %104, ptr noundef nonnull align 8 dereferenceable(8) %609, ptr noundef nonnull align 8 dereferenceable(16) %102)
  call void @llvm.lifetime.end.p0(i64 24, ptr %104) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %102) #6
  br label %677

620:                                              ; preds = %605, %596
  %621 = load i8, ptr %33, align 1, !tbaa !25, !range !27, !noundef !28
  %622 = trunc i8 %621 to i1
  br i1 %622, label %623, label %646

623:                                              ; preds = %620
  %624 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %105) #6
  %625 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %106, ptr align 8 %625, i64 16, i1 false), !tbaa.struct !15
  %626 = getelementptr inbounds { i64, i8 }, ptr %106, i32 0, i32 0
  %627 = load i64, ptr %626, align 8
  %628 = getelementptr inbounds { i64, i8 }, ptr %106, i32 0, i32 1
  %629 = load i8, ptr %628, align 8
  %630 = call { i64, i8 } @geohash_next_rightbottom(i64 %627, i8 %629)
  %631 = getelementptr inbounds { i64, i8 }, ptr %105, i32 0, i32 0
  %632 = extractvalue { i64, i8 } %630, 0
  store i64 %632, ptr %631, align 8
  %633 = getelementptr inbounds { i64, i8 }, ptr %105, i32 0, i32 1
  %634 = extractvalue { i64, i8 } %630, 1
  store i8 %634, ptr %633, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %107) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %107, ptr noundef nonnull align 8 dereferenceable(8) %624, ptr noundef nonnull align 8 dereferenceable(16) %105)
  call void @llvm.lifetime.end.p0(i64 24, ptr %107) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %105) #6
  %635 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %108) #6
  %636 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %109, ptr align 8 %636, i64 16, i1 false), !tbaa.struct !15
  %637 = getelementptr inbounds { i64, i8 }, ptr %109, i32 0, i32 0
  %638 = load i64, ptr %637, align 8
  %639 = getelementptr inbounds { i64, i8 }, ptr %109, i32 0, i32 1
  %640 = load i8, ptr %639, align 8
  %641 = call { i64, i8 } @geohash_next_leftbottom(i64 %638, i8 %640)
  %642 = getelementptr inbounds { i64, i8 }, ptr %108, i32 0, i32 0
  %643 = extractvalue { i64, i8 } %641, 0
  store i64 %643, ptr %642, align 8
  %644 = getelementptr inbounds { i64, i8 }, ptr %108, i32 0, i32 1
  %645 = extractvalue { i64, i8 } %641, 1
  store i8 %645, ptr %644, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %110) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %110, ptr noundef nonnull align 8 dereferenceable(8) %635, ptr noundef nonnull align 8 dereferenceable(16) %108)
  call void @llvm.lifetime.end.p0(i64 24, ptr %110) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %108) #6
  br label %676

646:                                              ; preds = %620
  %647 = load i8, ptr %32, align 1, !tbaa !25, !range !27, !noundef !28
  %648 = trunc i8 %647 to i1
  br i1 %648, label %649, label %672

649:                                              ; preds = %646
  %650 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %111) #6
  %651 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %112, ptr align 8 %651, i64 16, i1 false), !tbaa.struct !15
  %652 = getelementptr inbounds { i64, i8 }, ptr %112, i32 0, i32 0
  %653 = load i64, ptr %652, align 8
  %654 = getelementptr inbounds { i64, i8 }, ptr %112, i32 0, i32 1
  %655 = load i8, ptr %654, align 8
  %656 = call { i64, i8 } @geohash_next_rightbottom(i64 %653, i8 %655)
  %657 = getelementptr inbounds { i64, i8 }, ptr %111, i32 0, i32 0
  %658 = extractvalue { i64, i8 } %656, 0
  store i64 %658, ptr %657, align 8
  %659 = getelementptr inbounds { i64, i8 }, ptr %111, i32 0, i32 1
  %660 = extractvalue { i64, i8 } %656, 1
  store i8 %660, ptr %659, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %113) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %113, ptr noundef nonnull align 8 dereferenceable(8) %650, ptr noundef nonnull align 8 dereferenceable(16) %111)
  call void @llvm.lifetime.end.p0(i64 24, ptr %113) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %111) #6
  %661 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %114) #6
  %662 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %115, ptr align 8 %662, i64 16, i1 false), !tbaa.struct !15
  %663 = getelementptr inbounds { i64, i8 }, ptr %115, i32 0, i32 0
  %664 = load i64, ptr %663, align 8
  %665 = getelementptr inbounds { i64, i8 }, ptr %115, i32 0, i32 1
  %666 = load i8, ptr %665, align 8
  %667 = call { i64, i8 } @geohash_next_righttop(i64 %664, i8 %666)
  %668 = getelementptr inbounds { i64, i8 }, ptr %114, i32 0, i32 0
  %669 = extractvalue { i64, i8 } %667, 0
  store i64 %669, ptr %668, align 8
  %670 = getelementptr inbounds { i64, i8 }, ptr %114, i32 0, i32 1
  %671 = extractvalue { i64, i8 } %667, 1
  store i8 %671, ptr %670, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %116) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %116, ptr noundef nonnull align 8 dereferenceable(8) %661, ptr noundef nonnull align 8 dereferenceable(16) %114)
  call void @llvm.lifetime.end.p0(i64 24, ptr %116) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %114) #6
  br label %675

672:                                              ; preds = %646
  %673 = load ptr, ptr %10, align 8, !tbaa !10
  %674 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 6
  call void @llvm.lifetime.start.p0(i64 24, ptr %117) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %117, ptr noundef nonnull align 8 dereferenceable(8) %673, ptr noundef nonnull align 8 dereferenceable(16) %674)
  call void @llvm.lifetime.end.p0(i64 24, ptr %117) #6
  br label %675

675:                                              ; preds = %672, %649
  br label %676

676:                                              ; preds = %675, %623
  br label %677

677:                                              ; preds = %676, %608
  br label %678

678:                                              ; preds = %677, %590, %584
  %679 = load double, ptr %17, align 8, !tbaa !8
  %680 = getelementptr inbounds %struct.GeoHashArea, ptr %23, i32 0, i32 2
  %681 = getelementptr inbounds %struct.GeoHashRange, ptr %680, i32 0, i32 1
  %682 = load double, ptr %681, align 8, !tbaa !22
  %683 = fcmp olt double %679, %682
  br i1 %683, label %684, label %772

684:                                              ; preds = %678
  %685 = load double, ptr %15, align 8, !tbaa !8
  %686 = getelementptr inbounds %struct.GeoHashArea, ptr %23, i32 0, i32 1
  %687 = getelementptr inbounds %struct.GeoHashRange, ptr %686, i32 0, i32 1
  %688 = load double, ptr %687, align 8, !tbaa !24
  %689 = fcmp olt double %685, %688
  br i1 %689, label %690, label %772

690:                                              ; preds = %684
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %118, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !15
  %691 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 7
  %692 = getelementptr inbounds { i64, i8 }, ptr %118, i32 0, i32 0
  %693 = load i64, ptr %692, align 8
  %694 = getelementptr inbounds { i64, i8 }, ptr %118, i32 0, i32 1
  %695 = load i8, ptr %694, align 8
  %696 = call i32 @geohash_get_neighbor(i64 %693, i8 %695, i32 noundef 4, ptr noundef %691)
  %697 = load i8, ptr %34, align 1, !tbaa !25, !range !27, !noundef !28
  %698 = trunc i8 %697 to i1
  br i1 %698, label %699, label %714

699:                                              ; preds = %690
  %700 = load i8, ptr %32, align 1, !tbaa !25, !range !27, !noundef !28
  %701 = trunc i8 %700 to i1
  br i1 %701, label %702, label %714

702:                                              ; preds = %699
  %703 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %119) #6
  %704 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %120, ptr align 8 %704, i64 16, i1 false), !tbaa.struct !15
  %705 = getelementptr inbounds { i64, i8 }, ptr %120, i32 0, i32 0
  %706 = load i64, ptr %705, align 8
  %707 = getelementptr inbounds { i64, i8 }, ptr %120, i32 0, i32 1
  %708 = load i8, ptr %707, align 8
  %709 = call { i64, i8 } @geohash_next_righttop(i64 %706, i8 %708)
  %710 = getelementptr inbounds { i64, i8 }, ptr %119, i32 0, i32 0
  %711 = extractvalue { i64, i8 } %709, 0
  store i64 %711, ptr %710, align 8
  %712 = getelementptr inbounds { i64, i8 }, ptr %119, i32 0, i32 1
  %713 = extractvalue { i64, i8 } %709, 1
  store i8 %713, ptr %712, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %121) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %121, ptr noundef nonnull align 8 dereferenceable(8) %703, ptr noundef nonnull align 8 dereferenceable(16) %119)
  call void @llvm.lifetime.end.p0(i64 24, ptr %121) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %119) #6
  br label %771

714:                                              ; preds = %699, %690
  %715 = load i8, ptr %34, align 1, !tbaa !25, !range !27, !noundef !28
  %716 = trunc i8 %715 to i1
  br i1 %716, label %717, label %740

717:                                              ; preds = %714
  %718 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %122) #6
  %719 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %123, ptr align 8 %719, i64 16, i1 false), !tbaa.struct !15
  %720 = getelementptr inbounds { i64, i8 }, ptr %123, i32 0, i32 0
  %721 = load i64, ptr %720, align 8
  %722 = getelementptr inbounds { i64, i8 }, ptr %123, i32 0, i32 1
  %723 = load i8, ptr %722, align 8
  %724 = call { i64, i8 } @geohash_next_righttop(i64 %721, i8 %723)
  %725 = getelementptr inbounds { i64, i8 }, ptr %122, i32 0, i32 0
  %726 = extractvalue { i64, i8 } %724, 0
  store i64 %726, ptr %725, align 8
  %727 = getelementptr inbounds { i64, i8 }, ptr %122, i32 0, i32 1
  %728 = extractvalue { i64, i8 } %724, 1
  store i8 %728, ptr %727, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %124) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %124, ptr noundef nonnull align 8 dereferenceable(8) %718, ptr noundef nonnull align 8 dereferenceable(16) %122)
  call void @llvm.lifetime.end.p0(i64 24, ptr %124) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %122) #6
  %729 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %125) #6
  %730 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %126, ptr align 8 %730, i64 16, i1 false), !tbaa.struct !15
  %731 = getelementptr inbounds { i64, i8 }, ptr %126, i32 0, i32 0
  %732 = load i64, ptr %731, align 8
  %733 = getelementptr inbounds { i64, i8 }, ptr %126, i32 0, i32 1
  %734 = load i8, ptr %733, align 8
  %735 = call { i64, i8 } @geohash_next_lefttop(i64 %732, i8 %734)
  %736 = getelementptr inbounds { i64, i8 }, ptr %125, i32 0, i32 0
  %737 = extractvalue { i64, i8 } %735, 0
  store i64 %737, ptr %736, align 8
  %738 = getelementptr inbounds { i64, i8 }, ptr %125, i32 0, i32 1
  %739 = extractvalue { i64, i8 } %735, 1
  store i8 %739, ptr %738, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %127) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %127, ptr noundef nonnull align 8 dereferenceable(8) %729, ptr noundef nonnull align 8 dereferenceable(16) %125)
  call void @llvm.lifetime.end.p0(i64 24, ptr %127) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %125) #6
  br label %770

740:                                              ; preds = %714
  %741 = load i8, ptr %32, align 1, !tbaa !25, !range !27, !noundef !28
  %742 = trunc i8 %741 to i1
  br i1 %742, label %743, label %766

743:                                              ; preds = %740
  %744 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %128) #6
  %745 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %129, ptr align 8 %745, i64 16, i1 false), !tbaa.struct !15
  %746 = getelementptr inbounds { i64, i8 }, ptr %129, i32 0, i32 0
  %747 = load i64, ptr %746, align 8
  %748 = getelementptr inbounds { i64, i8 }, ptr %129, i32 0, i32 1
  %749 = load i8, ptr %748, align 8
  %750 = call { i64, i8 } @geohash_next_rightbottom(i64 %747, i8 %749)
  %751 = getelementptr inbounds { i64, i8 }, ptr %128, i32 0, i32 0
  %752 = extractvalue { i64, i8 } %750, 0
  store i64 %752, ptr %751, align 8
  %753 = getelementptr inbounds { i64, i8 }, ptr %128, i32 0, i32 1
  %754 = extractvalue { i64, i8 } %750, 1
  store i8 %754, ptr %753, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %130) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %130, ptr noundef nonnull align 8 dereferenceable(8) %744, ptr noundef nonnull align 8 dereferenceable(16) %128)
  call void @llvm.lifetime.end.p0(i64 24, ptr %130) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %128) #6
  %755 = load ptr, ptr %10, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 16, ptr %131) #6
  %756 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %132, ptr align 8 %756, i64 16, i1 false), !tbaa.struct !15
  %757 = getelementptr inbounds { i64, i8 }, ptr %132, i32 0, i32 0
  %758 = load i64, ptr %757, align 8
  %759 = getelementptr inbounds { i64, i8 }, ptr %132, i32 0, i32 1
  %760 = load i8, ptr %759, align 8
  %761 = call { i64, i8 } @geohash_next_righttop(i64 %758, i8 %760)
  %762 = getelementptr inbounds { i64, i8 }, ptr %131, i32 0, i32 0
  %763 = extractvalue { i64, i8 } %761, 0
  store i64 %763, ptr %762, align 8
  %764 = getelementptr inbounds { i64, i8 }, ptr %131, i32 0, i32 1
  %765 = extractvalue { i64, i8 } %761, 1
  store i8 %765, ptr %764, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %133) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %133, ptr noundef nonnull align 8 dereferenceable(8) %755, ptr noundef nonnull align 8 dereferenceable(16) %131)
  call void @llvm.lifetime.end.p0(i64 24, ptr %133) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %131) #6
  br label %769

766:                                              ; preds = %740
  %767 = load ptr, ptr %10, align 8, !tbaa !10
  %768 = getelementptr inbounds %struct.GeoHashNeighbors, ptr %30, i32 0, i32 7
  call void @llvm.lifetime.start.p0(i64 24, ptr %134) #6
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %134, ptr noundef nonnull align 8 dereferenceable(8) %767, ptr noundef nonnull align 8 dereferenceable(16) %768)
  call void @llvm.lifetime.end.p0(i64 24, ptr %134) #6
  br label %769

769:                                              ; preds = %766, %743
  br label %770

770:                                              ; preds = %769, %717
  br label %771

771:                                              ; preds = %770, %702
  br label %772

772:                                              ; preds = %771, %684, %678
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  ret i32 0
}

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

; Function Attrs: nounwind
declare double @cos(double noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i8 @_ZN4ardbL32estimate_geohash_steps_by_radiusEd(double noundef) #0

declare i32 @geohash_fast_encode(double, double, double, double, double noundef, double noundef, i8 noundef zeroext, ptr noundef) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

declare i32 @geohash_fast_decode(double, double, double, double, i64, i8, ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

declare i32 @geohash_get_neighbor(i64, i8, i32 noundef, ptr noundef) #4

declare { i64, i8 } @geohash_next_leftbottom(i64, i8) #4

declare { i64, i8 } @geohash_next_lefttop(i64, i8) #4

declare { i64, i8 } @geohash_next_rightbottom(i64, i8) #4

declare { i64, i8 } @geohash_next_righttop(i64, i8) #4

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"double", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !6, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !6, i64 0}
!14 = !{i64 0, i64 8, !8, i64 8, i64 8, !8}
!15 = !{i64 0, i64 8, !16, i64 8, i64 1, !5}
!16 = !{!17, !17, i64 0}
!17 = !{!"long", !6, i64 0}
!18 = !{!19, !9, i64 32}
!19 = !{!"_ZTS11GeoHashArea", !20, i64 0, !21, i64 16, !21, i64 32}
!20 = !{!"_ZTS11GeoHashBits", !17, i64 0, !6, i64 8}
!21 = !{!"_ZTS12GeoHashRange", !9, i64 0, !9, i64 8}
!22 = !{!19, !9, i64 40}
!23 = !{!19, !9, i64 16}
!24 = !{!19, !9, i64 24}
!25 = !{!26, !26, i64 0}
!26 = !{!"bool", !6, i64 0}
!27 = !{i8 0, i8 2}
!28 = !{}


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

%struct.GeoHashRange = type { double, double }
%struct.GeoHashBits = type { i64, i8 }
%struct.GeoHashArea = type { %struct.GeoHashBits, %struct.GeoHashRange, %struct.GeoHashRange }
%"struct.std::pair" = type { %"struct.btree::btree_iterator", i8, [7 x i8] }
%"struct.btree::btree_iterator" = type <{ ptr, i32, [4 x i8] }>
%struct.GeoHashNeighbors = type { %struct.GeoHashBits, %struct.GeoHashBits, %struct.GeoHashBits, %struct.GeoHashBits, %struct.GeoHashBits, %struct.GeoHashBits, %struct.GeoHashBits, %struct.GeoHashBits }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4ardb13GeoHashHelper13GetCoordRangeEhR12GeoHashRangeS2_(i8 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4ardb13GeoHashHelper18GetAreasByRadiusV2EhdddRN5btree9btree_setI11GeoHashBitsNS_21GeoHashBitsComparatorESaIS3_ELi256EEE(i8 noundef zeroext %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef nonnull align 8 dereferenceable(8) %4) local_unnamed_addr #1 align 2 {
  %6 = alloca %struct.GeoHashRange, align 8
  %7 = alloca %struct.GeoHashRange, align 8
  %8 = alloca %struct.GeoHashBits, align 8
  %9 = alloca %struct.GeoHashArea, align 8
  %10 = alloca %"struct.std::pair", align 8
  %11 = alloca %struct.GeoHashNeighbors, align 8
  %12 = alloca %struct.GeoHashBits, align 8
  %13 = alloca %"struct.std::pair", align 8
  %14 = alloca %struct.GeoHashBits, align 8
  %15 = alloca %"struct.std::pair", align 8
  %16 = alloca %"struct.std::pair", align 8
  %17 = alloca %struct.GeoHashBits, align 8
  %18 = alloca %"struct.std::pair", align 8
  %19 = alloca %struct.GeoHashBits, align 8
  %20 = alloca %"struct.std::pair", align 8
  %21 = alloca %"struct.std::pair", align 8
  %22 = alloca %struct.GeoHashBits, align 8
  %23 = alloca %"struct.std::pair", align 8
  %24 = alloca %struct.GeoHashBits, align 8
  %25 = alloca %"struct.std::pair", align 8
  %26 = alloca %"struct.std::pair", align 8
  %27 = alloca %struct.GeoHashBits, align 8
  %28 = alloca %"struct.std::pair", align 8
  %29 = alloca %struct.GeoHashBits, align 8
  %30 = alloca %"struct.std::pair", align 8
  %31 = alloca %"struct.std::pair", align 8
  %32 = alloca %struct.GeoHashBits, align 8
  %33 = alloca %"struct.std::pair", align 8
  %34 = alloca %struct.GeoHashBits, align 8
  %35 = alloca %"struct.std::pair", align 8
  %36 = alloca %struct.GeoHashBits, align 8
  %37 = alloca %"struct.std::pair", align 8
  %38 = alloca %struct.GeoHashBits, align 8
  %39 = alloca %"struct.std::pair", align 8
  %40 = alloca %struct.GeoHashBits, align 8
  %41 = alloca %"struct.std::pair", align 8
  %42 = alloca %"struct.std::pair", align 8
  %43 = alloca %struct.GeoHashBits, align 8
  %44 = alloca %"struct.std::pair", align 8
  %45 = alloca %struct.GeoHashBits, align 8
  %46 = alloca %"struct.std::pair", align 8
  %47 = alloca %struct.GeoHashBits, align 8
  %48 = alloca %"struct.std::pair", align 8
  %49 = alloca %struct.GeoHashBits, align 8
  %50 = alloca %"struct.std::pair", align 8
  %51 = alloca %struct.GeoHashBits, align 8
  %52 = alloca %"struct.std::pair", align 8
  %53 = alloca %"struct.std::pair", align 8
  %54 = alloca %struct.GeoHashBits, align 8
  %55 = alloca %"struct.std::pair", align 8
  %56 = alloca %struct.GeoHashBits, align 8
  %57 = alloca %"struct.std::pair", align 8
  %58 = alloca %struct.GeoHashBits, align 8
  %59 = alloca %"struct.std::pair", align 8
  %60 = alloca %struct.GeoHashBits, align 8
  %61 = alloca %"struct.std::pair", align 8
  %62 = alloca %struct.GeoHashBits, align 8
  %63 = alloca %"struct.std::pair", align 8
  %64 = alloca %"struct.std::pair", align 8
  %65 = alloca %struct.GeoHashBits, align 8
  %66 = alloca %"struct.std::pair", align 8
  %67 = alloca %struct.GeoHashBits, align 8
  %68 = alloca %"struct.std::pair", align 8
  %69 = alloca %struct.GeoHashBits, align 8
  %70 = alloca %"struct.std::pair", align 8
  %71 = alloca %struct.GeoHashBits, align 8
  %72 = alloca %"struct.std::pair", align 8
  %73 = alloca %struct.GeoHashBits, align 8
  %74 = alloca %"struct.std::pair", align 8
  %75 = alloca %"struct.std::pair", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #5
  %76 = call noundef i32 @_ZN4ardb13GeoHashHelper13GetCoordRangeEhR12GeoHashRangeS2_(i8 noundef zeroext %0, ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %7)
  %77 = icmp eq i8 %0, 1
  %78 = insertelement <2 x double> poison, double %3, i64 0
  %79 = shufflevector <2 x double> %78, <2 x double> poison, <2 x i32> zeroinitializer
  br i1 %77, label %80, label %85

80:                                               ; preds = %5
  %81 = call double @cos(double noundef %1) #5
  %82 = fmul double %81, 1.113200e+05
  %83 = insertelement <2 x double> <double poison, double 1.105400e+05>, double %82, i64 0
  %84 = fdiv <2 x double> %79, %83
  br label %85

85:                                               ; preds = %80, %5
  %86 = phi <2 x double> [ %84, %80 ], [ %79, %5 ]
  %87 = extractelement <2 x double> %86, i64 0
  %88 = fadd double %87, %1
  %89 = insertelement <2 x double> poison, double %1, i64 0
  %90 = insertelement <2 x double> %89, double %2, i64 1
  %91 = fsub <2 x double> %90, %86
  %92 = extractelement <2 x double> %86, i64 1
  %93 = fadd double %92, %2
  %94 = call noundef zeroext i8 @_ZN4ardbL32estimate_geohash_steps_by_radiusEd(double noundef %3)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  %.sroa.0133.0.copyload = load double, ptr %6, align 8, !tbaa !5
  %.sroa.2134.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  %.sroa.2134.0.copyload = load double, ptr %.sroa.2134.0..sroa_idx, align 8, !tbaa !5
  %95 = call i32 @geohash_fast_encode(double %.sroa.0133.0.copyload, double %.sroa.2134.0.copyload, double %.sroa.0133.0.copyload, double %.sroa.2134.0.copyload, double noundef %1, double noundef %2, i8 noundef zeroext %94, ptr noundef nonnull %8)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #5
  %.sroa.0129.0.copyload = load double, ptr %6, align 8, !tbaa !5
  %.sroa.2130.0.copyload = load double, ptr %.sroa.2134.0..sroa_idx, align 8, !tbaa !5
  %.sroa.0124.0.copyload = load i64, ptr %8, align 8, !tbaa !9
  %.sroa.2125.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 8
  %.sroa.2125.0.copyload = load i8, ptr %.sroa.2125.0..sroa_idx, align 8, !tbaa !11
  %96 = call i32 @geohash_fast_decode(double %.sroa.0129.0.copyload, double %.sroa.2130.0.copyload, double %.sroa.0129.0.copyload, double %.sroa.2130.0.copyload, i64 %.sroa.0124.0.copyload, i8 %.sroa.2125.0.copyload, ptr noundef nonnull %9)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %10, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %8)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #5
  %97 = getelementptr inbounds i8, ptr %9, i64 32
  %98 = load double, ptr %97, align 8, !tbaa !12
  %99 = getelementptr inbounds i8, ptr %9, i64 40
  %100 = load double, ptr %99, align 8, !tbaa !16
  %101 = fsub double %98, %100
  %102 = fmul double %101, 5.000000e-01
  %103 = getelementptr inbounds i8, ptr %9, i64 16
  %104 = load double, ptr %103, align 8, !tbaa !17
  %105 = getelementptr inbounds i8, ptr %9, i64 24
  %106 = load double, ptr %105, align 8, !tbaa !18
  %107 = fsub double %104, %106
  %108 = fmul double %107, 5.000000e-01
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %11) #5
  %109 = fcmp ogt double %93, %98
  br i1 %109, label %110, label %126

110:                                              ; preds = %85
  %.sroa.0103.0.copyload = load i64, ptr %8, align 8, !tbaa !9
  %.sroa.2104.0.copyload = load i8, ptr %.sroa.2125.0..sroa_idx, align 8, !tbaa !11
  %111 = getelementptr inbounds i8, ptr %11, i64 16
  %112 = call i32 @geohash_get_neighbor(i64 %.sroa.0103.0.copyload, i8 %.sroa.2104.0.copyload, i32 noundef 1, ptr noundef nonnull %111)
  %113 = load double, ptr %97, align 8, !tbaa !12
  %114 = fadd double %102, %113
  %115 = fcmp ogt double %114, %93
  br i1 %115, label %116, label %125

116:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  %.sroa.0100.0.copyload = load i64, ptr %111, align 8, !tbaa !9
  %.sroa.2101.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 24
  %.sroa.2101.0.copyload = load i8, ptr %.sroa.2101.0..sroa_idx, align 8, !tbaa !11
  %117 = call { i64, i8 } @geohash_next_leftbottom(i64 %.sroa.0100.0.copyload, i8 %.sroa.2101.0.copyload)
  %118 = extractvalue { i64, i8 } %117, 0
  store i64 %118, ptr %12, align 8
  %119 = getelementptr inbounds i8, ptr %12, i64 8
  %120 = extractvalue { i64, i8 } %117, 1
  store i8 %120, ptr %119, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %13, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %12)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #5
  %.sroa.097.0.copyload = load i64, ptr %111, align 8, !tbaa !9
  %.sroa.298.0.copyload = load i8, ptr %.sroa.2101.0..sroa_idx, align 8, !tbaa !11
  %121 = call { i64, i8 } @geohash_next_lefttop(i64 %.sroa.097.0.copyload, i8 %.sroa.298.0.copyload)
  %122 = extractvalue { i64, i8 } %121, 0
  store i64 %122, ptr %14, align 8
  %123 = getelementptr inbounds i8, ptr %14, i64 8
  %124 = extractvalue { i64, i8 } %121, 1
  store i8 %124, ptr %123, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %15, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %14)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  br label %126

125:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %16, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %111)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #5
  br label %126

126:                                              ; preds = %116, %125, %85
  %.0208.not = phi i1 [ false, %116 ], [ true, %125 ], [ true, %85 ]
  %127 = load double, ptr %99, align 8, !tbaa !16
  %128 = extractelement <2 x double> %91, i64 1
  %129 = fcmp olt double %128, %127
  br i1 %129, label %130, label %146

130:                                              ; preds = %126
  %.sroa.094.0.copyload = load i64, ptr %8, align 8, !tbaa !9
  %.sroa.295.0.copyload = load i8, ptr %.sroa.2125.0..sroa_idx, align 8, !tbaa !11
  %131 = getelementptr inbounds i8, ptr %11, i64 32
  %132 = call i32 @geohash_get_neighbor(i64 %.sroa.094.0.copyload, i8 %.sroa.295.0.copyload, i32 noundef 2, ptr noundef nonnull %131)
  %133 = load double, ptr %99, align 8, !tbaa !16
  %134 = fsub double %133, %102
  %135 = fcmp olt double %134, %128
  br i1 %135, label %136, label %145

136:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #5
  %.sroa.091.0.copyload = load i64, ptr %131, align 8, !tbaa !9
  %.sroa.292.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 40
  %.sroa.292.0.copyload = load i8, ptr %.sroa.292.0..sroa_idx, align 8, !tbaa !11
  %137 = call { i64, i8 } @geohash_next_rightbottom(i64 %.sroa.091.0.copyload, i8 %.sroa.292.0.copyload)
  %138 = extractvalue { i64, i8 } %137, 0
  store i64 %138, ptr %17, align 8
  %139 = getelementptr inbounds i8, ptr %17, i64 8
  %140 = extractvalue { i64, i8 } %137, 1
  store i8 %140, ptr %139, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %18, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %17)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #5
  %.sroa.088.0.copyload = load i64, ptr %131, align 8, !tbaa !9
  %.sroa.289.0.copyload = load i8, ptr %.sroa.292.0..sroa_idx, align 8, !tbaa !11
  %141 = call { i64, i8 } @geohash_next_righttop(i64 %.sroa.088.0.copyload, i8 %.sroa.289.0.copyload)
  %142 = extractvalue { i64, i8 } %141, 0
  store i64 %142, ptr %19, align 8
  %143 = getelementptr inbounds i8, ptr %19, i64 8
  %144 = extractvalue { i64, i8 } %141, 1
  store i8 %144, ptr %143, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %20, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %19)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #5
  br label %146

145:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %21, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %131)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #5
  br label %146

146:                                              ; preds = %136, %145, %126
  %.0209.not231 = phi i1 [ false, %136 ], [ true, %145 ], [ true, %126 ]
  %147 = load double, ptr %103, align 8, !tbaa !17
  %148 = fcmp ogt double %88, %147
  br i1 %148, label %149, label %164

149:                                              ; preds = %146
  %.sroa.085.0.copyload = load i64, ptr %8, align 8, !tbaa !9
  %.sroa.286.0.copyload = load i8, ptr %.sroa.2125.0..sroa_idx, align 8, !tbaa !11
  %150 = call i32 @geohash_get_neighbor(i64 %.sroa.085.0.copyload, i8 %.sroa.286.0.copyload, i32 noundef 0, ptr noundef nonnull %11)
  %151 = load double, ptr %103, align 8, !tbaa !17
  %152 = fadd double %108, %151
  %153 = fcmp ogt double %152, %88
  br i1 %153, label %154, label %163

154:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #5
  %.sroa.082.0.copyload = load i64, ptr %11, align 8, !tbaa !9
  %.sroa.283.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 8
  %.sroa.283.0.copyload = load i8, ptr %.sroa.283.0..sroa_idx, align 8, !tbaa !11
  %155 = call { i64, i8 } @geohash_next_rightbottom(i64 %.sroa.082.0.copyload, i8 %.sroa.283.0.copyload)
  %156 = extractvalue { i64, i8 } %155, 0
  store i64 %156, ptr %22, align 8
  %157 = getelementptr inbounds i8, ptr %22, i64 8
  %158 = extractvalue { i64, i8 } %155, 1
  store i8 %158, ptr %157, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %23, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %22)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #5
  %.sroa.079.0.copyload = load i64, ptr %11, align 8, !tbaa !9
  %.sroa.280.0.copyload = load i8, ptr %.sroa.283.0..sroa_idx, align 8, !tbaa !11
  %159 = call { i64, i8 } @geohash_next_leftbottom(i64 %.sroa.079.0.copyload, i8 %.sroa.280.0.copyload)
  %160 = extractvalue { i64, i8 } %159, 0
  store i64 %160, ptr %24, align 8
  %161 = getelementptr inbounds i8, ptr %24, i64 8
  %162 = extractvalue { i64, i8 } %159, 1
  store i8 %162, ptr %161, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %25) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %25, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %24)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #5
  br label %164

163:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %26) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %26, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %11)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %26) #5
  br label %164

164:                                              ; preds = %154, %163, %146
  %.0210.not = phi i1 [ false, %154 ], [ true, %163 ], [ true, %146 ]
  %165 = load double, ptr %105, align 8, !tbaa !18
  %166 = extractelement <2 x double> %91, i64 0
  %167 = fcmp olt double %166, %165
  br i1 %167, label %168, label %184

168:                                              ; preds = %164
  %.sroa.076.0.copyload = load i64, ptr %8, align 8, !tbaa !9
  %.sroa.277.0.copyload = load i8, ptr %.sroa.2125.0..sroa_idx, align 8, !tbaa !11
  %169 = getelementptr inbounds i8, ptr %11, i64 48
  %170 = call i32 @geohash_get_neighbor(i64 %.sroa.076.0.copyload, i8 %.sroa.277.0.copyload, i32 noundef 3, ptr noundef nonnull %169)
  %171 = load double, ptr %105, align 8, !tbaa !18
  %172 = fsub double %171, %108
  %173 = fcmp olt double %172, %166
  br i1 %173, label %174, label %183

174:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #5
  %.sroa.073.0.copyload = load i64, ptr %169, align 8, !tbaa !9
  %.sroa.274.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 56
  %.sroa.274.0.copyload = load i8, ptr %.sroa.274.0..sroa_idx, align 8, !tbaa !11
  %175 = call { i64, i8 } @geohash_next_righttop(i64 %.sroa.073.0.copyload, i8 %.sroa.274.0.copyload)
  %176 = extractvalue { i64, i8 } %175, 0
  store i64 %176, ptr %27, align 8
  %177 = getelementptr inbounds i8, ptr %27, i64 8
  %178 = extractvalue { i64, i8 } %175, 1
  store i8 %178, ptr %177, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %28) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %28, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %27)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %29) #5
  %.sroa.070.0.copyload = load i64, ptr %169, align 8, !tbaa !9
  %.sroa.271.0.copyload = load i8, ptr %.sroa.274.0..sroa_idx, align 8, !tbaa !11
  %179 = call { i64, i8 } @geohash_next_lefttop(i64 %.sroa.070.0.copyload, i8 %.sroa.271.0.copyload)
  %180 = extractvalue { i64, i8 } %179, 0
  store i64 %180, ptr %29, align 8
  %181 = getelementptr inbounds i8, ptr %29, i64 8
  %182 = extractvalue { i64, i8 } %179, 1
  store i8 %182, ptr %181, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %30) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %30, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %29)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %30) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %29) #5
  br label %184

183:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %31) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %31, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %169)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %31) #5
  br label %184

184:                                              ; preds = %174, %183, %164
  %.0211.not230 = phi i1 [ false, %174 ], [ true, %183 ], [ true, %164 ]
  %185 = load double, ptr %97, align 8, !tbaa !12
  %186 = fcmp ogt double %93, %185
  %187 = load double, ptr %103, align 8
  %188 = fcmp ogt double %88, %187
  %or.cond = select i1 %186, i1 %188, i1 false
  br i1 %or.cond, label %189, label %218

189:                                              ; preds = %184
  %.sroa.067.0.copyload = load i64, ptr %8, align 8, !tbaa !9
  %.sroa.268.0.copyload = load i8, ptr %.sroa.2125.0..sroa_idx, align 8, !tbaa !11
  %190 = getelementptr inbounds i8, ptr %11, i64 64
  %191 = call i32 @geohash_get_neighbor(i64 %.sroa.067.0.copyload, i8 %.sroa.268.0.copyload, i32 noundef 7, ptr noundef nonnull %190)
  %brmerge.demorgan.not = or i1 %.0208.not, %.0210.not
  br i1 %brmerge.demorgan.not, label %197, label %192

192:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %32) #5
  %.sroa.064.0.copyload = load i64, ptr %190, align 8, !tbaa !9
  %.sroa.265.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 72
  %.sroa.265.0.copyload = load i8, ptr %.sroa.265.0..sroa_idx, align 8, !tbaa !11
  %193 = call { i64, i8 } @geohash_next_leftbottom(i64 %.sroa.064.0.copyload, i8 %.sroa.265.0.copyload)
  %194 = extractvalue { i64, i8 } %193, 0
  store i64 %194, ptr %32, align 8
  %195 = getelementptr inbounds i8, ptr %32, i64 8
  %196 = extractvalue { i64, i8 } %193, 1
  store i8 %196, ptr %195, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %33) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %33, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %32)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %33) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %32) #5
  br label %218

197:                                              ; preds = %189
  br i1 %.0210.not, label %207, label %198

198:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %34) #5
  %.sroa.061.0.copyload = load i64, ptr %190, align 8, !tbaa !9
  %.sroa.262.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 72
  %.sroa.262.0.copyload = load i8, ptr %.sroa.262.0..sroa_idx, align 8, !tbaa !11
  %199 = call { i64, i8 } @geohash_next_rightbottom(i64 %.sroa.061.0.copyload, i8 %.sroa.262.0.copyload)
  %200 = extractvalue { i64, i8 } %199, 0
  store i64 %200, ptr %34, align 8
  %201 = getelementptr inbounds i8, ptr %34, i64 8
  %202 = extractvalue { i64, i8 } %199, 1
  store i8 %202, ptr %201, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %35) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %35, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %34)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %35) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %34) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %36) #5
  %.sroa.058.0.copyload = load i64, ptr %190, align 8, !tbaa !9
  %.sroa.259.0.copyload = load i8, ptr %.sroa.262.0..sroa_idx, align 8, !tbaa !11
  %203 = call { i64, i8 } @geohash_next_leftbottom(i64 %.sroa.058.0.copyload, i8 %.sroa.259.0.copyload)
  %204 = extractvalue { i64, i8 } %203, 0
  store i64 %204, ptr %36, align 8
  %205 = getelementptr inbounds i8, ptr %36, i64 8
  %206 = extractvalue { i64, i8 } %203, 1
  store i8 %206, ptr %205, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %37) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %37, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %36)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %37) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %36) #5
  br label %218

207:                                              ; preds = %197
  br i1 %.0208.not, label %217, label %208

208:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %38) #5
  %.sroa.055.0.copyload = load i64, ptr %190, align 8, !tbaa !9
  %.sroa.256.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 72
  %.sroa.256.0.copyload = load i8, ptr %.sroa.256.0..sroa_idx, align 8, !tbaa !11
  %209 = call { i64, i8 } @geohash_next_leftbottom(i64 %.sroa.055.0.copyload, i8 %.sroa.256.0.copyload)
  %210 = extractvalue { i64, i8 } %209, 0
  store i64 %210, ptr %38, align 8
  %211 = getelementptr inbounds i8, ptr %38, i64 8
  %212 = extractvalue { i64, i8 } %209, 1
  store i8 %212, ptr %211, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %39) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %39, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %38)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %39) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %38) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %40) #5
  %.sroa.052.0.copyload = load i64, ptr %190, align 8, !tbaa !9
  %.sroa.253.0.copyload = load i8, ptr %.sroa.256.0..sroa_idx, align 8, !tbaa !11
  %213 = call { i64, i8 } @geohash_next_lefttop(i64 %.sroa.052.0.copyload, i8 %.sroa.253.0.copyload)
  %214 = extractvalue { i64, i8 } %213, 0
  store i64 %214, ptr %40, align 8
  %215 = getelementptr inbounds i8, ptr %40, i64 8
  %216 = extractvalue { i64, i8 } %213, 1
  store i8 %216, ptr %215, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %41) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %41, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %40)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %41) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %40) #5
  br label %218

217:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %42) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %42, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %190)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %42) #5
  br label %218

218:                                              ; preds = %192, %208, %217, %198, %184
  %219 = load double, ptr %97, align 8, !tbaa !12
  %220 = fcmp ogt double %93, %219
  %221 = load double, ptr %105, align 8
  %222 = fcmp olt double %166, %221
  %or.cond218 = select i1 %220, i1 %222, i1 false
  br i1 %or.cond218, label %223, label %252

223:                                              ; preds = %218
  %.sroa.049.0.copyload = load i64, ptr %8, align 8, !tbaa !9
  %.sroa.250.0.copyload = load i8, ptr %.sroa.2125.0..sroa_idx, align 8, !tbaa !11
  %224 = getelementptr inbounds i8, ptr %11, i64 80
  %225 = call i32 @geohash_get_neighbor(i64 %.sroa.049.0.copyload, i8 %.sroa.250.0.copyload, i32 noundef 5, ptr noundef nonnull %224)
  %brmerge220 = or i1 %.0208.not, %.0211.not230
  br i1 %brmerge220, label %231, label %226

226:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %43) #5
  %.sroa.046.0.copyload = load i64, ptr %224, align 8, !tbaa !9
  %.sroa.247.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 88
  %.sroa.247.0.copyload = load i8, ptr %.sroa.247.0..sroa_idx, align 8, !tbaa !11
  %227 = call { i64, i8 } @geohash_next_lefttop(i64 %.sroa.046.0.copyload, i8 %.sroa.247.0.copyload)
  %228 = extractvalue { i64, i8 } %227, 0
  store i64 %228, ptr %43, align 8
  %229 = getelementptr inbounds i8, ptr %43, i64 8
  %230 = extractvalue { i64, i8 } %227, 1
  store i8 %230, ptr %229, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %44) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %44, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %43)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %44) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %43) #5
  br label %252

231:                                              ; preds = %223
  br i1 %.0211.not230, label %241, label %232

232:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %45) #5
  %.sroa.043.0.copyload = load i64, ptr %224, align 8, !tbaa !9
  %.sroa.244.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 88
  %.sroa.244.0.copyload = load i8, ptr %.sroa.244.0..sroa_idx, align 8, !tbaa !11
  %233 = call { i64, i8 } @geohash_next_righttop(i64 %.sroa.043.0.copyload, i8 %.sroa.244.0.copyload)
  %234 = extractvalue { i64, i8 } %233, 0
  store i64 %234, ptr %45, align 8
  %235 = getelementptr inbounds i8, ptr %45, i64 8
  %236 = extractvalue { i64, i8 } %233, 1
  store i8 %236, ptr %235, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %46) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %46, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %45)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %46) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %45) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %47) #5
  %.sroa.040.0.copyload = load i64, ptr %224, align 8, !tbaa !9
  %.sroa.241.0.copyload = load i8, ptr %.sroa.244.0..sroa_idx, align 8, !tbaa !11
  %237 = call { i64, i8 } @geohash_next_lefttop(i64 %.sroa.040.0.copyload, i8 %.sroa.241.0.copyload)
  %238 = extractvalue { i64, i8 } %237, 0
  store i64 %238, ptr %47, align 8
  %239 = getelementptr inbounds i8, ptr %47, i64 8
  %240 = extractvalue { i64, i8 } %237, 1
  store i8 %240, ptr %239, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %48) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %48, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %47)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %48) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %47) #5
  br label %252

241:                                              ; preds = %231
  br i1 %.0208.not, label %251, label %242

242:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %49) #5
  %.sroa.037.0.copyload = load i64, ptr %224, align 8, !tbaa !9
  %.sroa.238.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 88
  %.sroa.238.0.copyload = load i8, ptr %.sroa.238.0..sroa_idx, align 8, !tbaa !11
  %243 = call { i64, i8 } @geohash_next_leftbottom(i64 %.sroa.037.0.copyload, i8 %.sroa.238.0.copyload)
  %244 = extractvalue { i64, i8 } %243, 0
  store i64 %244, ptr %49, align 8
  %245 = getelementptr inbounds i8, ptr %49, i64 8
  %246 = extractvalue { i64, i8 } %243, 1
  store i8 %246, ptr %245, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %50) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %50, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %49)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %50) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %49) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %51) #5
  %.sroa.034.0.copyload = load i64, ptr %224, align 8, !tbaa !9
  %.sroa.235.0.copyload = load i8, ptr %.sroa.238.0..sroa_idx, align 8, !tbaa !11
  %247 = call { i64, i8 } @geohash_next_lefttop(i64 %.sroa.034.0.copyload, i8 %.sroa.235.0.copyload)
  %248 = extractvalue { i64, i8 } %247, 0
  store i64 %248, ptr %51, align 8
  %249 = getelementptr inbounds i8, ptr %51, i64 8
  %250 = extractvalue { i64, i8 } %247, 1
  store i8 %250, ptr %249, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %52) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %52, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %51)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %52) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %51) #5
  br label %252

251:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %53) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %53, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %224)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %53) #5
  br label %252

252:                                              ; preds = %226, %242, %251, %232, %218
  %253 = load double, ptr %99, align 8, !tbaa !16
  %254 = fcmp olt double %128, %253
  %255 = load double, ptr %103, align 8
  %256 = fcmp ogt double %88, %255
  %or.cond222 = select i1 %254, i1 %256, i1 false
  br i1 %or.cond222, label %257, label %286

257:                                              ; preds = %252
  %.sroa.031.0.copyload = load i64, ptr %8, align 8, !tbaa !9
  %.sroa.232.0.copyload = load i8, ptr %.sroa.2125.0..sroa_idx, align 8, !tbaa !11
  %258 = getelementptr inbounds i8, ptr %11, i64 96
  %259 = call i32 @geohash_get_neighbor(i64 %.sroa.031.0.copyload, i8 %.sroa.232.0.copyload, i32 noundef 6, ptr noundef nonnull %258)
  %brmerge224 = or i1 %.0209.not231, %.0210.not
  br i1 %brmerge224, label %265, label %260

260:                                              ; preds = %257
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %54) #5
  %.sroa.028.0.copyload = load i64, ptr %258, align 8, !tbaa !9
  %.sroa.229.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 104
  %.sroa.229.0.copyload = load i8, ptr %.sroa.229.0..sroa_idx, align 8, !tbaa !11
  %261 = call { i64, i8 } @geohash_next_rightbottom(i64 %.sroa.028.0.copyload, i8 %.sroa.229.0.copyload)
  %262 = extractvalue { i64, i8 } %261, 0
  store i64 %262, ptr %54, align 8
  %263 = getelementptr inbounds i8, ptr %54, i64 8
  %264 = extractvalue { i64, i8 } %261, 1
  store i8 %264, ptr %263, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %55) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %55, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %54)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %55) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %54) #5
  br label %286

265:                                              ; preds = %257
  br i1 %.0210.not, label %275, label %266

266:                                              ; preds = %265
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %56) #5
  %.sroa.025.0.copyload = load i64, ptr %258, align 8, !tbaa !9
  %.sroa.226.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 104
  %.sroa.226.0.copyload = load i8, ptr %.sroa.226.0..sroa_idx, align 8, !tbaa !11
  %267 = call { i64, i8 } @geohash_next_rightbottom(i64 %.sroa.025.0.copyload, i8 %.sroa.226.0.copyload)
  %268 = extractvalue { i64, i8 } %267, 0
  store i64 %268, ptr %56, align 8
  %269 = getelementptr inbounds i8, ptr %56, i64 8
  %270 = extractvalue { i64, i8 } %267, 1
  store i8 %270, ptr %269, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %57) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %57, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %56)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %57) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %56) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %58) #5
  %.sroa.022.0.copyload = load i64, ptr %258, align 8, !tbaa !9
  %.sroa.223.0.copyload = load i8, ptr %.sroa.226.0..sroa_idx, align 8, !tbaa !11
  %271 = call { i64, i8 } @geohash_next_leftbottom(i64 %.sroa.022.0.copyload, i8 %.sroa.223.0.copyload)
  %272 = extractvalue { i64, i8 } %271, 0
  store i64 %272, ptr %58, align 8
  %273 = getelementptr inbounds i8, ptr %58, i64 8
  %274 = extractvalue { i64, i8 } %271, 1
  store i8 %274, ptr %273, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %59) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %59, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %58)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %59) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %58) #5
  br label %286

275:                                              ; preds = %265
  br i1 %.0209.not231, label %285, label %276

276:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %60) #5
  %.sroa.019.0.copyload = load i64, ptr %258, align 8, !tbaa !9
  %.sroa.220.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 104
  %.sroa.220.0.copyload = load i8, ptr %.sroa.220.0..sroa_idx, align 8, !tbaa !11
  %277 = call { i64, i8 } @geohash_next_rightbottom(i64 %.sroa.019.0.copyload, i8 %.sroa.220.0.copyload)
  %278 = extractvalue { i64, i8 } %277, 0
  store i64 %278, ptr %60, align 8
  %279 = getelementptr inbounds i8, ptr %60, i64 8
  %280 = extractvalue { i64, i8 } %277, 1
  store i8 %280, ptr %279, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %61) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %61, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %60)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %61) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %60) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %62) #5
  %.sroa.016.0.copyload = load i64, ptr %258, align 8, !tbaa !9
  %.sroa.217.0.copyload = load i8, ptr %.sroa.220.0..sroa_idx, align 8, !tbaa !11
  %281 = call { i64, i8 } @geohash_next_righttop(i64 %.sroa.016.0.copyload, i8 %.sroa.217.0.copyload)
  %282 = extractvalue { i64, i8 } %281, 0
  store i64 %282, ptr %62, align 8
  %283 = getelementptr inbounds i8, ptr %62, i64 8
  %284 = extractvalue { i64, i8 } %281, 1
  store i8 %284, ptr %283, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %63) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %63, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %62)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %63) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %62) #5
  br label %286

285:                                              ; preds = %275
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %64) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %64, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %258)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %64) #5
  br label %286

286:                                              ; preds = %260, %276, %285, %266, %252
  %287 = load double, ptr %99, align 8, !tbaa !16
  %288 = load <2 x double>, ptr %105, align 8
  %289 = insertelement <2 x double> %288, double %287, i64 1
  %290 = fcmp olt <2 x double> %91, %289
  %291 = extractelement <2 x i1> %290, i64 0
  %292 = extractelement <2 x i1> %290, i64 1
  %or.cond226 = select i1 %292, i1 %291, i1 false
  br i1 %or.cond226, label %293, label %322

293:                                              ; preds = %286
  %.sroa.013.0.copyload = load i64, ptr %8, align 8, !tbaa !9
  %.sroa.214.0.copyload = load i8, ptr %.sroa.2125.0..sroa_idx, align 8, !tbaa !11
  %294 = getelementptr inbounds i8, ptr %11, i64 112
  %295 = call i32 @geohash_get_neighbor(i64 %.sroa.013.0.copyload, i8 %.sroa.214.0.copyload, i32 noundef 4, ptr noundef nonnull %294)
  %brmerge229.demorgan.not = or i1 %.0209.not231, %.0211.not230
  br i1 %brmerge229.demorgan.not, label %301, label %296

296:                                              ; preds = %293
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %65) #5
  %.sroa.010.0.copyload = load i64, ptr %294, align 8, !tbaa !9
  %.sroa.211.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 120
  %.sroa.211.0.copyload = load i8, ptr %.sroa.211.0..sroa_idx, align 8, !tbaa !11
  %297 = call { i64, i8 } @geohash_next_righttop(i64 %.sroa.010.0.copyload, i8 %.sroa.211.0.copyload)
  %298 = extractvalue { i64, i8 } %297, 0
  store i64 %298, ptr %65, align 8
  %299 = getelementptr inbounds i8, ptr %65, i64 8
  %300 = extractvalue { i64, i8 } %297, 1
  store i8 %300, ptr %299, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %66) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %66, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %65)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %66) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %65) #5
  br label %322

301:                                              ; preds = %293
  br i1 %.0211.not230, label %311, label %302

302:                                              ; preds = %301
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %67) #5
  %.sroa.07.0.copyload = load i64, ptr %294, align 8, !tbaa !9
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 120
  %.sroa.28.0.copyload = load i8, ptr %.sroa.28.0..sroa_idx, align 8, !tbaa !11
  %303 = call { i64, i8 } @geohash_next_righttop(i64 %.sroa.07.0.copyload, i8 %.sroa.28.0.copyload)
  %304 = extractvalue { i64, i8 } %303, 0
  store i64 %304, ptr %67, align 8
  %305 = getelementptr inbounds i8, ptr %67, i64 8
  %306 = extractvalue { i64, i8 } %303, 1
  store i8 %306, ptr %305, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %68) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %68, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %67)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %68) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %67) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %69) #5
  %.sroa.04.0.copyload = load i64, ptr %294, align 8, !tbaa !9
  %.sroa.25.0.copyload = load i8, ptr %.sroa.28.0..sroa_idx, align 8, !tbaa !11
  %307 = call { i64, i8 } @geohash_next_lefttop(i64 %.sroa.04.0.copyload, i8 %.sroa.25.0.copyload)
  %308 = extractvalue { i64, i8 } %307, 0
  store i64 %308, ptr %69, align 8
  %309 = getelementptr inbounds i8, ptr %69, i64 8
  %310 = extractvalue { i64, i8 } %307, 1
  store i8 %310, ptr %309, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %70) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %70, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %69)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %70) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %69) #5
  br label %322

311:                                              ; preds = %301
  br i1 %.0209.not231, label %321, label %312

312:                                              ; preds = %311
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %71) #5
  %.sroa.01.0.copyload = load i64, ptr %294, align 8, !tbaa !9
  %.sroa.22.0..sroa_idx = getelementptr inbounds i8, ptr %11, i64 120
  %.sroa.22.0.copyload = load i8, ptr %.sroa.22.0..sroa_idx, align 8, !tbaa !11
  %313 = call { i64, i8 } @geohash_next_rightbottom(i64 %.sroa.01.0.copyload, i8 %.sroa.22.0.copyload)
  %314 = extractvalue { i64, i8 } %313, 0
  store i64 %314, ptr %71, align 8
  %315 = getelementptr inbounds i8, ptr %71, i64 8
  %316 = extractvalue { i64, i8 } %313, 1
  store i8 %316, ptr %315, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %72) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %72, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %71)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %72) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %71) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %73) #5
  %.sroa.0.0.copyload = load i64, ptr %294, align 8, !tbaa !9
  %.sroa.2.0.copyload = load i8, ptr %.sroa.22.0..sroa_idx, align 8, !tbaa !11
  %317 = call { i64, i8 } @geohash_next_righttop(i64 %.sroa.0.0.copyload, i8 %.sroa.2.0.copyload)
  %318 = extractvalue { i64, i8 } %317, 0
  store i64 %318, ptr %73, align 8
  %319 = getelementptr inbounds i8, ptr %73, i64 8
  %320 = extractvalue { i64, i8 } %317, 1
  store i8 %320, ptr %319, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %74) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %74, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %73)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %74) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %73) #5
  br label %322

321:                                              ; preds = %311
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %75) #5
  call void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %75, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(16) %294)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %75) #5
  br label %322

322:                                              ; preds = %296, %312, %321, %302, %286
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  ret i32 0
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cos(double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i8 @_ZN4ardbL32estimate_geohash_steps_by_radiusEd(double noundef) local_unnamed_addr #0

declare i32 @geohash_fast_encode(double, double, double, double, double noundef, double noundef, i8 noundef zeroext, ptr noundef) local_unnamed_addr #4

declare i32 @geohash_fast_decode(double, double, double, double, i64, i8, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5btree22btree_unique_containerINS_5btreeINS_16btree_set_paramsI11GeoHashBitsN4ardb21GeoHashBitsComparatorESaIS3_ELi256EEEEEE6insertERKS3_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(16)) local_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) #2

declare i32 @geohash_get_neighbor(i64, i8, i32 noundef, ptr noundef) local_unnamed_addr #4

declare { i64, i8 } @geohash_next_leftbottom(i64, i8) local_unnamed_addr #4

declare { i64, i8 } @geohash_next_lefttop(i64, i8) local_unnamed_addr #4

declare { i64, i8 } @geohash_next_rightbottom(i64, i8) local_unnamed_addr #4

declare { i64, i8 } @geohash_next_righttop(i64, i8) local_unnamed_addr #4

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nofree nounwind willreturn memory(write) "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 = { "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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 32}
!13 = !{!"_ZTS11GeoHashArea", !14, i64 0, !15, i64 16, !15, i64 32}
!14 = !{!"_ZTS11GeoHashBits", !10, i64 0, !7, i64 8}
!15 = !{!"_ZTS12GeoHashRange", !6, i64 0, !6, i64 8}
!16 = !{!13, !6, i64 40}
!17 = !{!13, !6, i64 16}
!18 = !{!13, !6, i64 24}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,VectorCombinePass