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

; 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: noreturn
declare void @wasm_rt_trap(i32 noundef) #1

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_reinterpret_f64(double noundef) #3

; Function Attrs: nounwind uwtable
declare hidden double @wasm_fabs(double noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @f64_load(ptr noundef, i64 noundef) #3

declare i32 @w2c_hermes_hermes0x3A0x3AInstruction0x3A0x3AgetOperand0x28unsigned0x20int0x290x20const(ptr noundef, i32 noundef, i32 noundef) #5

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3ACallBuiltinInst0x3A0x3AgetBuiltinIndex0x280x290x20const(ptr noundef %0, i32 noundef %1) #4 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca double, 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 i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store double 0.000000e+00, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  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 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, 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 %4, align 4, !tbaa !9
  store i32 %16, ptr %6, align 4, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !9
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = load i32, ptr %6, align 4, !tbaa !9
  %19 = load i32, ptr %7, align 4, !tbaa !9
  %20 = call i32 @w2c_hermes_hermes0x3A0x3AInstruction0x3A0x3AgetOperand0x28unsigned0x20int0x290x20const(ptr noundef %17, i32 noundef %18, i32 noundef %19)
  store i32 %20, ptr %6, align 4, !tbaa !9
  %21 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %21, ptr %4, align 4, !tbaa !9
  %22 = load i32, ptr %6, align 4, !tbaa !9
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %159

24:                                               ; preds = %2
  %25 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %25, ptr %6, align 4, !tbaa !9
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.w2c_hermes, ptr %26, i32 0, i32 6
  %28 = load i32, ptr %6, align 4, !tbaa !9
  %29 = zext i32 %28 to i64
  %30 = call i32 @i32_load8_u(ptr noundef %27, i64 noundef %29)
  store i32 %30, ptr %6, align 4, !tbaa !9
  store i32 114, ptr %7, align 4, !tbaa !9
  %31 = load i32, ptr %6, align 4, !tbaa !9
  %32 = load i32, ptr %7, align 4, !tbaa !9
  %33 = icmp ne i32 %31, %32
  %34 = zext i1 %33 to i32
  store i32 %34, ptr %6, align 4, !tbaa !9
  %35 = load i32, ptr %6, align 4, !tbaa !9
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %38

37:                                               ; preds = %24
  br label %177

38:                                               ; preds = %24
  %39 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %39, ptr %6, align 4, !tbaa !9
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.w2c_hermes, ptr %40, i32 0, i32 6
  %42 = load i32, ptr %6, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = add i64 %43, 32
  %45 = call double @f64_load(ptr noundef %41, i64 noundef %44)
  store double %45, ptr %13, align 8, !tbaa !11
  %46 = load double, ptr %13, align 8, !tbaa !11
  store double %46, ptr %5, align 8, !tbaa !11
  %47 = load double, ptr %5, align 8, !tbaa !11
  store double %47, ptr %14, align 8, !tbaa !11
  %48 = load double, ptr %13, align 8, !tbaa !11
  %49 = load double, ptr %14, align 8, !tbaa !11
  %50 = fcmp une double %48, %49
  %51 = zext i1 %50 to i32
  store i32 %51, ptr %6, align 4, !tbaa !9
  %52 = load i32, ptr %6, align 4, !tbaa !9
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %55

54:                                               ; preds = %38
  br label %195

55:                                               ; preds = %38
  %56 = load double, ptr %5, align 8, !tbaa !11
  store double %56, ptr %13, align 8, !tbaa !11
  store double 0x41DFFFFFFFC00000, ptr %14, align 8, !tbaa !11
  %57 = load double, ptr %13, align 8, !tbaa !11
  %58 = load double, ptr %14, align 8, !tbaa !11
  %59 = fcmp ogt double %57, %58
  %60 = zext i1 %59 to i32
  store i32 %60, ptr %6, align 4, !tbaa !9
  %61 = load i32, ptr %6, align 4, !tbaa !9
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %64

63:                                               ; preds = %55
  br label %195

64:                                               ; preds = %55
  %65 = load double, ptr %5, align 8, !tbaa !11
  store double %65, ptr %13, align 8, !tbaa !11
  store double 0xC1E0000000000000, ptr %14, align 8, !tbaa !11
  %66 = load double, ptr %13, align 8, !tbaa !11
  %67 = load double, ptr %14, align 8, !tbaa !11
  %68 = fcmp olt double %66, %67
  %69 = zext i1 %68 to i32
  store i32 %69, ptr %6, align 4, !tbaa !9
  %70 = load i32, ptr %6, align 4, !tbaa !9
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %64
  br label %195

73:                                               ; preds = %64
  %74 = load double, ptr %5, align 8, !tbaa !11
  store double %74, ptr %13, align 8, !tbaa !11
  %75 = load double, ptr %5, align 8, !tbaa !11
  store double %75, ptr %14, align 8, !tbaa !11
  %76 = load double, ptr %14, align 8, !tbaa !11
  %77 = call double @wasm_fabs(double noundef %76)
  store double %77, ptr %14, align 8, !tbaa !11
  store double 0x41E0000000000000, ptr %15, align 8, !tbaa !11
  %78 = load double, ptr %14, align 8, !tbaa !11
  %79 = load double, ptr %15, align 8, !tbaa !11
  %80 = fcmp olt double %78, %79
  %81 = zext i1 %80 to i32
  store i32 %81, ptr %7, align 4, !tbaa !9
  %82 = load i32, ptr %7, align 4, !tbaa !9
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %121

84:                                               ; preds = %73
  %85 = load double, ptr %5, align 8, !tbaa !11
  store double %85, ptr %14, align 8, !tbaa !11
  %86 = load double, ptr %14, align 8, !tbaa !11
  %87 = load double, ptr %14, align 8, !tbaa !11
  %88 = fcmp une double %86, %87
  %89 = xor i1 %88, true
  %90 = xor i1 %89, true
  %91 = zext i1 %90 to i32
  %92 = sext i32 %91 to i64
  %93 = call i64 @llvm.expect.i64(i64 %92, i64 0)
  %94 = icmp ne i64 %93, 0
  br i1 %94, label %95, label %97

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

96:                                               ; No predecessors!
  br label %119

97:                                               ; preds = %84
  %98 = load double, ptr %14, align 8, !tbaa !11
  %99 = fcmp ogt double %98, 0xC1E0000000200000
  br i1 %99, label %100, label %103

100:                                              ; preds = %97
  %101 = load double, ptr %14, align 8, !tbaa !11
  %102 = fcmp olt double %101, 0x41E0000000000000
  br label %103

103:                                              ; preds = %100, %97
  %104 = phi i1 [ false, %97 ], [ %102, %100 ]
  %105 = xor i1 %104, true
  %106 = xor i1 %105, true
  %107 = xor i1 %106, true
  %108 = zext i1 %107 to i32
  %109 = sext i32 %108 to i64
  %110 = call i64 @llvm.expect.i64(i64 %109, i64 0)
  %111 = icmp ne i64 %110, 0
  br i1 %111, label %112, label %114

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

113:                                              ; No predecessors!
  br label %117

114:                                              ; preds = %103
  %115 = load double, ptr %14, align 8, !tbaa !11
  %116 = fptosi double %115 to i32
  br label %117

117:                                              ; preds = %114, %113
  %118 = phi i32 [ 0, %113 ], [ %116, %114 ]
  br label %119

119:                                              ; preds = %117, %96
  %120 = phi i32 [ 0, %96 ], [ %118, %117 ]
  store i32 %120, ptr %7, align 4, !tbaa !9
  br label %122

121:                                              ; preds = %73
  store i32 -2147483648, ptr %7, align 4, !tbaa !9
  br label %122

122:                                              ; preds = %121, %119
  %123 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %123, ptr %4, align 4, !tbaa !9
  %124 = load i32, ptr %7, align 4, !tbaa !9
  %125 = sitofp i32 %124 to double
  store double %125, ptr %14, align 8, !tbaa !11
  %126 = load double, ptr %13, align 8, !tbaa !11
  %127 = load double, ptr %14, align 8, !tbaa !11
  %128 = fcmp une double %126, %127
  %129 = zext i1 %128 to i32
  store i32 %129, ptr %6, align 4, !tbaa !9
  %130 = load i32, ptr %6, align 4, !tbaa !9
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %132, label %133

132:                                              ; preds = %122
  br label %195

133:                                              ; preds = %122
  %134 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %134, ptr %6, align 4, !tbaa !9
  %135 = load i32, ptr %6, align 4, !tbaa !9
  %136 = icmp ne i32 %135, 0
  %137 = xor i1 %136, true
  %138 = zext i1 %137 to i32
  store i32 %138, ptr %6, align 4, !tbaa !9
  %139 = load double, ptr %5, align 8, !tbaa !11
  store double %139, ptr %14, align 8, !tbaa !11
  %140 = load double, ptr %14, align 8, !tbaa !11
  %141 = call i64 @i64_reinterpret_f64(double noundef %140)
  store i64 %141, ptr %11, align 8, !tbaa !13
  store i64 0, ptr %12, align 8, !tbaa !13
  %142 = load i64, ptr %11, align 8, !tbaa !13
  %143 = load i64, ptr %12, align 8, !tbaa !13
  %144 = icmp slt i64 %142, %143
  %145 = zext i1 %144 to i32
  %146 = sext i32 %145 to i64
  %147 = trunc i64 %146 to i32
  store i32 %147, ptr %7, align 4, !tbaa !9
  %148 = load i32, ptr %7, align 4, !tbaa !9
  %149 = load i32, ptr %6, align 4, !tbaa !9
  %150 = and i32 %149, %148
  store i32 %150, ptr %6, align 4, !tbaa !9
  %151 = load i32, ptr %6, align 4, !tbaa !9
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %153, label %154

153:                                              ; preds = %133
  br label %195

154:                                              ; preds = %133
  %155 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %155, ptr %6, align 4, !tbaa !9
  store i32 255, ptr %7, align 4, !tbaa !9
  %156 = load i32, ptr %7, align 4, !tbaa !9
  %157 = load i32, ptr %6, align 4, !tbaa !9
  %158 = and i32 %157, %156
  store i32 %158, ptr %6, align 4, !tbaa !9
  br label %213

159:                                              ; preds = %2
  store i32 0, ptr %6, align 4, !tbaa !9
  %160 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %160, ptr %4, align 4, !tbaa !9
  store i32 147142, ptr %7, align 4, !tbaa !9
  %161 = load i32, ptr %7, align 4, !tbaa !9
  %162 = load i32, ptr %6, align 4, !tbaa !9
  %163 = add i32 %162, %161
  store i32 %163, ptr %6, align 4, !tbaa !9
  %164 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %164, ptr %7, align 4, !tbaa !9
  store i32 82611, ptr %8, align 4, !tbaa !9
  %165 = load i32, ptr %8, align 4, !tbaa !9
  %166 = load i32, ptr %7, align 4, !tbaa !9
  %167 = add i32 %166, %165
  store i32 %167, ptr %7, align 4, !tbaa !9
  store i32 106, ptr %8, align 4, !tbaa !9
  %168 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %168, ptr %9, align 4, !tbaa !9
  store i32 28119, ptr %10, align 4, !tbaa !9
  %169 = load i32, ptr %10, align 4, !tbaa !9
  %170 = load i32, ptr %9, align 4, !tbaa !9
  %171 = add i32 %170, %169
  store i32 %171, ptr %9, align 4, !tbaa !9
  %172 = load ptr, ptr %3, align 8, !tbaa !5
  %173 = load i32, ptr %6, align 4, !tbaa !9
  %174 = load i32, ptr %7, align 4, !tbaa !9
  %175 = load i32, ptr %8, align 4, !tbaa !9
  %176 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %172, i32 noundef %173, i32 noundef %174, i32 noundef %175, i32 noundef %176)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

177:                                              ; preds = %37
  store i32 0, ptr %6, align 4, !tbaa !9
  %178 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %178, ptr %4, align 4, !tbaa !9
  store i32 205012, ptr %7, align 4, !tbaa !9
  %179 = load i32, ptr %7, align 4, !tbaa !9
  %180 = load i32, ptr %6, align 4, !tbaa !9
  %181 = add i32 %180, %179
  store i32 %181, ptr %6, align 4, !tbaa !9
  %182 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %182, ptr %7, align 4, !tbaa !9
  store i32 82611, ptr %8, align 4, !tbaa !9
  %183 = load i32, ptr %8, align 4, !tbaa !9
  %184 = load i32, ptr %7, align 4, !tbaa !9
  %185 = add i32 %184, %183
  store i32 %185, ptr %7, align 4, !tbaa !9
  store i32 255, ptr %8, align 4, !tbaa !9
  %186 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %186, ptr %9, align 4, !tbaa !9
  store i32 24720, ptr %10, align 4, !tbaa !9
  %187 = load i32, ptr %10, align 4, !tbaa !9
  %188 = load i32, ptr %9, align 4, !tbaa !9
  %189 = add i32 %188, %187
  store i32 %189, ptr %9, align 4, !tbaa !9
  %190 = load ptr, ptr %3, align 8, !tbaa !5
  %191 = load i32, ptr %6, align 4, !tbaa !9
  %192 = load i32, ptr %7, align 4, !tbaa !9
  %193 = load i32, ptr %8, align 4, !tbaa !9
  %194 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %190, i32 noundef %191, i32 noundef %192, i32 noundef %193, i32 noundef %194)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

195:                                              ; preds = %153, %132, %72, %63, %54
  store i32 0, ptr %6, align 4, !tbaa !9
  %196 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %196, ptr %4, align 4, !tbaa !9
  store i32 136575, ptr %7, align 4, !tbaa !9
  %197 = load i32, ptr %7, align 4, !tbaa !9
  %198 = load i32, ptr %6, align 4, !tbaa !9
  %199 = add i32 %198, %197
  store i32 %199, ptr %6, align 4, !tbaa !9
  %200 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %200, ptr %7, align 4, !tbaa !9
  store i32 85918, ptr %8, align 4, !tbaa !9
  %201 = load i32, ptr %8, align 4, !tbaa !9
  %202 = load i32, ptr %7, align 4, !tbaa !9
  %203 = add i32 %202, %201
  store i32 %203, ptr %7, align 4, !tbaa !9
  store i32 894, ptr %8, align 4, !tbaa !9
  %204 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %204, ptr %9, align 4, !tbaa !9
  store i32 111088, ptr %10, align 4, !tbaa !9
  %205 = load i32, ptr %10, align 4, !tbaa !9
  %206 = load i32, ptr %9, align 4, !tbaa !9
  %207 = add i32 %206, %205
  store i32 %207, ptr %9, align 4, !tbaa !9
  %208 = load ptr, ptr %3, align 8, !tbaa !5
  %209 = load i32, ptr %6, align 4, !tbaa !9
  %210 = load i32, ptr %7, align 4, !tbaa !9
  %211 = load i32, ptr %8, align 4, !tbaa !9
  %212 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %208, i32 noundef %209, i32 noundef %210, i32 noundef %211, i32 noundef %212)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

213:                                              ; preds = %154
  %214 = load i32, ptr %6, 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 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret i32 %214
}

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_reinterpret_f64(double noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare hidden double @wasm_fabs(double noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local 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 double @f64_load(ptr noundef, i64 noundef) local_unnamed_addr #1

declare i32 @w2c_hermes_hermes0x3A0x3AInstruction0x3A0x3AgetOperand0x28unsigned0x20int0x290x20const(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 256) i32 @w2c_hermes_hermes0x3A0x3ACallBuiltinInst0x3A0x3AgetBuiltinIndex0x280x290x20const(ptr noundef %0, i32 noundef %1) local_unnamed_addr #2 {
  %3 = tail call i32 @w2c_hermes_hermes0x3A0x3AInstruction0x3A0x3AgetOperand0x28unsigned0x20int0x290x20const(ptr noundef %0, i32 noundef %1, i32 noundef 0) #4
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %30, label %4

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = zext i32 %3 to i64
  %7 = tail call i32 @i32_load8_u(ptr noundef nonnull %5, i64 noundef %6)
  %.not101 = icmp eq i32 %7, 114
  br i1 %.not101, label %8, label %31

8:                                                ; preds = %4
  %9 = add nuw nsw i64 %6, 32
  %10 = tail call double @f64_load(ptr noundef nonnull %5, i64 noundef %9)
  %11 = fcmp uno double %10, 0.000000e+00
  %12 = fcmp ogt double %10, 0x41DFFFFFFFC00000
  %or.cond = or i1 %11, %12
  %13 = fcmp olt double %10, 0xC1E0000000000000
  %or.cond108 = or i1 %13, %or.cond
  br i1 %or.cond108, label %32, label %14

14:                                               ; preds = %8
  %15 = tail call double @wasm_fabs(double noundef %10)
  %16 = fcmp olt double %15, 0x41E0000000000000
  br i1 %16, label %17, label %23

17:                                               ; preds = %14
  %18 = fcmp ule double %10, 0xC1E0000000200000
  %19 = fcmp uge double %10, 0x41E0000000000000
  %.not104 = or i1 %18, %19
  br i1 %.not104, label %20, label %21, !prof !5

20:                                               ; preds = %17
  tail call void @wasm_rt_trap(i32 noundef 2) #5
  unreachable

21:                                               ; preds = %17
  %22 = fptosi double %10 to i32
  br label %23

23:                                               ; preds = %14, %21
  %.0 = phi i32 [ %22, %21 ], [ -2147483648, %14 ]
  %24 = sitofp i32 %.0 to double
  %25 = fcmp une double %10, %24
  br i1 %25, label %32, label %26

26:                                               ; preds = %23
  %.not105 = icmp ne i32 %.0, 0
  %27 = tail call i64 @i64_reinterpret_f64(double noundef %10)
  %.not106107 = icmp sgt i64 %27, -1
  %.not106 = select i1 %.not105, i1 true, i1 %.not106107
  br i1 %.not106, label %28, label %32

28:                                               ; preds = %26
  %29 = and i32 %.0, 255
  ret i32 %29

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

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

32:                                               ; preds = %26, %23, %8
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 136575, i32 noundef 85918, i32 noundef 894, i32 noundef 111088)
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

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


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