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

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

43:                                               ; preds = %4
  %44 = load i32, ptr %15, align 4, !tbaa !9
  br label %47

45:                                               ; preds = %4
  %46 = load i32, ptr %16, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %45, %43
  %48 = phi i32 [ %44, %43 ], [ %46, %45 ]
  store i32 %48, ptr %15, align 4, !tbaa !9
  %49 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %49, ptr %10, align 4, !tbaa !9
  %50 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %50, ptr %15, align 4, !tbaa !9
  store i32 4, ptr %16, align 4, !tbaa !9
  %51 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %51, ptr %17, align 4, !tbaa !9
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.w2c_hermes, ptr %52, i32 0, i32 6
  %54 = load i32, ptr %17, align 4, !tbaa !9
  %55 = zext i32 %54 to i64
  %56 = add i64 %55, 12
  %57 = call i32 @i32_load(ptr noundef %53, i64 noundef %56)
  store i32 %57, ptr %17, align 4, !tbaa !9
  %58 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %58, ptr %18, align 4, !tbaa !9
  %59 = load i32, ptr %18, align 4, !tbaa !9
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %63

61:                                               ; preds = %47
  %62 = load i32, ptr %16, align 4, !tbaa !9
  br label %65

63:                                               ; preds = %47
  %64 = load i32, ptr %17, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %63, %61
  %66 = phi i32 [ %62, %61 ], [ %64, %63 ]
  store i32 %66, ptr %16, align 4, !tbaa !9
  %67 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %67, ptr %7, align 4, !tbaa !9
  %68 = load i32, ptr %16, align 4, !tbaa !9
  %69 = icmp ne i32 %68, 0
  %70 = xor i1 %69, true
  %71 = zext i1 %70 to i32
  store i32 %71, ptr %16, align 4, !tbaa !9
  %72 = load i32, ptr %16, align 4, !tbaa !9
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %75

74:                                               ; preds = %65
  br label %186

75:                                               ; preds = %65
  %76 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %76, ptr %16, align 4, !tbaa !9
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.w2c_hermes, ptr %77, i32 0, i32 6
  %79 = load i32, ptr %16, align 4, !tbaa !9
  %80 = zext i32 %79 to i64
  %81 = call i32 @i32_load(ptr noundef %78, i64 noundef %80)
  store i32 %81, ptr %16, align 4, !tbaa !9
  %82 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %82, ptr %8, align 4, !tbaa !9
  store i32 -2, ptr %17, align 4, !tbaa !9
  %83 = load i32, ptr %16, align 4, !tbaa !9
  %84 = load i32, ptr %17, align 4, !tbaa !9
  %85 = icmp uge i32 %83, %84
  %86 = zext i1 %85 to i32
  store i32 %86, ptr %16, align 4, !tbaa !9
  %87 = load i32, ptr %16, align 4, !tbaa !9
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %90

89:                                               ; preds = %75
  br label %211

90:                                               ; preds = %75
  %91 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %91, ptr %16, align 4, !tbaa !9
  %92 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %92, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  %93 = load i32, ptr %18, align 4, !tbaa !9
  %94 = load i32, ptr %17, align 4, !tbaa !9
  %95 = sub i32 %94, %93
  store i32 %95, ptr %17, align 4, !tbaa !9
  %96 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %96, ptr %14, align 4, !tbaa !9
  %97 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %97, ptr %18, align 4, !tbaa !9
  store i32 37, ptr %19, align 4, !tbaa !9
  %98 = load i32, ptr %19, align 4, !tbaa !9
  %99 = load i32, ptr %18, align 4, !tbaa !9
  %100 = mul i32 %99, %98
  store i32 %100, ptr %18, align 4, !tbaa !9
  %101 = load i32, ptr %18, align 4, !tbaa !9
  %102 = load i32, ptr %17, align 4, !tbaa !9
  %103 = and i32 %102, %101
  store i32 %103, ptr %17, align 4, !tbaa !9
  %104 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %104, ptr %12, align 4, !tbaa !9
  store i32 12, ptr %18, align 4, !tbaa !9
  %105 = load i32, ptr %18, align 4, !tbaa !9
  %106 = load i32, ptr %17, align 4, !tbaa !9
  %107 = mul i32 %106, %105
  store i32 %107, ptr %17, align 4, !tbaa !9
  %108 = load i32, ptr %17, align 4, !tbaa !9
  %109 = load i32, ptr %16, align 4, !tbaa !9
  %110 = add i32 %109, %108
  store i32 %110, ptr %16, align 4, !tbaa !9
  %111 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %111, ptr %9, align 4, !tbaa !9
  %112 = load ptr, ptr %5, 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 = call i32 @i32_load(ptr noundef %113, i64 noundef %115)
  store i32 %116, ptr %16, align 4, !tbaa !9
  %117 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %117, ptr %13, align 4, !tbaa !9
  %118 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %118, ptr %17, align 4, !tbaa !9
  %119 = load i32, ptr %16, align 4, !tbaa !9
  %120 = load i32, ptr %17, align 4, !tbaa !9
  %121 = icmp ne i32 %119, %120
  %122 = zext i1 %121 to i32
  store i32 %122, ptr %16, align 4, !tbaa !9
  %123 = load i32, ptr %16, align 4, !tbaa !9
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %177

125:                                              ; preds = %90
  store i32 1, ptr %16, align 4, !tbaa !9
  %126 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %126, ptr %11, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %175, %125
  %128 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %128, ptr %16, align 4, !tbaa !9
  store i32 -1, ptr %17, align 4, !tbaa !9
  %129 = load i32, ptr %16, align 4, !tbaa !9
  %130 = load i32, ptr %17, align 4, !tbaa !9
  %131 = icmp eq i32 %129, %130
  %132 = zext i1 %131 to i32
  store i32 %132, ptr %16, align 4, !tbaa !9
  %133 = load i32, ptr %16, align 4, !tbaa !9
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %135, label %136

135:                                              ; preds = %127
  br label %186

136:                                              ; preds = %127
  %137 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %137, ptr %16, align 4, !tbaa !9
  %138 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %138, ptr %17, align 4, !tbaa !9
  %139 = load i32, ptr %17, align 4, !tbaa !9
  %140 = load i32, ptr %16, align 4, !tbaa !9
  %141 = add i32 %140, %139
  store i32 %141, ptr %16, align 4, !tbaa !9
  %142 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %142, ptr %9, align 4, !tbaa !9
  %143 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %143, ptr %16, align 4, !tbaa !9
  store i32 1, ptr %17, align 4, !tbaa !9
  %144 = load i32, ptr %17, align 4, !tbaa !9
  %145 = load i32, ptr %16, align 4, !tbaa !9
  %146 = add i32 %145, %144
  store i32 %146, ptr %16, align 4, !tbaa !9
  %147 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %147, ptr %11, align 4, !tbaa !9
  %148 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %148, ptr %16, align 4, !tbaa !9
  %149 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %149, ptr %17, align 4, !tbaa !9
  %150 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %150, ptr %18, align 4, !tbaa !9
  %151 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %151, ptr %19, align 4, !tbaa !9
  %152 = load i32, ptr %19, align 4, !tbaa !9
  %153 = load i32, ptr %18, align 4, !tbaa !9
  %154 = and i32 %153, %152
  store i32 %154, ptr %18, align 4, !tbaa !9
  %155 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %155, ptr %12, align 4, !tbaa !9
  store i32 12, ptr %19, align 4, !tbaa !9
  %156 = load i32, ptr %19, align 4, !tbaa !9
  %157 = load i32, ptr %18, align 4, !tbaa !9
  %158 = mul i32 %157, %156
  store i32 %158, ptr %18, align 4, !tbaa !9
  %159 = load i32, ptr %18, align 4, !tbaa !9
  %160 = load i32, ptr %17, align 4, !tbaa !9
  %161 = add i32 %160, %159
  store i32 %161, ptr %17, align 4, !tbaa !9
  %162 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %162, ptr %9, align 4, !tbaa !9
  %163 = load ptr, ptr %5, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.w2c_hermes, ptr %163, i32 0, i32 6
  %165 = load i32, ptr %17, align 4, !tbaa !9
  %166 = zext i32 %165 to i64
  %167 = call i32 @i32_load(ptr noundef %164, i64 noundef %166)
  store i32 %167, ptr %17, align 4, !tbaa !9
  %168 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %168, ptr %13, align 4, !tbaa !9
  %169 = load i32, ptr %16, align 4, !tbaa !9
  %170 = load i32, ptr %17, align 4, !tbaa !9
  %171 = icmp ne i32 %169, %170
  %172 = zext i1 %171 to i32
  store i32 %172, ptr %16, align 4, !tbaa !9
  %173 = load i32, ptr %16, align 4, !tbaa !9
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %175, label %176

175:                                              ; preds = %136
  br label %127

176:                                              ; preds = %136
  br label %177

177:                                              ; preds = %176, %90
  %178 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %178, ptr %16, align 4, !tbaa !9
  %179 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %179, ptr %17, align 4, !tbaa !9
  store i32 12, ptr %18, align 4, !tbaa !9
  %180 = load i32, ptr %18, align 4, !tbaa !9
  %181 = load i32, ptr %17, align 4, !tbaa !9
  %182 = mul i32 %181, %180
  store i32 %182, ptr %17, align 4, !tbaa !9
  %183 = load i32, ptr %17, align 4, !tbaa !9
  %184 = load i32, ptr %16, align 4, !tbaa !9
  %185 = add i32 %184, %183
  store i32 %185, ptr %16, align 4, !tbaa !9
  br label %196

186:                                              ; preds = %135, %74
  %187 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %187, ptr %16, align 4, !tbaa !9
  %188 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %188, ptr %17, align 4, !tbaa !9
  store i32 12, ptr %18, align 4, !tbaa !9
  %189 = load i32, ptr %18, align 4, !tbaa !9
  %190 = load i32, ptr %17, align 4, !tbaa !9
  %191 = mul i32 %190, %189
  store i32 %191, ptr %17, align 4, !tbaa !9
  %192 = load i32, ptr %17, align 4, !tbaa !9
  %193 = load i32, ptr %16, align 4, !tbaa !9
  %194 = add i32 %193, %192
  store i32 %194, ptr %16, align 4, !tbaa !9
  %195 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %195, ptr %9, align 4, !tbaa !9
  br label %196

196:                                              ; preds = %186, %177
  %197 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %197, ptr %7, align 4, !tbaa !9
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.w2c_hermes, ptr %198, i32 0, i32 6
  %200 = load i32, ptr %15, align 4, !tbaa !9
  %201 = zext i32 %200 to i64
  %202 = add i64 %201, 4
  %203 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %199, i64 noundef %202, i32 noundef %203)
  %204 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %204, ptr %15, align 4, !tbaa !9
  %205 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %205, ptr %16, align 4, !tbaa !9
  %206 = load ptr, ptr %5, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.w2c_hermes, ptr %206, i32 0, i32 6
  %208 = load i32, ptr %15, align 4, !tbaa !9
  %209 = zext i32 %208 to i64
  %210 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %207, i64 noundef %209, i32 noundef %210)
  br label %229

211:                                              ; preds = %89
  store i32 0, ptr %15, align 4, !tbaa !9
  %212 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %212, ptr %7, align 4, !tbaa !9
  store i32 204136, ptr %16, align 4, !tbaa !9
  %213 = load i32, ptr %16, align 4, !tbaa !9
  %214 = load i32, ptr %15, align 4, !tbaa !9
  %215 = add i32 %214, %213
  store i32 %215, ptr %15, align 4, !tbaa !9
  %216 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %216, ptr %16, align 4, !tbaa !9
  store i32 81389, ptr %17, align 4, !tbaa !9
  %217 = load i32, ptr %17, align 4, !tbaa !9
  %218 = load i32, ptr %16, align 4, !tbaa !9
  %219 = add i32 %218, %217
  store i32 %219, ptr %16, align 4, !tbaa !9
  store i32 597, ptr %17, align 4, !tbaa !9
  %220 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %220, ptr %18, align 4, !tbaa !9
  store i32 48929, ptr %19, align 4, !tbaa !9
  %221 = load i32, ptr %19, align 4, !tbaa !9
  %222 = load i32, ptr %18, align 4, !tbaa !9
  %223 = add i32 %222, %221
  store i32 %223, ptr %18, align 4, !tbaa !9
  %224 = load ptr, ptr %5, align 8, !tbaa !5
  %225 = load i32, ptr %15, align 4, !tbaa !9
  %226 = load i32, ptr %16, align 4, !tbaa !9
  %227 = load i32, ptr %17, align 4, !tbaa !9
  %228 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %224, i32 noundef %225, i32 noundef %226, i32 noundef %227, i32 noundef %228)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

229:                                              ; preds = %196
  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 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret void
}

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

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

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


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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_llvh0x3A0x3ADenseMapBase0x3Cllvh0x3A0x3ASmallDenseMap0x3Cunsigned0x20int0x2C0x20hermes0x3A0x3Ahbc0x3A0x3AFileAndSourceMapId0x2C0x204u0x2C0x20llvh0x3A0x3ADenseMapInfo0x3Cunsigned0x20int0x3E0x2C0x20llvh0x3A0x3Adetail0x3A0x3ADenseMapPair0x3Cunsigned0x20int0x2C0x20hermes0x3A0x3Ahbc0x3A0x3AFileAndSourceMapId0x3E0x3E0x2C0x20unsigned0x20int0x2C0x20hermes0x3A0x3Ahbc0x3A0x3AFileAndSourceMapId0x2C0x20llvh0x3A0x3ADenseMapInfo0x3Cunsigned0x20int0x3E0x2C0x20llvh0x3A0x3Adetail0x3A0x3ADenseMapPair0x3Cunsigned0x20int0x2C0x20hermes0x3A0x3Ahbc0x3A0x3AFileAndSourceMapId0x3E0x3E0x3A0x3Afind0x28unsigned0x20int0x20const0x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = add i32 %2, 8
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = zext i32 %2 to i64
  %8 = add nuw nsw i64 %7, 8
  %9 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %8)
  %10 = tail call i32 @i32_load8_u(ptr noundef nonnull %6, i64 noundef %7)
  %11 = and i32 %10, 1
  %.not = icmp eq i32 %11, 0
  %12 = select i1 %.not, i32 %9, i32 %5
  %13 = add nuw nsw i64 %7, 12
  %14 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %13)
  %15 = select i1 %.not, i32 %14, i32 4
  %.not131 = icmp eq i32 %15, 0
  br i1 %.not131, label %.loopexit, label %16

16:                                               ; preds = %4
  %17 = zext i32 %3 to i64
  %18 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %17)
  %19 = icmp ugt i32 %18, -3
  br i1 %19, label %44, label %20

20:                                               ; preds = %16
  %21 = add i32 %15, -1
  %22 = mul i32 %18, 37
  %23 = and i32 %22, %21
  %24 = mul i32 %23, 12
  %25 = add i32 %24, %12
  %26 = zext i32 %25 to i64
  %27 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %26)
  %.not132 = icmp eq i32 %27, %18
  br i1 %.not132, label %.loopexit134, label %.preheader

.preheader:                                       ; preds = %20, %29
  %.0126 = phi i32 [ %31, %29 ], [ 1, %20 ]
  %.0125 = phi i32 [ %32, %29 ], [ %23, %20 ]
  %.0124 = phi i32 [ %36, %29 ], [ %27, %20 ]
  %28 = icmp eq i32 %.0124, -1
  br i1 %28, label %.loopexit, label %29

29:                                               ; preds = %.preheader
  %30 = add i32 %.0125, %.0126
  %31 = add i32 %.0126, 1
  %32 = and i32 %30, %21
  %33 = mul i32 %32, 12
  %34 = add i32 %33, %12
  %35 = zext i32 %34 to i64
  %36 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %35)
  %.not133 = icmp eq i32 %18, %36
  br i1 %.not133, label %.loopexit134, label %.preheader

.loopexit134:                                     ; preds = %29, %20
  %.0127 = phi i32 [ %25, %20 ], [ %34, %29 ]
  %37 = mul i32 %15, 12
  %38 = add i32 %37, %12
  br label %41

.loopexit:                                        ; preds = %.preheader, %4
  %39 = mul i32 %15, 12
  %40 = add i32 %39, %12
  br label %41

41:                                               ; preds = %.loopexit, %.loopexit134
  %.1 = phi i32 [ %40, %.loopexit ], [ %.0127, %.loopexit134 ]
  %.0 = phi i32 [ %40, %.loopexit ], [ %38, %.loopexit134 ]
  %42 = zext i32 %1 to i64
  %43 = add nuw nsw i64 %42, 4
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %43, i32 noundef %.0)
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %42, i32 noundef %.1)
  ret void

44:                                               ; preds = %16
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 204136, i32 noundef 81389, i32 noundef 597, i32 noundef 48929) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

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

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass