; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_compiled_3)

; 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.w2c_hermes = type { ptr, ptr, ptr, i32, i32, i32, %struct.wasm_rt_memory_t, %struct.wasm_rt_funcref_table_t }
%struct.wasm_rt_memory_t = type { ptr, i64, i64, i64, i8 }
%struct.wasm_rt_funcref_table_t = type { ptr, i32, i32 }

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

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

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: noreturn
declare void @wasm_rt_trap(i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store(ptr noundef, i64 noundef, i32 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store16(ptr noundef, i64 noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AOldGen0x3A0x3AaddCellToFreelist0x28void0x2A0x2C0x20unsigned0x20int0x2C0x20hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AOldGen0x3A0x3ASegmentBucket0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #4 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %18 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %18, ptr %12, align 4, !tbaa !9
  store i32 15, ptr %13, align 4, !tbaa !9
  %19 = load i32, ptr %12, align 4, !tbaa !9
  %20 = load i32, ptr %13, align 4, !tbaa !9
  %21 = icmp ugt i32 %19, %20
  %22 = zext i1 %21 to i32
  store i32 %22, ptr %12, align 4, !tbaa !9
  %23 = load i32, ptr %12, align 4, !tbaa !9
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %25, label %244

25:                                               ; preds = %5
  %26 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %26, ptr %12, align 4, !tbaa !9
  store i64 0, ptr %17, align 8, !tbaa !11
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.w2c_hermes, ptr %27, i32 0, i32 6
  %29 = load i32, ptr %12, align 4, !tbaa !9
  %30 = zext i32 %29 to i64
  %31 = load i64, ptr %17, align 8, !tbaa !11
  call void @i64_store(ptr noundef %28, i64 noundef %30, i64 noundef %31)
  %32 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %32, ptr %12, align 4, !tbaa !9
  store i64 0, ptr %17, align 8, !tbaa !11
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.w2c_hermes, ptr %33, i32 0, i32 6
  %35 = load i32, ptr %12, align 4, !tbaa !9
  %36 = zext i32 %35 to i64
  %37 = add i64 %36, 8
  %38 = load i64, ptr %17, align 8, !tbaa !11
  call void @i64_store(ptr noundef %34, i64 noundef %37, i64 noundef %38)
  %39 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %39, ptr %12, align 4, !tbaa !9
  store i32 52753, ptr %13, align 4, !tbaa !9
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.w2c_hermes, ptr %40, i32 0, i32 6
  %42 = load i32, ptr %12, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = add i64 %43, 4
  %45 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %41, i64 noundef %44, i32 noundef %45)
  %46 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %46, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %47 = load i32, ptr %13, align 4, !tbaa !9
  %48 = load i32, ptr %12, align 4, !tbaa !9
  %49 = and i32 %48, %47
  store i32 %49, ptr %12, align 4, !tbaa !9
  %50 = load i32, ptr %12, align 4, !tbaa !9
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %53

52:                                               ; preds = %25
  br label %262

53:                                               ; preds = %25
  %54 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %54, ptr %12, align 4, !tbaa !9
  store i32 16777216, ptr %13, align 4, !tbaa !9
  %55 = load i32, ptr %12, align 4, !tbaa !9
  %56 = load i32, ptr %13, align 4, !tbaa !9
  %57 = icmp uge i32 %55, %56
  %58 = zext i1 %57 to i32
  store i32 %58, ptr %12, align 4, !tbaa !9
  %59 = load i32, ptr %12, align 4, !tbaa !9
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %62

61:                                               ; preds = %53
  br label %280

62:                                               ; preds = %53
  %63 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %63, ptr %12, align 4, !tbaa !9
  %64 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %64, ptr %13, align 4, !tbaa !9
  store i32 33554432, ptr %14, align 4, !tbaa !9
  %65 = load i32, ptr %14, align 4, !tbaa !9
  %66 = load i32, ptr %13, align 4, !tbaa !9
  %67 = or i32 %66, %65
  store i32 %67, ptr %13, align 4, !tbaa !9
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.w2c_hermes, ptr %68, i32 0, i32 6
  %70 = load i32, ptr %12, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %69, i64 noundef %71, i32 noundef %72)
  %73 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %73, ptr %12, align 4, !tbaa !9
  %74 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %74, ptr %13, align 4, !tbaa !9
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = load i32, ptr %12, align 4, !tbaa !9
  %77 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AHeapSegment0x3A0x3AsetCellHead0x28hermes0x3A0x3Avm0x3A0x3AGCCell0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %75, i32 noundef %76, i32 noundef %77)
  %78 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %78, ptr %12, align 4, !tbaa !9
  %79 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %79, ptr %13, align 4, !tbaa !9
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.w2c_hermes, ptr %80, i32 0, i32 6
  %82 = load i32, ptr %13, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = add i64 %83, 8
  %85 = call i32 @i32_load(ptr noundef %81, i64 noundef %84)
  store i32 %85, ptr %13, align 4, !tbaa !9
  %86 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %86, ptr %9, align 4, !tbaa !9
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.w2c_hermes, ptr %87, i32 0, i32 6
  %89 = load i32, ptr %12, align 4, !tbaa !9
  %90 = zext i32 %89 to i64
  %91 = add i64 %90, 12
  %92 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %88, i64 noundef %91, i32 noundef %92)
  %93 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %93, ptr %12, align 4, !tbaa !9
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.w2c_hermes, ptr %94, i32 0, i32 6
  %96 = load i32, ptr %12, align 4, !tbaa !9
  %97 = zext i32 %96 to i64
  %98 = call i32 @i32_load(ptr noundef %95, i64 noundef %97)
  store i32 %98, ptr %12, align 4, !tbaa !9
  %99 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %99, ptr %11, align 4, !tbaa !9
  %100 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %100, ptr %12, align 4, !tbaa !9
  %101 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %101, ptr %13, align 4, !tbaa !9
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.w2c_hermes, ptr %102, i32 0, i32 6
  %104 = load i32, ptr %12, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = add i64 %105, 8
  %107 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %103, i64 noundef %106, i32 noundef %107)
  %108 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %108, ptr %12, align 4, !tbaa !9
  %109 = load i32, ptr %12, align 4, !tbaa !9
  %110 = icmp ne i32 %109, 0
  %111 = xor i1 %110, true
  %112 = zext i1 %111 to i32
  store i32 %112, ptr %12, align 4, !tbaa !9
  %113 = load i32, ptr %12, align 4, !tbaa !9
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %243

115:                                              ; preds = %62
  %116 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %116, ptr %12, align 4, !tbaa !9
  %117 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %117, ptr %13, align 4, !tbaa !9
  store i32 16777215, ptr %14, align 4, !tbaa !9
  %118 = load i32, ptr %14, align 4, !tbaa !9
  %119 = load i32, ptr %13, align 4, !tbaa !9
  %120 = and i32 %119, %118
  store i32 %120, ptr %13, align 4, !tbaa !9
  %121 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %121, ptr %8, align 4, !tbaa !9
  store i32 2047, ptr %14, align 4, !tbaa !9
  %122 = load i32, ptr %13, align 4, !tbaa !9
  %123 = load i32, ptr %14, align 4, !tbaa !9
  %124 = icmp ule i32 %122, %123
  %125 = zext i1 %124 to i32
  store i32 %125, ptr %13, align 4, !tbaa !9
  %126 = load i32, ptr %13, align 4, !tbaa !9
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %134

128:                                              ; preds = %115
  %129 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %129, ptr %13, align 4, !tbaa !9
  store i32 3, ptr %14, align 4, !tbaa !9
  %130 = load i32, ptr %14, align 4, !tbaa !9
  %131 = and i32 %130, 31
  %132 = load i32, ptr %13, align 4, !tbaa !9
  %133 = lshr i32 %132, %131
  store i32 %133, ptr %13, align 4, !tbaa !9
  br label %156

134:                                              ; preds = %115
  %135 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %135, ptr %13, align 4, !tbaa !9
  store i32 4194304, ptr %14, align 4, !tbaa !9
  %136 = load i32, ptr %13, align 4, !tbaa !9
  %137 = load i32, ptr %14, align 4, !tbaa !9
  %138 = icmp uge i32 %136, %137
  %139 = zext i1 %138 to i32
  store i32 %139, ptr %13, align 4, !tbaa !9
  %140 = load i32, ptr %13, align 4, !tbaa !9
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %143

142:                                              ; preds = %134
  br label %298

143:                                              ; preds = %134
  store i32 276, ptr %13, align 4, !tbaa !9
  %144 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %144, ptr %14, align 4, !tbaa !9
  %145 = load i32, ptr %14, align 4, !tbaa !9
  %146 = icmp ne i32 %145, 0
  br i1 %146, label %147, label %150

147:                                              ; preds = %143
  %148 = load i32, ptr %14, align 4, !tbaa !9
  %149 = call i32 @llvm.ctlz.i32(i32 %148, i1 true)
  br label %151

150:                                              ; preds = %143
  br label %151

151:                                              ; preds = %150, %147
  %152 = phi i32 [ %149, %147 ], [ 32, %150 ]
  store i32 %152, ptr %14, align 4, !tbaa !9
  %153 = load i32, ptr %14, align 4, !tbaa !9
  %154 = load i32, ptr %13, align 4, !tbaa !9
  %155 = sub i32 %154, %153
  store i32 %155, ptr %13, align 4, !tbaa !9
  br label %156

156:                                              ; preds = %151, %128
  %157 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %157, ptr %8, align 4, !tbaa !9
  store i32 12, ptr %14, align 4, !tbaa !9
  %158 = load i32, ptr %14, align 4, !tbaa !9
  %159 = load i32, ptr %13, align 4, !tbaa !9
  %160 = mul i32 %159, %158
  store i32 %160, ptr %13, align 4, !tbaa !9
  %161 = load i32, ptr %13, align 4, !tbaa !9
  %162 = load i32, ptr %12, align 4, !tbaa !9
  %163 = add i32 %162, %161
  store i32 %163, ptr %12, align 4, !tbaa !9
  store i32 124, ptr %13, align 4, !tbaa !9
  %164 = load i32, ptr %13, align 4, !tbaa !9
  %165 = load i32, ptr %12, align 4, !tbaa !9
  %166 = add i32 %165, %164
  store i32 %166, ptr %12, align 4, !tbaa !9
  %167 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %167, ptr %9, align 4, !tbaa !9
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.w2c_hermes, ptr %168, i32 0, i32 6
  %170 = load i32, ptr %12, align 4, !tbaa !9
  %171 = zext i32 %170 to i64
  %172 = call i32 @i32_load(ptr noundef %169, i64 noundef %171)
  store i32 %172, ptr %12, align 4, !tbaa !9
  %173 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %173, ptr %11, align 4, !tbaa !9
  %174 = load i32, ptr %12, align 4, !tbaa !9
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %176, label %185

176:                                              ; preds = %156
  %177 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %177, ptr %12, align 4, !tbaa !9
  %178 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %178, ptr %13, align 4, !tbaa !9
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.w2c_hermes, ptr %179, i32 0, i32 6
  %181 = load i32, ptr %12, align 4, !tbaa !9
  %182 = zext i32 %181 to i64
  %183 = add i64 %182, 4
  %184 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %180, i64 noundef %183, i32 noundef %184)
  br label %185

185:                                              ; preds = %176, %156
  %186 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %186, ptr %12, align 4, !tbaa !9
  %187 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %187, ptr %13, align 4, !tbaa !9
  %188 = load ptr, ptr %6, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.w2c_hermes, ptr %188, i32 0, i32 6
  %190 = load i32, ptr %12, align 4, !tbaa !9
  %191 = zext i32 %190 to i64
  %192 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %189, i64 noundef %191, i32 noundef %192)
  %193 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %193, ptr %12, align 4, !tbaa !9
  %194 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %194, ptr %13, align 4, !tbaa !9
  %195 = load ptr, ptr %6, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.w2c_hermes, ptr %195, i32 0, i32 6
  %197 = load i32, ptr %12, align 4, !tbaa !9
  %198 = zext i32 %197 to i64
  %199 = add i64 %198, 4
  %200 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %196, i64 noundef %199, i32 noundef %200)
  %201 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %201, ptr %12, align 4, !tbaa !9
  %202 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %202, ptr %13, align 4, !tbaa !9
  %203 = load ptr, ptr %6, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.w2c_hermes, ptr %203, i32 0, i32 6
  %205 = load i32, ptr %12, align 4, !tbaa !9
  %206 = zext i32 %205 to i64
  %207 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %204, i64 noundef %206, i32 noundef %207)
  %208 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %208, ptr %12, align 4, !tbaa !9
  %209 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %209, ptr %13, align 4, !tbaa !9
  store i32 3, ptr %14, align 4, !tbaa !9
  %210 = load i32, ptr %14, align 4, !tbaa !9
  %211 = and i32 %210, 31
  %212 = load i32, ptr %13, align 4, !tbaa !9
  %213 = lshr i32 %212, %211
  store i32 %213, ptr %13, align 4, !tbaa !9
  store i32 262140, ptr %14, align 4, !tbaa !9
  %214 = load i32, ptr %14, align 4, !tbaa !9
  %215 = load i32, ptr %13, align 4, !tbaa !9
  %216 = and i32 %215, %214
  store i32 %216, ptr %13, align 4, !tbaa !9
  %217 = load i32, ptr %13, align 4, !tbaa !9
  %218 = load i32, ptr %12, align 4, !tbaa !9
  %219 = add i32 %218, %217
  store i32 %219, ptr %12, align 4, !tbaa !9
  store i32 -64, ptr %13, align 4, !tbaa !9
  %220 = load i32, ptr %13, align 4, !tbaa !9
  %221 = load i32, ptr %12, align 4, !tbaa !9
  %222 = sub i32 %221, %220
  store i32 %222, ptr %12, align 4, !tbaa !9
  %223 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %223, ptr %9, align 4, !tbaa !9
  %224 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %224, ptr %13, align 4, !tbaa !9
  %225 = load ptr, ptr %6, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.w2c_hermes, ptr %225, i32 0, i32 6
  %227 = load i32, ptr %13, align 4, !tbaa !9
  %228 = zext i32 %227 to i64
  %229 = call i32 @i32_load(ptr noundef %226, i64 noundef %228)
  store i32 %229, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %230 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %230, ptr %15, align 4, !tbaa !9
  %231 = load i32, ptr %15, align 4, !tbaa !9
  %232 = and i32 %231, 31
  %233 = load i32, ptr %14, align 4, !tbaa !9
  %234 = shl i32 %233, %232
  store i32 %234, ptr %14, align 4, !tbaa !9
  %235 = load i32, ptr %14, align 4, !tbaa !9
  %236 = load i32, ptr %13, align 4, !tbaa !9
  %237 = or i32 %236, %235
  store i32 %237, ptr %13, align 4, !tbaa !9
  %238 = load ptr, ptr %6, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.w2c_hermes, ptr %238, i32 0, i32 6
  %240 = load i32, ptr %12, align 4, !tbaa !9
  %241 = zext i32 %240 to i64
  %242 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %239, i64 noundef %241, i32 noundef %242)
  br label %243

243:                                              ; preds = %185, %62
  br label %316

244:                                              ; preds = %5
  store i32 0, ptr %12, align 4, !tbaa !9
  %245 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %245, ptr %8, align 4, !tbaa !9
  store i32 185198, ptr %13, align 4, !tbaa !9
  %246 = load i32, ptr %13, align 4, !tbaa !9
  %247 = load i32, ptr %12, align 4, !tbaa !9
  %248 = add i32 %247, %246
  store i32 %248, ptr %12, align 4, !tbaa !9
  %249 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %249, ptr %13, align 4, !tbaa !9
  store i32 62693, ptr %14, align 4, !tbaa !9
  %250 = load i32, ptr %14, align 4, !tbaa !9
  %251 = load i32, ptr %13, align 4, !tbaa !9
  %252 = add i32 %251, %250
  store i32 %252, ptr %13, align 4, !tbaa !9
  store i32 87, ptr %14, align 4, !tbaa !9
  %253 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %253, ptr %15, align 4, !tbaa !9
  store i32 23846, ptr %16, align 4, !tbaa !9
  %254 = load i32, ptr %16, align 4, !tbaa !9
  %255 = load i32, ptr %15, align 4, !tbaa !9
  %256 = add i32 %255, %254
  store i32 %256, ptr %15, align 4, !tbaa !9
  %257 = load ptr, ptr %6, align 8, !tbaa !5
  %258 = load i32, ptr %12, align 4, !tbaa !9
  %259 = load i32, ptr %13, align 4, !tbaa !9
  %260 = load i32, ptr %14, align 4, !tbaa !9
  %261 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %257, i32 noundef %258, i32 noundef %259, i32 noundef %260, i32 noundef %261)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

262:                                              ; preds = %52
  store i32 0, ptr %12, align 4, !tbaa !9
  %263 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %263, ptr %8, align 4, !tbaa !9
  store i32 193621, ptr %13, align 4, !tbaa !9
  %264 = load i32, ptr %13, align 4, !tbaa !9
  %265 = load i32, ptr %12, align 4, !tbaa !9
  %266 = add i32 %265, %264
  store i32 %266, ptr %12, align 4, !tbaa !9
  %267 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %267, ptr %13, align 4, !tbaa !9
  store i32 82339, ptr %14, align 4, !tbaa !9
  %268 = load i32, ptr %14, align 4, !tbaa !9
  %269 = load i32, ptr %13, align 4, !tbaa !9
  %270 = add i32 %269, %268
  store i32 %270, ptr %13, align 4, !tbaa !9
  store i32 57, ptr %14, align 4, !tbaa !9
  %271 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %271, ptr %15, align 4, !tbaa !9
  store i32 88934, ptr %16, align 4, !tbaa !9
  %272 = load i32, ptr %16, align 4, !tbaa !9
  %273 = load i32, ptr %15, align 4, !tbaa !9
  %274 = add i32 %273, %272
  store i32 %274, ptr %15, align 4, !tbaa !9
  %275 = load ptr, ptr %6, align 8, !tbaa !5
  %276 = load i32, ptr %12, align 4, !tbaa !9
  %277 = load i32, ptr %13, align 4, !tbaa !9
  %278 = load i32, ptr %14, align 4, !tbaa !9
  %279 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %275, i32 noundef %276, i32 noundef %277, i32 noundef %278, i32 noundef %279)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

280:                                              ; preds = %61
  store i32 0, ptr %12, align 4, !tbaa !9
  %281 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %281, ptr %8, align 4, !tbaa !9
  store i32 196840, ptr %13, align 4, !tbaa !9
  %282 = load i32, ptr %13, align 4, !tbaa !9
  %283 = load i32, ptr %12, align 4, !tbaa !9
  %284 = add i32 %283, %282
  store i32 %284, ptr %12, align 4, !tbaa !9
  %285 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %285, ptr %13, align 4, !tbaa !9
  store i32 82339, ptr %14, align 4, !tbaa !9
  %286 = load i32, ptr %14, align 4, !tbaa !9
  %287 = load i32, ptr %13, align 4, !tbaa !9
  %288 = add i32 %287, %286
  store i32 %288, ptr %13, align 4, !tbaa !9
  store i32 58, ptr %14, align 4, !tbaa !9
  %289 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %289, ptr %15, align 4, !tbaa !9
  store i32 88934, ptr %16, align 4, !tbaa !9
  %290 = load i32, ptr %16, align 4, !tbaa !9
  %291 = load i32, ptr %15, align 4, !tbaa !9
  %292 = add i32 %291, %290
  store i32 %292, ptr %15, align 4, !tbaa !9
  %293 = load ptr, ptr %6, align 8, !tbaa !5
  %294 = load i32, ptr %12, align 4, !tbaa !9
  %295 = load i32, ptr %13, align 4, !tbaa !9
  %296 = load i32, ptr %14, align 4, !tbaa !9
  %297 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %293, i32 noundef %294, i32 noundef %295, i32 noundef %296, i32 noundef %297)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

298:                                              ; preds = %142
  store i32 0, ptr %12, align 4, !tbaa !9
  %299 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %299, ptr %8, align 4, !tbaa !9
  store i32 205322, ptr %13, align 4, !tbaa !9
  %300 = load i32, ptr %13, align 4, !tbaa !9
  %301 = load i32, ptr %12, align 4, !tbaa !9
  %302 = add i32 %301, %300
  store i32 %302, ptr %12, align 4, !tbaa !9
  %303 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %303, ptr %13, align 4, !tbaa !9
  store i32 62693, ptr %14, align 4, !tbaa !9
  %304 = load i32, ptr %14, align 4, !tbaa !9
  %305 = load i32, ptr %13, align 4, !tbaa !9
  %306 = add i32 %305, %304
  store i32 %306, ptr %13, align 4, !tbaa !9
  store i32 2298, ptr %14, align 4, !tbaa !9
  %307 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %307, ptr %15, align 4, !tbaa !9
  store i32 34810, ptr %16, align 4, !tbaa !9
  %308 = load i32, ptr %16, align 4, !tbaa !9
  %309 = load i32, ptr %15, align 4, !tbaa !9
  %310 = add i32 %309, %308
  store i32 %310, ptr %15, align 4, !tbaa !9
  %311 = load ptr, ptr %6, align 8, !tbaa !5
  %312 = load i32, ptr %12, align 4, !tbaa !9
  %313 = load i32, ptr %13, align 4, !tbaa !9
  %314 = load i32, ptr %14, align 4, !tbaa !9
  %315 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %311, i32 noundef %312, i32 noundef %313, i32 noundef %314, i32 noundef %315)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

316:                                              ; preds = %243
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AHeapSegment0x3A0x3AsetCellHead0x28hermes0x3A0x3Avm0x3A0x3AGCCell0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef, i32 noundef, i32 noundef) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctlz.i32(i32, i1 immarg) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}


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

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store16(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AOldGen0x3A0x3AaddCellToFreelist0x28void0x2A0x2C0x20unsigned0x20int0x2C0x20hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AOldGen0x3A0x3ASegmentBucket0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #3 {
  %6 = icmp ugt i32 %3, 15
  br i1 %6, label %7, label %52

7:                                                ; preds = %5
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = zext i32 %2 to i64
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %9, i64 noundef 0)
  %10 = add nuw nsw i64 %9, 8
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %10, i64 noundef 0)
  %11 = add nuw nsw i64 %9, 4
  tail call void @i32_store16(ptr noundef nonnull %8, i64 noundef %11, i32 noundef 52753)
  %12 = and i32 %3, 1
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %13, label %53

13:                                               ; preds = %7
  %14 = icmp ugt i32 %3, 16777215
  br i1 %14, label %54, label %15

15:                                               ; preds = %13
  %16 = or disjoint i32 %3, 33554432
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %9, i32 noundef %16)
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AHeapSegment0x3A0x3AsetCellHead0x28hermes0x3A0x3Avm0x3A0x3AGCCell0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %0, i32 noundef %2, i32 noundef %3)
  %17 = zext i32 %4 to i64
  %18 = add nuw nsw i64 %17, 8
  %19 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %18)
  %20 = add nuw nsw i64 %9, 12
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %20, i32 noundef %19)
  %21 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %9)
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %18, i32 noundef %2)
  %.not188 = icmp eq i32 %19, 0
  br i1 %.not188, label %22, label %56

22:                                               ; preds = %15
  %23 = and i32 %21, 16777215
  %24 = icmp ult i32 %23, 2048
  br i1 %24, label %25, label %27

25:                                               ; preds = %22
  %26 = lshr i32 %23, 3
  br label %32

27:                                               ; preds = %22
  %28 = icmp ugt i32 %23, 4194303
  br i1 %28, label %55, label %29

29:                                               ; preds = %27
  %30 = tail call range(i32 10, 33) i32 @llvm.ctlz.i32(i32 %23, i1 true)
  %31 = sub nuw nsw i32 276, %30
  br label %32

32:                                               ; preds = %29, %25
  %.0 = phi i32 [ %26, %25 ], [ %31, %29 ]
  %33 = mul nuw nsw i32 %.0, 12
  %34 = add i32 %1, 124
  %35 = add i32 %34, %33
  %36 = zext i32 %35 to i64
  %37 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %36)
  %.not189 = icmp eq i32 %37, 0
  br i1 %.not189, label %41, label %38

38:                                               ; preds = %32
  %39 = zext i32 %37 to i64
  %40 = add nuw nsw i64 %39, 4
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %40, i32 noundef %4)
  br label %41

41:                                               ; preds = %38, %32
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %17, i32 noundef %37)
  %42 = add nuw nsw i64 %17, 4
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %42, i32 noundef %35)
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %36, i32 noundef %4)
  %43 = lshr i32 %.0, 3
  %44 = and i32 %43, 262140
  %45 = add i32 %1, 64
  %46 = add i32 %45, %44
  %47 = zext i32 %46 to i64
  %48 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %47)
  %49 = and i32 %.0, 31
  %50 = shl nuw i32 1, %49
  %51 = or i32 %48, %50
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %47, i32 noundef %51)
  br label %56

52:                                               ; preds = %5
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 185198, i32 noundef 62693, i32 noundef 87, i32 noundef 23846) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

53:                                               ; preds = %7
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 193621, i32 noundef 82339, i32 noundef 57, i32 noundef 88934) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

54:                                               ; preds = %13
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 196840, i32 noundef 82339, i32 noundef 58, i32 noundef 88934) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

55:                                               ; preds = %27
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 205322, i32 noundef 62693, i32 noundef 2298, i32 noundef 34810) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

56:                                               ; preds = %15, %41
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AHeapSegment0x3A0x3AsetCellHead0x28hermes0x3A0x3Avm0x3A0x3AGCCell0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctlz.i32(i32, i1 immarg) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


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