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

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

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

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

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

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

; 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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef, i32 noundef, i64 noundef) #2

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AgetCharacterString0x28char16_t0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store i64 0, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.w2c_hermes, ptr %17, i32 0, i32 3
  %19 = load i32, ptr %18, align 8, !tbaa !13
  store i32 %19, ptr %11, align 4, !tbaa !9
  store i32 48, ptr %12, align 4, !tbaa !9
  %20 = load i32, ptr %12, align 4, !tbaa !9
  %21 = load i32, ptr %11, align 4, !tbaa !9
  %22 = sub i32 %21, %20
  store i32 %22, ptr %11, align 4, !tbaa !9
  %23 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %23, ptr %7, align 4, !tbaa !9
  %24 = load i32, ptr %11, align 4, !tbaa !9
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.w2c_hermes, ptr %25, i32 0, i32 3
  store i32 %24, ptr %26, align 8, !tbaa !13
  %27 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %27, ptr %11, align 4, !tbaa !9
  %28 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %28, ptr %12, align 4, !tbaa !9
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.w2c_hermes, ptr %29, i32 0, i32 6
  %31 = load i32, ptr %11, align 4, !tbaa !9
  %32 = zext i32 %31 to i64
  %33 = add i64 %32, 46
  %34 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %30, i64 noundef %33, i32 noundef %34)
  %35 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %35, ptr %11, align 4, !tbaa !9
  store i32 255, ptr %12, align 4, !tbaa !9
  %36 = load i32, ptr %11, align 4, !tbaa !9
  %37 = load i32, ptr %12, align 4, !tbaa !9
  %38 = icmp ule i32 %36, %37
  %39 = zext i1 %38 to i32
  store i32 %39, ptr %11, align 4, !tbaa !9
  %40 = load i32, ptr %11, align 4, !tbaa !9
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %58

42:                                               ; preds = %3
  %43 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %43, ptr %11, align 4, !tbaa !9
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.w2c_hermes, ptr %44, i32 0, i32 6
  %46 = load i32, ptr %11, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = add i64 %47, 5688
  %49 = call i32 @i32_load(ptr noundef %45, i64 noundef %48)
  store i32 %49, ptr %11, align 4, !tbaa !9
  %50 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %50, ptr %12, align 4, !tbaa !9
  store i32 3, ptr %13, align 4, !tbaa !9
  %51 = load i32, ptr %13, align 4, !tbaa !9
  %52 = and i32 %51, 31
  %53 = load i32, ptr %12, align 4, !tbaa !9
  %54 = shl i32 %53, %52
  store i32 %54, ptr %12, align 4, !tbaa !9
  %55 = load i32, ptr %12, align 4, !tbaa !9
  %56 = load i32, ptr %11, align 4, !tbaa !9
  %57 = add i32 %56, %55
  store i32 %57, ptr %11, align 4, !tbaa !9
  br label %309

58:                                               ; preds = %3
  %59 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %59, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.w2c_hermes, ptr %60, i32 0, i32 6
  %62 = load i32, ptr %11, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = add i64 %63, 20
  %65 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %61, i64 noundef %64, i32 noundef %65)
  %66 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %66, ptr %11, align 4, !tbaa !9
  %67 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %67, ptr %12, align 4, !tbaa !9
  store i32 46, ptr %13, align 4, !tbaa !9
  %68 = load i32, ptr %13, align 4, !tbaa !9
  %69 = load i32, ptr %12, align 4, !tbaa !9
  %70 = add i32 %69, %68
  store i32 %70, ptr %12, align 4, !tbaa !9
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.w2c_hermes, ptr %71, i32 0, i32 6
  %73 = load i32, ptr %11, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = add i64 %74, 16
  %76 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %72, i64 noundef %75, i32 noundef %76)
  %77 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %77, ptr %11, align 4, !tbaa !9
  %78 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %78, ptr %12, align 4, !tbaa !9
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.w2c_hermes, ptr %79, i32 0, i32 6
  %81 = load i32, ptr %12, align 4, !tbaa !9
  %82 = zext i32 %81 to i64
  %83 = add i64 %82, 16
  %84 = call i64 @i64_load(ptr noundef %80, i64 noundef %83)
  store i64 %84, ptr %16, align 8, !tbaa !11
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.w2c_hermes, ptr %85, i32 0, i32 6
  %87 = load i32, ptr %11, align 4, !tbaa !9
  %88 = zext i32 %87 to i64
  %89 = add i64 %88, 8
  %90 = load i64, ptr %16, align 8, !tbaa !11
  call void @i64_store(ptr noundef %86, i64 noundef %89, i64 noundef %90)
  %91 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %91, ptr %11, align 4, !tbaa !9
  store i32 24, ptr %12, align 4, !tbaa !9
  %92 = load i32, ptr %12, align 4, !tbaa !9
  %93 = load i32, ptr %11, align 4, !tbaa !9
  %94 = add i32 %93, %92
  store i32 %94, ptr %11, align 4, !tbaa !9
  %95 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %95, ptr %8, align 4, !tbaa !9
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.w2c_hermes, ptr %96, i32 0, i32 3
  %98 = load i32, ptr %97, align 8, !tbaa !13
  store i32 %98, ptr %11, align 4, !tbaa !9
  store i32 48, ptr %12, align 4, !tbaa !9
  %99 = load i32, ptr %12, align 4, !tbaa !9
  %100 = load i32, ptr %11, align 4, !tbaa !9
  %101 = sub i32 %100, %99
  store i32 %101, ptr %11, align 4, !tbaa !9
  %102 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %102, ptr %6, align 4, !tbaa !9
  %103 = load i32, ptr %11, align 4, !tbaa !9
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.w2c_hermes, ptr %104, i32 0, i32 3
  store i32 %103, ptr %105, align 8, !tbaa !13
  %106 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %106, ptr %11, align 4, !tbaa !9
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.w2c_hermes, ptr %107, i32 0, i32 6
  %109 = load i32, ptr %11, align 4, !tbaa !9
  %110 = zext i32 %109 to i64
  %111 = add i64 %110, 12
  %112 = call i32 @i32_load(ptr noundef %108, i64 noundef %111)
  store i32 %112, ptr %11, align 4, !tbaa !9
  store i32 65535, ptr %12, align 4, !tbaa !9
  %113 = load i32, ptr %11, align 4, !tbaa !9
  %114 = load i32, ptr %12, align 4, !tbaa !9
  %115 = icmp ule i32 %113, %114
  %116 = zext i1 %115 to i32
  store i32 %116, ptr %11, align 4, !tbaa !9
  %117 = load i32, ptr %11, align 4, !tbaa !9
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %153

119:                                              ; preds = %58
  %120 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %120, ptr %11, align 4, !tbaa !9
  %121 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %121, ptr %12, align 4, !tbaa !9
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.w2c_hermes, ptr %122, i32 0, i32 6
  %124 = load i32, ptr %12, align 4, !tbaa !9
  %125 = zext i32 %124 to i64
  %126 = add i64 %125, 8
  %127 = call i64 @i64_load(ptr noundef %123, i64 noundef %126)
  store i64 %127, ptr %16, align 8, !tbaa !11
  %128 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %128, ptr %10, align 8, !tbaa !11
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.w2c_hermes, ptr %129, i32 0, i32 6
  %131 = load i32, ptr %11, align 4, !tbaa !9
  %132 = zext i32 %131 to i64
  %133 = add i64 %132, 8
  %134 = load i64, ptr %16, align 8, !tbaa !11
  call void @i64_store(ptr noundef %130, i64 noundef %133, i64 noundef %134)
  %135 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %135, ptr %11, align 4, !tbaa !9
  %136 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %136, ptr %16, align 8, !tbaa !11
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.w2c_hermes, ptr %137, i32 0, i32 6
  %139 = load i32, ptr %11, align 4, !tbaa !9
  %140 = zext i32 %139 to i64
  %141 = add i64 %140, 40
  %142 = load i64, ptr %16, align 8, !tbaa !11
  call void @i64_store(ptr noundef %138, i64 noundef %141, i64 noundef %142)
  %143 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %143, ptr %11, align 4, !tbaa !9
  %144 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %144, ptr %12, align 4, !tbaa !9
  %145 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %145, ptr %13, align 4, !tbaa !9
  store i32 8, ptr %14, align 4, !tbaa !9
  %146 = load i32, ptr %14, align 4, !tbaa !9
  %147 = load i32, ptr %13, align 4, !tbaa !9
  %148 = add i32 %147, %146
  store i32 %148, ptr %13, align 4, !tbaa !9
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = load i32, ptr %11, align 4, !tbaa !9
  %151 = load i32, ptr %12, align 4, !tbaa !9
  %152 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3A0x3AcreateDynamic0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20llvh0x3A0x3AArrayRef0x3Cchar16_t0x3E0x29(ptr noundef %149, i32 noundef %150, i32 noundef %151, i32 noundef %152)
  br label %216

153:                                              ; preds = %58
  %154 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %154, ptr %11, align 4, !tbaa !9
  %155 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %155, ptr %12, align 4, !tbaa !9
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.w2c_hermes, ptr %156, i32 0, i32 6
  %158 = load i32, ptr %12, align 4, !tbaa !9
  %159 = zext i32 %158 to i64
  %160 = add i64 %159, 8
  %161 = call i64 @i64_load(ptr noundef %157, i64 noundef %160)
  store i64 %161, ptr %16, align 8, !tbaa !11
  %162 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %162, ptr %10, align 8, !tbaa !11
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.w2c_hermes, ptr %163, i32 0, i32 6
  %165 = load i32, ptr %11, align 4, !tbaa !9
  %166 = zext i32 %165 to i64
  %167 = load i64, ptr %16, align 8, !tbaa !11
  call void @i64_store(ptr noundef %164, i64 noundef %166, i64 noundef %167)
  %168 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %168, ptr %11, align 4, !tbaa !9
  %169 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %169, ptr %16, align 8, !tbaa !11
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.w2c_hermes, ptr %170, i32 0, i32 6
  %172 = load i32, ptr %11, align 4, !tbaa !9
  %173 = zext i32 %172 to i64
  %174 = add i64 %173, 16
  %175 = load i64, ptr %16, align 8, !tbaa !11
  call void @i64_store(ptr noundef %171, i64 noundef %174, i64 noundef %175)
  %176 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %176, ptr %11, align 4, !tbaa !9
  store i32 28, ptr %12, align 4, !tbaa !9
  %177 = load i32, ptr %12, align 4, !tbaa !9
  %178 = load i32, ptr %11, align 4, !tbaa !9
  %179 = add i32 %178, %177
  store i32 %179, ptr %11, align 4, !tbaa !9
  %180 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %180, ptr %9, align 4, !tbaa !9
  %181 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %181, ptr %12, align 4, !tbaa !9
  %182 = load ptr, ptr %4, align 8, !tbaa !5
  %183 = load i32, ptr %11, align 4, !tbaa !9
  %184 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar16_t0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar16_t0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar16_t0x3E0x3E0x20hermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3A0x3AarrayToString0x3Cchar16_t0x3E0x28llvh0x3A0x3AArrayRef0x3Cchar16_t0x3E0x29(ptr noundef %182, i32 noundef %183, i32 noundef %184)
  %185 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %185, ptr %11, align 4, !tbaa !9
  %186 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %186, ptr %12, align 4, !tbaa !9
  %187 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %187, ptr %13, align 4, !tbaa !9
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = load i32, ptr %11, align 4, !tbaa !9
  %190 = load i32, ptr %12, align 4, !tbaa !9
  %191 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACallResult0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x2C0x200x28hermes0x3A0x3Avm0x3A0x3Adetail0x3A0x3ACallResultSpecialize0x2920x3E0x20hermes0x3A0x3Avm0x3A0x3AExternalStringPrimitive0x3Cchar16_t0x3E0x3A0x3Acreate0x3Cstd0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar16_t0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar16_t0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar16_t0x3E0x3E0x3E0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar16_t0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar16_t0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar16_t0x3E0x3E0x260x260x29(ptr noundef %188, i32 noundef %189, i32 noundef %190, i32 noundef %191)
  %192 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %192, ptr %11, align 4, !tbaa !9
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.w2c_hermes, ptr %193, i32 0, i32 6
  %195 = load i32, ptr %11, align 4, !tbaa !9
  %196 = zext i32 %195 to i64
  %197 = add i64 %196, 39
  %198 = call i32 @i32_load8_s(ptr noundef %194, i64 noundef %197)
  store i32 %198, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %199 = load i32, ptr %11, align 4, !tbaa !9
  %200 = load i32, ptr %12, align 4, !tbaa !9
  %201 = icmp sge i32 %199, %200
  %202 = zext i1 %201 to i32
  store i32 %202, ptr %11, align 4, !tbaa !9
  %203 = load i32, ptr %11, align 4, !tbaa !9
  %204 = icmp ne i32 %203, 0
  br i1 %204, label %205, label %206

205:                                              ; preds = %153
  br label %216

206:                                              ; preds = %153
  %207 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %207, ptr %11, align 4, !tbaa !9
  %208 = load ptr, ptr %4, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.w2c_hermes, ptr %208, i32 0, i32 6
  %210 = load i32, ptr %11, align 4, !tbaa !9
  %211 = zext i32 %210 to i64
  %212 = add i64 %211, 28
  %213 = call i32 @i32_load(ptr noundef %209, i64 noundef %212)
  store i32 %213, ptr %11, align 4, !tbaa !9
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  %215 = load i32, ptr %11, align 4, !tbaa !9
  call void @w2c_hermes_dlfree(ptr noundef %214, i32 noundef %215)
  br label %216

216:                                              ; preds = %206, %205, %119
  %217 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %217, ptr %11, align 4, !tbaa !9
  store i32 48, ptr %12, align 4, !tbaa !9
  %218 = load i32, ptr %12, align 4, !tbaa !9
  %219 = load i32, ptr %11, align 4, !tbaa !9
  %220 = add i32 %219, %218
  store i32 %220, ptr %11, align 4, !tbaa !9
  %221 = load i32, ptr %11, align 4, !tbaa !9
  %222 = load ptr, ptr %4, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.w2c_hermes, ptr %222, i32 0, i32 3
  store i32 %221, ptr %223, align 8, !tbaa !13
  %224 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %224, ptr %11, align 4, !tbaa !9
  %225 = load ptr, ptr %4, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.w2c_hermes, ptr %225, i32 0, i32 6
  %227 = load i32, ptr %11, align 4, !tbaa !9
  %228 = zext i32 %227 to i64
  %229 = add i64 %228, 24
  %230 = call i32 @i32_load(ptr noundef %226, i64 noundef %229)
  store i32 %230, ptr %11, align 4, !tbaa !9
  %231 = load i32, ptr %11, align 4, !tbaa !9
  %232 = icmp ne i32 %231, 0
  %233 = xor i1 %232, true
  %234 = zext i1 %233 to i32
  store i32 %234, ptr %11, align 4, !tbaa !9
  %235 = load i32, ptr %11, align 4, !tbaa !9
  %236 = icmp ne i32 %235, 0
  br i1 %236, label %237, label %238

237:                                              ; preds = %216
  br label %319

238:                                              ; preds = %216
  %239 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %239, ptr %11, align 4, !tbaa !9
  %240 = load ptr, ptr %4, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.w2c_hermes, ptr %240, i32 0, i32 6
  %242 = load i32, ptr %11, align 4, !tbaa !9
  %243 = zext i32 %242 to i64
  %244 = add i64 %243, 32
  %245 = call i64 @i64_load(ptr noundef %241, i64 noundef %244)
  store i64 %245, ptr %15, align 8, !tbaa !11
  store i64 4294967295, ptr %16, align 8, !tbaa !11
  %246 = load i64, ptr %16, align 8, !tbaa !11
  %247 = load i64, ptr %15, align 8, !tbaa !11
  %248 = and i64 %247, %246
  store i64 %248, ptr %15, align 8, !tbaa !11
  store i64 -844424930131968, ptr %16, align 8, !tbaa !11
  %249 = load i64, ptr %16, align 8, !tbaa !11
  %250 = load i64, ptr %15, align 8, !tbaa !11
  %251 = or i64 %250, %249
  store i64 %251, ptr %15, align 8, !tbaa !11
  %252 = load i64, ptr %15, align 8, !tbaa !11
  store i64 %252, ptr %10, align 8, !tbaa !11
  %253 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %253, ptr %11, align 4, !tbaa !9
  %254 = load ptr, ptr %4, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.w2c_hermes, ptr %254, i32 0, i32 6
  %256 = load i32, ptr %11, align 4, !tbaa !9
  %257 = zext i32 %256 to i64
  %258 = add i64 %257, 4
  %259 = call i32 @i32_load(ptr noundef %255, i64 noundef %258)
  store i32 %259, ptr %11, align 4, !tbaa !9
  %260 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %260, ptr %5, align 4, !tbaa !9
  %261 = load ptr, ptr %4, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.w2c_hermes, ptr %261, i32 0, i32 6
  %263 = load i32, ptr %11, align 4, !tbaa !9
  %264 = zext i32 %263 to i64
  %265 = add i64 %264, 164
  %266 = call i32 @i32_load(ptr noundef %262, i64 noundef %265)
  store i32 %266, ptr %11, align 4, !tbaa !9
  %267 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %267, ptr %6, align 4, !tbaa !9
  %268 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %268, ptr %12, align 4, !tbaa !9
  %269 = load ptr, ptr %4, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.w2c_hermes, ptr %269, i32 0, i32 6
  %271 = load i32, ptr %12, align 4, !tbaa !9
  %272 = zext i32 %271 to i64
  %273 = add i64 %272, 168
  %274 = call i32 @i32_load(ptr noundef %270, i64 noundef %273)
  store i32 %274, ptr %12, align 4, !tbaa !9
  %275 = load i32, ptr %11, align 4, !tbaa !9
  %276 = load i32, ptr %12, align 4, !tbaa !9
  %277 = icmp ult i32 %275, %276
  %278 = zext i1 %277 to i32
  store i32 %278, ptr %11, align 4, !tbaa !9
  %279 = load i32, ptr %11, align 4, !tbaa !9
  %280 = icmp ne i32 %279, 0
  br i1 %280, label %281, label %301

281:                                              ; preds = %238
  %282 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %282, ptr %11, align 4, !tbaa !9
  %283 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %283, ptr %12, align 4, !tbaa !9
  store i32 8, ptr %13, align 4, !tbaa !9
  %284 = load i32, ptr %13, align 4, !tbaa !9
  %285 = load i32, ptr %12, align 4, !tbaa !9
  %286 = add i32 %285, %284
  store i32 %286, ptr %12, align 4, !tbaa !9
  %287 = load ptr, ptr %4, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.w2c_hermes, ptr %287, i32 0, i32 6
  %289 = load i32, ptr %11, align 4, !tbaa !9
  %290 = zext i32 %289 to i64
  %291 = add i64 %290, 164
  %292 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %288, i64 noundef %291, i32 noundef %292)
  %293 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %293, ptr %11, align 4, !tbaa !9
  %294 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %294, ptr %16, align 8, !tbaa !11
  %295 = load ptr, ptr %4, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.w2c_hermes, ptr %295, i32 0, i32 6
  %297 = load i32, ptr %11, align 4, !tbaa !9
  %298 = zext i32 %297 to i64
  %299 = load i64, ptr %16, align 8, !tbaa !11
  call void @i64_store(ptr noundef %296, i64 noundef %298, i64 noundef %299)
  %300 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %300, ptr %11, align 4, !tbaa !9
  br label %308

301:                                              ; preds = %238
  %302 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %302, ptr %11, align 4, !tbaa !9
  %303 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %303, ptr %16, align 8, !tbaa !11
  %304 = load ptr, ptr %4, align 8, !tbaa !5
  %305 = load i32, ptr %11, align 4, !tbaa !9
  %306 = load i64, ptr %16, align 8, !tbaa !11
  %307 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %304, i32 noundef %305, i64 noundef %306)
  store i32 %307, ptr %11, align 4, !tbaa !9
  br label %308

308:                                              ; preds = %301, %281
  br label %309

309:                                              ; preds = %308, %42
  %310 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %310, ptr %5, align 4, !tbaa !9
  %311 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %311, ptr %11, align 4, !tbaa !9
  store i32 48, ptr %12, align 4, !tbaa !9
  %312 = load i32, ptr %12, align 4, !tbaa !9
  %313 = load i32, ptr %11, align 4, !tbaa !9
  %314 = add i32 %313, %312
  store i32 %314, ptr %11, align 4, !tbaa !9
  %315 = load i32, ptr %11, align 4, !tbaa !9
  %316 = load ptr, ptr %4, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.w2c_hermes, ptr %316, i32 0, i32 3
  store i32 %315, ptr %317, align 8, !tbaa !13
  %318 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %318, ptr %11, align 4, !tbaa !9
  br label %322

319:                                              ; preds = %237
  store i32 40743, ptr %11, align 4, !tbaa !9
  %320 = load ptr, ptr %4, align 8, !tbaa !5
  %321 = load i32, ptr %11, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Ahermes_fatal0x28char0x20const0x2A0x29(ptr noundef %320, i32 noundef %321)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

322:                                              ; preds = %309
  %323 = load i32, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret i32 %323
}

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

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

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 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { noreturn }

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

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


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

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

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

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AgetCharacterString0x28char16_t0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = add i32 %5, -48
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = zext i32 %6 to i64
  %9 = add nuw nsw i64 %8, 46
  tail call void @i32_store16(ptr noundef nonnull %7, i64 noundef %9, i32 noundef %2)
  %10 = icmp ult i32 %2, 256
  br i1 %10, label %11, label %17

11:                                               ; preds = %3
  %12 = zext i32 %1 to i64
  %13 = add nuw nsw i64 %12, 5688
  %14 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %13)
  %15 = shl nuw nsw i32 %2, 3
  %16 = add i32 %14, %15
  br label %66

17:                                               ; preds = %3
  %18 = add nuw nsw i64 %8, 20
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %18, i32 noundef 1)
  %19 = add i32 %5, -2
  %20 = add nuw nsw i64 %8, 16
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %20, i32 noundef %19)
  %21 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %20)
  %22 = add nuw nsw i64 %8, 8
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %22, i64 noundef %21)
  %23 = add i32 %5, -24
  %24 = load i32, ptr %4, align 8, !tbaa !5
  %25 = add i32 %24, -48
  store i32 %25, ptr %4, align 8, !tbaa !5
  %26 = add nuw nsw i64 %8, 12
  %27 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %26)
  %28 = icmp ult i32 %27, 65536
  %29 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %22)
  %30 = zext i32 %25 to i64
  br i1 %28, label %31, label %35

31:                                               ; preds = %17
  %32 = add nuw nsw i64 %30, 8
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %32, i64 noundef %29)
  %33 = add nuw nsw i64 %30, 40
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %33, i64 noundef %29)
  %34 = add i32 %24, -40
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3A0x3AcreateDynamic0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20llvh0x3A0x3AArrayRef0x3Cchar16_t0x3E0x29(ptr noundef nonnull %0, i32 noundef %23, i32 noundef %1, i32 noundef %34)
  br label %44

35:                                               ; preds = %17
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %30, i64 noundef %29)
  %36 = add nuw nsw i64 %30, 16
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %36, i64 noundef %29)
  %37 = add i32 %24, -20
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar16_t0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar16_t0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar16_t0x3E0x3E0x20hermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3A0x3AarrayToString0x3Cchar16_t0x3E0x28llvh0x3A0x3AArrayRef0x3Cchar16_t0x3E0x29(ptr noundef nonnull %0, i32 noundef %37, i32 noundef %25) #4
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACallResult0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x2C0x200x28hermes0x3A0x3Avm0x3A0x3Adetail0x3A0x3ACallResultSpecialize0x2920x3E0x20hermes0x3A0x3Avm0x3A0x3AExternalStringPrimitive0x3Cchar16_t0x3E0x3A0x3Acreate0x3Cstd0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar16_t0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar16_t0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar16_t0x3E0x3E0x3E0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar16_t0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar16_t0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar16_t0x3E0x3E0x260x260x29(ptr noundef nonnull %0, i32 noundef %23, i32 noundef %1, i32 noundef %37) #4
  %38 = add nuw nsw i64 %30, 39
  %39 = tail call i32 @i32_load8_s(ptr noundef nonnull %7, i64 noundef %38)
  %40 = icmp sgt i32 %39, -1
  br i1 %40, label %44, label %41

41:                                               ; preds = %35
  %42 = add nuw nsw i64 %30, 28
  %43 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %42)
  tail call void @w2c_hermes_dlfree(ptr noundef nonnull %0, i32 noundef %43) #4
  br label %44

44:                                               ; preds = %35, %41, %31
  store i32 %24, ptr %4, align 8, !tbaa !5
  %45 = add nuw nsw i64 %8, 24
  %46 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %45)
  %.not = icmp eq i32 %46, 0
  br i1 %.not, label %67, label %47

47:                                               ; preds = %44
  %48 = add nuw nsw i64 %8, 32
  %49 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %48)
  %50 = and i64 %49, 4294967295
  %51 = or disjoint i64 %50, -844424930131968
  %52 = zext i32 %1 to i64
  %53 = add nuw nsw i64 %52, 4
  %54 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %53)
  %55 = zext i32 %54 to i64
  %56 = add nuw nsw i64 %55, 164
  %57 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %56)
  %58 = add nuw nsw i64 %55, 168
  %59 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %58)
  %60 = icmp ult i32 %57, %59
  br i1 %60, label %61, label %64

61:                                               ; preds = %47
  %62 = add i32 %57, 8
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %56, i32 noundef %62)
  %63 = zext i32 %57 to i64
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %63, i64 noundef %51)
  br label %66

64:                                               ; preds = %47
  %65 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef nonnull %0, i32 noundef %54, i64 noundef %51) #4
  br label %66

66:                                               ; preds = %61, %64, %11
  %.0 = phi i32 [ %16, %11 ], [ %57, %61 ], [ %65, %64 ]
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret i32 %.0

67:                                               ; preds = %44
  tail call void @w2c_hermes_hermes0x3A0x3Ahermes_fatal0x28char0x20const0x2A0x29(ptr noundef nonnull %0, i32 noundef 40743) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!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,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass