; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_opt_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: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) #1

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

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

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

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

declare void @w2c_hermes_abort_message(ptr noundef, i32 noundef, i32 noundef) #4

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

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

45:                                               ; preds = %3
  %46 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %46, ptr %15, 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 %15, align 4, !tbaa !9
  %50 = zext i32 %49 to i64
  %51 = add i64 %50, 4
  %52 = call i32 @i32_load(ptr noundef %48, i64 noundef %51)
  store i32 %52, ptr %15, align 4, !tbaa !9
  br label %64

53:                                               ; preds = %3
  %54 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %54, ptr %15, align 4, !tbaa !9
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.w2c_hermes, ptr %55, i32 0, i32 6
  %57 = load i32, ptr %15, align 4, !tbaa !9
  %58 = zext i32 %57 to i64
  %59 = add i64 %58, 11
  %60 = call i32 @i32_load8_u(ptr noundef %56, i64 noundef %59)
  store i32 %60, ptr %15, align 4, !tbaa !9
  store i32 127, ptr %16, align 4, !tbaa !9
  %61 = load i32, ptr %16, align 4, !tbaa !9
  %62 = load i32, ptr %15, align 4, !tbaa !9
  %63 = and i32 %62, %61
  store i32 %63, ptr %15, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %53, %45
  %65 = load i32, ptr %14, align 4, !tbaa !9
  %66 = load i32, ptr %15, align 4, !tbaa !9
  %67 = icmp eq i32 %65, %66
  %68 = zext i1 %67 to i32
  store i32 %68, ptr %14, align 4, !tbaa !9
  %69 = load i32, ptr %14, align 4, !tbaa !9
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %364

71:                                               ; preds = %64
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.w2c_hermes, ptr %72, i32 0, i32 3
  %74 = load i32, ptr %73, align 8, !tbaa !11
  store i32 %74, ptr %14, align 4, !tbaa !9
  store i32 16, ptr %15, align 4, !tbaa !9
  %75 = load i32, ptr %15, align 4, !tbaa !9
  %76 = load i32, ptr %14, align 4, !tbaa !9
  %77 = sub i32 %76, %75
  store i32 %77, ptr %14, align 4, !tbaa !9
  %78 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %78, ptr %7, align 4, !tbaa !9
  %79 = load i32, ptr %14, align 4, !tbaa !9
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.w2c_hermes, ptr %80, i32 0, i32 3
  store i32 %79, ptr %81, align 8, !tbaa !11
  %82 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %82, ptr %14, align 4, !tbaa !9
  %83 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %83, ptr %15, align 4, !tbaa !9
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.w2c_hermes, ptr %84, i32 0, i32 6
  %86 = load i32, ptr %14, align 4, !tbaa !9
  %87 = zext i32 %86 to i64
  %88 = add i64 %87, 8
  %89 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %85, i64 noundef %88, i32 noundef %89)
  %90 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %90, ptr %14, align 4, !tbaa !9
  store i32 -1, ptr %15, 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 %14, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = add i64 %94, 12
  %96 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %92, i64 noundef %95, i32 noundef %96)
  %97 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %97, ptr %14, align 4, !tbaa !9
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.w2c_hermes, ptr %98, i32 0, i32 6
  %100 = load i32, ptr %14, align 4, !tbaa !9
  %101 = zext i32 %100 to i64
  %102 = add i64 %101, 11
  %103 = call i32 @i32_load8_u(ptr noundef %99, i64 noundef %102)
  store i32 %103, ptr %14, align 4, !tbaa !9
  store i32 7, ptr %15, align 4, !tbaa !9
  %104 = load i32, ptr %15, align 4, !tbaa !9
  %105 = and i32 %104, 31
  %106 = load i32, ptr %14, align 4, !tbaa !9
  %107 = lshr i32 %106, %105
  store i32 %107, ptr %14, align 4, !tbaa !9
  %108 = load i32, ptr %14, align 4, !tbaa !9
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %118

110:                                              ; preds = %71
  %111 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %111, ptr %14, align 4, !tbaa !9
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.w2c_hermes, ptr %112, i32 0, i32 6
  %114 = load i32, ptr %14, align 4, !tbaa !9
  %115 = zext i32 %114 to i64
  %116 = add i64 %115, 4
  %117 = call i32 @i32_load(ptr noundef %113, i64 noundef %116)
  store i32 %117, ptr %14, align 4, !tbaa !9
  br label %129

118:                                              ; preds = %71
  %119 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %119, ptr %14, align 4, !tbaa !9
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.w2c_hermes, ptr %120, i32 0, i32 6
  %122 = load i32, ptr %14, align 4, !tbaa !9
  %123 = zext i32 %122 to i64
  %124 = add i64 %123, 11
  %125 = call i32 @i32_load8_u(ptr noundef %121, i64 noundef %124)
  store i32 %125, ptr %14, align 4, !tbaa !9
  store i32 127, ptr %15, align 4, !tbaa !9
  %126 = load i32, ptr %15, align 4, !tbaa !9
  %127 = load i32, ptr %14, align 4, !tbaa !9
  %128 = and i32 %127, %126
  store i32 %128, ptr %14, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %118, %110
  %130 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %130, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %131 = load i32, ptr %14, align 4, !tbaa !9
  %132 = load i32, ptr %15, align 4, !tbaa !9
  %133 = icmp ult i32 %131, %132
  %134 = zext i1 %133 to i32
  store i32 %134, ptr %14, align 4, !tbaa !9
  %135 = load i32, ptr %14, align 4, !tbaa !9
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %137, label %138

137:                                              ; preds = %129
  br label %361

138:                                              ; preds = %129
  %139 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %139, ptr %14, align 4, !tbaa !9
  store i32 -1, ptr %15, align 4, !tbaa !9
  %140 = load i32, ptr %14, align 4, !tbaa !9
  %141 = load i32, ptr %15, align 4, !tbaa !9
  %142 = icmp eq i32 %140, %141
  %143 = zext i1 %142 to i32
  store i32 %143, ptr %14, align 4, !tbaa !9
  %144 = load i32, ptr %14, align 4, !tbaa !9
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %147

146:                                              ; preds = %138
  br label %361

147:                                              ; preds = %138
  %148 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %148, ptr %14, align 4, !tbaa !9
  %149 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %149, ptr %15, align 4, !tbaa !9
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.w2c_hermes, ptr %150, i32 0, i32 6
  %152 = load i32, ptr %14, align 4, !tbaa !9
  %153 = zext i32 %152 to i64
  %154 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %151, i64 noundef %153, i32 noundef %154)
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.w2c_hermes, ptr %155, i32 0, i32 3
  %157 = load i32, ptr %156, align 8, !tbaa !11
  store i32 %157, ptr %14, align 4, !tbaa !9
  store i32 16, ptr %15, align 4, !tbaa !9
  %158 = load i32, ptr %15, align 4, !tbaa !9
  %159 = load i32, ptr %14, align 4, !tbaa !9
  %160 = sub i32 %159, %158
  store i32 %160, ptr %14, align 4, !tbaa !9
  %161 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %161, ptr %8, align 4, !tbaa !9
  %162 = load i32, ptr %14, align 4, !tbaa !9
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.w2c_hermes, ptr %163, i32 0, i32 3
  store i32 %162, ptr %164, align 8, !tbaa !11
  %165 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %165, ptr %14, align 4, !tbaa !9
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.w2c_hermes, ptr %166, i32 0, i32 6
  %168 = load i32, ptr %14, align 4, !tbaa !9
  %169 = zext i32 %168 to i64
  %170 = call i32 @i32_load(ptr noundef %167, i64 noundef %169)
  store i32 %170, ptr %14, align 4, !tbaa !9
  %171 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %171, ptr %15, align 4, !tbaa !9
  store i32 12, ptr %16, align 4, !tbaa !9
  %172 = load i32, ptr %16, align 4, !tbaa !9
  %173 = load i32, ptr %15, align 4, !tbaa !9
  %174 = add i32 %173, %172
  store i32 %174, ptr %15, align 4, !tbaa !9
  %175 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %175, ptr %9, align 4, !tbaa !9
  %176 = load ptr, ptr %4, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.w2c_hermes, ptr %176, i32 0, i32 6
  %178 = load i32, ptr %15, align 4, !tbaa !9
  %179 = zext i32 %178 to i64
  %180 = call i32 @i32_load(ptr noundef %177, i64 noundef %179)
  store i32 %180, ptr %15, align 4, !tbaa !9
  %181 = load i32, ptr %14, align 4, !tbaa !9
  %182 = load i32, ptr %15, align 4, !tbaa !9
  %183 = icmp ult i32 %181, %182
  %184 = zext i1 %183 to i32
  store i32 %184, ptr %14, align 4, !tbaa !9
  %185 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %185, ptr %10, align 4, !tbaa !9
  %186 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %186, ptr %14, align 4, !tbaa !9
  store i32 16, ptr %15, align 4, !tbaa !9
  %187 = load i32, ptr %15, align 4, !tbaa !9
  %188 = load i32, ptr %14, align 4, !tbaa !9
  %189 = add i32 %188, %187
  store i32 %189, ptr %14, align 4, !tbaa !9
  %190 = load i32, ptr %14, align 4, !tbaa !9
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.w2c_hermes, ptr %191, i32 0, i32 3
  store i32 %190, ptr %192, align 8, !tbaa !11
  %193 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %193, ptr %14, align 4, !tbaa !9
  %194 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %194, ptr %15, align 4, !tbaa !9
  %195 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %195, ptr %16, align 4, !tbaa !9
  %196 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %196, ptr %17, align 4, !tbaa !9
  %197 = load i32, ptr %17, align 4, !tbaa !9
  %198 = icmp ne i32 %197, 0
  br i1 %198, label %199, label %201

199:                                              ; preds = %147
  %200 = load i32, ptr %15, align 4, !tbaa !9
  br label %203

201:                                              ; preds = %147
  %202 = load i32, ptr %16, align 4, !tbaa !9
  br label %203

203:                                              ; preds = %201, %199
  %204 = phi i32 [ %200, %199 ], [ %202, %201 ]
  store i32 %204, ptr %15, align 4, !tbaa !9
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.w2c_hermes, ptr %205, i32 0, i32 6
  %207 = load i32, ptr %15, align 4, !tbaa !9
  %208 = zext i32 %207 to i64
  %209 = call i32 @i32_load(ptr noundef %206, i64 noundef %208)
  store i32 %209, ptr %15, align 4, !tbaa !9
  %210 = load ptr, ptr %4, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.w2c_hermes, ptr %210, i32 0, i32 6
  %212 = load i32, ptr %14, align 4, !tbaa !9
  %213 = zext i32 %212 to i64
  %214 = add i64 %213, 4
  %215 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %211, i64 noundef %214, i32 noundef %215)
  %216 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %216, ptr %14, align 4, !tbaa !9
  %217 = load ptr, ptr %4, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.w2c_hermes, ptr %217, i32 0, i32 6
  %219 = load i32, ptr %14, align 4, !tbaa !9
  %220 = zext i32 %219 to i64
  %221 = add i64 %220, 11
  %222 = call i32 @i32_load8_u(ptr noundef %218, i64 noundef %221)
  store i32 %222, ptr %14, align 4, !tbaa !9
  store i32 7, ptr %15, align 4, !tbaa !9
  %223 = load i32, ptr %15, align 4, !tbaa !9
  %224 = and i32 %223, 31
  %225 = load i32, ptr %14, align 4, !tbaa !9
  %226 = lshr i32 %225, %224
  store i32 %226, ptr %14, align 4, !tbaa !9
  %227 = load i32, ptr %14, align 4, !tbaa !9
  %228 = icmp ne i32 %227, 0
  br i1 %228, label %229, label %236

229:                                              ; preds = %203
  %230 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %230, ptr %14, align 4, !tbaa !9
  %231 = load ptr, ptr %4, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.w2c_hermes, ptr %231, i32 0, i32 6
  %233 = load i32, ptr %14, align 4, !tbaa !9
  %234 = zext i32 %233 to i64
  %235 = call i32 @i32_load(ptr noundef %232, i64 noundef %234)
  store i32 %235, ptr %14, align 4, !tbaa !9
  br label %238

236:                                              ; preds = %203
  %237 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %237, ptr %14, align 4, !tbaa !9
  br label %238

238:                                              ; preds = %236, %229
  %239 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %239, ptr %8, align 4, !tbaa !9
  %240 = load ptr, ptr %4, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.w2c_hermes, ptr %240, i32 0, i32 3
  %242 = load i32, ptr %241, align 8, !tbaa !11
  store i32 %242, ptr %14, align 4, !tbaa !9
  store i32 16, ptr %15, align 4, !tbaa !9
  %243 = load i32, ptr %15, align 4, !tbaa !9
  %244 = load i32, ptr %14, align 4, !tbaa !9
  %245 = sub i32 %244, %243
  store i32 %245, ptr %14, align 4, !tbaa !9
  %246 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %246, ptr %9, align 4, !tbaa !9
  %247 = load i32, ptr %14, align 4, !tbaa !9
  %248 = load ptr, ptr %4, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.w2c_hermes, ptr %248, i32 0, i32 3
  store i32 %247, ptr %249, align 8, !tbaa !11
  %250 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %250, ptr %14, align 4, !tbaa !9
  store i32 8, ptr %15, align 4, !tbaa !9
  %251 = load i32, ptr %15, align 4, !tbaa !9
  %252 = load i32, ptr %14, align 4, !tbaa !9
  %253 = add i32 %252, %251
  store i32 %253, ptr %14, align 4, !tbaa !9
  %254 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %254, ptr %10, align 4, !tbaa !9
  %255 = load ptr, ptr %4, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.w2c_hermes, ptr %255, i32 0, i32 6
  %257 = load i32, ptr %14, align 4, !tbaa !9
  %258 = zext i32 %257 to i64
  %259 = call i32 @i32_load(ptr noundef %256, i64 noundef %258)
  store i32 %259, ptr %14, align 4, !tbaa !9
  %260 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %260, ptr %15, align 4, !tbaa !9
  store i32 4, ptr %16, align 4, !tbaa !9
  %261 = load i32, ptr %16, align 4, !tbaa !9
  %262 = load i32, ptr %15, align 4, !tbaa !9
  %263 = add i32 %262, %261
  store i32 %263, ptr %15, align 4, !tbaa !9
  %264 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %264, ptr %12, align 4, !tbaa !9
  %265 = load ptr, ptr %4, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.w2c_hermes, ptr %265, i32 0, i32 6
  %267 = load i32, ptr %15, align 4, !tbaa !9
  %268 = zext i32 %267 to i64
  %269 = call i32 @i32_load(ptr noundef %266, i64 noundef %268)
  store i32 %269, ptr %15, align 4, !tbaa !9
  %270 = load i32, ptr %14, align 4, !tbaa !9
  %271 = load i32, ptr %15, align 4, !tbaa !9
  %272 = icmp ult i32 %270, %271
  %273 = zext i1 %272 to i32
  store i32 %273, ptr %14, align 4, !tbaa !9
  %274 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %274, ptr %13, align 4, !tbaa !9
  %275 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %275, ptr %14, align 4, !tbaa !9
  store i32 16, ptr %15, align 4, !tbaa !9
  %276 = load i32, ptr %15, align 4, !tbaa !9
  %277 = load i32, ptr %14, align 4, !tbaa !9
  %278 = add i32 %277, %276
  store i32 %278, ptr %14, align 4, !tbaa !9
  %279 = load i32, ptr %14, align 4, !tbaa !9
  %280 = load ptr, ptr %4, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.w2c_hermes, ptr %280, i32 0, i32 3
  store i32 %279, ptr %281, align 8, !tbaa !11
  store i32 0, ptr %14, align 4, !tbaa !9
  %282 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %282, ptr %15, align 4, !tbaa !9
  %283 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %283, ptr %16, align 4, !tbaa !9
  %284 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %284, ptr %17, align 4, !tbaa !9
  %285 = load i32, ptr %17, align 4, !tbaa !9
  %286 = icmp ne i32 %285, 0
  br i1 %286, label %287, label %289

287:                                              ; preds = %238
  %288 = load i32, ptr %15, align 4, !tbaa !9
  br label %291

289:                                              ; preds = %238
  %290 = load i32, ptr %16, align 4, !tbaa !9
  br label %291

291:                                              ; preds = %289, %287
  %292 = phi i32 [ %288, %287 ], [ %290, %289 ]
  store i32 %292, ptr %15, align 4, !tbaa !9
  %293 = load ptr, ptr %4, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.w2c_hermes, ptr %293, i32 0, i32 6
  %295 = load i32, ptr %15, align 4, !tbaa !9
  %296 = zext i32 %295 to i64
  %297 = call i32 @i32_load(ptr noundef %294, i64 noundef %296)
  store i32 %297, ptr %15, align 4, !tbaa !9
  %298 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %298, ptr %9, align 4, !tbaa !9
  %299 = load i32, ptr %15, align 4, !tbaa !9
  %300 = icmp ne i32 %299, 0
  %301 = xor i1 %300, true
  %302 = zext i1 %301 to i32
  store i32 %302, ptr %15, align 4, !tbaa !9
  %303 = load i32, ptr %15, align 4, !tbaa !9
  %304 = icmp ne i32 %303, 0
  br i1 %304, label %305, label %306

305:                                              ; preds = %291
  br label %314

306:                                              ; preds = %291
  %307 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %307, ptr %14, align 4, !tbaa !9
  store i32 42994, ptr %15, align 4, !tbaa !9
  %308 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %308, ptr %16, align 4, !tbaa !9
  %309 = load ptr, ptr %4, align 8, !tbaa !5
  %310 = load i32, ptr %14, align 4, !tbaa !9
  %311 = load i32, ptr %15, align 4, !tbaa !9
  %312 = load i32, ptr %16, align 4, !tbaa !9
  %313 = call i32 @w2c_hermes_memcmp(ptr noundef %309, i32 noundef %310, i32 noundef %311, i32 noundef %312)
  store i32 %313, ptr %14, align 4, !tbaa !9
  br label %314

314:                                              ; preds = %306, %305
  %315 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %315, ptr %8, align 4, !tbaa !9
  %316 = load i32, ptr %14, align 4, !tbaa !9
  %317 = icmp ne i32 %316, 0
  br i1 %317, label %318, label %319

318:                                              ; preds = %314
  br label %352

319:                                              ; preds = %314
  store i32 -1, ptr %14, align 4, !tbaa !9
  %320 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %320, ptr %8, align 4, !tbaa !9
  %321 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %321, ptr %14, align 4, !tbaa !9
  %322 = load ptr, ptr %4, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.w2c_hermes, ptr %322, i32 0, i32 6
  %324 = load i32, ptr %14, align 4, !tbaa !9
  %325 = zext i32 %324 to i64
  %326 = add i64 %325, 4
  %327 = call i32 @i32_load(ptr noundef %323, i64 noundef %326)
  store i32 %327, ptr %14, align 4, !tbaa !9
  %328 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %328, ptr %9, align 4, !tbaa !9
  %329 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %329, ptr %15, align 4, !tbaa !9
  %330 = load ptr, ptr %4, align 8, !tbaa !5
  %331 = getelementptr inbounds %struct.w2c_hermes, ptr %330, i32 0, i32 6
  %332 = load i32, ptr %15, align 4, !tbaa !9
  %333 = zext i32 %332 to i64
  %334 = add i64 %333, 8
  %335 = call i32 @i32_load(ptr noundef %331, i64 noundef %334)
  store i32 %335, ptr %15, align 4, !tbaa !9
  %336 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %336, ptr %10, align 4, !tbaa !9
  %337 = load i32, ptr %14, align 4, !tbaa !9
  %338 = load i32, ptr %15, align 4, !tbaa !9
  %339 = icmp ult i32 %337, %338
  %340 = zext i1 %339 to i32
  store i32 %340, ptr %14, align 4, !tbaa !9
  %341 = load i32, ptr %14, align 4, !tbaa !9
  %342 = icmp ne i32 %341, 0
  br i1 %342, label %343, label %344

343:                                              ; preds = %319
  br label %352

344:                                              ; preds = %319
  %345 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %345, ptr %14, align 4, !tbaa !9
  %346 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %346, ptr %15, align 4, !tbaa !9
  %347 = load i32, ptr %14, align 4, !tbaa !9
  %348 = load i32, ptr %15, align 4, !tbaa !9
  %349 = icmp ugt i32 %347, %348
  %350 = zext i1 %349 to i32
  store i32 %350, ptr %14, align 4, !tbaa !9
  %351 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %351, ptr %8, align 4, !tbaa !9
  br label %352

352:                                              ; preds = %344, %343, %318
  %353 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %353, ptr %14, align 4, !tbaa !9
  store i32 16, ptr %15, align 4, !tbaa !9
  %354 = load i32, ptr %15, align 4, !tbaa !9
  %355 = load i32, ptr %14, align 4, !tbaa !9
  %356 = add i32 %355, %354
  store i32 %356, ptr %14, align 4, !tbaa !9
  %357 = load i32, ptr %14, align 4, !tbaa !9
  %358 = load ptr, ptr %4, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.w2c_hermes, ptr %358, i32 0, i32 3
  store i32 %357, ptr %359, align 8, !tbaa !11
  %360 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %360, ptr %14, align 4, !tbaa !9
  br label %363

361:                                              ; preds = %146, %137
  %362 = load ptr, ptr %4, align 8, !tbaa !5
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3A_0x5Fthrow_out_of_range0x5Babi0x3Av150070x5D0x280x290x20const(ptr noundef %362)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

363:                                              ; preds = %352
  br label %365

364:                                              ; preds = %64
  store i32 1, ptr %14, align 4, !tbaa !9
  br label %365

365:                                              ; preds = %364, %363
  %366 = load i32, ptr %14, align 4, !tbaa !9
  %367 = icmp ne i32 %366, 0
  br i1 %367, label %368, label %405

368:                                              ; preds = %365
  %369 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %369, ptr %14, align 4, !tbaa !9
  store i32 4, ptr %15, align 4, !tbaa !9
  %370 = load i32, ptr %15, align 4, !tbaa !9
  %371 = load i32, ptr %14, align 4, !tbaa !9
  %372 = add i32 %371, %370
  store i32 %372, ptr %14, align 4, !tbaa !9
  %373 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %373, ptr %5, align 4, !tbaa !9
  store i32 62435, ptr %15, align 4, !tbaa !9
  %374 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %374, ptr %16, align 4, !tbaa !9
  %375 = load ptr, ptr %4, align 8, !tbaa !5
  %376 = load i32, ptr %14, align 4, !tbaa !9
  %377 = load i32, ptr %15, align 4, !tbaa !9
  %378 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x20std0x3A0x3A_0x5F20x3A0x3Aoperator0x2B0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x28char0x20const0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x20const0x260x29(ptr noundef %375, i32 noundef %376, i32 noundef %377, i32 noundef %378)
  store i32 44, ptr %14, align 4, !tbaa !9
  %379 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %379, ptr %15, align 4, !tbaa !9
  %380 = load ptr, ptr %4, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.w2c_hermes, ptr %380, i32 0, i32 6
  %382 = load i32, ptr %15, align 4, !tbaa !9
  %383 = zext i32 %382 to i64
  %384 = add i64 %383, 11
  %385 = call i32 @i32_load8_u(ptr noundef %381, i64 noundef %384)
  store i32 %385, ptr %15, align 4, !tbaa !9
  store i32 7, ptr %16, align 4, !tbaa !9
  %386 = load i32, ptr %16, align 4, !tbaa !9
  %387 = and i32 %386, 31
  %388 = load i32, ptr %15, align 4, !tbaa !9
  %389 = lshr i32 %388, %387
  store i32 %389, ptr %15, align 4, !tbaa !9
  %390 = load i32, ptr %15, align 4, !tbaa !9
  %391 = icmp ne i32 %390, 0
  br i1 %391, label %392, label %399

392:                                              ; preds = %368
  %393 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %393, ptr %15, align 4, !tbaa !9
  %394 = load ptr, ptr %4, align 8, !tbaa !5
  %395 = getelementptr inbounds %struct.w2c_hermes, ptr %394, i32 0, i32 6
  %396 = load i32, ptr %15, align 4, !tbaa !9
  %397 = zext i32 %396 to i64
  %398 = call i32 @i32_load(ptr noundef %395, i64 noundef %397)
  store i32 %398, ptr %15, align 4, !tbaa !9
  br label %401

399:                                              ; preds = %368
  %400 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %400, ptr %15, align 4, !tbaa !9
  br label %401

401:                                              ; preds = %399, %392
  %402 = load ptr, ptr %4, align 8, !tbaa !5
  %403 = load i32, ptr %14, align 4, !tbaa !9
  %404 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_abort_message(ptr noundef %402, i32 noundef %403, i32 noundef %404)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

405:                                              ; preds = %365
  %406 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %406, ptr %14, align 4, !tbaa !9
  store i32 16, ptr %15, align 4, !tbaa !9
  %407 = load i32, ptr %15, align 4, !tbaa !9
  %408 = load i32, ptr %14, align 4, !tbaa !9
  %409 = add i32 %408, %407
  store i32 %409, ptr %14, align 4, !tbaa !9
  %410 = load i32, ptr %14, align 4, !tbaa !9
  %411 = load ptr, ptr %4, align 8, !tbaa !5
  %412 = getelementptr inbounds %struct.w2c_hermes, ptr %411, i32 0, i32 3
  store i32 %410, ptr %412, align 8, !tbaa !11
  %413 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %413, ptr %14, align 4, !tbaa !9
  %414 = load i32, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, 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 i32 %414
}

declare i32 @w2c_hermes_memcmp(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #4

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

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

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

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

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

declare void @w2c_hermes_abort_message(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Arandom_device0x3A0x3Arandom_device0x28std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x20const0x260x29(ptr noundef %0, i32 noundef returned %1, i32 noundef %2) local_unnamed_addr #2 {
  %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 = tail call i32 @w2c_hermes_strlen(ptr noundef %0, i32 noundef 42994)
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = zext i32 %2 to i64
  %10 = add nuw nsw i64 %9, 11
  %11 = tail call i32 @i32_load8_u(ptr noundef nonnull %8, i64 noundef %10)
  %.not = icmp ult i32 %11, 128
  br i1 %.not, label %15, label %12

12:                                               ; preds = %3
  %13 = add nuw nsw i64 %9, 4
  %14 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %13)
  br label %18

15:                                               ; preds = %3
  %16 = tail call i32 @i32_load8_u(ptr noundef nonnull %8, i64 noundef %10)
  %17 = and i32 %16, 127
  br label %18

18:                                               ; preds = %15, %12
  %.0 = phi i32 [ %14, %12 ], [ %17, %15 ]
  %19 = icmp eq i32 %7, %.0
  br i1 %19, label %20, label %.critedge225

20:                                               ; preds = %18
  %21 = load i32, ptr %4, align 8, !tbaa !5
  %22 = add i32 %21, -16
  store i32 %22, ptr %4, align 8, !tbaa !5
  %23 = zext i32 %22 to i64
  %24 = add nuw nsw i64 %23, 8
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %24, i32 noundef %7)
  %25 = add nuw nsw i64 %23, 12
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %25, i32 noundef -1)
  %26 = tail call i32 @i32_load8_u(ptr noundef nonnull %8, i64 noundef %10)
  %.not218 = icmp ult i32 %26, 128
  br i1 %.not218, label %30, label %27

27:                                               ; preds = %20
  %28 = add nuw nsw i64 %9, 4
  %29 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %28)
  br label %33

30:                                               ; preds = %20
  %31 = tail call i32 @i32_load8_u(ptr noundef nonnull %8, i64 noundef %10)
  %32 = and i32 %31, 127
  br label %33

33:                                               ; preds = %27, %30
  %.0212 = phi i32 [ %29, %27 ], [ %32, %30 ]
  %34 = icmp eq i32 %7, -1
  br i1 %34, label %68, label %35

35:                                               ; preds = %33
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %23, i32 noundef %.0212)
  %36 = load i32, ptr %4, align 8, !tbaa !5
  %37 = add i32 %36, -16
  store i32 %37, ptr %4, align 8, !tbaa !5
  %38 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %23)
  %39 = add i32 %21, -4
  %40 = zext i32 %39 to i64
  %41 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %40)
  %42 = icmp ult i32 %38, %41
  store i32 %36, ptr %4, align 8, !tbaa !5
  %43 = select i1 %42, i32 %22, i32 %39
  %44 = zext i32 %43 to i64
  %45 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %44)
  %46 = add nuw nsw i64 %23, 4
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %46, i32 noundef %45)
  %47 = tail call i32 @i32_load8_u(ptr noundef nonnull %8, i64 noundef %10)
  %.not219 = icmp ult i32 %47, 128
  br i1 %.not219, label %50, label %48

48:                                               ; preds = %35
  %49 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %9)
  br label %50

50:                                               ; preds = %35, %48
  %.1213 = phi i32 [ %49, %48 ], [ %2, %35 ]
  %51 = load i32, ptr %4, align 8, !tbaa !5
  %52 = add i32 %51, -16
  store i32 %52, ptr %4, align 8, !tbaa !5
  %53 = add i32 %21, -8
  %54 = zext i32 %53 to i64
  %55 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %54)
  %56 = add i32 %21, -12
  %57 = zext i32 %56 to i64
  %58 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %57)
  %59 = icmp ult i32 %55, %58
  store i32 %51, ptr %4, align 8, !tbaa !5
  %60 = select i1 %59, i32 %53, i32 %56
  %61 = zext i32 %60 to i64
  %62 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %61)
  %.not220 = icmp eq i32 %62, 0
  br i1 %.not220, label %.critedge, label %63

63:                                               ; preds = %50
  %64 = tail call i32 @w2c_hermes_memcmp(ptr noundef nonnull %0, i32 noundef %.1213, i32 noundef 42994, i32 noundef %62) #4
  %65 = icmp eq i32 %64, 0
  br i1 %65, label %.critedge, label %.critedge227

.critedge:                                        ; preds = %50, %63
  %66 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %46)
  %67 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %24)
  %spec.select = icmp eq i32 %66, %67
  store i32 %21, ptr %4, align 8, !tbaa !5
  br i1 %spec.select, label %76, label %.critedge225

68:                                               ; preds = %33
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3A_0x5Fthrow_out_of_range0x5Babi0x3Av150070x5D0x280x290x20const(ptr noundef nonnull %0)
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

.critedge227:                                     ; preds = %63
  store i32 %21, ptr %4, align 8, !tbaa !5
  br label %.critedge225

.critedge225:                                     ; preds = %18, %.critedge227, %.critedge
  %69 = add i32 %5, -12
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x20std0x3A0x3A_0x5F20x3A0x3Aoperator0x2B0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x28char0x20const0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x20const0x260x29(ptr noundef nonnull %0, i32 noundef %69, i32 noundef 62435, i32 noundef %2)
  %70 = zext i32 %69 to i64
  %71 = add nuw nsw i64 %70, 11
  %72 = tail call i32 @i32_load8_u(ptr noundef nonnull %8, i64 noundef %71)
  %.not223 = icmp ult i32 %72, 128
  br i1 %.not223, label %75, label %73

73:                                               ; preds = %.critedge225
  %74 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %70)
  br label %75

75:                                               ; preds = %.critedge225, %73
  %.1 = phi i32 [ %74, %73 ], [ %69, %.critedge225 ]
  tail call void @w2c_hermes_abort_message(ptr noundef nonnull %0, i32 noundef 44, i32 noundef %.1) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

76:                                               ; preds = %.critedge
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret i32 %1
}

declare i32 @w2c_hermes_memcmp(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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

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