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

; 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: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) #1

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

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

declare i32 @w2c_hermes_0x5F_memset(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

declare void @w2c_hermes_abort(ptr noundef) #3

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x3A0x3Avector0x28unsigned0x20long0x29(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
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  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
  store i32 0, ptr %9, align 4, !tbaa !9
  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
  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 8, ptr %16) #5
  %17 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %17, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.w2c_hermes, ptr %18, i32 0, i32 6
  %20 = load i32, ptr %10, align 4, !tbaa !9
  %21 = zext i32 %20 to i64
  %22 = add i64 %21, 8
  %23 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %19, i64 noundef %22, i32 noundef %23)
  %24 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %24, ptr %10, align 4, !tbaa !9
  store i64 0, ptr %16, align 8, !tbaa !11
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.w2c_hermes, ptr %25, i32 0, i32 6
  %27 = load i32, ptr %10, align 4, !tbaa !9
  %28 = zext i32 %27 to i64
  %29 = load i64, ptr %16, align 8, !tbaa !11
  call void @i64_store(ptr noundef %26, i64 noundef %28, i64 noundef %29)
  %30 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %30, ptr %10, align 4, !tbaa !9
  %31 = load i32, ptr %10, align 4, !tbaa !9
  %32 = icmp ne i32 %31, 0
  %33 = xor i1 %32, true
  %34 = zext i1 %33 to i32
  store i32 %34, ptr %10, align 4, !tbaa !9
  %35 = load i32, ptr %10, align 4, !tbaa !9
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %38

37:                                               ; preds = %3
  br label %196

38:                                               ; preds = %3
  %39 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %39, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  %40 = load i32, ptr %10, align 4, !tbaa !9
  %41 = load i32, ptr %11, align 4, !tbaa !9
  %42 = icmp slt i32 %40, %41
  %43 = zext i1 %42 to i32
  store i32 %43, ptr %10, align 4, !tbaa !9
  %44 = load i32, ptr %10, align 4, !tbaa !9
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %38
  br label %198

47:                                               ; preds = %38
  %48 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %48, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %11, align 4, !tbaa !9
  %49 = load i32, ptr %11, align 4, !tbaa !9
  %50 = load i32, ptr %10, align 4, !tbaa !9
  %51 = sub i32 %50, %49
  store i32 %51, ptr %10, align 4, !tbaa !9
  store i32 5, ptr %11, align 4, !tbaa !9
  %52 = load i32, ptr %11, align 4, !tbaa !9
  %53 = and i32 %52, 31
  %54 = load i32, ptr %10, align 4, !tbaa !9
  %55 = lshr i32 %54, %53
  store i32 %55, ptr %10, align 4, !tbaa !9
  %56 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %56, ptr %8, align 4, !tbaa !9
  store i32 1, ptr %11, align 4, !tbaa !9
  %57 = load i32, ptr %11, align 4, !tbaa !9
  %58 = load i32, ptr %10, align 4, !tbaa !9
  %59 = add i32 %58, %57
  store i32 %59, ptr %10, align 4, !tbaa !9
  %60 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %60, ptr %9, align 4, !tbaa !9
  store i32 2, ptr %11, align 4, !tbaa !9
  %61 = load i32, ptr %11, align 4, !tbaa !9
  %62 = and i32 %61, 31
  %63 = load i32, ptr %10, align 4, !tbaa !9
  %64 = shl i32 %63, %62
  store i32 %64, ptr %10, align 4, !tbaa !9
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = load i32, ptr %10, align 4, !tbaa !9
  %67 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %65, i32 noundef %66)
  store i32 %67, ptr %10, align 4, !tbaa !9
  %68 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %68, ptr %7, align 4, !tbaa !9
  %69 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %69, ptr %10, align 4, !tbaa !9
  %70 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %70, ptr %11, align 4, !tbaa !9
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.w2c_hermes, ptr %71, i32 0, i32 6
  %73 = load i32, ptr %10, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = add i64 %74, 8
  %76 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %72, i64 noundef %75, i32 noundef %76)
  %77 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %77, ptr %10, align 4, !tbaa !9
  %78 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %78, ptr %11, align 4, !tbaa !9
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.w2c_hermes, ptr %79, i32 0, i32 6
  %81 = load i32, ptr %10, align 4, !tbaa !9
  %82 = zext i32 %81 to i64
  %83 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %80, i64 noundef %82, i32 noundef %83)
  %84 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %84, ptr %10, align 4, !tbaa !9
  %85 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %85, ptr %11, align 4, !tbaa !9
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.w2c_hermes, ptr %86, i32 0, i32 6
  %88 = load i32, ptr %10, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = add i64 %89, 4
  %91 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %87, i64 noundef %90, i32 noundef %91)
  %92 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %92, ptr %10, align 4, !tbaa !9
  %93 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %93, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %94 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %94, ptr %13, align 4, !tbaa !9
  store i32 33, ptr %14, align 4, !tbaa !9
  %95 = load i32, ptr %13, align 4, !tbaa !9
  %96 = load i32, ptr %14, align 4, !tbaa !9
  %97 = icmp uge i32 %95, %96
  %98 = zext i1 %97 to i32
  store i32 %98, ptr %13, align 4, !tbaa !9
  %99 = load i32, ptr %13, align 4, !tbaa !9
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %103

101:                                              ; preds = %47
  %102 = load i32, ptr %11, align 4, !tbaa !9
  br label %105

103:                                              ; preds = %47
  %104 = load i32, ptr %12, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %103, %101
  %106 = phi i32 [ %102, %101 ], [ %104, %103 ]
  store i32 %106, ptr %11, align 4, !tbaa !9
  store i32 2, ptr %12, align 4, !tbaa !9
  %107 = load i32, ptr %12, align 4, !tbaa !9
  %108 = and i32 %107, 31
  %109 = load i32, ptr %11, align 4, !tbaa !9
  %110 = shl i32 %109, %108
  store i32 %110, ptr %11, align 4, !tbaa !9
  %111 = load i32, ptr %11, align 4, !tbaa !9
  %112 = load i32, ptr %10, align 4, !tbaa !9
  %113 = add i32 %112, %111
  store i32 %113, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.w2c_hermes, ptr %114, i32 0, i32 6
  %116 = load i32, ptr %10, align 4, !tbaa !9
  %117 = zext i32 %116 to i64
  %118 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %115, i64 noundef %117, i32 noundef %118)
  %119 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %119, ptr %10, align 4, !tbaa !9
  store i32 5, ptr %11, align 4, !tbaa !9
  %120 = load i32, ptr %11, align 4, !tbaa !9
  %121 = and i32 %120, 31
  %122 = load i32, ptr %10, align 4, !tbaa !9
  %123 = lshr i32 %122, %121
  store i32 %123, ptr %10, align 4, !tbaa !9
  %124 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %124, ptr %8, align 4, !tbaa !9
  %125 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %125, ptr %10, align 4, !tbaa !9
  store i32 32, ptr %11, align 4, !tbaa !9
  %126 = load i32, ptr %10, align 4, !tbaa !9
  %127 = load i32, ptr %11, align 4, !tbaa !9
  %128 = icmp uge i32 %126, %127
  %129 = zext i1 %128 to i32
  store i32 %129, ptr %10, align 4, !tbaa !9
  %130 = load i32, ptr %10, align 4, !tbaa !9
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %132, label %144

132:                                              ; preds = %105
  %133 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %133, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  %134 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %134, ptr %12, align 4, !tbaa !9
  store i32 2, ptr %13, align 4, !tbaa !9
  %135 = load i32, ptr %13, align 4, !tbaa !9
  %136 = and i32 %135, 31
  %137 = load i32, ptr %12, align 4, !tbaa !9
  %138 = shl i32 %137, %136
  store i32 %138, ptr %12, align 4, !tbaa !9
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = load i32, ptr %10, align 4, !tbaa !9
  %141 = load i32, ptr %11, align 4, !tbaa !9
  %142 = load i32, ptr %12, align 4, !tbaa !9
  %143 = call i32 @w2c_hermes_0x5F_memset(ptr noundef %139, i32 noundef %140, i32 noundef %141, i32 noundef %142)
  store i32 %143, ptr %10, align 4, !tbaa !9
  br label %144

144:                                              ; preds = %132, %105
  %145 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %145, ptr %10, align 4, !tbaa !9
  store i32 -32, ptr %11, align 4, !tbaa !9
  %146 = load i32, ptr %11, align 4, !tbaa !9
  %147 = load i32, ptr %10, align 4, !tbaa !9
  %148 = and i32 %147, %146
  store i32 %148, ptr %10, align 4, !tbaa !9
  %149 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %149, ptr %11, align 4, !tbaa !9
  %150 = load i32, ptr %10, align 4, !tbaa !9
  %151 = load i32, ptr %11, align 4, !tbaa !9
  %152 = icmp eq i32 %150, %151
  %153 = zext i1 %152 to i32
  store i32 %153, ptr %10, align 4, !tbaa !9
  %154 = load i32, ptr %10, align 4, !tbaa !9
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %157

156:                                              ; preds = %144
  br label %196

157:                                              ; preds = %144
  %158 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %158, ptr %10, align 4, !tbaa !9
  %159 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %159, ptr %11, align 4, !tbaa !9
  store i32 2, ptr %12, align 4, !tbaa !9
  %160 = load i32, ptr %12, align 4, !tbaa !9
  %161 = and i32 %160, 31
  %162 = load i32, ptr %11, align 4, !tbaa !9
  %163 = shl i32 %162, %161
  store i32 %163, ptr %11, align 4, !tbaa !9
  %164 = load i32, ptr %11, align 4, !tbaa !9
  %165 = load i32, ptr %10, align 4, !tbaa !9
  %166 = add i32 %165, %164
  store i32 %166, ptr %10, align 4, !tbaa !9
  %167 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %167, ptr %7, align 4, !tbaa !9
  %168 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %168, ptr %11, align 4, !tbaa !9
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.w2c_hermes, ptr %169, i32 0, i32 6
  %171 = load i32, ptr %11, align 4, !tbaa !9
  %172 = zext i32 %171 to i64
  %173 = call i32 @i32_load(ptr noundef %170, i64 noundef %172)
  store i32 %173, ptr %11, align 4, !tbaa !9
  store i32 -1, ptr %12, align 4, !tbaa !9
  store i32 32, ptr %13, align 4, !tbaa !9
  %174 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %174, ptr %14, align 4, !tbaa !9
  store i32 31, ptr %15, align 4, !tbaa !9
  %175 = load i32, ptr %15, align 4, !tbaa !9
  %176 = load i32, ptr %14, align 4, !tbaa !9
  %177 = and i32 %176, %175
  store i32 %177, ptr %14, align 4, !tbaa !9
  %178 = load i32, ptr %14, align 4, !tbaa !9
  %179 = load i32, ptr %13, align 4, !tbaa !9
  %180 = sub i32 %179, %178
  store i32 %180, ptr %13, align 4, !tbaa !9
  %181 = load i32, ptr %13, align 4, !tbaa !9
  %182 = and i32 %181, 31
  %183 = load i32, ptr %12, align 4, !tbaa !9
  %184 = lshr i32 %183, %182
  store i32 %184, ptr %12, align 4, !tbaa !9
  store i32 -1, ptr %13, align 4, !tbaa !9
  %185 = load i32, ptr %13, align 4, !tbaa !9
  %186 = load i32, ptr %12, align 4, !tbaa !9
  %187 = xor i32 %186, %185
  store i32 %187, ptr %12, align 4, !tbaa !9
  %188 = load i32, ptr %12, align 4, !tbaa !9
  %189 = load i32, ptr %11, align 4, !tbaa !9
  %190 = and i32 %189, %188
  store i32 %190, ptr %11, align 4, !tbaa !9
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.w2c_hermes, ptr %191, i32 0, i32 6
  %193 = load i32, ptr %10, align 4, !tbaa !9
  %194 = zext i32 %193 to i64
  %195 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %192, i64 noundef %194, i32 noundef %195)
  br label %196

196:                                              ; preds = %157, %156, %37
  %197 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %197, ptr %10, align 4, !tbaa !9
  br label %200

198:                                              ; preds = %46
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  call void @w2c_hermes_abort(ptr noundef %199)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

200:                                              ; preds = %196
  %201 = load i32, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, 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 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 i32 %201
}

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


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

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

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

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

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

declare void @w2c_hermes_abort(ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cbool0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cbool0x3E0x3E0x3A0x3Avector0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef returned %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %0, i64 40
  %5 = zext i32 %1 to i64
  %6 = add nuw nsw i64 %5, 8
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %6, i32 noundef 0)
  tail call void @i64_store(ptr noundef nonnull %4, i64 noundef %5, i64 noundef 0)
  %.not = icmp eq i32 %2, 0
  br i1 %.not, label %39, label %7

7:                                                ; preds = %3
  %8 = icmp slt i32 %2, 0
  br i1 %8, label %40, label %9

9:                                                ; preds = %7
  %10 = add nsw i32 %2, -1
  %11 = lshr i32 %10, 5
  %12 = add nuw nsw i32 %11, 1
  %13 = shl nuw nsw i32 %12, 2
  %14 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef %13) #4
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %6, i32 noundef %12)
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %5, i32 noundef %14)
  %15 = add nuw nsw i64 %5, 4
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %15, i32 noundef %2)
  %16 = icmp ugt i32 %2, 32
  %17 = shl nuw nsw i32 %11, 2
  %18 = select i1 %16, i32 %17, i32 0
  %19 = add i32 %14, %18
  %20 = zext i32 %19 to i64
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %20, i32 noundef 0)
  %21 = lshr i32 %2, 5
  %22 = icmp ugt i32 %2, 31
  br i1 %22, label %23, label %26

23:                                               ; preds = %9
  %24 = shl nuw nsw i32 %21, 2
  %25 = tail call i32 @w2c_hermes_0x5F_memset(ptr noundef %0, i32 noundef %14, i32 noundef 0, i32 noundef %24) #4
  br label %26

26:                                               ; preds = %23, %9
  %27 = and i32 %2, 31
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %39, label %29

29:                                               ; preds = %26
  %30 = shl nuw nsw i32 %21, 2
  %31 = add i32 %14, %30
  %32 = zext i32 %31 to i64
  %33 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %32)
  %34 = sub nsw i32 0, %2
  %35 = and i32 %34, 31
  %36 = lshr i32 -1, %35
  %37 = xor i32 %36, -1
  %38 = and i32 %33, %37
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %32, i32 noundef %38)
  br label %39

39:                                               ; preds = %26, %3, %29
  ret i32 %1

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


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