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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.w2c_hermes = type { ptr, ptr, ptr, i32, i32, i32, %struct.wasm_rt_memory_t, %struct.wasm_rt_funcref_table_t }
%struct.wasm_rt_memory_t = type { ptr, i64, i64, i64, i8 }
%struct.wasm_rt_funcref_table_t = type { ptr, i32, i32 }

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AStringView0x3A0x3AStringView0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3E0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) #4 {
  %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 i64, align 8
  %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 i64, align 8
  %16 = 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 8, ptr %9) #5
  store i64 0, ptr %9, align 8, !tbaa !11
  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 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %17 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %17, ptr %10, align 4, !tbaa !9
  %18 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %18, ptr %11, align 4, !tbaa !9
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.w2c_hermes, ptr %19, i32 0, i32 6
  %21 = load i32, ptr %11, align 4, !tbaa !9
  %22 = zext i32 %21 to i64
  %23 = add i64 %22, 8
  %24 = call i32 @i32_load(ptr noundef %20, i64 noundef %23)
  store i32 %24, ptr %11, align 4, !tbaa !9
  store i32 -2147483648, ptr %12, align 4, !tbaa !9
  %25 = load i32, ptr %12, align 4, !tbaa !9
  %26 = load i32, ptr %11, align 4, !tbaa !9
  %27 = and i32 %26, %25
  store i32 %27, ptr %11, align 4, !tbaa !9
  store i32 1073741824, ptr %12, align 4, !tbaa !9
  %28 = load i32, ptr %12, align 4, !tbaa !9
  %29 = load i32, ptr %11, align 4, !tbaa !9
  %30 = or i32 %29, %28
  store i32 %30, ptr %11, align 4, !tbaa !9
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.w2c_hermes, ptr %31, i32 0, i32 6
  %33 = load i32, ptr %10, align 4, !tbaa !9
  %34 = zext i32 %33 to i64
  %35 = add i64 %34, 8
  %36 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %32, i64 noundef %35, i32 noundef %36)
  %37 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %37, ptr %10, align 4, !tbaa !9
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.w2c_hermes, ptr %38, i32 0, i32 6
  %40 = load i32, ptr %10, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  %42 = add i64 %41, 4
  %43 = call i32 @i32_load(ptr noundef %39, i64 noundef %42)
  store i32 %43, ptr %10, align 4, !tbaa !9
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.w2c_hermes, ptr %44, i32 0, i32 6
  %46 = load i32, ptr %10, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = call i64 @i64_load(ptr noundef %45, i64 noundef %47)
  store i64 %48, ptr %15, align 8, !tbaa !11
  %49 = load i64, ptr %15, align 8, !tbaa !11
  store i64 %49, ptr %9, align 8, !tbaa !11
  store i64 48, ptr %16, align 8, !tbaa !11
  %50 = load i64, ptr %15, align 8, !tbaa !11
  %51 = load i64, ptr %16, align 8, !tbaa !11
  %52 = and i64 %51, 63
  %53 = ashr i64 %50, %52
  store i64 %53, ptr %15, align 8, !tbaa !11
  %54 = load i64, ptr %15, align 8, !tbaa !11
  %55 = trunc i64 %54 to i32
  store i32 %55, ptr %10, align 4, !tbaa !9
  store i32 -3, ptr %11, align 4, !tbaa !9
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = load i32, ptr %11, align 4, !tbaa !9
  %58 = icmp eq i32 %56, %57
  %59 = zext i1 %58 to i32
  store i32 %59, ptr %10, align 4, !tbaa !9
  %60 = load i32, ptr %10, align 4, !tbaa !9
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %217

62:                                               ; preds = %3
  %63 = load i64, ptr %9, align 8, !tbaa !11
  store i64 %63, ptr %15, align 8, !tbaa !11
  store i64 -844424930131969, ptr %16, align 8, !tbaa !11
  %64 = load i64, ptr %15, align 8, !tbaa !11
  %65 = load i64, ptr %16, align 8, !tbaa !11
  %66 = icmp ule i64 %64, %65
  %67 = zext i1 %66 to i32
  store i32 %67, ptr %10, align 4, !tbaa !9
  %68 = load i32, ptr %10, align 4, !tbaa !9
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %71

70:                                               ; preds = %62
  br label %235

