; 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 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_hermes0x3A0x3AAllocObjectInst0x3A0x3AgetSize0x280x290x20const(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
  %16 = 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %17 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %17, ptr %6, align 4, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !9
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = load i32, ptr %6, align 4, !tbaa !9
  %20 = load i32, ptr %7, align 4, !tbaa !9
  %21 = call i32 @w2c_hermes_hermes0x3A0x3AInstruction0x3A0x3AgetOperand0x28unsigned0x20int0x290x20const(ptr noundef %18, i32 noundef %19, i32 noundef %20)
  store i32 %21, ptr %6, align 4, !tbaa !9
  %22 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %22, ptr %4, align 4, !tbaa !9
  %23 = load i32, ptr %6, align 4, !tbaa !9
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %25, label %163

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

38:                                               ; preds = %25
  br label %181

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

55:                                               ; preds = %39
  br label %199

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

64:                                               ; preds = %56
  br label %199

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

73:                                               ; preds = %65
  br label %199

74:                                               ; preds = %65
  %75 = load double, ptr %5, align 8, !tbaa !11
  store double %75, ptr %13, align 8, !tbaa !11
  %76 = load double, ptr %5, align 8, !tbaa !11
  store double %76, ptr %14, align 8, !tbaa !11
  store double 0x41F0000000000000, ptr %15, align 8, !tbaa !11
  %77 = load double, ptr %14, align 8, !tbaa !11
  %78 = load double, ptr %15, align 8, !tbaa !11
  %79 = fcmp olt double %77, %78
  %80 = zext i1 %79 to i32
  store i32 %80, ptr %7, align 4, !tbaa !9
  %81 = load double, ptr %5, align 8, !tbaa !11
  store double %81, ptr %15, align 8, !tbaa !11
  store double 0.000000e+00, ptr %16, align 8, !tbaa !11
  %82 = load double, ptr %15, align 8, !tbaa !11
  %83 = load double, ptr %16, align 8, !tbaa !11
  %84 = fcmp oge double %82, %83
  %85 = zext i1 %84 to i32
  store i32 %85, ptr %8, align 4, !tbaa !9
  %86 = load i32, ptr %8, align 4, !tbaa !9
  %87 = load i32, ptr %7, align 4, !tbaa !9
  %88 = and i32 %87, %86
  store i32 %88, ptr %7, align 4, !tbaa !9
  %89 = load i32, ptr %7, align 4, !tbaa !9
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %128

91:                                               ; preds = %74
  %92 = load double, ptr %5, align 8, !tbaa !11
  store double %92, ptr %14, align 8, !tbaa !11
  %93 = load double, ptr %14, align 8, !tbaa !11
  %94 = load double, ptr %14, align 8, !tbaa !11
  %95 = fcmp une double %93, %94
  %96 = xor i1 %95, true
  %97 = xor i1 %96, true
  %98 = zext i1 %97 to i32
  %99 = sext i32 %98 to i64
  %100 = call i64 @llvm.expect.i64(i64 %99, i64 0)
  %101 = icmp ne i64 %100, 0
  br i1 %101, label %102, label %104

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

103:                                              ; No predecessors!
  br label %126

104:                                              ; preds = %91
  %105 = load double, ptr %14, align 8, !tbaa !11
  %106 = fcmp ogt double %105, -1.000000e+00
  br i1 %106, label %107, label %110

107:                                              ; preds = %104
  %108 = load double, ptr %14, align 8, !tbaa !11
  %109 = fcmp olt double %108, 0x41F0000000000000
  br label %110

110:                                              ; preds = %107, %104
  %111 = phi i1 [ false, %104 ], [ %109, %107 ]
  %112 = xor i1 %111, true
  %113 = xor i1 %112, true
  %114 = xor i1 %113, true
  %115 = zext i1 %114 to i32
  %116 = sext i32 %115 to i64
  %117 = call i64 @llvm.expect.i64(i64 %116, i64 0)
  %118 = icmp ne i64 %117, 0
  br i1 %118, label %119, label %121

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

120:                                              ; No predecessors!
  br label %124

121:                                              ; preds = %110
  %122 = load double, ptr %14, align 8, !tbaa !11
  %123 = fptoui double %122 to i32
  br label %124

124:                                              ; preds = %121, %120
  %125 = phi i32 [ 0, %120 ], [ %123, %121 ]
  br label %126

126:                                              ; preds = %124, %103
  %127 = phi i32 [ 0, %103 ], [ %125, %124 ]
  store i32 %127, ptr %7, align 4, !tbaa !9
  br label %129

128:                                              ; preds = %74
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %128, %126
  %130 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %130, ptr %4, align 4, !tbaa !9
  %131 = load i32, ptr %7, align 4, !tbaa !9
  %132 = uitofp i32 %131 to double
  store double %132, ptr %14, align 8, !tbaa !11
  %133 = load double, ptr %13, align 8, !tbaa !11
  %134 = load double, ptr %14, align 8, !tbaa !11
  %135 = fcmp une double %133, %134
  %136 = zext i1 %135 to i32
  store i32 %136, ptr %6, align 4, !tbaa !9
  %137 = load i32, ptr %6, align 4, !tbaa !9
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %140

139:                                              ; preds = %129
  br label %199

140:                                              ; preds = %129
  %141 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %141, ptr %6, align 4, !tbaa !9
  %142 = load i32, ptr %6, align 4, !tbaa !9
  %143 = icmp ne i32 %142, 0
  %144 = xor i1 %143, true
  %145 = zext i1 %144 to i32
  store i32 %145, ptr %6, align 4, !tbaa !9
  %146 = load double, ptr %5, align 8, !tbaa !11
  store double %146, ptr %14, align 8, !tbaa !11
  %147 = load double, ptr %14, align 8, !tbaa !11
  %148 = call i64 @i64_reinterpret_f64(double noundef %147)
  store i64 %148, ptr %11, align 8, !tbaa !13
  store i64 0, ptr %12, align 8, !tbaa !13
  %149 = load i64, ptr %11, align 8, !tbaa !13
  %150 = load i64, ptr %12, align 8, !tbaa !13
  %151 = icmp slt i64 %149, %150
  %152 = zext i1 %151 to i32
  %153 = sext i32 %152 to i64
  %154 = trunc i64 %153 to i32
  store i32 %154, ptr %7, align 4, !tbaa !9
  %155 = load i32, ptr %7, align 4, !tbaa !9
  %156 = load i32, ptr %6, align 4, !tbaa !9
  %157 = and i32 %156, %155
  store i32 %157, ptr %6, align 4, !tbaa !9
  %158 = load i32, ptr %6, align 4, !tbaa !9
  %159 = icmp ne i32 %158, 0
  br i1 %159, label %160, label %161

160:                                              ; preds = %140
  br label %199

161:                                              ; preds = %140
  %162 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %162, ptr %6, align 4, !tbaa !9
  br label %217

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

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

199:                                              ; preds = %160, %139, %73, %64, %55
  store i32 0, ptr %6, align 4, !tbaa !9
  %200 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %200, ptr %4, align 4, !tbaa !9
  store i32 136349, ptr %7, align 4, !tbaa !9
  %201 = load i32, ptr %7, align 4, !tbaa !9
  %202 = load i32, ptr %6, align 4, !tbaa !9
  %203 = add i32 %202, %201
  store i32 %203, ptr %6, align 4, !tbaa !9
  %204 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %204, ptr %7, align 4, !tbaa !9
  store i32 85918, ptr %8, align 4, !tbaa !9
  %205 = load i32, ptr %8, align 4, !tbaa !9
  %206 = load i32, ptr %7, align 4, !tbaa !9
  %207 = add i32 %206, %205
  store i32 %207, ptr %7, align 4, !tbaa !9
  store i32 902, ptr %8, align 4, !tbaa !9
  %208 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %208, ptr %9, align 4, !tbaa !9
  store i32 111096, ptr %10, align 4, !tbaa !9
  %209 = load i32, ptr %10, align 4, !tbaa !9
  %210 = load i32, ptr %9, align 4, !tbaa !9
  %211 = add i32 %210, %209
  store i32 %211, ptr %9, align 4, !tbaa !9
  %212 = load ptr, ptr %3, align 8, !tbaa !5
  %213 = load i32, ptr %6, align 4, !tbaa !9
  %214 = load i32, ptr %7, align 4, !tbaa !9
  %215 = load i32, ptr %8, align 4, !tbaa !9
  %216 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %212, i32 noundef %213, i32 noundef %214, i32 noundef %215, i32 noundef %216)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

217:                                              ; preds = %161
  %218 = load i32, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  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 %218
}

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 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 i32 @w2c_hermes_hermes0x3A0x3AAllocObjectInst0x3A0x3AgetSize0x280x290x20const(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 %27, 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)
  %.not103 = icmp eq i32 %7, 114
  br i1 %.not103, label %8, label %28

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, 0x41EFFFFFFFE00000
  %or.cond = or i1 %11, %12
  %13 = fcmp olt double %10, 0.000000e+00
  %or.cond110 = or i1 %13, %or.cond
  br i1 %or.cond110, label %29, label %14

14:                                               ; preds = %8
  %15 = fcmp uge double %10, 0x41F0000000000000
  br i1 %15, label %21, label %16

16:                                               ; preds = %14
  %17 = fcmp ule double %10, -1.000000e+00
  br i1 %17, label %18, label %19, !prof !5

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

19:                                               ; preds = %16
  %20 = fptoui double %10 to i32
  br label %21

21:                                               ; preds = %14, %19
  %.0 = phi i32 [ %20, %19 ], [ 0, %14 ]
  %22 = uitofp i32 %.0 to double
  %23 = fcmp une double %10, %22
  br i1 %23, label %29, label %24

24:                                               ; preds = %21
  %.not107 = icmp ne i32 %.0, 0
  %25 = tail call i64 @i64_reinterpret_f64(double noundef %10)
  %.not108109 = icmp sgt i64 %25, -1
  %.not108 = select i1 %.not107, i1 true, i1 %.not108109
  br i1 %.not108, label %26, label %29

26:                                               ; preds = %24
  ret i32 %.0

27:                                               ; 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

28:                                               ; 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

29:                                               ; preds = %24, %21, %8
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 136349, i32 noundef 85918, i32 noundef 902, i32 noundef 111096)
  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