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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.w2c_hermes = type { ptr, ptr, ptr, i32, i32, i32, %struct.wasm_rt_memory_t, %struct.wasm_rt_funcref_table_t }
%struct.wasm_rt_memory_t = type { ptr, i64, i64, i64, i8 }
%struct.wasm_rt_funcref_table_t = type { ptr, i32, i32 }

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

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

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

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

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

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

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

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

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

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

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

55:                                               ; preds = %5
  %56 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %56, ptr %13, align 4, !tbaa !9
  %57 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %57, ptr %19, align 8, !tbaa !11
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.w2c_hermes, ptr %58, i32 0, i32 6
  %60 = load i32, ptr %13, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  %62 = add i64 %61, 8
  %63 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %59, i64 noundef %62, i64 noundef %63)
  %64 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %64, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.w2c_hermes, ptr %65, i32 0, i32 6
  %67 = load i32, ptr %13, align 4, !tbaa !9
  %68 = zext i32 %67 to i64
  %69 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %66, i64 noundef %68, i32 noundef %69)
  br label %207

70:                                               ; preds = %5
  %71 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %71, ptr %18, align 8, !tbaa !11
  store i64 -844424930131968, ptr %19, align 8, !tbaa !11
  %72 = load i64, ptr %18, align 8, !tbaa !11
  %73 = load i64, ptr %19, align 8, !tbaa !11
  %74 = icmp uge i64 %72, %73
  %75 = zext i1 %74 to i32
  store i32 %75, ptr %13, align 4, !tbaa !9
  %76 = load i32, ptr %13, align 4, !tbaa !9
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %110

78:                                               ; preds = %70
  %79 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %79, ptr %18, align 8, !tbaa !11
  %80 = load i64, ptr %18, align 8, !tbaa !11
  %81 = trunc i64 %80 to i32
  store i32 %81, ptr %13, align 4, !tbaa !9
  %82 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %82, ptr %10, align 4, !tbaa !9
  %83 = load i32, ptr %13, align 4, !tbaa !9
  %84 = icmp ne i32 %83, 0
  %85 = xor i1 %84, true
  %86 = zext i1 %85 to i32
  store i32 %86, ptr %13, align 4, !tbaa !9
  %87 = load i32, ptr %13, align 4, !tbaa !9
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %90

89:                                               ; preds = %78
  br label %215

90:                                               ; preds = %78
  %91 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %91, ptr %13, align 4, !tbaa !9
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.w2c_hermes, ptr %92, i32 0, i32 6
  %94 = load i32, ptr %13, align 4, !tbaa !9
  %95 = zext i32 %94 to i64
  %96 = add i64 %95, 3
  %97 = call i32 @i32_load8_u(ptr noundef %93, i64 noundef %96)
  store i32 %97, ptr %13, align 4, !tbaa !9
  store i32 24, ptr %14, align 4, !tbaa !9
  %98 = load i32, ptr %14, align 4, !tbaa !9
  %99 = and i32 %98, 31
  %100 = load i32, ptr %13, align 4, !tbaa !9
  %101 = shl i32 %100, %99
  store i32 %101, ptr %13, align 4, !tbaa !9
  store i32 905969664, ptr %14, align 4, !tbaa !9
  %102 = load i32, ptr %13, align 4, !tbaa !9
  %103 = load i32, ptr %14, align 4, !tbaa !9
  %104 = icmp eq i32 %102, %103
  %105 = zext i1 %104 to i32
  store i32 %105, ptr %13, align 4, !tbaa !9
  %106 = load i32, ptr %13, align 4, !tbaa !9
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %108, label %109

108:                                              ; preds = %90
  br label %181

109:                                              ; preds = %90
  br label %110

110:                                              ; preds = %109, %70
  %111 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %111, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.w2c_hermes, ptr %112, i32 0, i32 6
  %114 = load i32, ptr %13, align 4, !tbaa !9
  %115 = zext i32 %114 to i64
  %116 = add i64 %115, 40
  %117 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %113, i64 noundef %116, i32 noundef %117)
  %118 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %118, ptr %13, align 4, !tbaa !9
  store i64 236223201281, ptr %19, align 8, !tbaa !11
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.w2c_hermes, ptr %119, i32 0, i32 6
  %121 = load i32, ptr %13, align 4, !tbaa !9
  %122 = zext i32 %121 to i64
  %123 = add i64 %122, 32
  %124 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %120, i64 noundef %123, i64 noundef %124)
  %125 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %125, ptr %13, align 4, !tbaa !9
  store i32 3, ptr %14, align 4, !tbaa !9
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.w2c_hermes, ptr %126, i32 0, i32 6
  %128 = load i32, ptr %13, align 4, !tbaa !9
  %129 = zext i32 %128 to i64
  %130 = add i64 %129, 16
  %131 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %127, i64 noundef %130, i32 noundef %131)
  %132 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %132, ptr %13, align 4, !tbaa !9
  store i32 71238, 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 %13, align 4, !tbaa !9
  %136 = zext i32 %135 to i64
  %137 = add i64 %136, 8
  %138 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %134, i64 noundef %137, i32 noundef %138)
  %139 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %139, ptr %13, align 4, !tbaa !9
  %140 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %140, ptr %14, align 4, !tbaa !9
  %141 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %141, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %142 = load i32, ptr %16, align 4, !tbaa !9
  %143 = load i32, ptr %15, align 4, !tbaa !9
  %144 = add i32 %143, %142
  store i32 %144, ptr %15, align 4, !tbaa !9
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = load i32, ptr %14, align 4, !tbaa !9
  %147 = load i32, ptr %15, align 4, !tbaa !9
  %148 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %145, i32 noundef %146, i32 noundef %147)
  store i32 %148, ptr %14, align 4, !tbaa !9
  %149 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %149, ptr %10, align 4, !tbaa !9
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.w2c_hermes, ptr %150, i32 0, i32 6
  %152 = load i32, ptr %13, align 4, !tbaa !9
  %153 = zext i32 %152 to i64
  %154 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %151, i64 noundef %153, i32 noundef %154)
  %155 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %155, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %156 = load i32, ptr %13, align 4, !tbaa !9
  %157 = load i32, ptr %14, align 4, !tbaa !9
  %158 = icmp ne i32 %156, %157
  %159 = zext i1 %158 to i32
  store i32 %159, ptr %13, align 4, !tbaa !9
  %160 = load i32, ptr %13, align 4, !tbaa !9
  %161 = icmp ne i32 %160, 0
  br i1 %161, label %162, label %163

162:                                              ; preds = %110
  br label %207

163:                                              ; preds = %110
  store i32 0, ptr %13, align 4, !tbaa !9
  %164 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %164, ptr %11, align 4, !tbaa !9
  store i32 109717, ptr %14, align 4, !tbaa !9
  %165 = load i32, ptr %14, align 4, !tbaa !9
  %166 = load i32, ptr %13, align 4, !tbaa !9
  %167 = add i32 %166, %165
  store i32 %167, ptr %13, align 4, !tbaa !9
  %168 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %168, ptr %14, align 4, !tbaa !9
  store i32 77564, ptr %15, align 4, !tbaa !9
  %169 = load i32, ptr %15, align 4, !tbaa !9
  %170 = load i32, ptr %14, align 4, !tbaa !9
  %171 = add i32 %170, %169
  store i32 %171, ptr %14, align 4, !tbaa !9
  store i32 168, ptr %15, align 4, !tbaa !9
  %172 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %172, ptr %16, align 4, !tbaa !9
  store i32 28083, ptr %17, align 4, !tbaa !9
  %173 = load i32, ptr %17, align 4, !tbaa !9
  %174 = load i32, ptr %16, align 4, !tbaa !9
  %175 = add i32 %174, %173
  store i32 %175, ptr %16, align 4, !tbaa !9
  %176 = load ptr, ptr %6, align 8, !tbaa !5
  %177 = load i32, ptr %13, align 4, !tbaa !9
  %178 = load i32, ptr %14, align 4, !tbaa !9
  %179 = load i32, ptr %15, align 4, !tbaa !9
  %180 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %176, i32 noundef %177, i32 noundef %178, i32 noundef %179, i32 noundef %180)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

181:                                              ; preds = %108
  %182 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %182, ptr %13, align 4, !tbaa !9
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.w2c_hermes, ptr %183, i32 0, i32 6
  %185 = load i32, ptr %13, align 4, !tbaa !9
  %186 = zext i32 %185 to i64
  %187 = add i64 %186, 28
  %188 = call i64 @i64_load8_u(ptr noundef %184, i64 noundef %187)
  store i64 %188, ptr %18, align 8, !tbaa !11
  %189 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %189, ptr %12, align 8, !tbaa !11
  %190 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %190, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %191 = load ptr, ptr %6, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.w2c_hermes, ptr %191, i32 0, i32 6
  %193 = load i32, ptr %13, align 4, !tbaa !9
  %194 = zext i32 %193 to i64
  %195 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %192, i64 noundef %194, i32 noundef %195)
  %196 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %196, ptr %13, align 4, !tbaa !9
  %197 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %197, ptr %19, align 8, !tbaa !11
  store i64 -1407374883553280, ptr %20, align 8, !tbaa !11
  %198 = load i64, ptr %20, align 8, !tbaa !11
  %199 = load i64, ptr %19, align 8, !tbaa !11
  %200 = or i64 %199, %198
  store i64 %200, ptr %19, align 8, !tbaa !11
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.w2c_hermes, ptr %201, i32 0, i32 6
  %203 = load i32, ptr %13, align 4, !tbaa !9
  %204 = zext i32 %203 to i64
  %205 = add i64 %204, 8
  %206 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %202, i64 noundef %205, i64 noundef %206)
  br label %207

207:                                              ; preds = %181, %162, %55
  %208 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %208, ptr %13, align 4, !tbaa !9
  store i32 48, ptr %14, align 4, !tbaa !9
  %209 = load i32, ptr %14, align 4, !tbaa !9
  %210 = load i32, ptr %13, align 4, !tbaa !9
  %211 = add i32 %210, %209
  store i32 %211, ptr %13, align 4, !tbaa !9
  %212 = load i32, ptr %13, align 4, !tbaa !9
  %213 = load ptr, ptr %6, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.w2c_hermes, ptr %213, i32 0, i32 3
  store i32 %212, ptr %214, align 8, !tbaa !13
  br label %233

215:                                              ; preds = %89
  store i32 0, ptr %13, align 4, !tbaa !9
  %216 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %216, ptr %11, align 4, !tbaa !9
  store i32 147142, ptr %14, align 4, !tbaa !9
  %217 = load i32, ptr %14, align 4, !tbaa !9
  %218 = load i32, ptr %13, align 4, !tbaa !9
  %219 = add i32 %218, %217
  store i32 %219, ptr %13, align 4, !tbaa !9
  %220 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %220, ptr %14, align 4, !tbaa !9
  store i32 82611, ptr %15, align 4, !tbaa !9
  %221 = load i32, ptr %15, align 4, !tbaa !9
  %222 = load i32, ptr %14, align 4, !tbaa !9
  %223 = add i32 %222, %221
  store i32 %223, ptr %14, align 4, !tbaa !9
  store i32 106, ptr %15, align 4, !tbaa !9
  %224 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %224, ptr %16, align 4, !tbaa !9
  store i32 28119, ptr %17, align 4, !tbaa !9
  %225 = load i32, ptr %17, align 4, !tbaa !9
  %226 = load i32, ptr %16, align 4, !tbaa !9
  %227 = add i32 %226, %225
  store i32 %227, ptr %16, align 4, !tbaa !9
  %228 = load ptr, ptr %6, align 8, !tbaa !5
  %229 = load i32, ptr %13, align 4, !tbaa !9
  %230 = load i32, ptr %14, align 4, !tbaa !9
  %231 = load i32, ptr %15, align 4, !tbaa !9
  %232 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %228, i32 noundef %229, i32 noundef %230, i32 noundef %231, i32 noundef %232)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

233:                                              ; preds = %207
  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 8, 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 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { noreturn }

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

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


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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AbooleanPrototypeValueOf0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #3 {
  %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)
  %.mask = and i64 %13, -140737488355328
  %14 = icmp eq i64 %.mask, -1407374883553280
  br i1 %14, label %15, label %18

15:                                               ; preds = %5
  %16 = zext i32 %1 to i64
  %17 = add nuw nsw i64 %16, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %17, i64 noundef %13)
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %16, i32 noundef 1)
  br label %42

18:                                               ; preds = %5
  %19 = icmp ugt i64 %13, -844424930131969
  br i1 %19, label %20, label %26

20:                                               ; preds = %18
  %21 = and i64 %13, 4294967295
  %.not = icmp eq i64 %21, 0
  br i1 %.not, label %43, label %22

22:                                               ; preds = %20
  %23 = add nuw nsw i64 %21, 3
  %24 = tail call i32 @i32_load8_u(ptr noundef nonnull %9, i64 noundef %23)
  %.mask123 = and i32 %24, 255
  %25 = icmp eq i32 %.mask123, 54
  br i1 %25, label %36, label %26

26:                                               ; preds = %22, %18
  %27 = zext i32 %8 to i64
  %28 = add nuw nsw i64 %27, 40
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %28, i32 noundef 0)
  %29 = add nuw nsw i64 %27, 32
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %29, i64 noundef 236223201281)
  %30 = add nuw nsw i64 %27, 16
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %30, i32 noundef 3)
  %31 = add nuw nsw i64 %27, 8
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %31, i32 noundef 71238)
  %32 = add i32 %7, -40
  %33 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef nonnull %0, i32 noundef %3, i32 noundef %32)
  %34 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %34, i32 noundef %33)
  %.not124 = icmp eq i32 %33, 1
  br i1 %.not124, label %35, label %42

35:                                               ; preds = %26
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 109717, i32 noundef 77564, i32 noundef 168, i32 noundef 28083) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

36:                                               ; preds = %22
  %37 = add nuw nsw i64 %21, 28
  %38 = tail call i64 @i64_load8_u(ptr noundef nonnull %9, i64 noundef %37)
  %39 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %39, i32 noundef 1)
  %40 = or i64 %38, -1407374883553280
  %41 = add nuw nsw i64 %39, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %41, i64 noundef %40)
  br label %42

42:                                               ; preds = %26, %36, %15
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret void

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

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

attributes #0 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn nounwind }

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

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


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