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

; 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: inlinehint nounwind uwtable
declare hidden void @i32_store(ptr noundef, i64 noundef, i32 noundef) #1

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

declare void @w2c_hermes_dlfree(ptr noundef, i32 noundef) #2

declare i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef, i32 noundef) #2

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_load(ptr noundef, i64 noundef) #1

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

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

40:                                               ; preds = %4
  %41 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %41, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.w2c_hermes, ptr %42, i32 0, i32 6
  %44 = load i32, ptr %14, align 4, !tbaa !9
  %45 = zext i32 %44 to i64
  %46 = add i64 %45, 56
  %47 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %43, i64 noundef %46, i32 noundef %47)
  %48 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %48, ptr %14, align 4, !tbaa !9
  store i64 115964116993, ptr %21, align 8, !tbaa !17
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.w2c_hermes, ptr %49, i32 0, i32 6
  %51 = load i32, ptr %14, align 4, !tbaa !9
  %52 = zext i32 %51 to i64
  %53 = add i64 %52, 48
  %54 = load i64, ptr %21, align 8, !tbaa !17
  call void @i64_store(ptr noundef %50, i64 noundef %53, i64 noundef %54)
  %55 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %55, ptr %14, align 4, !tbaa !9
  store i32 3, ptr %15, align 4, !tbaa !9
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.w2c_hermes, ptr %56, i32 0, i32 6
  %58 = load i32, ptr %14, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = add i64 %59, 32
  %61 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %57, i64 noundef %60, i32 noundef %61)
  %62 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %62, ptr %14, align 4, !tbaa !9
  store i32 22502, ptr %15, align 4, !tbaa !9
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.w2c_hermes, ptr %63, i32 0, i32 6
  %65 = load i32, ptr %14, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = add i64 %66, 24
  %68 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %64, i64 noundef %67, i32 noundef %68)
  %69 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %69, ptr %14, align 4, !tbaa !9
  %70 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %70, ptr %15, align 4, !tbaa !9
  %71 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %71, ptr %16, align 4, !tbaa !9
  store i32 24, ptr %17, align 4, !tbaa !9
  %72 = load i32, ptr %17, align 4, !tbaa !9
  %73 = load i32, ptr %16, align 4, !tbaa !9
  %74 = add i32 %73, %72
  store i32 %74, ptr %16, align 4, !tbaa !9
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = load i32, ptr %15, align 4, !tbaa !9
  %77 = load i32, ptr %16, align 4, !tbaa !9
  %78 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseRangeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %75, i32 noundef %76, i32 noundef %77)
  store i32 %78, ptr %15, align 4, !tbaa !9
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.w2c_hermes, ptr %79, i32 0, i32 6
  %81 = load i32, ptr %14, align 4, !tbaa !9
  %82 = zext i32 %81 to i64
  %83 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %80, i64 noundef %82, i32 noundef %83)
  br label %420

84:                                               ; preds = %4
  %85 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %85, ptr %14, align 4, !tbaa !9
  store i32 808, ptr %15, align 4, !tbaa !9
  %86 = load i32, ptr %15, align 4, !tbaa !9
  %87 = load i32, ptr %14, align 4, !tbaa !9
  %88 = add i32 %87, %86
  store i32 %88, ptr %14, align 4, !tbaa !9
  %89 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %89, ptr %11, align 4, !tbaa !9
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.w2c_hermes, ptr %90, i32 0, i32 6
  %92 = load i32, ptr %14, align 4, !tbaa !9
  %93 = zext i32 %92 to i64
  %94 = add i64 %93, 512
  %95 = call i64 @i64_load(ptr noundef %91, i64 noundef %94)
  store i64 %95, ptr %20, align 8, !tbaa !17
  %96 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %96, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %97 = load i32, ptr %16, align 4, !tbaa !9
  %98 = and i32 %97, 31
  %99 = load i32, ptr %15, align 4, !tbaa !9
  %100 = shl i32 %99, %98
  store i32 %100, ptr %15, align 4, !tbaa !9
  %101 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %101, ptr %12, align 4, !tbaa !9
  %102 = load i32, ptr %15, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  store i64 %103, ptr %21, align 8, !tbaa !17
  %104 = load i64, ptr %20, align 8, !tbaa !17
  %105 = load i64, ptr %21, align 8, !tbaa !17
  %106 = icmp ult i64 %104, %105
  %107 = zext i1 %106 to i32
  store i32 %107, ptr %14, align 4, !tbaa !9
  %108 = load i32, ptr %14, align 4, !tbaa !9
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %154

110:                                              ; preds = %84
  %111 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %111, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, 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 %14, align 4, !tbaa !9
  %115 = zext i32 %114 to i64
  %116 = add i64 %115, 56
  %117 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %113, i64 noundef %116, i32 noundef %117)
  %118 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %118, ptr %14, align 4, !tbaa !9
  store i64 193273528321, ptr %21, align 8, !tbaa !17
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.w2c_hermes, ptr %119, i32 0, i32 6
  %121 = load i32, ptr %14, align 4, !tbaa !9
  %122 = zext i32 %121 to i64
  %123 = add i64 %122, 48
  %124 = load i64, ptr %21, align 8, !tbaa !17
  call void @i64_store(ptr noundef %120, i64 noundef %123, i64 noundef %124)
  %125 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %125, ptr %14, align 4, !tbaa !9
  store i32 3, ptr %15, align 4, !tbaa !9
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.w2c_hermes, ptr %126, i32 0, i32 6
  %128 = load i32, ptr %14, align 4, !tbaa !9
  %129 = zext i32 %128 to i64
  %130 = add i64 %129, 32
  %131 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %127, i64 noundef %130, i32 noundef %131)
  %132 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %132, ptr %14, align 4, !tbaa !9
  store i32 58202, ptr %15, align 4, !tbaa !9
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.w2c_hermes, ptr %133, i32 0, i32 6
  %135 = load i32, ptr %14, align 4, !tbaa !9
  %136 = zext i32 %135 to i64
  %137 = add i64 %136, 24
  %138 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %134, i64 noundef %137, i32 noundef %138)
  %139 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %139, ptr %14, align 4, !tbaa !9
  %140 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %140, ptr %15, align 4, !tbaa !9
  %141 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %141, ptr %16, align 4, !tbaa !9
  store i32 24, ptr %17, align 4, !tbaa !9
  %142 = load i32, ptr %17, align 4, !tbaa !9
  %143 = load i32, ptr %16, align 4, !tbaa !9
  %144 = add i32 %143, %142
  store i32 %144, ptr %16, align 4, !tbaa !9
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = load i32, ptr %15, align 4, !tbaa !9
  %147 = load i32, ptr %16, align 4, !tbaa !9
  %148 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseRangeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %145, i32 noundef %146, i32 noundef %147)
  store i32 %148, ptr %15, align 4, !tbaa !9
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.w2c_hermes, ptr %149, i32 0, i32 6
  %151 = load i32, ptr %14, align 4, !tbaa !9
  %152 = zext i32 %151 to i64
  %153 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %150, i64 noundef %152, i32 noundef %153)
  br label %420

154:                                              ; preds = %84
  %155 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %155, ptr %14, align 4, !tbaa !9
  store i32 5, ptr %15, align 4, !tbaa !9
  %156 = load i32, ptr %14, align 4, !tbaa !9
  %157 = load i32, ptr %15, align 4, !tbaa !9
  %158 = icmp uge i32 %156, %157
  %159 = zext i1 %158 to i32
  store i32 %159, ptr %14, align 4, !tbaa !9
  %160 = load i32, ptr %14, align 4, !tbaa !9
  %161 = icmp ne i32 %160, 0
  br i1 %161, label %162, label %206

162:                                              ; preds = %154
  %163 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %163, ptr %14, align 4, !tbaa !9
  store i32 7, ptr %15, align 4, !tbaa !9
  %164 = load i32, ptr %15, align 4, !tbaa !9
  %165 = load i32, ptr %14, align 4, !tbaa !9
  %166 = or i32 %165, %164
  store i32 %166, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %167 = load i32, ptr %15, align 4, !tbaa !9
  %168 = load i32, ptr %14, align 4, !tbaa !9
  %169 = add i32 %168, %167
  store i32 %169, ptr %14, align 4, !tbaa !9
  %170 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %170, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %171 = load i32, ptr %15, align 4, !tbaa !9
  %172 = and i32 %171, 31
  %173 = load i32, ptr %14, align 4, !tbaa !9
  %174 = shl i32 %173, %172
  store i32 %174, ptr %14, align 4, !tbaa !9
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = load i32, ptr %14, align 4, !tbaa !9
  %177 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %175, i32 noundef %176)
  store i32 %177, ptr %14, align 4, !tbaa !9
  %178 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %178, ptr %10, align 4, !tbaa !9
  %179 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %179, ptr %14, align 4, !tbaa !9
  %180 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %180, ptr %15, align 4, !tbaa !9
  store i32 -2147483648, ptr %16, align 4, !tbaa !9
  %181 = load i32, ptr %16, align 4, !tbaa !9
  %182 = load i32, ptr %15, align 4, !tbaa !9
  %183 = or i32 %182, %181
  store i32 %183, ptr %15, align 4, !tbaa !9
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.w2c_hermes, ptr %184, i32 0, i32 6
  %186 = load i32, ptr %14, align 4, !tbaa !9
  %187 = zext i32 %186 to i64
  %188 = add i64 %187, 20
  %189 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %185, i64 noundef %188, i32 noundef %189)
  %190 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %190, ptr %14, align 4, !tbaa !9
  %191 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %191, ptr %15, align 4, !tbaa !9
  %192 = load ptr, ptr %5, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.w2c_hermes, ptr %192, i32 0, i32 6
  %194 = load i32, ptr %14, align 4, !tbaa !9
  %195 = zext i32 %194 to i64
  %196 = add i64 %195, 12
  %197 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %193, i64 noundef %196, i32 noundef %197)
  %198 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %198, ptr %14, align 4, !tbaa !9
  %199 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %199, ptr %15, align 4, !tbaa !9
  %200 = load ptr, ptr %5, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.w2c_hermes, ptr %200, i32 0, i32 6
  %202 = load i32, ptr %14, align 4, !tbaa !9
  %203 = zext i32 %202 to i64
  %204 = add i64 %203, 16
  %205 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %201, i64 noundef %204, i32 noundef %205)
  br label %229

206:                                              ; preds = %154
  %207 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %207, ptr %14, align 4, !tbaa !9
  %208 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %208, ptr %15, align 4, !tbaa !9
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.w2c_hermes, ptr %209, i32 0, i32 6
  %211 = load i32, ptr %14, align 4, !tbaa !9
  %212 = zext i32 %211 to i64
  %213 = add i64 %212, 23
  %214 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %210, i64 noundef %213, i32 noundef %214)
  %215 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %215, ptr %14, align 4, !tbaa !9
  store i32 12, ptr %15, align 4, !tbaa !9
  %216 = load i32, ptr %15, align 4, !tbaa !9
  %217 = load i32, ptr %14, align 4, !tbaa !9
  %218 = add i32 %217, %216
  store i32 %218, ptr %14, align 4, !tbaa !9
  %219 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %219, ptr %10, align 4, !tbaa !9
  %220 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %220, ptr %14, align 4, !tbaa !9
  %221 = load i32, ptr %14, align 4, !tbaa !9
  %222 = icmp ne i32 %221, 0
  %223 = xor i1 %222, true
  %224 = zext i1 %223 to i32
  store i32 %224, ptr %14, align 4, !tbaa !9
  %225 = load i32, ptr %14, align 4, !tbaa !9
  %226 = icmp ne i32 %225, 0
  br i1 %226, label %227, label %228

227:                                              ; preds = %206
  br label %237

228:                                              ; preds = %206
  br label %229

229:                                              ; preds = %228, %162
  %230 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %230, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %231 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %231, ptr %16, align 4, !tbaa !9
  %232 = load ptr, ptr %5, align 8, !tbaa !5
  %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
  %236 = call i32 @w2c_hermes_0x5F_memset(ptr noundef %232, i32 noundef %233, i32 noundef %234, i32 noundef %235)
  store i32 %236, ptr %14, align 4, !tbaa !9
  br label %237

237:                                              ; preds = %229, %227
  %238 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %238, ptr %14, align 4, !tbaa !9
  %239 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %239, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %240 = load i32, ptr %16, align 4, !tbaa !9
  %241 = and i32 %240, 31
  %242 = load i32, ptr %15, align 4, !tbaa !9
  %243 = shl i32 %242, %241
  store i32 %243, ptr %15, align 4, !tbaa !9
  %244 = load i32, ptr %15, align 4, !tbaa !9
  %245 = load i32, ptr %14, align 4, !tbaa !9
  %246 = add i32 %245, %244
  store i32 %246, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %247 = load ptr, ptr %5, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.w2c_hermes, ptr %247, i32 0, i32 6
  %249 = load i32, ptr %14, align 4, !tbaa !9
  %250 = zext i32 %249 to i64
  %251 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %248, i64 noundef %250, i32 noundef %251)
  %252 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %252, ptr %14, align 4, !tbaa !9
  %253 = load ptr, ptr %5, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.w2c_hermes, ptr %253, i32 0, i32 6
  %255 = load i32, ptr %14, align 4, !tbaa !9
  %256 = zext i32 %255 to i64
  %257 = add i64 %256, 23
  %258 = call i32 @i32_load8_s(ptr noundef %254, i64 noundef %257)
  store i32 %258, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %259 = load i32, ptr %14, align 4, !tbaa !9
  %260 = load i32, ptr %15, align 4, !tbaa !9
  %261 = icmp sge i32 %259, %260
  %262 = zext i1 %261 to i32
  store i32 %262, ptr %14, align 4, !tbaa !9
  %263 = load i32, ptr %14, align 4, !tbaa !9
  %264 = icmp ne i32 %263, 0
  br i1 %264, label %265, label %266

265:                                              ; preds = %237
  br label %325

266:                                              ; preds = %237
  %267 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %267, ptr %14, align 4, !tbaa !9
  %268 = load ptr, ptr %5, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.w2c_hermes, ptr %268, i32 0, i32 6
  %270 = load i32, ptr %14, align 4, !tbaa !9
  %271 = zext i32 %270 to i64
  %272 = add i64 %271, 16
  %273 = call i32 @i32_load(ptr noundef %269, i64 noundef %272)
  store i32 %273, ptr %14, align 4, !tbaa !9
  store i32 268435457, ptr %15, align 4, !tbaa !9
  %274 = load i32, ptr %14, align 4, !tbaa !9
  %275 = load i32, ptr %15, align 4, !tbaa !9
  %276 = icmp ult i32 %274, %275
  %277 = zext i1 %276 to i32
  store i32 %277, ptr %14, align 4, !tbaa !9
  %278 = load i32, ptr %14, align 4, !tbaa !9
  %279 = icmp ne i32 %278, 0
  br i1 %279, label %280, label %281

280:                                              ; preds = %266
  br label %325

281:                                              ; preds = %266
  %282 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %282, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %283 = load ptr, ptr %5, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.w2c_hermes, ptr %283, i32 0, i32 6
  %285 = load i32, ptr %14, align 4, !tbaa !9
  %286 = zext i32 %285 to i64
  %287 = add i64 %286, 56
  %288 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %284, i64 noundef %287, i32 noundef %288)
  %289 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %289, ptr %14, align 4, !tbaa !9
  store i64 115964116993, ptr %21, align 8, !tbaa !17
  %290 = load ptr, ptr %5, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.w2c_hermes, ptr %290, i32 0, i32 6
  %292 = load i32, ptr %14, align 4, !tbaa !9
  %293 = zext i32 %292 to i64
  %294 = add i64 %293, 48
  %295 = load i64, ptr %21, align 8, !tbaa !17
  call void @i64_store(ptr noundef %291, i64 noundef %294, i64 noundef %295)
  %296 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %296, ptr %14, align 4, !tbaa !9
  store i32 3, ptr %15, align 4, !tbaa !9
  %297 = load ptr, ptr %5, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.w2c_hermes, ptr %297, i32 0, i32 6
  %299 = load i32, ptr %14, align 4, !tbaa !9
  %300 = zext i32 %299 to i64
  %301 = add i64 %300, 32
  %302 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %298, i64 noundef %301, i32 noundef %302)
  %303 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %303, ptr %14, align 4, !tbaa !9
  store i32 22502, ptr %15, align 4, !tbaa !9
  %304 = load ptr, ptr %5, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.w2c_hermes, ptr %304, i32 0, i32 6
  %306 = load i32, ptr %14, align 4, !tbaa !9
  %307 = zext i32 %306 to i64
  %308 = add i64 %307, 24
  %309 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %305, i64 noundef %308, i32 noundef %309)
  %310 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %310, ptr %14, align 4, !tbaa !9
  %311 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %311, ptr %15, align 4, !tbaa !9
  %312 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %312, ptr %16, align 4, !tbaa !9
  store i32 24, ptr %17, align 4, !tbaa !9
  %313 = load i32, ptr %17, align 4, !tbaa !9
  %314 = load i32, ptr %16, align 4, !tbaa !9
  %315 = add i32 %314, %313
  store i32 %315, ptr %16, align 4, !tbaa !9
  %316 = load ptr, ptr %5, align 8, !tbaa !5
  %317 = load i32, ptr %15, align 4, !tbaa !9
  %318 = load i32, ptr %16, align 4, !tbaa !9
  %319 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseRangeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %316, i32 noundef %317, i32 noundef %318)
  store i32 %319, ptr %15, align 4, !tbaa !9
  %320 = load ptr, ptr %5, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.w2c_hermes, ptr %320, i32 0, i32 6
  %322 = load i32, ptr %14, align 4, !tbaa !9
  %323 = zext i32 %322 to i64
  %324 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %321, i64 noundef %323, i32 noundef %324)
  br label %410

325:                                              ; preds = %280, %265
  %326 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %326, ptr %14, align 4, !tbaa !9
  %327 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %327, ptr %15, align 4, !tbaa !9
  %328 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %328, ptr %16, align 4, !tbaa !9
  store i32 12, ptr %17, align 4, !tbaa !9
  %329 = load i32, ptr %17, align 4, !tbaa !9
  %330 = load i32, ptr %16, align 4, !tbaa !9
  %331 = add i32 %330, %329
  store i32 %331, ptr %16, align 4, !tbaa !9
  %332 = load ptr, ptr %5, align 8, !tbaa !5
  %333 = load i32, ptr %15, align 4, !tbaa !9
  %334 = load i32, ptr %16, align 4, !tbaa !9
  %335 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AExternalStringPrimitive0x3Cchar16_t0x3E0x2A0x20hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AmakeA0x3Chermes0x3A0x3Avm0x3A0x3AExternalStringPrimitive0x3Cchar16_t0x3E0x2C0x20false0x2C0x200x28hermes0x3A0x3Avm0x3A0x3AHasFinalizer0x2910x2C0x200x28hermes0x3A0x3Avm0x3A0x3ALongLived0x2900x2C0x20std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar16_t0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar16_t0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar16_t0x3E0x3E0x3E0x28unsigned0x20int0x2C0x20std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar16_t0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar16_t0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar16_t0x3E0x3E0x260x260x29(ptr noundef %332, i32 noundef %333, i32 noundef %334)
  store i32 %335, ptr %15, align 4, !tbaa !9
  %336 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %336, ptr %7, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %337 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %337, ptr %17, align 4, !tbaa !9
  %338 = load ptr, ptr %5, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.w2c_hermes, ptr %338, i32 0, i32 6
  %340 = load i32, ptr %17, align 4, !tbaa !9
  %341 = zext i32 %340 to i64
  %342 = add i64 %341, 20
  %343 = call i32 @i32_load(ptr noundef %339, i64 noundef %342)
  store i32 %343, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  %344 = load i32, ptr %18, align 4, !tbaa !9
  %345 = and i32 %344, 31
  %346 = load i32, ptr %17, align 4, !tbaa !9
  %347 = shl i32 %346, %345
  store i32 %347, ptr %17, align 4, !tbaa !9
  store i32 2, ptr %18, align 4, !tbaa !9
  %348 = load i32, ptr %18, align 4, !tbaa !9
  %349 = load i32, ptr %17, align 4, !tbaa !9
  %350 = sub i32 %349, %348
  store i32 %350, ptr %17, align 4, !tbaa !9
  %351 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %351, ptr %18, align 4, !tbaa !9
  %352 = load ptr, ptr %5, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.w2c_hermes, ptr %352, i32 0, i32 6
  %354 = load i32, ptr %18, align 4, !tbaa !9
  %355 = zext i32 %354 to i64
  %356 = add i64 %355, 23
  %357 = call i32 @i32_load8_s(ptr noundef %353, i64 noundef %356)
  store i32 %357, ptr %18, align 4, !tbaa !9
  store i32 0, ptr %19, align 4, !tbaa !9
  %358 = load i32, ptr %18, align 4, !tbaa !9
  %359 = load i32, ptr %19, align 4, !tbaa !9
  %360 = icmp sge i32 %358, %359
  %361 = zext i1 %360 to i32
  store i32 %361, ptr %18, align 4, !tbaa !9
  %362 = load i32, ptr %18, align 4, !tbaa !9
  %363 = icmp ne i32 %362, 0
  br i1 %363, label %364, label %366

364:                                              ; preds = %325
  %365 = load i32, ptr %16, align 4, !tbaa !9
  br label %368

366:                                              ; preds = %325
  %367 = load i32, ptr %17, align 4, !tbaa !9
  br label %368

368:                                              ; preds = %366, %364
  %369 = phi i32 [ %365, %364 ], [ %367, %366 ]
  store i32 %369, ptr %16, align 4, !tbaa !9
  %370 = load ptr, ptr %5, align 8, !tbaa !5
  %371 = load i32, ptr %14, align 4, !tbaa !9
  %372 = load i32, ptr %15, align 4, !tbaa !9
  %373 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AcreditExternalMemory0x28hermes0x3A0x3Avm0x3A0x3AGCCell0x2A0x2C0x20unsigned0x20int0x29(ptr noundef %370, i32 noundef %371, i32 noundef %372, i32 noundef %373)
  %374 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %374, ptr %14, align 4, !tbaa !9
  %375 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %375, ptr %15, align 4, !tbaa !9
  %376 = load i32, ptr %15, align 4, !tbaa !9
  %377 = zext i32 %376 to i64
  store i64 %377, ptr %21, align 8, !tbaa !17
  store i64 -844424930131968, ptr %22, align 8, !tbaa !17
  %378 = load i64, ptr %22, align 8, !tbaa !17
  %379 = load i64, ptr %21, align 8, !tbaa !17
  %380 = or i64 %379, %378
  store i64 %380, ptr %21, align 8, !tbaa !17
  %381 = load ptr, ptr %5, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.w2c_hermes, ptr %381, i32 0, i32 6
  %383 = load i32, ptr %14, align 4, !tbaa !9
  %384 = zext i32 %383 to i64
  %385 = add i64 %384, 8
  %386 = load i64, ptr %21, align 8, !tbaa !17
  call void @i64_store(ptr noundef %382, i64 noundef %385, i64 noundef %386)
  %387 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %387, ptr %14, align 4, !tbaa !9
  %388 = load ptr, ptr %5, align 8, !tbaa !5
  %389 = getelementptr inbounds %struct.w2c_hermes, ptr %388, i32 0, i32 6
  %390 = load i32, ptr %14, align 4, !tbaa !9
  %391 = zext i32 %390 to i64
  %392 = add i64 %391, 23
  %393 = call i32 @i32_load8_s(ptr noundef %389, i64 noundef %392)
  store i32 %393, ptr %14, align 4, !tbaa !9
  %394 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %394, ptr %7, align 4, !tbaa !9
  %395 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %395, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %396 = load ptr, ptr %5, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.w2c_hermes, ptr %396, i32 0, i32 6
  %398 = load i32, ptr %14, align 4, !tbaa !9
  %399 = zext i32 %398 to i64
  %400 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %397, i64 noundef %399, i32 noundef %400)
  %401 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %401, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %402 = load i32, ptr %14, align 4, !tbaa !9
  %403 = load i32, ptr %15, align 4, !tbaa !9
  %404 = icmp sge i32 %402, %403
  %405 = zext i1 %404 to i32
  store i32 %405, ptr %14, align 4, !tbaa !9
  %406 = load i32, ptr %14, align 4, !tbaa !9
  %407 = icmp ne i32 %406, 0
  br i1 %407, label %408, label %409

408:                                              ; preds = %368
  br label %420

409:                                              ; preds = %368
  br label %410

410:                                              ; preds = %409, %281
  %411 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %411, ptr %14, align 4, !tbaa !9
  %412 = load ptr, ptr %5, align 8, !tbaa !5
  %413 = getelementptr inbounds %struct.w2c_hermes, ptr %412, i32 0, i32 6
  %414 = load i32, ptr %14, align 4, !tbaa !9
  %415 = zext i32 %414 to i64
  %416 = add i64 %415, 12
  %417 = call i32 @i32_load(ptr noundef %413, i64 noundef %416)
  store i32 %417, ptr %14, align 4, !tbaa !9
  %418 = load ptr, ptr %5, align 8, !tbaa !5
  %419 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_dlfree(ptr noundef %418, i32 noundef %419)
  br label %420

420:                                              ; preds = %410, %408, %110, %40
  %421 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %421, ptr %14, align 4, !tbaa !9
  store i32 -64, ptr %15, align 4, !tbaa !9
  %422 = load i32, ptr %15, align 4, !tbaa !9
  %423 = load i32, ptr %14, align 4, !tbaa !9
  %424 = sub i32 %423, %422
  store i32 %424, ptr %14, align 4, !tbaa !9
  %425 = load i32, ptr %14, align 4, !tbaa !9
  %426 = load ptr, ptr %5, align 8, !tbaa !5
  %427 = getelementptr inbounds %struct.w2c_hermes, ptr %426, i32 0, i32 3
  store i32 %425, ptr %427, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  ret void
}

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseRangeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef, i32 noundef, i32 noundef) #2

declare i32 @w2c_hermes_0x5F_memset(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2

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

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

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

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

declare void @w2c_hermes_dlfree(ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AExternalStringPrimitive0x3Cchar16_t0x3E0x3A0x3Acreate0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = add i32 %6, -64
  store i32 %7, ptr %5, align 8, !tbaa !5
  %8 = icmp ugt i32 %3, 268435456
  br i1 %8, label %9, label %19

9:                                                ; preds = %4
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = zext i32 %7 to i64
  %12 = add nuw nsw i64 %11, 56
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %12, i32 noundef 0)
  %13 = add nuw nsw i64 %11, 48
  tail call void @i64_store(ptr noundef nonnull %10, i64 noundef %13, i64 noundef 115964116993)
  %14 = add nuw nsw i64 %11, 32
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %14, i32 noundef 3)
  %15 = add nuw nsw i64 %11, 24
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %15, i32 noundef 22502)
  %16 = add i32 %6, -40
  %17 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseRangeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef nonnull %0, i32 noundef %2, i32 noundef %16) #3
  %18 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %18, i32 noundef %17)
  br label %92

19:                                               ; preds = %4
  %20 = add i32 %2, 808
  %21 = getelementptr inbounds i8, ptr %0, i64 40
  %22 = zext i32 %20 to i64
  %23 = add nuw nsw i64 %22, 512
  %24 = tail call i64 @i64_load(ptr noundef nonnull %21, i64 noundef %23)
  %25 = shl nuw nsw i32 %3, 1
  %26 = zext nneg i32 %25 to i64
  %27 = icmp ult i64 %24, %26
  br i1 %27, label %28, label %37

28:                                               ; preds = %19
  %29 = zext i32 %7 to i64
  %30 = add nuw nsw i64 %29, 56
  tail call void @i32_store(ptr noundef nonnull %21, i64 noundef %30, i32 noundef 0)
  %31 = add nuw nsw i64 %29, 48
  tail call void @i64_store(ptr noundef nonnull %21, i64 noundef %31, i64 noundef 193273528321)
  %32 = add nuw nsw i64 %29, 32
  tail call void @i32_store(ptr noundef nonnull %21, i64 noundef %32, i32 noundef 3)
  %33 = add nuw nsw i64 %29, 24
  tail call void @i32_store(ptr noundef nonnull %21, i64 noundef %33, i32 noundef 58202)
  %34 = add i32 %6, -40
  %35 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseRangeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef nonnull %0, i32 noundef %2, i32 noundef %34) #3
  %36 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %21, i64 noundef %36, i32 noundef %35)
  br label %92

37:                                               ; preds = %19
  %38 = icmp ugt i32 %3, 4
  br i1 %38, label %39, label %49

39:                                               ; preds = %37
  %40 = or i32 %3, 7
  %41 = add nuw nsw i32 %40, 1
  %42 = shl nuw nsw i32 %41, 1
  %43 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef %42) #3
  %44 = or disjoint i32 %41, -2147483648
  %45 = zext i32 %7 to i64
  %46 = add nuw nsw i64 %45, 20
  tail call void @i32_store(ptr noundef nonnull %21, i64 noundef %46, i32 noundef %44)
  %47 = add nuw nsw i64 %45, 12
  tail call void @i32_store(ptr noundef nonnull %21, i64 noundef %47, i32 noundef %43)
  %48 = add nuw nsw i64 %45, 16
  tail call void @i32_store(ptr noundef nonnull %21, i64 noundef %48, i32 noundef %3)
  %.pre = add nuw nsw i64 %45, 23
  br label %53

49:                                               ; preds = %37
  %50 = zext i32 %7 to i64
  %51 = add nuw nsw i64 %50, 23
  tail call void @i32_store8(ptr noundef nonnull %21, i64 noundef %51, i32 noundef %3)
  %52 = add i32 %6, -52
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %55, label %53

53:                                               ; preds = %49, %39
  %.pre234.pre-phi = phi i64 [ %51, %49 ], [ %.pre, %39 ]
  %.pre.pre-phi = phi i64 [ %50, %49 ], [ %45, %39 ]
  %.0 = phi i32 [ %52, %49 ], [ %43, %39 ]
  %54 = tail call i32 @w2c_hermes_0x5F_memset(ptr noundef nonnull %0, i32 noundef %.0, i32 noundef 0, i32 noundef %25) #3
  br label %55

55:                                               ; preds = %49, %53
  %.pre-phi235 = phi i64 [ %51, %49 ], [ %.pre234.pre-phi, %53 ]
  %.pre-phi = phi i64 [ %50, %49 ], [ %.pre.pre-phi, %53 ]
  %.1 = phi i32 [ %52, %49 ], [ %.0, %53 ]
  %56 = add i32 %.1, %25
  %57 = zext i32 %56 to i64
  tail call void @i32_store16(ptr noundef nonnull %21, i64 noundef %57, i32 noundef 0)
  %58 = tail call i32 @i32_load8_s(ptr noundef nonnull %21, i64 noundef %.pre-phi235)
  %59 = icmp sgt i32 %58, -1
  br i1 %59, label %72, label %60

60:                                               ; preds = %55
  %61 = add nuw nsw i64 %.pre-phi, 16
  %62 = tail call i32 @i32_load(ptr noundef nonnull %21, i64 noundef %61)
  %63 = icmp ult i32 %62, 268435457
  br i1 %63, label %72, label %64

64:                                               ; preds = %60
  %65 = add nuw nsw i64 %.pre-phi, 56
  tail call void @i32_store(ptr noundef nonnull %21, i64 noundef %65, i32 noundef 0)
  %66 = add nuw nsw i64 %.pre-phi, 48
  tail call void @i64_store(ptr noundef nonnull %21, i64 noundef %66, i64 noundef 115964116993)
  %67 = add nuw nsw i64 %.pre-phi, 32
  tail call void @i32_store(ptr noundef nonnull %21, i64 noundef %67, i32 noundef 3)
  %68 = add nuw nsw i64 %.pre-phi, 24
  tail call void @i32_store(ptr noundef nonnull %21, i64 noundef %68, i32 noundef 22502)
  %69 = add i32 %6, -40
  %70 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseRangeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef nonnull %0, i32 noundef %2, i32 noundef %69) #3
  %71 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %21, i64 noundef %71, i32 noundef %70)
  br label %89

72:                                               ; preds = %60, %55
  %73 = add i32 %6, -52
  %74 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AExternalStringPrimitive0x3Cchar16_t0x3E0x2A0x20hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AmakeA0x3Chermes0x3A0x3Avm0x3A0x3AExternalStringPrimitive0x3Cchar16_t0x3E0x2C0x20false0x2C0x200x28hermes0x3A0x3Avm0x3A0x3AHasFinalizer0x2910x2C0x200x28hermes0x3A0x3Avm0x3A0x3ALongLived0x2900x2C0x20std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar16_t0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar16_t0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar16_t0x3E0x3E0x3E0x28unsigned0x20int0x2C0x20std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar16_t0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar16_t0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar16_t0x3E0x3E0x260x260x29(ptr noundef nonnull %0, i32 noundef %20, i32 noundef %73)
  %75 = zext i32 %74 to i64
  %76 = add nuw nsw i64 %75, 20
  %77 = tail call i32 @i32_load(ptr noundef nonnull %21, i64 noundef %76)
  %78 = shl i32 %77, 1
  %79 = add i32 %78, -2
  %80 = add nuw nsw i64 %75, 23
  %81 = tail call i32 @i32_load8_s(ptr noundef nonnull %21, i64 noundef %80)
  %82 = icmp sgt i32 %81, -1
  %83 = select i1 %82, i32 8, i32 %79
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AcreditExternalMemory0x28hermes0x3A0x3Avm0x3A0x3AGCCell0x2A0x2C0x20unsigned0x20int0x29(ptr noundef nonnull %0, i32 noundef %20, i32 noundef %74, i32 noundef %83)
  %84 = or disjoint i64 %75, -844424930131968
  %85 = zext i32 %1 to i64
  %86 = add nuw nsw i64 %85, 8
  tail call void @i64_store(ptr noundef nonnull %21, i64 noundef %86, i64 noundef %84)
  %87 = tail call i32 @i32_load8_s(ptr noundef nonnull %21, i64 noundef %.pre-phi235)
  tail call void @i32_store(ptr noundef nonnull %21, i64 noundef %85, i32 noundef 1)
  %88 = icmp sgt i32 %87, -1
  br i1 %88, label %92, label %89

89:                                               ; preds = %72, %64
  %90 = add nuw nsw i64 %.pre-phi, 12
  %91 = tail call i32 @i32_load(ptr noundef nonnull %21, i64 noundef %90)
  tail call void @w2c_hermes_dlfree(ptr noundef nonnull %0, i32 noundef %91) #3
  br label %92

92:                                               ; preds = %72, %89, %28, %9
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret void
}

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseRangeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare i32 @w2c_hermes_0x5F_memset(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 = { 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,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass