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

; 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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AsnapshotWriteBarrierInternal0x28hermes0x3A0x3Avm0x3A0x3AHermesValue320x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) #4 {
  %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) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %14 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %14, ptr %9, align 4, !tbaa !9
  store i32 4, ptr %10, align 4, !tbaa !9
  %15 = load i32, ptr %10, align 4, !tbaa !9
  %16 = load i32, ptr %9, align 4, !tbaa !9
  %17 = and i32 %16, %15
  store i32 %17, ptr %9, align 4, !tbaa !9
  %18 = load i32, ptr %9, align 4, !tbaa !9
  %19 = icmp ne i32 %18, 0
  %20 = xor i1 %19, true
  %21 = zext i1 %20 to i32
  store i32 %21, ptr %9, align 4, !tbaa !9
  %22 = load i32, ptr %9, align 4, !tbaa !9
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %33

24:                                               ; preds = %3
  %25 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %25, ptr %9, align 4, !tbaa !9
  %26 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %26, ptr %10, align 4, !tbaa !9
  store i32 -8, ptr %11, align 4, !tbaa !9
  %27 = load i32, ptr %11, align 4, !tbaa !9
  %28 = load i32, ptr %10, align 4, !tbaa !9
  %29 = and i32 %28, %27
  store i32 %29, ptr %10, align 4, !tbaa !9
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = load i32, ptr %9, align 4, !tbaa !9
  %32 = load i32, ptr %10, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AsnapshotWriteBarrierInternal0x28hermes0x3A0x3Avm0x3A0x3ACompressedPointer0x29(ptr noundef %30, i32 noundef %31, i32 noundef %32)
  br label %217

33:                                               ; preds = %3
  %34 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %34, ptr %9, align 4, !tbaa !9
  store i32 7, ptr %10, align 4, !tbaa !9
  %35 = load i32, ptr %10, align 4, !tbaa !9
  %36 = load i32, ptr %9, align 4, !tbaa !9
  %37 = and i32 %36, %35
  store i32 %37, ptr %9, align 4, !tbaa !9
  %38 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %38, ptr %7, align 4, !tbaa !9
  store i32 5, ptr %10, align 4, !tbaa !9
  %39 = load i32, ptr %9, align 4, !tbaa !9
  %40 = load i32, ptr %10, align 4, !tbaa !9
  %41 = icmp ne i32 %39, %40
  %42 = zext i1 %41 to i32
  store i32 %42, ptr %9, align 4, !tbaa !9
  %43 = load i32, ptr %9, align 4, !tbaa !9
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %33
  br label %162

46:                                               ; preds = %33
  %47 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %47, ptr %9, align 4, !tbaa !9
  store i32 4, ptr %10, align 4, !tbaa !9
  %48 = load i32, ptr %9, align 4, !tbaa !9
  %49 = load i32, ptr %10, align 4, !tbaa !9
  %50 = icmp eq i32 %48, %49
  %51 = zext i1 %50 to i32
  store i32 %51, ptr %9, align 4, !tbaa !9
  %52 = load i32, ptr %9, align 4, !tbaa !9
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %55

54:                                               ; preds = %46
  br label %163

55:                                               ; preds = %46
  %56 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %56, ptr %9, align 4, !tbaa !9
  store i32 6, ptr %10, align 4, !tbaa !9
  %57 = load i32, ptr %9, align 4, !tbaa !9
  %58 = load i32, ptr %10, align 4, !tbaa !9
  %59 = icmp uge i32 %57, %58
  %60 = zext i1 %59 to i32
  store i32 %60, ptr %9, align 4, !tbaa !9
  %61 = load i32, ptr %9, align 4, !tbaa !9
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %64

63:                                               ; preds = %55
  br label %181

64:                                               ; preds = %55
  %65 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %65, ptr %9, align 4, !tbaa !9
  store i32 -17, ptr %10, align 4, !tbaa !9
  %66 = load i32, ptr %9, align 4, !tbaa !9
  %67 = load i32, ptr %10, align 4, !tbaa !9
  %68 = icmp ugt i32 %66, %67
  %69 = zext i1 %68 to i32
  store i32 %69, ptr %9, align 4, !tbaa !9
  %70 = load i32, ptr %9, align 4, !tbaa !9
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %64
  br label %162

73:                                               ; preds = %64
  %74 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %74, ptr %9, align 4, !tbaa !9
  store i32 3, ptr %10, align 4, !tbaa !9
  %75 = load i32, ptr %10, align 4, !tbaa !9
  %76 = and i32 %75, 31
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = lshr i32 %77, %76
  store i32 %78, ptr %9, align 4, !tbaa !9
  %79 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %79, ptr %8, align 4, !tbaa !9
  store i32 268435455, ptr %10, align 4, !tbaa !9
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = load i32, ptr %9, align 4, !tbaa !9
  %82 = and i32 %81, %80
  store i32 %82, ptr %9, align 4, !tbaa !9
  %83 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %83, ptr %7, align 4, !tbaa !9
  %84 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %84, ptr %10, align 4, !tbaa !9
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.w2c_hermes, ptr %85, i32 0, i32 6
  %87 = load i32, ptr %10, align 4, !tbaa !9
  %88 = zext i32 %87 to i64
  %89 = add i64 %88, 4056
  %90 = call i32 @i32_load(ptr noundef %86, i64 noundef %89)
  store i32 %90, ptr %10, align 4, !tbaa !9
  %91 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %91, ptr %6, align 4, !tbaa !9
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.w2c_hermes, ptr %92, i32 0, i32 6
  %94 = load i32, ptr %10, align 4, !tbaa !9
  %95 = zext i32 %94 to i64
  %96 = add i64 %95, 580
  %97 = call i32 @i32_load(ptr noundef %93, i64 noundef %96)
  store i32 %97, ptr %10, align 4, !tbaa !9
  %98 = load i32, ptr %9, align 4, !tbaa !9
  %99 = load i32, ptr %10, align 4, !tbaa !9
  %100 = icmp uge i32 %98, %99
  %101 = zext i1 %100 to i32
  store i32 %101, ptr %9, align 4, !tbaa !9
  %102 = load i32, ptr %9, align 4, !tbaa !9
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %105

104:                                              ; preds = %73
  br label %162

105:                                              ; preds = %73
  %106 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %106, ptr %9, align 4, !tbaa !9
  store i32 5, ptr %10, align 4, !tbaa !9
  %107 = load i32, ptr %10, align 4, !tbaa !9
  %108 = and i32 %107, 31
  %109 = load i32, ptr %9, align 4, !tbaa !9
  %110 = lshr i32 %109, %108
  store i32 %110, ptr %9, align 4, !tbaa !9
  %111 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %111, ptr %5, align 4, !tbaa !9
  %112 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %112, ptr %10, align 4, !tbaa !9
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.w2c_hermes, ptr %113, i32 0, i32 6
  %115 = load i32, ptr %10, align 4, !tbaa !9
  %116 = zext i32 %115 to i64
  %117 = add i64 %116, 576
  %118 = call i32 @i32_load(ptr noundef %114, i64 noundef %117)
  store i32 %118, ptr %10, align 4, !tbaa !9
  %119 = load i32, ptr %9, align 4, !tbaa !9
  %120 = load i32, ptr %10, align 4, !tbaa !9
  %121 = icmp uge i32 %119, %120
  %122 = zext i1 %121 to i32
  store i32 %122, ptr %9, align 4, !tbaa !9
  %123 = load i32, ptr %9, align 4, !tbaa !9
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %126

125:                                              ; preds = %105
  br label %199

126:                                              ; preds = %105
  %127 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %127, ptr %9, align 4, !tbaa !9
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.w2c_hermes, ptr %128, i32 0, i32 6
  %130 = load i32, ptr %9, align 4, !tbaa !9
  %131 = zext i32 %130 to i64
  %132 = add i64 %131, 572
  %133 = call i32 @i32_load(ptr noundef %129, i64 noundef %132)
  store i32 %133, ptr %9, align 4, !tbaa !9
  %134 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %134, ptr %10, align 4, !tbaa !9
  store i32 2, ptr %11, align 4, !tbaa !9
  %135 = load i32, ptr %11, align 4, !tbaa !9
  %136 = and i32 %135, 31
  %137 = load i32, ptr %10, align 4, !tbaa !9
  %138 = shl i32 %137, %136
  store i32 %138, ptr %10, align 4, !tbaa !9
  %139 = load i32, ptr %10, align 4, !tbaa !9
  %140 = load i32, ptr %9, align 4, !tbaa !9
  %141 = add i32 %140, %139
  store i32 %141, ptr %9, align 4, !tbaa !9
  %142 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %142, ptr %6, align 4, !tbaa !9
  %143 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %143, ptr %10, align 4, !tbaa !9
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.w2c_hermes, ptr %144, i32 0, i32 6
  %146 = load i32, ptr %10, align 4, !tbaa !9
  %147 = zext i32 %146 to i64
  %148 = call i32 @i32_load(ptr noundef %145, i64 noundef %147)
  store i32 %148, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %11, align 4, !tbaa !9
  %149 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %149, ptr %12, align 4, !tbaa !9
  %150 = load i32, ptr %12, align 4, !tbaa !9
  %151 = and i32 %150, 31
  %152 = load i32, ptr %11, align 4, !tbaa !9
  %153 = shl i32 %152, %151
  store i32 %153, ptr %11, align 4, !tbaa !9
  %154 = load i32, ptr %11, align 4, !tbaa !9
  %155 = load i32, ptr %10, align 4, !tbaa !9
  %156 = or i32 %155, %154
  store i32 %156, ptr %10, align 4, !tbaa !9
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.w2c_hermes, ptr %157, i32 0, i32 6
  %159 = load i32, ptr %9, align 4, !tbaa !9
  %160 = zext i32 %159 to i64
  %161 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %158, i64 noundef %160, i32 noundef %161)
  br label %162

162:                                              ; preds = %126, %104, %72, %45
  br label %217

163:                                              ; preds = %54
  store i32 0, ptr %9, align 4, !tbaa !9
  %164 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %164, ptr %6, align 4, !tbaa !9
  store i32 190315, ptr %10, align 4, !tbaa !9
  %165 = load i32, ptr %10, align 4, !tbaa !9
  %166 = load i32, ptr %9, align 4, !tbaa !9
  %167 = add i32 %166, %165
  store i32 %167, ptr %9, align 4, !tbaa !9
  %168 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %168, ptr %10, align 4, !tbaa !9
  store i32 83268, ptr %11, align 4, !tbaa !9
  %169 = load i32, ptr %11, align 4, !tbaa !9
  %170 = load i32, ptr %10, align 4, !tbaa !9
  %171 = add i32 %170, %169
  store i32 %171, ptr %10, align 4, !tbaa !9
  store i32 270, ptr %11, align 4, !tbaa !9
  %172 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %172, ptr %12, align 4, !tbaa !9
  store i32 90402, ptr %13, align 4, !tbaa !9
  %173 = load i32, ptr %13, align 4, !tbaa !9
  %174 = load i32, ptr %12, align 4, !tbaa !9
  %175 = add i32 %174, %173
  store i32 %175, ptr %12, align 4, !tbaa !9
  %176 = load ptr, ptr %4, align 8, !tbaa !5
  %177 = load i32, ptr %9, align 4, !tbaa !9
  %178 = load i32, ptr %10, align 4, !tbaa !9
  %179 = load i32, ptr %11, align 4, !tbaa !9
  %180 = load i32, ptr %12, 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 = %63
  store i32 0, ptr %9, align 4, !tbaa !9
  %182 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %182, ptr %6, align 4, !tbaa !9
  store i32 195600, ptr %10, align 4, !tbaa !9
  %183 = load i32, ptr %10, align 4, !tbaa !9
  %184 = load i32, ptr %9, align 4, !tbaa !9
  %185 = add i32 %184, %183
  store i32 %185, ptr %9, align 4, !tbaa !9
  %186 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %186, ptr %10, align 4, !tbaa !9
  store i32 83268, ptr %11, align 4, !tbaa !9
  %187 = load i32, ptr %11, align 4, !tbaa !9
  %188 = load i32, ptr %10, align 4, !tbaa !9
  %189 = add i32 %188, %187
  store i32 %189, ptr %10, align 4, !tbaa !9
  store i32 273, ptr %11, align 4, !tbaa !9
  %190 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %190, ptr %12, align 4, !tbaa !9
  store i32 90402, ptr %13, align 4, !tbaa !9
  %191 = load i32, ptr %13, align 4, !tbaa !9
  %192 = load i32, ptr %12, align 4, !tbaa !9
  %193 = add i32 %192, %191
  store i32 %193, ptr %12, align 4, !tbaa !9
  %194 = load ptr, ptr %4, align 8, !tbaa !5
  %195 = load i32, ptr %9, align 4, !tbaa !9
  %196 = load i32, ptr %10, align 4, !tbaa !9
  %197 = load i32, ptr %11, align 4, !tbaa !9
  %198 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %194, i32 noundef %195, i32 noundef %196, i32 noundef %197, i32 noundef %198)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

199:                                              ; preds = %125
  store i32 0, ptr %9, align 4, !tbaa !9
  %200 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %200, ptr %6, align 4, !tbaa !9
  store i32 202974, ptr %10, align 4, !tbaa !9
  %201 = load i32, ptr %10, align 4, !tbaa !9
  %202 = load i32, ptr %9, align 4, !tbaa !9
  %203 = add i32 %202, %201
  store i32 %203, ptr %9, align 4, !tbaa !9
  %204 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %204, ptr %10, align 4, !tbaa !9
  store i32 82833, ptr %11, align 4, !tbaa !9
  %205 = load i32, ptr %11, align 4, !tbaa !9
  %206 = load i32, ptr %10, align 4, !tbaa !9
  %207 = add i32 %206, %205
  store i32 %207, ptr %10, align 4, !tbaa !9
  store i32 418, ptr %11, align 4, !tbaa !9
  %208 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %208, ptr %12, align 4, !tbaa !9
  store i32 108367, ptr %13, align 4, !tbaa !9
  %209 = load i32, ptr %13, align 4, !tbaa !9
  %210 = load i32, ptr %12, align 4, !tbaa !9
  %211 = add i32 %210, %209
  store i32 %211, ptr %12, align 4, !tbaa !9
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = load i32, ptr %9, align 4, !tbaa !9
  %214 = load i32, ptr %10, align 4, !tbaa !9
  %215 = load i32, ptr %11, align 4, !tbaa !9
  %216 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %212, i32 noundef %213, i32 noundef %214, i32 noundef %215, i32 noundef %216)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

217:                                              ; preds = %162, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #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}


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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AsnapshotWriteBarrierInternal0x28hermes0x3A0x3Avm0x3A0x3AHermesValue320x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = and i32 %2, 4
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %5, label %7

5:                                                ; preds = %3
  %6 = and i32 %2, -8
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AsnapshotWriteBarrierInternal0x28hermes0x3A0x3Avm0x3A0x3ACompressedPointer0x29(ptr noundef %0, i32 noundef %1, i32 noundef %6)
  br label %35

7:                                                ; preds = %3
  %8 = and i32 %2, 7
  %.not121 = icmp ne i32 %8, 5
  %9 = icmp ugt i32 %2, -17
  %or.cond = or i1 %9, %.not121
  br i1 %or.cond, label %35, label %10

10:                                               ; preds = %7
  %11 = lshr i32 %2, 3
  %12 = and i32 %11, 268435455
  %13 = getelementptr inbounds i8, ptr %0, i64 40
  %14 = zext i32 %1 to i64
  %15 = add nuw nsw i64 %14, 4056
  %16 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %15)
  %17 = zext i32 %16 to i64
  %18 = add nuw nsw i64 %17, 580
  %19 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %18)
  %.not122 = icmp ult i32 %12, %19
  br i1 %.not122, label %20, label %35

20:                                               ; preds = %10
  %21 = lshr i32 %12, 5
  %22 = add nuw nsw i64 %17, 576
  %23 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %22)
  %.not123 = icmp ult i32 %21, %23
  br i1 %.not123, label %24, label %34

24:                                               ; preds = %20
  %25 = add nuw nsw i64 %17, 572
  %26 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %25)
  %27 = shl nuw nsw i32 %21, 2
  %28 = add i32 %26, %27
  %29 = zext i32 %28 to i64
  %30 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %29)
  %31 = and i32 %11, 31
  %32 = shl nuw i32 1, %31
  %33 = or i32 %30, %32
  tail call void @i32_store(ptr noundef nonnull %13, i64 noundef %29, i32 noundef %33)
  br label %35

34:                                               ; preds = %20
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 202974, i32 noundef 82833, i32 noundef 418, i32 noundef 108367) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

35:                                               ; preds = %24, %7, %10, %5
  ret void
}

attributes #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 = { 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 = { 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,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass