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

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

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

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

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

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

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

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

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 void @i64_store(ptr noundef, i64 noundef, i64 noundef) #1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_llvh0x3A0x3AAPInt0x3A0x3Azext0x28unsigned0x20int0x290x20const(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
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  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
  store i32 0, ptr %11, align 4, !tbaa !9
  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 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, 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
  %20 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %20, ptr %12, align 4, !tbaa !9
  %21 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %21, ptr %13, align 4, !tbaa !9
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.w2c_hermes, ptr %22, i32 0, i32 6
  %24 = load i32, ptr %13, align 4, !tbaa !9
  %25 = zext i32 %24 to i64
  %26 = add i64 %25, 8
  %27 = call i32 @i32_load(ptr noundef %23, i64 noundef %26)
  store i32 %27, ptr %13, align 4, !tbaa !9
  %28 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %28, ptr %9, align 4, !tbaa !9
  %29 = load i32, ptr %12, align 4, !tbaa !9
  %30 = load i32, ptr %13, align 4, !tbaa !9
  %31 = icmp ugt i32 %29, %30
  %32 = zext i1 %31 to i32
  store i32 %32, ptr %12, align 4, !tbaa !9
  %33 = load i32, ptr %12, align 4, !tbaa !9
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %178

35:                                               ; preds = %4
  %36 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %36, ptr %12, align 4, !tbaa !9
  store i32 64, ptr %13, align 4, !tbaa !9
  %37 = load i32, ptr %12, align 4, !tbaa !9
  %38 = load i32, ptr %13, align 4, !tbaa !9
  %39 = icmp ule i32 %37, %38
  %40 = zext i1 %39 to i32
  store i32 %40, ptr %12, align 4, !tbaa !9
  %41 = load i32, ptr %12, align 4, !tbaa !9
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %43, label %80

43:                                               ; preds = %35
  %44 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %44, ptr %12, align 4, !tbaa !9
  %45 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %45, ptr %13, align 4, !tbaa !9
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.w2c_hermes, ptr %46, i32 0, i32 6
  %48 = load i32, ptr %13, align 4, !tbaa !9
  %49 = zext i32 %48 to i64
  %50 = call i64 @i64_load(ptr noundef %47, i64 noundef %49)
  store i64 %50, ptr %17, align 8, !tbaa !11
  store i64 -1, ptr %18, align 8, !tbaa !11
  store i32 0, ptr %15, align 4, !tbaa !9
  %51 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %51, ptr %16, align 4, !tbaa !9
  %52 = load i32, ptr %16, align 4, !tbaa !9
  %53 = load i32, ptr %15, align 4, !tbaa !9
  %54 = sub i32 %53, %52
  store i32 %54, ptr %15, align 4, !tbaa !9
  store i32 63, ptr %16, align 4, !tbaa !9
  %55 = load i32, ptr %16, align 4, !tbaa !9
  %56 = load i32, ptr %15, align 4, !tbaa !9
  %57 = and i32 %56, %55
  store i32 %57, ptr %15, align 4, !tbaa !9
  %58 = load i32, ptr %15, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  store i64 %59, ptr %19, align 8, !tbaa !11
  %60 = load i64, ptr %19, align 8, !tbaa !11
  %61 = and i64 %60, 63
  %62 = load i64, ptr %18, align 8, !tbaa !11
  %63 = lshr i64 %62, %61
  store i64 %63, ptr %18, align 8, !tbaa !11
  %64 = load i64, ptr %18, align 8, !tbaa !11
  %65 = load i64, ptr %17, align 8, !tbaa !11
  %66 = and i64 %65, %64
  store i64 %66, ptr %17, align 8, !tbaa !11
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.w2c_hermes, ptr %67, i32 0, i32 6
  %69 = load i32, ptr %12, align 4, !tbaa !9
  %70 = zext i32 %69 to i64
  %71 = load i64, ptr %17, align 8, !tbaa !11
  call void @i64_store(ptr noundef %68, i64 noundef %70, i64 noundef %71)
  %72 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %72, ptr %12, align 4, !tbaa !9
  %73 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %73, ptr %13, align 4, !tbaa !9
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.w2c_hermes, ptr %74, i32 0, i32 6
  %76 = load i32, ptr %12, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = add i64 %77, 8
  %79 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %75, i64 noundef %78, i32 noundef %79)
  br label %196

80:                                               ; preds = %35
  %81 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %81, ptr %12, align 4, !tbaa !9
  %82 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %82, ptr %13, align 4, !tbaa !9
  %83 = load i32, ptr %13, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  store i64 %84, ptr %17, align 8, !tbaa !11
  store i64 63, ptr %18, align 8, !tbaa !11
  %85 = load i64, ptr %18, align 8, !tbaa !11
  %86 = load i64, ptr %17, align 8, !tbaa !11
  %87 = add i64 %86, %85
  store i64 %87, ptr %17, align 8, !tbaa !11
  store i64 6, ptr %18, align 8, !tbaa !11
  %88 = load i64, ptr %18, align 8, !tbaa !11
  %89 = and i64 %88, 63
  %90 = load i64, ptr %17, align 8, !tbaa !11
  %91 = lshr i64 %90, %89
  store i64 %91, ptr %17, align 8, !tbaa !11
  %92 = load i64, ptr %17, align 8, !tbaa !11
  %93 = trunc i64 %92 to i32
  store i32 %93, ptr %13, align 4, !tbaa !9
  %94 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %94, ptr %10, align 4, !tbaa !9
  store i32 3, ptr %14, align 4, !tbaa !9
  %95 = load i32, ptr %14, align 4, !tbaa !9
  %96 = and i32 %95, 31
  %97 = load i32, ptr %13, align 4, !tbaa !9
  %98 = shl i32 %97, %96
  store i32 %98, ptr %13, align 4, !tbaa !9
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = load i32, ptr %13, align 4, !tbaa !9
  %101 = call i32 @w2c_hermes_operator0x20new0x5B0x5D0x28unsigned0x20long0x29(ptr noundef %99, i32 noundef %100)
  store i32 %101, ptr %13, align 4, !tbaa !9
  %102 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %102, ptr %11, 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 %12, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %104, i64 noundef %106, i32 noundef %107)
  %108 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %108, ptr %12, align 4, !tbaa !9
  %109 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %109, ptr %13, align 4, !tbaa !9
  %110 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %110, ptr %14, align 4, !tbaa !9
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.w2c_hermes, ptr %111, i32 0, i32 6
  %113 = load i32, ptr %14, align 4, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = call i32 @i32_load(ptr noundef %112, i64 noundef %114)
  store i32 %115, ptr %14, align 4, !tbaa !9
  %116 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %116, ptr %15, align 4, !tbaa !9
  store i32 65, ptr %16, align 4, !tbaa !9
  %117 = load i32, ptr %15, align 4, !tbaa !9
  %118 = load i32, ptr %16, align 4, !tbaa !9
  %119 = icmp ult i32 %117, %118
  %120 = zext i1 %119 to i32
  store i32 %120, ptr %15, align 4, !tbaa !9
  %121 = load i32, ptr %15, align 4, !tbaa !9
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %125

123:                                              ; preds = %80
  %124 = load i32, ptr %13, align 4, !tbaa !9
  br label %127

125:                                              ; preds = %80
  %126 = load i32, ptr %14, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %125, %123
  %128 = phi i32 [ %124, %123 ], [ %126, %125 ]
  store i32 %128, ptr %13, align 4, !tbaa !9
  %129 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %129, ptr %14, align 4, !tbaa !9
  %130 = load i32, ptr %14, align 4, !tbaa !9
  %131 = zext i32 %130 to i64
  store i64 %131, ptr %18, align 8, !tbaa !11
  store i64 63, ptr %19, align 8, !tbaa !11
  %132 = load i64, ptr %19, align 8, !tbaa !11
  %133 = load i64, ptr %18, align 8, !tbaa !11
  %134 = add i64 %133, %132
  store i64 %134, ptr %18, align 8, !tbaa !11
  store i64 6, ptr %19, align 8, !tbaa !11
  %135 = load i64, ptr %19, align 8, !tbaa !11
  %136 = and i64 %135, 63
  %137 = load i64, ptr %18, align 8, !tbaa !11
  %138 = lshr i64 %137, %136
  store i64 %138, ptr %18, align 8, !tbaa !11
  %139 = load i64, ptr %18, align 8, !tbaa !11
  %140 = trunc i64 %139 to i32
  store i32 %140, ptr %14, align 4, !tbaa !9
  %141 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %141, ptr %7, align 4, !tbaa !9
  store i32 3, ptr %15, align 4, !tbaa !9
  %142 = load i32, ptr %15, align 4, !tbaa !9
  %143 = and i32 %142, 31
  %144 = load i32, ptr %14, align 4, !tbaa !9
  %145 = shl i32 %144, %143
  store i32 %145, ptr %14, align 4, !tbaa !9
  %146 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %146, ptr %9, align 4, !tbaa !9
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = load i32, ptr %12, align 4, !tbaa !9
  %149 = load i32, ptr %13, align 4, !tbaa !9
  %150 = load i32, ptr %14, align 4, !tbaa !9
  %151 = call i32 @w2c_hermes_0x5F_memcpy(ptr noundef %147, i32 noundef %148, i32 noundef %149, i32 noundef %150)
  store i32 %151, ptr %12, align 4, !tbaa !9
  %152 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %152, ptr %13, align 4, !tbaa !9
  %153 = load i32, ptr %13, align 4, !tbaa !9
  %154 = load i32, ptr %12, align 4, !tbaa !9
  %155 = add i32 %154, %153
  store i32 %155, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %156 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %156, ptr %14, align 4, !tbaa !9
  %157 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %157, ptr %15, align 4, !tbaa !9
  %158 = load i32, ptr %15, align 4, !tbaa !9
  %159 = load i32, ptr %14, align 4, !tbaa !9
  %160 = sub i32 %159, %158
  store i32 %160, ptr %14, align 4, !tbaa !9
  store i32 3, ptr %15, align 4, !tbaa !9
  %161 = load i32, ptr %15, align 4, !tbaa !9
  %162 = and i32 %161, 31
  %163 = load i32, ptr %14, align 4, !tbaa !9
  %164 = shl i32 %163, %162
  store i32 %164, ptr %14, align 4, !tbaa !9
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  %166 = load i32, ptr %12, align 4, !tbaa !9
  %167 = load i32, ptr %13, align 4, !tbaa !9
  %168 = load i32, ptr %14, align 4, !tbaa !9
  %169 = call i32 @w2c_hermes_0x5F_memset(ptr noundef %165, i32 noundef %166, i32 noundef %167, i32 noundef %168)
  store i32 %169, ptr %12, align 4, !tbaa !9
  %170 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %170, ptr %12, align 4, !tbaa !9
  %171 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %171, ptr %13, align 4, !tbaa !9
  %172 = load ptr, ptr %5, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.w2c_hermes, ptr %172, i32 0, i32 6
  %174 = load i32, ptr %12, align 4, !tbaa !9
  %175 = zext i32 %174 to i64
  %176 = add i64 %175, 8
  %177 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %173, i64 noundef %176, i32 noundef %177)
  br label %196

178:                                              ; preds = %4
  store i32 0, ptr %12, align 4, !tbaa !9
  %179 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %179, ptr %8, align 4, !tbaa !9
  store i32 129713, ptr %13, align 4, !tbaa !9
  %180 = load i32, ptr %13, align 4, !tbaa !9
  %181 = load i32, ptr %12, align 4, !tbaa !9
  %182 = add i32 %181, %180
  store i32 %182, ptr %12, align 4, !tbaa !9
  %183 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %183, ptr %13, align 4, !tbaa !9
  store i32 54858, ptr %14, align 4, !tbaa !9
  %184 = load i32, ptr %14, align 4, !tbaa !9
  %185 = load i32, ptr %13, align 4, !tbaa !9
  %186 = add i32 %185, %184
  store i32 %186, ptr %13, align 4, !tbaa !9
  store i32 859, ptr %14, align 4, !tbaa !9
  %187 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %187, ptr %15, align 4, !tbaa !9
  store i32 21813, ptr %16, align 4, !tbaa !9
  %188 = load i32, ptr %16, align 4, !tbaa !9
  %189 = load i32, ptr %15, align 4, !tbaa !9
  %190 = add i32 %189, %188
  store i32 %190, ptr %15, align 4, !tbaa !9
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = load i32, ptr %12, align 4, !tbaa !9
  %193 = load i32, ptr %13, align 4, !tbaa !9
  %194 = load i32, ptr %14, align 4, !tbaa !9
  %195 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %191, i32 noundef %192, i32 noundef %193, i32 noundef %194, i32 noundef %195)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

196:                                              ; preds = %127, %43
  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 8, 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 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 void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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 void @i32_store(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: noreturn
declare void @wasm_rt_trap(i32 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 void @i64_store(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

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

declare i32 @w2c_hermes_0x5F_memset(ptr 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 #0

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_llvh0x3A0x3AAPInt0x3A0x3Azext0x28unsigned0x20int0x290x20const(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = zext i32 %2 to i64
  %7 = add nuw nsw i64 %6, 8
  %8 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %7)
  %9 = icmp ult i32 %8, %3
  br i1 %9, label %10, label %40

10:                                               ; preds = %4
  %11 = icmp ult i32 %3, 65
  %12 = zext i32 %1 to i64
  br i1 %11, label %13, label %20

13:                                               ; preds = %10
  %14 = tail call i64 @i64_load(ptr noundef nonnull %5, i64 noundef %6)
  %15 = sub nsw i32 0, %3
  %16 = and i32 %15, 63
  %17 = zext nneg i32 %16 to i64
  %18 = lshr i64 -1, %17
  %19 = and i64 %14, %18
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %12, i64 noundef %19)
  br label %41

20:                                               ; preds = %10
  %21 = zext i32 %3 to i64
  %22 = add nuw nsw i64 %21, 63
  %23 = lshr i64 %22, 6
  %24 = trunc nuw nsw i64 %23 to i32
  %25 = shl nuw nsw i32 %24, 3
  %26 = tail call i32 @w2c_hermes_operator0x20new0x5B0x5D0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef %25) #4
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %12, i32 noundef %26)
  %27 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %6)
  %28 = icmp ult i32 %8, 65
  %29 = select i1 %28, i32 %2, i32 %27
  %30 = zext i32 %8 to i64
  %31 = add nuw nsw i64 %30, 63
  %32 = lshr i64 %31, 6
  %33 = trunc nuw nsw i64 %32 to i32
  %34 = shl nuw nsw i32 %33, 3
  %35 = tail call i32 @w2c_hermes_0x5F_memcpy(ptr noundef %0, i32 noundef %26, i32 noundef %29, i32 noundef %34) #4
  %36 = add i32 %35, %34
  %37 = sub nsw i32 %24, %33
  %38 = shl nsw i32 %37, 3
  %39 = tail call i32 @w2c_hermes_0x5F_memset(ptr noundef %0, i32 noundef %36, i32 noundef 0, i32 noundef %38) #4
  br label %41

40:                                               ; preds = %4
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 129713, i32 noundef 54858, i32 noundef 859, i32 noundef 21813) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

41:                                               ; preds = %20, %13
  %42 = add nuw nsw i64 %12, 8
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %42, i32 noundef %3)
  ret void
}

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

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

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


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