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

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

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

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

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

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

42:                                               ; preds = %4
  br label %167

43:                                               ; preds = %4
  %44 = load double, ptr %8, align 8, !tbaa !11
  store double %44, ptr %18, align 8, !tbaa !11
  store double 0xC1E0000000000000, ptr %19, align 8, !tbaa !11
  %45 = load double, ptr %18, align 8, !tbaa !11
  %46 = load double, ptr %19, align 8, !tbaa !11
  %47 = fcmp ogt double %45, %46
  %48 = zext i1 %47 to i32
  store i32 %48, ptr %11, align 4, !tbaa !9
  %49 = load i32, ptr %11, align 4, !tbaa !9
  %50 = icmp ne i32 %49, 0
  %51 = xor i1 %50, true
  %52 = zext i1 %51 to i32
  store i32 %52, ptr %11, align 4, !tbaa !9
  %53 = load i32, ptr %11, align 4, !tbaa !9
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %56

55:                                               ; preds = %43
  br label %167

56:                                               ; preds = %43
  %57 = load double, ptr %8, align 8, !tbaa !11
  store double %57, ptr %18, align 8, !tbaa !11
  %58 = load double, ptr %18, align 8, !tbaa !11
  %59 = call double @wasm_fabs(double noundef %58)
  store double %59, ptr %18, align 8, !tbaa !11
  store double 0x41E0000000000000, ptr %19, align 8, !tbaa !11
  %60 = load double, ptr %18, align 8, !tbaa !11
  %61 = load double, ptr %19, align 8, !tbaa !11
  %62 = fcmp olt double %60, %61
  %63 = zext i1 %62 to i32
  store i32 %63, ptr %11, align 4, !tbaa !9
  %64 = load i32, ptr %11, align 4, !tbaa !9
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %103

66:                                               ; preds = %56
  %67 = load double, ptr %8, align 8, !tbaa !11
  store double %67, ptr %18, align 8, !tbaa !11
  %68 = load double, ptr %18, align 8, !tbaa !11
  %69 = load double, ptr %18, align 8, !tbaa !11
  %70 = fcmp une double %68, %69
  %71 = xor i1 %70, true
  %72 = xor i1 %71, true
  %73 = zext i1 %72 to i32
  %74 = sext i32 %73 to i64
  %75 = call i64 @llvm.expect.i64(i64 %74, i64 0)
  %76 = icmp ne i64 %75, 0
  br i1 %76, label %77, label %79

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

78:                                               ; No predecessors!
  br label %101

79:                                               ; preds = %66
  %80 = load double, ptr %18, align 8, !tbaa !11
  %81 = fcmp ogt double %80, 0xC1E0000000200000
  br i1 %81, label %82, label %85

82:                                               ; preds = %79
  %83 = load double, ptr %18, align 8, !tbaa !11
  %84 = fcmp olt double %83, 0x41E0000000000000
  br label %85

85:                                               ; preds = %82, %79
  %86 = phi i1 [ false, %79 ], [ %84, %82 ]
  %87 = xor i1 %86, true
  %88 = xor i1 %87, true
  %89 = xor i1 %88, true
  %90 = zext i1 %89 to i32
  %91 = sext i32 %90 to i64
  %92 = call i64 @llvm.expect.i64(i64 %91, i64 0)
  %93 = icmp ne i64 %92, 0
  br i1 %93, label %94, label %96

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

95:                                               ; No predecessors!
  br label %99

96:                                               ; preds = %85
  %97 = load double, ptr %18, align 8, !tbaa !11
  %98 = fptosi double %97 to i32
  br label %99

99:                                               ; preds = %96, %95
  %100 = phi i32 [ 0, %95 ], [ %98, %96 ]
  br label %101

101:                                              ; preds = %99, %78
  %102 = phi i32 [ 0, %78 ], [ %100, %99 ]
  store i32 %102, ptr %11, align 4, !tbaa !9
  br label %104

103:                                              ; preds = %56
  store i32 -2147483648, ptr %11, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %103, %101
  %105 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %105, ptr %10, align 4, !tbaa !9
  %106 = load i32, ptr %11, align 4, !tbaa !9
  %107 = sitofp i32 %106 to double
  store double %107, ptr %18, align 8, !tbaa !11
  %108 = load double, ptr %8, align 8, !tbaa !11
  store double %108, ptr %19, align 8, !tbaa !11
  %109 = load double, ptr %18, align 8, !tbaa !11
  %110 = load double, ptr %19, align 8, !tbaa !11
  %111 = fcmp une double %109, %110
  %112 = zext i1 %111 to i32
  store i32 %112, ptr %11, align 4, !tbaa !9
  %113 = load i32, ptr %11, align 4, !tbaa !9
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %116

115:                                              ; preds = %104
  br label %167

116:                                              ; preds = %104
  %117 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %117, ptr %11, align 4, !tbaa !9
  store i32 4, ptr %12, align 4, !tbaa !9
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.w2c_hermes, ptr %118, i32 0, i32 6
  %120 = load i32, ptr %11, align 4, !tbaa !9
  %121 = zext i32 %120 to i64
  %122 = add i64 %121, 40
  %123 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %119, i64 noundef %122, i32 noundef %123)
  %124 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %124, ptr %11, align 4, !tbaa !9
  %125 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %125, ptr %12, align 4, !tbaa !9
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.w2c_hermes, ptr %126, i32 0, i32 6
  %128 = load i32, ptr %11, align 4, !tbaa !9
  %129 = zext i32 %128 to i64
  %130 = add i64 %129, 44
  %131 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %127, i64 noundef %130, i32 noundef %131)
  %132 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %132, ptr %11, align 4, !tbaa !9
  %133 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %133, ptr %12, align 4, !tbaa !9
  store i32 44, ptr %13, align 4, !tbaa !9
  %134 = load i32, ptr %13, align 4, !tbaa !9
  %135 = load i32, ptr %12, align 4, !tbaa !9
  %136 = add i32 %135, %134
  store i32 %136, ptr %12, align 4, !tbaa !9
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.w2c_hermes, ptr %137, i32 0, i32 6
  %139 = load i32, ptr %11, align 4, !tbaa !9
  %140 = zext i32 %139 to i64
  %141 = add i64 %140, 36
  %142 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %138, i64 noundef %141, i32 noundef %142)
  %143 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %143, ptr %11, align 4, !tbaa !9
  %144 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %144, ptr %12, align 4, !tbaa !9
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.w2c_hermes, ptr %145, i32 0, i32 6
  %147 = load i32, ptr %12, align 4, !tbaa !9
  %148 = zext i32 %147 to i64
  %149 = add i64 %148, 36
  %150 = call i64 @i64_load(ptr noundef %146, i64 noundef %149)
  store i64 %150, ptr %16, align 8, !tbaa !19
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.w2c_hermes, ptr %151, i32 0, i32 6
  %153 = load i32, ptr %11, align 4, !tbaa !9
  %154 = zext i32 %153 to i64
  %155 = add i64 %154, 8
  %156 = load i64, ptr %16, align 8, !tbaa !19
  call void @i64_store(ptr noundef %152, i64 noundef %155, i64 noundef %156)
  %157 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %157, ptr %11, align 4, !tbaa !9
  %158 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %158, ptr %12, align 4, !tbaa !9
  %159 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %159, ptr %13, align 4, !tbaa !9
  store i32 8, ptr %14, align 4, !tbaa !9
  %160 = load i32, ptr %14, align 4, !tbaa !9
  %161 = load i32, ptr %13, align 4, !tbaa !9
  %162 = add i32 %161, %160
  store i32 %162, ptr %13, align 4, !tbaa !9
  %163 = load ptr, ptr %5, align 8, !tbaa !5
  %164 = load i32, ptr %11, align 4, !tbaa !9
  %165 = load i32, ptr %12, align 4, !tbaa !9
  %166 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3AfromBytes0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20llvh0x3A0x3AArrayRef0x3Cunsigned0x20char0x3E0x29(ptr noundef %163, i32 noundef %164, i32 noundef %165, i32 noundef %166)
  br label %348

167:                                              ; preds = %115, %55, %42
  %168 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %168, ptr %11, align 4, !tbaa !9
  store i32 36, ptr %12, align 4, !tbaa !9
  %169 = load i32, ptr %12, align 4, !tbaa !9
  %170 = load i32, ptr %11, align 4, !tbaa !9
  %171 = add i32 %170, %169
  store i32 %171, ptr %11, align 4, !tbaa !9
  %172 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %172, ptr %12, align 4, !tbaa !9
  %173 = load double, ptr %8, align 8, !tbaa !11
  store double %173, ptr %20, align 8, !tbaa !11
  %174 = load ptr, ptr %5, align 8, !tbaa !5
  %175 = load double, ptr %20, align 8, !tbaa !11
  %176 = call i32 @w2c_hermes_hermes0x3A0x3Abigint0x3A0x3AfromDoubleResultSize0x28double0x29(ptr noundef %174, double noundef %175)
  store i32 %176, ptr %13, align 4, !tbaa !9
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  %178 = load i32, ptr %11, align 4, !tbaa !9
  %179 = load i32, ptr %12, align 4, !tbaa !9
  %180 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3AcreateUninitializedWithNumDigits0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20unsigned0x20int0x29(ptr noundef %177, i32 noundef %178, i32 noundef %179, i32 noundef %180)
  %181 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %181, ptr %11, align 4, !tbaa !9
  %182 = load ptr, ptr %5, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.w2c_hermes, ptr %182, i32 0, i32 6
  %184 = load i32, ptr %11, align 4, !tbaa !9
  %185 = zext i32 %184 to i64
  %186 = add i64 %185, 40
  %187 = call i32 @i32_load8_u(ptr noundef %183, i64 noundef %186)
  store i32 %187, ptr %11, align 4, !tbaa !9
  %188 = load i32, ptr %11, align 4, !tbaa !9
  %189 = icmp ne i32 %188, 0
  %190 = xor i1 %189, true
  %191 = zext i1 %190 to i32
  store i32 %191, ptr %11, align 4, !tbaa !9
  %192 = load i32, ptr %11, align 4, !tbaa !9
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %201

194:                                              ; preds = %167
  %195 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %195, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %196 = load ptr, ptr %5, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.w2c_hermes, ptr %196, i32 0, i32 6
  %198 = load i32, ptr %11, align 4, !tbaa !9
  %199 = zext i32 %198 to i64
  %200 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %197, i64 noundef %199, i32 noundef %200)
  br label %348

201:                                              ; preds = %167
  %202 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %202, ptr %11, align 4, !tbaa !9
  %203 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %203, ptr %12, align 4, !tbaa !9
  %204 = load ptr, ptr %5, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.w2c_hermes, ptr %204, i32 0, i32 6
  %206 = load i32, ptr %12, align 4, !tbaa !9
  %207 = zext i32 %206 to i64
  %208 = add i64 %207, 36
  %209 = call i32 @i32_load(ptr noundef %205, i64 noundef %208)
  store i32 %209, ptr %12, align 4, !tbaa !9
  %210 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %210, ptr %10, align 4, !tbaa !9
  store i32 12, ptr %13, align 4, !tbaa !9
  %211 = load i32, ptr %13, align 4, !tbaa !9
  %212 = load i32, ptr %12, align 4, !tbaa !9
  %213 = add i32 %212, %211
  store i32 %213, ptr %12, align 4, !tbaa !9
  %214 = load ptr, ptr %5, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.w2c_hermes, ptr %214, i32 0, i32 6
  %216 = load i32, ptr %11, align 4, !tbaa !9
  %217 = zext i32 %216 to i64
  %218 = add i64 %217, 28
  %219 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %215, i64 noundef %218, i32 noundef %219)
  %220 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %220, ptr %11, align 4, !tbaa !9
  %221 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %221, ptr %12, align 4, !tbaa !9
  store i32 16, ptr %13, align 4, !tbaa !9
  %222 = load i32, ptr %13, align 4, !tbaa !9
  %223 = load i32, ptr %12, align 4, !tbaa !9
  %224 = add i32 %223, %222
  store i32 %224, ptr %12, align 4, !tbaa !9
  %225 = load ptr, ptr %5, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.w2c_hermes, ptr %225, i32 0, i32 6
  %227 = load i32, ptr %11, align 4, !tbaa !9
  %228 = zext i32 %227 to i64
  %229 = add i64 %228, 24
  %230 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %226, i64 noundef %229, i32 noundef %230)
  %231 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %231, ptr %11, align 4, !tbaa !9
  %232 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %232, ptr %12, align 4, !tbaa !9
  %233 = load ptr, ptr %5, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.w2c_hermes, ptr %233, i32 0, i32 6
  %235 = load i32, ptr %12, align 4, !tbaa !9
  %236 = zext i32 %235 to i64
  %237 = add i64 %236, 24
  %238 = call i64 @i64_load(ptr noundef %234, i64 noundef %237)
  store i64 %238, ptr %16, align 8, !tbaa !19
  %239 = load ptr, ptr %5, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.w2c_hermes, ptr %239, i32 0, i32 6
  %241 = load i32, ptr %11, align 4, !tbaa !9
  %242 = zext i32 %241 to i64
  %243 = add i64 %242, 16
  %244 = load i64, ptr %16, align 8, !tbaa !19
  call void @i64_store(ptr noundef %240, i64 noundef %243, i64 noundef %244)
  %245 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %245, ptr %11, align 4, !tbaa !9
  store i32 16, ptr %12, align 4, !tbaa !9
  %246 = load i32, ptr %12, align 4, !tbaa !9
  %247 = load i32, ptr %11, align 4, !tbaa !9
  %248 = add i32 %247, %246
  store i32 %248, ptr %11, align 4, !tbaa !9
  %249 = load double, ptr %8, align 8, !tbaa !11
  store double %249, ptr %19, align 8, !tbaa !11
  %250 = load ptr, ptr %5, align 8, !tbaa !5
  %251 = load i32, ptr %11, align 4, !tbaa !9
  %252 = load double, ptr %19, align 8, !tbaa !11
  %253 = call i32 @w2c_hermes_hermes0x3A0x3Abigint0x3A0x3AfromDouble0x28hermes0x3A0x3Abigint0x3A0x3AMutableBigIntRef0x2C0x20double0x29(ptr noundef %250, i32 noundef %251, double noundef %252)
  store i32 %253, ptr %11, align 4, !tbaa !9
  %254 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %254, ptr %10, align 4, !tbaa !9
  %255 = load i32, ptr %11, align 4, !tbaa !9
  %256 = icmp ne i32 %255, 0
  br i1 %256, label %257, label %297

257:                                              ; preds = %201
  %258 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %258, ptr %11, align 4, !tbaa !9
  %259 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %259, ptr %12, align 4, !tbaa !9
  %260 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %260, ptr %13, align 4, !tbaa !9
  %261 = load ptr, ptr %5, align 8, !tbaa !5
  %262 = load i32, ptr %12, align 4, !tbaa !9
  %263 = load i32, ptr %13, align 4, !tbaa !9
  %264 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3AraiseOnError0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Abigint0x3A0x3AOperationStatus0x29(ptr noundef %261, i32 noundef %262, i32 noundef %263)
  store i32 %264, ptr %12, align 4, !tbaa !9
  %265 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %265, ptr %7, align 4, !tbaa !9
  %266 = load ptr, ptr %5, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.w2c_hermes, ptr %266, i32 0, i32 6
  %268 = load i32, ptr %11, align 4, !tbaa !9
  %269 = zext i32 %268 to i64
  %270 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %267, i64 noundef %269, i32 noundef %270)
  %271 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %271, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %272 = load i32, ptr %11, align 4, !tbaa !9
  %273 = load i32, ptr %12, align 4, !tbaa !9
  %274 = icmp ne i32 %272, %273
  %275 = zext i1 %274 to i32
  store i32 %275, ptr %11, align 4, !tbaa !9
  %276 = load i32, ptr %11, align 4, !tbaa !9
  %277 = icmp ne i32 %276, 0
  br i1 %277, label %278, label %279

278:                                              ; preds = %257
  br label %348

279:                                              ; preds = %257
  store i32 0, ptr %11, align 4, !tbaa !9
  %280 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %280, ptr %9, align 4, !tbaa !9
  store i32 109717, ptr %12, align 4, !tbaa !9
  %281 = load i32, ptr %12, align 4, !tbaa !9
  %282 = load i32, ptr %11, align 4, !tbaa !9
  %283 = add i32 %282, %281
  store i32 %283, ptr %11, align 4, !tbaa !9
  %284 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %284, ptr %12, align 4, !tbaa !9
  store i32 77564, ptr %13, align 4, !tbaa !9
  %285 = load i32, ptr %13, align 4, !tbaa !9
  %286 = load i32, ptr %12, align 4, !tbaa !9
  %287 = add i32 %286, %285
  store i32 %287, ptr %12, align 4, !tbaa !9
  store i32 168, ptr %13, align 4, !tbaa !9
  %288 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %288, ptr %14, align 4, !tbaa !9
  store i32 28083, ptr %15, align 4, !tbaa !9
  %289 = load i32, ptr %15, align 4, !tbaa !9
  %290 = load i32, ptr %14, align 4, !tbaa !9
  %291 = add i32 %290, %289
  store i32 %291, ptr %14, align 4, !tbaa !9
  %292 = load ptr, ptr %5, align 8, !tbaa !5
  %293 = load i32, ptr %11, align 4, !tbaa !9
  %294 = load i32, ptr %12, align 4, !tbaa !9
  %295 = load i32, ptr %13, align 4, !tbaa !9
  %296 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %292, i32 noundef %293, i32 noundef %294, i32 noundef %295, i32 noundef %296)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

297:                                              ; preds = %201
  %298 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %298, ptr %11, align 4, !tbaa !9
  %299 = load ptr, ptr %5, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.w2c_hermes, ptr %299, i32 0, i32 6
  %301 = load i32, ptr %11, align 4, !tbaa !9
  %302 = zext i32 %301 to i64
  %303 = add i64 %302, 40
  %304 = call i32 @i32_load8_u(ptr noundef %300, i64 noundef %303)
  store i32 %304, ptr %11, align 4, !tbaa !9
  %305 = load i32, ptr %11, align 4, !tbaa !9
  %306 = icmp ne i32 %305, 0
  %307 = xor i1 %306, true
  %308 = zext i1 %307 to i32
  store i32 %308, ptr %11, align 4, !tbaa !9
  %309 = load i32, ptr %11, align 4, !tbaa !9
  %310 = icmp ne i32 %309, 0
  br i1 %310, label %311, label %312

311:                                              ; preds = %297
  br label %356

312:                                              ; preds = %297
  %313 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %313, ptr %11, align 4, !tbaa !9
  %314 = load ptr, ptr %5, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.w2c_hermes, ptr %314, i32 0, i32 6
  %316 = load i32, ptr %11, align 4, !tbaa !9
  %317 = zext i32 %316 to i64
  %318 = add i64 %317, 36
  %319 = call i32 @i32_load(ptr noundef %315, i64 noundef %318)
  store i32 %319, ptr %11, align 4, !tbaa !9
  %320 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %320, ptr %7, align 4, !tbaa !9
  %321 = load i32, ptr %11, align 4, !tbaa !9
  %322 = icmp ne i32 %321, 0
  %323 = xor i1 %322, true
  %324 = zext i1 %323 to i32
  store i32 %324, ptr %11, align 4, !tbaa !9
  %325 = load i32, ptr %11, align 4, !tbaa !9
  %326 = icmp ne i32 %325, 0
  br i1 %326, label %327, label %328

327:                                              ; preds = %312
  br label %374

328:                                              ; preds = %312
  %329 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %329, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %330 = load ptr, ptr %5, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.w2c_hermes, ptr %330, i32 0, i32 6
  %332 = load i32, ptr %11, align 4, !tbaa !9
  %333 = zext i32 %332 to i64
  %334 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %331, i64 noundef %333, i32 noundef %334)
  %335 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %335, ptr %11, align 4, !tbaa !9
  %336 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %336, ptr %12, align 4, !tbaa !9
  %337 = load i32, ptr %12, align 4, !tbaa !9
  %338 = zext i32 %337 to i64
  store i64 %338, ptr %16, align 8, !tbaa !19
  store i64 -562949953421312, ptr %17, align 8, !tbaa !19
  %339 = load i64, ptr %17, align 8, !tbaa !19
  %340 = load i64, ptr %16, align 8, !tbaa !19
  %341 = or i64 %340, %339
  store i64 %341, ptr %16, align 8, !tbaa !19
  %342 = load ptr, ptr %5, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.w2c_hermes, ptr %342, i32 0, i32 6
  %344 = load i32, ptr %11, align 4, !tbaa !9
  %345 = zext i32 %344 to i64
  %346 = add i64 %345, 8
  %347 = load i64, ptr %16, align 8, !tbaa !19
  call void @i64_store(ptr noundef %343, i64 noundef %346, i64 noundef %347)
  br label %348

348:                                              ; preds = %328, %278, %194, %116
  %349 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %349, ptr %11, align 4, !tbaa !9
  store i32 48, ptr %12, align 4, !tbaa !9
  %350 = load i32, ptr %12, align 4, !tbaa !9
  %351 = load i32, ptr %11, align 4, !tbaa !9
  %352 = add i32 %351, %350
  store i32 %352, ptr %11, align 4, !tbaa !9
  %353 = load i32, ptr %11, align 4, !tbaa !9
  %354 = load ptr, ptr %5, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.w2c_hermes, ptr %354, i32 0, i32 3
  store i32 %353, ptr %355, align 8, !tbaa !13
  br label %392

356:                                              ; preds = %311
  store i32 0, ptr %11, align 4, !tbaa !9
  %357 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %357, ptr %9, align 4, !tbaa !9
  store i32 109676, ptr %12, align 4, !tbaa !9
  %358 = load i32, ptr %12, align 4, !tbaa !9
  %359 = load i32, ptr %11, align 4, !tbaa !9
  %360 = add i32 %359, %358
  store i32 %360, ptr %11, align 4, !tbaa !9
  %361 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %361, ptr %12, align 4, !tbaa !9
  store i32 77564, ptr %13, align 4, !tbaa !9
  %362 = load i32, ptr %13, align 4, !tbaa !9
  %363 = load i32, ptr %12, align 4, !tbaa !9
  %364 = add i32 %363, %362
  store i32 %364, ptr %12, align 4, !tbaa !9
  store i32 128, ptr %13, align 4, !tbaa !9
  %365 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %365, ptr %14, align 4, !tbaa !9
  store i32 90402, ptr %15, align 4, !tbaa !9
  %366 = load i32, ptr %15, align 4, !tbaa !9
  %367 = load i32, ptr %14, align 4, !tbaa !9
  %368 = add i32 %367, %366
  store i32 %368, ptr %14, align 4, !tbaa !9
  %369 = load ptr, ptr %5, align 8, !tbaa !5
  %370 = load i32, ptr %11, align 4, !tbaa !9
  %371 = load i32, ptr %12, align 4, !tbaa !9
  %372 = load i32, ptr %13, align 4, !tbaa !9
  %373 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %369, i32 noundef %370, i32 noundef %371, i32 noundef %372, i32 noundef %373)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

374:                                              ; preds = %327
  store i32 0, ptr %11, align 4, !tbaa !9
  %375 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %375, ptr %9, align 4, !tbaa !9
  store i32 195004, ptr %12, align 4, !tbaa !9
  %376 = load i32, ptr %12, align 4, !tbaa !9
  %377 = load i32, ptr %11, align 4, !tbaa !9
  %378 = add i32 %377, %376
  store i32 %378, ptr %11, align 4, !tbaa !9
  %379 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %379, ptr %12, align 4, !tbaa !9
  store i32 83341, ptr %13, align 4, !tbaa !9
  %380 = load i32, ptr %13, align 4, !tbaa !9
  %381 = load i32, ptr %12, align 4, !tbaa !9
  %382 = add i32 %381, %380
  store i32 %382, ptr %12, align 4, !tbaa !9
  store i32 278, ptr %13, align 4, !tbaa !9
  %383 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %383, ptr %14, align 4, !tbaa !9
  store i32 90361, ptr %15, align 4, !tbaa !9
  %384 = load i32, ptr %15, align 4, !tbaa !9
  %385 = load i32, ptr %14, align 4, !tbaa !9
  %386 = add i32 %385, %384
  store i32 %386, ptr %14, align 4, !tbaa !9
  %387 = load ptr, ptr %5, align 8, !tbaa !5
  %388 = load i32, ptr %11, align 4, !tbaa !9
  %389 = load i32, ptr %12, align 4, !tbaa !9
  %390 = load i32, ptr %13, align 4, !tbaa !9
  %391 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %387, i32 noundef %388, i32 noundef %389, i32 noundef %390, i32 noundef %391)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

392:                                              ; preds = %348
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, 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
  ret void
}

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

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

declare i32 @w2c_hermes_hermes0x3A0x3Abigint0x3A0x3AfromDoubleResultSize0x28double0x29(ptr noundef, double noundef) #1

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

declare i32 @w2c_hermes_hermes0x3A0x3Abigint0x3A0x3AfromDouble0x28hermes0x3A0x3Abigint0x3A0x3AMutableBigIntRef0x2C0x20double0x29(ptr noundef, i32 noundef, double noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3AraiseOnError0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Abigint0x3A0x3AOperationStatus0x29(ptr noundef, i32 noundef, i32 noundef) #5

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}
!13 = !{!14, !10, i64 24}
!14 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !15, i64 40, !18, i64 80}
!15 = !{!"", !6, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !17, i64 32}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_Bool", !7, i64 0}
!18 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}
!19 = !{!16, !16, 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 void @i32_store(ptr noundef, i64 noundef, i32 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 i64 @i64_load(ptr noundef, i64 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3AfromDouble0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20double0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, double noundef %3) local_unnamed_addr #3 {
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = add i32 %6, -48
  store i32 %7, ptr %5, align 8, !tbaa !5
  %8 = fcmp uge double %3, 0x41DFFFFFFFC00000
  %9 = fcmp ule double %3, 0xC1E0000000000000
  %or.cond = or i1 %8, %9
  br i1 %or.cond, label %32, label %10

10:                                               ; preds = %4
  %11 = tail call double @wasm_fabs(double noundef %3)
  %12 = fcmp olt double %11, 0x41E0000000000000
  br i1 %12, label %13, label %19

13:                                               ; preds = %10
  %14 = fcmp ule double %3, 0xC1E0000000200000
  %15 = fcmp uge double %3, 0x41E0000000000000
  %.not203 = or i1 %14, %15
  br i1 %.not203, label %16, label %17, !prof !15

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

17:                                               ; preds = %13
  %18 = fptosi double %3 to i32
  br label %19

19:                                               ; preds = %10, %17
  %.0 = phi i32 [ %18, %17 ], [ -2147483648, %10 ]
  %20 = sitofp i32 %.0 to double
  %21 = fcmp une double %20, %3
  br i1 %21, label %32, label %22

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %0, i64 40
  %24 = zext i32 %7 to i64
  %25 = add nuw nsw i64 %24, 40
  tail call void @i32_store(ptr noundef nonnull %23, i64 noundef %25, i32 noundef 4)
  %26 = add nuw nsw i64 %24, 44
  tail call void @i32_store(ptr noundef nonnull %23, i64 noundef %26, i32 noundef %.0)
  %27 = add i32 %6, -4
  %28 = add nuw nsw i64 %24, 36
  tail call void @i32_store(ptr noundef nonnull %23, i64 noundef %28, i32 noundef %27)
  %29 = tail call i64 @i64_load(ptr noundef nonnull %23, i64 noundef %28)
  %30 = add nuw nsw i64 %24, 8
  tail call void @i64_store(ptr noundef nonnull %23, i64 noundef %30, i64 noundef %29)
  %31 = add i32 %6, -40
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3AfromBytes0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20llvh0x3A0x3AArrayRef0x3Cunsigned0x20char0x3E0x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2, i32 noundef %31)
  br label %65

32:                                               ; preds = %19, %4
  %33 = add i32 %6, -12
  %34 = tail call i32 @w2c_hermes_hermes0x3A0x3Abigint0x3A0x3AfromDoubleResultSize0x28double0x29(ptr noundef nonnull %0, double noundef %3) #5
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3AcreateUninitializedWithNumDigits0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20unsigned0x20int0x29(ptr noundef nonnull %0, i32 noundef %33, i32 noundef %2, i32 noundef %34)
  %35 = getelementptr inbounds i8, ptr %0, i64 40
  %36 = zext i32 %7 to i64
  %37 = add nuw nsw i64 %36, 40
  %38 = tail call i32 @i32_load8_u(ptr noundef nonnull %35, i64 noundef %37)
  %.not = icmp eq i32 %38, 0
  br i1 %.not, label %39, label %41

39:                                               ; preds = %32
  %40 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %35, i64 noundef %40, i32 noundef 0)
  br label %65

41:                                               ; preds = %32
  %42 = add nuw nsw i64 %36, 36
  %43 = tail call i32 @i32_load(ptr noundef nonnull %35, i64 noundef %42)
  %44 = add i32 %43, 12
  %45 = add nuw nsw i64 %36, 28
  tail call void @i32_store(ptr noundef nonnull %35, i64 noundef %45, i32 noundef %44)
  %46 = add i32 %43, 16
  %47 = add nuw nsw i64 %36, 24
  tail call void @i32_store(ptr noundef nonnull %35, i64 noundef %47, i32 noundef %46)
  %48 = tail call i64 @i64_load(ptr noundef nonnull %35, i64 noundef %47)
  %49 = add nuw nsw i64 %36, 16
  tail call void @i64_store(ptr noundef nonnull %35, i64 noundef %49, i64 noundef %48)
  %50 = add i32 %6, -32
  %51 = tail call i32 @w2c_hermes_hermes0x3A0x3Abigint0x3A0x3AfromDouble0x28hermes0x3A0x3Abigint0x3A0x3AMutableBigIntRef0x2C0x20double0x29(ptr noundef nonnull %0, i32 noundef %50, double noundef %3) #5
  %.not204 = icmp eq i32 %51, 0
  br i1 %.not204, label %56, label %52

52:                                               ; preds = %41
  %53 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3AraiseOnError0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Abigint0x3A0x3AOperationStatus0x29(ptr noundef nonnull %0, i32 noundef %2, i32 noundef %51)
  %54 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %35, i64 noundef %54, i32 noundef %53)
  %.not207 = icmp eq i32 %53, 1
  br i1 %.not207, label %55, label %65

55:                                               ; preds = %52
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 109717, i32 noundef 77564, i32 noundef 168, i32 noundef 28083) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable

56:                                               ; preds = %41
  %57 = tail call i32 @i32_load8_u(ptr noundef nonnull %35, i64 noundef %37)
  %.not205 = icmp eq i32 %57, 0
  br i1 %.not205, label %66, label %58

58:                                               ; preds = %56
  %59 = tail call i32 @i32_load(ptr noundef nonnull %35, i64 noundef %42)
  %.not206 = icmp eq i32 %59, 0
  br i1 %.not206, label %67, label %60

60:                                               ; preds = %58
  %61 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %35, i64 noundef %61, i32 noundef 1)
  %62 = zext i32 %59 to i64
  %63 = or disjoint i64 %62, -562949953421312
  %64 = add nuw nsw i64 %61, 8
  tail call void @i64_store(ptr noundef nonnull %35, i64 noundef %64, i64 noundef %63)
  br label %65

65:                                               ; preds = %52, %60, %39, %22
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret void

66:                                               ; preds = %56
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 109676, i32 noundef 77564, i32 noundef 128, i32 noundef 90402) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable

67:                                               ; preds = %58
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 195004, i32 noundef 83341, i32 noundef 278, i32 noundef 90361) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable
}

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

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3AfromBytes0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20llvh0x3A0x3AArrayRef0x3Cunsigned0x20char0x3E0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @w2c_hermes_hermes0x3A0x3Abigint0x3A0x3AfromDoubleResultSize0x28double0x29(ptr noundef, double noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3AcreateUninitializedWithNumDigits0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20unsigned0x20int0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @w2c_hermes_hermes0x3A0x3Abigint0x3A0x3AfromDouble0x28hermes0x3A0x3Abigint0x3A0x3AMutableBigIntRef0x2C0x20double0x29(ptr noundef, i32 noundef, double noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3AraiseOnError0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Abigint0x3A0x3AOperationStatus0x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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 = !{!6, !10, i64 24}
!6 = !{!"w2c_hermes", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !11, i64 40, !14, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"", !7, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12}
!15 = !{!"branch_weights", !"expected", i32 1, i32 2000}


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