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

; 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 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: 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 void @i32_store16(ptr noundef, i64 noundef, i32 noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_void0x20hermes0x3A0x3AencodeUTF160x3Cstd0x3A0x3A_0x5F20x3A0x3Aback_insert_iterator0x3Cllvh0x3A0x3ASmallVector0x3Cchar16_t0x2C0x2016u0x3E0x3E0x3E0x28std0x3A0x3A_0x5F20x3A0x3Aback_insert_iterator0x3Cllvh0x3A0x3ASmallVector0x3Cchar16_t0x2C0x2016u0x3E0x3E0x260x2C0x20unsigned0x20int0x29(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
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.w2c_hermes, ptr %14, i32 0, i32 3
  %16 = load i32, ptr %15, align 8, !tbaa !11
  store i32 %16, ptr %9, align 4, !tbaa !9
  store i32 16, ptr %10, align 4, !tbaa !9
  %17 = load i32, ptr %10, align 4, !tbaa !9
  %18 = load i32, ptr %9, align 4, !tbaa !9
  %19 = sub i32 %18, %17
  store i32 %19, ptr %9, align 4, !tbaa !9
  %20 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %20, ptr %7, align 4, !tbaa !9
  %21 = load i32, ptr %9, align 4, !tbaa !9
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.w2c_hermes, ptr %22, i32 0, i32 3
  store i32 %21, ptr %23, align 8, !tbaa !11
  %24 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %24, ptr %9, align 4, !tbaa !9
  store i32 65535, ptr %10, align 4, !tbaa !9
  %25 = load i32, ptr %9, align 4, !tbaa !9
  %26 = load i32, ptr %10, align 4, !tbaa !9
  %27 = icmp ule i32 %25, %26
  %28 = zext i1 %27 to i32
  store i32 %28, ptr %9, align 4, !tbaa !9
  %29 = load i32, ptr %9, align 4, !tbaa !9
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %133

31:                                               ; preds = %3
  %32 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %32, ptr %9, align 4, !tbaa !9
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.w2c_hermes, ptr %33, i32 0, i32 6
  %35 = load i32, ptr %9, align 4, !tbaa !9
  %36 = zext i32 %35 to i64
  %37 = call i32 @i32_load(ptr noundef %34, i64 noundef %36)
  store i32 %37, ptr %9, align 4, !tbaa !9
  %38 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %38, ptr %5, align 4, !tbaa !9
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.w2c_hermes, ptr %39, i32 0, i32 6
  %41 = load i32, ptr %9, align 4, !tbaa !9
  %42 = zext i32 %41 to i64
  %43 = add i64 %42, 4
  %44 = call i32 @i32_load(ptr noundef %40, i64 noundef %43)
  store i32 %44, ptr %9, align 4, !tbaa !9
  %45 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %45, ptr %8, align 4, !tbaa !9
  %46 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %46, ptr %10, align 4, !tbaa !9
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.w2c_hermes, ptr %47, i32 0, i32 6
  %49 = load i32, ptr %10, align 4, !tbaa !9
  %50 = zext i32 %49 to i64
  %51 = add i64 %50, 8
  %52 = call i32 @i32_load(ptr noundef %48, i64 noundef %51)
  store i32 %52, ptr %10, align 4, !tbaa !9
  %53 = load i32, ptr %9, align 4, !tbaa !9
  %54 = load i32, ptr %10, align 4, !tbaa !9
  %55 = icmp uge i32 %53, %54
  %56 = zext i1 %55 to i32
  store i32 %56, ptr %9, align 4, !tbaa !9
  %57 = load i32, ptr %9, align 4, !tbaa !9
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %78

59:                                               ; preds = %31
  %60 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %60, ptr %9, align 4, !tbaa !9
  %61 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %61, ptr %10, align 4, !tbaa !9
  store i32 12, ptr %11, align 4, !tbaa !9
  %62 = load i32, ptr %11, align 4, !tbaa !9
  %63 = load i32, ptr %10, align 4, !tbaa !9
  %64 = add i32 %63, %62
  store i32 %64, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  store i32 2, ptr %12, align 4, !tbaa !9
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = load i32, ptr %9, align 4, !tbaa !9
  %67 = load i32, ptr %10, align 4, !tbaa !9
  %68 = load i32, ptr %11, align 4, !tbaa !9
  %69 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3ASmallVectorBase0x3A0x3Agrow_pod0x28void0x2A0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef %65, i32 noundef %66, i32 noundef %67, i32 noundef %68, i32 noundef %69)
  %70 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %70, ptr %9, 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 %9, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = add i64 %74, 4
  %76 = call i32 @i32_load(ptr noundef %72, i64 noundef %75)
  store i32 %76, ptr %9, align 4, !tbaa !9
  %77 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %77, ptr %8, align 4, !tbaa !9
  br label %78

78:                                               ; preds = %59, %31
  %79 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %79, ptr %9, align 4, !tbaa !9
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.w2c_hermes, ptr %80, i32 0, i32 6
  %82 = load i32, ptr %9, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = call i32 @i32_load(ptr noundef %81, i64 noundef %83)
  store i32 %84, ptr %9, align 4, !tbaa !9
  %85 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %85, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %11, align 4, !tbaa !9
  %86 = load i32, ptr %11, align 4, !tbaa !9
  %87 = and i32 %86, 31
  %88 = load i32, ptr %10, align 4, !tbaa !9
  %89 = shl i32 %88, %87
  store i32 %89, ptr %10, align 4, !tbaa !9
  %90 = load i32, ptr %10, align 4, !tbaa !9
  %91 = load i32, ptr %9, align 4, !tbaa !9
  %92 = add i32 %91, %90
  store i32 %92, ptr %9, align 4, !tbaa !9
  %93 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %93, ptr %10, align 4, !tbaa !9
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.w2c_hermes, ptr %94, i32 0, i32 6
  %96 = load i32, ptr %9, align 4, !tbaa !9
  %97 = zext i32 %96 to i64
  %98 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %95, i64 noundef %97, i32 noundef %98)
  %99 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %99, ptr %9, align 4, !tbaa !9
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.w2c_hermes, ptr %100, i32 0, i32 6
  %102 = load i32, ptr %9, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = add i64 %103, 4
  %105 = call i32 @i32_load(ptr noundef %101, i64 noundef %104)
  store i32 %105, ptr %9, align 4, !tbaa !9
  store i32 1, ptr %10, align 4, !tbaa !9
  %106 = load i32, ptr %10, align 4, !tbaa !9
  %107 = load i32, ptr %9, align 4, !tbaa !9
  %108 = add i32 %107, %106
  store i32 %108, ptr %9, align 4, !tbaa !9
  %109 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %109, ptr %6, align 4, !tbaa !9
  %110 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %110, ptr %10, align 4, !tbaa !9
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.w2c_hermes, ptr %111, i32 0, i32 6
  %113 = load i32, ptr %10, align 4, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = add i64 %114, 8
  %116 = call i32 @i32_load(ptr noundef %112, i64 noundef %115)
  store i32 %116, ptr %10, align 4, !tbaa !9
  %117 = load i32, ptr %9, align 4, !tbaa !9
  %118 = load i32, ptr %10, align 4, !tbaa !9
  %119 = icmp ugt i32 %117, %118
  %120 = zext i1 %119 to i32
  store i32 %120, ptr %9, align 4, !tbaa !9
  %121 = load i32, ptr %9, align 4, !tbaa !9
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %124

123:                                              ; preds = %78
  br label %204

124:                                              ; preds = %78
  %125 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %125, ptr %9, align 4, !tbaa !9
  %126 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %126, ptr %10, align 4, !tbaa !9
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.w2c_hermes, ptr %127, i32 0, i32 6
  %129 = load i32, ptr %9, align 4, !tbaa !9
  %130 = zext i32 %129 to i64
  %131 = add i64 %130, 4
  %132 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %128, i64 noundef %131, i32 noundef %132)
  br label %196

133:                                              ; preds = %3
  %134 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %134, ptr %9, align 4, !tbaa !9
  store i32 1114112, ptr %10, align 4, !tbaa !9
  %135 = load i32, ptr %9, align 4, !tbaa !9
  %136 = load i32, ptr %10, align 4, !tbaa !9
  %137 = icmp uge i32 %135, %136
  %138 = zext i1 %137 to i32
  store i32 %138, ptr %9, align 4, !tbaa !9
  %139 = load i32, ptr %9, align 4, !tbaa !9
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %141, label %142

141:                                              ; preds = %133
  br label %222

142:                                              ; preds = %133
  %143 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %143, ptr %9, align 4, !tbaa !9
  %144 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %144, ptr %10, align 4, !tbaa !9
  store i32 983040, ptr %11, align 4, !tbaa !9
  %145 = load i32, ptr %11, align 4, !tbaa !9
  %146 = load i32, ptr %10, align 4, !tbaa !9
  %147 = add i32 %146, %145
  store i32 %147, ptr %10, align 4, !tbaa !9
  store i32 10, ptr %11, align 4, !tbaa !9
  %148 = load i32, ptr %11, align 4, !tbaa !9
  %149 = and i32 %148, 31
  %150 = load i32, ptr %10, align 4, !tbaa !9
  %151 = lshr i32 %150, %149
  store i32 %151, ptr %10, align 4, !tbaa !9
  store i32 1023, ptr %11, align 4, !tbaa !9
  %152 = load i32, ptr %11, align 4, !tbaa !9
  %153 = load i32, ptr %10, align 4, !tbaa !9
  %154 = and i32 %153, %152
  store i32 %154, ptr %10, align 4, !tbaa !9
  store i32 55296, ptr %11, align 4, !tbaa !9
  %155 = load i32, ptr %11, align 4, !tbaa !9
  %156 = load i32, ptr %10, align 4, !tbaa !9
  %157 = or i32 %156, %155
  store i32 %157, ptr %10, align 4, !tbaa !9
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.w2c_hermes, ptr %158, i32 0, i32 6
  %160 = load i32, ptr %9, align 4, !tbaa !9
  %161 = zext i32 %160 to i64
  %162 = add i64 %161, 14
  %163 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %159, i64 noundef %162, i32 noundef %163)
  %164 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %164, ptr %9, align 4, !tbaa !9
  %165 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %165, ptr %10, align 4, !tbaa !9
  store i32 14, ptr %11, align 4, !tbaa !9
  %166 = load i32, ptr %11, align 4, !tbaa !9
  %167 = load i32, ptr %10, align 4, !tbaa !9
  %168 = add i32 %167, %166
  store i32 %168, ptr %10, align 4, !tbaa !9
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = load i32, ptr %9, align 4, !tbaa !9
  %171 = load i32, ptr %10, align 4, !tbaa !9
  %172 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Aback_insert_iterator0x3Cllvh0x3A0x3ASmallVector0x3Cchar16_t0x2C0x2016u0x3E0x3E0x3A0x3Aoperator0x3D0x5Babi0x3Av150070x5D0x28char16_t0x260x260x29(ptr noundef %169, i32 noundef %170, i32 noundef %171)
  store i32 %172, ptr %9, align 4, !tbaa !9
  %173 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %173, ptr %9, align 4, !tbaa !9
  %174 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %174, ptr %10, align 4, !tbaa !9
  store i32 1023, ptr %11, align 4, !tbaa !9
  %175 = load i32, ptr %11, align 4, !tbaa !9
  %176 = load i32, ptr %10, align 4, !tbaa !9
  %177 = and i32 %176, %175
  store i32 %177, ptr %10, align 4, !tbaa !9
  store i32 56320, ptr %11, align 4, !tbaa !9
  %178 = load i32, ptr %11, align 4, !tbaa !9
  %179 = load i32, ptr %10, align 4, !tbaa !9
  %180 = or i32 %179, %178
  store i32 %180, ptr %10, align 4, !tbaa !9
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.w2c_hermes, ptr %181, i32 0, i32 6
  %183 = load i32, ptr %9, align 4, !tbaa !9
  %184 = zext i32 %183 to i64
  %185 = add i64 %184, 12
  %186 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %182, i64 noundef %185, i32 noundef %186)
  %187 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %187, ptr %9, align 4, !tbaa !9
  %188 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %188, ptr %10, align 4, !tbaa !9
  store i32 12, ptr %11, align 4, !tbaa !9
  %189 = load i32, ptr %11, align 4, !tbaa !9
  %190 = load i32, ptr %10, align 4, !tbaa !9
  %191 = add i32 %190, %189
  store i32 %191, ptr %10, align 4, !tbaa !9
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = load i32, ptr %9, align 4, !tbaa !9
  %194 = load i32, ptr %10, align 4, !tbaa !9
  %195 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Aback_insert_iterator0x3Cllvh0x3A0x3ASmallVector0x3Cchar16_t0x2C0x2016u0x3E0x3E0x3A0x3Aoperator0x3D0x5Babi0x3Av150070x5D0x28char16_t0x260x260x29(ptr noundef %192, i32 noundef %193, i32 noundef %194)
  store i32 %195, ptr %9, align 4, !tbaa !9
  br label %196

196:                                              ; preds = %142, %124
  %197 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %197, ptr %9, align 4, !tbaa !9
  store i32 16, ptr %10, align 4, !tbaa !9
  %198 = load i32, ptr %10, align 4, !tbaa !9
  %199 = load i32, ptr %9, align 4, !tbaa !9
  %200 = add i32 %199, %198
  store i32 %200, ptr %9, align 4, !tbaa !9
  %201 = load i32, ptr %9, align 4, !tbaa !9
  %202 = load ptr, ptr %4, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.w2c_hermes, ptr %202, i32 0, i32 3
  store i32 %201, ptr %203, align 8, !tbaa !11
  br label %240

204:                                              ; preds = %123
  store i32 0, ptr %9, align 4, !tbaa !9
  %205 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %205, ptr %5, align 4, !tbaa !9
  store i32 117789, ptr %10, align 4, !tbaa !9
  %206 = load i32, ptr %10, align 4, !tbaa !9
  %207 = load i32, ptr %9, align 4, !tbaa !9
  %208 = add i32 %207, %206
  store i32 %208, ptr %9, align 4, !tbaa !9
  %209 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %209, ptr %10, align 4, !tbaa !9
  store i32 79572, ptr %11, align 4, !tbaa !9
  %210 = load i32, ptr %11, align 4, !tbaa !9
  %211 = load i32, ptr %10, align 4, !tbaa !9
  %212 = add i32 %211, %210
  store i32 %212, ptr %10, align 4, !tbaa !9
  store i32 74, ptr %11, align 4, !tbaa !9
  %213 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %213, ptr %12, align 4, !tbaa !9
  store i32 88407, ptr %13, align 4, !tbaa !9
  %214 = load i32, ptr %13, align 4, !tbaa !9
  %215 = load i32, ptr %12, align 4, !tbaa !9
  %216 = add i32 %215, %214
  store i32 %216, ptr %12, align 4, !tbaa !9
  %217 = load ptr, ptr %4, align 8, !tbaa !5
  %218 = load i32, ptr %9, align 4, !tbaa !9
  %219 = load i32, ptr %10, align 4, !tbaa !9
  %220 = load i32, ptr %11, align 4, !tbaa !9
  %221 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %217, i32 noundef %218, i32 noundef %219, i32 noundef %220, i32 noundef %221)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

222:                                              ; preds = %141
  store i32 0, ptr %9, align 4, !tbaa !9
  %223 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %223, ptr %5, align 4, !tbaa !9
  store i32 164972, ptr %10, align 4, !tbaa !9
  %224 = load i32, ptr %10, align 4, !tbaa !9
  %225 = load i32, ptr %9, align 4, !tbaa !9
  %226 = add i32 %225, %224
  store i32 %226, ptr %9, align 4, !tbaa !9
  %227 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %227, ptr %10, align 4, !tbaa !9
  store i32 86443, ptr %11, align 4, !tbaa !9
  %228 = load i32, ptr %11, align 4, !tbaa !9
  %229 = load i32, ptr %10, align 4, !tbaa !9
  %230 = add i32 %229, %228
  store i32 %230, ptr %10, align 4, !tbaa !9
  store i32 203, ptr %11, align 4, !tbaa !9
  %231 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %231, ptr %12, align 4, !tbaa !9
  store i32 110882, ptr %13, align 4, !tbaa !9
  %232 = load i32, ptr %13, align 4, !tbaa !9
  %233 = load i32, ptr %12, align 4, !tbaa !9
  %234 = add i32 %233, %232
  store i32 %234, ptr %12, align 4, !tbaa !9
  %235 = load ptr, ptr %4, align 8, !tbaa !5
  %236 = load i32, ptr %9, align 4, !tbaa !9
  %237 = load i32, ptr %10, align 4, !tbaa !9
  %238 = load i32, ptr %11, align 4, !tbaa !9
  %239 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %235, i32 noundef %236, i32 noundef %237, i32 noundef %238, i32 noundef %239)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

240:                                              ; preds = %196
  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
}

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

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}


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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_void0x20hermes0x3A0x3AencodeUTF160x3Cstd0x3A0x3A_0x5F20x3A0x3Aback_insert_iterator0x3Cllvh0x3A0x3ASmallVector0x3Cchar16_t0x2C0x2016u0x3E0x3E0x3E0x28std0x3A0x3A_0x5F20x3A0x3Aback_insert_iterator0x3Cllvh0x3A0x3ASmallVector0x3Cchar16_t0x2C0x2016u0x3E0x3E0x260x2C0x20unsigned0x20int0x29(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, -16
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = icmp ult i32 %2, 65536
  br i1 %7, label %8, label %30

8:                                                ; preds = %3
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = zext i32 %1 to i64
  %11 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %10)
  %12 = zext i32 %11 to i64
  %13 = add nuw nsw i64 %12, 4
  %14 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %13)
  %15 = add nuw nsw i64 %12, 8
  %16 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %15)
  %.not = icmp ult i32 %14, %16
  br i1 %.not, label %20, label %17

17:                                               ; preds = %8
  %18 = add i32 %11, 12
  tail call void @w2c_hermes_llvh0x3A0x3ASmallVectorBase0x3A0x3Agrow_pod0x28void0x2A0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef %11, i32 noundef %18, i32 noundef 0, i32 noundef 2) #4
  %19 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %13)
  br label %20

20:                                               ; preds = %17, %8
  %.0 = phi i32 [ %19, %17 ], [ %14, %8 ]
  %21 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %12)
  %22 = shl i32 %.0, 1
  %23 = add i32 %21, %22
  %24 = zext i32 %23 to i64
  tail call void @i32_store16(ptr noundef nonnull %9, i64 noundef %24, i32 noundef %2)
  %25 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %13)
  %26 = add i32 %25, 1
  %27 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %15)
  %28 = icmp ugt i32 %26, %27
  br i1 %28, label %48, label %29

29:                                               ; preds = %20
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %13, i32 noundef %26)
  br label %47

30:                                               ; preds = %3
  %31 = icmp ugt i32 %2, 1114111
  br i1 %31, label %49, label %32

32:                                               ; preds = %30
  %33 = add nuw nsw i32 %2, 983040
  %34 = lshr i32 %33, 10
  %35 = and i32 %34, 1023
  %36 = or disjoint i32 %35, 55296
  %37 = getelementptr inbounds i8, ptr %0, i64 40
  %38 = zext i32 %6 to i64
  %39 = add nuw nsw i64 %38, 14
  tail call void @i32_store16(ptr noundef nonnull %37, i64 noundef %39, i32 noundef %36)
  %40 = add i32 %5, -2
  %41 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Aback_insert_iterator0x3Cllvh0x3A0x3ASmallVector0x3Cchar16_t0x2C0x2016u0x3E0x3E0x3A0x3Aoperator0x3D0x5Babi0x3Av150070x5D0x28char16_t0x260x260x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %40)
  %42 = and i32 %2, 1023
  %43 = or disjoint i32 %42, 56320
  %44 = add nuw nsw i64 %38, 12
  tail call void @i32_store16(ptr noundef nonnull %37, i64 noundef %44, i32 noundef %43)
  %45 = add i32 %5, -4
  %46 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Aback_insert_iterator0x3Cllvh0x3A0x3ASmallVector0x3Cchar16_t0x2C0x2016u0x3E0x3E0x3A0x3Aoperator0x3D0x5Babi0x3Av150070x5D0x28char16_t0x260x260x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %45)
  br label %47

47:                                               ; preds = %32, %29
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret void

48:                                               ; preds = %20
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 117789, i32 noundef 79572, i32 noundef 74, i32 noundef 88407) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

49:                                               ; preds = %30
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %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
}

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

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,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass