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

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

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

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

; 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_load(ptr noundef, i64 noundef) #1

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

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

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

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

45:                                               ; preds = %5
  br label %375

46:                                               ; preds = %5
  %47 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %47, ptr %16, align 4, !tbaa !9
  store i32 27, ptr %17, align 4, !tbaa !9
  %48 = load i32, ptr %16, align 4, !tbaa !9
  %49 = load i32, ptr %17, align 4, !tbaa !9
  %50 = icmp uge i32 %48, %49
  %51 = zext i1 %50 to i32
  store i32 %51, ptr %16, align 4, !tbaa !9
  %52 = load i32, ptr %16, align 4, !tbaa !9
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %55

54:                                               ; preds = %46
  br label %375

55:                                               ; preds = %46
  %56 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %56, ptr %16, align 4, !tbaa !9
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.w2c_hermes, ptr %57, i32 0, i32 6
  %59 = load i32, ptr %16, align 4, !tbaa !9
  %60 = zext i32 %59 to i64
  %61 = add i64 %60, 4
  %62 = call i32 @i32_load(ptr noundef %58, i64 noundef %61)
  store i32 %62, ptr %16, align 4, !tbaa !9
  %63 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %63, ptr %8, align 4, !tbaa !9
  %64 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %64, ptr %16, align 4, !tbaa !9
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.w2c_hermes, ptr %65, i32 0, i32 6
  %67 = load i32, ptr %16, align 4, !tbaa !9
  %68 = zext i32 %67 to i64
  %69 = call i32 @i32_load(ptr noundef %66, i64 noundef %68)
  store i32 %69, ptr %16, align 4, !tbaa !9
  %70 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %70, ptr %10, align 4, !tbaa !9
  %71 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %71, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.w2c_hermes, ptr %72, i32 0, i32 6
  %74 = load i32, ptr %16, align 4, !tbaa !9
  %75 = zext i32 %74 to i64
  %76 = add i64 %75, 24
  %77 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %73, i64 noundef %76, i32 noundef %77)
  %78 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %78, ptr %16, align 4, !tbaa !9
  %79 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %79, ptr %17, align 4, !tbaa !9
  store i32 8, ptr %18, align 4, !tbaa !9
  %80 = load i32, ptr %18, align 4, !tbaa !9
  %81 = load i32, ptr %17, align 4, !tbaa !9
  %82 = sub i32 %81, %80
  store i32 %82, ptr %17, align 4, !tbaa !9
  store i32 217528, ptr %18, align 4, !tbaa !9
  %83 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %83, ptr %19, align 4, !tbaa !9
  %84 = load i32, ptr %19, align 4, !tbaa !9
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %86, label %88

86:                                               ; preds = %55
  %87 = load i32, ptr %17, align 4, !tbaa !9
  br label %90

88:                                               ; preds = %55
  %89 = load i32, ptr %18, align 4, !tbaa !9
  br label %90

90:                                               ; preds = %88, %86
  %91 = phi i32 [ %87, %86 ], [ %89, %88 ]
  store i32 %91, ptr %17, align 4, !tbaa !9
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.w2c_hermes, ptr %92, i32 0, i32 6
  %94 = load i32, ptr %16, align 4, !tbaa !9
  %95 = zext i32 %94 to i64
  %96 = add i64 %95, 28
  %97 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %93, i64 noundef %96, i32 noundef %97)
  %98 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %98, ptr %16, align 4, !tbaa !9
  store i32 32, ptr %17, align 4, !tbaa !9
  %99 = load i32, ptr %17, align 4, !tbaa !9
  %100 = load i32, ptr %16, align 4, !tbaa !9
  %101 = add i32 %100, %99
  store i32 %101, ptr %16, align 4, !tbaa !9
  %102 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %102, ptr %17, align 4, !tbaa !9
  %103 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %103, ptr %18, align 4, !tbaa !9
  store i32 24, ptr %19, align 4, !tbaa !9
  %104 = load i32, ptr %19, align 4, !tbaa !9
  %105 = load i32, ptr %18, align 4, !tbaa !9
  %106 = add i32 %105, %104
  store i32 %106, ptr %18, align 4, !tbaa !9
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = load i32, ptr %16, align 4, !tbaa !9
  %109 = load i32, ptr %17, align 4, !tbaa !9
  %110 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %107, i32 noundef %108, i32 noundef %109, i32 noundef %110)
  %111 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %111, ptr %16, align 4, !tbaa !9
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.w2c_hermes, ptr %112, i32 0, i32 6
  %114 = load i32, ptr %16, align 4, !tbaa !9
  %115 = zext i32 %114 to i64
  %116 = add i64 %115, 24
  %117 = call i32 @i32_load(ptr noundef %113, i64 noundef %116)
  store i32 %117, ptr %16, align 4, !tbaa !9
  %118 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %118, ptr %12, align 4, !tbaa !9
  %119 = load i32, ptr %16, align 4, !tbaa !9
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %137

121:                                              ; preds = %90
  %122 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %122, ptr %16, align 4, !tbaa !9
  %123 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %123, ptr %17, align 4, !tbaa !9
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.w2c_hermes, ptr %124, i32 0, i32 6
  %126 = load i32, ptr %17, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = call i32 @i32_load(ptr noundef %125, i64 noundef %127)
  store i32 %128, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  %129 = load i32, ptr %18, align 4, !tbaa !9
  %130 = load i32, ptr %17, align 4, !tbaa !9
  %131 = sub i32 %130, %129
  store i32 %131, ptr %17, align 4, !tbaa !9
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.w2c_hermes, ptr %132, i32 0, i32 6
  %134 = load i32, ptr %16, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %133, i64 noundef %135, i32 noundef %136)
  br label %137

137:                                              ; preds = %121, %90
  %138 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %138, ptr %16, align 4, !tbaa !9
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.w2c_hermes, ptr %139, i32 0, i32 6
  %141 = load i32, ptr %16, align 4, !tbaa !9
  %142 = zext i32 %141 to i64
  %143 = add i64 %142, 32
  %144 = call i32 @i32_load(ptr noundef %140, i64 noundef %143)
  store i32 %144, ptr %16, align 4, !tbaa !9
  %145 = load i32, ptr %16, align 4, !tbaa !9
  switch i32 %145, label %148 [
    i32 0, label %146
    i32 1, label %147
  ]

146:                                              ; preds = %137
  br label %149

147:                                              ; preds = %137
  br label %174

148:                                              ; preds = %137
  br label %156

149:                                              ; preds = %146
  %150 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %150, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.w2c_hermes, ptr %151, i32 0, i32 6
  %153 = load i32, ptr %16, align 4, !tbaa !9
  %154 = zext i32 %153 to i64
  %155 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %152, i64 noundef %154, i32 noundef %155)
  br label %367

156:                                              ; preds = %148
  store i32 0, ptr %16, align 4, !tbaa !9
  %157 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %157, ptr %11, align 4, !tbaa !9
  store i32 109639, ptr %17, align 4, !tbaa !9
  %158 = load i32, ptr %17, align 4, !tbaa !9
  %159 = load i32, ptr %16, align 4, !tbaa !9
  %160 = add i32 %159, %158
  store i32 %160, ptr %16, align 4, !tbaa !9
  %161 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %161, ptr %17, align 4, !tbaa !9
  store i32 77564, ptr %18, align 4, !tbaa !9
  %162 = load i32, ptr %18, align 4, !tbaa !9
  %163 = load i32, ptr %17, align 4, !tbaa !9
  %164 = add i32 %163, %162
  store i32 %164, ptr %17, align 4, !tbaa !9
  store i32 179, ptr %18, align 4, !tbaa !9
  %165 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %165, ptr %19, align 4, !tbaa !9
  store i32 90402, ptr %20, align 4, !tbaa !9
  %166 = load i32, ptr %20, align 4, !tbaa !9
  %167 = load i32, ptr %19, align 4, !tbaa !9
  %168 = add i32 %167, %166
  store i32 %168, ptr %19, align 4, !tbaa !9
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = load i32, ptr %16, align 4, !tbaa !9
  %171 = load i32, ptr %17, align 4, !tbaa !9
  %172 = load i32, ptr %18, align 4, !tbaa !9
  %173 = load i32, ptr %19, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %169, i32 noundef %170, i32 noundef %171, i32 noundef %172, i32 noundef %173)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

174:                                              ; preds = %147
  %175 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %175, ptr %16, align 4, !tbaa !9
  %176 = load ptr, ptr %6, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.w2c_hermes, ptr %176, i32 0, i32 6
  %178 = load i32, ptr %16, align 4, !tbaa !9
  %179 = zext i32 %178 to i64
  %180 = add i64 %179, 40
  %181 = call i64 @i64_load(ptr noundef %177, i64 noundef %180)
  store i64 %181, ptr %21, align 8, !tbaa !11
  %182 = load i64, ptr %21, align 8, !tbaa !11
  store i64 %182, ptr %14, align 8, !tbaa !11
  store i64 -1970324836974592, ptr %22, align 8, !tbaa !11
  %183 = load i64, ptr %21, align 8, !tbaa !11
  %184 = load i64, ptr %22, align 8, !tbaa !11
  %185 = icmp uge i64 %183, %184
  %186 = zext i1 %185 to i32
  store i32 %186, ptr %16, align 4, !tbaa !9
  %187 = load i32, ptr %16, align 4, !tbaa !9
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %189, label %190

189:                                              ; preds = %174
  br label %393

190:                                              ; preds = %174
  %191 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %191, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  %192 = load ptr, ptr %6, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.w2c_hermes, ptr %192, i32 0, i32 6
  %194 = load i32, ptr %16, align 4, !tbaa !9
  %195 = zext i32 %194 to i64
  %196 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %193, i64 noundef %195, i32 noundef %196)
  %197 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %197, ptr %16, align 4, !tbaa !9
  store i32 217528, ptr %17, align 4, !tbaa !9
  %198 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %198, ptr %18, align 4, !tbaa !9
  store i32 16, ptr %19, align 4, !tbaa !9
  %199 = load i32, ptr %19, align 4, !tbaa !9
  %200 = load i32, ptr %18, align 4, !tbaa !9
  %201 = sub i32 %200, %199
  store i32 %201, ptr %18, align 4, !tbaa !9
  %202 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %202, ptr %19, align 4, !tbaa !9
  store i32 1, ptr %20, align 4, !tbaa !9
  %203 = load i32, ptr %19, align 4, !tbaa !9
  %204 = load i32, ptr %20, align 4, !tbaa !9
  %205 = icmp ule i32 %203, %204
  %206 = zext i1 %205 to i32
  store i32 %206, ptr %19, align 4, !tbaa !9
  %207 = load i32, ptr %19, align 4, !tbaa !9
  %208 = icmp ne i32 %207, 0
  br i1 %208, label %209, label %211

209:                                              ; preds = %190
  %210 = load i32, ptr %17, align 4, !tbaa !9
  br label %213

211:                                              ; preds = %190
  %212 = load i32, ptr %18, align 4, !tbaa !9
  br label %213

213:                                              ; preds = %211, %209
  %214 = phi i32 [ %210, %209 ], [ %212, %211 ]
  store i32 %214, ptr %17, align 4, !tbaa !9
  %215 = load ptr, ptr %6, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.w2c_hermes, ptr %215, i32 0, i32 6
  %217 = load i32, ptr %16, align 4, !tbaa !9
  %218 = zext i32 %217 to i64
  %219 = add i64 %218, 4
  %220 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %216, i64 noundef %219, i32 noundef %220)
  %221 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %221, ptr %16, align 4, !tbaa !9
  store i32 8, ptr %17, align 4, !tbaa !9
  %222 = load i32, ptr %17, align 4, !tbaa !9
  %223 = load i32, ptr %16, align 4, !tbaa !9
  %224 = add i32 %223, %222
  store i32 %224, ptr %16, align 4, !tbaa !9
  %225 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %225, ptr %17, align 4, !tbaa !9
  %226 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %226, ptr %18, align 4, !tbaa !9
  %227 = load ptr, ptr %6, align 8, !tbaa !5
  %228 = load i32, ptr %16, align 4, !tbaa !9
  %229 = load i32, ptr %17, align 4, !tbaa !9
  %230 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %227, i32 noundef %228, i32 noundef %229, i32 noundef %230)
  %231 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %231, ptr %16, align 4, !tbaa !9
  %232 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %232, ptr %17, align 4, !tbaa !9
  %233 = load ptr, ptr %6, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.w2c_hermes, ptr %233, i32 0, i32 6
  %235 = load i32, ptr %17, align 4, !tbaa !9
  %236 = zext i32 %235 to i64
  %237 = add i64 %236, 8
  %238 = call i32 @i32_load(ptr noundef %234, i64 noundef %237)
  store i32 %238, ptr %17, align 4, !tbaa !9
  %239 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %239, ptr %10, align 4, !tbaa !9
  %240 = load ptr, ptr %6, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.w2c_hermes, ptr %240, i32 0, i32 6
  %242 = load i32, ptr %16, align 4, !tbaa !9
  %243 = zext i32 %242 to i64
  %244 = add i64 %243, 32
  %245 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %241, i64 noundef %244, i32 noundef %245)
  %246 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %246, ptr %16, align 4, !tbaa !9
  %247 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %247, ptr %17, align 4, !tbaa !9
  %248 = load ptr, ptr %6, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.w2c_hermes, ptr %248, i32 0, i32 6
  %250 = load i32, ptr %17, align 4, !tbaa !9
  %251 = zext i32 %250 to i64
  %252 = add i64 %251, 16
  %253 = call i64 @i64_load(ptr noundef %249, i64 noundef %252)
  store i64 %253, ptr %22, align 8, !tbaa !11
  %254 = load i64, ptr %22, align 8, !tbaa !11
  store i64 %254, ptr %13, align 8, !tbaa !11
  %255 = load ptr, ptr %6, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.w2c_hermes, ptr %255, i32 0, i32 6
  %257 = load i32, ptr %16, align 4, !tbaa !9
  %258 = zext i32 %257 to i64
  %259 = add i64 %258, 40
  %260 = load i64, ptr %22, align 8, !tbaa !11
  call void @i64_store(ptr noundef %256, i64 noundef %259, i64 noundef %260)
  %261 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %261, ptr %16, align 4, !tbaa !9
  %262 = load ptr, ptr %6, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.w2c_hermes, ptr %262, i32 0, i32 6
  %264 = load i32, ptr %16, align 4, !tbaa !9
  %265 = zext i32 %264 to i64
  %266 = call i32 @i32_load(ptr noundef %263, i64 noundef %265)
  store i32 %266, ptr %16, align 4, !tbaa !9
  %267 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %267, ptr %8, align 4, !tbaa !9
  %268 = load i32, ptr %16, align 4, !tbaa !9
  %269 = icmp ne i32 %268, 0
  br i1 %269, label %270, label %286

270:                                              ; preds = %213
  %271 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %271, ptr %16, align 4, !tbaa !9
  %272 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %272, ptr %17, align 4, !tbaa !9
  %273 = load ptr, ptr %6, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.w2c_hermes, ptr %273, i32 0, i32 6
  %275 = load i32, ptr %17, align 4, !tbaa !9
  %276 = zext i32 %275 to i64
  %277 = call i32 @i32_load(ptr noundef %274, i64 noundef %276)
  store i32 %277, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  %278 = load i32, ptr %18, align 4, !tbaa !9
  %279 = load i32, ptr %17, align 4, !tbaa !9
  %280 = sub i32 %279, %278
  store i32 %280, ptr %17, align 4, !tbaa !9
  %281 = load ptr, ptr %6, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.w2c_hermes, ptr %281, i32 0, i32 6
  %283 = load i32, ptr %16, align 4, !tbaa !9
  %284 = zext i32 %283 to i64
  %285 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %282, i64 noundef %284, i32 noundef %285)
  br label %286

286:                                              ; preds = %270, %213
  %287 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %287, ptr %16, align 4, !tbaa !9
  %288 = load i32, ptr %16, align 4, !tbaa !9
  switch i32 %288, label %291 [
    i32 0, label %289
    i32 1, label %290
  ]

289:                                              ; preds = %286
  br label %292

290:                                              ; preds = %286
  br label %317

291:                                              ; preds = %286
  br label %299

292:                                              ; preds = %289
  %293 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %293, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  %294 = load ptr, ptr %6, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.w2c_hermes, ptr %294, i32 0, i32 6
  %296 = load i32, ptr %16, align 4, !tbaa !9
  %297 = zext i32 %296 to i64
  %298 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %295, i64 noundef %297, i32 noundef %298)
  br label %367

299:                                              ; preds = %291
  store i32 0, ptr %16, align 4, !tbaa !9
  %300 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %300, ptr %11, align 4, !tbaa !9
  store i32 109639, ptr %17, align 4, !tbaa !9
  %301 = load i32, ptr %17, align 4, !tbaa !9
  %302 = load i32, ptr %16, align 4, !tbaa !9
  %303 = add i32 %302, %301
  store i32 %303, ptr %16, align 4, !tbaa !9
  %304 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %304, ptr %17, align 4, !tbaa !9
  store i32 77564, ptr %18, align 4, !tbaa !9
  %305 = load i32, ptr %18, align 4, !tbaa !9
  %306 = load i32, ptr %17, align 4, !tbaa !9
  %307 = add i32 %306, %305
  store i32 %307, ptr %17, align 4, !tbaa !9
  store i32 179, ptr %18, align 4, !tbaa !9
  %308 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %308, ptr %19, align 4, !tbaa !9
  store i32 90402, ptr %20, align 4, !tbaa !9
  %309 = load i32, ptr %20, align 4, !tbaa !9
  %310 = load i32, ptr %19, align 4, !tbaa !9
  %311 = add i32 %310, %309
  store i32 %311, ptr %19, align 4, !tbaa !9
  %312 = load ptr, ptr %6, align 8, !tbaa !5
  %313 = load i32, ptr %16, align 4, !tbaa !9
  %314 = load i32, ptr %17, align 4, !tbaa !9
  %315 = load i32, ptr %18, align 4, !tbaa !9
  %316 = load i32, ptr %19, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %312, i32 noundef %313, i32 noundef %314, i32 noundef %315, i32 noundef %316)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

317:                                              ; preds = %290
  %318 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %318, ptr %21, align 8, !tbaa !11
  store i64 -1970324836974592, ptr %22, align 8, !tbaa !11
  %319 = load i64, ptr %21, align 8, !tbaa !11
  %320 = load i64, ptr %22, align 8, !tbaa !11
  %321 = icmp uge i64 %319, %320
  %322 = zext i1 %321 to i32
  store i32 %322, ptr %16, align 4, !tbaa !9
  %323 = load i32, ptr %16, align 4, !tbaa !9
  %324 = icmp ne i32 %323, 0
  br i1 %324, label %325, label %326

325:                                              ; preds = %317
  br label %411

326:                                              ; preds = %317
  %327 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %327, ptr %16, align 4, !tbaa !9
  store i32 1, ptr %17, align 4, !tbaa !9
  %328 = load ptr, ptr %6, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.w2c_hermes, ptr %328, i32 0, i32 6
  %330 = load i32, ptr %16, align 4, !tbaa !9
  %331 = zext i32 %330 to i64
  %332 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %329, i64 noundef %331, i32 noundef %332)
  %333 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %333, ptr %16, align 4, !tbaa !9
  store i64 9221120237041090560, ptr %22, align 8, !tbaa !11
  %334 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %334, ptr %23, align 8, !tbaa !11
  %335 = load i64, ptr %23, align 8, !tbaa !11
  %336 = call double @f64_reinterpret_i64(i64 noundef %335)
  store double %336, ptr %25, align 8, !tbaa !13
  %337 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %337, ptr %24, align 8, !tbaa !11
  %338 = load i64, ptr %24, align 8, !tbaa !11
  %339 = call double @f64_reinterpret_i64(i64 noundef %338)
  store double %339, ptr %26, align 8, !tbaa !13
  %340 = load ptr, ptr %6, align 8, !tbaa !5
  %341 = load double, ptr %25, align 8, !tbaa !13
  %342 = load double, ptr %26, align 8, !tbaa !13
  %343 = call double @w2c_hermes_atan2(ptr noundef %340, double noundef %341, double noundef %342)
  store double %343, ptr %25, align 8, !tbaa !13
  %344 = load double, ptr %25, align 8, !tbaa !13
  store double %344, ptr %15, align 8, !tbaa !13
  %345 = load double, ptr %25, align 8, !tbaa !13
  %346 = call i64 @i64_reinterpret_f64(double noundef %345)
  store i64 %346, ptr %23, align 8, !tbaa !11
  %347 = load double, ptr %15, align 8, !tbaa !13
  store double %347, ptr %26, align 8, !tbaa !13
  %348 = load double, ptr %15, align 8, !tbaa !13
  store double %348, ptr %27, align 8, !tbaa !13
  %349 = load double, ptr %26, align 8, !tbaa !13
  %350 = load double, ptr %27, align 8, !tbaa !13
  %351 = fcmp une double %349, %350
  %352 = zext i1 %351 to i32
  store i32 %352, ptr %19, align 4, !tbaa !9
  %353 = load i32, ptr %19, align 4, !tbaa !9
  %354 = icmp ne i32 %353, 0
  br i1 %354, label %355, label %357

355:                                              ; preds = %326
  %356 = load i64, ptr %22, align 8, !tbaa !11
  br label %359

357:                                              ; preds = %326
  %358 = load i64, ptr %23, align 8, !tbaa !11
  br label %359

359:                                              ; preds = %357, %355
  %360 = phi i64 [ %356, %355 ], [ %358, %357 ]
  store i64 %360, ptr %22, align 8, !tbaa !11
  %361 = load ptr, ptr %6, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.w2c_hermes, ptr %361, i32 0, i32 6
  %363 = load i32, ptr %16, align 4, !tbaa !9
  %364 = zext i32 %363 to i64
  %365 = add i64 %364, 8
  %366 = load i64, ptr %22, align 8, !tbaa !11
  call void @i64_store(ptr noundef %362, i64 noundef %365, i64 noundef %366)
  br label %367

367:                                              ; preds = %359, %292, %149
  %368 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %368, ptr %16, align 4, !tbaa !9
  store i32 48, ptr %17, align 4, !tbaa !9
  %369 = load i32, ptr %17, align 4, !tbaa !9
  %370 = load i32, ptr %16, align 4, !tbaa !9
  %371 = add i32 %370, %369
  store i32 %371, ptr %16, align 4, !tbaa !9
  %372 = load i32, ptr %16, align 4, !tbaa !9
  %373 = load ptr, ptr %6, align 8, !tbaa !5
  %374 = getelementptr inbounds %struct.w2c_hermes, ptr %373, i32 0, i32 3
  store i32 %372, ptr %374, align 8, !tbaa !15
  br label %429

375:                                              ; preds = %54, %45
  store i32 0, ptr %16, align 4, !tbaa !9
  %376 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %376, ptr %11, align 4, !tbaa !9
  store i32 175083, ptr %17, align 4, !tbaa !9
  %377 = load i32, ptr %17, align 4, !tbaa !9
  %378 = load i32, ptr %16, align 4, !tbaa !9
  %379 = add i32 %378, %377
  store i32 %379, ptr %16, align 4, !tbaa !9
  %380 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %380, ptr %17, align 4, !tbaa !9
  store i32 59922, ptr %18, align 4, !tbaa !9
  %381 = load i32, ptr %18, align 4, !tbaa !9
  %382 = load i32, ptr %17, align 4, !tbaa !9
  %383 = add i32 %382, %381
  store i32 %383, ptr %17, align 4, !tbaa !9
  store i32 127, ptr %18, align 4, !tbaa !9
  %384 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %384, ptr %19, align 4, !tbaa !9
  store i32 86593, ptr %20, align 4, !tbaa !9
  %385 = load i32, ptr %20, align 4, !tbaa !9
  %386 = load i32, ptr %19, align 4, !tbaa !9
  %387 = add i32 %386, %385
  store i32 %387, ptr %19, align 4, !tbaa !9
  %388 = load ptr, ptr %6, align 8, !tbaa !5
  %389 = load i32, ptr %16, align 4, !tbaa !9
  %390 = load i32, ptr %17, align 4, !tbaa !9
  %391 = load i32, ptr %18, align 4, !tbaa !9
  %392 = load i32, ptr %19, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %388, i32 noundef %389, i32 noundef %390, i32 noundef %391, i32 noundef %392)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

393:                                              ; preds = %189
  store i32 0, ptr %16, align 4, !tbaa !9
  %394 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %394, ptr %11, align 4, !tbaa !9
  store i32 118741, ptr %17, align 4, !tbaa !9
  %395 = load i32, ptr %17, align 4, !tbaa !9
  %396 = load i32, ptr %16, align 4, !tbaa !9
  %397 = add i32 %396, %395
  store i32 %397, ptr %16, align 4, !tbaa !9
  %398 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %398, ptr %17, align 4, !tbaa !9
  store i32 83341, ptr %18, align 4, !tbaa !9
  %399 = load i32, ptr %18, align 4, !tbaa !9
  %400 = load i32, ptr %17, align 4, !tbaa !9
  %401 = add i32 %400, %399
  store i32 %401, ptr %17, align 4, !tbaa !9
  store i32 444, ptr %18, align 4, !tbaa !9
  %402 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %402, ptr %19, align 4, !tbaa !9
  store i32 97283, ptr %20, align 4, !tbaa !9
  %403 = load i32, ptr %20, align 4, !tbaa !9
  %404 = load i32, ptr %19, align 4, !tbaa !9
  %405 = add i32 %404, %403
  store i32 %405, ptr %19, align 4, !tbaa !9
  %406 = load ptr, ptr %6, align 8, !tbaa !5
  %407 = load i32, ptr %16, align 4, !tbaa !9
  %408 = load i32, ptr %17, align 4, !tbaa !9
  %409 = load i32, ptr %18, align 4, !tbaa !9
  %410 = load i32, ptr %19, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %406, i32 noundef %407, i32 noundef %408, i32 noundef %409, i32 noundef %410)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

411:                                              ; preds = %325
  store i32 0, ptr %16, align 4, !tbaa !9
  %412 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %412, ptr %11, align 4, !tbaa !9
  store i32 118741, ptr %17, align 4, !tbaa !9
  %413 = load i32, ptr %17, align 4, !tbaa !9
  %414 = load i32, ptr %16, align 4, !tbaa !9
  %415 = add i32 %414, %413
  store i32 %415, ptr %16, align 4, !tbaa !9
  %416 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %416, ptr %17, align 4, !tbaa !9
  store i32 83341, ptr %18, align 4, !tbaa !9
  %417 = load i32, ptr %18, align 4, !tbaa !9
  %418 = load i32, ptr %17, align 4, !tbaa !9
  %419 = add i32 %418, %417
  store i32 %419, ptr %17, align 4, !tbaa !9
  store i32 444, ptr %18, align 4, !tbaa !9
  %420 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %420, ptr %19, align 4, !tbaa !9
  store i32 97283, ptr %20, align 4, !tbaa !9
  %421 = load i32, ptr %20, align 4, !tbaa !9
  %422 = load i32, ptr %19, align 4, !tbaa !9
  %423 = add i32 %422, %421
  store i32 %423, ptr %19, align 4, !tbaa !9
  %424 = load ptr, ptr %6, align 8, !tbaa !5
  %425 = load i32, ptr %16, align 4, !tbaa !9
  %426 = load i32, ptr %17, align 4, !tbaa !9
  %427 = load i32, ptr %18, align 4, !tbaa !9
  %428 = load i32, ptr %19, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %424, i32 noundef %425, i32 noundef %426, i32 noundef %427, i32 noundef %428)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

429:                                              ; preds = %367
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, 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
  ret void
}

declare double @w2c_hermes_atan2(ptr noundef, double noundef, double noundef) #3

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}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !10, i64 24}
!16 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !17, i64 40, !19, i64 80}
!17 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !18, i64 32}
!18 = !{!"_Bool", !7, i64 0}
!19 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}


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

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

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

declare 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 void @i64_store(ptr noundef, i64 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 i64 @i64_reinterpret_f64(double noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ArunContextFunc2Arg0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #3 {
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = add i32 %7, -48
  store i32 %8, ptr %6, align 8, !tbaa !5
  %.not = icmp eq i32 %2, 26
  br i1 %.not, label %9, label %68

9:                                                ; preds = %5
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = zext i32 %4 to i64
  %12 = add nuw nsw i64 %11, 4
  %13 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %12)
  %14 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %11)
  %15 = zext i32 %8 to i64
  %16 = add nuw nsw i64 %15, 24
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %16, i32 noundef 0)
  %17 = add i32 %14, -8
  %.not245 = icmp eq i32 %13, 0
  %18 = select i1 %.not245, i32 217528, i32 %17
  %19 = add nuw nsw i64 %15, 28
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %19, i32 noundef %18)
  %20 = add i32 %7, -16
  %21 = add i32 %7, -24
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef nonnull %0, i32 noundef %20, i32 noundef %3, i32 noundef %21)
  %22 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %16)
  %.not246 = icmp eq i32 %22, 0
  br i1 %.not246, label %27, label %23

23:                                               ; preds = %9
  %24 = zext i32 %22 to i64
  %25 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %24)
  %26 = add i32 %25, -1
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %24, i32 noundef %26)
  br label %27

27:                                               ; preds = %23, %9
  %28 = add nuw nsw i64 %15, 32
  %29 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %28)
  switch i32 %29, label %32 [
    i32 0, label %30
    i32 1, label %33
  ]

30:                                               ; preds = %27
  %31 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %31, i32 noundef 0)
  br label %67

32:                                               ; preds = %27
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 109639, i32 noundef 77564, i32 noundef 179, i32 noundef 90402) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

33:                                               ; preds = %27
  %34 = add nuw nsw i64 %15, 40
  %35 = tail call i64 @i64_load(ptr noundef nonnull %10, i64 noundef %34)
  %36 = icmp ugt i64 %35, -1970324836974593
  br i1 %36, label %69, label %37

37:                                               ; preds = %33
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %15, i32 noundef 0)
  %38 = add i32 %14, -16
  %39 = icmp ult i32 %13, 2
  %40 = select i1 %39, i32 217528, i32 %38
  %41 = add nuw nsw i64 %15, 4
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %41, i32 noundef %40)
  %42 = add i32 %7, -40
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef nonnull %0, i32 noundef %42, i32 noundef %3, i32 noundef %8)
  %43 = add nuw nsw i64 %15, 8
  %44 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %43)
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %28, i32 noundef %44)
  %45 = add nuw nsw i64 %15, 16
  %46 = tail call i64 @i64_load(ptr noundef nonnull %10, i64 noundef %45)
  tail call void @i64_store(ptr noundef nonnull %10, i64 noundef %34, i64 noundef %46)
  %47 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %15)
  %.not247 = icmp eq i32 %47, 0
  br i1 %.not247, label %52, label %48

48:                                               ; preds = %37
  %49 = zext i32 %47 to i64
  %50 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %49)
  %51 = add i32 %50, -1
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %49, i32 noundef %51)
  br label %52

52:                                               ; preds = %48, %37
  switch i32 %44, label %55 [
    i32 0, label %53
    i32 1, label %56
  ]

53:                                               ; preds = %52
  %54 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %54, i32 noundef 0)
  br label %67

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

56:                                               ; preds = %52
  %57 = icmp ugt i64 %46, -1970324836974593
  br i1 %57, label %70, label %58

58:                                               ; preds = %56
  %59 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %59, i32 noundef 1)
  %60 = tail call double @f64_reinterpret_i64(i64 noundef %35)
  %61 = tail call double @f64_reinterpret_i64(i64 noundef %46)
  %62 = tail call double @w2c_hermes_atan2(ptr noundef nonnull %0, double noundef %60, double noundef %61) #4
  %63 = tail call i64 @i64_reinterpret_f64(double noundef %62)
  %64 = fcmp uno double %62, 0.000000e+00
  %65 = select i1 %64, i64 9221120237041090560, i64 %63
  %66 = add nuw nsw i64 %59, 8
  tail call void @i64_store(ptr noundef nonnull %10, i64 noundef %66, i64 noundef %65)
  br label %67

67:                                               ; preds = %58, %53, %30
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret void

68:                                               ; preds = %5
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 175083, i32 noundef 59922, i32 noundef 127, i32 noundef 86593) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

69:                                               ; preds = %33
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 118741, i32 noundef 83341, i32 noundef 444, i32 noundef 97283) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

70:                                               ; preds = %56
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 118741, i32 noundef 83341, i32 noundef 444, i32 noundef 97283) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

declare double @w2c_hermes_atan2(ptr noundef, double noundef, double noundef) local_unnamed_addr #2

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)"}
!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}


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