71:                                               ; preds = %62
  %72 = load i64, ptr %9, align 8, !tbaa !11
  store i64 %72, ptr %15, align 8, !tbaa !11
  %73 = load i64, ptr %15, align 8, !tbaa !11
  %74 = trunc i64 %73 to i32
  store i32 %74, ptr %10, align 4, !tbaa !9
  %75 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %75, ptr %7, align 4, !tbaa !9
  %76 = load i32, ptr %10, align 4, !tbaa !9
  %77 = icmp ne i32 %76, 0
  %78 = xor i1 %77, true
  %79 = zext i1 %78 to i32
  store i32 %79, ptr %10, align 4, !tbaa !9
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %83

82:                                               ; preds = %71
  br label %253

83:                                               ; preds = %71
  %84 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %84, ptr %10, align 4, !tbaa !9
  %85 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %85, ptr %11, 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 %11, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = call i32 @i32_load(ptr noundef %87, i64 noundef %89)
  store i32 %90, ptr %11, align 4, !tbaa !9
  store i32 7, ptr %12, align 4, !tbaa !9
  %91 = load i32, ptr %12, align 4, !tbaa !9
  %92 = and i32 %91, 31
  %93 = load i32, ptr %11, align 4, !tbaa !9
  %94 = shl i32 %93, %92
  store i32 %94, ptr %11, align 4, !tbaa !9
  store i32 -2147483648, ptr %12, align 4, !tbaa !9
  %95 = load i32, ptr %12, align 4, !tbaa !9
  %96 = load i32, ptr %11, align 4, !tbaa !9
  %97 = and i32 %96, %95
  store i32 %97, ptr %11, align 4, !tbaa !9
  store i32 -1073741824, ptr %12, align 4, !tbaa !9
  %98 = load i32, ptr %12, align 4, !tbaa !9
  %99 = load i32, ptr %11, align 4, !tbaa !9
  %100 = xor i32 %99, %98
  store i32 %100, ptr %11, align 4, !tbaa !9
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.w2c_hermes, ptr %101, i32 0, i32 6
  %103 = load i32, ptr %10, align 4, !tbaa !9
  %104 = zext i32 %103 to i64
  %105 = add i64 %104, 8
  %106 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %102, i64 noundef %105, i32 noundef %106)
  %107 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %107, ptr %10, align 4, !tbaa !9
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.w2c_hermes, ptr %108, i32 0, i32 6
  %110 = load i32, ptr %10, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = add i64 %111, 4
  %113 = call i32 @i32_load(ptr noundef %109, i64 noundef %112)
  store i32 %113, ptr %10, align 4, !tbaa !9
  %114 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %114, ptr %7, align 4, !tbaa !9
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.w2c_hermes, ptr %115, i32 0, i32 6
  %117 = load i32, ptr %10, align 4, !tbaa !9
  %118 = zext i32 %117 to i64
  %119 = call i64 @i64_load(ptr noundef %116, i64 noundef %118)
  store i64 %119, ptr %15, align 8, !tbaa !11
  %120 = load i64, ptr %15, align 8, !tbaa !11
  store i64 %120, ptr %9, align 8, !tbaa !11
  store i64 48, ptr %16, align 8, !tbaa !11
  %121 = load i64, ptr %15, align 8, !tbaa !11
  %122 = load i64, ptr %16, align 8, !tbaa !11
  %123 = and i64 %122, 63
  %124 = ashr i64 %121, %123
  store i64 %124, ptr %15, align 8, !tbaa !11
  %125 = load i64, ptr %15, align 8, !tbaa !11
  %126 = trunc i64 %125 to i32
  store i32 %126, ptr %10, align 4, !tbaa !9
  store i32 -3, ptr %11, align 4, !tbaa !9
  %127 = load i32, ptr %10, align 4, !tbaa !9
  %128 = load i32, ptr %11, align 4, !tbaa !9
  %129 = icmp ne i32 %127, %128
  %130 = zext i1 %129 to i32
  store i32 %130, ptr %10, align 4, !tbaa !9
  %131 = load i32, ptr %10, align 4, !tbaa !9
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %133, label %134

133:                                              ; preds = %83
  br label %271

134:                                              ; preds = %83
  %135 = load i64, ptr %9, align 8, !tbaa !11
  store i64 %135, ptr %15, align 8, !tbaa !11
  store i64 -844424930131969, ptr %16, align 8, !tbaa !11
  %136 = load i64, ptr %15, align 8, !tbaa !11
  %137 = load i64, ptr %16, align 8, !tbaa !11
  %138 = icmp ule i64 %136, %137
  %139 = zext i1 %138 to i32
  store i32 %139, ptr %10, align 4, !tbaa !9
  %140 = load i32, ptr %10, align 4, !tbaa !9
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %143

142:                                              ; preds = %134
  br label %289

143:                                              ; preds = %134
  %144 = load i64, ptr %9, align 8, !tbaa !11
  store i64 %144, ptr %15, align 8, !tbaa !11
  %145 = load i64, ptr %15, align 8, !tbaa !11
  %146 = trunc i64 %145 to i32
  store i32 %146, ptr %10, align 4, !tbaa !9
  %147 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %147, ptr %8, align 4, !tbaa !9
  %148 = load i32, ptr %10, align 4, !tbaa !9
  %149 = icmp ne i32 %148, 0
  %150 = xor i1 %149, true
  %151 = zext i1 %150 to i32
  store i32 %151, ptr %10, align 4, !tbaa !9
  %152 = load i32, ptr %10, align 4, !tbaa !9
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %154, label %155

154:                                              ; preds = %143
  br label %307

155:                                              ; preds = %143
  %156 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %156, ptr %10, align 4, !tbaa !9
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.w2c_hermes, ptr %157, i32 0, i32 6
  %159 = load i32, ptr %10, align 4, !tbaa !9
  %160 = zext i32 %159 to i64
  %161 = add i64 %160, 12
  %162 = call i32 @i32_load(ptr noundef %158, i64 noundef %161)
  store i32 %162, ptr %10, align 4, !tbaa !9
  %163 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %163, ptr %8, align 4, !tbaa !9
  %164 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %164, ptr %10, align 4, !tbaa !9
  %165 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %165, ptr %11, align 4, !tbaa !9
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.w2c_hermes, ptr %166, i32 0, i32 6
  %168 = load i32, ptr %10, align 4, !tbaa !9
  %169 = zext i32 %168 to i64
  %170 = add i64 %169, 4
  %171 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %167, i64 noundef %170, i32 noundef %171)
  %172 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %172, ptr %10, align 4, !tbaa !9
  %173 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %173, ptr %11, align 4, !tbaa !9
  store i32 2147483647, ptr %12, align 4, !tbaa !9
  %174 = load i32, ptr %12, align 4, !tbaa !9
  %175 = load i32, ptr %11, align 4, !tbaa !9
  %176 = and i32 %175, %174
  store i32 %176, ptr %11, align 4, !tbaa !9
  %177 = load ptr, ptr %4, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.w2c_hermes, ptr %177, i32 0, i32 6
  %179 = load i32, ptr %10, align 4, !tbaa !9
  %180 = zext i32 %179 to i64
  %181 = add i64 %180, 12
  %182 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %178, i64 noundef %181, i32 noundef %182)
  %183 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %183, ptr %10, align 4, !tbaa !9
  %184 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %184, ptr %11, 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 %11, align 4, !tbaa !9
  %188 = zext i32 %187 to i64
  %189 = call i32 @i32_load(ptr noundef %186, i64 noundef %188)
  store i32 %189, ptr %11, align 4, !tbaa !9
  %190 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %190, ptr %6, align 4, !tbaa !9
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.w2c_hermes, ptr %191, i32 0, i32 6
  %193 = load i32, ptr %10, align 4, !tbaa !9
  %194 = zext i32 %193 to i64
  %195 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %192, i64 noundef %194, i32 noundef %195)
  %196 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %196, ptr %10, align 4, !tbaa !9
  %197 = load i32, ptr %10, align 4, !tbaa !9
  %198 = icmp ne i32 %197, 0
  br i1 %198, label %199, label %215

199:                                              ; preds = %155
  %200 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %200, ptr %10, align 4, !tbaa !9
  %201 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %201, ptr %11, align 4, !tbaa !9
  %202 = load ptr, ptr %4, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.w2c_hermes, ptr %202, i32 0, i32 6
  %204 = load i32, ptr %11, align 4, !tbaa !9
  %205 = zext i32 %204 to i64
  %206 = call i32 @i32_load(ptr noundef %203, i64 noundef %205)
  store i32 %206, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %207 = load i32, ptr %12, align 4, !tbaa !9
  %208 = load i32, ptr %11, align 4, !tbaa !9
  %209 = add i32 %208, %207
  store i32 %209, ptr %11, align 4, !tbaa !9
  %210 = load ptr, ptr %4, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.w2c_hermes, ptr %210, i32 0, i32 6
  %212 = load i32, ptr %10, align 4, !tbaa !9
  %213 = zext i32 %212 to i64
  %214 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %211, i64 noundef %213, i32 noundef %214)
  br label %215

215:                                              ; preds = %199, %155
  %216 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %216, ptr %10, align 4, !tbaa !9
  br label %325

217:                                              ; preds = %3
  store i32 0, ptr %10, align 4, !tbaa !9
  %218 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %218, ptr %5, align 4, !tbaa !9
  store i32 118502, ptr %11, align 4, !tbaa !9
  %219 = load i32, ptr %11, align 4, !tbaa !9
  %220 = load i32, ptr %10, align 4, !tbaa !9
  %221 = add i32 %220, %219
  store i32 %221, ptr %10, align 4, !tbaa !9
  %222 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %222, ptr %11, align 4, !tbaa !9
  store i32 83341, ptr %12, align 4, !tbaa !9
  %223 = load i32, ptr %12, align 4, !tbaa !9
  %224 = load i32, ptr %11, align 4, !tbaa !9
  %225 = add i32 %224, %223
  store i32 %225, ptr %11, align 4, !tbaa !9
  store i32 470, ptr %12, align 4, !tbaa !9
  %226 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %226, ptr %13, align 4, !tbaa !9
  store i32 87089, ptr %14, align 4, !tbaa !9
  %227 = load i32, ptr %14, align 4, !tbaa !9
  %228 = load i32, ptr %13, align 4, !tbaa !9
  %229 = add i32 %228, %227
  store i32 %229, ptr %13, align 4, !tbaa !9
  %230 = load ptr, ptr %4, align 8, !tbaa !5
  %231 = load i32, ptr %10, align 4, !tbaa !9
  %232 = load i32, ptr %11, align 4, !tbaa !9
  %233 = load i32, ptr %12, align 4, !tbaa !9
  %234 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %230, i32 noundef %231, i32 noundef %232, i32 noundef %233, i32 noundef %234)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

235:                                              ; preds = %70
  store i32 0, ptr %10, align 4, !tbaa !9
  %236 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %236, ptr %5, align 4, !tbaa !9
  store i32 118273, ptr %11, align 4, !tbaa !9
  %237 = load i32, ptr %11, align 4, !tbaa !9
  %238 = load i32, ptr %10, align 4, !tbaa !9
  %239 = add i32 %238, %237
  store i32 %239, ptr %10, align 4, !tbaa !9
  %240 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %240, ptr %11, align 4, !tbaa !9
  store i32 83341, ptr %12, align 4, !tbaa !9
  %241 = load i32, ptr %12, align 4, !tbaa !9
  %242 = load i32, ptr %11, align 4, !tbaa !9
  %243 = add i32 %242, %241
  store i32 %243, ptr %11, align 4, !tbaa !9
  store i32 438, ptr %12, align 4, !tbaa !9
  %244 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %244, ptr %13, align 4, !tbaa !9
  store i32 49706, ptr %14, align 4, !tbaa !9
  %245 = load i32, ptr %14, align 4, !tbaa !9
  %246 = load i32, ptr %13, align 4, !tbaa !9
  %247 = add i32 %246, %245
  store i32 %247, ptr %13, align 4, !tbaa !9
  %248 = load ptr, ptr %4, align 8, !tbaa !5
  %249 = load i32, ptr %10, align 4, !tbaa !9
  %250 = load i32, ptr %11, align 4, !tbaa !9
  %251 = load i32, ptr %12, align 4, !tbaa !9
  %252 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %248, i32 noundef %249, i32 noundef %250, i32 noundef %251, i32 noundef %252)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

253:                                              ; preds = %82
  store i32 0, ptr %10, align 4, !tbaa !9
  %254 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %254, ptr %5, align 4, !tbaa !9
  store i32 168498, ptr %11, align 4, !tbaa !9
  %255 = load i32, ptr %11, align 4, !tbaa !9
  %256 = load i32, ptr %10, align 4, !tbaa !9
  %257 = add i32 %256, %255
  store i32 %257, ptr %10, align 4, !tbaa !9
  %258 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %258, ptr %11, align 4, !tbaa !9
  store i32 78081, ptr %12, align 4, !tbaa !9
  %259 = load i32, ptr %12, align 4, !tbaa !9
  %260 = load i32, ptr %11, align 4, !tbaa !9
  %261 = add i32 %260, %259
  store i32 %261, ptr %11, align 4, !tbaa !9
  store i32 233, ptr %12, align 4, !tbaa !9
  %262 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %262, ptr %13, align 4, !tbaa !9
  store i32 20456, ptr %14, align 4, !tbaa !9
  %263 = load i32, ptr %14, align 4, !tbaa !9
  %264 = load i32, ptr %13, align 4, !tbaa !9
  %265 = add i32 %264, %263
  store i32 %265, ptr %13, align 4, !tbaa !9
  %266 = load ptr, ptr %4, align 8, !tbaa !5
  %267 = load i32, ptr %10, align 4, !tbaa !9
  %268 = load i32, ptr %11, align 4, !tbaa !9
  %269 = load i32, ptr %12, align 4, !tbaa !9
  %270 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %266, i32 noundef %267, i32 noundef %268, i32 noundef %269, i32 noundef %270)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

271:                                              ; preds = %133
  store i32 0, ptr %10, align 4, !tbaa !9
  %272 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %272, ptr %5, align 4, !tbaa !9
  store i32 118502, ptr %11, align 4, !tbaa !9
  %273 = load i32, ptr %11, align 4, !tbaa !9
  %274 = load i32, ptr %10, align 4, !tbaa !9
  %275 = add i32 %274, %273
  store i32 %275, ptr %10, align 4, !tbaa !9
  %276 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %276, ptr %11, align 4, !tbaa !9
  store i32 83341, ptr %12, align 4, !tbaa !9
  %277 = load i32, ptr %12, align 4, !tbaa !9
  %278 = load i32, ptr %11, align 4, !tbaa !9
  %279 = add i32 %278, %277
  store i32 %279, ptr %11, align 4, !tbaa !9
  store i32 470, ptr %12, align 4, !tbaa !9
  %280 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %280, ptr %13, align 4, !tbaa !9
  store i32 87089, ptr %14, align 4, !tbaa !9
  %281 = load i32, ptr %14, align 4, !tbaa !9
  %282 = load i32, ptr %13, align 4, !tbaa !9
  %283 = add i32 %282, %281
  store i32 %283, ptr %13, align 4, !tbaa !9
  %284 = load ptr, ptr %4, align 8, !tbaa !5
  %285 = load i32, ptr %10, align 4, !tbaa !9
  %286 = load i32, ptr %11, align 4, !tbaa !9
  %287 = load i32, ptr %12, align 4, !tbaa !9
  %288 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %284, i32 noundef %285, i32 noundef %286, i32 noundef %287, i32 noundef %288)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

289:                                              ; preds = %142
  store i32 0, ptr %10, align 4, !tbaa !9
  %290 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %290, ptr %5, align 4, !tbaa !9
  store i32 118273, ptr %11, align 4, !tbaa !9
  %291 = load i32, ptr %11, align 4, !tbaa !9
  %292 = load i32, ptr %10, align 4, !tbaa !9
  %293 = add i32 %292, %291
  store i32 %293, ptr %10, align 4, !tbaa !9
  %294 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %294, ptr %11, align 4, !tbaa !9
  store i32 83341, ptr %12, align 4, !tbaa !9
  %295 = load i32, ptr %12, align 4, !tbaa !9
  %296 = load i32, ptr %11, align 4, !tbaa !9
  %297 = add i32 %296, %295
  store i32 %297, ptr %11, align 4, !tbaa !9
  store i32 438, ptr %12, align 4, !tbaa !9
  %298 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %298, ptr %13, align 4, !tbaa !9
  store i32 49706, ptr %14, align 4, !tbaa !9
  %299 = load i32, ptr %14, align 4, !tbaa !9
  %300 = load i32, ptr %13, align 4, !tbaa !9
  %301 = add i32 %300, %299
  store i32 %301, ptr %13, align 4, !tbaa !9
  %302 = load ptr, ptr %4, align 8, !tbaa !5
  %303 = load i32, ptr %10, align 4, !tbaa !9
  %304 = load i32, ptr %11, align 4, !tbaa !9
  %305 = load i32, ptr %12, align 4, !tbaa !9
  %306 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %302, i32 noundef %303, i32 noundef %304, i32 noundef %305, i32 noundef %306)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

307:                                              ; preds = %154
  store i32 0, ptr %10, align 4, !tbaa !9
  %308 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %308, ptr %5, align 4, !tbaa !9
  store i32 168498, ptr %11, align 4, !tbaa !9
  %309 = load i32, ptr %11, align 4, !tbaa !9
  %310 = load i32, ptr %10, align 4, !tbaa !9
  %311 = add i32 %310, %309
  store i32 %311, ptr %10, align 4, !tbaa !9
  %312 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %312, ptr %11, align 4, !tbaa !9
  store i32 78081, ptr %12, align 4, !tbaa !9
  %313 = load i32, ptr %12, align 4, !tbaa !9
  %314 = load i32, ptr %11, align 4, !tbaa !9
  %315 = add i32 %314, %313
  store i32 %315, ptr %11, align 4, !tbaa !9
  store i32 233, ptr %12, align 4, !tbaa !9
  %316 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %316, ptr %13, align 4, !tbaa !9
  store i32 20456, ptr %14, align 4, !tbaa !9
  %317 = load i32, ptr %14, align 4, !tbaa !9
  %318 = load i32, ptr %13, align 4, !tbaa !9
  %319 = add i32 %318, %317
  store i32 %319, ptr %13, align 4, !tbaa !9
  %320 = load ptr, ptr %4, align 8, !tbaa !5
  %321 = load i32, ptr %10, align 4, !tbaa !9
  %322 = load i32, ptr %11, align 4, !tbaa !9
  %323 = load i32, ptr %12, align 4, !tbaa !9
  %324 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %320, i32 noundef %321, i32 noundef %322, i32 noundef %323, i32 noundef %324)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

325:                                              ; preds = %215
  %326 = load i32, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 8, 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 i32 %326
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AStringView0x3A0x3AStringView0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3E0x29(ptr noundef %0, i32 noundef returned %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %0, i64 40
  %5 = zext i32 %1 to i64
  %6 = add nuw nsw i64 %5, 8
  %7 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %6)
  %8 = and i32 %7, -2147483648
  %9 = or disjoint i32 %8, 1073741824
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %6, i32 noundef %9)
  %10 = zext i32 %2 to i64
  %11 = add nuw nsw i64 %10, 4
  %12 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %11)
  %13 = zext i32 %12 to i64
  %14 = tail call i64 @i64_load(ptr noundef nonnull %4, i64 noundef %13)
  %.mask = and i64 %14, -281474976710656
  %15 = icmp eq i64 %.mask, -844424930131968
  br i1 %15, label %16, label %40

16:                                               ; preds = %3
  %17 = and i64 %14, 4294967295
  %.not = icmp eq i64 %17, 0
  br i1 %.not, label %41, label %18

18:                                               ; preds = %16
  %19 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %17)
  %20 = shl i32 %19, 7
  %21 = and i32 %20, -2147483648
  %22 = xor i32 %21, -1073741824
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %6, i32 noundef %22)
  %23 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %11)
  %24 = zext i32 %23 to i64
  %25 = tail call i64 @i64_load(ptr noundef nonnull %4, i64 noundef %24)
  %.mask190 = and i64 %25, -281474976710656
  %.not189 = icmp eq i64 %.mask190, -844424930131968
  br i1 %.not189, label %26, label %42

26:                                               ; preds = %18
  %27 = and i64 %25, 4294967295
  %.not191 = icmp eq i64 %27, 0
  br i1 %.not191, label %43, label %28

28:                                               ; preds = %26
  %29 = add nuw nsw i64 %27, 12
  %30 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %29)
  %31 = add nuw nsw i64 %5, 4
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %31, i32 noundef %23)
  %32 = and i32 %30, 2147483647
  %33 = add nuw nsw i64 %5, 12
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %33, i32 noundef %32)
  %34 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %10)
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %5, i32 noundef %34)
  %.not192 = icmp eq i32 %34, 0
  br i1 %.not192, label %39, label %35

35:                                               ; preds = %28
  %36 = zext i32 %34 to i64
  %37 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %36)
  %38 = add i32 %37, 1
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %36, i32 noundef %38)
  br label %39

39:                                               ; preds = %35, %28
  ret i32 %1

40:                                               ; preds = %3
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 118502, i32 noundef 83341, i32 noundef 470, i32 noundef 87089) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

41:                                               ; preds = %16
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 168498, i32 noundef 78081, i32 noundef 233, i32 noundef 20456) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

42:                                               ; preds = %18
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 118502, i32 noundef 83341, i32 noundef 470, i32 noundef 87089) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

43:                                               ; preds = %26
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 168498, i32 noundef 78081, i32 noundef 233, i32 noundef 20456) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

attributes #0 = { 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 #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 = { "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,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass