; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_opt_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: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) #1

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

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_load(ptr noundef, i64 noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AOldGen0x3A0x3Aalloc0x28unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %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 i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.w2c_hermes, ptr %17, i32 0, i32 3
  %19 = load i32, ptr %18, align 8, !tbaa !11
  store i32 %19, ptr %11, align 4, !tbaa !9
  store i32 -64, ptr %12, align 4, !tbaa !9
  %20 = load i32, ptr %12, align 4, !tbaa !9
  %21 = load i32, ptr %11, align 4, !tbaa !9
  %22 = add i32 %21, %20
  store i32 %22, ptr %11, align 4, !tbaa !9
  %23 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %23, ptr %7, align 4, !tbaa !9
  %24 = load i32, ptr %11, align 4, !tbaa !9
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.w2c_hermes, ptr %25, i32 0, i32 3
  store i32 %24, ptr %26, align 8, !tbaa !11
  %27 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %27, ptr %11, align 4, !tbaa !9
  %28 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %28, ptr %12, align 4, !tbaa !9
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = load i32, ptr %11, align 4, !tbaa !9
  %31 = load i32, ptr %12, align 4, !tbaa !9
  %32 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AOldGen0x3A0x3Asearch0x28unsigned0x20int0x29(ptr noundef %29, i32 noundef %30, i32 noundef %31)
  store i32 %32, ptr %11, align 4, !tbaa !9
  %33 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %33, ptr %8, align 4, !tbaa !9
  %34 = load i32, ptr %11, align 4, !tbaa !9
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %36, label %37

36:                                               ; preds = %3
  br label %298

37:                                               ; preds = %3
  %38 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %38, ptr %11, align 4, !tbaa !9
  store i32 36, ptr %12, align 4, !tbaa !9
  %39 = load i32, ptr %12, align 4, !tbaa !9
  %40 = load i32, ptr %11, align 4, !tbaa !9
  %41 = add i32 %40, %39
  store i32 %41, ptr %11, align 4, !tbaa !9
  %42 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %42, ptr %12, align 4, !tbaa !9
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.w2c_hermes, ptr %43, i32 0, i32 6
  %45 = load i32, ptr %12, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = call i32 @i32_load(ptr noundef %44, i64 noundef %46)
  store i32 %47, ptr %12, align 4, !tbaa !9
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = load i32, ptr %11, align 4, !tbaa !9
  %50 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AcreateSegment0x280x29(ptr noundef %48, i32 noundef %49, i32 noundef %50)
  %51 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %51, ptr %11, align 4, !tbaa !9
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.w2c_hermes, ptr %52, i32 0, i32 6
  %54 = load i32, ptr %11, align 4, !tbaa !9
  %55 = zext i32 %54 to i64
  %56 = add i64 %55, 52
  %57 = call i32 @i32_load8_u(ptr noundef %53, i64 noundef %56)
  store i32 %57, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %58 = load i32, ptr %12, align 4, !tbaa !9
  %59 = load i32, ptr %11, align 4, !tbaa !9
  %60 = and i32 %59, %58
  store i32 %60, ptr %11, align 4, !tbaa !9
  %61 = load i32, ptr %11, align 4, !tbaa !9
  %62 = icmp ne i32 %61, 0
  %63 = xor i1 %62, true
  %64 = zext i1 %63 to i32
  store i32 %64, ptr %11, align 4, !tbaa !9
  %65 = load i32, ptr %11, align 4, !tbaa !9
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %260

67:                                               ; preds = %37
  %68 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %68, ptr %11, align 4, !tbaa !9
  %69 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %69, ptr %12, align 4, !tbaa !9
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.w2c_hermes, ptr %70, i32 0, i32 6
  %72 = load i32, ptr %12, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = add i64 %73, 48
  %75 = call i32 @i32_load(ptr noundef %71, i64 noundef %74)
  store i32 %75, ptr %12, align 4, !tbaa !9
  %76 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %76, ptr %13, align 4, !tbaa !9
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.w2c_hermes, ptr %77, i32 0, i32 6
  %79 = load i32, ptr %13, align 4, !tbaa !9
  %80 = zext i32 %79 to i64
  %81 = add i64 %80, 44
  %82 = call i32 @i32_load(ptr noundef %78, i64 noundef %81)
  store i32 %82, ptr %13, align 4, !tbaa !9
  %83 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %83, ptr %8, align 4, !tbaa !9
  %84 = load i32, ptr %13, align 4, !tbaa !9
  %85 = load i32, ptr %12, align 4, !tbaa !9
  %86 = sub i32 %85, %84
  store i32 %86, ptr %12, align 4, !tbaa !9
  %87 = load i32, ptr %11, align 4, !tbaa !9
  %88 = load i32, ptr %12, align 4, !tbaa !9
  %89 = icmp ugt i32 %87, %88
  %90 = zext i1 %89 to i32
  store i32 %90, ptr %11, align 4, !tbaa !9
  %91 = load i32, ptr %11, align 4, !tbaa !9
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %95

93:                                               ; preds = %67
  store i32 0, ptr %11, align 4, !tbaa !9
  %94 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %94, ptr %8, align 4, !tbaa !9
  br label %108

95:                                               ; preds = %67
  %96 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %96, ptr %11, align 4, !tbaa !9
  %97 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %97, ptr %12, align 4, !tbaa !9
  %98 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %98, ptr %13, align 4, !tbaa !9
  %99 = load i32, ptr %13, align 4, !tbaa !9
  %100 = load i32, ptr %12, align 4, !tbaa !9
  %101 = add i32 %100, %99
  store i32 %101, ptr %12, align 4, !tbaa !9
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.w2c_hermes, ptr %102, i32 0, i32 6
  %104 = load i32, ptr %11, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = add i64 %105, 44
  %107 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %103, i64 noundef %106, i32 noundef %107)
  br label %108

108:                                              ; preds = %95, %93
  %109 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %109, ptr %11, align 4, !tbaa !9
  %110 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %110, ptr %12, align 4, !tbaa !9
  store i32 -4194304, ptr %13, align 4, !tbaa !9
  %111 = load i32, ptr %13, align 4, !tbaa !9
  %112 = load i32, ptr %12, align 4, !tbaa !9
  %113 = and i32 %112, %111
  store i32 %113, ptr %12, align 4, !tbaa !9
  %114 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %114, ptr %9, align 4, !tbaa !9
  store i32 -1, ptr %13, align 4, !tbaa !9
  %115 = load i32, ptr %13, align 4, !tbaa !9
  %116 = load i32, ptr %12, align 4, !tbaa !9
  %117 = xor i32 %116, %115
  store i32 %117, ptr %12, align 4, !tbaa !9
  %118 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %118, ptr %13, align 4, !tbaa !9
  %119 = load i32, ptr %13, align 4, !tbaa !9
  %120 = load i32, ptr %12, align 4, !tbaa !9
  %121 = add i32 %120, %119
  store i32 %121, ptr %12, align 4, !tbaa !9
  store i32 9, ptr %13, align 4, !tbaa !9
  %122 = load i32, ptr %12, align 4, !tbaa !9
  %123 = load i32, ptr %13, align 4, !tbaa !9
  %124 = and i32 %123, 31
  %125 = ashr i32 %122, %124
  store i32 %125, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %126 = load i32, ptr %13, align 4, !tbaa !9
  %127 = load i32, ptr %12, align 4, !tbaa !9
  %128 = add i32 %127, %126
  store i32 %128, ptr %12, align 4, !tbaa !9
  %129 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %129, ptr %10, align 4, !tbaa !9
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.w2c_hermes, ptr %130, i32 0, i32 6
  %132 = load i32, ptr %11, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = add i64 %133, 56
  %135 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %131, i64 noundef %134, i32 noundef %135)
  %136 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %136, ptr %11, align 4, !tbaa !9
  %137 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %137, ptr %12, align 4, !tbaa !9
  %138 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %138, ptr %13, align 4, !tbaa !9
  store i32 9, ptr %14, align 4, !tbaa !9
  %139 = load i32, ptr %14, align 4, !tbaa !9
  %140 = and i32 %139, 31
  %141 = load i32, ptr %13, align 4, !tbaa !9
  %142 = shl i32 %141, %140
  store i32 %142, ptr %13, align 4, !tbaa !9
  %143 = load i32, ptr %13, align 4, !tbaa !9
  %144 = load i32, ptr %12, align 4, !tbaa !9
  %145 = add i32 %144, %143
  store i32 %145, ptr %12, align 4, !tbaa !9
  %146 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %146, ptr %10, align 4, !tbaa !9
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.w2c_hermes, ptr %147, i32 0, i32 6
  %149 = load i32, ptr %11, align 4, !tbaa !9
  %150 = zext i32 %149 to i64
  %151 = add i64 %150, 60
  %152 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %148, i64 noundef %151, i32 noundef %152)
  %153 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %153, ptr %11, align 4, !tbaa !9
  %154 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %154, ptr %12, align 4, !tbaa !9
  %155 = load i32, ptr %12, align 4, !tbaa !9
  %156 = load i32, ptr %11, align 4, !tbaa !9
  %157 = add i32 %156, %155
  store i32 %157, ptr %11, align 4, !tbaa !9
  %158 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %158, ptr %6, align 4, !tbaa !9
  %159 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %159, ptr %12, align 4, !tbaa !9
  %160 = load i32, ptr %11, align 4, !tbaa !9
  %161 = load i32, ptr %12, align 4, !tbaa !9
  %162 = icmp ugt i32 %160, %161
  %163 = zext i1 %162 to i32
  store i32 %163, ptr %11, align 4, !tbaa !9
  %164 = load i32, ptr %11, align 4, !tbaa !9
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %166, label %179

166:                                              ; preds = %108
  %167 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %167, ptr %11, align 4, !tbaa !9
  %168 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %168, ptr %12, align 4, !tbaa !9
  store i32 56, ptr %13, align 4, !tbaa !9
  %169 = load i32, ptr %13, align 4, !tbaa !9
  %170 = load i32, ptr %12, align 4, !tbaa !9
  %171 = add i32 %170, %169
  store i32 %171, ptr %12, align 4, !tbaa !9
  %172 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %172, ptr %13, align 4, !tbaa !9
  %173 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %173, ptr %14, align 4, !tbaa !9
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = load i32, ptr %11, align 4, !tbaa !9
  %176 = load i32, ptr %12, align 4, !tbaa !9
  %177 = load i32, ptr %13, align 4, !tbaa !9
  %178 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACardTable0x3A0x3AupdateBoundaries0x28hermes0x3A0x3Avm0x3A0x3ACardTable0x3A0x3ABoundary0x2A0x2C0x20char0x20const0x2A0x2C0x20char0x20const0x2A0x29(ptr noundef %174, i32 noundef %175, i32 noundef %176, i32 noundef %177, i32 noundef %178)
  br label %179

179:                                              ; preds = %166, %108
  %180 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %180, ptr %11, align 4, !tbaa !9
  store i32 20, ptr %12, align 4, !tbaa !9
  %181 = load i32, ptr %12, align 4, !tbaa !9
  %182 = load i32, ptr %11, align 4, !tbaa !9
  %183 = add i32 %182, %181
  store i32 %183, ptr %11, align 4, !tbaa !9
  %184 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %184, ptr %12, align 4, !tbaa !9
  store i32 36, ptr %13, align 4, !tbaa !9
  %185 = load i32, ptr %13, align 4, !tbaa !9
  %186 = load i32, ptr %12, align 4, !tbaa !9
  %187 = add i32 %186, %185
  store i32 %187, ptr %12, align 4, !tbaa !9
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = load i32, ptr %11, align 4, !tbaa !9
  %190 = load i32, ptr %12, align 4, !tbaa !9
  %191 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedStorage0x3A0x3AAlignedStorage0x28hermes0x3A0x3Avm0x3A0x3AAlignedStorage0x260x260x29(ptr noundef %188, i32 noundef %189, i32 noundef %190)
  store i32 %191, ptr %11, align 4, !tbaa !9
  %192 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %192, ptr %6, align 4, !tbaa !9
  %193 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %193, ptr %12, align 4, !tbaa !9
  %194 = load ptr, ptr %4, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.w2c_hermes, ptr %194, i32 0, i32 6
  %196 = load i32, ptr %12, align 4, !tbaa !9
  %197 = zext i32 %196 to i64
  %198 = add i64 %197, 44
  %199 = call i64 @i64_load(ptr noundef %195, i64 noundef %198)
  store i64 %199, ptr %16, align 8, !tbaa !17
  %200 = load ptr, ptr %4, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.w2c_hermes, ptr %200, i32 0, i32 6
  %202 = load i32, ptr %11, align 4, !tbaa !9
  %203 = zext i32 %202 to i64
  %204 = add i64 %203, 8
  %205 = load i64, ptr %16, align 8, !tbaa !17
  call void @i64_store(ptr noundef %201, i64 noundef %204, i64 noundef %205)
  %206 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %206, ptr %11, align 4, !tbaa !9
  %207 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %207, ptr %12, align 4, !tbaa !9
  %208 = load ptr, ptr %4, align 8, !tbaa !5
  %209 = load i32, ptr %11, align 4, !tbaa !9
  %210 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AOldGen0x3A0x3AaddSegment0x28hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AHeapSegment0x29(ptr noundef %208, i32 noundef %209, i32 noundef %210)
  %211 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %211, ptr %11, align 4, !tbaa !9
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = load i32, ptr %11, align 4, !tbaa !9
  %214 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedHeapSegment0x3A0x3A0x7EAlignedHeapSegment0x280x29(ptr noundef %212, i32 noundef %213)
  store i32 %214, ptr %11, align 4, !tbaa !9
  %215 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %215, ptr %11, align 4, !tbaa !9
  store i32 16384, ptr %12, align 4, !tbaa !9
  %216 = load i32, ptr %12, align 4, !tbaa !9
  %217 = load i32, ptr %11, align 4, !tbaa !9
  %218 = add i32 %217, %216
  store i32 %218, ptr %11, align 4, !tbaa !9
  %219 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %219, ptr %5, align 4, !tbaa !9
  %220 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %220, ptr %12, align 4, !tbaa !9
  %221 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %221, ptr %13, align 4, !tbaa !9
  %222 = load i32, ptr %13, align 4, !tbaa !9
  %223 = load i32, ptr %12, align 4, !tbaa !9
  %224 = sub i32 %223, %222
  store i32 %224, ptr %12, align 4, !tbaa !9
  %225 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %225, ptr %5, align 4, !tbaa !9
  store i32 6, ptr %13, align 4, !tbaa !9
  %226 = load i32, ptr %13, align 4, !tbaa !9
  %227 = and i32 %226, 31
  %228 = load i32, ptr %12, align 4, !tbaa !9
  %229 = lshr i32 %228, %227
  store i32 %229, ptr %12, align 4, !tbaa !9
  store i32 67108860, ptr %13, align 4, !tbaa !9
  %230 = load i32, ptr %13, align 4, !tbaa !9
  %231 = load i32, ptr %12, align 4, !tbaa !9
  %232 = and i32 %231, %230
  store i32 %232, ptr %12, align 4, !tbaa !9
  %233 = load i32, ptr %12, align 4, !tbaa !9
  %234 = load i32, ptr %11, align 4, !tbaa !9
  %235 = add i32 %234, %233
  store i32 %235, ptr %11, align 4, !tbaa !9
  %236 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %236, ptr %6, align 4, !tbaa !9
  %237 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %237, ptr %12, align 4, !tbaa !9
  %238 = load ptr, ptr %4, 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 = call i32 @i32_load(ptr noundef %239, i64 noundef %241)
  store i32 %242, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %243 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %243, ptr %14, align 4, !tbaa !9
  store i32 3, ptr %15, align 4, !tbaa !9
  %244 = load i32, ptr %15, align 4, !tbaa !9
  %245 = and i32 %244, 31
  %246 = load i32, ptr %14, align 4, !tbaa !9
  %247 = lshr i32 %246, %245
  store i32 %247, ptr %14, align 4, !tbaa !9
  %248 = load i32, ptr %14, align 4, !tbaa !9
  %249 = and i32 %248, 31
  %250 = load i32, ptr %13, align 4, !tbaa !9
  %251 = shl i32 %250, %249
  store i32 %251, ptr %13, align 4, !tbaa !9
  %252 = load i32, ptr %13, align 4, !tbaa !9
  %253 = load i32, ptr %12, align 4, !tbaa !9
  %254 = or i32 %253, %252
  store i32 %254, ptr %12, align 4, !tbaa !9
  %255 = load ptr, ptr %4, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.w2c_hermes, ptr %255, i32 0, i32 6
  %257 = load i32, ptr %11, align 4, !tbaa !9
  %258 = zext i32 %257 to i64
  %259 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %256, i64 noundef %258, i32 noundef %259)
  br label %276

260:                                              ; preds = %37
  %261 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %261, ptr %11, align 4, !tbaa !9
  %262 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %262, ptr %12, align 4, !tbaa !9
  %263 = load ptr, ptr %4, align 8, !tbaa !5
  %264 = load i32, ptr %11, align 4, !tbaa !9
  %265 = load i32, ptr %12, align 4, !tbaa !9
  %266 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AOldGen0x3A0x3Asearch0x28unsigned0x20int0x29(ptr noundef %263, i32 noundef %264, i32 noundef %265)
  store i32 %266, ptr %11, align 4, !tbaa !9
  %267 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %267, ptr %8, align 4, !tbaa !9
  %268 = load i32, ptr %11, align 4, !tbaa !9
  %269 = icmp ne i32 %268, 0
  %270 = xor i1 %269, true
  %271 = zext i1 %270 to i32
  store i32 %271, ptr %11, align 4, !tbaa !9
  %272 = load i32, ptr %11, align 4, !tbaa !9
  %273 = icmp ne i32 %272, 0
  br i1 %273, label %274, label %275

274:                                              ; preds = %260
  br label %307

275:                                              ; preds = %260
  br label %276

276:                                              ; preds = %275, %179
  %277 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %277, ptr %11, align 4, !tbaa !9
  %278 = load ptr, ptr %4, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.w2c_hermes, ptr %278, i32 0, i32 6
  %280 = load i32, ptr %11, align 4, !tbaa !9
  %281 = zext i32 %280 to i64
  %282 = add i64 %281, 52
  %283 = call i32 @i32_load8_u(ptr noundef %279, i64 noundef %282)
  store i32 %283, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %284 = load i32, ptr %12, align 4, !tbaa !9
  %285 = load i32, ptr %11, align 4, !tbaa !9
  %286 = and i32 %285, %284
  store i32 %286, ptr %11, align 4, !tbaa !9
  %287 = load i32, ptr %11, align 4, !tbaa !9
  %288 = icmp ne i32 %287, 0
  br i1 %288, label %289, label %290

289:                                              ; preds = %276
  br label %298

290:                                              ; preds = %276
  %291 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %291, ptr %11, align 4, !tbaa !9
  store i32 36, ptr %12, align 4, !tbaa !9
  %292 = load i32, ptr %12, align 4, !tbaa !9
  %293 = load i32, ptr %11, align 4, !tbaa !9
  %294 = add i32 %293, %292
  store i32 %294, ptr %11, align 4, !tbaa !9
  %295 = load ptr, ptr %4, align 8, !tbaa !5
  %296 = load i32, ptr %11, align 4, !tbaa !9
  %297 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedHeapSegment0x3A0x3A0x7EAlignedHeapSegment0x280x29(ptr noundef %295, i32 noundef %296)
  store i32 %297, ptr %11, align 4, !tbaa !9
  br label %298

298:                                              ; preds = %290, %289, %36
  %299 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %299, ptr %11, align 4, !tbaa !9
  store i32 -64, ptr %12, align 4, !tbaa !9
  %300 = load i32, ptr %12, align 4, !tbaa !9
  %301 = load i32, ptr %11, align 4, !tbaa !9
  %302 = sub i32 %301, %300
  store i32 %302, ptr %11, align 4, !tbaa !9
  %303 = load i32, ptr %11, align 4, !tbaa !9
  %304 = load ptr, ptr %4, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.w2c_hermes, ptr %304, i32 0, i32 3
  store i32 %303, ptr %305, align 8, !tbaa !11
  %306 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %306, ptr %11, align 4, !tbaa !9
  br label %344

307:                                              ; preds = %274
  %308 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %308, ptr %11, align 4, !tbaa !9
  %309 = load ptr, ptr %4, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.w2c_hermes, ptr %309, i32 0, i32 6
  %311 = load i32, ptr %11, align 4, !tbaa !9
  %312 = zext i32 %311 to i64
  %313 = call i32 @i32_load(ptr noundef %310, i64 noundef %312)
  store i32 %313, ptr %11, align 4, !tbaa !9
  %314 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %314, ptr %5, align 4, !tbaa !9
  %315 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %315, ptr %11, align 4, !tbaa !9
  store i32 12, ptr %12, align 4, !tbaa !9
  %316 = load i32, ptr %12, align 4, !tbaa !9
  %317 = load i32, ptr %11, align 4, !tbaa !9
  %318 = add i32 %317, %316
  store i32 %318, ptr %11, align 4, !tbaa !9
  %319 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %319, ptr %12, align 4, !tbaa !9
  store i32 36, ptr %13, align 4, !tbaa !9
  %320 = load i32, ptr %13, align 4, !tbaa !9
  %321 = load i32, ptr %12, align 4, !tbaa !9
  %322 = add i32 %321, %320
  store i32 %322, ptr %12, align 4, !tbaa !9
  %323 = load ptr, ptr %4, align 8, !tbaa !5
  %324 = load i32, ptr %11, align 4, !tbaa !9
  %325 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3AErrorOr0x3Chermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AHeapSegment0x3E0x3A0x3AgetError0x280x290x20const(ptr noundef %323, i32 noundef %324, i32 noundef %325)
  %326 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %326, ptr %11, align 4, !tbaa !9
  %327 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %327, ptr %12, align 4, !tbaa !9
  %328 = load ptr, ptr %4, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.w2c_hermes, ptr %328, i32 0, i32 6
  %330 = load i32, ptr %12, align 4, !tbaa !9
  %331 = zext i32 %330 to i64
  %332 = add i64 %331, 12
  %333 = call i64 @i64_load(ptr noundef %329, i64 noundef %332)
  store i64 %333, ptr %16, align 8, !tbaa !17
  %334 = load ptr, ptr %4, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.w2c_hermes, ptr %334, i32 0, i32 6
  %336 = load i32, ptr %11, align 4, !tbaa !9
  %337 = zext i32 %336 to i64
  %338 = load i64, ptr %16, align 8, !tbaa !17
  call void @i64_store(ptr noundef %335, i64 noundef %337, i64 noundef %338)
  %339 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %339, ptr %11, align 4, !tbaa !9
  %340 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %340, ptr %12, align 4, !tbaa !9
  %341 = load ptr, ptr %4, align 8, !tbaa !5
  %342 = load i32, ptr %11, align 4, !tbaa !9
  %343 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCBase0x3A0x3Aoom0x28std0x3A0x3A_0x5F20x3A0x3Aerror_code0x29(ptr noundef %341, i32 noundef %342, i32 noundef %343)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

344:                                              ; preds = %298
  %345 = load i32, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret i32 %345
}

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

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

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedStorage0x3A0x3AAlignedStorage0x28hermes0x3A0x3Avm0x3A0x3AAlignedStorage0x260x260x29(ptr noundef, i32 noundef, i32 noundef) #4

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedHeapSegment0x3A0x3A0x7EAlignedHeapSegment0x280x29(ptr noundef, i32 noundef) #4

declare void @w2c_hermes_llvh0x3A0x3AErrorOr0x3Chermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AHeapSegment0x3E0x3A0x3AgetError0x280x290x20const(ptr noundef, i32 noundef, i32 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { 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, !10, i64 24}
!12 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !13, i64 40, !16, i64 80}
!13 = !{!"", !6, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !15, i64 32}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}
!17 = !{!14, !14, 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"

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 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 i32 @i32_load8_u(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_load(ptr noundef, i64 noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AOldGen0x3A0x3Aalloc0x28unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = add i32 %5, -64
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AOldGen0x3A0x3Asearch0x28unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2)
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %8, label %64

8:                                                ; preds = %3
  %9 = add i32 %5, -28
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = zext i32 %1 to i64
  %12 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %11)
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AcreateSegment0x280x29(ptr noundef nonnull %0, i32 noundef %9, i32 noundef %12)
  %13 = zext i32 %6 to i64
  %14 = add nuw nsw i64 %13, 52
  %15 = tail call i32 @i32_load8_u(ptr noundef nonnull %10, i64 noundef %14)
  %16 = and i32 %15, 1
  %.not206 = icmp eq i32 %16, 0
  br i1 %.not206, label %17, label %57

17:                                               ; preds = %8
  %18 = add nuw nsw i64 %13, 48
  %19 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %18)
  %20 = add nuw nsw i64 %13, 44
  %21 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %20)
  %22 = sub i32 %19, %21
  %23 = icmp ult i32 %22, %2
  br i1 %23, label %._crit_edge, label %24

24:                                               ; preds = %17
  %25 = add i32 %21, %2
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %20, i32 noundef %25)
  br label %._crit_edge

._crit_edge:                                      ; preds = %17, %24
  %.0 = phi i32 [ %21, %24 ], [ 0, %17 ]
  %26 = and i32 %.0, -4194304
  %27 = xor i32 %26, -1
  %28 = add i32 %.0, %27
  %29 = ashr i32 %28, 9
  %30 = add nsw i32 %29, 1
  %31 = add nuw nsw i64 %13, 56
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %31, i32 noundef %30)
  %32 = shl i32 %30, 9
  %33 = add i32 %32, %26
  %34 = add nuw nsw i64 %13, 60
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %34, i32 noundef %33)
  %35 = add i32 %.0, %2
  %36 = icmp ugt i32 %35, %33
  br i1 %36, label %37, label %39

37:                                               ; preds = %._crit_edge
  %38 = add i32 %5, -8
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACardTable0x3A0x3AupdateBoundaries0x28hermes0x3A0x3Avm0x3A0x3ACardTable0x3A0x3ABoundary0x2A0x2C0x20char0x20const0x2A0x2C0x20char0x20const0x2A0x29(ptr noundef nonnull %0, i32 noundef %26, i32 noundef %38, i32 noundef %.0, i32 noundef %35)
  br label %39

39:                                               ; preds = %37, %._crit_edge
  %40 = add i32 %5, -44
  %41 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedStorage0x3A0x3AAlignedStorage0x28hermes0x3A0x3Avm0x3A0x3AAlignedStorage0x260x260x29(ptr noundef nonnull %0, i32 noundef %40, i32 noundef %9) #4
  %42 = tail call i64 @i64_load(ptr noundef nonnull %10, i64 noundef %20)
  %43 = zext i32 %41 to i64
  %44 = add nuw nsw i64 %43, 8
  tail call void @i64_store(ptr noundef nonnull %10, i64 noundef %44, i64 noundef %42)
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AOldGen0x3A0x3AaddSegment0x28hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AHeapSegment0x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %41)
  %45 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedHeapSegment0x3A0x3A0x7EAlignedHeapSegment0x280x29(ptr noundef nonnull %0, i32 noundef %41) #4
  %46 = or disjoint i32 %26, 16384
  %47 = sub i32 %.0, %46
  %48 = lshr i32 %47, 6
  %49 = and i32 %48, 67108860
  %50 = add i32 %49, %46
  %51 = zext i32 %50 to i64
  %52 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %51)
  %53 = lshr i32 %.0, 3
  %54 = and i32 %53, 31
  %55 = shl nuw i32 1, %54
  %56 = or i32 %52, %55
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %51, i32 noundef %56)
  br label %59

57:                                               ; preds = %8
  %58 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AOldGen0x3A0x3Asearch0x28unsigned0x20int0x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2)
  %.not207 = icmp eq i32 %58, 0
  br i1 %.not207, label %65, label %59

59:                                               ; preds = %57, %39
  %.1 = phi i32 [ %.0, %39 ], [ %58, %57 ]
  %60 = tail call i32 @i32_load8_u(ptr noundef nonnull %10, i64 noundef %14)
  %61 = and i32 %60, 1
  %.not208 = icmp eq i32 %61, 0
  br i1 %.not208, label %62, label %64

62:                                               ; preds = %59
  %63 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedHeapSegment0x3A0x3A0x7EAlignedHeapSegment0x280x29(ptr noundef nonnull %0, i32 noundef %9) #4
  br label %64

64:                                               ; preds = %59, %3, %62
  %.2 = phi i32 [ %7, %3 ], [ %.1, %59 ], [ %.1, %62 ]
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret i32 %.2

65:                                               ; preds = %57
  %66 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %11)
  %67 = add i32 %5, -52
  tail call void @w2c_hermes_llvh0x3A0x3AErrorOr0x3Chermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AHeapSegment0x3E0x3A0x3AgetError0x280x290x20const(ptr noundef nonnull %0, i32 noundef %67, i32 noundef %9) #4
  %68 = add nuw nsw i64 %13, 12
  %69 = tail call i64 @i64_load(ptr noundef nonnull %10, i64 noundef %68)
  tail call void @i64_store(ptr noundef nonnull %10, i64 noundef %13, i64 noundef %69)
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCBase0x3A0x3Aoom0x28std0x3A0x3A_0x5F20x3A0x3Aerror_code0x29(ptr noundef nonnull %0, i32 noundef %66, i32 noundef %6)
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AOldGen0x3A0x3Asearch0x28unsigned0x20int0x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedStorage0x3A0x3AAlignedStorage0x28hermes0x3A0x3Avm0x3A0x3AAlignedStorage0x260x260x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedHeapSegment0x3A0x3A0x7EAlignedHeapSegment0x280x29(ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @w2c_hermes_llvh0x3A0x3AErrorOr0x3Chermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AHeapSegment0x3E0x3A0x3AgetError0x280x290x20const(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

attributes #0 = { 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 #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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { 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)"}
!5 = !{!6, !10, i64 24}
!6 = !{!"w2c_hermes", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !11, i64 40, !14, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"", !7, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12}


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