; 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

declare i32 @w2c_hermes_memmove(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

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

34:                                               ; preds = %5
  %35 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %35, ptr %13, align 4, !tbaa !9
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.w2c_hermes, ptr %36, i32 0, i32 6
  %38 = load i32, ptr %13, align 4, !tbaa !9
  %39 = zext i32 %38 to i64
  %40 = add i64 %39, 4
  %41 = call i32 @i32_load(ptr noundef %37, i64 noundef %40)
  store i32 %41, ptr %13, align 4, !tbaa !9
  %42 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %42, ptr %11, align 4, !tbaa !9
  %43 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %43, ptr %14, align 4, !tbaa !9
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.w2c_hermes, ptr %44, i32 0, i32 6
  %46 = load i32, ptr %14, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = call i32 @i32_load(ptr noundef %45, i64 noundef %47)
  store i32 %48, ptr %14, align 4, !tbaa !9
  %49 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %49, ptr %12, align 4, !tbaa !9
  %50 = load i32, ptr %13, align 4, !tbaa !9
  %51 = load i32, ptr %14, align 4, !tbaa !9
  %52 = icmp eq i32 %50, %51
  %53 = zext i1 %52 to i32
  store i32 %53, ptr %13, align 4, !tbaa !9
  %54 = load i32, ptr %13, align 4, !tbaa !9
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %106

56:                                               ; preds = %34
  %57 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %57, ptr %13, align 4, !tbaa !9
  %58 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %58, ptr %14, align 4, !tbaa !9
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.w2c_hermes, ptr %59, i32 0, i32 6
  %61 = load i32, ptr %13, align 4, !tbaa !9
  %62 = zext i32 %61 to i64
  %63 = add i64 %62, 4
  %64 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %60, i64 noundef %63, i32 noundef %64)
  %65 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %65, ptr %13, align 4, !tbaa !9
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.w2c_hermes, ptr %66, i32 0, i32 6
  %68 = load i32, ptr %13, align 4, !tbaa !9
  %69 = zext i32 %68 to i64
  %70 = add i64 %69, 12
  %71 = call i32 @i32_load(ptr noundef %67, i64 noundef %70)
  store i32 %71, ptr %13, align 4, !tbaa !9
  %72 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %72, ptr %12, align 4, !tbaa !9
  %73 = load i32, ptr %13, align 4, !tbaa !9
  %74 = icmp ne i32 %73, 0
  %75 = xor i1 %74, true
  %76 = zext i1 %75 to i32
  store i32 %76, ptr %13, align 4, !tbaa !9
  %77 = load i32, ptr %13, align 4, !tbaa !9
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %80

79:                                               ; preds = %56
  br label %125

80:                                               ; preds = %56
  %81 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %81, ptr %13, align 4, !tbaa !9
  %82 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %82, ptr %14, align 4, !tbaa !9
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.w2c_hermes, ptr %83, i32 0, i32 6
  %85 = load i32, ptr %14, align 4, !tbaa !9
  %86 = zext i32 %85 to i64
  %87 = add i64 %86, 4
  %88 = call i32 @i32_load(ptr noundef %84, i64 noundef %87)
  store i32 %88, ptr %14, align 4, !tbaa !9
  %89 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %89, ptr %15, align 4, !tbaa !9
  store i32 2, ptr %16, align 4, !tbaa !9
  %90 = load i32, ptr %16, align 4, !tbaa !9
  %91 = and i32 %90, 31
  %92 = load i32, ptr %15, align 4, !tbaa !9
  %93 = shl i32 %92, %91
  store i32 %93, ptr %15, align 4, !tbaa !9
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = load i32, ptr %13, align 4, !tbaa !9
  %96 = load i32, ptr %14, align 4, !tbaa !9
  %97 = load i32, ptr %15, align 4, !tbaa !9
  %98 = call i32 @w2c_hermes_memmove(ptr noundef %94, i32 noundef %95, i32 noundef %96, i32 noundef %97)
  store i32 %98, ptr %13, align 4, !tbaa !9
  %99 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %99, ptr %13, align 4, !tbaa !9
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.w2c_hermes, ptr %100, i32 0, i32 6
  %102 = load i32, ptr %13, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = call i32 @i32_load(ptr noundef %101, i64 noundef %103)
  store i32 %104, ptr %13, align 4, !tbaa !9
  %105 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %105, ptr %11, align 4, !tbaa !9
  br label %125

106:                                              ; preds = %34
  %107 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %107, ptr %13, align 4, !tbaa !9
  %108 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %108, ptr %14, align 4, !tbaa !9
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.w2c_hermes, ptr %109, i32 0, i32 6
  %111 = load i32, ptr %13, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = add i64 %112, 4
  %114 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %110, i64 noundef %113, i32 noundef %114)
  %115 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %115, ptr %13, align 4, !tbaa !9
  %116 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %116, ptr %14, align 4, !tbaa !9
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.w2c_hermes, ptr %117, i32 0, i32 6
  %119 = load i32, ptr %13, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = add i64 %120, 4
  %122 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %118, i64 noundef %121, i32 noundef %122)
  %123 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %123, ptr %13, align 4, !tbaa !9
  %124 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %124, ptr %11, align 4, !tbaa !9
  br label %125

125:                                              ; preds = %106, %80, %79
  %126 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %126, ptr %13, align 4, !tbaa !9
  %127 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %127, ptr %14, align 4, !tbaa !9
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.w2c_hermes, ptr %128, i32 0, i32 6
  %130 = load i32, ptr %14, align 4, !tbaa !9
  %131 = zext i32 %130 to i64
  %132 = add i64 %131, 8
  %133 = call i32 @i32_load(ptr noundef %129, i64 noundef %132)
  store i32 %133, ptr %14, align 4, !tbaa !9
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.w2c_hermes, ptr %134, i32 0, i32 6
  %136 = load i32, ptr %13, align 4, !tbaa !9
  %137 = zext i32 %136 to i64
  %138 = add i64 %137, 8
  %139 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %135, i64 noundef %138, i32 noundef %139)
  %140 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %140, ptr %13, align 4, !tbaa !9
  %141 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %141, ptr %14, align 4, !tbaa !9
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.w2c_hermes, ptr %142, i32 0, i32 6
  %144 = load i32, ptr %14, align 4, !tbaa !9
  %145 = zext i32 %144 to i64
  %146 = add i64 %145, 12
  %147 = call i32 @i32_load(ptr noundef %143, i64 noundef %146)
  store i32 %147, ptr %14, align 4, !tbaa !9
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.w2c_hermes, ptr %148, i32 0, i32 6
  %150 = load i32, ptr %13, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = add i64 %151, 12
  %153 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %149, i64 noundef %152, i32 noundef %153)
  %154 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %154, ptr %13, align 4, !tbaa !9
  %155 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %155, ptr %14, align 4, !tbaa !9
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.w2c_hermes, ptr %156, i32 0, i32 6
  %158 = load i32, ptr %14, align 4, !tbaa !9
  %159 = zext i32 %158 to i64
  %160 = add i64 %159, 16
  %161 = call i32 @i32_load(ptr noundef %157, i64 noundef %160)
  store i32 %161, ptr %14, align 4, !tbaa !9
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.w2c_hermes, ptr %162, i32 0, i32 6
  %164 = load i32, ptr %13, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = add i64 %165, 16
  %167 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %163, i64 noundef %166, i32 noundef %167)
  %168 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %168, ptr %13, align 4, !tbaa !9
  %169 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %169, ptr %14, align 4, !tbaa !9
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.w2c_hermes, ptr %170, i32 0, i32 6
  %172 = load i32, ptr %13, align 4, !tbaa !9
  %173 = zext i32 %172 to i64
  %174 = add i64 %173, 8
  %175 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %171, i64 noundef %174, i32 noundef %175)
  %176 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %176, ptr %13, align 4, !tbaa !9
  %177 = load ptr, ptr %6, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.w2c_hermes, ptr %177, i32 0, i32 6
  %179 = load i32, ptr %13, align 4, !tbaa !9
  %180 = zext i32 %179 to i64
  %181 = add i64 %180, 4
  %182 = call i32 @i32_load(ptr noundef %178, i64 noundef %181)
  store i32 %182, ptr %13, align 4, !tbaa !9
  %183 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %183, ptr %14, align 4, !tbaa !9
  %184 = load i32, ptr %13, align 4, !tbaa !9
  %185 = load i32, ptr %14, align 4, !tbaa !9
  %186 = icmp ne i32 %184, %185
  %187 = zext i1 %186 to i32
  store i32 %187, ptr %13, align 4, !tbaa !9
  %188 = load i32, ptr %13, align 4, !tbaa !9
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %190, label %191

190:                                              ; preds = %125
  br label %218

191:                                              ; preds = %125
  %192 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %192, ptr %13, align 4, !tbaa !9
  store i64 0, ptr %18, align 8, !tbaa !11
  %193 = load ptr, ptr %6, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.w2c_hermes, ptr %193, i32 0, i32 6
  %195 = load i32, ptr %13, align 4, !tbaa !9
  %196 = zext i32 %195 to i64
  %197 = add i64 %196, 12
  %198 = load i64, ptr %18, align 8, !tbaa !11
  call void @i64_store(ptr noundef %194, i64 noundef %197, i64 noundef %198)
  %199 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %199, ptr %13, align 4, !tbaa !9
  br label %236

200:                                              ; preds = %5
  store i32 0, ptr %13, align 4, !tbaa !9
  %201 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %201, ptr %10, align 4, !tbaa !9
  store i32 193318, ptr %14, align 4, !tbaa !9
  %202 = load i32, ptr %14, align 4, !tbaa !9
  %203 = load i32, ptr %13, align 4, !tbaa !9
  %204 = add i32 %203, %202
  store i32 %204, ptr %13, align 4, !tbaa !9
  %205 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %205, ptr %14, align 4, !tbaa !9
  store i32 54997, ptr %15, align 4, !tbaa !9
  %206 = load i32, ptr %15, align 4, !tbaa !9
  %207 = load i32, ptr %14, align 4, !tbaa !9
  %208 = add i32 %207, %206
  store i32 %208, ptr %14, align 4, !tbaa !9
  store i32 191, ptr %15, align 4, !tbaa !9
  %209 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %209, ptr %16, align 4, !tbaa !9
  store i32 50247, ptr %17, align 4, !tbaa !9
  %210 = load i32, ptr %17, align 4, !tbaa !9
  %211 = load i32, ptr %16, align 4, !tbaa !9
  %212 = add i32 %211, %210
  store i32 %212, ptr %16, align 4, !tbaa !9
  %213 = load ptr, ptr %6, align 8, !tbaa !5
  %214 = load i32, ptr %13, align 4, !tbaa !9
  %215 = load i32, ptr %14, align 4, !tbaa !9
  %216 = load i32, ptr %15, align 4, !tbaa !9
  %217 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %213, i32 noundef %214, i32 noundef %215, i32 noundef %216, i32 noundef %217)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

218:                                              ; preds = %190
  store i32 0, ptr %13, align 4, !tbaa !9
  %219 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %219, ptr %10, align 4, !tbaa !9
  store i32 18769, ptr %14, align 4, !tbaa !9
  %220 = load i32, ptr %14, align 4, !tbaa !9
  %221 = load i32, ptr %13, align 4, !tbaa !9
  %222 = add i32 %221, %220
  store i32 %222, ptr %13, align 4, !tbaa !9
  %223 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %223, ptr %14, align 4, !tbaa !9
  store i32 54997, ptr %15, align 4, !tbaa !9
  %224 = load i32, ptr %15, align 4, !tbaa !9
  %225 = load i32, ptr %14, align 4, !tbaa !9
  %226 = add i32 %225, %224
  store i32 %226, ptr %14, align 4, !tbaa !9
  store i32 209, ptr %15, align 4, !tbaa !9
  %227 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %227, ptr %16, align 4, !tbaa !9
  store i32 50247, ptr %17, align 4, !tbaa !9
  %228 = load i32, ptr %17, align 4, !tbaa !9
  %229 = load i32, ptr %16, align 4, !tbaa !9
  %230 = add i32 %229, %228
  store i32 %230, ptr %16, align 4, !tbaa !9
  %231 = load ptr, ptr %6, align 8, !tbaa !5
  %232 = load i32, ptr %13, align 4, !tbaa !9
  %233 = load i32, ptr %14, align 4, !tbaa !9
  %234 = load i32, ptr %15, align 4, !tbaa !9
  %235 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %231, i32 noundef %232, i32 noundef %233, i32 noundef %234, i32 noundef %235)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

236:                                              ; preds = %191
  %237 = load i32, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, 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
  ret i32 %237
}

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

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

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


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

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

declare i32 @w2c_hermes_memmove(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

8:                                                ; preds = %5
  %9 = zext i32 %4 to i64
  %10 = add nuw nsw i64 %9, 4
  %11 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %10)
  %12 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %9)
  %13 = icmp eq i32 %11, %12
  %14 = add nuw nsw i64 %7, 4
  br i1 %13, label %15, label %23

15:                                               ; preds = %8
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %14, i32 noundef %2)
  %16 = add nuw nsw i64 %9, 12
  %17 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %16)
  %.not129 = icmp eq i32 %17, 0
  br i1 %.not129, label %24, label %18

18:                                               ; preds = %15
  %19 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %10)
  %20 = shl i32 %17, 2
  %21 = tail call i32 @w2c_hermes_memmove(ptr noundef %0, i32 noundef %2, i32 noundef %19, i32 noundef %20) #4
  %22 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %9)
  br label %24

23:                                               ; preds = %8
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %14, i32 noundef %11)
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %10, i32 noundef %12)
  %.pre = add nuw nsw i64 %9, 12
  br label %24

24:                                               ; preds = %15, %23, %18
  %.pre-phi = phi i64 [ %16, %15 ], [ %.pre, %23 ], [ %16, %18 ]
  %.0 = phi i32 [ %11, %15 ], [ %12, %23 ], [ %22, %18 ]
  %25 = add nuw nsw i64 %9, 8
  %26 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %25)
  %27 = add nuw nsw i64 %7, 8
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %27, i32 noundef %26)
  %28 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %.pre-phi)
  %29 = add nuw nsw i64 %7, 12
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %29, i32 noundef %28)
  %30 = add nuw nsw i64 %9, 16
  %31 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %30)
  %32 = add nuw nsw i64 %7, 16
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %32, i32 noundef %31)
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %25, i32 noundef %3)
  %33 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %10)
  %.not130 = icmp eq i32 %33, %.0
  br i1 %.not130, label %34, label %36

34:                                               ; preds = %24
  tail call void @i64_store(ptr noundef nonnull %6, i64 noundef %.pre-phi, i64 noundef 0)
  ret i32 %1

35:                                               ; preds = %5
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 193318, i32 noundef 54997, i32 noundef 191, i32 noundef 50247) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

36:                                               ; preds = %24
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 18769, i32 noundef 54997, i32 noundef 209, i32 noundef 50247) #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,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass