; 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

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 void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AcreditExternalMemory0x28hermes0x3A0x3Avm0x3A0x3AGCCell0x2A0x2C0x20unsigned0x20int0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AExternalStringPrimitive0x3Cchar0x3E0x3A0x3Acreate0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20unsigned0x20int0x29(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 i64, align 8
  %20 = alloca i64, align 8
  %21 = 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
  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 8, 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
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.w2c_hermes, ptr %22, i32 0, i32 3
  %24 = load i32, ptr %23, align 8, !tbaa !11
  store i32 %24, ptr %13, align 4, !tbaa !9
  store i32 -64, ptr %14, align 4, !tbaa !9
  %25 = load i32, ptr %14, align 4, !tbaa !9
  %26 = load i32, ptr %13, align 4, !tbaa !9
  %27 = add i32 %26, %25
  store i32 %27, ptr %13, align 4, !tbaa !9
  %28 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %28, ptr %9, align 4, !tbaa !9
  %29 = load i32, ptr %13, align 4, !tbaa !9
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.w2c_hermes, ptr %30, i32 0, i32 3
  store i32 %29, ptr %31, align 8, !tbaa !11
  %32 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %32, ptr %13, align 4, !tbaa !9
  store i32 268435457, ptr %14, align 4, !tbaa !9
  %33 = load i32, ptr %13, align 4, !tbaa !9
  %34 = load i32, ptr %14, align 4, !tbaa !9
  %35 = icmp uge i32 %33, %34
  %36 = zext i1 %35 to i32
  store i32 %36, ptr %13, align 4, !tbaa !9
  %37 = load i32, ptr %13, align 4, !tbaa !9
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %83

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

83:                                               ; preds = %4
  %84 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %84, ptr %13, align 4, !tbaa !9
  store i32 808, ptr %14, align 4, !tbaa !9
  %85 = load i32, ptr %14, align 4, !tbaa !9
  %86 = load i32, ptr %13, align 4, !tbaa !9
  %87 = add i32 %86, %85
  store i32 %87, ptr %13, align 4, !tbaa !9
  %88 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %88, ptr %11, align 4, !tbaa !9
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.w2c_hermes, ptr %89, i32 0, i32 6
  %91 = load i32, ptr %13, align 4, !tbaa !9
  %92 = zext i32 %91 to i64
  %93 = add i64 %92, 512
  %94 = call i64 @i64_load(ptr noundef %90, i64 noundef %93)
  store i64 %94, ptr %19, align 8, !tbaa !17
  %95 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %95, ptr %14, align 4, !tbaa !9
  %96 = load i32, ptr %14, align 4, !tbaa !9
  %97 = zext i32 %96 to i64
  store i64 %97, ptr %20, align 8, !tbaa !17
  %98 = load i64, ptr %19, align 8, !tbaa !17
  %99 = load i64, ptr %20, align 8, !tbaa !17
  %100 = icmp ult i64 %98, %99
  %101 = zext i1 %100 to i32
  store i32 %101, ptr %13, align 4, !tbaa !9
  %102 = load i32, ptr %13, align 4, !tbaa !9
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %148

104:                                              ; preds = %83
  %105 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %105, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.w2c_hermes, ptr %106, i32 0, i32 6
  %108 = load i32, ptr %13, align 4, !tbaa !9
  %109 = zext i32 %108 to i64
  %110 = add i64 %109, 56
  %111 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %107, i64 noundef %110, i32 noundef %111)
  %112 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %112, ptr %13, align 4, !tbaa !9
  store i64 193273528321, ptr %20, align 8, !tbaa !17
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.w2c_hermes, ptr %113, i32 0, i32 6
  %115 = load i32, ptr %13, align 4, !tbaa !9
  %116 = zext i32 %115 to i64
  %117 = add i64 %116, 48
  %118 = load i64, ptr %20, align 8, !tbaa !17
  call void @i64_store(ptr noundef %114, i64 noundef %117, i64 noundef %118)
  %119 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %119, ptr %13, align 4, !tbaa !9
  store i32 3, ptr %14, align 4, !tbaa !9
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.w2c_hermes, ptr %120, i32 0, i32 6
  %122 = load i32, ptr %13, align 4, !tbaa !9
  %123 = zext i32 %122 to i64
  %124 = add i64 %123, 32
  %125 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %121, i64 noundef %124, i32 noundef %125)
  %126 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %126, ptr %13, align 4, !tbaa !9
  store i32 58202, ptr %14, align 4, !tbaa !9
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.w2c_hermes, ptr %127, i32 0, i32 6
  %129 = load i32, ptr %13, align 4, !tbaa !9
  %130 = zext i32 %129 to i64
  %131 = add i64 %130, 24
  %132 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %128, i64 noundef %131, i32 noundef %132)
  %133 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %133, ptr %13, align 4, !tbaa !9
  %134 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %134, ptr %14, align 4, !tbaa !9
  %135 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %135, ptr %15, align 4, !tbaa !9
  store i32 24, ptr %16, align 4, !tbaa !9
  %136 = load i32, ptr %16, align 4, !tbaa !9
  %137 = load i32, ptr %15, align 4, !tbaa !9
  %138 = add i32 %137, %136
  store i32 %138, ptr %15, align 4, !tbaa !9
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = load i32, ptr %14, align 4, !tbaa !9
  %141 = load i32, ptr %15, align 4, !tbaa !9
  %142 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseRangeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %139, i32 noundef %140, i32 noundef %141)
  store i32 %142, ptr %14, align 4, !tbaa !9
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.w2c_hermes, ptr %143, i32 0, i32 6
  %145 = load i32, ptr %13, align 4, !tbaa !9
  %146 = zext i32 %145 to i64
  %147 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %144, i64 noundef %146, i32 noundef %147)
  br label %405

148:                                              ; preds = %83
  %149 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %149, ptr %13, align 4, !tbaa !9
  store i32 11, ptr %14, align 4, !tbaa !9
  %150 = load i32, ptr %13, align 4, !tbaa !9
  %151 = load i32, ptr %14, align 4, !tbaa !9
  %152 = icmp uge i32 %150, %151
  %153 = zext i1 %152 to i32
  store i32 %153, ptr %13, align 4, !tbaa !9
  %154 = load i32, ptr %13, align 4, !tbaa !9
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %196

156:                                              ; preds = %148
  %157 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %157, ptr %13, align 4, !tbaa !9
  store i32 15, ptr %14, align 4, !tbaa !9
  %158 = load i32, ptr %14, align 4, !tbaa !9
  %159 = load i32, ptr %13, align 4, !tbaa !9
  %160 = or i32 %159, %158
  store i32 %160, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %161 = load i32, ptr %14, align 4, !tbaa !9
  %162 = load i32, ptr %13, align 4, !tbaa !9
  %163 = add i32 %162, %161
  store i32 %163, ptr %13, align 4, !tbaa !9
  %164 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %164, ptr %12, align 4, !tbaa !9
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  %166 = load i32, ptr %13, align 4, !tbaa !9
  %167 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %165, i32 noundef %166)
  store i32 %167, ptr %13, align 4, !tbaa !9
  %168 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %168, ptr %10, align 4, !tbaa !9
  %169 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %169, ptr %13, align 4, !tbaa !9
  %170 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %170, ptr %14, align 4, !tbaa !9
  store i32 -2147483648, ptr %15, align 4, !tbaa !9
  %171 = load i32, ptr %15, align 4, !tbaa !9
  %172 = load i32, ptr %14, align 4, !tbaa !9
  %173 = or i32 %172, %171
  store i32 %173, ptr %14, align 4, !tbaa !9
  %174 = load ptr, ptr %5, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.w2c_hermes, ptr %174, i32 0, i32 6
  %176 = load i32, ptr %13, align 4, !tbaa !9
  %177 = zext i32 %176 to i64
  %178 = add i64 %177, 20
  %179 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %175, i64 noundef %178, i32 noundef %179)
  %180 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %180, ptr %13, align 4, !tbaa !9
  %181 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %181, ptr %14, align 4, !tbaa !9
  %182 = load ptr, ptr %5, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.w2c_hermes, ptr %182, i32 0, i32 6
  %184 = load i32, ptr %13, align 4, !tbaa !9
  %185 = zext i32 %184 to i64
  %186 = add i64 %185, 12
  %187 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %183, i64 noundef %186, i32 noundef %187)
  %188 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %188, ptr %13, align 4, !tbaa !9
  %189 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %189, ptr %14, align 4, !tbaa !9
  %190 = load ptr, ptr %5, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.w2c_hermes, ptr %190, i32 0, i32 6
  %192 = load i32, ptr %13, align 4, !tbaa !9
  %193 = zext i32 %192 to i64
  %194 = add i64 %193, 16
  %195 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %191, i64 noundef %194, i32 noundef %195)
  br label %219

196:                                              ; preds = %148
  %197 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %197, ptr %13, align 4, !tbaa !9
  %198 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %198, ptr %14, align 4, !tbaa !9
  %199 = load ptr, ptr %5, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.w2c_hermes, ptr %199, i32 0, i32 6
  %201 = load i32, ptr %13, align 4, !tbaa !9
  %202 = zext i32 %201 to i64
  %203 = add i64 %202, 23
  %204 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %200, i64 noundef %203, i32 noundef %204)
  %205 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %205, ptr %13, align 4, !tbaa !9
  store i32 12, ptr %14, align 4, !tbaa !9
  %206 = load i32, ptr %14, align 4, !tbaa !9
  %207 = load i32, ptr %13, align 4, !tbaa !9
  %208 = add i32 %207, %206
  store i32 %208, ptr %13, align 4, !tbaa !9
  %209 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %209, ptr %10, align 4, !tbaa !9
  %210 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %210, ptr %13, align 4, !tbaa !9
  %211 = load i32, ptr %13, align 4, !tbaa !9
  %212 = icmp ne i32 %211, 0
  %213 = xor i1 %212, true
  %214 = zext i1 %213 to i32
  store i32 %214, ptr %13, align 4, !tbaa !9
  %215 = load i32, ptr %13, align 4, !tbaa !9
  %216 = icmp ne i32 %215, 0
  br i1 %216, label %217, label %218

217:                                              ; preds = %196
  br label %227

218:                                              ; preds = %196
  br label %219

219:                                              ; preds = %218, %156
  %220 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %220, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  %221 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %221, ptr %15, align 4, !tbaa !9
  %222 = load ptr, ptr %5, align 8, !tbaa !5
  %223 = load i32, ptr %13, align 4, !tbaa !9
  %224 = load i32, ptr %14, align 4, !tbaa !9
  %225 = load i32, ptr %15, align 4, !tbaa !9
  %226 = call i32 @w2c_hermes_0x5F_memset(ptr noundef %222, i32 noundef %223, i32 noundef %224, i32 noundef %225)
  store i32 %226, ptr %13, align 4, !tbaa !9
  br label %227

227:                                              ; preds = %219, %217
  %228 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %228, ptr %13, align 4, !tbaa !9
  %229 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %229, ptr %14, align 4, !tbaa !9
  %230 = load i32, ptr %14, align 4, !tbaa !9
  %231 = load i32, ptr %13, align 4, !tbaa !9
  %232 = add i32 %231, %230
  store i32 %232, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  %233 = load ptr, ptr %5, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.w2c_hermes, ptr %233, i32 0, i32 6
  %235 = load i32, ptr %13, align 4, !tbaa !9
  %236 = zext i32 %235 to i64
  %237 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %234, i64 noundef %236, i32 noundef %237)
  %238 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %238, ptr %13, align 4, !tbaa !9
  %239 = load ptr, ptr %5, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.w2c_hermes, ptr %239, i32 0, i32 6
  %241 = load i32, ptr %13, align 4, !tbaa !9
  %242 = zext i32 %241 to i64
  %243 = add i64 %242, 23
  %244 = call i32 @i32_load8_s(ptr noundef %240, i64 noundef %243)
  store i32 %244, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  %245 = load i32, ptr %13, align 4, !tbaa !9
  %246 = load i32, ptr %14, align 4, !tbaa !9
  %247 = icmp sge i32 %245, %246
  %248 = zext i1 %247 to i32
  store i32 %248, ptr %13, align 4, !tbaa !9
  %249 = load i32, ptr %13, align 4, !tbaa !9
  %250 = icmp ne i32 %249, 0
  br i1 %250, label %251, label %252

251:                                              ; preds = %227
  br label %311

252:                                              ; preds = %227
  %253 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %253, ptr %13, align 4, !tbaa !9
  %254 = load ptr, ptr %5, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.w2c_hermes, ptr %254, i32 0, i32 6
  %256 = load i32, ptr %13, align 4, !tbaa !9
  %257 = zext i32 %256 to i64
  %258 = add i64 %257, 16
  %259 = call i32 @i32_load(ptr noundef %255, i64 noundef %258)
  store i32 %259, ptr %13, align 4, !tbaa !9
  store i32 268435457, ptr %14, align 4, !tbaa !9
  %260 = load i32, ptr %13, align 4, !tbaa !9
  %261 = load i32, ptr %14, align 4, !tbaa !9
  %262 = icmp ult i32 %260, %261
  %263 = zext i1 %262 to i32
  store i32 %263, ptr %13, align 4, !tbaa !9
  %264 = load i32, ptr %13, align 4, !tbaa !9
  %265 = icmp ne i32 %264, 0
  br i1 %265, label %266, label %267

266:                                              ; preds = %252
  br label %311

267:                                              ; preds = %252
  %268 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %268, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  %269 = load ptr, ptr %5, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.w2c_hermes, ptr %269, i32 0, i32 6
  %271 = load i32, ptr %13, align 4, !tbaa !9
  %272 = zext i32 %271 to i64
  %273 = add i64 %272, 56
  %274 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %270, i64 noundef %273, i32 noundef %274)
  %275 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %275, ptr %13, align 4, !tbaa !9
  store i64 115964116993, ptr %20, align 8, !tbaa !17
  %276 = load ptr, ptr %5, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.w2c_hermes, ptr %276, i32 0, i32 6
  %278 = load i32, ptr %13, align 4, !tbaa !9
  %279 = zext i32 %278 to i64
  %280 = add i64 %279, 48
  %281 = load i64, ptr %20, align 8, !tbaa !17
  call void @i64_store(ptr noundef %277, i64 noundef %280, i64 noundef %281)
  %282 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %282, ptr %13, align 4, !tbaa !9
  store i32 3, ptr %14, 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 %13, align 4, !tbaa !9
  %286 = zext i32 %285 to i64
  %287 = add i64 %286, 32
  %288 = load i32, ptr %14, 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 %13, align 4, !tbaa !9
  store i32 22502, ptr %14, align 4, !tbaa !9
  %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 %13, align 4, !tbaa !9
  %293 = zext i32 %292 to i64
  %294 = add i64 %293, 24
  %295 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %291, i64 noundef %294, i32 noundef %295)
  %296 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %296, ptr %13, align 4, !tbaa !9
  %297 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %297, ptr %14, align 4, !tbaa !9
  %298 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %298, ptr %15, align 4, !tbaa !9
  store i32 24, ptr %16, align 4, !tbaa !9
  %299 = load i32, ptr %16, align 4, !tbaa !9
  %300 = load i32, ptr %15, align 4, !tbaa !9
  %301 = add i32 %300, %299
  store i32 %301, ptr %15, align 4, !tbaa !9
  %302 = load ptr, ptr %5, align 8, !tbaa !5
  %303 = load i32, ptr %14, align 4, !tbaa !9
  %304 = load i32, ptr %15, align 4, !tbaa !9
  %305 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseRangeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %302, i32 noundef %303, i32 noundef %304)
  store i32 %305, ptr %14, align 4, !tbaa !9
  %306 = load ptr, ptr %5, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.w2c_hermes, ptr %306, i32 0, i32 6
  %308 = load i32, ptr %13, align 4, !tbaa !9
  %309 = zext i32 %308 to i64
  %310 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %307, i64 noundef %309, i32 noundef %310)
  br label %395

311:                                              ; preds = %266, %251
  %312 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %312, ptr %13, align 4, !tbaa !9
  %313 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %313, ptr %14, align 4, !tbaa !9
  %314 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %314, ptr %15, align 4, !tbaa !9
  store i32 12, ptr %16, align 4, !tbaa !9
  %315 = load i32, ptr %16, align 4, !tbaa !9
  %316 = load i32, ptr %15, align 4, !tbaa !9
  %317 = add i32 %316, %315
  store i32 %317, ptr %15, align 4, !tbaa !9
  %318 = load ptr, ptr %5, align 8, !tbaa !5
  %319 = load i32, ptr %14, align 4, !tbaa !9
  %320 = load i32, ptr %15, align 4, !tbaa !9
  %321 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AExternalStringPrimitive0x3Cchar0x3E0x2A0x20hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AmakeA0x3Chermes0x3A0x3Avm0x3A0x3AExternalStringPrimitive0x3Cchar0x3E0x2C0x20false0x2C0x200x28hermes0x3A0x3Avm0x3A0x3AHasFinalizer0x2910x2C0x200x28hermes0x3A0x3Avm0x3A0x3ALongLived0x2900x2C0x20std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3E0x28unsigned0x20int0x2C0x20std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x260x260x29(ptr noundef %318, i32 noundef %319, i32 noundef %320)
  store i32 %321, ptr %14, align 4, !tbaa !9
  %322 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %322, ptr %7, align 4, !tbaa !9
  store i32 10, ptr %15, align 4, !tbaa !9
  %323 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %323, ptr %16, align 4, !tbaa !9
  %324 = load ptr, ptr %5, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.w2c_hermes, ptr %324, i32 0, i32 6
  %326 = load i32, ptr %16, align 4, !tbaa !9
  %327 = zext i32 %326 to i64
  %328 = add i64 %327, 20
  %329 = call i32 @i32_load(ptr noundef %325, i64 noundef %328)
  store i32 %329, ptr %16, align 4, !tbaa !9
  store i32 2147483647, ptr %17, align 4, !tbaa !9
  %330 = load i32, ptr %17, align 4, !tbaa !9
  %331 = load i32, ptr %16, align 4, !tbaa !9
  %332 = and i32 %331, %330
  store i32 %332, ptr %16, align 4, !tbaa !9
  store i32 1, ptr %17, align 4, !tbaa !9
  %333 = load i32, ptr %17, align 4, !tbaa !9
  %334 = load i32, ptr %16, align 4, !tbaa !9
  %335 = sub i32 %334, %333
  store i32 %335, ptr %16, align 4, !tbaa !9
  %336 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %336, ptr %17, align 4, !tbaa !9
  %337 = load ptr, ptr %5, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.w2c_hermes, ptr %337, i32 0, i32 6
  %339 = load i32, ptr %17, align 4, !tbaa !9
  %340 = zext i32 %339 to i64
  %341 = add i64 %340, 23
  %342 = call i32 @i32_load8_s(ptr noundef %338, i64 noundef %341)
  store i32 %342, ptr %17, align 4, !tbaa !9
  store i32 0, ptr %18, align 4, !tbaa !9
  %343 = load i32, ptr %17, align 4, !tbaa !9
  %344 = load i32, ptr %18, align 4, !tbaa !9
  %345 = icmp sge i32 %343, %344
  %346 = zext i1 %345 to i32
  store i32 %346, ptr %17, align 4, !tbaa !9
  %347 = load i32, ptr %17, align 4, !tbaa !9
  %348 = icmp ne i32 %347, 0
  br i1 %348, label %349, label %351

349:                                              ; preds = %311
  %350 = load i32, ptr %15, align 4, !tbaa !9
  br label %353

351:                                              ; preds = %311
  %352 = load i32, ptr %16, align 4, !tbaa !9
  br label %353

353:                                              ; preds = %351, %349
  %354 = phi i32 [ %350, %349 ], [ %352, %351 ]
  store i32 %354, ptr %15, align 4, !tbaa !9
  %355 = load ptr, ptr %5, align 8, !tbaa !5
  %356 = load i32, ptr %13, align 4, !tbaa !9
  %357 = load i32, ptr %14, align 4, !tbaa !9
  %358 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AcreditExternalMemory0x28hermes0x3A0x3Avm0x3A0x3AGCCell0x2A0x2C0x20unsigned0x20int0x29(ptr noundef %355, i32 noundef %356, i32 noundef %357, i32 noundef %358)
  %359 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %359, ptr %13, align 4, !tbaa !9
  %360 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %360, ptr %14, align 4, !tbaa !9
  %361 = load i32, ptr %14, align 4, !tbaa !9
  %362 = zext i32 %361 to i64
  store i64 %362, ptr %20, align 8, !tbaa !17
  store i64 -844424930131968, ptr %21, align 8, !tbaa !17
  %363 = load i64, ptr %21, align 8, !tbaa !17
  %364 = load i64, ptr %20, align 8, !tbaa !17
  %365 = or i64 %364, %363
  store i64 %365, ptr %20, align 8, !tbaa !17
  %366 = load ptr, ptr %5, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct.w2c_hermes, ptr %366, i32 0, i32 6
  %368 = load i32, ptr %13, align 4, !tbaa !9
  %369 = zext i32 %368 to i64
  %370 = add i64 %369, 8
  %371 = load i64, ptr %20, align 8, !tbaa !17
  call void @i64_store(ptr noundef %367, i64 noundef %370, i64 noundef %371)
  %372 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %372, ptr %13, align 4, !tbaa !9
  %373 = load ptr, ptr %5, align 8, !tbaa !5
  %374 = getelementptr inbounds %struct.w2c_hermes, ptr %373, i32 0, i32 6
  %375 = load i32, ptr %13, align 4, !tbaa !9
  %376 = zext i32 %375 to i64
  %377 = add i64 %376, 23
  %378 = call i32 @i32_load8_s(ptr noundef %374, i64 noundef %377)
  store i32 %378, ptr %13, align 4, !tbaa !9
  %379 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %379, ptr %7, align 4, !tbaa !9
  %380 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %380, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %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 %13, align 4, !tbaa !9
  %384 = zext i32 %383 to i64
  %385 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %382, i64 noundef %384, i32 noundef %385)
  %386 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %386, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  %387 = load i32, ptr %13, align 4, !tbaa !9
  %388 = load i32, ptr %14, align 4, !tbaa !9
  %389 = icmp sge i32 %387, %388
  %390 = zext i1 %389 to i32
  store i32 %390, ptr %13, align 4, !tbaa !9
  %391 = load i32, ptr %13, align 4, !tbaa !9
  %392 = icmp ne i32 %391, 0
  br i1 %392, label %393, label %394

393:                                              ; preds = %353
  br label %405

394:                                              ; preds = %353
  br label %395

395:                                              ; preds = %394, %267
  %396 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %396, ptr %13, align 4, !tbaa !9
  %397 = load ptr, ptr %5, align 8, !tbaa !5
  %398 = getelementptr inbounds %struct.w2c_hermes, ptr %397, i32 0, i32 6
  %399 = load i32, ptr %13, align 4, !tbaa !9
  %400 = zext i32 %399 to i64
  %401 = add i64 %400, 12
  %402 = call i32 @i32_load(ptr noundef %398, i64 noundef %401)
  store i32 %402, ptr %13, align 4, !tbaa !9
  %403 = load ptr, ptr %5, align 8, !tbaa !5
  %404 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_dlfree(ptr noundef %403, i32 noundef %404)
  br label %405

405:                                              ; preds = %395, %393, %104, %39
  %406 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %406, ptr %13, align 4, !tbaa !9
  store i32 -64, ptr %14, align 4, !tbaa !9
  %407 = load i32, ptr %14, align 4, !tbaa !9
  %408 = load i32, ptr %13, align 4, !tbaa !9
  %409 = sub i32 %408, %407
  store i32 %409, ptr %13, align 4, !tbaa !9
  %410 = load i32, ptr %13, align 4, !tbaa !9
  %411 = load ptr, ptr %5, align 8, !tbaa !5
  %412 = getelementptr inbounds %struct.w2c_hermes, ptr %411, i32 0, i32 3
  store i32 %410, ptr %412, align 8, !tbaa !11
  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 8, 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
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AExternalStringPrimitive0x3Cchar0x3E0x2A0x20hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AmakeA0x3Chermes0x3A0x3Avm0x3A0x3AExternalStringPrimitive0x3Cchar0x3E0x2C0x20false0x2C0x200x28hermes0x3A0x3Avm0x3A0x3AHasFinalizer0x2910x2C0x200x28hermes0x3A0x3Avm0x3A0x3ALongLived0x2900x2C0x20std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3E0x28unsigned0x20int0x2C0x20std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x260x260x29(ptr 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

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 void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AcreditExternalMemory0x28hermes0x3A0x3Avm0x3A0x3AGCCell0x2A0x2C0x20unsigned0x20int0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AExternalStringPrimitive0x3Cchar0x3E0x3A0x3Acreate0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20unsigned0x20int0x29(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 %90

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 = zext nneg i32 %3 to i64
  %26 = icmp ult i64 %24, %25
  br i1 %26, label %27, label %36

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

36:                                               ; preds = %19
  %37 = icmp ugt i32 %3, 10
  br i1 %37, label %38, label %47

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

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

51:                                               ; preds = %47, %38
  %.pre227.pre-phi = phi i64 [ %49, %47 ], [ %.pre, %38 ]
  %.pre.pre-phi = phi i64 [ %48, %47 ], [ %43, %38 ]
  %.0 = phi i32 [ %50, %47 ], [ %41, %38 ]
  %52 = tail call i32 @w2c_hermes_0x5F_memset(ptr noundef nonnull %0, i32 noundef %.0, i32 noundef 0, i32 noundef %3) #3
  br label %53

53:                                               ; preds = %47, %51
  %.pre-phi228 = phi i64 [ %49, %47 ], [ %.pre227.pre-phi, %51 ]
  %.pre-phi = phi i64 [ %48, %47 ], [ %.pre.pre-phi, %51 ]
  %.1 = phi i32 [ %50, %47 ], [ %.0, %51 ]
  %54 = add i32 %.1, %3
  %55 = zext i32 %54 to i64
  tail call void @i32_store8(ptr noundef nonnull %21, i64 noundef %55, i32 noundef 0)
  %56 = tail call i32 @i32_load8_s(ptr noundef nonnull %21, i64 noundef %.pre-phi228)
  %57 = icmp sgt i32 %56, -1
  br i1 %57, label %70, label %58

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

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

70:                                               ; preds = %58, %53
  %71 = add i32 %6, -52
  %72 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AExternalStringPrimitive0x3Cchar0x3E0x2A0x20hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AmakeA0x3Chermes0x3A0x3Avm0x3A0x3AExternalStringPrimitive0x3Cchar0x3E0x2C0x20false0x2C0x200x28hermes0x3A0x3Avm0x3A0x3AHasFinalizer0x2910x2C0x200x28hermes0x3A0x3Avm0x3A0x3ALongLived0x2900x2C0x20std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3E0x28unsigned0x20int0x2C0x20std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x260x260x29(ptr noundef nonnull %0, i32 noundef %20, i32 noundef %71)
  %73 = zext i32 %72 to i64
  %74 = add nuw nsw i64 %73, 20
  %75 = tail call i32 @i32_load(ptr noundef nonnull %21, i64 noundef %74)
  %76 = and i32 %75, 2147483647
  %77 = add nsw i32 %76, -1
  %78 = add nuw nsw i64 %73, 23
  %79 = tail call i32 @i32_load8_s(ptr noundef nonnull %21, i64 noundef %78)
  %80 = icmp sgt i32 %79, -1
  %81 = select i1 %80, i32 10, i32 %77
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AcreditExternalMemory0x28hermes0x3A0x3Avm0x3A0x3AGCCell0x2A0x2C0x20unsigned0x20int0x29(ptr noundef nonnull %0, i32 noundef %20, i32 noundef %72, i32 noundef %81)
  %82 = or disjoint i64 %73, -844424930131968
  %83 = zext i32 %1 to i64
  %84 = add nuw nsw i64 %83, 8
  tail call void @i64_store(ptr noundef nonnull %21, i64 noundef %84, i64 noundef %82)
  %85 = tail call i32 @i32_load8_s(ptr noundef nonnull %21, i64 noundef %.pre-phi228)
  tail call void @i32_store(ptr noundef nonnull %21, i64 noundef %83, i32 noundef 1)
  %86 = icmp sgt i32 %85, -1
  br i1 %86, label %90, label %87

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

90:                                               ; preds = %70, %87, %27, %9
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AExternalStringPrimitive0x3Cchar0x3E0x2A0x20hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AmakeA0x3Chermes0x3A0x3Avm0x3A0x3AExternalStringPrimitive0x3Cchar0x3E0x2C0x20false0x2C0x200x28hermes0x3A0x3Avm0x3A0x3AHasFinalizer0x2910x2C0x200x28hermes0x3A0x3Avm0x3A0x3ALongLived0x2900x2C0x20std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3E0x28unsigned0x20int0x2C0x20std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x260x260x29(ptr 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,SROAPass,SimplifyCFGPass,TailCallElimPass