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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store8(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: 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 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

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

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

34:                                               ; preds = %3
  %35 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %35, ptr %10, align 4, !tbaa !9
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.w2c_hermes, ptr %36, i32 0, i32 6
  %38 = load i32, ptr %10, align 4, !tbaa !9
  %39 = zext i32 %38 to i64
  %40 = call i32 @i32_load(ptr noundef %37, i64 noundef %39)
  store i32 %40, ptr %10, align 4, !tbaa !9
  %41 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %41, ptr %9, align 4, !tbaa !9
  %42 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %42, ptr %10, align 4, !tbaa !9
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.w2c_hermes, ptr %43, i32 0, i32 6
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = add i64 %46, 4
  %48 = call i32 @i32_load(ptr noundef %44, i64 noundef %47)
  store i32 %48, ptr %10, align 4, !tbaa !9
  %49 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %49, ptr %8, align 4, !tbaa !9
  %50 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %50, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.w2c_hermes, ptr %51, i32 0, i32 6
  %53 = load i32, ptr %10, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = add i64 %54, 47
  %56 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %52, i64 noundef %55, i32 noundef %56)
  %57 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %57, ptr %10, align 4, !tbaa !9
  %58 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %58, ptr %11, align 4, !tbaa !9
  %59 = load i32, ptr %11, align 4, !tbaa !9
  %60 = load i32, ptr %10, align 4, !tbaa !9
  %61 = sub i32 %60, %59
  store i32 %61, ptr %10, align 4, !tbaa !9
  %62 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %62, ptr %8, align 4, !tbaa !9
  store i32 -7, ptr %11, align 4, !tbaa !9
  %63 = load i32, ptr %10, align 4, !tbaa !9
  %64 = load i32, ptr %11, align 4, !tbaa !9
  %65 = icmp ule i32 %63, %64
  %66 = zext i1 %65 to i32
  store i32 %66, ptr %10, align 4, !tbaa !9
  %67 = load i32, ptr %10, align 4, !tbaa !9
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %69, label %86

69:                                               ; preds = %34
  %70 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %70, ptr %10, align 4, !tbaa !9
  store i32 6, ptr %11, align 4, !tbaa !9
  %71 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %71, ptr %12, align 4, !tbaa !9
  store i32 47, ptr %13, align 4, !tbaa !9
  %72 = load i32, ptr %13, align 4, !tbaa !9
  %73 = load i32, ptr %12, align 4, !tbaa !9
  %74 = add i32 %73, %72
  store i32 %74, ptr %12, align 4, !tbaa !9
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = load i32, ptr %10, align 4, !tbaa !9
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x3A0x3A_0x5Fappend0x28unsigned0x20long0x2C0x20unsigned0x20char0x20const0x260x29(ptr noundef %75, i32 noundef %76, i32 noundef %77, i32 noundef %78)
  %79 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %79, ptr %10, 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 %10, 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 %10, align 4, !tbaa !9
  %85 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %85, ptr %9, align 4, !tbaa !9
  br label %102

86:                                               ; preds = %34
  %87 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %87, ptr %10, align 4, !tbaa !9
  %88 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %88, ptr %11, align 4, !tbaa !9
  %89 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %89, ptr %12, align 4, !tbaa !9
  %90 = load i32, ptr %12, align 4, !tbaa !9
  %91 = load i32, ptr %11, align 4, !tbaa !9
  %92 = add i32 %91, %90
  store i32 %92, ptr %11, align 4, !tbaa !9
  store i32 6, ptr %12, align 4, !tbaa !9
  %93 = load i32, ptr %12, align 4, !tbaa !9
  %94 = load i32, ptr %11, align 4, !tbaa !9
  %95 = add i32 %94, %93
  store i32 %95, ptr %11, align 4, !tbaa !9
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.w2c_hermes, ptr %96, i32 0, i32 6
  %98 = load i32, ptr %10, align 4, !tbaa !9
  %99 = zext i32 %98 to i64
  %100 = add i64 %99, 4
  %101 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %97, i64 noundef %100, i32 noundef %101)
  br label %102

102:                                              ; preds = %86, %69
  %103 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %103, ptr %10, align 4, !tbaa !9
  %104 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %104, ptr %11, align 4, !tbaa !9
  %105 = load i32, ptr %11, align 4, !tbaa !9
  %106 = load i32, ptr %10, align 4, !tbaa !9
  %107 = add i32 %106, %105
  store i32 %107, ptr %10, align 4, !tbaa !9
  store i32 18, ptr %11, align 4, !tbaa !9
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.w2c_hermes, ptr %108, i32 0, i32 6
  %110 = load i32, ptr %10, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %109, i64 noundef %111, i32 noundef %112)
  %113 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %113, ptr %10, align 4, !tbaa !9
  %114 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %114, ptr %11, align 4, !tbaa !9
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.w2c_hermes, ptr %115, i32 0, i32 6
  %117 = load i32, ptr %10, align 4, !tbaa !9
  %118 = zext i32 %117 to i64
  %119 = add i64 %118, 40
  %120 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %116, i64 noundef %119, i32 noundef %120)
  %121 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %121, ptr %10, align 4, !tbaa !9
  %122 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %122, ptr %11, align 4, !tbaa !9
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.w2c_hermes, ptr %123, i32 0, i32 6
  %125 = load i32, ptr %10, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = add i64 %126, 36
  %128 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %124, i64 noundef %127, i32 noundef %128)
  %129 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %129, ptr %10, align 4, !tbaa !9
  %130 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %130, ptr %11, align 4, !tbaa !9
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.w2c_hermes, ptr %131, i32 0, i32 6
  %133 = load i32, ptr %11, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = add i64 %134, 36
  %136 = call i64 @i64_load(ptr noundef %132, i64 noundef %135)
  store i64 %136, ptr %14, align 8, !tbaa !17
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.w2c_hermes, ptr %137, i32 0, i32 6
  %139 = load i32, ptr %10, align 4, !tbaa !9
  %140 = zext i32 %139 to i64
  %141 = add i64 %140, 16
  %142 = load i64, ptr %14, align 8, !tbaa !17
  call void @i64_store(ptr noundef %138, i64 noundef %141, i64 noundef %142)
  %143 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %143, ptr %10, align 4, !tbaa !9
  %144 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %144, ptr %11, align 4, !tbaa !9
  %145 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %145, ptr %12, align 4, !tbaa !9
  store i32 16, ptr %13, align 4, !tbaa !9
  %146 = load i32, ptr %13, align 4, !tbaa !9
  %147 = load i32, ptr %12, align 4, !tbaa !9
  %148 = add i32 %147, %146
  store i32 %148, ptr %12, align 4, !tbaa !9
  %149 = load ptr, ptr %4, align 8, !tbaa !5
  %150 = load i32, ptr %10, align 4, !tbaa !9
  %151 = load i32, ptr %11, align 4, !tbaa !9
  %152 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_void0x20hermes0x3A0x3Aregex0x3A0x3ABracketNode0x3Chermes0x3A0x3Aregex0x3A0x3AUTF16RegexTraits0x3E0x3A0x3ApopulateInstruction0x3Chermes0x3A0x3Aregex0x3A0x3ARegexBytecodeStream0x3A0x3AInstructionWrapper0x3Chermes0x3A0x3Aregex0x3A0x3AU16BracketInsn0x3E0x3E0x28hermes0x3A0x3Aregex0x3A0x3ARegexBytecodeStream0x260x2C0x20hermes0x3A0x3Aregex0x3A0x3ARegexBytecodeStream0x3A0x3AInstructionWrapper0x3Chermes0x3A0x3Aregex0x3A0x3AU16BracketInsn0x3E0x290x20const(ptr noundef %149, i32 noundef %150, i32 noundef %151, i32 noundef %152)
  br label %272

153:                                              ; preds = %3
  %154 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %154, ptr %10, align 4, !tbaa !9
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.w2c_hermes, ptr %155, i32 0, i32 6
  %157 = load i32, ptr %10, align 4, !tbaa !9
  %158 = zext i32 %157 to i64
  %159 = call i32 @i32_load(ptr noundef %156, i64 noundef %158)
  store i32 %159, ptr %10, align 4, !tbaa !9
  %160 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %160, ptr %9, align 4, !tbaa !9
  %161 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %161, ptr %10, align 4, !tbaa !9
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.w2c_hermes, ptr %162, i32 0, i32 6
  %164 = load i32, ptr %10, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = add i64 %165, 4
  %167 = call i32 @i32_load(ptr noundef %163, i64 noundef %166)
  store i32 %167, ptr %10, align 4, !tbaa !9
  %168 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %168, ptr %8, align 4, !tbaa !9
  %169 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %169, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.w2c_hermes, ptr %170, i32 0, i32 6
  %172 = load i32, ptr %10, align 4, !tbaa !9
  %173 = zext i32 %172 to i64
  %174 = add i64 %173, 47
  %175 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %171, i64 noundef %174, i32 noundef %175)
  %176 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %176, ptr %10, align 4, !tbaa !9
  %177 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %177, 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 = sub i32 %179, %178
  store i32 %180, ptr %10, align 4, !tbaa !9
  %181 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %181, ptr %8, align 4, !tbaa !9
  store i32 -7, ptr %11, align 4, !tbaa !9
  %182 = load i32, ptr %10, align 4, !tbaa !9
  %183 = load i32, ptr %11, align 4, !tbaa !9
  %184 = icmp ule i32 %182, %183
  %185 = zext i1 %184 to i32
  store i32 %185, ptr %10, align 4, !tbaa !9
  %186 = load i32, ptr %10, align 4, !tbaa !9
  %187 = icmp ne i32 %186, 0
  br i1 %187, label %188, label %205

188:                                              ; preds = %153
  %189 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %189, ptr %10, align 4, !tbaa !9
  store i32 6, ptr %11, align 4, !tbaa !9
  %190 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %190, ptr %12, align 4, !tbaa !9
  store i32 47, ptr %13, align 4, !tbaa !9
  %191 = load i32, ptr %13, align 4, !tbaa !9
  %192 = load i32, ptr %12, align 4, !tbaa !9
  %193 = add i32 %192, %191
  store i32 %193, ptr %12, align 4, !tbaa !9
  %194 = load ptr, ptr %4, align 8, !tbaa !5
  %195 = load i32, ptr %10, align 4, !tbaa !9
  %196 = load i32, ptr %11, align 4, !tbaa !9
  %197 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x3A0x3A_0x5Fappend0x28unsigned0x20long0x2C0x20unsigned0x20char0x20const0x260x29(ptr noundef %194, i32 noundef %195, i32 noundef %196, i32 noundef %197)
  %198 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %198, ptr %10, align 4, !tbaa !9
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.w2c_hermes, ptr %199, i32 0, i32 6
  %201 = load i32, ptr %10, align 4, !tbaa !9
  %202 = zext i32 %201 to i64
  %203 = call i32 @i32_load(ptr noundef %200, i64 noundef %202)
  store i32 %203, ptr %10, align 4, !tbaa !9
  %204 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %204, ptr %9, align 4, !tbaa !9
  br label %221

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

221:                                              ; preds = %205, %188
  %222 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %222, ptr %10, align 4, !tbaa !9
  %223 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %223, ptr %11, align 4, !tbaa !9
  %224 = load i32, ptr %11, align 4, !tbaa !9
  %225 = load i32, ptr %10, align 4, !tbaa !9
  %226 = add i32 %225, %224
  store i32 %226, ptr %10, align 4, !tbaa !9
  store i32 17, ptr %11, align 4, !tbaa !9
  %227 = load ptr, ptr %4, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.w2c_hermes, ptr %227, i32 0, i32 6
  %229 = load i32, ptr %10, align 4, !tbaa !9
  %230 = zext i32 %229 to i64
  %231 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %228, i64 noundef %230, i32 noundef %231)
  %232 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %232, ptr %10, align 4, !tbaa !9
  %233 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %233, ptr %11, align 4, !tbaa !9
  %234 = load ptr, ptr %4, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.w2c_hermes, ptr %234, i32 0, i32 6
  %236 = load i32, ptr %10, align 4, !tbaa !9
  %237 = zext i32 %236 to i64
  %238 = add i64 %237, 32
  %239 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %235, i64 noundef %238, i32 noundef %239)
  %240 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %240, ptr %10, align 4, !tbaa !9
  %241 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %241, ptr %11, align 4, !tbaa !9
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.w2c_hermes, ptr %242, i32 0, i32 6
  %244 = load i32, ptr %10, align 4, !tbaa !9
  %245 = zext i32 %244 to i64
  %246 = add i64 %245, 28
  %247 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %243, i64 noundef %246, i32 noundef %247)
  %248 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %248, ptr %10, align 4, !tbaa !9
  %249 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %249, ptr %11, align 4, !tbaa !9
  %250 = load ptr, ptr %4, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.w2c_hermes, ptr %250, i32 0, i32 6
  %252 = load i32, ptr %11, align 4, !tbaa !9
  %253 = zext i32 %252 to i64
  %254 = add i64 %253, 28
  %255 = call i64 @i64_load(ptr noundef %251, i64 noundef %254)
  store i64 %255, ptr %14, align 8, !tbaa !17
  %256 = load ptr, ptr %4, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.w2c_hermes, ptr %256, i32 0, i32 6
  %258 = load i32, ptr %10, align 4, !tbaa !9
  %259 = zext i32 %258 to i64
  %260 = add i64 %259, 8
  %261 = load i64, ptr %14, align 8, !tbaa !17
  call void @i64_store(ptr noundef %257, i64 noundef %260, i64 noundef %261)
  %262 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %262, ptr %10, align 4, !tbaa !9
  %263 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %263, ptr %11, align 4, !tbaa !9
  %264 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %264, ptr %12, align 4, !tbaa !9
  store i32 8, ptr %13, align 4, !tbaa !9
  %265 = load i32, ptr %13, align 4, !tbaa !9
  %266 = load i32, ptr %12, align 4, !tbaa !9
  %267 = add i32 %266, %265
  store i32 %267, ptr %12, align 4, !tbaa !9
  %268 = load ptr, ptr %4, align 8, !tbaa !5
  %269 = load i32, ptr %10, align 4, !tbaa !9
  %270 = load i32, ptr %11, align 4, !tbaa !9
  %271 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_void0x20hermes0x3A0x3Aregex0x3A0x3ABracketNode0x3Chermes0x3A0x3Aregex0x3A0x3AUTF16RegexTraits0x3E0x3A0x3ApopulateInstruction0x3Chermes0x3A0x3Aregex0x3A0x3ARegexBytecodeStream0x3A0x3AInstructionWrapper0x3Chermes0x3A0x3Aregex0x3A0x3ABracketInsn0x3E0x3E0x28hermes0x3A0x3Aregex0x3A0x3ARegexBytecodeStream0x260x2C0x20hermes0x3A0x3Aregex0x3A0x3ARegexBytecodeStream0x3A0x3AInstructionWrapper0x3Chermes0x3A0x3Aregex0x3A0x3ABracketInsn0x3E0x290x20const(ptr noundef %268, i32 noundef %269, i32 noundef %270, i32 noundef %271)
  br label %272

272:                                              ; preds = %221, %102
  %273 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %273, ptr %10, align 4, !tbaa !9
  store i32 48, ptr %11, align 4, !tbaa !9
  %274 = load i32, ptr %11, align 4, !tbaa !9
  %275 = load i32, ptr %10, align 4, !tbaa !9
  %276 = add i32 %275, %274
  store i32 %276, ptr %10, align 4, !tbaa !9
  %277 = load i32, ptr %10, align 4, !tbaa !9
  %278 = load ptr, ptr %4, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.w2c_hermes, ptr %278, i32 0, i32 3
  store i32 %277, ptr %279, align 8, !tbaa !11
  store i32 0, ptr %10, align 4, !tbaa !9
  %280 = load i32, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret i32 %280
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

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


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

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden 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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @w2c_hermes_hermes0x3A0x3Aregex0x3A0x3ABracketNode0x3Chermes0x3A0x3Aregex0x3A0x3AUTF16RegexTraits0x3E0x3A0x3AemitStep0x28hermes0x3A0x3Aregex0x3A0x3ARegexBytecodeStream0x260x29(ptr noundef %0, i32 noundef %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, -48
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = zext i32 %1 to i64
  %9 = add nuw nsw i64 %8, 66
  %10 = tail call i32 @i32_load8_u(ptr noundef nonnull %7, i64 noundef %9)
  %.not = icmp eq i32 %10, 0
  %11 = zext i32 %2 to i64
  %12 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %11)
  %13 = add nuw nsw i64 %11, 4
  %14 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %13)
  %15 = zext i32 %6 to i64
  %16 = add nuw nsw i64 %15, 47
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %16, i32 noundef 0)
  %17 = sub i32 %14, %12
  %18 = icmp ult i32 %17, -6
  br i1 %.not, label %33, label %19

19:                                               ; preds = %3
  br i1 %18, label %20, label %23

20:                                               ; preds = %19
  %21 = add i32 %5, -1
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x3A0x3A_0x5Fappend0x28unsigned0x20long0x2C0x20unsigned0x20char0x20const0x260x29(ptr noundef nonnull %0, i32 noundef %2, i32 noundef 6, i32 noundef %21) #3
  %22 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %11)
  br label %25

23:                                               ; preds = %19
  %24 = add i32 %14, 6
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %13, i32 noundef %24)
  br label %25

25:                                               ; preds = %23, %20
  %.0 = phi i32 [ %22, %20 ], [ %12, %23 ]
  %26 = add i32 %.0, %17
  %27 = zext i32 %26 to i64
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %27, i32 noundef 18)
  %28 = add nuw nsw i64 %15, 40
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %28, i32 noundef %17)
  %29 = add nuw nsw i64 %15, 36
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %29, i32 noundef %2)
  %30 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %29)
  %31 = add nuw nsw i64 %15, 16
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %31, i64 noundef %30)
  %32 = add i32 %5, -32
  tail call void @w2c_hermes_void0x20hermes0x3A0x3Aregex0x3A0x3ABracketNode0x3Chermes0x3A0x3Aregex0x3A0x3AUTF16RegexTraits0x3E0x3A0x3ApopulateInstruction0x3Chermes0x3A0x3Aregex0x3A0x3ARegexBytecodeStream0x3A0x3AInstructionWrapper0x3Chermes0x3A0x3Aregex0x3A0x3AU16BracketInsn0x3E0x3E0x28hermes0x3A0x3Aregex0x3A0x3ARegexBytecodeStream0x260x2C0x20hermes0x3A0x3Aregex0x3A0x3ARegexBytecodeStream0x3A0x3AInstructionWrapper0x3Chermes0x3A0x3Aregex0x3A0x3AU16BracketInsn0x3E0x290x20const(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2, i32 noundef %32) #3
  br label %47

33:                                               ; preds = %3
  br i1 %18, label %34, label %37

34:                                               ; preds = %33
  %35 = add i32 %5, -1
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x3A0x3A_0x5Fappend0x28unsigned0x20long0x2C0x20unsigned0x20char0x20const0x260x29(ptr noundef nonnull %0, i32 noundef %2, i32 noundef 6, i32 noundef %35) #3
  %36 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %11)
  br label %39

37:                                               ; preds = %33
  %38 = add i32 %14, 6
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %13, i32 noundef %38)
  br label %39

39:                                               ; preds = %37, %34
  %.1 = phi i32 [ %36, %34 ], [ %12, %37 ]
  %40 = add i32 %.1, %17
  %41 = zext i32 %40 to i64
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %41, i32 noundef 17)
  %42 = add nuw nsw i64 %15, 32
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %42, i32 noundef %17)
  %43 = add nuw nsw i64 %15, 28
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %43, i32 noundef %2)
  %44 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %43)
  %45 = add nuw nsw i64 %15, 8
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %45, i64 noundef %44)
  %46 = add i32 %5, -40
  tail call void @w2c_hermes_void0x20hermes0x3A0x3Aregex0x3A0x3ABracketNode0x3Chermes0x3A0x3Aregex0x3A0x3AUTF16RegexTraits0x3E0x3A0x3ApopulateInstruction0x3Chermes0x3A0x3Aregex0x3A0x3ARegexBytecodeStream0x3A0x3AInstructionWrapper0x3Chermes0x3A0x3Aregex0x3A0x3ABracketInsn0x3E0x3E0x28hermes0x3A0x3Aregex0x3A0x3ARegexBytecodeStream0x260x2C0x20hermes0x3A0x3Aregex0x3A0x3ARegexBytecodeStream0x3A0x3AInstructionWrapper0x3Chermes0x3A0x3Aregex0x3A0x3ABracketInsn0x3E0x290x20const(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2, i32 noundef %46) #3
  br label %47

47:                                               ; preds = %39, %25
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret i32 0
}

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

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

attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass