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

; 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_load8_u(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(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #3

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

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

21:                                               ; preds = %3
  %22 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %22, ptr %9, align 4, !tbaa !9
  %23 = load i32, ptr %9, align 4, !tbaa !9
  %24 = icmp ne i32 %23, 0
  %25 = xor i1 %24, true
  %26 = zext i1 %25 to i32
  store i32 %26, ptr %9, align 4, !tbaa !9
  %27 = load i32, ptr %9, align 4, !tbaa !9
  %28 = icmp ne i32 %27, 0
  br i1 %28, label %29, label %30

29:                                               ; preds = %21
  br label %189

30:                                               ; preds = %21
  %31 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %31, ptr %9, align 4, !tbaa !9
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.w2c_hermes, ptr %32, i32 0, i32 6
  %34 = load i32, ptr %9, align 4, !tbaa !9
  %35 = zext i32 %34 to i64
  %36 = call i32 @i32_load(ptr noundef %33, i64 noundef %35)
  store i32 %36, ptr %9, align 4, !tbaa !9
  %37 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %37, ptr %7, align 4, !tbaa !9
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.w2c_hermes, ptr %38, i32 0, i32 6
  %40 = load i32, ptr %9, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  %42 = add i64 %41, 4
  %43 = call i32 @i32_load(ptr noundef %39, i64 noundef %42)
  store i32 %43, ptr %9, align 4, !tbaa !9
  %44 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %44, ptr %10, align 4, !tbaa !9
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.w2c_hermes, ptr %45, i32 0, i32 6
  %47 = load i32, ptr %10, align 4, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = call i32 @i32_load(ptr noundef %46, i64 noundef %48)
  store i32 %49, ptr %10, align 4, !tbaa !9
  %50 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %50, ptr %7, align 4, !tbaa !9
  %51 = load i32, ptr %10, align 4, !tbaa !9
  %52 = load i32, ptr %9, align 4, !tbaa !9
  %53 = sub i32 %52, %51
  store i32 %53, ptr %9, align 4, !tbaa !9
  store i32 12, ptr %10, align 4, !tbaa !9
  %54 = load i32, ptr %10, align 4, !tbaa !9
  %55 = icmp eq i32 %54, 0
  %56 = xor i1 %55, true
  %57 = xor i1 %56, true
  %58 = zext i1 %57 to i32
  %59 = sext i32 %58 to i64
  %60 = call i64 @llvm.expect.i64(i64 %59, i64 0)
  %61 = icmp ne i64 %60, 0
  br i1 %61, label %62, label %64

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

63:                                               ; No predecessors!
  br label %86

64:                                               ; preds = %30
  %65 = load i32, ptr %9, align 4, !tbaa !9
  %66 = icmp eq i32 %65, -2147483648
  br i1 %66, label %67, label %70

67:                                               ; preds = %64
  %68 = load i32, ptr %10, align 4, !tbaa !9
  %69 = icmp eq i32 %68, -1
  br label %70

70:                                               ; preds = %67, %64
  %71 = phi i1 [ false, %64 ], [ %69, %67 ]
  %72 = xor i1 %71, true
  %73 = xor i1 %72, true
  %74 = zext i1 %73 to i32
  %75 = sext i32 %74 to i64
  %76 = call i64 @llvm.expect.i64(i64 %75, i64 0)
  %77 = icmp ne i64 %76, 0
  br i1 %77, label %78, label %80

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

79:                                               ; No predecessors!
  br label %84

80:                                               ; preds = %70
  %81 = load i32, ptr %9, align 4, !tbaa !9
  %82 = load i32, ptr %10, align 4, !tbaa !9
  %83 = sdiv i32 %81, %82
  br label %84

84:                                               ; preds = %80, %79
  %85 = phi i32 [ 0, %79 ], [ %83, %80 ]
  br label %86

86:                                               ; preds = %84, %63
  %87 = phi i32 [ 0, %63 ], [ %85, %84 ]
  store i32 %87, ptr %9, align 4, !tbaa !9
  %88 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %88, ptr %10, align 4, !tbaa !9
  %89 = load i32, ptr %9, align 4, !tbaa !9
  %90 = load i32, ptr %10, align 4, !tbaa !9
  %91 = icmp ult i32 %89, %90
  %92 = zext i1 %91 to i32
  store i32 %92, ptr %9, align 4, !tbaa !9
  %93 = load i32, ptr %9, align 4, !tbaa !9
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %96

95:                                               ; preds = %86
  br label %189

96:                                               ; preds = %86
  %97 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %97, ptr %9, align 4, !tbaa !9
  store i32 12, ptr %10, align 4, !tbaa !9
  %98 = load i32, ptr %10, align 4, !tbaa !9
  %99 = load i32, ptr %9, align 4, !tbaa !9
  %100 = mul i32 %99, %98
  store i32 %100, ptr %9, align 4, !tbaa !9
  %101 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %101, ptr %10, align 4, !tbaa !9
  %102 = load i32, ptr %10, align 4, !tbaa !9
  %103 = load i32, ptr %9, align 4, !tbaa !9
  %104 = add i32 %103, %102
  store i32 %104, ptr %9, align 4, !tbaa !9
  store i32 12, ptr %10, align 4, !tbaa !9
  %105 = load i32, ptr %10, align 4, !tbaa !9
  %106 = load i32, ptr %9, align 4, !tbaa !9
  %107 = sub i32 %106, %105
  store i32 %107, ptr %9, align 4, !tbaa !9
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.w2c_hermes, ptr %108, i32 0, i32 6
  %110 = load i32, ptr %9, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = call i32 @i32_load(ptr noundef %109, i64 noundef %111)
  store i32 %112, ptr %9, align 4, !tbaa !9
  %113 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %113, ptr %7, align 4, !tbaa !9
  %114 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %114, ptr %9, align 4, !tbaa !9
  %115 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %115, ptr %10, align 4, !tbaa !9
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.w2c_hermes, ptr %116, i32 0, i32 6
  %118 = load i32, ptr %9, align 4, !tbaa !9
  %119 = zext i32 %118 to i64
  %120 = add i64 %119, 8
  %121 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %117, i64 noundef %120, i32 noundef %121)
  %122 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %122, ptr %9, align 4, !tbaa !9
  %123 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %123, ptr %10, align 4, !tbaa !9
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.w2c_hermes, ptr %124, i32 0, i32 6
  %126 = load i32, ptr %10, 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 %10, align 4, !tbaa !9
  %130 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %130, ptr %8, align 4, !tbaa !9
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.w2c_hermes, ptr %131, i32 0, i32 6
  %133 = load i32, ptr %9, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = add i64 %134, 84
  %136 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %132, i64 noundef %135, i32 noundef %136)
  %137 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %137, ptr %9, align 4, !tbaa !9
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.w2c_hermes, ptr %138, i32 0, i32 6
  %140 = load i32, ptr %9, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = add i64 %141, 8
  %143 = call i32 @i32_load(ptr noundef %139, i64 noundef %142)
  store i32 %143, ptr %9, align 4, !tbaa !9
  %144 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %144, ptr %6, align 4, !tbaa !9
  %145 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %145, ptr %9, align 4, !tbaa !9
  %146 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %146, ptr %10, align 4, !tbaa !9
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.w2c_hermes, ptr %147, i32 0, i32 6
  %149 = load i32, ptr %9, align 4, !tbaa !9
  %150 = zext i32 %149 to i64
  %151 = add i64 %150, 88
  %152 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %148, i64 noundef %151, i32 noundef %152)
  %153 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %153, ptr %9, align 4, !tbaa !9
  %154 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %154, ptr %10, align 4, !tbaa !9
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.w2c_hermes, ptr %155, i32 0, i32 6
  %157 = load i32, ptr %9, align 4, !tbaa !9
  %158 = zext i32 %157 to i64
  %159 = add i64 %158, 92
  %160 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %156, i64 noundef %159, i32 noundef %160)
  %161 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %161, ptr %9, align 4, !tbaa !9
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.w2c_hermes, ptr %162, i32 0, i32 6
  %164 = load i32, ptr %9, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = call i32 @i32_load8_u(ptr noundef %163, i64 noundef %165)
  store i32 %166, ptr %9, align 4, !tbaa !9
  %167 = load i32, ptr %9, align 4, !tbaa !9
  %168 = icmp ne i32 %167, 0
  br i1 %168, label %169, label %170

169:                                              ; preds = %96
  br label %207

170:                                              ; preds = %96
  br label %225

171:                                              ; preds = %3
  store i32 0, ptr %9, align 4, !tbaa !9
  %172 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %172, ptr %6, align 4, !tbaa !9
  store i32 180131, ptr %10, align 4, !tbaa !9
  %173 = load i32, ptr %10, align 4, !tbaa !9
  %174 = load i32, ptr %9, align 4, !tbaa !9
  %175 = add i32 %174, %173
  store i32 %175, ptr %9, align 4, !tbaa !9
  %176 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %176, ptr %10, align 4, !tbaa !9
  store i32 80631, ptr %11, align 4, !tbaa !9
  %177 = load i32, ptr %11, align 4, !tbaa !9
  %178 = load i32, ptr %10, align 4, !tbaa !9
  %179 = add i32 %178, %177
  store i32 %179, ptr %10, align 4, !tbaa !9
  store i32 371, ptr %11, align 4, !tbaa !9
  %180 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %180, ptr %12, align 4, !tbaa !9
  store i32 52241, ptr %13, align 4, !tbaa !9
  %181 = load i32, ptr %13, align 4, !tbaa !9
  %182 = load i32, ptr %12, align 4, !tbaa !9
  %183 = add i32 %182, %181
  store i32 %183, ptr %12, align 4, !tbaa !9
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  %185 = load i32, ptr %9, align 4, !tbaa !9
  %186 = load i32, ptr %10, align 4, !tbaa !9
  %187 = load i32, ptr %11, align 4, !tbaa !9
  %188 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %184, i32 noundef %185, i32 noundef %186, i32 noundef %187, i32 noundef %188)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

189:                                              ; preds = %95, %29
  store i32 0, ptr %9, align 4, !tbaa !9
  %190 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %190, ptr %6, align 4, !tbaa !9
  store i32 116166, ptr %10, align 4, !tbaa !9
  %191 = load i32, ptr %10, align 4, !tbaa !9
  %192 = load i32, ptr %9, align 4, !tbaa !9
  %193 = add i32 %192, %191
  store i32 %193, ptr %9, align 4, !tbaa !9
  %194 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %194, ptr %10, align 4, !tbaa !9
  store i32 80107, ptr %11, align 4, !tbaa !9
  %195 = load i32, ptr %11, align 4, !tbaa !9
  %196 = load i32, ptr %10, align 4, !tbaa !9
  %197 = add i32 %196, %195
  store i32 %197, ptr %10, align 4, !tbaa !9
  store i32 150, ptr %11, align 4, !tbaa !9
  %198 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %198, ptr %12, align 4, !tbaa !9
  store i32 51641, ptr %13, align 4, !tbaa !9
  %199 = load i32, ptr %13, align 4, !tbaa !9
  %200 = load i32, ptr %12, align 4, !tbaa !9
  %201 = add i32 %200, %199
  store i32 %201, ptr %12, align 4, !tbaa !9
  %202 = load ptr, ptr %4, align 8, !tbaa !5
  %203 = load i32, ptr %9, align 4, !tbaa !9
  %204 = load i32, ptr %10, align 4, !tbaa !9
  %205 = load i32, ptr %11, align 4, !tbaa !9
  %206 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %202, i32 noundef %203, i32 noundef %204, i32 noundef %205, i32 noundef %206)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

207:                                              ; preds = %169
  store i32 0, ptr %9, align 4, !tbaa !9
  %208 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %208, ptr %6, align 4, !tbaa !9
  store i32 179370, ptr %10, align 4, !tbaa !9
  %209 = load i32, ptr %10, align 4, !tbaa !9
  %210 = load i32, ptr %9, align 4, !tbaa !9
  %211 = add i32 %210, %209
  store i32 %211, ptr %9, align 4, !tbaa !9
  %212 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %212, ptr %10, align 4, !tbaa !9
  store i32 56897, ptr %11, align 4, !tbaa !9
  %213 = load i32, ptr %11, align 4, !tbaa !9
  %214 = load i32, ptr %10, align 4, !tbaa !9
  %215 = add i32 %214, %213
  store i32 %215, ptr %10, align 4, !tbaa !9
  store i32 107, ptr %11, align 4, !tbaa !9
  %216 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %216, ptr %12, align 4, !tbaa !9
  store i32 106876, ptr %13, align 4, !tbaa !9
  %217 = load i32, ptr %13, align 4, !tbaa !9
  %218 = load i32, ptr %12, align 4, !tbaa !9
  %219 = add i32 %218, %217
  store i32 %219, ptr %12, align 4, !tbaa !9
  %220 = load ptr, ptr %4, align 8, !tbaa !5
  %221 = load i32, ptr %9, align 4, !tbaa !9
  %222 = load i32, ptr %10, align 4, !tbaa !9
  %223 = load i32, ptr %11, align 4, !tbaa !9
  %224 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %220, i32 noundef %221, i32 noundef %222, i32 noundef %223, i32 noundef %224)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

225:                                              ; preds = %170
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #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 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(none) }
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}


; 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_load8_u(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_load(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: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Aparser0x3A0x3AJSLexer0x3A0x3AinitializeWithBufferId0x28unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = icmp sgt i32 %2, -1
  br i1 %4, label %5, label %34

5:                                                ; preds = %3
  %.not = icmp eq i32 %2, 0
  br i1 %.not, label %35, label %6

6:                                                ; preds = %5
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = zext i32 %1 to i64
  %9 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %8)
  %10 = zext i32 %9 to i64
  %11 = add nuw nsw i64 %10, 4
  %12 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %11)
  %13 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %10)
  %14 = sub i32 %12, %13
  %15 = sdiv i32 %14, 12
  %16 = icmp ult i32 %15, %2
  br i1 %16, label %35, label %17

17:                                               ; preds = %6
  %18 = mul i32 %2, 12
  %19 = add i32 %18, -12
  %20 = add i32 %19, %13
  %21 = zext i32 %20 to i64
  %22 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %21)
  %23 = add nuw nsw i64 %8, 8
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %23, i32 noundef %2)
  %24 = zext i32 %22 to i64
  %25 = add nuw nsw i64 %24, 4
  %26 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %25)
  %27 = add nuw nsw i64 %8, 84
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %27, i32 noundef %26)
  %28 = add nuw nsw i64 %24, 8
  %29 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %28)
  %30 = add nuw nsw i64 %8, 88
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %30, i32 noundef %26)
  %31 = add nuw nsw i64 %8, 92
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %31, i32 noundef %29)
  %32 = zext i32 %29 to i64
  %33 = tail call i32 @i32_load8_u(ptr noundef nonnull %7, i64 noundef %32)
  %.not111 = icmp eq i32 %33, 0
  br i1 %.not111, label %37, label %36

34:                                               ; preds = %3
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 180131, i32 noundef 80631, i32 noundef 371, i32 noundef 52241) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

35:                                               ; preds = %6, %5
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 116166, i32 noundef 80107, i32 noundef 150, i32 noundef 51641) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

36:                                               ; preds = %17
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 179370, i32 noundef 56897, i32 noundef 107, i32 noundef 106876) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

37:                                               ; preds = %17
  ret void
}

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