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

; 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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSTypedArray0x3Cunsigned0x20short0x2C0x200x28hermes0x3A0x3Avm0x3A0x3ACellKind0x29400x3E0x3A0x3Aallocate0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #4 {
  %5 = alloca ptr, align 8
  %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 i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, 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
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !11
  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 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.w2c_hermes, ptr %22, i32 0, i32 3
  %24 = load i32, ptr %23, align 8, !tbaa !13
  store i32 %24, ptr %14, align 4, !tbaa !9
  store i32 32, ptr %15, align 4, !tbaa !9
  %25 = load i32, ptr %15, align 4, !tbaa !9
  %26 = load i32, ptr %14, align 4, !tbaa !9
  %27 = sub i32 %26, %25
  store i32 %27, ptr %14, align 4, !tbaa !9
  %28 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %28, ptr %9, align 4, !tbaa !9
  %29 = load i32, ptr %14, align 4, !tbaa !9
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.w2c_hermes, ptr %30, i32 0, i32 3
  store i32 %29, ptr %31, align 8, !tbaa !13
  %32 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %32, ptr %14, align 4, !tbaa !9
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.w2c_hermes, ptr %33, i32 0, i32 6
  %35 = load i32, ptr %14, align 4, !tbaa !9
  %36 = zext i32 %35 to i64
  %37 = add i64 %36, 368
  %38 = call i64 @i64_load(ptr noundef %34, i64 noundef %37)
  store i64 %38, ptr %19, align 8, !tbaa !11
  %39 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %39, ptr %13, align 8, !tbaa !11
  store i64 -844424930131969, ptr %20, align 8, !tbaa !11
  %40 = load i64, ptr %19, align 8, !tbaa !11
  %41 = load i64, ptr %20, align 8, !tbaa !11
  %42 = icmp ugt i64 %40, %41
  %43 = zext i1 %42 to i32
  store i32 %43, ptr %14, align 4, !tbaa !9
  %44 = load i32, ptr %14, align 4, !tbaa !9
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %46, label %329

46:                                               ; preds = %4
  %47 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %47, ptr %19, align 8, !tbaa !11
  %48 = load i64, ptr %19, align 8, !tbaa !11
  %49 = trunc i64 %48 to i32
  store i32 %49, ptr %14, align 4, !tbaa !9
  %50 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %50, ptr %10, align 4, !tbaa !9
  %51 = load i32, ptr %14, align 4, !tbaa !9
  %52 = icmp ne i32 %51, 0
  %53 = xor i1 %52, true
  %54 = zext i1 %53 to i32
  store i32 %54, ptr %14, align 4, !tbaa !9
  %55 = load i32, ptr %14, align 4, !tbaa !9
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %58

57:                                               ; preds = %46
  br label %347

58:                                               ; preds = %46
  %59 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %59, ptr %14, align 4, !tbaa !9
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.w2c_hermes, ptr %60, i32 0, i32 6
  %62 = load i32, ptr %14, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = call i32 @i32_load(ptr noundef %61, i64 noundef %63)
  store i32 %64, ptr %14, align 4, !tbaa !9
  store i32 436207616, ptr %15, align 4, !tbaa !9
  %65 = load i32, ptr %15, align 4, !tbaa !9
  %66 = load i32, ptr %14, align 4, !tbaa !9
  %67 = sub i32 %66, %65
  store i32 %67, ptr %14, align 4, !tbaa !9
  store i32 855638016, ptr %15, align 4, !tbaa !9
  %68 = load i32, ptr %14, align 4, !tbaa !9
  %69 = load i32, ptr %15, align 4, !tbaa !9
  %70 = icmp uge i32 %68, %69
  %71 = zext i1 %70 to i32
  store i32 %71, ptr %14, align 4, !tbaa !9
  %72 = load i32, ptr %14, align 4, !tbaa !9
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %75

74:                                               ; preds = %58
  br label %365

75:                                               ; preds = %58
  %76 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %76, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.w2c_hermes, ptr %77, i32 0, i32 6
  %79 = load i32, ptr %14, align 4, !tbaa !9
  %80 = zext i32 %79 to i64
  %81 = add i64 %80, 8
  %82 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %78, i64 noundef %81, i32 noundef %82)
  %83 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %83, ptr %14, align 4, !tbaa !9
  %84 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %84, ptr %15, align 4, !tbaa !9
  store i32 368, ptr %16, align 4, !tbaa !9
  %85 = load i32, ptr %16, align 4, !tbaa !9
  %86 = load i32, ptr %15, align 4, !tbaa !9
  %87 = add i32 %86, %85
  store i32 %87, ptr %15, align 4, !tbaa !9
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.w2c_hermes, ptr %88, i32 0, i32 6
  %90 = load i32, ptr %14, align 4, !tbaa !9
  %91 = zext i32 %90 to i64
  %92 = add i64 %91, 12
  %93 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %89, i64 noundef %92, i32 noundef %93)
  %94 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %94, ptr %14, align 4, !tbaa !9
  store i32 16, ptr %15, align 4, !tbaa !9
  %95 = load i32, ptr %15, align 4, !tbaa !9
  %96 = load i32, ptr %14, align 4, !tbaa !9
  %97 = add i32 %96, %95
  store i32 %97, ptr %14, align 4, !tbaa !9
  %98 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %98, ptr %15, align 4, !tbaa !9
  %99 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %99, ptr %16, align 4, !tbaa !9
  store i32 8, ptr %17, align 4, !tbaa !9
  %100 = load i32, ptr %17, align 4, !tbaa !9
  %101 = load i32, ptr %16, align 4, !tbaa !9
  %102 = add i32 %101, %100
  store i32 %102, ptr %16, align 4, !tbaa !9
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = load i32, ptr %14, align 4, !tbaa !9
  %105 = load i32, ptr %15, align 4, !tbaa !9
  %106 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSTypedArray0x3Cunsigned0x20short0x2C0x200x28hermes0x3A0x3Avm0x3A0x3ACellKind0x29400x3E0x3A0x3Acreate0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x29(ptr noundef %103, i32 noundef %104, i32 noundef %105, i32 noundef %106)
  %107 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %107, ptr %14, align 4, !tbaa !9
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.w2c_hermes, ptr %108, i32 0, i32 6
  %110 = load i32, ptr %14, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = add i64 %111, 20
  %113 = call i32 @i32_load8_u(ptr noundef %109, i64 noundef %112)
  store i32 %113, ptr %14, align 4, !tbaa !9
  %114 = load i32, ptr %14, align 4, !tbaa !9
  %115 = icmp ne i32 %114, 0
  %116 = xor i1 %115, true
  %117 = zext i1 %116 to i32
  store i32 %117, ptr %14, align 4, !tbaa !9
  %118 = load i32, ptr %14, align 4, !tbaa !9
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %121

120:                                              ; preds = %75
  br label %383

121:                                              ; preds = %75
  %122 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %122, ptr %14, align 4, !tbaa !9
  store i32 24, ptr %15, align 4, !tbaa !9
  %123 = load i32, ptr %15, align 4, !tbaa !9
  %124 = load i32, ptr %14, align 4, !tbaa !9
  %125 = add i32 %124, %123
  store i32 %125, ptr %14, align 4, !tbaa !9
  %126 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %126, ptr %15, align 4, !tbaa !9
  %127 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %127, ptr %16, align 4, !tbaa !9
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.w2c_hermes, ptr %128, i32 0, i32 6
  %130 = load i32, ptr %16, align 4, !tbaa !9
  %131 = zext i32 %130 to i64
  %132 = add i64 %131, 16
  %133 = call i32 @i32_load(ptr noundef %129, i64 noundef %132)
  store i32 %133, ptr %16, align 4, !tbaa !9
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = load i32, ptr %14, align 4, !tbaa !9
  %136 = load i32, ptr %15, align 4, !tbaa !9
  %137 = load i32, ptr %16, align 4, !tbaa !9
  %138 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSTypedArray0x3Cunsigned0x20short0x2C0x200x28hermes0x3A0x3Avm0x3A0x3ACellKind0x29400x3E0x3E0x3A0x3AHandle0x28hermes0x3A0x3Avm0x3A0x3AHandleRootOwner0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSTypedArray0x3Cunsigned0x20short0x2C0x200x28hermes0x3A0x3Avm0x3A0x3ACellKind0x29400x3E0x2A0x29(ptr noundef %134, i32 noundef %135, i32 noundef %136, i32 noundef %137)
  store i32 %138, ptr %14, align 4, !tbaa !9
  %139 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %139, ptr %11, align 4, !tbaa !9
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.w2c_hermes, ptr %140, i32 0, i32 6
  %142 = load i32, ptr %14, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = call i32 @i32_load(ptr noundef %141, i64 noundef %143)
  store i32 %144, ptr %14, align 4, !tbaa !9
  %145 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %145, ptr %10, align 4, !tbaa !9
  %146 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %146, ptr %14, align 4, !tbaa !9
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.w2c_hermes, ptr %147, i32 0, i32 6
  %149 = load i32, ptr %14, align 4, !tbaa !9
  %150 = zext i32 %149 to i64
  %151 = add i64 %150, 4
  %152 = call i32 @i32_load(ptr noundef %148, i64 noundef %151)
  store i32 %152, ptr %14, align 4, !tbaa !9
  %153 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %153, ptr %11, align 4, !tbaa !9
  %154 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %154, ptr %14, align 4, !tbaa !9
  %155 = load ptr, ptr %5, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.w2c_hermes, ptr %155, i32 0, i32 6
  %157 = load i32, ptr %14, align 4, !tbaa !9
  %158 = zext i32 %157 to i64
  %159 = add i64 %158, 8
  %160 = call i32 @i32_load(ptr noundef %156, i64 noundef %159)
  store i32 %160, ptr %14, align 4, !tbaa !9
  %161 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %161, ptr %12, align 4, !tbaa !9
  %162 = load i32, ptr %14, align 4, !tbaa !9
  %163 = icmp ne i32 %162, 0
  br i1 %163, label %164, label %180

164:                                              ; preds = %121
  %165 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %165, ptr %14, align 4, !tbaa !9
  %166 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %166, ptr %15, align 4, !tbaa !9
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.w2c_hermes, ptr %167, i32 0, i32 6
  %169 = load i32, ptr %15, align 4, !tbaa !9
  %170 = zext i32 %169 to i64
  %171 = call i32 @i32_load(ptr noundef %168, i64 noundef %170)
  store i32 %171, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %172 = load i32, ptr %16, align 4, !tbaa !9
  %173 = load i32, ptr %15, align 4, !tbaa !9
  %174 = sub i32 %173, %172
  store i32 %174, ptr %15, align 4, !tbaa !9
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.w2c_hermes, ptr %175, i32 0, i32 6
  %177 = load i32, ptr %14, align 4, !tbaa !9
  %178 = zext i32 %177 to i64
  %179 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %176, i64 noundef %178, i32 noundef %179)
  br label %180

180:                                              ; preds = %164, %121
  %181 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %181, ptr %14, align 4, !tbaa !9
  %182 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %182, ptr %15, align 4, !tbaa !9
  %183 = load ptr, ptr %5, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.w2c_hermes, ptr %183, i32 0, i32 6
  %185 = load i32, ptr %14, align 4, !tbaa !9
  %186 = zext i32 %185 to i64
  %187 = add i64 %186, 4
  %188 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %184, i64 noundef %187, i32 noundef %188)
  %189 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %189, ptr %14, align 4, !tbaa !9
  %190 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %190, ptr %15, align 4, !tbaa !9
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.w2c_hermes, ptr %191, i32 0, i32 6
  %193 = load i32, ptr %14, align 4, !tbaa !9
  %194 = zext i32 %193 to i64
  %195 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %192, i64 noundef %194, i32 noundef %195)
  %196 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %196, ptr %14, align 4, !tbaa !9
  %197 = load i32, ptr %14, align 4, !tbaa !9
  %198 = icmp ne i32 %197, 0
  %199 = xor i1 %198, true
  %200 = zext i1 %199 to i32
  store i32 %200, ptr %14, align 4, !tbaa !9
  %201 = load i32, ptr %14, align 4, !tbaa !9
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %203, label %242

203:                                              ; preds = %180
  %204 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %204, ptr %14, align 4, !tbaa !9
  %205 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %205, ptr %15, align 4, !tbaa !9
  %206 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %206, ptr %16, align 4, !tbaa !9
  %207 = load i32, ptr %16, align 4, !tbaa !9
  %208 = zext i32 %207 to i64
  store i64 %208, ptr %21, align 8, !tbaa !11
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = load i32, ptr %14, align 4, !tbaa !9
  %211 = load i32, ptr %15, align 4, !tbaa !9
  %212 = load i64, ptr %21, align 8, !tbaa !11
  %213 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSTypedArrayBase0x3A0x3AcreateBuffer0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSTypedArrayBase0x3E0x2C0x20unsigned0x20long0x20long0x29(ptr noundef %209, i32 noundef %210, i32 noundef %211, i64 noundef %212)
  store i32 %213, ptr %14, align 4, !tbaa !9
  %214 = load i32, ptr %14, align 4, !tbaa !9
  %215 = icmp ne i32 %214, 0
  %216 = xor i1 %215, true
  %217 = zext i1 %216 to i32
  store i32 %217, ptr %14, align 4, !tbaa !9
  %218 = load i32, ptr %14, align 4, !tbaa !9
  %219 = icmp ne i32 %218, 0
  br i1 %219, label %220, label %227

220:                                              ; preds = %203
  %221 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %221, ptr %14, align 4, !tbaa !9
  store i64 -4294967296, ptr %20, align 8, !tbaa !11
  %222 = load ptr, ptr %5, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.w2c_hermes, ptr %222, i32 0, i32 6
  %224 = load i32, ptr %14, align 4, !tbaa !9
  %225 = zext i32 %224 to i64
  %226 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %223, i64 noundef %225, i64 noundef %226)
  br label %321

227:                                              ; preds = %203
  %228 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %228, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %229 = load ptr, ptr %5, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.w2c_hermes, ptr %229, i32 0, i32 6
  %231 = load i32, ptr %14, align 4, !tbaa !9
  %232 = zext i32 %231 to i64
  %233 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %230, i64 noundef %232, i32 noundef %233)
  %234 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %234, ptr %14, align 4, !tbaa !9
  %235 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %235, ptr %15, align 4, !tbaa !9
  %236 = load ptr, ptr %5, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.w2c_hermes, ptr %236, i32 0, i32 6
  %238 = load i32, ptr %14, align 4, !tbaa !9
  %239 = zext i32 %238 to i64
  %240 = add i64 %239, 4
  %241 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %237, i64 noundef %240, i32 noundef %241)
  br label %321

242:                                              ; preds = %180
  %243 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %243, ptr %14, align 4, !tbaa !9
  %244 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %244, ptr %15, align 4, !tbaa !9
  %245 = load ptr, ptr %5, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.w2c_hermes, ptr %245, i32 0, i32 6
  %247 = load i32, ptr %15, align 4, !tbaa !9
  %248 = zext i32 %247 to i64
  %249 = call i32 @i32_load(ptr noundef %246, i64 noundef %248)
  store i32 %249, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %250 = load i32, ptr %16, align 4, !tbaa !9
  %251 = load i32, ptr %15, align 4, !tbaa !9
  %252 = add i32 %251, %250
  store i32 %252, ptr %15, align 4, !tbaa !9
  %253 = load ptr, ptr %5, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.w2c_hermes, ptr %253, i32 0, i32 6
  %255 = load i32, ptr %14, align 4, !tbaa !9
  %256 = zext i32 %255 to i64
  %257 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %254, i64 noundef %256, i32 noundef %257)
  %258 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %258, ptr %14, align 4, !tbaa !9
  %259 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %259, ptr %15, align 4, !tbaa !9
  %260 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %260, ptr %16, align 4, !tbaa !9
  %261 = load i32, ptr %16, align 4, !tbaa !9
  %262 = zext i32 %261 to i64
  store i64 %262, ptr %21, align 8, !tbaa !11
  %263 = load ptr, ptr %5, align 8, !tbaa !5
  %264 = load i32, ptr %14, align 4, !tbaa !9
  %265 = load i32, ptr %15, align 4, !tbaa !9
  %266 = load i64, ptr %21, align 8, !tbaa !11
  %267 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSTypedArrayBase0x3A0x3AcreateBuffer0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSTypedArrayBase0x3E0x2C0x20unsigned0x20long0x20long0x29(ptr noundef %263, i32 noundef %264, i32 noundef %265, i64 noundef %266)
  store i32 %267, ptr %14, align 4, !tbaa !9
  %268 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %268, ptr %7, align 4, !tbaa !9
  %269 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %269, ptr %14, align 4, !tbaa !9
  %270 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %270, ptr %15, align 4, !tbaa !9
  %271 = load ptr, ptr %5, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.w2c_hermes, ptr %271, i32 0, i32 6
  %273 = load i32, ptr %15, align 4, !tbaa !9
  %274 = zext i32 %273 to i64
  %275 = call i32 @i32_load(ptr noundef %272, i64 noundef %274)
  store i32 %275, ptr %15, align 4, !tbaa !9
  %276 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %276, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %277 = load i32, ptr %16, align 4, !tbaa !9
  %278 = load i32, ptr %15, align 4, !tbaa !9
  %279 = sub i32 %278, %277
  store i32 %279, ptr %15, align 4, !tbaa !9
  %280 = load ptr, ptr %5, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.w2c_hermes, ptr %280, i32 0, i32 6
  %282 = load i32, ptr %14, align 4, !tbaa !9
  %283 = zext i32 %282 to i64
  %284 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %281, i64 noundef %283, i32 noundef %284)
  %285 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %285, ptr %14, align 4, !tbaa !9
  %286 = load i32, ptr %14, align 4, !tbaa !9
  %287 = icmp ne i32 %286, 0
  br i1 %287, label %288, label %304

288:                                              ; preds = %242
  %289 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %289, ptr %14, align 4, !tbaa !9
  %290 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %290, ptr %15, align 4, !tbaa !9
  %291 = load ptr, ptr %5, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.w2c_hermes, ptr %291, i32 0, i32 6
  %293 = load i32, ptr %14, align 4, !tbaa !9
  %294 = zext i32 %293 to i64
  %295 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %292, i64 noundef %294, i32 noundef %295)
  %296 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %296, ptr %14, align 4, !tbaa !9
  %297 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %297, ptr %15, align 4, !tbaa !9
  %298 = load ptr, ptr %5, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.w2c_hermes, ptr %298, i32 0, i32 6
  %300 = load i32, ptr %14, align 4, !tbaa !9
  %301 = zext i32 %300 to i64
  %302 = add i64 %301, 4
  %303 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %299, i64 noundef %302, i32 noundef %303)
  br label %321

304:                                              ; preds = %242
  %305 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %305, ptr %14, align 4, !tbaa !9
  store i64 -4294967296, ptr %20, align 8, !tbaa !11
  %306 = load ptr, ptr %5, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.w2c_hermes, ptr %306, i32 0, i32 6
  %308 = load i32, ptr %14, align 4, !tbaa !9
  %309 = zext i32 %308 to i64
  %310 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %307, i64 noundef %309, i64 noundef %310)
  %311 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %311, ptr %14, align 4, !tbaa !9
  %312 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %312, ptr %15, align 4, !tbaa !9
  store i32 2, ptr %16, align 4, !tbaa !9
  %313 = load i32, ptr %16, align 4, !tbaa !9
  %314 = load i32, ptr %15, align 4, !tbaa !9
  %315 = sub i32 %314, %313
  store i32 %315, ptr %15, align 4, !tbaa !9
  %316 = load ptr, ptr %5, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.w2c_hermes, ptr %316, i32 0, i32 6
  %318 = load i32, ptr %14, align 4, !tbaa !9
  %319 = zext i32 %318 to i64
  %320 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %317, i64 noundef %319, i32 noundef %320)
  br label %321

321:                                              ; preds = %304, %288, %227, %220
  %322 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %322, ptr %14, align 4, !tbaa !9
  store i32 32, ptr %15, align 4, !tbaa !9
  %323 = load i32, ptr %15, align 4, !tbaa !9
  %324 = load i32, ptr %14, align 4, !tbaa !9
  %325 = add i32 %324, %323
  store i32 %325, ptr %14, align 4, !tbaa !9
  %326 = load i32, ptr %14, align 4, !tbaa !9
  %327 = load ptr, ptr %5, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.w2c_hermes, ptr %327, i32 0, i32 3
  store i32 %326, ptr %328, align 8, !tbaa !13
  br label %401

329:                                              ; preds = %4
  store i32 0, ptr %14, align 4, !tbaa !9
  %330 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %330, ptr %9, align 4, !tbaa !9
  store i32 146777, ptr %15, align 4, !tbaa !9
  %331 = load i32, ptr %15, align 4, !tbaa !9
  %332 = load i32, ptr %14, align 4, !tbaa !9
  %333 = add i32 %332, %331
  store i32 %333, ptr %14, align 4, !tbaa !9
  %334 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %334, ptr %15, align 4, !tbaa !9
  store i32 82692, ptr %16, align 4, !tbaa !9
  %335 = load i32, ptr %16, align 4, !tbaa !9
  %336 = load i32, ptr %15, align 4, !tbaa !9
  %337 = add i32 %336, %335
  store i32 %337, ptr %15, align 4, !tbaa !9
  store i32 43, ptr %16, align 4, !tbaa !9
  %338 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %338, ptr %17, align 4, !tbaa !9
  store i32 24718, ptr %18, align 4, !tbaa !9
  %339 = load i32, ptr %18, align 4, !tbaa !9
  %340 = load i32, ptr %17, align 4, !tbaa !9
  %341 = add i32 %340, %339
  store i32 %341, ptr %17, align 4, !tbaa !9
  %342 = load ptr, ptr %5, align 8, !tbaa !5
  %343 = load i32, ptr %14, align 4, !tbaa !9
  %344 = load i32, ptr %15, align 4, !tbaa !9
  %345 = load i32, ptr %16, align 4, !tbaa !9
  %346 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %342, i32 noundef %343, i32 noundef %344, i32 noundef %345, i32 noundef %346)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

347:                                              ; preds = %57
  store i32 0, ptr %14, align 4, !tbaa !9
  %348 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %348, ptr %9, align 4, !tbaa !9
  store i32 147142, ptr %15, align 4, !tbaa !9
  %349 = load i32, ptr %15, align 4, !tbaa !9
  %350 = load i32, ptr %14, align 4, !tbaa !9
  %351 = add i32 %350, %349
  store i32 %351, ptr %14, align 4, !tbaa !9
  %352 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %352, ptr %15, align 4, !tbaa !9
  store i32 82611, ptr %16, align 4, !tbaa !9
  %353 = load i32, ptr %16, align 4, !tbaa !9
  %354 = load i32, ptr %15, align 4, !tbaa !9
  %355 = add i32 %354, %353
  store i32 %355, ptr %15, align 4, !tbaa !9
  store i32 106, ptr %16, align 4, !tbaa !9
  %356 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %356, ptr %17, align 4, !tbaa !9
  store i32 28119, ptr %18, align 4, !tbaa !9
  %357 = load i32, ptr %18, align 4, !tbaa !9
  %358 = load i32, ptr %17, align 4, !tbaa !9
  %359 = add i32 %358, %357
  store i32 %359, ptr %17, align 4, !tbaa !9
  %360 = load ptr, ptr %5, align 8, !tbaa !5
  %361 = load i32, ptr %14, align 4, !tbaa !9
  %362 = load i32, ptr %15, align 4, !tbaa !9
  %363 = load i32, ptr %16, align 4, !tbaa !9
  %364 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %360, i32 noundef %361, i32 noundef %362, i32 noundef %363, i32 noundef %364)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

365:                                              ; preds = %74
  store i32 0, ptr %14, align 4, !tbaa !9
  %366 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %366, ptr %9, align 4, !tbaa !9
  store i32 205012, ptr %15, align 4, !tbaa !9
  %367 = load i32, ptr %15, align 4, !tbaa !9
  %368 = load i32, ptr %14, align 4, !tbaa !9
  %369 = add i32 %368, %367
  store i32 %369, ptr %14, align 4, !tbaa !9
  %370 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %370, ptr %15, align 4, !tbaa !9
  store i32 82611, ptr %16, align 4, !tbaa !9
  %371 = load i32, ptr %16, align 4, !tbaa !9
  %372 = load i32, ptr %15, align 4, !tbaa !9
  %373 = add i32 %372, %371
  store i32 %373, ptr %15, align 4, !tbaa !9
  store i32 255, ptr %16, align 4, !tbaa !9
  %374 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %374, ptr %17, align 4, !tbaa !9
  store i32 24720, ptr %18, align 4, !tbaa !9
  %375 = load i32, ptr %18, align 4, !tbaa !9
  %376 = load i32, ptr %17, align 4, !tbaa !9
  %377 = add i32 %376, %375
  store i32 %377, ptr %17, align 4, !tbaa !9
  %378 = load ptr, ptr %5, align 8, !tbaa !5
  %379 = load i32, ptr %14, align 4, !tbaa !9
  %380 = load i32, ptr %15, align 4, !tbaa !9
  %381 = load i32, ptr %16, align 4, !tbaa !9
  %382 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %378, i32 noundef %379, i32 noundef %380, i32 noundef %381, i32 noundef %382)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

383:                                              ; preds = %120
  store i32 0, ptr %14, align 4, !tbaa !9
  %384 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %384, ptr %9, align 4, !tbaa !9
  store i32 179505, ptr %15, align 4, !tbaa !9
  %385 = load i32, ptr %15, align 4, !tbaa !9
  %386 = load i32, ptr %14, align 4, !tbaa !9
  %387 = add i32 %386, %385
  store i32 %387, ptr %14, align 4, !tbaa !9
  %388 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %388, ptr %15, align 4, !tbaa !9
  store i32 84574, ptr %16, align 4, !tbaa !9
  %389 = load i32, ptr %16, align 4, !tbaa !9
  %390 = load i32, ptr %15, align 4, !tbaa !9
  %391 = add i32 %390, %389
  store i32 %391, ptr %15, align 4, !tbaa !9
  store i32 127, ptr %16, align 4, !tbaa !9
  %392 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %392, ptr %17, align 4, !tbaa !9
  store i32 35614, ptr %18, align 4, !tbaa !9
  %393 = load i32, ptr %18, align 4, !tbaa !9
  %394 = load i32, ptr %17, align 4, !tbaa !9
  %395 = add i32 %394, %393
  store i32 %395, ptr %17, align 4, !tbaa !9
  %396 = load ptr, ptr %5, align 8, !tbaa !5
  %397 = load i32, ptr %14, align 4, !tbaa !9
  %398 = load i32, ptr %15, align 4, !tbaa !9
  %399 = load i32, ptr %16, align 4, !tbaa !9
  %400 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %396, i32 noundef %397, i32 noundef %398, i32 noundef %399, i32 noundef %400)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

401:                                              ; preds = %321
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, 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 8, 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
  ret void
}

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSTypedArray0x3Cunsigned0x20short0x2C0x200x28hermes0x3A0x3Avm0x3A0x3ACellKind0x29400x3E0x3E0x3A0x3AHandle0x28hermes0x3A0x3Avm0x3A0x3AHandleRootOwner0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSTypedArray0x3Cunsigned0x20short0x2C0x200x28hermes0x3A0x3Avm0x3A0x3ACellKind0x29400x3E0x2A0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { 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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 24}
!14 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !15, i64 40, !17, i64 80}
!15 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !16, i64 32}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}


; 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: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #0

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSTypedArray0x3Cunsigned0x20short0x2C0x200x28hermes0x3A0x3Avm0x3A0x3ACellKind0x29400x3E0x3A0x3Aallocate0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = add i32 %6, -32
  store i32 %7, ptr %5, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = zext i32 %2 to i64
  %10 = add nuw nsw i64 %9, 368
  %11 = tail call i64 @i64_load(ptr noundef nonnull %8, i64 noundef %10)
  %12 = icmp ugt i64 %11, -844424930131969
  br i1 %12, label %13, label %65

13:                                               ; preds = %4
  %14 = and i64 %11, 4294967295
  %.not = icmp eq i64 %14, 0
  br i1 %.not, label %66, label %15

15:                                               ; preds = %13
  %16 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %14)
  %17 = add i32 %16, -1291845632
  %18 = icmp ult i32 %17, -855638016
  br i1 %18, label %67, label %19

19:                                               ; preds = %15
  %20 = zext i32 %7 to i64
  %21 = add nuw nsw i64 %20, 8
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %21, i32 noundef 0)
  %22 = add i32 %2, 368
  %23 = add nuw nsw i64 %20, 12
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %23, i32 noundef %22)
  %24 = add i32 %6, -16
  %25 = add i32 %6, -24
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSTypedArray0x3Cunsigned0x20short0x2C0x200x28hermes0x3A0x3Avm0x3A0x3ACellKind0x29400x3E0x3A0x3Acreate0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSObject0x3E0x29(ptr noundef nonnull %0, i32 noundef %24, i32 noundef %2, i32 noundef %25)
  %26 = add nuw nsw i64 %20, 20
  %27 = tail call i32 @i32_load8_u(ptr noundef nonnull %8, i64 noundef %26)
  %.not234 = icmp eq i32 %27, 0
  br i1 %.not234, label %68, label %28

28:                                               ; preds = %19
  %29 = add i32 %6, -8
  %30 = add nuw nsw i64 %20, 16
  %31 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %30)
  %32 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSTypedArray0x3Cunsigned0x20short0x2C0x200x28hermes0x3A0x3Avm0x3A0x3ACellKind0x29400x3E0x3E0x3A0x3AHandle0x28hermes0x3A0x3Avm0x3A0x3AHandleRootOwner0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSTypedArray0x3Cunsigned0x20short0x2C0x200x28hermes0x3A0x3Avm0x3A0x3ACellKind0x29400x3E0x2A0x29(ptr noundef nonnull %0, i32 noundef %29, i32 noundef %2, i32 noundef %31) #4
  %33 = zext i32 %32 to i64
  %34 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %33)
  %35 = add nuw nsw i64 %33, 4
  %36 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %35)
  %37 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %21)
  %.not235 = icmp eq i32 %37, 0
  br i1 %.not235, label %42, label %38

38:                                               ; preds = %28
  %39 = zext i32 %37 to i64
  %40 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %39)
  %41 = add i32 %40, -1
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %39, i32 noundef %41)
  br label %42

42:                                               ; preds = %38, %28
  %43 = add nuw nsw i64 %20, 4
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %43, i32 noundef %36)
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %20, i32 noundef %34)
  %.not236 = icmp eq i32 %34, 0
  br i1 %.not236, label %44, label %51

44:                                               ; preds = %42
  %45 = zext i32 %3 to i64
  %46 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSTypedArrayBase0x3A0x3AcreateBuffer0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSTypedArrayBase0x3E0x2C0x20unsigned0x20long0x20long0x29(ptr noundef nonnull %0, i32 noundef %2, i32 noundef %7, i64 noundef %45)
  %.not238 = icmp eq i32 %46, 0
  %47 = zext i32 %1 to i64
  br i1 %.not238, label %48, label %49

48:                                               ; preds = %44
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %47, i64 noundef -4294967296)
  br label %64

49:                                               ; preds = %44
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %47, i32 noundef 0)
  %50 = add nuw nsw i64 %47, 4
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %50, i32 noundef %36)
  br label %64

51:                                               ; preds = %42
  %52 = zext i32 %34 to i64
  %53 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %52)
  %54 = add i32 %53, 1
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %52, i32 noundef %54)
  %55 = zext i32 %3 to i64
  %56 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSTypedArrayBase0x3A0x3AcreateBuffer0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSTypedArrayBase0x3E0x2C0x20unsigned0x20long0x20long0x29(ptr noundef nonnull %0, i32 noundef %2, i32 noundef %7, i64 noundef %55)
  %57 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %52)
  %58 = add i32 %57, -1
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %52, i32 noundef %58)
  %.not237 = icmp eq i32 %56, 0
  %59 = zext i32 %1 to i64
  br i1 %.not237, label %62, label %60

60:                                               ; preds = %51
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %59, i32 noundef %34)
  %61 = add nuw nsw i64 %59, 4
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %61, i32 noundef %36)
  br label %64

62:                                               ; preds = %51
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %59, i64 noundef -4294967296)
  %63 = add i32 %57, -2
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %52, i32 noundef %63)
  br label %64

64:                                               ; preds = %62, %60, %49, %48
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret void

65:                                               ; preds = %4
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 146777, i32 noundef 82692, i32 noundef 43, i32 noundef 24718) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

66:                                               ; preds = %13
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 147142, i32 noundef 82611, i32 noundef 106, i32 noundef 28119) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

67:                                               ; preds = %15
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 205012, i32 noundef 82611, i32 noundef 255, i32 noundef 24720) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

68:                                               ; preds = %19
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 179505, i32 noundef 84574, i32 noundef 127, i32 noundef 35614) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSTypedArray0x3Cunsigned0x20short0x2C0x200x28hermes0x3A0x3Avm0x3A0x3ACellKind0x29400x3E0x3E0x3A0x3AHandle0x28hermes0x3A0x3Avm0x3A0x3AHandleRootOwner0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSTypedArray0x3Cunsigned0x20short0x2C0x200x28hermes0x3A0x3Avm0x3A0x3ACellKind0x29400x3E0x2A0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

attributes #0 = { 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 #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 = { "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 = { 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,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass