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

; 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 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: 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 i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef, i32 noundef) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #4

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

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

34:                                               ; preds = %3
  br label %173

35:                                               ; preds = %3
  %36 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %36, ptr %10, align 4, !tbaa !9
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.w2c_hermes, ptr %37, i32 0, i32 6
  %39 = load i32, ptr %10, align 4, !tbaa !9
  %40 = zext i32 %39 to i64
  %41 = add i64 %40, 144
  %42 = call i32 @i32_load(ptr noundef %38, i64 noundef %41)
  store i32 %42, ptr %10, align 4, !tbaa !9
  %43 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %43, ptr %9, align 4, !tbaa !9
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.w2c_hermes, ptr %44, i32 0, i32 6
  %46 = load i32, ptr %10, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = add i64 %47, 8
  %49 = call i32 @i32_load(ptr noundef %45, i64 noundef %48)
  store i32 %49, ptr %10, align 4, !tbaa !9
  %50 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %50, ptr %8, align 4, !tbaa !9
  %51 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %51, ptr %10, align 4, !tbaa !9
  store i32 99, ptr %11, align 4, !tbaa !9
  %52 = load i32, ptr %10, align 4, !tbaa !9
  %53 = load i32, ptr %11, align 4, !tbaa !9
  %54 = icmp ule i32 %52, %53
  %55 = zext i1 %54 to i32
  store i32 %55, ptr %10, align 4, !tbaa !9
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %87

58:                                               ; preds = %35
  %59 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %59, ptr %10, align 4, !tbaa !9
  %60 = load i32, ptr %10, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  store i64 %61, ptr %13, align 8, !tbaa !17
  %62 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %62, ptr %11, align 4, !tbaa !9
  %63 = load i32, ptr %11, align 4, !tbaa !9
  %64 = zext i32 %63 to i64
  store i64 %64, ptr %14, align 8, !tbaa !17
  %65 = load i64, ptr %14, align 8, !tbaa !17
  %66 = load i64, ptr %13, align 8, !tbaa !17
  %67 = mul i64 %66, %65
  store i64 %67, ptr %13, align 8, !tbaa !17
  store i64 100, ptr %14, align 8, !tbaa !17
  %68 = load i64, ptr %14, align 8, !tbaa !17
  %69 = icmp eq i64 %68, 0
  %70 = xor i1 %69, true
  %71 = xor i1 %70, true
  %72 = zext i1 %71 to i32
  %73 = sext i32 %72 to i64
  %74 = call i64 @llvm.expect.i64(i64 %73, i64 0)
  %75 = icmp ne i64 %74, 0
  br i1 %75, label %76, label %78

76:                                               ; preds = %58
  call void @wasm_rt_trap(i32 noundef 3) #7
  unreachable

77:                                               ; No predecessors!
  br label %82

78:                                               ; preds = %58
  %79 = load i64, ptr %13, align 8, !tbaa !17
  %80 = load i64, ptr %14, align 8, !tbaa !17
  %81 = udiv i64 %79, %80
  br label %82

82:                                               ; preds = %78, %77
  %83 = phi i64 [ 0, %77 ], [ %81, %78 ]
  store i64 %83, ptr %13, align 8, !tbaa !17
  %84 = load i64, ptr %13, align 8, !tbaa !17
  %85 = trunc i64 %84 to i32
  store i32 %85, ptr %10, align 4, !tbaa !9
  %86 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %86, ptr %8, align 4, !tbaa !9
  br label %87

87:                                               ; preds = %82, %35
  %88 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %88, ptr %10, align 4, !tbaa !9
  %89 = load i32, ptr %10, align 4, !tbaa !9
  %90 = icmp ne i32 %89, 0
  %91 = xor i1 %90, true
  %92 = zext i1 %91 to i32
  store i32 %92, ptr %10, align 4, !tbaa !9
  %93 = load i32, ptr %10, align 4, !tbaa !9
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %96

95:                                               ; preds = %87
  br label %173

96:                                               ; preds = %87
  %97 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %97, ptr %10, align 4, !tbaa !9
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.w2c_hermes, ptr %98, i32 0, i32 6
  %100 = load i32, ptr %10, align 4, !tbaa !9
  %101 = zext i32 %100 to i64
  %102 = add i64 %101, 4
  %103 = call i32 @i32_load(ptr noundef %99, i64 noundef %102)
  store i32 %103, ptr %10, align 4, !tbaa !9
  %104 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %104, ptr %9, align 4, !tbaa !9
  store i32 4, ptr %10, align 4, !tbaa !9
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = load i32, ptr %10, align 4, !tbaa !9
  %107 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %105, i32 noundef %106)
  store i32 %107, ptr %10, align 4, !tbaa !9
  %108 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %108, ptr %7, align 4, !tbaa !9
  store i32 24, ptr %10, align 4, !tbaa !9
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = load i32, ptr %10, align 4, !tbaa !9
  %111 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %109, i32 noundef %110)
  store i32 %111, ptr %10, align 4, !tbaa !9
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = load i32, ptr %10, align 4, !tbaa !9
  %114 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Fassoc_sub_state0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fhidden_allocator0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Fassoc_sub_state0x2A0x3E0x3E0x3A0x3Avector0x5Babi0x3Av150070x5D0x280x29(ptr noundef %112, i32 noundef %113)
  store i32 %114, ptr %10, align 4, !tbaa !9
  %115 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %115, ptr %6, align 4, !tbaa !9
  store i32 12, ptr %11, align 4, !tbaa !9
  %116 = load i32, ptr %11, align 4, !tbaa !9
  %117 = load i32, ptr %10, align 4, !tbaa !9
  %118 = add i32 %117, %116
  store i32 %118, ptr %10, align 4, !tbaa !9
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = load i32, ptr %10, align 4, !tbaa !9
  %121 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Fassoc_sub_state0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fhidden_allocator0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Fassoc_sub_state0x2A0x3E0x3E0x3A0x3Avector0x5Babi0x3Av150070x5D0x280x29(ptr noundef %119, i32 noundef %120)
  store i32 %121, ptr %10, align 4, !tbaa !9
  %122 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %122, ptr %10, align 4, !tbaa !9
  %123 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %123, ptr %11, align 4, !tbaa !9
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.w2c_hermes, ptr %124, i32 0, i32 6
  %126 = load i32, ptr %10, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %125, i64 noundef %127, i32 noundef %128)
  store i32 20, ptr %10, align 4, !tbaa !9
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = load i32, ptr %10, align 4, !tbaa !9
  %131 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %129, i32 noundef %130)
  store i32 %131, ptr %10, align 4, !tbaa !9
  %132 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %132, ptr %6, align 4, !tbaa !9
  %133 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %133, ptr %11, align 4, !tbaa !9
  store i32 180, ptr %12, align 4, !tbaa !9
  %134 = load i32, ptr %12, align 4, !tbaa !9
  %135 = load i32, ptr %11, align 4, !tbaa !9
  %136 = add i32 %135, %134
  store i32 %136, ptr %11, align 4, !tbaa !9
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.w2c_hermes, ptr %137, i32 0, i32 6
  %139 = load i32, ptr %10, align 4, !tbaa !9
  %140 = zext i32 %139 to i64
  %141 = add i64 %140, 16
  %142 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %138, i64 noundef %141, i32 noundef %142)
  %143 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %143, ptr %10, align 4, !tbaa !9
  %144 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %144, ptr %11, align 4, !tbaa !9
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.w2c_hermes, ptr %145, i32 0, i32 6
  %147 = load i32, ptr %10, align 4, !tbaa !9
  %148 = zext i32 %147 to i64
  %149 = add i64 %148, 12
  %150 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %146, i64 noundef %149, i32 noundef %150)
  %151 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %151, ptr %10, align 4, !tbaa !9
  %152 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %152, ptr %11, align 4, !tbaa !9
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.w2c_hermes, ptr %153, i32 0, i32 6
  %155 = load i32, ptr %10, align 4, !tbaa !9
  %156 = zext i32 %155 to i64
  %157 = add i64 %156, 8
  %158 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %154, i64 noundef %157, i32 noundef %158)
  %159 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %159, ptr %10, align 4, !tbaa !9
  store i32 103, ptr %11, align 4, !tbaa !9
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.w2c_hermes, ptr %160, i32 0, i32 6
  %162 = load i32, ptr %10, align 4, !tbaa !9
  %163 = zext i32 %162 to i64
  %164 = add i64 %163, 4
  %165 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %161, i64 noundef %164, i32 noundef %165)
  %166 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %166, ptr %10, align 4, !tbaa !9
  %167 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %167, ptr %11, align 4, !tbaa !9
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.w2c_hermes, ptr %168, i32 0, i32 6
  %170 = load i32, ptr %10, align 4, !tbaa !9
  %171 = zext i32 %170 to i64
  %172 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %169, i64 noundef %171, i32 noundef %172)
  br label %181

173:                                              ; preds = %95, %34
  %174 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %174, ptr %10, align 4, !tbaa !9
  store i32 16, ptr %11, align 4, !tbaa !9
  %175 = load i32, ptr %11, align 4, !tbaa !9
  %176 = load i32, ptr %10, align 4, !tbaa !9
  %177 = add i32 %176, %175
  store i32 %177, ptr %10, align 4, !tbaa !9
  %178 = load i32, ptr %10, align 4, !tbaa !9
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.w2c_hermes, ptr %179, i32 0, i32 3
  store i32 %178, ptr %180, align 8, !tbaa !11
  br label %185

181:                                              ; preds = %96
  store i32 6, ptr %10, align 4, !tbaa !9
  store i32 54570, ptr %11, align 4, !tbaa !9
  %182 = load ptr, ptr %4, align 8, !tbaa !5
  %183 = load i32, ptr %10, align 4, !tbaa !9
  %184 = load i32, ptr %11, align 4, !tbaa !9
  call void @w2c_hermes_abort_message(ptr noundef %182, i32 noundef %183, i32 noundef %184)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

185:                                              ; preds = %173
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  ret void
}

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

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

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 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { 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}
!17 = !{!14, !14, 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_operator0x20new0x28unsigned0x20long0x29(ptr noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ABCProviderFromBuffer0x3A0x3AstartWarmup0x28unsigned0x20char0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = add i32 %5, -16
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = zext i32 %1 to i64
  %9 = add nuw nsw i64 %8, 176
  %10 = tail call i32 @i32_load8_u(ptr noundef nonnull %7, i64 noundef %9)
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %11, label %41

11:                                               ; preds = %3
  %12 = add nuw nsw i64 %8, 144
  %13 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %12)
  %14 = zext i32 %13 to i64
  %15 = add nuw nsw i64 %14, 8
  %16 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %15)
  %17 = icmp ult i32 %2, 100
  br i1 %17, label %18, label %24

18:                                               ; preds = %11
  %19 = zext i32 %16 to i64
  %20 = zext nneg i32 %2 to i64
  %21 = mul nuw nsw i64 %19, %20
  %22 = udiv i64 %21, 100
  %23 = trunc nuw i64 %22 to i32
  br label %24

24:                                               ; preds = %18, %11
  %.0 = phi i32 [ %23, %18 ], [ %16, %11 ]
  %.not92 = icmp eq i32 %.0, 0
  br i1 %.not92, label %41, label %25

25:                                               ; preds = %24
  %26 = add nuw nsw i64 %14, 4
  %27 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %26)
  %28 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef 4) #4
  %29 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef 24) #4
  %30 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Fassoc_sub_state0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fhidden_allocator0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Fassoc_sub_state0x2A0x3E0x3E0x3A0x3Avector0x5Babi0x3Av150070x5D0x280x29(ptr noundef nonnull %0, i32 noundef %29) #4
  %31 = add i32 %30, 12
  %32 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Fassoc_sub_state0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fhidden_allocator0x3Cstd0x3A0x3A_0x5F20x3A0x3A_0x5Fassoc_sub_state0x2A0x3E0x3E0x3A0x3Avector0x5Babi0x3Av150070x5D0x280x29(ptr noundef nonnull %0, i32 noundef %31) #4
  %33 = zext i32 %28 to i64
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %33, i32 noundef %30)
  %34 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef 20) #4
  %35 = add i32 %1, 180
  %36 = zext i32 %34 to i64
  %37 = add nuw nsw i64 %36, 16
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %37, i32 noundef %35)
  %38 = add nuw nsw i64 %36, 12
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %38, i32 noundef %.0)
  %39 = add nuw nsw i64 %36, 8
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %39, i32 noundef %27)
  %40 = add nuw nsw i64 %36, 4
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %40, i32 noundef 103)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %36, i32 noundef %28)
  tail call void @w2c_hermes_abort_message(ptr noundef nonnull %0, i32 noundef 6, i32 noundef 54570) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

41:                                               ; preds = %24, %3
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret void
}

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

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

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