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

; 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

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

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

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

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

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

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

36:                                               ; preds = %3
  %37 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %37, ptr %11, align 4, !tbaa !9
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.w2c_hermes, ptr %38, i32 0, i32 6
  %40 = load i32, ptr %11, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  %42 = add i64 %41, 18
  %43 = call i32 @i32_load8_u(ptr noundef %39, i64 noundef %42)
  store i32 %43, ptr %11, align 4, !tbaa !9
  %44 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %44, ptr %7, align 4, !tbaa !9
  store i32 7, ptr %12, align 4, !tbaa !9
  %45 = load i32, ptr %12, align 4, !tbaa !9
  %46 = load i32, ptr %11, align 4, !tbaa !9
  %47 = and i32 %46, %45
  store i32 %47, ptr %11, align 4, !tbaa !9
  %48 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %48, ptr %8, align 4, !tbaa !9
  %49 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %49, ptr %11, align 4, !tbaa !9
  store i32 6, ptr %12, align 4, !tbaa !9
  %50 = load i32, ptr %12, align 4, !tbaa !9
  %51 = load i32, ptr %11, align 4, !tbaa !9
  %52 = and i32 %51, %50
  store i32 %52, ptr %11, align 4, !tbaa !9
  %53 = load i32, ptr %11, align 4, !tbaa !9
  %54 = icmp ne i32 %53, 0
  %55 = xor i1 %54, true
  %56 = zext i1 %55 to i32
  store i32 %56, ptr %11, align 4, !tbaa !9
  %57 = load i32, ptr %11, align 4, !tbaa !9
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %60

59:                                               ; preds = %36
  br label %106

60:                                               ; preds = %36
  %61 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %61, ptr %11, align 4, !tbaa !9
  store i32 3, ptr %12, align 4, !tbaa !9
  %62 = load i32, ptr %11, align 4, !tbaa !9
  %63 = load i32, ptr %12, align 4, !tbaa !9
  %64 = icmp eq i32 %62, %63
  %65 = zext i1 %64 to i32
  store i32 %65, ptr %11, align 4, !tbaa !9
  %66 = load i32, ptr %11, align 4, !tbaa !9
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %69

68:                                               ; preds = %60
  br label %106

69:                                               ; preds = %60
  %70 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %70, ptr %11, align 4, !tbaa !9
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.w2c_hermes, ptr %71, i32 0, i32 6
  %73 = load i32, ptr %11, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = add i64 %74, 8
  %76 = call i64 @i64_load(ptr noundef %72, i64 noundef %75)
  store i64 %76, ptr %16, align 8, !tbaa !11
  %77 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %77, ptr %9, align 8, !tbaa !11
  %78 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %78, ptr %11, align 4, !tbaa !9
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.w2c_hermes, ptr %79, i32 0, i32 6
  %81 = load i32, ptr %11, align 4, !tbaa !9
  %82 = zext i32 %81 to i64
  %83 = add i64 %82, 16
  %84 = call i64 @i64_load16_s(ptr noundef %80, i64 noundef %83)
  store i64 %84, ptr %16, align 8, !tbaa !11
  store i64 1023, ptr %17, align 8, !tbaa !11
  %85 = load i64, ptr %17, align 8, !tbaa !11
  %86 = load i64, ptr %16, align 8, !tbaa !11
  %87 = add i64 %86, %85
  store i64 %87, ptr %16, align 8, !tbaa !11
  %88 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %88, ptr %10, align 8, !tbaa !11
  store i64 1, ptr %17, align 8, !tbaa !11
  %89 = load i64, ptr %16, align 8, !tbaa !11
  %90 = load i64, ptr %17, align 8, !tbaa !11
  %91 = icmp ne i64 %89, %90
  %92 = zext i1 %91 to i32
  store i32 %92, ptr %11, align 4, !tbaa !9
  %93 = load i32, ptr %11, align 4, !tbaa !9
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %96

95:                                               ; preds = %69
  br label %143

96:                                               ; preds = %69
  %97 = load i64, ptr %9, align 8, !tbaa !11
  store i64 %97, ptr %16, align 8, !tbaa !11
  store i64 52, ptr %17, align 8, !tbaa !11
  %98 = load i64, ptr %17, align 8, !tbaa !11
  %99 = and i64 %98, 63
  %100 = load i64, ptr %16, align 8, !tbaa !11
  %101 = lshr i64 %100, %99
  store i64 %101, ptr %16, align 8, !tbaa !11
  store i64 1, ptr %17, align 8, !tbaa !11
  %102 = load i64, ptr %17, align 8, !tbaa !11
  %103 = load i64, ptr %16, align 8, !tbaa !11
  %104 = and i64 %103, %102
  store i64 %104, ptr %16, align 8, !tbaa !11
  %105 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %105, ptr %10, align 8, !tbaa !11
  br label %143

106:                                              ; preds = %68, %59
  %107 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %107, ptr %11, align 4, !tbaa !9
  %108 = load i32, ptr %11, align 4, !tbaa !9
  switch i32 %108, label %113 [
    i32 0, label %109
    i32 1, label %110
    i32 2, label %111
    i32 3, label %112
  ]

109:                                              ; preds = %106
  br label %141

110:                                              ; preds = %106
  br label %132

111:                                              ; preds = %106
  br label %114

112:                                              ; preds = %106
  br label %143

113:                                              ; preds = %106
  br label %114

114:                                              ; preds = %113, %111
  store i32 0, ptr %11, align 4, !tbaa !9
  %115 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %115, ptr %6, align 4, !tbaa !9
  store i32 202756, ptr %12, align 4, !tbaa !9
  %116 = load i32, ptr %12, align 4, !tbaa !9
  %117 = load i32, ptr %11, align 4, !tbaa !9
  %118 = add i32 %117, %116
  store i32 %118, ptr %11, align 4, !tbaa !9
  %119 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %119, ptr %12, align 4, !tbaa !9
  store i32 55395, ptr %13, align 4, !tbaa !9
  %120 = load i32, ptr %13, align 4, !tbaa !9
  %121 = load i32, ptr %12, align 4, !tbaa !9
  %122 = add i32 %121, %120
  store i32 %122, ptr %12, align 4, !tbaa !9
  store i32 2928, ptr %13, align 4, !tbaa !9
  %123 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %123, ptr %14, align 4, !tbaa !9
  store i32 27770, ptr %15, align 4, !tbaa !9
  %124 = load i32, ptr %15, align 4, !tbaa !9
  %125 = load i32, ptr %14, align 4, !tbaa !9
  %126 = add i32 %125, %124
  store i32 %126, ptr %14, align 4, !tbaa !9
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = load i32, ptr %11, align 4, !tbaa !9
  %129 = load i32, ptr %12, align 4, !tbaa !9
  %130 = load i32, ptr %13, align 4, !tbaa !9
  %131 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %127, i32 noundef %128, i32 noundef %129, i32 noundef %130, i32 noundef %131)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

132:                                              ; preds = %110
  %133 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %133, ptr %11, align 4, !tbaa !9
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.w2c_hermes, ptr %134, i32 0, i32 6
  %136 = load i32, ptr %11, align 4, !tbaa !9
  %137 = zext i32 %136 to i64
  %138 = add i64 %137, 8
  %139 = call i64 @i64_load(ptr noundef %135, i64 noundef %138)
  store i64 %139, ptr %16, align 8, !tbaa !11
  %140 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %140, ptr %9, align 8, !tbaa !11
  br label %141

141:                                              ; preds = %132, %109
  store i64 2047, ptr %16, align 8, !tbaa !11
  %142 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %142, ptr %10, align 8, !tbaa !11
  br label %143

143:                                              ; preds = %141, %112, %96, %95
  %144 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %144, ptr %11, align 4, !tbaa !9
  store i32 64, ptr %12, 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 %11, align 4, !tbaa !9
  %148 = zext i32 %147 to i64
  %149 = add i64 %148, 8
  %150 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %146, i64 noundef %149, i32 noundef %150)
  %151 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %151, ptr %11, align 4, !tbaa !9
  %152 = load i64, ptr %9, align 8, !tbaa !11
  store i64 %152, ptr %17, align 8, !tbaa !11
  store i64 4503599627370495, ptr %18, align 8, !tbaa !11
  %153 = load i64, ptr %18, align 8, !tbaa !11
  %154 = load i64, ptr %17, align 8, !tbaa !11
  %155 = and i64 %154, %153
  store i64 %155, ptr %17, align 8, !tbaa !11
  %156 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %156, ptr %18, align 8, !tbaa !11
  store i64 52, ptr %19, align 8, !tbaa !11
  %157 = load i64, ptr %19, align 8, !tbaa !11
  %158 = and i64 %157, 63
  %159 = load i64, ptr %18, align 8, !tbaa !11
  %160 = shl i64 %159, %158
  store i64 %160, ptr %18, align 8, !tbaa !11
  store i64 9218868437227405312, ptr %19, align 8, !tbaa !11
  %161 = load i64, ptr %19, align 8, !tbaa !11
  %162 = load i64, ptr %18, align 8, !tbaa !11
  %163 = and i64 %162, %161
  store i64 %163, ptr %18, align 8, !tbaa !11
  %164 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %164, ptr %14, align 4, !tbaa !9
  store i32 3, ptr %15, align 4, !tbaa !9
  %165 = load i32, ptr %15, align 4, !tbaa !9
  %166 = and i32 %165, 31
  %167 = load i32, ptr %14, align 4, !tbaa !9
  %168 = lshr i32 %167, %166
  store i32 %168, ptr %14, align 4, !tbaa !9
  %169 = load i32, ptr %14, align 4, !tbaa !9
  %170 = zext i32 %169 to i64
  store i64 %170, ptr %19, align 8, !tbaa !11
  store i64 63, ptr %20, align 8, !tbaa !11
  %171 = load i64, ptr %20, align 8, !tbaa !11
  %172 = and i64 %171, 63
  %173 = load i64, ptr %19, align 8, !tbaa !11
  %174 = shl i64 %173, %172
  store i64 %174, ptr %19, align 8, !tbaa !11
  %175 = load i64, ptr %19, align 8, !tbaa !11
  %176 = load i64, ptr %18, align 8, !tbaa !11
  %177 = or i64 %176, %175
  store i64 %177, ptr %18, align 8, !tbaa !11
  %178 = load i64, ptr %18, align 8, !tbaa !11
  %179 = load i64, ptr %17, align 8, !tbaa !11
  %180 = or i64 %179, %178
  store i64 %180, ptr %17, align 8, !tbaa !11
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.w2c_hermes, ptr %181, i32 0, i32 6
  %183 = load i32, ptr %11, align 4, !tbaa !9
  %184 = zext i32 %183 to i64
  %185 = load i64, ptr %17, align 8, !tbaa !11
  call void @i64_store(ptr noundef %182, i64 noundef %184, i64 noundef %185)
  br label %204

186:                                              ; preds = %3
  store i32 0, ptr %11, align 4, !tbaa !9
  %187 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %187, ptr %6, align 4, !tbaa !9
  store i32 97228, ptr %12, align 4, !tbaa !9
  %188 = load i32, ptr %12, align 4, !tbaa !9
  %189 = load i32, ptr %11, align 4, !tbaa !9
  %190 = add i32 %189, %188
  store i32 %190, ptr %11, align 4, !tbaa !9
  %191 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %191, ptr %12, align 4, !tbaa !9
  store i32 55395, ptr %13, align 4, !tbaa !9
  %192 = load i32, ptr %13, align 4, !tbaa !9
  %193 = load i32, ptr %12, align 4, !tbaa !9
  %194 = add i32 %193, %192
  store i32 %194, ptr %12, align 4, !tbaa !9
  store i32 2911, ptr %13, align 4, !tbaa !9
  %195 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %195, ptr %14, align 4, !tbaa !9
  store i32 27770, ptr %15, align 4, !tbaa !9
  %196 = load i32, ptr %15, align 4, !tbaa !9
  %197 = load i32, ptr %14, align 4, !tbaa !9
  %198 = add i32 %197, %196
  store i32 %198, ptr %14, align 4, !tbaa !9
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = load i32, ptr %11, align 4, !tbaa !9
  %201 = load i32, ptr %12, align 4, !tbaa !9
  %202 = load i32, ptr %13, align 4, !tbaa !9
  %203 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %199, i32 noundef %200, i32 noundef %201, i32 noundef %202, i32 noundef %203)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

204:                                              ; preds = %143
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret void
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}


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

; Function Attrs: inlinehint nounwind uwtable
declare hidden 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

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

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

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

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

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

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

8:                                                ; preds = %3
  %9 = add nuw nsw i64 %5, 18
  %10 = tail call i32 @i32_load8_u(ptr noundef nonnull %4, i64 noundef %9)
  %11 = and i32 %10, 7
  %12 = and i32 %10, 6
  %.not = icmp eq i32 %12, 0
  %13 = icmp eq i32 %11, 3
  %or.cond = or i1 %.not, %13
  br i1 %or.cond, label %23, label %14

14:                                               ; preds = %8
  %15 = add nuw nsw i64 %5, 8
  %16 = tail call i64 @i64_load(ptr noundef nonnull %4, i64 noundef %15)
  %17 = add nuw nsw i64 %5, 16
  %18 = tail call i64 @i64_load16_s(ptr noundef nonnull %4, i64 noundef %17)
  %19 = add i64 %18, 1023
  %.not105 = icmp eq i64 %19, 1
  br i1 %.not105, label %20, label %29

20:                                               ; preds = %14
  %21 = lshr i64 %16, 52
  %22 = and i64 %21, 1
  br label %29

23:                                               ; preds = %8
  switch i32 %11, label %24 [
    i32 0, label %28
    i32 1, label %25
    i32 3, label %29
  ]

24:                                               ; preds = %23
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 202756, i32 noundef 55395, i32 noundef 2928, i32 noundef 27770) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

25:                                               ; preds = %23
  %26 = add nuw nsw i64 %5, 8
  %27 = tail call i64 @i64_load(ptr noundef nonnull %4, i64 noundef %26)
  br label %29

28:                                               ; preds = %23
  br label %29

29:                                               ; preds = %25, %23, %14, %28, %20
  %.1 = phi i64 [ 0, %23 ], [ %16, %14 ], [ %16, %20 ], [ %27, %25 ], [ 0, %28 ]
  %.0 = phi i64 [ 0, %23 ], [ %19, %14 ], [ %22, %20 ], [ 2047, %25 ], [ 2047, %28 ]
  %30 = zext i32 %1 to i64
  %31 = add nuw nsw i64 %30, 8
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %31, i32 noundef 64)
  %32 = and i64 %.1, 4503599627370495
  %33 = shl i64 %.0, 52
  %34 = and i64 %33, 9218868437227405312
  %35 = lshr i32 %10, 3
  %36 = zext nneg i32 %35 to i64
  %37 = shl i64 %36, 63
  %38 = or disjoint i64 %34, %37
  %39 = or disjoint i64 %38, %32
  tail call void @i64_store(ptr noundef nonnull %4, i64 noundef %30, i64 noundef %39)
  ret void

40:                                               ; preds = %3
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 97228, i32 noundef 55395, i32 noundef 2911, i32 noundef 27770) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

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

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

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


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