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

; 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_store16(ptr noundef, i64 noundef, i32 noundef) #1

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

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

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

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

; 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_load8_s(ptr noundef, i64 noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3AconvertUTF8WithSurrogatesToUTF8WithReplacements0x28std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x260x2C0x20llvh0x3A0x3AStringRef0x29(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 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 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 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  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 4, 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 !11
  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 !11
  %27 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %27, ptr %11, align 4, !tbaa !9
  store i64 34359738368, ptr %16, align 8, !tbaa !17
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.w2c_hermes, ptr %28, i32 0, i32 6
  %30 = load i32, ptr %11, align 4, !tbaa !9
  %31 = zext i32 %30 to i64
  %32 = add i64 %31, 20
  %33 = load i64, ptr %16, align 8, !tbaa !17
  call void @i64_store(ptr noundef %29, i64 noundef %32, i64 noundef %33)
  %34 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %34, ptr %11, align 4, !tbaa !9
  %35 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %35, ptr %12, align 4, !tbaa !9
  store i32 28, ptr %13, align 4, !tbaa !9
  %36 = load i32, ptr %13, align 4, !tbaa !9
  %37 = load i32, ptr %12, align 4, !tbaa !9
  %38 = add i32 %37, %36
  store i32 %38, ptr %12, align 4, !tbaa !9
  %39 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %39, ptr %10, align 4, !tbaa !9
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.w2c_hermes, ptr %40, i32 0, i32 6
  %42 = load i32, ptr %11, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = add i64 %43, 16
  %45 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %41, i64 noundef %44, i32 noundef %45)
  %46 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %46, ptr %11, align 4, !tbaa !9
  %47 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %47, ptr %8, align 4, !tbaa !9
  %48 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %48, ptr %11, align 4, !tbaa !9
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.w2c_hermes, ptr %49, i32 0, i32 6
  %51 = load i32, ptr %11, align 4, !tbaa !9
  %52 = zext i32 %51 to i64
  %53 = add i64 %52, 4
  %54 = call i32 @i32_load(ptr noundef %50, i64 noundef %53)
  store i32 %54, ptr %11, align 4, !tbaa !9
  %55 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %55, ptr %9, align 4, !tbaa !9
  store i32 9, ptr %12, align 4, !tbaa !9
  %56 = load i32, ptr %11, align 4, !tbaa !9
  %57 = load i32, ptr %12, align 4, !tbaa !9
  %58 = icmp uge i32 %56, %57
  %59 = zext i1 %58 to i32
  store i32 %59, ptr %11, align 4, !tbaa !9
  %60 = load i32, ptr %11, align 4, !tbaa !9
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %82

62:                                               ; preds = %3
  %63 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %63, ptr %11, align 4, !tbaa !9
  store i32 16, ptr %12, align 4, !tbaa !9
  %64 = load i32, ptr %12, align 4, !tbaa !9
  %65 = load i32, ptr %11, align 4, !tbaa !9
  %66 = add i32 %65, %64
  store i32 %66, ptr %11, align 4, !tbaa !9
  %67 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %67, ptr %12, align 4, !tbaa !9
  %68 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %68, ptr %13, align 4, !tbaa !9
  store i32 2, ptr %14, align 4, !tbaa !9
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = load i32, ptr %11, align 4, !tbaa !9
  %71 = load i32, ptr %12, align 4, !tbaa !9
  %72 = load i32, ptr %13, align 4, !tbaa !9
  %73 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3ASmallVectorBase0x3A0x3Agrow_pod0x28void0x2A0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef %69, i32 noundef %70, i32 noundef %71, i32 noundef %72, i32 noundef %73)
  %74 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %74, ptr %11, align 4, !tbaa !9
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.w2c_hermes, ptr %75, i32 0, i32 6
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = add i64 %78, 16
  %80 = call i32 @i32_load(ptr noundef %76, i64 noundef %79)
  store i32 %80, ptr %11, align 4, !tbaa !9
  %81 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %81, ptr %8, align 4, !tbaa !9
  br label %82

82:                                               ; preds = %62, %3
  %83 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %83, ptr %11, align 4, !tbaa !9
  %84 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %84, ptr %12, align 4, !tbaa !9
  %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 %12, align 4, !tbaa !9
  %88 = zext i32 %87 to i64
  %89 = call i32 @i32_load(ptr noundef %86, i64 noundef %88)
  store i32 %89, ptr %12, align 4, !tbaa !9
  %90 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %90, ptr %6, align 4, !tbaa !9
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.w2c_hermes, ptr %91, i32 0, i32 6
  %93 = load i32, ptr %11, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = add i64 %94, 44
  %96 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %92, i64 noundef %95, i32 noundef %96)
  %97 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %97, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %98 = load i32, ptr %11, align 4, !tbaa !9
  %99 = load i32, ptr %12, align 4, !tbaa !9
  %100 = icmp sle i32 %98, %99
  %101 = zext i1 %100 to i32
  store i32 %101, ptr %11, align 4, !tbaa !9
  %102 = load i32, ptr %11, align 4, !tbaa !9
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %106

104:                                              ; preds = %82
  %105 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %105, ptr %11, align 4, !tbaa !9
  br label %247

106:                                              ; preds = %82
  %107 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %107, ptr %11, align 4, !tbaa !9
  %108 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %108, ptr %12, align 4, !tbaa !9
  %109 = load i32, ptr %12, align 4, !tbaa !9
  %110 = load i32, ptr %11, align 4, !tbaa !9
  %111 = add i32 %110, %109
  store i32 %111, ptr %11, align 4, !tbaa !9
  %112 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %112, ptr %9, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %238, %106
  %114 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %114, ptr %11, align 4, !tbaa !9
  %115 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %115, ptr %12, align 4, !tbaa !9
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.w2c_hermes, ptr %116, i32 0, i32 6
  %118 = load i32, ptr %12, align 4, !tbaa !9
  %119 = zext i32 %118 to i64
  %120 = call i32 @i32_load8_s(ptr noundef %117, i64 noundef %119)
  store i32 %120, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %121 = load i32, ptr %12, align 4, !tbaa !9
  %122 = load i32, ptr %13, align 4, !tbaa !9
  %123 = icmp sge i32 %121, %122
  %124 = zext i1 %123 to i32
  store i32 %124, ptr %12, align 4, !tbaa !9
  %125 = load i32, ptr %12, align 4, !tbaa !9
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %145

127:                                              ; preds = %113
  %128 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %128, ptr %12, align 4, !tbaa !9
  %129 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %129, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %130 = load i32, ptr %14, align 4, !tbaa !9
  %131 = load i32, ptr %13, align 4, !tbaa !9
  %132 = add i32 %131, %130
  store i32 %132, ptr %13, align 4, !tbaa !9
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.w2c_hermes, ptr %133, i32 0, i32 6
  %135 = load i32, ptr %12, align 4, !tbaa !9
  %136 = zext i32 %135 to i64
  %137 = add i64 %136, 44
  %138 = load i32, ptr %13, 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 %12, align 4, !tbaa !9
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.w2c_hermes, ptr %140, i32 0, i32 6
  %142 = load i32, ptr %12, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = call i32 @i32_load8_s(ptr noundef %141, i64 noundef %143)
  store i32 %144, ptr %12, align 4, !tbaa !9
  br label %153

145:                                              ; preds = %113
  %146 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %146, ptr %12, align 4, !tbaa !9
  store i32 44, ptr %13, align 4, !tbaa !9
  %147 = load i32, ptr %13, align 4, !tbaa !9
  %148 = load i32, ptr %12, align 4, !tbaa !9
  %149 = add i32 %148, %147
  store i32 %149, ptr %12, align 4, !tbaa !9
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = load i32, ptr %12, align 4, !tbaa !9
  %152 = call i32 @w2c_hermes_unsigned0x20int0x20hermes0x3A0x3A_decodeUTF8SlowPath0x3Ctrue0x2C0x20char16_t0x2A0x20hermes0x3A0x3AconvertUTF8WithSurrogatesToUTF160x3Cchar16_t0x2A0x3E0x28char16_t0x2A0x2C0x20char0x20const0x2A0x2C0x20char0x20const0x2A0x290x3A0x3A0x27lambda0x270x28llvh0x3A0x3ATwine0x20const0x260x290x3E0x28char0x20const0x2A0x260x2C0x20char16_t0x2A0x20hermes0x3A0x3AconvertUTF8WithSurrogatesToUTF160x3Cchar16_t0x2A0x3E0x28char16_t0x2A0x2C0x20char0x20const0x2A0x2C0x20char0x20const0x2A0x290x3A0x3A0x27lambda0x270x28llvh0x3A0x3ATwine0x20const0x260x290x29(ptr noundef %150, i32 noundef %151)
  store i32 %152, ptr %12, align 4, !tbaa !9
  br label %153

153:                                              ; preds = %145, %127
  %154 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %154, ptr %6, align 4, !tbaa !9
  store i32 65535, ptr %13, align 4, !tbaa !9
  %155 = load i32, ptr %12, align 4, !tbaa !9
  %156 = load i32, ptr %13, align 4, !tbaa !9
  %157 = icmp ule i32 %155, %156
  %158 = zext i1 %157 to i32
  store i32 %158, ptr %12, align 4, !tbaa !9
  %159 = load i32, ptr %12, align 4, !tbaa !9
  %160 = icmp ne i32 %159, 0
  br i1 %160, label %161, label %169

161:                                              ; preds = %153
  %162 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %162, ptr %12, align 4, !tbaa !9
  %163 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %163, ptr %13, align 4, !tbaa !9
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.w2c_hermes, ptr %164, i32 0, i32 6
  %166 = load i32, ptr %12, align 4, !tbaa !9
  %167 = zext i32 %166 to i64
  %168 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %165, i64 noundef %167, i32 noundef %168)
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %213

169:                                              ; preds = %153
  %170 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %170, ptr %12, align 4, !tbaa !9
  store i32 1114112, ptr %13, align 4, !tbaa !9
  %171 = load i32, ptr %12, align 4, !tbaa !9
  %172 = load i32, ptr %13, align 4, !tbaa !9
  %173 = icmp uge i32 %171, %172
  %174 = zext i1 %173 to i32
  store i32 %174, ptr %12, align 4, !tbaa !9
  %175 = load i32, ptr %12, align 4, !tbaa !9
  %176 = icmp ne i32 %175, 0
  br i1 %176, label %177, label %178

177:                                              ; preds = %169
  br label %337

178:                                              ; preds = %169
  %179 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %179, ptr %12, align 4, !tbaa !9
  %180 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %180, ptr %13, align 4, !tbaa !9
  store i32 1023, ptr %14, align 4, !tbaa !9
  %181 = load i32, ptr %14, align 4, !tbaa !9
  %182 = load i32, ptr %13, align 4, !tbaa !9
  %183 = and i32 %182, %181
  store i32 %183, ptr %13, align 4, !tbaa !9
  store i32 56320, ptr %14, align 4, !tbaa !9
  %184 = load i32, ptr %14, align 4, !tbaa !9
  %185 = load i32, ptr %13, align 4, !tbaa !9
  %186 = or i32 %185, %184
  store i32 %186, ptr %13, align 4, !tbaa !9
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.w2c_hermes, ptr %187, i32 0, i32 6
  %189 = load i32, ptr %12, align 4, !tbaa !9
  %190 = zext i32 %189 to i64
  %191 = add i64 %190, 2
  %192 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %188, i64 noundef %191, i32 noundef %192)
  %193 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %193, ptr %12, align 4, !tbaa !9
  %194 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %194, ptr %13, align 4, !tbaa !9
  store i32 983040, ptr %14, align 4, !tbaa !9
  %195 = load i32, ptr %14, align 4, !tbaa !9
  %196 = load i32, ptr %13, align 4, !tbaa !9
  %197 = add i32 %196, %195
  store i32 %197, ptr %13, align 4, !tbaa !9
  store i32 10, ptr %14, align 4, !tbaa !9
  %198 = load i32, ptr %14, align 4, !tbaa !9
  %199 = and i32 %198, 31
  %200 = load i32, ptr %13, align 4, !tbaa !9
  %201 = lshr i32 %200, %199
  store i32 %201, ptr %13, align 4, !tbaa !9
  store i32 1023, ptr %14, align 4, !tbaa !9
  %202 = load i32, ptr %14, align 4, !tbaa !9
  %203 = load i32, ptr %13, align 4, !tbaa !9
  %204 = and i32 %203, %202
  store i32 %204, ptr %13, align 4, !tbaa !9
  store i32 55296, ptr %14, align 4, !tbaa !9
  %205 = load i32, ptr %14, align 4, !tbaa !9
  %206 = load i32, ptr %13, align 4, !tbaa !9
  %207 = or i32 %206, %205
  store i32 %207, ptr %13, 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 %12, align 4, !tbaa !9
  %211 = zext i32 %210 to i64
  %212 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %209, i64 noundef %211, i32 noundef %212)
  store i32 2, ptr %12, align 4, !tbaa !9
  br label %213

213:                                              ; preds = %178, %161
  %214 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %214, ptr %6, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %215 = load i32, ptr %13, align 4, !tbaa !9
  %216 = and i32 %215, 31
  %217 = load i32, ptr %12, align 4, !tbaa !9
  %218 = shl i32 %217, %216
  store i32 %218, ptr %12, align 4, !tbaa !9
  %219 = load i32, ptr %12, align 4, !tbaa !9
  %220 = load i32, ptr %11, align 4, !tbaa !9
  %221 = add i32 %220, %219
  store i32 %221, ptr %11, align 4, !tbaa !9
  %222 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %222, ptr %8, align 4, !tbaa !9
  %223 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %223, ptr %11, align 4, !tbaa !9
  %224 = load ptr, ptr %4, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.w2c_hermes, ptr %224, i32 0, i32 6
  %226 = load i32, ptr %11, align 4, !tbaa !9
  %227 = zext i32 %226 to i64
  %228 = add i64 %227, 44
  %229 = call i32 @i32_load(ptr noundef %225, i64 noundef %228)
  store i32 %229, ptr %11, align 4, !tbaa !9
  %230 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %230, ptr %6, align 4, !tbaa !9
  %231 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %231, ptr %12, align 4, !tbaa !9
  %232 = load i32, ptr %11, align 4, !tbaa !9
  %233 = load i32, ptr %12, align 4, !tbaa !9
  %234 = icmp ult i32 %232, %233
  %235 = zext i1 %234 to i32
  store i32 %235, ptr %11, align 4, !tbaa !9
  %236 = load i32, ptr %11, align 4, !tbaa !9
  %237 = icmp ne i32 %236, 0
  br i1 %237, label %238, label %239

238:                                              ; preds = %213
  br label %113

239:                                              ; preds = %213
  %240 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %240, ptr %11, align 4, !tbaa !9
  %241 = load ptr, ptr %4, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.w2c_hermes, ptr %241, i32 0, i32 6
  %243 = load i32, ptr %11, align 4, !tbaa !9
  %244 = zext i32 %243 to i64
  %245 = add i64 %244, 16
  %246 = call i32 @i32_load(ptr noundef %242, i64 noundef %245)
  store i32 %246, ptr %11, align 4, !tbaa !9
  br label %247

247:                                              ; preds = %239, %104
  %248 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %248, ptr %6, align 4, !tbaa !9
  %249 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %249, ptr %11, align 4, !tbaa !9
  %250 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %250, ptr %12, align 4, !tbaa !9
  %251 = load i32, ptr %12, align 4, !tbaa !9
  %252 = load i32, ptr %11, align 4, !tbaa !9
  %253 = sub i32 %252, %251
  store i32 %253, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %254 = load i32, ptr %11, align 4, !tbaa !9
  %255 = load i32, ptr %12, align 4, !tbaa !9
  %256 = and i32 %255, 31
  %257 = ashr i32 %254, %256
  store i32 %257, ptr %11, align 4, !tbaa !9
  %258 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %258, ptr %8, align 4, !tbaa !9
  %259 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %259, ptr %12, align 4, !tbaa !9
  %260 = load ptr, ptr %4, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.w2c_hermes, ptr %260, i32 0, i32 6
  %262 = load i32, ptr %12, align 4, !tbaa !9
  %263 = zext i32 %262 to i64
  %264 = add i64 %263, 24
  %265 = call i32 @i32_load(ptr noundef %261, i64 noundef %264)
  store i32 %265, ptr %12, align 4, !tbaa !9
  %266 = load i32, ptr %11, align 4, !tbaa !9
  %267 = load i32, ptr %12, align 4, !tbaa !9
  %268 = icmp ugt i32 %266, %267
  %269 = zext i1 %268 to i32
  store i32 %269, ptr %11, align 4, !tbaa !9
  %270 = load i32, ptr %11, align 4, !tbaa !9
  %271 = icmp ne i32 %270, 0
  br i1 %271, label %272, label %273

272:                                              ; preds = %247
  br label %355

273:                                              ; preds = %247
  %274 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %274, ptr %11, align 4, !tbaa !9
  %275 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %275, ptr %12, align 4, !tbaa !9
  %276 = load ptr, ptr %4, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.w2c_hermes, ptr %276, i32 0, i32 6
  %278 = load i32, ptr %11, align 4, !tbaa !9
  %279 = zext i32 %278 to i64
  %280 = add i64 %279, 12
  %281 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %277, i64 noundef %280, i32 noundef %281)
  %282 = load i32, ptr %7, 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
  %284 = load ptr, ptr %4, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.w2c_hermes, ptr %284, i32 0, i32 6
  %286 = load i32, ptr %11, align 4, !tbaa !9
  %287 = zext i32 %286 to i64
  %288 = add i64 %287, 8
  %289 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %285, i64 noundef %288, i32 noundef %289)
  %290 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %290, ptr %11, align 4, !tbaa !9
  %291 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %291, ptr %12, align 4, !tbaa !9
  %292 = load ptr, ptr %4, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.w2c_hermes, ptr %292, i32 0, i32 6
  %294 = load i32, ptr %12, align 4, !tbaa !9
  %295 = zext i32 %294 to i64
  %296 = add i64 %295, 8
  %297 = call i64 @i64_load(ptr noundef %293, i64 noundef %296)
  store i64 %297, ptr %16, align 8, !tbaa !17
  %298 = load ptr, ptr %4, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.w2c_hermes, ptr %298, i32 0, i32 6
  %300 = load i32, ptr %11, align 4, !tbaa !9
  %301 = zext i32 %300 to i64
  %302 = load i64, ptr %16, align 8, !tbaa !17
  call void @i64_store(ptr noundef %299, i64 noundef %301, i64 noundef %302)
  %303 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %303, ptr %11, align 4, !tbaa !9
  %304 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %304, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %305 = load ptr, ptr %4, align 8, !tbaa !5
  %306 = load i32, ptr %11, align 4, !tbaa !9
  %307 = load i32, ptr %12, align 4, !tbaa !9
  %308 = load i32, ptr %13, align 4, !tbaa !9
  %309 = call i32 @w2c_hermes_hermes0x3A0x3AconvertUTF16ToUTF8WithReplacements0x28std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x260x2C0x20llvh0x3A0x3AArrayRef0x3Cchar16_t0x3E0x2C0x20unsigned0x20long0x29(ptr noundef %305, i32 noundef %306, i32 noundef %307, i32 noundef %308)
  store i32 %309, ptr %11, align 4, !tbaa !9
  %310 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %310, ptr %11, align 4, !tbaa !9
  %311 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %311, ptr %12, align 4, !tbaa !9
  %312 = load ptr, ptr %4, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.w2c_hermes, ptr %312, i32 0, i32 6
  %314 = load i32, ptr %12, align 4, !tbaa !9
  %315 = zext i32 %314 to i64
  %316 = add i64 %315, 16
  %317 = call i32 @i32_load(ptr noundef %313, i64 noundef %316)
  store i32 %317, ptr %12, align 4, !tbaa !9
  %318 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %318, ptr %6, align 4, !tbaa !9
  %319 = load i32, ptr %11, align 4, !tbaa !9
  %320 = load i32, ptr %12, align 4, !tbaa !9
  %321 = icmp ne i32 %319, %320
  %322 = zext i1 %321 to i32
  store i32 %322, ptr %11, align 4, !tbaa !9
  %323 = load i32, ptr %11, align 4, !tbaa !9
  %324 = icmp ne i32 %323, 0
  br i1 %324, label %325, label %329

325:                                              ; preds = %273
  %326 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %326, ptr %11, align 4, !tbaa !9
  %327 = load ptr, ptr %4, align 8, !tbaa !5
  %328 = load i32, ptr %11, align 4, !tbaa !9
  call void @w2c_hermes_dlfree(ptr noundef %327, i32 noundef %328)
  br label %329

329:                                              ; preds = %325, %273
  %330 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %330, ptr %11, align 4, !tbaa !9
  store i32 48, ptr %12, align 4, !tbaa !9
  %331 = load i32, ptr %12, align 4, !tbaa !9
  %332 = load i32, ptr %11, align 4, !tbaa !9
  %333 = add i32 %332, %331
  store i32 %333, ptr %11, align 4, !tbaa !9
  %334 = load i32, ptr %11, align 4, !tbaa !9
  %335 = load ptr, ptr %4, align 8, !tbaa !5
  %336 = getelementptr inbounds %struct.w2c_hermes, ptr %335, i32 0, i32 3
  store i32 %334, ptr %336, align 8, !tbaa !11
  br label %373

337:                                              ; preds = %177
  store i32 0, ptr %11, align 4, !tbaa !9
  %338 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %338, ptr %6, align 4, !tbaa !9
  store i32 164972, ptr %12, align 4, !tbaa !9
  %339 = load i32, ptr %12, align 4, !tbaa !9
  %340 = load i32, ptr %11, align 4, !tbaa !9
  %341 = add i32 %340, %339
  store i32 %341, ptr %11, align 4, !tbaa !9
  %342 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %342, ptr %12, align 4, !tbaa !9
  store i32 86443, ptr %13, align 4, !tbaa !9
  %343 = load i32, ptr %13, align 4, !tbaa !9
  %344 = load i32, ptr %12, align 4, !tbaa !9
  %345 = add i32 %344, %343
  store i32 %345, ptr %12, align 4, !tbaa !9
  store i32 203, ptr %13, align 4, !tbaa !9
  %346 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %346, ptr %14, align 4, !tbaa !9
  store i32 110882, ptr %15, align 4, !tbaa !9
  %347 = load i32, ptr %15, align 4, !tbaa !9
  %348 = load i32, ptr %14, align 4, !tbaa !9
  %349 = add i32 %348, %347
  store i32 %349, ptr %14, align 4, !tbaa !9
  %350 = load ptr, ptr %4, align 8, !tbaa !5
  %351 = load i32, ptr %11, align 4, !tbaa !9
  %352 = load i32, ptr %12, align 4, !tbaa !9
  %353 = load i32, ptr %13, align 4, !tbaa !9
  %354 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %350, i32 noundef %351, i32 noundef %352, i32 noundef %353, i32 noundef %354)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

355:                                              ; preds = %272
  store i32 0, ptr %11, align 4, !tbaa !9
  %356 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %356, ptr %6, align 4, !tbaa !9
  store i32 141148, ptr %12, align 4, !tbaa !9
  %357 = load i32, ptr %12, align 4, !tbaa !9
  %358 = load i32, ptr %11, align 4, !tbaa !9
  %359 = add i32 %358, %357
  store i32 %359, ptr %11, align 4, !tbaa !9
  %360 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %360, ptr %12, align 4, !tbaa !9
  store i32 62810, ptr %13, align 4, !tbaa !9
  %361 = load i32, ptr %13, align 4, !tbaa !9
  %362 = load i32, ptr %12, align 4, !tbaa !9
  %363 = add i32 %362, %361
  store i32 %363, ptr %12, align 4, !tbaa !9
  store i32 253, ptr %13, align 4, !tbaa !9
  %364 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %364, ptr %14, align 4, !tbaa !9
  store i32 40521, ptr %15, align 4, !tbaa !9
  %365 = load i32, ptr %15, align 4, !tbaa !9
  %366 = load i32, ptr %14, align 4, !tbaa !9
  %367 = add i32 %366, %365
  store i32 %367, ptr %14, align 4, !tbaa !9
  %368 = load ptr, ptr %4, align 8, !tbaa !5
  %369 = load i32, ptr %11, align 4, !tbaa !9
  %370 = load i32, ptr %12, align 4, !tbaa !9
  %371 = load i32, ptr %13, align 4, !tbaa !9
  %372 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %368, i32 noundef %369, i32 noundef %370, i32 noundef %371, i32 noundef %372)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

373:                                              ; preds = %329
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, 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 void
}

declare void @w2c_hermes_llvh0x3A0x3ASmallVectorBase0x3A0x3Agrow_pod0x28void0x2A0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

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

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

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

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

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

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

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3AconvertUTF8WithSurrogatesToUTF8WithReplacements0x28std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x260x2C0x20llvh0x3A0x3AStringRef0x29(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, 20
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %9, i64 noundef 34359738368)
  %10 = add i32 %5, -20
  %11 = add nuw nsw i64 %8, 16
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %11, i32 noundef %10)
  %12 = zext i32 %2 to i64
  %13 = add nuw nsw i64 %12, 4
  %14 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %13)
  %15 = icmp ugt i32 %14, 8
  br i1 %15, label %16, label %19

16:                                               ; preds = %3
  %17 = add i32 %5, -32
  tail call void @w2c_hermes_llvh0x3A0x3ASmallVectorBase0x3A0x3Agrow_pod0x28void0x2A0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef %17, i32 noundef %10, i32 noundef %14, i32 noundef 2) #4
  %18 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %11)
  br label %19

19:                                               ; preds = %16, %3
  %.0214 = phi i32 [ %18, %16 ], [ %10, %3 ]
  %20 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %12)
  %21 = add nuw nsw i64 %8, 44
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %21, i32 noundef %20)
  %22 = icmp slt i32 %14, 1
  br i1 %22, label %56, label %23

23:                                               ; preds = %19
  %24 = add i32 %20, %14
  %25 = add i32 %5, -4
  br label %26

26:                                               ; preds = %50, %23
  %.0216 = phi i32 [ %20, %23 ], [ %52, %50 ]
  %.1215 = phi i32 [ %.0214, %23 ], [ %51, %50 ]
  %27 = zext i32 %.0216 to i64
  %28 = tail call i32 @i32_load8_s(ptr noundef nonnull %7, i64 noundef %27)
  %29 = icmp sgt i32 %28, -1
  br i1 %29, label %30, label %33

30:                                               ; preds = %26
  %31 = add i32 %.0216, 1
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %21, i32 noundef %31)
  %32 = tail call i32 @i32_load8_s(ptr noundef nonnull %7, i64 noundef %27)
  br label %35

33:                                               ; preds = %26
  %34 = tail call i32 @w2c_hermes_unsigned0x20int0x20hermes0x3A0x3A_decodeUTF8SlowPath0x3Ctrue0x2C0x20char16_t0x2A0x20hermes0x3A0x3AconvertUTF8WithSurrogatesToUTF160x3Cchar16_t0x2A0x3E0x28char16_t0x2A0x2C0x20char0x20const0x2A0x2C0x20char0x20const0x2A0x290x3A0x3A0x27lambda0x270x28llvh0x3A0x3ATwine0x20const0x260x290x3E0x28char0x20const0x2A0x260x2C0x20char16_t0x2A0x20hermes0x3A0x3AconvertUTF8WithSurrogatesToUTF160x3Cchar16_t0x2A0x3E0x28char16_t0x2A0x2C0x20char0x20const0x2A0x2C0x20char0x20const0x2A0x290x3A0x3A0x27lambda0x270x28llvh0x3A0x3ATwine0x20const0x260x290x29(ptr noundef %0, i32 noundef %25) #4
  br label %35

35:                                               ; preds = %33, %30
  %.0 = phi i32 [ %32, %30 ], [ %34, %33 ]
  %36 = icmp ult i32 %.0, 65536
  br i1 %36, label %37, label %39

37:                                               ; preds = %35
  %38 = zext i32 %.1215 to i64
  tail call void @i32_store16(ptr noundef nonnull %7, i64 noundef %38, i32 noundef %.0)
  br label %50

39:                                               ; preds = %35
  %40 = icmp ugt i32 %.0, 1114111
  br i1 %40, label %70, label %41

41:                                               ; preds = %39
  %42 = and i32 %.0, 1023
  %43 = or disjoint i32 %42, 56320
  %44 = zext i32 %.1215 to i64
  %45 = add nuw nsw i64 %44, 2
  tail call void @i32_store16(ptr noundef nonnull %7, i64 noundef %45, i32 noundef %43)
  %46 = add nuw nsw i32 %.0, 983040
  %47 = lshr i32 %46, 10
  %48 = and i32 %47, 1023
  %49 = or disjoint i32 %48, 55296
  tail call void @i32_store16(ptr noundef nonnull %7, i64 noundef %44, i32 noundef %49)
  br label %50

50:                                               ; preds = %41, %37
  %.1 = phi i32 [ 2, %37 ], [ 4, %41 ]
  %51 = add i32 %.1, %.1215
  %52 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %21)
  %53 = icmp ult i32 %52, %24
  br i1 %53, label %26, label %54

54:                                               ; preds = %50
  %55 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %11)
  br label %56

56:                                               ; preds = %19, %54
  %.2 = phi i32 [ %51, %54 ], [ %.0214, %19 ]
  %.0213 = phi i32 [ %55, %54 ], [ %.0214, %19 ]
  %57 = sub i32 %.2, %.0213
  %58 = ashr i32 %57, 1
  %59 = add nuw nsw i64 %8, 24
  %60 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %59)
  %61 = icmp ugt i32 %58, %60
  br i1 %61, label %71, label %62

62:                                               ; preds = %56
  %63 = add nuw nsw i64 %8, 12
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %63, i32 noundef %58)
  %64 = add nuw nsw i64 %8, 8
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %64, i32 noundef %.0213)
  %65 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %64)
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %8, i64 noundef %65)
  %66 = tail call i32 @w2c_hermes_hermes0x3A0x3AconvertUTF16ToUTF8WithReplacements0x28std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x260x2C0x20llvh0x3A0x3AArrayRef0x3Cchar16_t0x3E0x2C0x20unsigned0x20long0x29(ptr noundef %0, i32 noundef %1, i32 noundef %6, i32 noundef 0)
  %67 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %11)
  %.not = icmp eq i32 %10, %67
  br i1 %.not, label %69, label %68

68:                                               ; preds = %62
  tail call void @w2c_hermes_dlfree(ptr noundef %0, i32 noundef %67) #4
  br label %69

69:                                               ; preds = %68, %62
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret void

70:                                               ; preds = %39
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 164972, i32 noundef 86443, i32 noundef 203, i32 noundef 110882) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

71:                                               ; preds = %56
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 141148, i32 noundef 62810, i32 noundef 253, i32 noundef 40521) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

declare void @w2c_hermes_llvh0x3A0x3ASmallVectorBase0x3A0x3Agrow_pod0x28void0x2A0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

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

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