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

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

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

37:                                               ; preds = %3
  %38 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %38, ptr %9, align 4, !tbaa !9
  store i32 4, ptr %10, align 4, !tbaa !9
  %39 = load i32, ptr %9, align 4, !tbaa !9
  %40 = load i32, ptr %10, align 4, !tbaa !9
  %41 = icmp eq i32 %39, %40
  %42 = zext i1 %41 to i32
  store i32 %42, ptr %9, align 4, !tbaa !9
  %43 = load i32, ptr %9, align 4, !tbaa !9
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %65

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

56:                                               ; preds = %45
  br label %173

57:                                               ; preds = %45
  %58 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %58, ptr %9, align 4, !tbaa !9
  store i32 3, ptr %10, align 4, !tbaa !9
  %59 = load i32, ptr %9, align 4, !tbaa !9
  %60 = load i32, ptr %10, align 4, !tbaa !9
  %61 = and i32 %60, 31
  %62 = ashr i32 %59, %61
  store i32 %62, ptr %9, align 4, !tbaa !9
  %63 = load i32, ptr %9, align 4, !tbaa !9
  %64 = sitofp i32 %63 to double
  store double %64, ptr %13, align 8, !tbaa !11
  br label %113

65:                                               ; preds = %37
  %66 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %66, ptr %9, align 4, !tbaa !9
  store i32 4, ptr %10, align 4, !tbaa !9
  %67 = load i32, ptr %10, align 4, !tbaa !9
  %68 = load i32, ptr %9, align 4, !tbaa !9
  %69 = and i32 %68, %67
  store i32 %69, ptr %9, align 4, !tbaa !9
  %70 = load i32, ptr %9, align 4, !tbaa !9
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %65
  br label %179

73:                                               ; preds = %65
  %74 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %74, ptr %9, align 4, !tbaa !9
  store i32 -8, ptr %10, align 4, !tbaa !9
  %75 = load i32, ptr %10, align 4, !tbaa !9
  %76 = load i32, ptr %9, align 4, !tbaa !9
  %77 = and i32 %76, %75
  store i32 %77, ptr %9, align 4, !tbaa !9
  %78 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %78, ptr %5, align 4, !tbaa !9
  %79 = load i32, ptr %9, align 4, !tbaa !9
  %80 = icmp ne i32 %79, 0
  %81 = xor i1 %80, true
  %82 = zext i1 %81 to i32
  store i32 %82, ptr %9, align 4, !tbaa !9
  %83 = load i32, ptr %9, align 4, !tbaa !9
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %73
  br label %185

86:                                               ; preds = %73
  %87 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %87, ptr %9, align 4, !tbaa !9
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.w2c_hermes, ptr %88, i32 0, i32 6
  %90 = load i32, ptr %9, align 4, !tbaa !9
  %91 = zext i32 %90 to i64
  %92 = add i64 %91, 3
  %93 = call i32 @i32_load8_u(ptr noundef %89, i64 noundef %92)
  store i32 %93, ptr %9, align 4, !tbaa !9
  store i32 24, ptr %10, align 4, !tbaa !9
  %94 = load i32, ptr %10, align 4, !tbaa !9
  %95 = and i32 %94, 31
  %96 = load i32, ptr %9, align 4, !tbaa !9
  %97 = shl i32 %96, %95
  store i32 %97, ptr %9, align 4, !tbaa !9
  store i32 402653184, ptr %10, align 4, !tbaa !9
  %98 = load i32, ptr %9, align 4, !tbaa !9
  %99 = load i32, ptr %10, align 4, !tbaa !9
  %100 = icmp ne i32 %98, %99
  %101 = zext i1 %100 to i32
  store i32 %101, ptr %9, align 4, !tbaa !9
  %102 = load i32, ptr %9, align 4, !tbaa !9
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %105

104:                                              ; preds = %86
  br label %191

105:                                              ; preds = %86
  %106 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %106, ptr %9, align 4, !tbaa !9
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.w2c_hermes, ptr %107, i32 0, i32 6
  %109 = load i32, ptr %9, align 4, !tbaa !9
  %110 = zext i32 %109 to i64
  %111 = add i64 %110, 16
  %112 = call double @f64_load(ptr noundef %108, i64 noundef %111)
  store double %112, ptr %13, align 8, !tbaa !11
  br label %113

113:                                              ; preds = %105, %57
  %114 = load double, ptr %13, align 8, !tbaa !11
  store double %114, ptr %8, align 8, !tbaa !11
  store double 0x41F0000000000000, ptr %14, align 8, !tbaa !11
  %115 = load double, ptr %13, align 8, !tbaa !11
  %116 = load double, ptr %14, align 8, !tbaa !11
  %117 = fcmp olt double %115, %116
  %118 = zext i1 %117 to i32
  store i32 %118, ptr %9, align 4, !tbaa !9
  %119 = load double, ptr %8, align 8, !tbaa !11
  store double %119, ptr %14, align 8, !tbaa !11
  store double 0.000000e+00, ptr %15, align 8, !tbaa !11
  %120 = load double, ptr %14, align 8, !tbaa !11
  %121 = load double, ptr %15, align 8, !tbaa !11
  %122 = fcmp oge double %120, %121
  %123 = zext i1 %122 to i32
  store i32 %123, ptr %10, align 4, !tbaa !9
  %124 = load i32, ptr %10, align 4, !tbaa !9
  %125 = load i32, ptr %9, align 4, !tbaa !9
  %126 = and i32 %125, %124
  store i32 %126, ptr %9, align 4, !tbaa !9
  %127 = load i32, ptr %9, align 4, !tbaa !9
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %166

129:                                              ; preds = %113
  %130 = load double, ptr %8, align 8, !tbaa !11
  store double %130, ptr %13, align 8, !tbaa !11
  %131 = load double, ptr %13, align 8, !tbaa !11
  %132 = load double, ptr %13, align 8, !tbaa !11
  %133 = fcmp une double %131, %132
  %134 = xor i1 %133, true
  %135 = xor i1 %134, true
  %136 = zext i1 %135 to i32
  %137 = sext i32 %136 to i64
  %138 = call i64 @llvm.expect.i64(i64 %137, i64 0)
  %139 = icmp ne i64 %138, 0
  br i1 %139, label %140, label %142

140:                                              ; preds = %129
  call void @wasm_rt_trap(i32 noundef 4) #7
  unreachable

141:                                              ; No predecessors!
  br label %164

142:                                              ; preds = %129
  %143 = load double, ptr %13, align 8, !tbaa !11
  %144 = fcmp ogt double %143, -1.000000e+00
  br i1 %144, label %145, label %148

145:                                              ; preds = %142
  %146 = load double, ptr %13, align 8, !tbaa !11
  %147 = fcmp olt double %146, 0x41F0000000000000
  br label %148

148:                                              ; preds = %145, %142
  %149 = phi i1 [ false, %142 ], [ %147, %145 ]
  %150 = xor i1 %149, true
  %151 = xor i1 %150, true
  %152 = xor i1 %151, true
  %153 = zext i1 %152 to i32
  %154 = sext i32 %153 to i64
  %155 = call i64 @llvm.expect.i64(i64 %154, i64 0)
  %156 = icmp ne i64 %155, 0
  br i1 %156, label %157, label %159

157:                                              ; preds = %148
  call void @wasm_rt_trap(i32 noundef 2) #7
  unreachable

158:                                              ; No predecessors!
  br label %162

159:                                              ; preds = %148
  %160 = load double, ptr %13, align 8, !tbaa !11
  %161 = fptoui double %160 to i32
  br label %162

162:                                              ; preds = %159, %158
  %163 = phi i32 [ 0, %158 ], [ %161, %159 ]
  br label %164

164:                                              ; preds = %162, %141
  %165 = phi i32 [ 0, %141 ], [ %163, %162 ]
  store i32 %165, ptr %9, align 4, !tbaa !9
  br label %197

166:                                              ; preds = %113
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %197

167:                                              ; preds = %3
  store i32 118304, ptr %9, align 4, !tbaa !9
  store i32 83915, ptr %10, align 4, !tbaa !9
  store i32 91, ptr %11, align 4, !tbaa !9
  store i32 52592, ptr %12, align 4, !tbaa !9
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = load i32, ptr %9, align 4, !tbaa !9
  %170 = load i32, ptr %10, align 4, !tbaa !9
  %171 = load i32, ptr %11, align 4, !tbaa !9
  %172 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %168, i32 noundef %169, i32 noundef %170, i32 noundef %171, i32 noundef %172)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

173:                                              ; preds = %56
  store i32 200204, ptr %9, align 4, !tbaa !9
  store i32 83268, ptr %10, align 4, !tbaa !9
  store i32 283, ptr %11, align 4, !tbaa !9
  store i32 27546, ptr %12, align 4, !tbaa !9
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = load i32, ptr %9, align 4, !tbaa !9
  %176 = load i32, ptr %10, align 4, !tbaa !9
  %177 = load i32, ptr %11, align 4, !tbaa !9
  %178 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %174, i32 noundef %175, i32 noundef %176, i32 noundef %177, i32 noundef %178)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

179:                                              ; preds = %72
  store i32 118273, ptr %9, align 4, !tbaa !9
  store i32 83268, ptr %10, align 4, !tbaa !9
  store i32 385, ptr %11, align 4, !tbaa !9
  store i32 49706, ptr %12, align 4, !tbaa !9
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = load i32, ptr %9, align 4, !tbaa !9
  %182 = load i32, ptr %10, align 4, !tbaa !9
  %183 = load i32, ptr %11, align 4, !tbaa !9
  %184 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %180, i32 noundef %181, i32 noundef %182, i32 noundef %183, i32 noundef %184)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

185:                                              ; preds = %85
  store i32 147142, ptr %9, align 4, !tbaa !9
  store i32 82611, ptr %10, align 4, !tbaa !9
  store i32 106, ptr %11, align 4, !tbaa !9
  store i32 28119, ptr %12, align 4, !tbaa !9
  %186 = load ptr, ptr %4, align 8, !tbaa !5
  %187 = load i32, ptr %9, align 4, !tbaa !9
  %188 = load i32, ptr %10, align 4, !tbaa !9
  %189 = load i32, ptr %11, align 4, !tbaa !9
  %190 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %186, i32 noundef %187, i32 noundef %188, i32 noundef %189, i32 noundef %190)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

191:                                              ; preds = %104
  store i32 205012, ptr %9, align 4, !tbaa !9
  store i32 82611, ptr %10, align 4, !tbaa !9
  store i32 255, ptr %11, align 4, !tbaa !9
  store i32 24720, ptr %12, align 4, !tbaa !9
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = load i32, ptr %9, align 4, !tbaa !9
  %194 = load i32, ptr %10, align 4, !tbaa !9
  %195 = load i32, ptr %11, align 4, !tbaa !9
  %196 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %192, i32 noundef %193, i32 noundef %194, i32 noundef %195, i32 noundef %196)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

197:                                              ; preds = %166, %164
  %198 = load i32, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  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 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  ret i32 %198
}

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 = { 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, !12, i64 0}
!12 = !{!"double", !7, i64 0}


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

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load8_u(ptr noundef, i64 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: inlinehint nounwind uwtable
declare hidden double @f64_load(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSArray0x3A0x3AgetLength0x28hermes0x3A0x3Avm0x3A0x3AJSArray0x20const0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3APointerBase0x260x29(ptr noundef %0, i32 noundef %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, 40
  %7 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %6)
  %8 = and i32 %7, 7
  %9 = add nsw i32 %8, -3
  %10 = icmp ult i32 %9, 2
  br i1 %10, label %11, label %39

11:                                               ; preds = %3
  %12 = icmp eq i32 %8, 4
  br i1 %12, label %13, label %16

13:                                               ; preds = %11
  %14 = ashr i32 %7, 3
  %15 = sitofp i32 %14 to double
  br label %27

16:                                               ; preds = %11
  %17 = and i32 %7, 4
  %.not = icmp eq i32 %17, 0
  br i1 %.not, label %18, label %40

18:                                               ; preds = %16
  %19 = and i32 %7, -8
  %.not88 = icmp eq i32 %19, 0
  br i1 %.not88, label %41, label %20

20:                                               ; preds = %18
  %21 = zext i32 %19 to i64
  %22 = or disjoint i64 %21, 3
  %23 = tail call i32 @i32_load8_u(ptr noundef nonnull %4, i64 noundef %22)
  %.mask = and i32 %23, 255
  %.not89 = icmp eq i32 %.mask, 24
  br i1 %.not89, label %24, label %42

24:                                               ; preds = %20
  %25 = add nuw nsw i64 %21, 16
  %26 = tail call double @f64_load(ptr noundef nonnull %4, i64 noundef %25)
  br label %27

27:                                               ; preds = %24, %13
  %.0 = phi double [ %15, %13 ], [ %26, %24 ]
  %28 = fcmp olt double %.0, 0x41F0000000000000
  %29 = fcmp oge double %.0, 0.000000e+00
  %30 = and i1 %28, %29
  br i1 %30, label %31, label %43

31:                                               ; preds = %27
  %32 = fcmp uno double %.0, 0.000000e+00
  br i1 %32, label %33, label %34, !prof !5

33:                                               ; preds = %31
  tail call void @wasm_rt_trap(i32 noundef 4) #4
  unreachable

34:                                               ; preds = %31
  %35 = fcmp ogt double %.0, -1.000000e+00
  br i1 %35, label %37, label %36, !prof !6

36:                                               ; preds = %34
  tail call void @wasm_rt_trap(i32 noundef 2) #4
  unreachable

37:                                               ; preds = %34
  %38 = fptoui double %.0 to i32
  br label %43

39:                                               ; preds = %3
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 118304, i32 noundef 83915, i32 noundef 91, i32 noundef 52592) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable

40:                                               ; preds = %16
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 118273, i32 noundef 83268, i32 noundef 385, i32 noundef 49706) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable

41:                                               ; preds = %18
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 147142, i32 noundef 82611, i32 noundef 106, i32 noundef 28119) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable

42:                                               ; preds = %20
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 205012, i32 noundef 82611, i32 noundef 255, i32 noundef 24720) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable

43:                                               ; preds = %27, %37
  %.087 = phi i32 [ %38, %37 ], [ 0, %27 ]
  ret i32 %.087
}

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 = { noreturn nounwind }
attributes #5 = { 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 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!6 = !{!"branch_weights", !"expected", i32 2000, i32 1}


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