; 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
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCHermesValueBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x260x20hermes0x3A0x3Avm0x3A0x3ASegmentedArrayBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3A0x3AatRef0x3C0x28hermes0x3A0x3Avm0x3A0x3ASegmentedArrayBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3A0x3AInline0x2900x3E0x28hermes0x3A0x3Avm0x3A0x3APointerBase0x260x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #4 {
  %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
  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) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.w2c_hermes, ptr %16, i32 0, i32 3
  %18 = load i32, ptr %17, align 8, !tbaa !11
  store i32 %18, ptr %11, align 4, !tbaa !9
  store i32 16, ptr %12, align 4, !tbaa !9
  %19 = load i32, ptr %12, align 4, !tbaa !9
  %20 = load i32, ptr %11, align 4, !tbaa !9
  %21 = sub i32 %20, %19
  store i32 %21, ptr %11, align 4, !tbaa !9
  %22 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %22, ptr %9, align 4, !tbaa !9
  %23 = load i32, ptr %11, align 4, !tbaa !9
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.w2c_hermes, ptr %24, i32 0, i32 3
  store i32 %23, ptr %25, align 8, !tbaa !11
  %26 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %26, ptr %11, align 4, !tbaa !9
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.w2c_hermes, ptr %27, i32 0, i32 6
  %29 = load i32, ptr %11, align 4, !tbaa !9
  %30 = zext i32 %29 to i64
  %31 = add i64 %30, 12
  %32 = call i32 @i32_load(ptr noundef %28, i64 noundef %31)
  store i32 %32, ptr %11, align 4, !tbaa !9
  %33 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %33, ptr %10, align 4, !tbaa !9
  store i32 4096, ptr %12, align 4, !tbaa !9
  %34 = load i32, ptr %11, align 4, !tbaa !9
  %35 = load i32, ptr %12, align 4, !tbaa !9
  %36 = icmp ule i32 %34, %35
  %37 = zext i1 %36 to i32
  store i32 %37, ptr %11, align 4, !tbaa !9
  %38 = load i32, ptr %11, align 4, !tbaa !9
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %65

40:                                               ; preds = %4
  %41 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %41, ptr %11, align 4, !tbaa !9
  %42 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %42, ptr %12, align 4, !tbaa !9
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.w2c_hermes, ptr %43, i32 0, i32 6
  %45 = load i32, ptr %11, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = add i64 %46, 12
  %48 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %44, i64 noundef %47, i32 noundef %48)
  %49 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %49, ptr %11, align 4, !tbaa !9
  %50 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %50, ptr %12, align 4, !tbaa !9
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.w2c_hermes, ptr %51, i32 0, i32 6
  %53 = load i32, ptr %11, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = add i64 %54, 8
  %56 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %52, i64 noundef %55, i32 noundef %56)
  %57 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %57, ptr %11, align 4, !tbaa !9
  %58 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %58, ptr %12, align 4, !tbaa !9
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.w2c_hermes, ptr %59, i32 0, i32 6
  %61 = load i32, ptr %11, align 4, !tbaa !9
  %62 = zext i32 %61 to i64
  %63 = add i64 %62, 4
  %64 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %60, i64 noundef %63, i32 noundef %64)
  br label %148

65:                                               ; preds = %4
  %66 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %66, ptr %11, align 4, !tbaa !9
  %67 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %67, ptr %12, align 4, !tbaa !9
  %68 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %68, ptr %13, align 4, !tbaa !9
  store i32 4097, ptr %14, align 4, !tbaa !9
  %69 = load i32, ptr %14, align 4, !tbaa !9
  %70 = load i32, ptr %13, align 4, !tbaa !9
  %71 = sub i32 %70, %69
  store i32 %71, ptr %13, align 4, !tbaa !9
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = load i32, ptr %11, align 4, !tbaa !9
  %74 = load i32, ptr %12, align 4, !tbaa !9
  %75 = load i32, ptr %13, align 4, !tbaa !9
  %76 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ASegmentedArrayBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3A0x3AsegmentAt0x28hermes0x3A0x3Avm0x3A0x3APointerBase0x260x2C0x20unsigned0x20int0x290x20const(ptr noundef %72, i32 noundef %73, i32 noundef %74, i32 noundef %75)
  store i32 %76, ptr %11, align 4, !tbaa !9
  %77 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %77, ptr %11, align 4, !tbaa !9
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.w2c_hermes, ptr %78, i32 0, i32 6
  %80 = load i32, ptr %11, align 4, !tbaa !9
  %81 = zext i32 %80 to i64
  %82 = add i64 %81, 12
  %83 = call i32 @i32_load(ptr noundef %79, i64 noundef %82)
  store i32 %83, ptr %11, align 4, !tbaa !9
  %84 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %84, ptr %10, align 4, !tbaa !9
  %85 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %85, ptr %11, align 4, !tbaa !9
  %86 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %86, ptr %12, align 4, !tbaa !9
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.w2c_hermes, ptr %87, i32 0, i32 6
  %89 = load i32, ptr %11, align 4, !tbaa !9
  %90 = zext i32 %89 to i64
  %91 = add i64 %90, 12
  %92 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %88, i64 noundef %91, i32 noundef %92)
  %93 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %93, ptr %11, align 4, !tbaa !9
  %94 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %94, ptr %12, align 4, !tbaa !9
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.w2c_hermes, ptr %95, i32 0, i32 6
  %97 = load i32, ptr %11, align 4, !tbaa !9
  %98 = zext i32 %97 to i64
  %99 = add i64 %98, 8
  %100 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %96, i64 noundef %99, i32 noundef %100)
  %101 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %101, ptr %11, align 4, !tbaa !9
  %102 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %102, ptr %12, align 4, !tbaa !9
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.w2c_hermes, ptr %103, i32 0, i32 6
  %105 = load i32, ptr %11, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = add i64 %106, 4
  %108 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %104, i64 noundef %107, i32 noundef %108)
  %109 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %109, ptr %11, align 4, !tbaa !9
  store i32 4097, ptr %12, align 4, !tbaa !9
  %110 = load i32, ptr %11, align 4, !tbaa !9
  %111 = load i32, ptr %12, align 4, !tbaa !9
  %112 = icmp ult i32 %110, %111
  %113 = zext i1 %112 to i32
  store i32 %113, ptr %11, align 4, !tbaa !9
  %114 = load i32, ptr %11, align 4, !tbaa !9
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %117

116:                                              ; preds = %65
  br label %148

117:                                              ; preds = %65
  %118 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %118, ptr %11, align 4, !tbaa !9
  store i32 4097, ptr %12, align 4, !tbaa !9
  %119 = load i32, ptr %12, align 4, !tbaa !9
  %120 = load i32, ptr %11, align 4, !tbaa !9
  %121 = sub i32 %120, %119
  store i32 %121, ptr %11, align 4, !tbaa !9
  %122 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %122, ptr %10, align 4, !tbaa !9
  store i32 10, ptr %12, align 4, !tbaa !9
  %123 = load i32, ptr %12, align 4, !tbaa !9
  %124 = and i32 %123, 31
  %125 = load i32, ptr %11, align 4, !tbaa !9
  %126 = shl i32 %125, %124
  store i32 %126, ptr %11, align 4, !tbaa !9
  %127 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %127, ptr %12, align 4, !tbaa !9
  %128 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %128, ptr %13, align 4, !tbaa !9
  %129 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %129, ptr %14, align 4, !tbaa !9
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = load i32, ptr %12, align 4, !tbaa !9
  %132 = load i32, ptr %13, align 4, !tbaa !9
  %133 = load i32, ptr %14, align 4, !tbaa !9
  %134 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ASegmentedArrayBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3A0x3AsegmentAt0x28hermes0x3A0x3Avm0x3A0x3APointerBase0x260x2C0x20unsigned0x20int0x290x20const(ptr noundef %130, i32 noundef %131, i32 noundef %132, i32 noundef %133)
  store i32 %134, ptr %12, align 4, !tbaa !9
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.w2c_hermes, ptr %135, i32 0, i32 6
  %137 = load i32, ptr %12, align 4, !tbaa !9
  %138 = zext i32 %137 to i64
  %139 = add i64 %138, 12
  %140 = call i32 @i32_load(ptr noundef %136, i64 noundef %139)
  store i32 %140, ptr %12, align 4, !tbaa !9
  %141 = load i32, ptr %12, align 4, !tbaa !9
  %142 = load i32, ptr %11, align 4, !tbaa !9
  %143 = add i32 %142, %141
  store i32 %143, ptr %11, align 4, !tbaa !9
  store i32 4096, ptr %12, align 4, !tbaa !9
  %144 = load i32, ptr %12, align 4, !tbaa !9
  %145 = load i32, ptr %11, align 4, !tbaa !9
  %146 = add i32 %145, %144
  store i32 %146, ptr %11, align 4, !tbaa !9
  %147 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %147, ptr %10, align 4, !tbaa !9
  br label %148

148:                                              ; preds = %117, %116, %40
  %149 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %149, ptr %11, align 4, !tbaa !9
  %150 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %150, ptr %12, align 4, !tbaa !9
  %151 = load i32, ptr %11, align 4, !tbaa !9
  %152 = load i32, ptr %12, align 4, !tbaa !9
  %153 = icmp ugt i32 %151, %152
  %154 = zext i1 %153 to i32
  store i32 %154, ptr %11, align 4, !tbaa !9
  %155 = load i32, ptr %11, align 4, !tbaa !9
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %175

157:                                              ; preds = %148
  store i32 0, ptr %11, align 4, !tbaa !9
  %158 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %158, ptr %9, align 4, !tbaa !9
  store i32 171387, ptr %12, align 4, !tbaa !9
  %159 = load i32, ptr %12, align 4, !tbaa !9
  %160 = load i32, ptr %11, align 4, !tbaa !9
  %161 = add i32 %160, %159
  store i32 %161, ptr %11, align 4, !tbaa !9
  %162 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %162, ptr %12, align 4, !tbaa !9
  store i32 76566, ptr %13, align 4, !tbaa !9
  %163 = load i32, ptr %13, align 4, !tbaa !9
  %164 = load i32, ptr %12, align 4, !tbaa !9
  %165 = add i32 %164, %163
  store i32 %165, ptr %12, align 4, !tbaa !9
  store i32 184, ptr %13, align 4, !tbaa !9
  %166 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %166, ptr %14, align 4, !tbaa !9
  store i32 47897, ptr %15, align 4, !tbaa !9
  %167 = load i32, ptr %15, align 4, !tbaa !9
  %168 = load i32, ptr %14, align 4, !tbaa !9
  %169 = add i32 %168, %167
  store i32 %169, ptr %14, align 4, !tbaa !9
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = load i32, ptr %11, align 4, !tbaa !9
  %172 = load i32, ptr %12, align 4, !tbaa !9
  %173 = load i32, ptr %13, align 4, !tbaa !9
  %174 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %170, i32 noundef %171, i32 noundef %172, i32 noundef %173, i32 noundef %174)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

175:                                              ; preds = %148
  %176 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %176, ptr %11, align 4, !tbaa !9
  store i32 4, ptr %12, align 4, !tbaa !9
  %177 = load i32, ptr %12, align 4, !tbaa !9
  %178 = load i32, ptr %11, align 4, !tbaa !9
  %179 = add i32 %178, %177
  store i32 %179, ptr %11, align 4, !tbaa !9
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = load i32, ptr %11, align 4, !tbaa !9
  %182 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ASegmentedArrayBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3A0x3Aiterator0x3A0x3Aoperator0x2A0x280x29(ptr noundef %180, i32 noundef %181)
  store i32 %182, ptr %11, align 4, !tbaa !9
  %183 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %183, ptr %6, align 4, !tbaa !9
  %184 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %184, ptr %11, align 4, !tbaa !9
  store i32 16, ptr %12, align 4, !tbaa !9
  %185 = load i32, ptr %12, align 4, !tbaa !9
  %186 = load i32, ptr %11, align 4, !tbaa !9
  %187 = add i32 %186, %185
  store i32 %187, ptr %11, align 4, !tbaa !9
  %188 = load i32, ptr %11, align 4, !tbaa !9
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.w2c_hermes, ptr %189, i32 0, i32 3
  store i32 %188, ptr %190, align 8, !tbaa !11
  %191 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %191, ptr %11, align 4, !tbaa !9
  %192 = load i32, ptr %11, align 4, !tbaa !9
  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 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
  ret i32 %192
}

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ASegmentedArrayBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3A0x3AsegmentAt0x28hermes0x3A0x3Avm0x3A0x3APointerBase0x260x2C0x20unsigned0x20int0x290x20const(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ASegmentedArrayBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3A0x3Aiterator0x3A0x3Aoperator0x2A0x280x29(ptr noundef, i32 noundef) #1

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}
!11 = !{!12, !10, i64 24}
!12 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !13, i64 40, !16, i64 80}
!13 = !{!"", !6, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !15, i64 32}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!"", !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"

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
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCHermesValueBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x260x20hermes0x3A0x3Avm0x3A0x3ASegmentedArrayBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3A0x3AatRef0x3C0x28hermes0x3A0x3Avm0x3A0x3ASegmentedArrayBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3A0x3AInline0x2900x3E0x28hermes0x3A0x3Avm0x3A0x3APointerBase0x260x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = add i32 %6, -16
  store i32 %7, ptr %5, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = zext i32 %1 to i64
  %10 = add nuw nsw i64 %9, 12
  %11 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %10)
  %12 = icmp ult i32 %11, 4097
  br i1 %12, label %13, label %18

13:                                               ; preds = %4
  %14 = zext i32 %7 to i64
  %15 = add nuw nsw i64 %14, 12
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %15, i32 noundef %2)
  %16 = add nuw nsw i64 %14, 8
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %16, i32 noundef %3)
  %17 = add nuw nsw i64 %14, 4
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %17, i32 noundef %1)
  br label %36

18:                                               ; preds = %4
  %19 = add i32 %11, -4097
  %20 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ASegmentedArrayBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3A0x3AsegmentAt0x28hermes0x3A0x3Avm0x3A0x3APointerBase0x260x2C0x20unsigned0x20int0x290x20const(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2, i32 noundef %19) #4
  %21 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %10)
  %22 = zext i32 %7 to i64
  %23 = add nuw nsw i64 %22, 12
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %23, i32 noundef %2)
  %24 = add nuw nsw i64 %22, 8
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %24, i32 noundef %3)
  %25 = add nuw nsw i64 %22, 4
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %25, i32 noundef %1)
  %26 = icmp ult i32 %21, 4097
  br i1 %26, label %36, label %27

27:                                               ; preds = %18
  %28 = add i32 %21, -4097
  %29 = shl i32 %28, 10
  %30 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ASegmentedArrayBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3A0x3AsegmentAt0x28hermes0x3A0x3Avm0x3A0x3APointerBase0x260x2C0x20unsigned0x20int0x290x20const(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2, i32 noundef %28) #4
  %31 = zext i32 %30 to i64
  %32 = add nuw nsw i64 %31, 12
  %33 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %32)
  %34 = add i32 %29, 4096
  %35 = add i32 %34, %33
  br label %36

36:                                               ; preds = %18, %27, %13
  %.0 = phi i32 [ %11, %13 ], [ %21, %18 ], [ %35, %27 ]
  %37 = icmp ult i32 %.0, %3
  br i1 %37, label %38, label %39

38:                                               ; preds = %36
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 171387, i32 noundef 76566, i32 noundef 184, i32 noundef 47897) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

39:                                               ; preds = %36
  %40 = add i32 %6, -12
  %41 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ASegmentedArrayBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3A0x3Aiterator0x3A0x3Aoperator0x2A0x280x29(ptr noundef nonnull %0, i32 noundef %40) #4
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret i32 %41
}

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ASegmentedArrayBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3A0x3AsegmentAt0x28hermes0x3A0x3Avm0x3A0x3APointerBase0x260x2C0x20unsigned0x20int0x290x20const(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ASegmentedArrayBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x3A0x3Aiterator0x3A0x3Aoperator0x2A0x280x29(ptr noundef, i32 noundef) local_unnamed_addr #0

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)"}
!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,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass