; 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: 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: nounwind uwtable
declare dso_local void @w2c_hermes_operator0x20delete0x5B0x5D0x28void0x2A0x29(ptr noundef, i32 noundef) #3

; 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

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

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

40:                                               ; preds = %3
  %41 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %41, ptr %9, align 4, !tbaa !9
  store i32 16, ptr %10, align 4, !tbaa !9
  %42 = load i32, ptr %10, align 4, !tbaa !9
  %43 = load i32, ptr %9, align 4, !tbaa !9
  %44 = add i32 %43, %42
  store i32 %44, ptr %9, align 4, !tbaa !9
  %45 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %45, ptr %10, align 4, !tbaa !9
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.w2c_hermes, ptr %46, i32 0, i32 6
  %48 = load i32, ptr %10, align 4, !tbaa !9
  %49 = zext i32 %48 to i64
  %50 = add i64 %49, 4
  %51 = call i32 @i32_load(ptr noundef %47, i64 noundef %50)
  store i32 %51, ptr %10, align 4, !tbaa !9
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = load i32, ptr %9, align 4, !tbaa !9
  %54 = load i32, ptr %10, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3AAPFloat0x3A0x3AbitcastToAPInt0x280x290x20const(ptr noundef %52, i32 noundef %53, i32 noundef %54)
  %55 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %55, ptr %9, align 4, !tbaa !9
  %56 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %56, ptr %10, align 4, !tbaa !9
  store i32 16, ptr %11, align 4, !tbaa !9
  %57 = load i32, ptr %11, align 4, !tbaa !9
  %58 = load i32, ptr %10, align 4, !tbaa !9
  %59 = add i32 %58, %57
  store i32 %59, ptr %10, align 4, !tbaa !9
  %60 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %60, ptr %11, align 4, !tbaa !9
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.w2c_hermes, ptr %61, i32 0, i32 6
  %63 = load i32, ptr %11, align 4, !tbaa !9
  %64 = zext i32 %63 to i64
  %65 = add i64 %64, 16
  %66 = call i32 @i32_load(ptr noundef %62, i64 noundef %65)
  store i32 %66, ptr %11, align 4, !tbaa !9
  %67 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %67, ptr %12, align 4, !tbaa !9
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.w2c_hermes, ptr %68, i32 0, i32 6
  %70 = load i32, ptr %12, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = add i64 %71, 24
  %73 = call i32 @i32_load(ptr noundef %69, i64 noundef %72)
  store i32 %73, ptr %12, align 4, !tbaa !9
  store i32 65, ptr %13, align 4, !tbaa !9
  %74 = load i32, ptr %12, align 4, !tbaa !9
  %75 = load i32, ptr %13, align 4, !tbaa !9
  %76 = icmp ult i32 %74, %75
  %77 = zext i1 %76 to i32
  store i32 %77, ptr %12, align 4, !tbaa !9
  %78 = load i32, ptr %12, align 4, !tbaa !9
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %82

80:                                               ; preds = %40
  %81 = load i32, ptr %10, align 4, !tbaa !9
  br label %84

82:                                               ; preds = %40
  %83 = load i32, ptr %11, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %82, %80
  %85 = phi i32 [ %81, %80 ], [ %83, %82 ]
  store i32 %85, ptr %10, align 4, !tbaa !9
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.w2c_hermes, ptr %86, i32 0, i32 6
  %88 = load i32, ptr %10, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = call i64 @i64_load(ptr noundef %87, i64 noundef %89)
  store i64 %90, ptr %14, align 8, !tbaa !17
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.w2c_hermes, ptr %91, i32 0, i32 6
  %93 = load i32, ptr %9, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = add i64 %94, 32
  %96 = load i64, ptr %14, align 8, !tbaa !17
  call void @i64_store(ptr noundef %92, i64 noundef %95, i64 noundef %96)
  %97 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %97, ptr %9, align 4, !tbaa !9
  %98 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %98, ptr %10, align 4, !tbaa !9
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.w2c_hermes, ptr %99, i32 0, i32 6
  %101 = load i32, ptr %10, align 4, !tbaa !9
  %102 = zext i32 %101 to i64
  %103 = add i64 %102, 4
  %104 = call i32 @i32_load(ptr noundef %100, i64 noundef %103)
  store i32 %104, ptr %10, align 4, !tbaa !9
  store i32 32, ptr %11, align 4, !tbaa !9
  %105 = load i32, ptr %11, align 4, !tbaa !9
  %106 = load i32, ptr %10, align 4, !tbaa !9
  %107 = add i32 %106, %105
  store i32 %107, ptr %10, align 4, !tbaa !9
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = load i32, ptr %9, align 4, !tbaa !9
  %110 = load i32, ptr %10, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3AAPFloat0x3A0x3AbitcastToAPInt0x280x290x20const(ptr noundef %108, i32 noundef %109, i32 noundef %110)
  %111 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %111, ptr %9, align 4, !tbaa !9
  %112 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %112, ptr %10, align 4, !tbaa !9
  %113 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %113, ptr %11, align 4, !tbaa !9
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.w2c_hermes, ptr %114, i32 0, i32 6
  %116 = load i32, ptr %11, align 4, !tbaa !9
  %117 = zext i32 %116 to i64
  %118 = call i32 @i32_load(ptr noundef %115, i64 noundef %117)
  store i32 %118, ptr %11, align 4, !tbaa !9
  %119 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %119, ptr %6, align 4, !tbaa !9
  %120 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %120, ptr %12, align 4, !tbaa !9
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.w2c_hermes, ptr %121, i32 0, i32 6
  %123 = load i32, ptr %12, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = add i64 %124, 8
  %126 = call i32 @i32_load(ptr noundef %122, i64 noundef %125)
  store i32 %126, ptr %12, align 4, !tbaa !9
  store i32 65, ptr %13, align 4, !tbaa !9
  %127 = load i32, ptr %12, align 4, !tbaa !9
  %128 = load i32, ptr %13, align 4, !tbaa !9
  %129 = icmp ult i32 %127, %128
  %130 = zext i1 %129 to i32
  store i32 %130, ptr %12, align 4, !tbaa !9
  %131 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %131, ptr %8, align 4, !tbaa !9
  %132 = load i32, ptr %12, align 4, !tbaa !9
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %136

134:                                              ; preds = %84
  %135 = load i32, ptr %10, align 4, !tbaa !9
  br label %138

136:                                              ; preds = %84
  %137 = load i32, ptr %11, align 4, !tbaa !9
  br label %138

138:                                              ; preds = %136, %134
  %139 = phi i32 [ %135, %134 ], [ %137, %136 ]
  store i32 %139, ptr %10, align 4, !tbaa !9
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.w2c_hermes, ptr %140, i32 0, i32 6
  %142 = load i32, ptr %10, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = call i64 @i64_load(ptr noundef %141, i64 noundef %143)
  store i64 %144, ptr %14, align 8, !tbaa !17
  %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 %9, align 4, !tbaa !9
  %148 = zext i32 %147 to i64
  %149 = add i64 %148, 40
  %150 = load i64, ptr %14, align 8, !tbaa !17
  call void @i64_store(ptr noundef %146, i64 noundef %149, i64 noundef %150)
  %151 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %151, ptr %9, align 4, !tbaa !9
  %152 = load i32, ptr %9, align 4, !tbaa !9
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %154, label %155

154:                                              ; preds = %138
  br label %168

155:                                              ; preds = %138
  %156 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %156, ptr %9, align 4, !tbaa !9
  %157 = load i32, ptr %9, align 4, !tbaa !9
  %158 = icmp ne i32 %157, 0
  %159 = xor i1 %158, true
  %160 = zext i1 %159 to i32
  store i32 %160, ptr %9, align 4, !tbaa !9
  %161 = load i32, ptr %9, align 4, !tbaa !9
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %163, label %164

163:                                              ; preds = %155
  br label %168

164:                                              ; preds = %155
  %165 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %165, ptr %9, align 4, !tbaa !9
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x5B0x5D0x28void0x2A0x29(ptr noundef %166, i32 noundef %167)
  br label %168

168:                                              ; preds = %164, %163, %154
  %169 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %169, ptr %9, align 4, !tbaa !9
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.w2c_hermes, ptr %170, i32 0, i32 6
  %172 = load i32, ptr %9, align 4, !tbaa !9
  %173 = zext i32 %172 to i64
  %174 = add i64 %173, 24
  %175 = call i32 @i32_load(ptr noundef %171, i64 noundef %174)
  store i32 %175, ptr %9, align 4, !tbaa !9
  store i32 65, ptr %10, align 4, !tbaa !9
  %176 = load i32, ptr %9, align 4, !tbaa !9
  %177 = load i32, ptr %10, align 4, !tbaa !9
  %178 = icmp ult i32 %176, %177
  %179 = zext i1 %178 to i32
  store i32 %179, ptr %9, align 4, !tbaa !9
  %180 = load i32, ptr %9, align 4, !tbaa !9
  %181 = icmp ne i32 %180, 0
  br i1 %181, label %182, label %183

182:                                              ; preds = %168
  br label %203

183:                                              ; preds = %168
  %184 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %184, ptr %9, align 4, !tbaa !9
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.w2c_hermes, ptr %185, i32 0, i32 6
  %187 = load i32, ptr %9, align 4, !tbaa !9
  %188 = zext i32 %187 to i64
  %189 = add i64 %188, 16
  %190 = call i32 @i32_load(ptr noundef %186, i64 noundef %189)
  store i32 %190, ptr %9, align 4, !tbaa !9
  %191 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %191, ptr %6, align 4, !tbaa !9
  %192 = load i32, ptr %9, align 4, !tbaa !9
  %193 = icmp ne i32 %192, 0
  %194 = xor i1 %193, true
  %195 = zext i1 %194 to i32
  store i32 %195, ptr %9, align 4, !tbaa !9
  %196 = load i32, ptr %9, align 4, !tbaa !9
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %198, label %199

198:                                              ; preds = %183
  br label %203

199:                                              ; preds = %183
  %200 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %200, ptr %9, align 4, !tbaa !9
  %201 = load ptr, ptr %4, align 8, !tbaa !5
  %202 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x5B0x5D0x28void0x2A0x29(ptr noundef %201, i32 noundef %202)
  br label %203

203:                                              ; preds = %199, %198, %182
  %204 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %204, ptr %9, align 4, !tbaa !9
  store i32 128, ptr %10, align 4, !tbaa !9
  store i32 2, ptr %11, align 4, !tbaa !9
  %205 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %205, ptr %12, align 4, !tbaa !9
  store i32 32, ptr %13, align 4, !tbaa !9
  %206 = load i32, ptr %13, align 4, !tbaa !9
  %207 = load i32, ptr %12, align 4, !tbaa !9
  %208 = add i32 %207, %206
  store i32 %208, ptr %12, align 4, !tbaa !9
  %209 = load ptr, ptr %4, align 8, !tbaa !5
  %210 = load i32, ptr %9, align 4, !tbaa !9
  %211 = load i32, ptr %10, align 4, !tbaa !9
  %212 = load i32, ptr %11, align 4, !tbaa !9
  %213 = load i32, ptr %12, align 4, !tbaa !9
  %214 = call i32 @w2c_hermes_llvh0x3A0x3AAPInt0x3A0x3AAPInt0x28unsigned0x20int0x2C0x20unsigned0x20int0x2C0x20unsigned0x20long0x20long0x20const0x2A0x29(ptr noundef %209, i32 noundef %210, i32 noundef %211, i32 noundef %212, i32 noundef %213)
  store i32 %214, ptr %9, align 4, !tbaa !9
  %215 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %215, ptr %9, align 4, !tbaa !9
  store i32 48, ptr %10, align 4, !tbaa !9
  %216 = load i32, ptr %10, align 4, !tbaa !9
  %217 = load i32, ptr %9, align 4, !tbaa !9
  %218 = add i32 %217, %216
  store i32 %218, ptr %9, align 4, !tbaa !9
  %219 = load i32, ptr %9, align 4, !tbaa !9
  %220 = load ptr, ptr %4, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.w2c_hermes, ptr %220, i32 0, i32 3
  store i32 %219, ptr %221, align 8, !tbaa !11
  br label %240

222:                                              ; preds = %3
  store i32 0, ptr %9, align 4, !tbaa !9
  %223 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %223, ptr %7, align 4, !tbaa !9
  store i32 144188, ptr %10, align 4, !tbaa !9
  %224 = load i32, ptr %10, align 4, !tbaa !9
  %225 = load i32, ptr %9, align 4, !tbaa !9
  %226 = add i32 %225, %224
  store i32 %226, ptr %9, align 4, !tbaa !9
  %227 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %227, ptr %10, align 4, !tbaa !9
  store i32 55395, ptr %11, align 4, !tbaa !9
  %228 = load i32, ptr %11, align 4, !tbaa !9
  %229 = load i32, ptr %10, align 4, !tbaa !9
  %230 = add i32 %229, %228
  store i32 %230, ptr %10, align 4, !tbaa !9
  store i32 4272, ptr %11, align 4, !tbaa !9
  %231 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %231, ptr %12, align 4, !tbaa !9
  store i32 27671, ptr %13, align 4, !tbaa !9
  %232 = load i32, ptr %13, align 4, !tbaa !9
  %233 = load i32, ptr %12, align 4, !tbaa !9
  %234 = add i32 %233, %232
  store i32 %234, ptr %12, align 4, !tbaa !9
  %235 = load ptr, ptr %4, align 8, !tbaa !5
  %236 = load i32, ptr %9, align 4, !tbaa !9
  %237 = load i32, ptr %10, align 4, !tbaa !9
  %238 = load i32, ptr %11, align 4, !tbaa !9
  %239 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %235, i32 noundef %236, i32 noundef %237, i32 noundef %238, i32 noundef %239)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

240:                                              ; preds = %203
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, 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
}

declare void @w2c_hermes_llvh0x3A0x3AAPFloat0x3A0x3AbitcastToAPInt0x280x290x20const(ptr noundef, i32 noundef, i32 noundef) #4

declare i32 @w2c_hermes_llvh0x3A0x3AAPInt0x3A0x3AAPInt0x28unsigned0x20int0x2C0x20unsigned0x20int0x2C0x20unsigned0x20long0x20long0x20const0x2A0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

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 = { 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 = { "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, !10, i64 24}
!12 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !13, i64 40, !16, i64 80}
!13 = !{!"", !6, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !15, i64 32}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}
!17 = !{!14, !14, 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: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #1

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

; 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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_llvh0x3A0x3Adetail0x3A0x3ADoubleAPFloat0x3A0x3AbitcastToAPInt0x280x290x20const(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = add i32 %5, -48
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = zext i32 %2 to i64
  %9 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %8)
  %10 = icmp eq i32 %9, 216740
  br i1 %10, label %11, label %45

11:                                               ; preds = %3
  %12 = add i32 %5, -32
  %13 = add nuw nsw i64 %8, 4
  %14 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %13)
  tail call void @w2c_hermes_llvh0x3A0x3AAPFloat0x3A0x3AbitcastToAPInt0x280x290x20const(ptr noundef nonnull %0, i32 noundef %12, i32 noundef %14) #4
  %15 = zext i32 %6 to i64
  %16 = add nuw nsw i64 %15, 16
  %17 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %16)
  %18 = add nuw nsw i64 %15, 24
  %19 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %18)
  %20 = icmp ult i32 %19, 65
  %21 = select i1 %20, i32 %12, i32 %17
  %22 = zext i32 %21 to i64
  %23 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %22)
  %24 = add nuw nsw i64 %15, 32
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %24, i64 noundef %23)
  %25 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %13)
  %26 = add i32 %25, 32
  tail call void @w2c_hermes_llvh0x3A0x3AAPFloat0x3A0x3AbitcastToAPInt0x280x290x20const(ptr noundef nonnull %0, i32 noundef %6, i32 noundef %26) #4
  %27 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %15)
  %28 = add nuw nsw i64 %15, 8
  %29 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %28)
  %30 = icmp ult i32 %29, 65
  %31 = select i1 %30, i32 %6, i32 %27
  %32 = zext i32 %31 to i64
  %33 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %32)
  %34 = add nuw nsw i64 %15, 40
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %34, i64 noundef %33)
  %.not = icmp eq i32 %27, 0
  %or.cond = select i1 %30, i1 true, i1 %.not
  br i1 %or.cond, label %36, label %35

35:                                               ; preds = %11
  tail call void @w2c_hermes_operator0x20delete0x5B0x5D0x28void0x2A0x29(ptr noundef nonnull %0, i32 noundef %27)
  br label %36

36:                                               ; preds = %11, %35
  %37 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %18)
  %38 = icmp ult i32 %37, 65
  br i1 %38, label %42, label %39

39:                                               ; preds = %36
  %40 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %16)
  %.not122 = icmp eq i32 %40, 0
  br i1 %.not122, label %42, label %41

41:                                               ; preds = %39
  tail call void @w2c_hermes_operator0x20delete0x5B0x5D0x28void0x2A0x29(ptr noundef nonnull %0, i32 noundef %40)
  br label %42

42:                                               ; preds = %39, %36, %41
  %43 = add i32 %5, -16
  %44 = tail call i32 @w2c_hermes_llvh0x3A0x3AAPInt0x3A0x3AAPInt0x28unsigned0x20int0x2C0x20unsigned0x20int0x2C0x20unsigned0x20long0x20long0x20const0x2A0x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef 128, i32 noundef 2, i32 noundef %43) #4
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret void

45:                                               ; preds = %3
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 144188, i32 noundef 55395, i32 noundef 4272, i32 noundef 27671) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

declare void @w2c_hermes_llvh0x3A0x3AAPFloat0x3A0x3AbitcastToAPInt0x280x290x20const(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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

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

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

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