; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_opt_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: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef, i32 noundef, i32 noundef) #0

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

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

; 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 void @i32_store(ptr noundef, i64 noundef, i32 noundef) #2

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

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

declare void @w2c_hermes_abort(ptr noundef) #3

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AcallSitePrototypeGetColumnNumber0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
  %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 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
  %22 = alloca double, 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) #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
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.w2c_hermes, ptr %23, i32 0, i32 3
  %25 = load i32, ptr %24, align 8, !tbaa !13
  store i32 %25, ptr %14, align 4, !tbaa !9
  store i32 48, ptr %15, align 4, !tbaa !9
  %26 = load i32, ptr %15, align 4, !tbaa !9
  %27 = load i32, ptr %14, align 4, !tbaa !9
  %28 = sub i32 %27, %26
  store i32 %28, ptr %14, align 4, !tbaa !9
  %29 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %29, ptr %8, align 4, !tbaa !9
  %30 = load i32, ptr %14, align 4, !tbaa !9
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.w2c_hermes, ptr %31, i32 0, i32 3
  store i32 %30, ptr %32, align 8, !tbaa !13
  %33 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %33, ptr %14, align 4, !tbaa !9
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.w2c_hermes, ptr %34, i32 0, i32 6
  %36 = load i32, ptr %14, align 4, !tbaa !9
  %37 = zext i32 %36 to i64
  %38 = call i32 @i32_load(ptr noundef %35, i64 noundef %37)
  store i32 %38, ptr %14, align 4, !tbaa !9
  %39 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %39, ptr %11, 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 %14, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = call i64 @i64_load(ptr noundef %41, i64 noundef %43)
  store i64 %44, ptr %19, align 8, !tbaa !11
  %45 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %45, ptr %13, align 8, !tbaa !11
  store i32 67200, ptr %14, align 4, !tbaa !9
  %46 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %46, ptr %10, align 4, !tbaa !9
  %47 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %47, ptr %19, align 8, !tbaa !11
  store i64 -844424930131968, ptr %20, align 8, !tbaa !11
  %48 = load i64, ptr %19, align 8, !tbaa !11
  %49 = load i64, ptr %20, align 8, !tbaa !11
  %50 = icmp uge i64 %48, %49
  %51 = zext i1 %50 to i32
  store i32 %51, ptr %14, align 4, !tbaa !9
  %52 = load i32, ptr %14, align 4, !tbaa !9
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %82

54:                                               ; preds = %5
  store i32 67200, ptr %14, align 4, !tbaa !9
  %55 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %55, ptr %15, align 4, !tbaa !9
  %56 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %56, ptr %21, align 8, !tbaa !11
  %57 = load i64, ptr %21, align 8, !tbaa !11
  %58 = trunc i64 %57 to i32
  store i32 %58, ptr %16, align 4, !tbaa !9
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.w2c_hermes, ptr %59, i32 0, i32 6
  %61 = load i32, ptr %16, align 4, !tbaa !9
  %62 = zext i32 %61 to i64
  %63 = add i64 %62, 3
  %64 = call i32 @i32_load8_u(ptr noundef %60, i64 noundef %63)
  store i32 %64, ptr %16, align 4, !tbaa !9
  store i32 24, ptr %17, align 4, !tbaa !9
  %65 = load i32, ptr %17, align 4, !tbaa !9
  %66 = and i32 %65, 31
  %67 = load i32, ptr %16, align 4, !tbaa !9
  %68 = shl i32 %67, %66
  store i32 %68, ptr %16, align 4, !tbaa !9
  store i32 503316480, ptr %17, align 4, !tbaa !9
  %69 = load i32, ptr %16, align 4, !tbaa !9
  %70 = load i32, ptr %17, align 4, !tbaa !9
  %71 = icmp ne i32 %69, %70
  %72 = zext i1 %71 to i32
  store i32 %72, ptr %16, align 4, !tbaa !9
  %73 = load i32, ptr %16, align 4, !tbaa !9
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %77

75:                                               ; preds = %54
  %76 = load i32, ptr %14, align 4, !tbaa !9
  br label %79

77:                                               ; preds = %54
  %78 = load i32, ptr %15, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %77, %75
  %80 = phi i32 [ %76, %75 ], [ %78, %77 ]
  store i32 %80, ptr %14, align 4, !tbaa !9
  %81 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %81, ptr %10, align 4, !tbaa !9
  br label %82

82:                                               ; preds = %79, %5
  %83 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %83, ptr %14, align 4, !tbaa !9
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.w2c_hermes, ptr %84, i32 0, i32 6
  %86 = load i32, ptr %14, align 4, !tbaa !9
  %87 = zext i32 %86 to i64
  %88 = call i64 @i64_load(ptr noundef %85, i64 noundef %87)
  store i64 %88, ptr %19, align 8, !tbaa !11
  %89 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %89, ptr %13, align 8, !tbaa !11
  store i64 -844424930131968, ptr %20, align 8, !tbaa !11
  %90 = load i64, ptr %19, align 8, !tbaa !11
  %91 = load i64, ptr %20, align 8, !tbaa !11
  %92 = icmp ult i64 %90, %91
  %93 = zext i1 %92 to i32
  store i32 %93, ptr %14, align 4, !tbaa !9
  %94 = load i32, ptr %14, align 4, !tbaa !9
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %97

96:                                               ; preds = %82
  br label %286

97:                                               ; preds = %82
  %98 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %98, ptr %19, align 8, !tbaa !11
  store i64 4294967295, ptr %20, align 8, !tbaa !11
  %99 = load i64, ptr %20, align 8, !tbaa !11
  %100 = load i64, ptr %19, align 8, !tbaa !11
  %101 = and i64 %100, %99
  store i64 %101, ptr %19, align 8, !tbaa !11
  %102 = load i64, ptr %19, align 8, !tbaa !11
  %103 = icmp ne i64 %102, 0
  %104 = xor i1 %103, true
  %105 = zext i1 %104 to i32
  store i32 %105, ptr %14, align 4, !tbaa !9
  %106 = load i32, ptr %14, align 4, !tbaa !9
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %108, label %109

108:                                              ; preds = %97
  br label %286

109:                                              ; preds = %97
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.w2c_hermes, ptr %110, i32 0, i32 3
  %112 = load i32, ptr %111, align 8, !tbaa !13
  store i32 %112, ptr %14, align 4, !tbaa !9
  store i32 48, ptr %15, align 4, !tbaa !9
  %113 = load i32, ptr %15, align 4, !tbaa !9
  %114 = load i32, ptr %14, align 4, !tbaa !9
  %115 = sub i32 %114, %113
  store i32 %115, ptr %14, align 4, !tbaa !9
  %116 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %116, ptr %9, align 4, !tbaa !9
  %117 = load i32, ptr %14, align 4, !tbaa !9
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.w2c_hermes, ptr %118, i32 0, i32 3
  store i32 %117, ptr %119, align 8, !tbaa !13
  %120 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %120, ptr %14, align 4, !tbaa !9
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.w2c_hermes, ptr %121, i32 0, i32 6
  %123 = load i32, ptr %14, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = call i32 @i32_load(ptr noundef %122, i64 noundef %124)
  store i32 %125, ptr %14, align 4, !tbaa !9
  %126 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %126, ptr %11, align 4, !tbaa !9
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.w2c_hermes, ptr %127, i32 0, i32 6
  %129 = load i32, ptr %14, align 4, !tbaa !9
  %130 = zext i32 %129 to i64
  %131 = add i64 %130, 20
  %132 = call i32 @i32_load(ptr noundef %128, i64 noundef %131)
  store i32 %132, ptr %14, align 4, !tbaa !9
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.w2c_hermes, ptr %133, i32 0, i32 6
  %135 = load i32, ptr %14, align 4, !tbaa !9
  %136 = zext i32 %135 to i64
  %137 = add i64 %136, 20
  %138 = call i32 @i32_load(ptr noundef %134, i64 noundef %137)
  store i32 %138, ptr %14, align 4, !tbaa !9
  %139 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %139, ptr %10, align 4, !tbaa !9
  %140 = load ptr, ptr %6, 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 = add i64 %143, 4
  %145 = call i32 @i32_load(ptr noundef %141, i64 noundef %144)
  store i32 %145, ptr %14, align 4, !tbaa !9
  %146 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %146, ptr %15, align 4, !tbaa !9
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.w2c_hermes, ptr %147, i32 0, i32 6
  %149 = load i32, ptr %15, align 4, !tbaa !9
  %150 = zext i32 %149 to i64
  %151 = call i32 @i32_load(ptr noundef %148, i64 noundef %150)
  store i32 %151, ptr %15, align 4, !tbaa !9
  %152 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %152, ptr %10, align 4, !tbaa !9
  %153 = load i32, ptr %15, align 4, !tbaa !9
  %154 = load i32, ptr %14, align 4, !tbaa !9
  %155 = sub i32 %154, %153
  store i32 %155, ptr %14, align 4, !tbaa !9
  store i32 3, ptr %15, align 4, !tbaa !9
  %156 = load i32, ptr %14, align 4, !tbaa !9
  %157 = load i32, ptr %15, align 4, !tbaa !9
  %158 = and i32 %157, 31
  %159 = ashr i32 %156, %158
  store i32 %159, ptr %14, align 4, !tbaa !9
  %160 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %160, ptr %15, align 4, !tbaa !9
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.w2c_hermes, ptr %161, i32 0, i32 6
  %163 = load i32, ptr %15, align 4, !tbaa !9
  %164 = zext i32 %163 to i64
  %165 = add i64 %164, 24
  %166 = call i32 @i32_load(ptr noundef %162, i64 noundef %165)
  store i32 %166, ptr %15, align 4, !tbaa !9
  %167 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %167, ptr %11, align 4, !tbaa !9
  %168 = load i32, ptr %14, align 4, !tbaa !9
  %169 = load i32, ptr %15, align 4, !tbaa !9
  %170 = icmp ugt i32 %168, %169
  %171 = zext i1 %170 to i32
  store i32 %171, ptr %14, align 4, !tbaa !9
  %172 = load i32, ptr %14, align 4, !tbaa !9
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %174, label %283

174:                                              ; preds = %109
  %175 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %175, ptr %14, align 4, !tbaa !9
  %176 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %176, ptr %15, align 4, !tbaa !9
  store i32 3, ptr %16, align 4, !tbaa !9
  %177 = load i32, ptr %16, align 4, !tbaa !9
  %178 = and i32 %177, 31
  %179 = load i32, ptr %15, align 4, !tbaa !9
  %180 = shl i32 %179, %178
  store i32 %180, ptr %15, align 4, !tbaa !9
  %181 = load i32, ptr %15, align 4, !tbaa !9
  %182 = load i32, ptr %14, align 4, !tbaa !9
  %183 = add i32 %182, %181
  store i32 %183, ptr %14, align 4, !tbaa !9
  %184 = load ptr, ptr %6, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.w2c_hermes, ptr %184, i32 0, i32 6
  %186 = load i32, ptr %14, align 4, !tbaa !9
  %187 = zext i32 %186 to i64
  %188 = call i32 @i32_load(ptr noundef %185, i64 noundef %187)
  store i32 %188, ptr %14, align 4, !tbaa !9
  %189 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %189, ptr %12, align 4, !tbaa !9
  %190 = load i32, ptr %14, align 4, !tbaa !9
  %191 = icmp ne i32 %190, 0
  %192 = xor i1 %191, true
  %193 = zext i1 %192 to i32
  store i32 %193, ptr %14, align 4, !tbaa !9
  %194 = load i32, ptr %14, align 4, !tbaa !9
  %195 = icmp ne i32 %194, 0
  br i1 %195, label %196, label %197

196:                                              ; preds = %174
  br label %261

197:                                              ; preds = %174
  %198 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %198, ptr %14, align 4, !tbaa !9
  store i32 12, ptr %15, align 4, !tbaa !9
  %199 = load i32, ptr %15, align 4, !tbaa !9
  %200 = load i32, ptr %14, align 4, !tbaa !9
  %201 = add i32 %200, %199
  store i32 %201, ptr %14, align 4, !tbaa !9
  %202 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %202, ptr %15, align 4, !tbaa !9
  %203 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %203, ptr %16, align 4, !tbaa !9
  %204 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %204, ptr %17, align 4, !tbaa !9
  store i32 3, ptr %18, align 4, !tbaa !9
  %205 = load i32, ptr %18, align 4, !tbaa !9
  %206 = and i32 %205, 31
  %207 = load i32, ptr %17, align 4, !tbaa !9
  %208 = shl i32 %207, %206
  store i32 %208, ptr %17, align 4, !tbaa !9
  %209 = load i32, ptr %17, align 4, !tbaa !9
  %210 = load i32, ptr %16, align 4, !tbaa !9
  %211 = add i32 %210, %209
  store i32 %211, ptr %16, align 4, !tbaa !9
  %212 = load ptr, ptr %6, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.w2c_hermes, ptr %212, i32 0, i32 6
  %214 = load i32, ptr %16, align 4, !tbaa !9
  %215 = zext i32 %214 to i64
  %216 = add i64 %215, 4
  %217 = call i32 @i32_load(ptr noundef %213, i64 noundef %216)
  store i32 %217, ptr %16, align 4, !tbaa !9
  %218 = load ptr, ptr %6, align 8, !tbaa !5
  %219 = load i32, ptr %14, align 4, !tbaa !9
  %220 = load i32, ptr %15, align 4, !tbaa !9
  %221 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSError0x3A0x3AgetDebugInfo0x28hermes0x3A0x3Avm0x3A0x3ACodeBlock0x2A0x2C0x20unsigned0x20int0x29(ptr noundef %218, i32 noundef %219, i32 noundef %220, i32 noundef %221)
  %222 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %222, ptr %14, align 4, !tbaa !9
  %223 = load ptr, ptr %6, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.w2c_hermes, ptr %223, i32 0, i32 6
  %225 = load i32, ptr %14, align 4, !tbaa !9
  %226 = zext i32 %225 to i64
  %227 = add i64 %226, 44
  %228 = call i32 @i32_load8_u(ptr noundef %224, i64 noundef %227)
  store i32 %228, ptr %14, align 4, !tbaa !9
  %229 = load i32, ptr %14, align 4, !tbaa !9
  %230 = icmp ne i32 %229, 0
  %231 = xor i1 %230, true
  %232 = zext i1 %231 to i32
  store i32 %232, ptr %14, align 4, !tbaa !9
  %233 = load i32, ptr %14, align 4, !tbaa !9
  %234 = icmp ne i32 %233, 0
  br i1 %234, label %235, label %236

235:                                              ; preds = %197
  br label %261

236:                                              ; preds = %197
  %237 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %237, ptr %14, 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 %14, align 4, !tbaa !9
  %241 = zext i32 %240 to i64
  %242 = add i64 %241, 28
  %243 = call i32 @i32_load(ptr noundef %239, i64 noundef %242)
  store i32 %243, ptr %14, align 4, !tbaa !9
  %244 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %244, ptr %10, align 4, !tbaa !9
  %245 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %245, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %246 = load ptr, ptr %6, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.w2c_hermes, ptr %246, i32 0, i32 6
  %248 = load i32, ptr %14, align 4, !tbaa !9
  %249 = zext i32 %248 to i64
  %250 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %247, i64 noundef %249, i32 noundef %250)
  %251 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %251, ptr %14, align 4, !tbaa !9
  %252 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %252, ptr %15, align 4, !tbaa !9
  %253 = load i32, ptr %15, align 4, !tbaa !9
  %254 = uitofp i32 %253 to double
  store double %254, ptr %22, align 8, !tbaa !18
  %255 = load ptr, ptr %6, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.w2c_hermes, ptr %255, i32 0, i32 6
  %257 = load i32, ptr %14, align 4, !tbaa !9
  %258 = zext i32 %257 to i64
  %259 = add i64 %258, 8
  %260 = load double, ptr %22, align 8, !tbaa !18
  call void @f64_store(ptr noundef %256, i64 noundef %259, double noundef %260)
  br label %275

261:                                              ; preds = %235, %196
  %262 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %262, ptr %14, align 4, !tbaa !9
  store i64 -1548112371908608, ptr %20, align 8, !tbaa !11
  %263 = load ptr, ptr %6, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.w2c_hermes, ptr %263, i32 0, i32 6
  %265 = load i32, ptr %14, align 4, !tbaa !9
  %266 = zext i32 %265 to i64
  %267 = add i64 %266, 8
  %268 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %264, i64 noundef %267, i64 noundef %268)
  %269 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %269, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %270 = load ptr, ptr %6, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.w2c_hermes, ptr %270, i32 0, i32 6
  %272 = load i32, ptr %14, align 4, !tbaa !9
  %273 = zext i32 %272 to i64
  %274 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %271, i64 noundef %273, i32 noundef %274)
  br label %275

275:                                              ; preds = %261, %236
  %276 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %276, ptr %14, align 4, !tbaa !9
  store i32 48, ptr %15, align 4, !tbaa !9
  %277 = load i32, ptr %15, align 4, !tbaa !9
  %278 = load i32, ptr %14, align 4, !tbaa !9
  %279 = add i32 %278, %277
  store i32 %279, ptr %14, align 4, !tbaa !9
  %280 = load i32, ptr %14, align 4, !tbaa !9
  %281 = load ptr, ptr %6, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.w2c_hermes, ptr %281, i32 0, i32 3
  store i32 %280, ptr %282, align 8, !tbaa !13
  br label %285

283:                                              ; preds = %109
  %284 = load ptr, ptr %6, align 8, !tbaa !5
  call void @w2c_hermes_abort(ptr noundef %284)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

285:                                              ; preds = %275
  br label %330

286:                                              ; preds = %108, %96
  %287 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %287, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %288 = load ptr, ptr %6, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.w2c_hermes, ptr %288, i32 0, i32 6
  %290 = load i32, ptr %14, align 4, !tbaa !9
  %291 = zext i32 %290 to i64
  %292 = add i64 %291, 40
  %293 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %289, i64 noundef %292, i32 noundef %293)
  %294 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %294, ptr %14, align 4, !tbaa !9
  store i64 214748364801, ptr %20, align 8, !tbaa !11
  %295 = load ptr, ptr %6, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.w2c_hermes, ptr %295, i32 0, i32 6
  %297 = load i32, ptr %14, align 4, !tbaa !9
  %298 = zext i32 %297 to i64
  %299 = add i64 %298, 32
  %300 = load i64, ptr %20, align 8, !tbaa !11
  call void @i64_store(ptr noundef %296, i64 noundef %299, i64 noundef %300)
  %301 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %301, ptr %14, align 4, !tbaa !9
  store i32 3, ptr %15, align 4, !tbaa !9
  %302 = load ptr, ptr %6, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.w2c_hermes, ptr %302, i32 0, i32 6
  %304 = load i32, ptr %14, align 4, !tbaa !9
  %305 = zext i32 %304 to i64
  %306 = add i64 %305, 16
  %307 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %303, i64 noundef %306, i32 noundef %307)
  %308 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %308, ptr %14, align 4, !tbaa !9
  store i32 37471, ptr %15, align 4, !tbaa !9
  %309 = load ptr, ptr %6, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.w2c_hermes, ptr %309, i32 0, i32 6
  %311 = load i32, ptr %14, align 4, !tbaa !9
  %312 = zext i32 %311 to i64
  %313 = add i64 %312, 8
  %314 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %310, i64 noundef %313, i32 noundef %314)
  %315 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %315, ptr %14, align 4, !tbaa !9
  %316 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %316, ptr %15, align 4, !tbaa !9
  %317 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %317, ptr %16, align 4, !tbaa !9
  store i32 8, ptr %17, align 4, !tbaa !9
  %318 = load i32, ptr %17, align 4, !tbaa !9
  %319 = load i32, ptr %16, align 4, !tbaa !9
  %320 = add i32 %319, %318
  store i32 %320, ptr %16, align 4, !tbaa !9
  %321 = load ptr, ptr %6, align 8, !tbaa !5
  %322 = load i32, ptr %15, align 4, !tbaa !9
  %323 = load i32, ptr %16, align 4, !tbaa !9
  %324 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %321, i32 noundef %322, i32 noundef %323)
  store i32 %324, ptr %15, align 4, !tbaa !9
  %325 = load ptr, ptr %6, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.w2c_hermes, ptr %325, i32 0, i32 6
  %327 = load i32, ptr %14, align 4, !tbaa !9
  %328 = zext i32 %327 to i64
  %329 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %326, i64 noundef %328, i32 noundef %329)
  br label %330

330:                                              ; preds = %286, %285
  %331 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %331, ptr %14, align 4, !tbaa !9
  store i32 48, ptr %15, align 4, !tbaa !9
  %332 = load i32, ptr %15, align 4, !tbaa !9
  %333 = load i32, ptr %14, align 4, !tbaa !9
  %334 = add i32 %333, %332
  store i32 %334, ptr %14, align 4, !tbaa !9
  %335 = load i32, ptr %14, align 4, !tbaa !9
  %336 = load ptr, ptr %6, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.w2c_hermes, ptr %336, i32 0, i32 3
  store i32 %335, ptr %337, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  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
  ret void
}

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !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"

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef, i32 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 #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 void @i32_store(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

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

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

declare void @w2c_hermes_abort(ptr noundef) local_unnamed_addr #2

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

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

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

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

15:                                               ; preds = %5
  %16 = and i64 %13, 4294967295
  %17 = add nuw nsw i64 %16, 3
  %18 = tail call i32 @i32_load8_u(ptr noundef nonnull %9, i64 noundef %17)
  %.mask = and i32 %18, 255
  %.not = icmp eq i32 %.mask, 30
  %19 = select i1 %.not, i32 %11, i32 67200
  %20 = zext i32 %19 to i64
  br label %21

21:                                               ; preds = %15, %5
  %.0 = phi i64 [ %20, %15 ], [ 67200, %5 ]
  %22 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %.0)
  %23 = icmp ult i64 %22, -844424930131968
  %24 = and i64 %22, 4294967295
  %.not169 = icmp eq i64 %24, 0
  %or.cond = or i1 %23, %.not169
  br i1 %or.cond, label %66, label %25

25:                                               ; preds = %21
  %26 = load i32, ptr %6, align 8, !tbaa !5
  %27 = add i32 %26, -48
  store i32 %27, ptr %6, align 8, !tbaa !5
  %28 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %.0)
  %29 = zext i32 %28 to i64
  %30 = add nuw nsw i64 %29, 20
  %31 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %30)
  %32 = zext i32 %31 to i64
  %33 = add nuw nsw i64 %32, 20
  %34 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %33)
  %35 = zext i32 %34 to i64
  %36 = add nuw nsw i64 %35, 4
  %37 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %36)
  %38 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %35)
  %39 = sub i32 %37, %38
  %40 = ashr i32 %39, 3
  %41 = add nuw nsw i64 %29, 24
  %42 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %41)
  %43 = icmp ugt i32 %40, %42
  br i1 %43, label %44, label %65

44:                                               ; preds = %25
  %45 = shl i32 %42, 3
  %46 = add i32 %45, %38
  %47 = zext i32 %46 to i64
  %48 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %47)
  %.not170 = icmp eq i32 %48, 0
  br i1 %.not170, label %62, label %49

49:                                               ; preds = %44
  %50 = add i32 %26, -36
  %51 = add nuw nsw i64 %47, 4
  %52 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %51)
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSError0x3A0x3AgetDebugInfo0x28hermes0x3A0x3Avm0x3A0x3ACodeBlock0x2A0x2C0x20unsigned0x20int0x29(ptr noundef nonnull %0, i32 noundef %50, i32 noundef %48, i32 noundef %52) #4
  %53 = zext i32 %27 to i64
  %54 = add nuw nsw i64 %53, 44
  %55 = tail call i32 @i32_load8_u(ptr noundef nonnull %9, i64 noundef %54)
  %.not171 = icmp eq i32 %55, 0
  br i1 %.not171, label %62, label %56

56:                                               ; preds = %49
  %57 = add nuw nsw i64 %53, 28
  %58 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %57)
  %59 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %59, i32 noundef 1)
  %60 = uitofp i32 %58 to double
  %61 = add nuw nsw i64 %59, 8
  tail call void @f64_store(ptr noundef nonnull %9, i64 noundef %61, double noundef %60)
  br label %75

62:                                               ; preds = %49, %44
  %63 = zext i32 %1 to i64
  %64 = add nuw nsw i64 %63, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %64, i64 noundef -1548112371908608)
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %63, i32 noundef 1)
  br label %75

65:                                               ; preds = %25
  tail call void @w2c_hermes_abort(ptr noundef nonnull %0) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

66:                                               ; preds = %21
  %67 = zext i32 %8 to i64
  %68 = add nuw nsw i64 %67, 40
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %68, i32 noundef 0)
  %69 = add nuw nsw i64 %67, 32
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %69, i64 noundef 214748364801)
  %70 = add nuw nsw i64 %67, 16
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %70, i32 noundef 3)
  %71 = add nuw nsw i64 %67, 8
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %71, i32 noundef 37471)
  %72 = add i32 %7, -40
  %73 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef nonnull %0, i32 noundef %3, i32 noundef %72)
  %74 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %74, i32 noundef %73)
  br label %75

75:                                               ; preds = %56, %62, %66
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret void
}

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