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

; 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: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #2

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

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

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

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

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

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

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

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

declare void @w2c_hermes_abort(ptr noundef) #4

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

49:                                               ; preds = %4
  call void @wasm_rt_trap(i32 noundef 3) #7
  unreachable

50:                                               ; No predecessors!
  br label %73

51:                                               ; preds = %4
  %52 = load i32, ptr %17, align 4, !tbaa !9
  %53 = icmp eq i32 %52, -2147483648
  br i1 %53, label %54, label %57

54:                                               ; preds = %51
  %55 = load i32, ptr %18, align 4, !tbaa !9
  %56 = icmp eq i32 %55, -1
  br label %57

57:                                               ; preds = %54, %51
  %58 = phi i1 [ false, %51 ], [ %56, %54 ]
  %59 = xor i1 %58, true
  %60 = xor i1 %59, true
  %61 = zext i1 %60 to i32
  %62 = sext i32 %61 to i64
  %63 = call i64 @llvm.expect.i64(i64 %62, i64 0)
  %64 = icmp ne i64 %63, 0
  br i1 %64, label %65, label %67

65:                                               ; preds = %57
  call void @wasm_rt_trap(i32 noundef 2) #7
  unreachable

66:                                               ; No predecessors!
  br label %71

67:                                               ; preds = %57
  %68 = load i32, ptr %17, align 4, !tbaa !9
  %69 = load i32, ptr %18, align 4, !tbaa !9
  %70 = sdiv i32 %68, %69
  br label %71

71:                                               ; preds = %67, %66
  %72 = phi i32 [ 0, %66 ], [ %70, %67 ]
  br label %73

73:                                               ; preds = %71, %50
  %74 = phi i32 [ 0, %50 ], [ %72, %71 ]
  store i32 %74, ptr %17, align 4, !tbaa !9
  %75 = load i32, ptr %16, align 4, !tbaa !9
  %76 = load i32, ptr %17, align 4, !tbaa !9
  %77 = icmp ult i32 %75, %76
  %78 = zext i1 %77 to i32
  store i32 %78, ptr %16, align 4, !tbaa !9
  %79 = load i32, ptr %16, align 4, !tbaa !9
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %321

81:                                               ; preds = %73
  %82 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %82, ptr %16, align 4, !tbaa !9
  %83 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %83, ptr %17, align 4, !tbaa !9
  store i32 12, ptr %18, align 4, !tbaa !9
  %84 = load i32, ptr %18, align 4, !tbaa !9
  %85 = load i32, ptr %17, align 4, !tbaa !9
  %86 = mul i32 %85, %84
  store i32 %86, ptr %17, align 4, !tbaa !9
  %87 = load i32, ptr %17, align 4, !tbaa !9
  %88 = load i32, ptr %16, align 4, !tbaa !9
  %89 = add i32 %88, %87
  store i32 %89, ptr %16, align 4, !tbaa !9
  %90 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %90, ptr %11, align 4, !tbaa !9
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.w2c_hermes, ptr %91, i32 0, i32 6
  %93 = load i32, ptr %16, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = add i64 %94, 4
  %96 = call i32 @i32_load(ptr noundef %92, i64 noundef %95)
  store i32 %96, ptr %16, align 4, !tbaa !9
  %97 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %97, ptr %17, align 4, !tbaa !9
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.w2c_hermes, ptr %98, i32 0, i32 6
  %100 = load i32, ptr %17, align 4, !tbaa !9
  %101 = zext i32 %100 to i64
  %102 = add i64 %101, 11
  %103 = call i32 @i32_load8_u(ptr noundef %99, i64 noundef %102)
  store i32 %103, ptr %17, align 4, !tbaa !9
  %104 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %104, ptr %8, align 4, !tbaa !9
  %105 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %105, ptr %18, align 4, !tbaa !9
  %106 = load i32, ptr %18, align 4, !tbaa !9
  %107 = trunc i32 %106 to i8
  %108 = sext i8 %107 to i32
  store i32 %108, ptr %18, align 4, !tbaa !9
  %109 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %109, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %19, align 4, !tbaa !9
  %110 = load i32, ptr %18, align 4, !tbaa !9
  %111 = load i32, ptr %19, align 4, !tbaa !9
  %112 = icmp slt i32 %110, %111
  %113 = zext i1 %112 to i32
  store i32 %113, ptr %18, align 4, !tbaa !9
  %114 = load i32, ptr %18, align 4, !tbaa !9
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %118

116:                                              ; preds = %81
  %117 = load i32, ptr %16, align 4, !tbaa !9
  br label %120

118:                                              ; preds = %81
  %119 = load i32, ptr %17, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %118, %116
  %121 = phi i32 [ %117, %116 ], [ %119, %118 ]
  store i32 %121, ptr %16, align 4, !tbaa !9
  %122 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %122, ptr %8, align 4, !tbaa !9
  %123 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %123, ptr %17, align 4, !tbaa !9
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.w2c_hermes, ptr %124, i32 0, i32 6
  %126 = load i32, ptr %17, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = add i64 %127, 4
  %129 = call i32 @i32_load(ptr noundef %125, i64 noundef %128)
  store i32 %129, ptr %17, align 4, !tbaa !9
  %130 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %130, ptr %18, align 4, !tbaa !9
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.w2c_hermes, ptr %131, i32 0, i32 6
  %133 = load i32, ptr %18, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = add i64 %134, 11
  %136 = call i32 @i32_load8_u(ptr noundef %132, i64 noundef %135)
  store i32 %136, ptr %18, align 4, !tbaa !9
  %137 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %137, ptr %9, align 4, !tbaa !9
  %138 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %138, ptr %19, align 4, !tbaa !9
  %139 = load i32, ptr %19, align 4, !tbaa !9
  %140 = trunc i32 %139 to i8
  %141 = sext i8 %140 to i32
  store i32 %141, ptr %19, align 4, !tbaa !9
  %142 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %142, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %20, align 4, !tbaa !9
  %143 = load i32, ptr %19, align 4, !tbaa !9
  %144 = load i32, ptr %20, align 4, !tbaa !9
  %145 = icmp slt i32 %143, %144
  %146 = zext i1 %145 to i32
  store i32 %146, ptr %19, align 4, !tbaa !9
  %147 = load i32, ptr %19, align 4, !tbaa !9
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %149, label %151

149:                                              ; preds = %120
  %150 = load i32, ptr %17, align 4, !tbaa !9
  br label %153

151:                                              ; preds = %120
  %152 = load i32, ptr %18, align 4, !tbaa !9
  br label %153

153:                                              ; preds = %151, %149
  %154 = phi i32 [ %150, %149 ], [ %152, %151 ]
  store i32 %154, ptr %17, align 4, !tbaa !9
  %155 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %155, ptr %9, align 4, !tbaa !9
  %156 = load i32, ptr %17, align 4, !tbaa !9
  %157 = load i32, ptr %16, align 4, !tbaa !9
  %158 = add i32 %157, %156
  store i32 %158, ptr %16, align 4, !tbaa !9
  %159 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %159, ptr %10, align 4, !tbaa !9
  store i32 2147483632, ptr %17, align 4, !tbaa !9
  %160 = load i32, ptr %16, align 4, !tbaa !9
  %161 = load i32, ptr %17, align 4, !tbaa !9
  %162 = icmp uge i32 %160, %161
  %163 = zext i1 %162 to i32
  store i32 %163, ptr %16, align 4, !tbaa !9
  %164 = load i32, ptr %16, align 4, !tbaa !9
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %166, label %167

166:                                              ; preds = %153
  br label %339

167:                                              ; preds = %153
  %168 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %168, ptr %16, align 4, !tbaa !9
  store i32 10, ptr %17, align 4, !tbaa !9
  %169 = load i32, ptr %16, align 4, !tbaa !9
  %170 = load i32, ptr %17, align 4, !tbaa !9
  %171 = icmp ule i32 %169, %170
  %172 = zext i1 %171 to i32
  store i32 %172, ptr %16, align 4, !tbaa !9
  %173 = load i32, ptr %16, align 4, !tbaa !9
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %175, label %197

175:                                              ; preds = %167
  %176 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %176, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.w2c_hermes, ptr %177, i32 0, i32 6
  %179 = load i32, ptr %16, align 4, !tbaa !9
  %180 = zext i32 %179 to i64
  %181 = add i64 %180, 8
  %182 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %178, i64 noundef %181, i32 noundef %182)
  %183 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %183, ptr %16, align 4, !tbaa !9
  store i64 0, ptr %21, align 8, !tbaa !11
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.w2c_hermes, ptr %184, i32 0, i32 6
  %186 = load i32, ptr %16, align 4, !tbaa !9
  %187 = zext i32 %186 to i64
  %188 = load i64, ptr %21, align 8, !tbaa !11
  call void @i64_store(ptr noundef %185, i64 noundef %187, i64 noundef %188)
  %189 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %189, ptr %16, align 4, !tbaa !9
  %190 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %190, ptr %17, 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 %16, align 4, !tbaa !9
  %194 = zext i32 %193 to i64
  %195 = add i64 %194, 11
  %196 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %192, i64 noundef %195, i32 noundef %196)
  br label %238

197:                                              ; preds = %167
  %198 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %198, ptr %16, align 4, !tbaa !9
  store i32 15, ptr %17, align 4, !tbaa !9
  %199 = load i32, ptr %17, align 4, !tbaa !9
  %200 = load i32, ptr %16, align 4, !tbaa !9
  %201 = or i32 %200, %199
  store i32 %201, ptr %16, align 4, !tbaa !9
  store i32 1, ptr %17, align 4, !tbaa !9
  %202 = load i32, ptr %17, align 4, !tbaa !9
  %203 = load i32, ptr %16, align 4, !tbaa !9
  %204 = add i32 %203, %202
  store i32 %204, ptr %16, align 4, !tbaa !9
  %205 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %205, ptr %15, align 4, !tbaa !9
  %206 = load ptr, ptr %5, align 8, !tbaa !5
  %207 = load i32, ptr %16, align 4, !tbaa !9
  %208 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %206, i32 noundef %207)
  store i32 %208, ptr %16, align 4, !tbaa !9
  %209 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %209, ptr %12, align 4, !tbaa !9
  %210 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %210, ptr %16, align 4, !tbaa !9
  %211 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %211, ptr %17, align 4, !tbaa !9
  %212 = load ptr, ptr %5, 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 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %213, i64 noundef %216, i32 noundef %217)
  %218 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %218, ptr %16, align 4, !tbaa !9
  %219 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %219, ptr %17, align 4, !tbaa !9
  %220 = load ptr, ptr %5, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.w2c_hermes, ptr %220, i32 0, i32 6
  %222 = load i32, ptr %16, align 4, !tbaa !9
  %223 = zext i32 %222 to i64
  %224 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %221, i64 noundef %223, i32 noundef %224)
  %225 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %225, ptr %16, align 4, !tbaa !9
  %226 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %226, ptr %17, align 4, !tbaa !9
  store i32 -2147483648, ptr %18, align 4, !tbaa !9
  %227 = load i32, ptr %18, align 4, !tbaa !9
  %228 = load i32, ptr %17, align 4, !tbaa !9
  %229 = or i32 %228, %227
  store i32 %229, ptr %17, align 4, !tbaa !9
  %230 = load ptr, ptr %5, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.w2c_hermes, ptr %230, i32 0, i32 6
  %232 = load i32, ptr %16, align 4, !tbaa !9
  %233 = zext i32 %232 to i64
  %234 = add i64 %233, 8
  %235 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %231, i64 noundef %234, i32 noundef %235)
  %236 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %236, ptr %16, align 4, !tbaa !9
  %237 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %237, ptr %6, align 4, !tbaa !9
  br label %238

238:                                              ; preds = %197, %175
  %239 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %239, ptr %16, align 4, !tbaa !9
  %240 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %240, ptr %17, align 4, !tbaa !9
  %241 = load i32, ptr %17, align 4, !tbaa !9
  %242 = load i32, ptr %16, align 4, !tbaa !9
  %243 = add i32 %242, %241
  store i32 %243, ptr %16, align 4, !tbaa !9
  %244 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %244, ptr %10, align 4, !tbaa !9
  %245 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %245, ptr %16, align 4, !tbaa !9
  %246 = load i32, ptr %16, align 4, !tbaa !9
  %247 = icmp ne i32 %246, 0
  br i1 %247, label %248, label %276

248:                                              ; preds = %238
  %249 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %249, ptr %16, align 4, !tbaa !9
  %250 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %250, ptr %17, align 4, !tbaa !9
  %251 = load ptr, ptr %5, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.w2c_hermes, ptr %251, i32 0, i32 6
  %253 = load i32, ptr %17, align 4, !tbaa !9
  %254 = zext i32 %253 to i64
  %255 = call i32 @i32_load(ptr noundef %252, i64 noundef %254)
  store i32 %255, ptr %17, align 4, !tbaa !9
  %256 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %256, ptr %18, align 4, !tbaa !9
  %257 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %257, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %20, align 4, !tbaa !9
  %258 = load i32, ptr %19, align 4, !tbaa !9
  %259 = load i32, ptr %20, align 4, !tbaa !9
  %260 = icmp slt i32 %258, %259
  %261 = zext i1 %260 to i32
  store i32 %261, ptr %19, align 4, !tbaa !9
  %262 = load i32, ptr %19, align 4, !tbaa !9
  %263 = icmp ne i32 %262, 0
  br i1 %263, label %264, label %266

264:                                              ; preds = %248
  %265 = load i32, ptr %17, align 4, !tbaa !9
  br label %268

266:                                              ; preds = %248
  %267 = load i32, ptr %18, align 4, !tbaa !9
  br label %268

268:                                              ; preds = %266, %264
  %269 = phi i32 [ %265, %264 ], [ %267, %266 ]
  store i32 %269, ptr %17, align 4, !tbaa !9
  %270 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %270, ptr %18, align 4, !tbaa !9
  %271 = load ptr, ptr %5, align 8, !tbaa !5
  %272 = load i32, ptr %16, align 4, !tbaa !9
  %273 = load i32, ptr %17, align 4, !tbaa !9
  %274 = load i32, ptr %18, align 4, !tbaa !9
  %275 = call i32 @w2c_hermes_memmove(ptr noundef %271, i32 noundef %272, i32 noundef %273, i32 noundef %274)
  store i32 %275, ptr %16, align 4, !tbaa !9
  br label %276

276:                                              ; preds = %268, %238
  %277 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %277, ptr %16, align 4, !tbaa !9
  %278 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %278, ptr %17, align 4, !tbaa !9
  %279 = load i32, ptr %17, align 4, !tbaa !9
  %280 = load i32, ptr %16, align 4, !tbaa !9
  %281 = add i32 %280, %279
  store i32 %281, ptr %16, align 4, !tbaa !9
  %282 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %282, ptr %7, align 4, !tbaa !9
  %283 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %283, ptr %16, align 4, !tbaa !9
  %284 = load i32, ptr %16, align 4, !tbaa !9
  %285 = icmp ne i32 %284, 0
  br i1 %285, label %286, label %314

286:                                              ; preds = %276
  %287 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %287, ptr %16, align 4, !tbaa !9
  %288 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %288, ptr %17, align 4, !tbaa !9
  %289 = load ptr, ptr %5, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.w2c_hermes, ptr %289, i32 0, i32 6
  %291 = load i32, ptr %17, align 4, !tbaa !9
  %292 = zext i32 %291 to i64
  %293 = call i32 @i32_load(ptr noundef %290, i64 noundef %292)
  store i32 %293, ptr %17, align 4, !tbaa !9
  %294 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %294, ptr %18, align 4, !tbaa !9
  %295 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %295, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %20, align 4, !tbaa !9
  %296 = load i32, ptr %19, align 4, !tbaa !9
  %297 = load i32, ptr %20, align 4, !tbaa !9
  %298 = icmp slt i32 %296, %297
  %299 = zext i1 %298 to i32
  store i32 %299, ptr %19, align 4, !tbaa !9
  %300 = load i32, ptr %19, align 4, !tbaa !9
  %301 = icmp ne i32 %300, 0
  br i1 %301, label %302, label %304

302:                                              ; preds = %286
  %303 = load i32, ptr %17, align 4, !tbaa !9
  br label %306

304:                                              ; preds = %286
  %305 = load i32, ptr %18, align 4, !tbaa !9
  br label %306

306:                                              ; preds = %304, %302
  %307 = phi i32 [ %303, %302 ], [ %305, %304 ]
  store i32 %307, ptr %17, align 4, !tbaa !9
  %308 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %308, ptr %18, align 4, !tbaa !9
  %309 = load ptr, ptr %5, align 8, !tbaa !5
  %310 = load i32, ptr %16, align 4, !tbaa !9
  %311 = load i32, ptr %17, align 4, !tbaa !9
  %312 = load i32, ptr %18, align 4, !tbaa !9
  %313 = call i32 @w2c_hermes_memmove(ptr noundef %309, i32 noundef %310, i32 noundef %311, i32 noundef %312)
  store i32 %313, ptr %16, align 4, !tbaa !9
  br label %314

314:                                              ; preds = %306, %276
  %315 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %315, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %17, 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 %16, align 4, !tbaa !9
  %319 = zext i32 %318 to i64
  %320 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %317, i64 noundef %319, i32 noundef %320)
  br label %341

321:                                              ; preds = %73
  store i32 0, ptr %16, align 4, !tbaa !9
  %322 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %322, ptr %7, align 4, !tbaa !9
  store i32 184395, ptr %17, align 4, !tbaa !9
  %323 = load i32, ptr %17, align 4, !tbaa !9
  %324 = load i32, ptr %16, align 4, !tbaa !9
  %325 = add i32 %324, %323
  store i32 %325, ptr %16, align 4, !tbaa !9
  %326 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %326, ptr %17, align 4, !tbaa !9
  store i32 81467, ptr %18, align 4, !tbaa !9
  %327 = load i32, ptr %18, align 4, !tbaa !9
  %328 = load i32, ptr %17, align 4, !tbaa !9
  %329 = add i32 %328, %327
  store i32 %329, ptr %17, align 4, !tbaa !9
  store i32 159, ptr %18, align 4, !tbaa !9
  %330 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %330, ptr %19, align 4, !tbaa !9
  store i32 75843, ptr %20, align 4, !tbaa !9
  %331 = load i32, ptr %20, align 4, !tbaa !9
  %332 = load i32, ptr %19, align 4, !tbaa !9
  %333 = add i32 %332, %331
  store i32 %333, ptr %19, align 4, !tbaa !9
  %334 = load ptr, ptr %5, align 8, !tbaa !5
  %335 = load i32, ptr %16, align 4, !tbaa !9
  %336 = load i32, ptr %17, align 4, !tbaa !9
  %337 = load i32, ptr %18, align 4, !tbaa !9
  %338 = load i32, ptr %19, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %334, i32 noundef %335, i32 noundef %336, i32 noundef %337, i32 noundef %338)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

339:                                              ; preds = %166
  %340 = load ptr, ptr %5, align 8, !tbaa !5
  call void @w2c_hermes_abort(ptr noundef %340)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

341:                                              ; preds = %314
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  ret void
}

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 = { nocallback nofree nosync nounwind willreturn memory(none) }
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 = { "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 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 #6 = { nounwind }
attributes #7 = { noreturn }

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

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


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

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

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 void @i64_store(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

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

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

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

declare void @w2c_hermes_abort(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3ASourceMap0x3A0x3AgetSourceFullPath0x28unsigned0x20int0x290x20const(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = zext i32 %2 to i64
  %7 = add nuw nsw i64 %6, 16
  %8 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %7)
  %9 = add nuw nsw i64 %6, 12
  %10 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %9)
  %11 = sub i32 %8, %10
  %12 = sdiv i32 %11, 12
  %13 = icmp ugt i32 %12, %3
  br i1 %13, label %14, label %58

14:                                               ; preds = %4
  %15 = mul i32 %3, 12
  %16 = add i32 %10, %15
  %17 = zext i32 %16 to i64
  %18 = add nuw nsw i64 %17, 4
  %19 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %18)
  %20 = add nuw nsw i64 %17, 11
  %21 = tail call i32 @i32_load8_u(ptr noundef nonnull %5, i64 noundef %20)
  %sext.mask = and i32 %21, 128
  %.not = icmp eq i32 %sext.mask, 0
  %22 = select i1 %.not, i32 %21, i32 %19
  %23 = add nuw nsw i64 %6, 4
  %24 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %23)
  %25 = add nuw nsw i64 %6, 11
  %26 = tail call i32 @i32_load8_u(ptr noundef nonnull %5, i64 noundef %25)
  %sext.mask175 = and i32 %26, 128
  %.not176 = icmp eq i32 %sext.mask175, 0
  %27 = select i1 %.not176, i32 %26, i32 %24
  %28 = add i32 %27, %22
  %29 = icmp ugt i32 %28, 2147483631
  br i1 %29, label %59, label %30

30:                                               ; preds = %14
  %31 = icmp ult i32 %28, 11
  br i1 %31, label %32, label %36

32:                                               ; preds = %30
  %33 = zext i32 %1 to i64
  %34 = add nuw nsw i64 %33, 8
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %34, i32 noundef 0)
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %33, i64 noundef 0)
  %35 = add nuw nsw i64 %33, 11
  tail call void @i32_store8(ptr noundef nonnull %5, i64 noundef %35, i32 noundef %28)
  br label %44

36:                                               ; preds = %30
  %37 = or i32 %28, 15
  %38 = add nuw i32 %37, 1
  %39 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef %38) #4
  %40 = zext i32 %1 to i64
  %41 = add nuw nsw i64 %40, 4
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %41, i32 noundef %28)
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %40, i32 noundef %39)
  %42 = or i32 %38, -2147483648
  %43 = add nuw nsw i64 %40, 8
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %43, i32 noundef %42)
  br label %44

44:                                               ; preds = %36, %32
  %.0 = phi i32 [ %1, %32 ], [ %39, %36 ]
  %45 = add i32 %.0, %27
  %.not177 = icmp eq i32 %27, 0
  br i1 %.not177, label %50, label %46

46:                                               ; preds = %44
  %47 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %6)
  %48 = select i1 %.not176, i32 %2, i32 %47
  %49 = tail call i32 @w2c_hermes_memmove(ptr noundef %0, i32 noundef %.0, i32 noundef %48, i32 noundef %27) #4
  br label %50

50:                                               ; preds = %46, %44
  %.not178 = icmp eq i32 %22, 0
  br i1 %.not178, label %55, label %51

51:                                               ; preds = %50
  %52 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %17)
  %53 = select i1 %.not, i32 %16, i32 %52
  %54 = tail call i32 @w2c_hermes_memmove(ptr noundef %0, i32 noundef %45, i32 noundef %53, i32 noundef %22) #4
  br label %55

55:                                               ; preds = %51, %50
  %56 = add i32 %45, %22
  %57 = zext i32 %56 to i64
  tail call void @i32_store8(ptr noundef nonnull %5, i64 noundef %57, i32 noundef 0)
  ret void

58:                                               ; preds = %4
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 184395, i32 noundef 81467, i32 noundef 159, i32 noundef 75843) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

59:                                               ; preds = %14
  tail call void @w2c_hermes_abort(ptr noundef %0) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

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 = { "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)"}


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