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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

43:                                               ; preds = %4
  %44 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %44, ptr %9, align 4, !tbaa !9
  %45 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %45, ptr %10, align 4, !tbaa !9
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.w2c_hermes, ptr %46, i32 0, i32 6
  %48 = load i32, ptr %10, align 4, !tbaa !9
  %49 = zext i32 %48 to i64
  %50 = add i64 %49, 8
  %51 = call i32 @i32_load(ptr noundef %47, i64 noundef %50)
  store i32 %51, ptr %10, align 4, !tbaa !9
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.w2c_hermes, ptr %52, i32 0, i32 6
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = zext i32 %54 to i64
  %56 = add i64 %55, 56
  %57 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %53, i64 noundef %56, i32 noundef %57)
  %58 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %58, ptr %9, align 4, !tbaa !9
  %59 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %59, ptr %10, align 4, !tbaa !9
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.w2c_hermes, ptr %60, i32 0, i32 6
  %62 = load i32, ptr %10, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = call i64 @i64_load(ptr noundef %61, i64 noundef %63)
  store i64 %64, ptr %12, align 8, !tbaa !17
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.w2c_hermes, ptr %65, i32 0, i32 6
  %67 = load i32, ptr %9, align 4, !tbaa !9
  %68 = zext i32 %67 to i64
  %69 = add i64 %68, 48
  %70 = load i64, ptr %12, align 8, !tbaa !17
  call void @i64_store(ptr noundef %66, i64 noundef %69, i64 noundef %70)
  br label %93

71:                                               ; preds = %4
  %72 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %72, ptr %9, align 4, !tbaa !9
  store i32 48, ptr %10, align 4, !tbaa !9
  %73 = load i32, ptr %10, align 4, !tbaa !9
  %74 = load i32, ptr %9, align 4, !tbaa !9
  %75 = add i32 %74, %73
  store i32 %75, ptr %9, align 4, !tbaa !9
  %76 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %76, ptr %10, align 4, !tbaa !9
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.w2c_hermes, ptr %77, i32 0, i32 6
  %79 = load i32, ptr %10, align 4, !tbaa !9
  %80 = zext i32 %79 to i64
  %81 = call i32 @i32_load(ptr noundef %78, i64 noundef %80)
  store i32 %81, ptr %10, align 4, !tbaa !9
  %82 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %82, ptr %11, align 4, !tbaa !9
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.w2c_hermes, ptr %83, i32 0, i32 6
  %85 = load i32, ptr %11, align 4, !tbaa !9
  %86 = zext i32 %85 to i64
  %87 = add i64 %86, 4
  %88 = call i32 @i32_load(ptr noundef %84, i64 noundef %87)
  store i32 %88, ptr %11, align 4, !tbaa !9
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = load i32, ptr %9, align 4, !tbaa !9
  %91 = load i32, ptr %10, align 4, !tbaa !9
  %92 = load i32, ptr %11, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3A_0x5Finit_copy_ctor_external0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %89, i32 noundef %90, i32 noundef %91, i32 noundef %92)
  br label %93

93:                                               ; preds = %71, %43
  %94 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %94, ptr %9, align 4, !tbaa !9
  %95 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %95, ptr %10, align 4, !tbaa !9
  store i32 48, ptr %11, align 4, !tbaa !9
  %96 = load i32, ptr %11, align 4, !tbaa !9
  %97 = load i32, ptr %10, align 4, !tbaa !9
  %98 = add i32 %97, %96
  store i32 %98, ptr %10, align 4, !tbaa !9
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = load i32, ptr %9, align 4, !tbaa !9
  %101 = load i32, ptr %10, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AwaitForCollectionToFinish0x28std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x29(ptr noundef %99, i32 noundef %100, i32 noundef %101)
  %102 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %102, ptr %9, align 4, !tbaa !9
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.w2c_hermes, ptr %103, i32 0, i32 6
  %105 = load i32, ptr %9, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = add i64 %106, 59
  %108 = call i32 @i32_load8_s(ptr noundef %104, i64 noundef %107)
  store i32 %108, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  %109 = load i32, ptr %9, align 4, !tbaa !9
  %110 = load i32, ptr %10, align 4, !tbaa !9
  %111 = icmp slt i32 %109, %110
  %112 = zext i1 %111 to i32
  store i32 %112, ptr %9, align 4, !tbaa !9
  %113 = load i32, ptr %9, align 4, !tbaa !9
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %125

115:                                              ; preds = %93
  %116 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %116, ptr %9, align 4, !tbaa !9
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.w2c_hermes, ptr %117, i32 0, i32 6
  %119 = load i32, ptr %9, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = add i64 %120, 48
  %122 = call i32 @i32_load(ptr noundef %118, i64 noundef %121)
  store i32 %122, ptr %9, align 4, !tbaa !9
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_dlfree(ptr noundef %123, i32 noundef %124)
  br label %125

125:                                              ; preds = %115, %93
  %126 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %126, ptr %9, align 4, !tbaa !9
  %127 = load ptr, ptr %5, 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, 11
  %132 = call i32 @i32_load8_s(ptr noundef %128, i64 noundef %131)
  store i32 %132, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  %133 = load i32, ptr %9, align 4, !tbaa !9
  %134 = load i32, ptr %10, align 4, !tbaa !9
  %135 = icmp sge i32 %133, %134
  %136 = zext i1 %135 to i32
  store i32 %136, ptr %9, align 4, !tbaa !9
  %137 = load i32, ptr %9, align 4, !tbaa !9
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %167

139:                                              ; preds = %125
  %140 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %140, ptr %9, align 4, !tbaa !9
  %141 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %141, ptr %10, align 4, !tbaa !9
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.w2c_hermes, ptr %142, i32 0, i32 6
  %144 = load i32, ptr %10, align 4, !tbaa !9
  %145 = zext i32 %144 to i64
  %146 = add i64 %145, 8
  %147 = call i32 @i32_load(ptr noundef %143, i64 noundef %146)
  store i32 %147, ptr %10, align 4, !tbaa !9
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.w2c_hermes, ptr %148, i32 0, i32 6
  %150 = load i32, ptr %9, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = add i64 %151, 40
  %153 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %149, i64 noundef %152, i32 noundef %153)
  %154 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %154, ptr %9, align 4, !tbaa !9
  %155 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %155, ptr %10, align 4, !tbaa !9
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.w2c_hermes, ptr %156, i32 0, i32 6
  %158 = load i32, ptr %10, align 4, !tbaa !9
  %159 = zext i32 %158 to i64
  %160 = call i64 @i64_load(ptr noundef %157, i64 noundef %159)
  store i64 %160, ptr %12, align 8, !tbaa !17
  %161 = load ptr, ptr %5, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.w2c_hermes, ptr %161, i32 0, i32 6
  %163 = load i32, ptr %9, align 4, !tbaa !9
  %164 = zext i32 %163 to i64
  %165 = add i64 %164, 32
  %166 = load i64, ptr %12, align 8, !tbaa !17
  call void @i64_store(ptr noundef %162, i64 noundef %165, i64 noundef %166)
  br label %189

167:                                              ; preds = %125
  %168 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %168, ptr %9, align 4, !tbaa !9
  store i32 32, ptr %10, align 4, !tbaa !9
  %169 = load i32, ptr %10, align 4, !tbaa !9
  %170 = load i32, ptr %9, align 4, !tbaa !9
  %171 = add i32 %170, %169
  store i32 %171, ptr %9, align 4, !tbaa !9
  %172 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %172, ptr %10, align 4, !tbaa !9
  %173 = load ptr, ptr %5, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.w2c_hermes, ptr %173, i32 0, i32 6
  %175 = load i32, ptr %10, align 4, !tbaa !9
  %176 = zext i32 %175 to i64
  %177 = call i32 @i32_load(ptr noundef %174, i64 noundef %176)
  store i32 %177, ptr %10, align 4, !tbaa !9
  %178 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %178, ptr %11, align 4, !tbaa !9
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.w2c_hermes, ptr %179, i32 0, i32 6
  %181 = load i32, ptr %11, align 4, !tbaa !9
  %182 = zext i32 %181 to i64
  %183 = add i64 %182, 4
  %184 = call i32 @i32_load(ptr noundef %180, i64 noundef %183)
  store i32 %184, ptr %11, align 4, !tbaa !9
  %185 = load ptr, ptr %5, align 8, !tbaa !5
  %186 = load i32, ptr %9, align 4, !tbaa !9
  %187 = load i32, ptr %10, align 4, !tbaa !9
  %188 = load i32, ptr %11, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3A_0x5Finit_copy_ctor_external0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %185, i32 noundef %186, i32 noundef %187, i32 noundef %188)
  br label %189

189:                                              ; preds = %167, %139
  %190 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %190, ptr %9, align 4, !tbaa !9
  %191 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %191, ptr %10, align 4, !tbaa !9
  store i32 32, ptr %11, align 4, !tbaa !9
  %192 = load i32, ptr %11, align 4, !tbaa !9
  %193 = load i32, ptr %10, align 4, !tbaa !9
  %194 = add i32 %193, %192
  store i32 %194, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %11, align 4, !tbaa !9
  %195 = load ptr, ptr %5, align 8, !tbaa !5
  %196 = load i32, ptr %9, align 4, !tbaa !9
  %197 = load i32, ptr %10, align 4, !tbaa !9
  %198 = load i32, ptr %11, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AyoungGenCollection0x28std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x2C0x20bool0x29(ptr noundef %195, i32 noundef %196, i32 noundef %197, i32 noundef %198)
  %199 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %199, ptr %9, align 4, !tbaa !9
  %200 = load ptr, ptr %5, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.w2c_hermes, ptr %200, i32 0, i32 6
  %202 = load i32, ptr %9, align 4, !tbaa !9
  %203 = zext i32 %202 to i64
  %204 = add i64 %203, 43
  %205 = call i32 @i32_load8_s(ptr noundef %201, i64 noundef %204)
  store i32 %205, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  %206 = load i32, ptr %9, align 4, !tbaa !9
  %207 = load i32, ptr %10, align 4, !tbaa !9
  %208 = icmp slt i32 %206, %207
  %209 = zext i1 %208 to i32
  store i32 %209, ptr %9, align 4, !tbaa !9
  %210 = load i32, ptr %9, align 4, !tbaa !9
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %212, label %222

212:                                              ; preds = %189
  %213 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %213, ptr %9, align 4, !tbaa !9
  %214 = load ptr, ptr %5, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.w2c_hermes, ptr %214, i32 0, i32 6
  %216 = load i32, ptr %9, align 4, !tbaa !9
  %217 = zext i32 %216 to i64
  %218 = add i64 %217, 32
  %219 = call i32 @i32_load(ptr noundef %215, i64 noundef %218)
  store i32 %219, ptr %9, align 4, !tbaa !9
  %220 = load ptr, ptr %5, align 8, !tbaa !5
  %221 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_dlfree(ptr noundef %220, i32 noundef %221)
  br label %222

222:                                              ; preds = %212, %189
  %223 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %223, ptr %9, align 4, !tbaa !9
  %224 = load ptr, ptr %5, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.w2c_hermes, ptr %224, i32 0, i32 6
  %226 = load i32, ptr %9, align 4, !tbaa !9
  %227 = zext i32 %226 to i64
  %228 = add i64 %227, 11
  %229 = call i32 @i32_load8_s(ptr noundef %225, i64 noundef %228)
  store i32 %229, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  %230 = load i32, ptr %9, align 4, !tbaa !9
  %231 = load i32, ptr %10, align 4, !tbaa !9
  %232 = icmp sge i32 %230, %231
  %233 = zext i1 %232 to i32
  store i32 %233, ptr %9, align 4, !tbaa !9
  %234 = load i32, ptr %9, align 4, !tbaa !9
  %235 = icmp ne i32 %234, 0
  br i1 %235, label %236, label %264

236:                                              ; preds = %222
  %237 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %237, ptr %9, align 4, !tbaa !9
  %238 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %238, ptr %10, align 4, !tbaa !9
  %239 = load ptr, ptr %5, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.w2c_hermes, ptr %239, i32 0, i32 6
  %241 = load i32, ptr %10, align 4, !tbaa !9
  %242 = zext i32 %241 to i64
  %243 = add i64 %242, 8
  %244 = call i32 @i32_load(ptr noundef %240, i64 noundef %243)
  store i32 %244, ptr %10, align 4, !tbaa !9
  %245 = load ptr, ptr %5, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.w2c_hermes, ptr %245, i32 0, i32 6
  %247 = load i32, ptr %9, align 4, !tbaa !9
  %248 = zext i32 %247 to i64
  %249 = add i64 %248, 24
  %250 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %246, i64 noundef %249, i32 noundef %250)
  %251 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %251, ptr %9, align 4, !tbaa !9
  %252 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %252, ptr %10, align 4, !tbaa !9
  %253 = load ptr, ptr %5, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.w2c_hermes, ptr %253, i32 0, i32 6
  %255 = load i32, ptr %10, align 4, !tbaa !9
  %256 = zext i32 %255 to i64
  %257 = call i64 @i64_load(ptr noundef %254, i64 noundef %256)
  store i64 %257, ptr %12, align 8, !tbaa !17
  %258 = load ptr, ptr %5, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.w2c_hermes, ptr %258, i32 0, i32 6
  %260 = load i32, ptr %9, align 4, !tbaa !9
  %261 = zext i32 %260 to i64
  %262 = add i64 %261, 16
  %263 = load i64, ptr %12, align 8, !tbaa !17
  call void @i64_store(ptr noundef %259, i64 noundef %262, i64 noundef %263)
  br label %286

264:                                              ; preds = %222
  %265 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %265, ptr %9, align 4, !tbaa !9
  store i32 16, ptr %10, align 4, !tbaa !9
  %266 = load i32, ptr %10, align 4, !tbaa !9
  %267 = load i32, ptr %9, align 4, !tbaa !9
  %268 = add i32 %267, %266
  store i32 %268, ptr %9, align 4, !tbaa !9
  %269 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %269, ptr %10, align 4, !tbaa !9
  %270 = load ptr, ptr %5, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.w2c_hermes, ptr %270, i32 0, i32 6
  %272 = load i32, ptr %10, align 4, !tbaa !9
  %273 = zext i32 %272 to i64
  %274 = call i32 @i32_load(ptr noundef %271, i64 noundef %273)
  store i32 %274, ptr %10, align 4, !tbaa !9
  %275 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %275, ptr %11, align 4, !tbaa !9
  %276 = load ptr, ptr %5, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.w2c_hermes, ptr %276, i32 0, i32 6
  %278 = load i32, ptr %11, align 4, !tbaa !9
  %279 = zext i32 %278 to i64
  %280 = add i64 %279, 4
  %281 = call i32 @i32_load(ptr noundef %277, i64 noundef %280)
  store i32 %281, ptr %11, align 4, !tbaa !9
  %282 = load ptr, ptr %5, align 8, !tbaa !5
  %283 = load i32, ptr %9, align 4, !tbaa !9
  %284 = load i32, ptr %10, align 4, !tbaa !9
  %285 = load i32, ptr %11, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3A_0x5Finit_copy_ctor_external0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %282, i32 noundef %283, i32 noundef %284, i32 noundef %285)
  br label %286

286:                                              ; preds = %264, %236
  %287 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %287, ptr %9, align 4, !tbaa !9
  %288 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %288, ptr %10, align 4, !tbaa !9
  store i32 16, ptr %11, align 4, !tbaa !9
  %289 = load i32, ptr %11, align 4, !tbaa !9
  %290 = load i32, ptr %10, align 4, !tbaa !9
  %291 = add i32 %290, %289
  store i32 %291, ptr %10, align 4, !tbaa !9
  %292 = load ptr, ptr %5, align 8, !tbaa !5
  %293 = load i32, ptr %9, align 4, !tbaa !9
  %294 = load i32, ptr %10, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AwaitForCollectionToFinish0x28std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x29(ptr noundef %292, i32 noundef %293, i32 noundef %294)
  %295 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %295, ptr %9, align 4, !tbaa !9
  %296 = load ptr, ptr %5, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.w2c_hermes, ptr %296, i32 0, i32 6
  %298 = load i32, ptr %9, align 4, !tbaa !9
  %299 = zext i32 %298 to i64
  %300 = add i64 %299, 27
  %301 = call i32 @i32_load8_s(ptr noundef %297, i64 noundef %300)
  store i32 %301, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  %302 = load i32, ptr %9, align 4, !tbaa !9
  %303 = load i32, ptr %10, align 4, !tbaa !9
  %304 = icmp slt i32 %302, %303
  %305 = zext i1 %304 to i32
  store i32 %305, ptr %9, align 4, !tbaa !9
  %306 = load i32, ptr %9, align 4, !tbaa !9
  %307 = icmp ne i32 %306, 0
  br i1 %307, label %308, label %318

308:                                              ; preds = %286
  %309 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %309, ptr %9, align 4, !tbaa !9
  %310 = load ptr, ptr %5, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.w2c_hermes, ptr %310, i32 0, i32 6
  %312 = load i32, ptr %9, align 4, !tbaa !9
  %313 = zext i32 %312 to i64
  %314 = add i64 %313, 16
  %315 = call i32 @i32_load(ptr noundef %311, i64 noundef %314)
  store i32 %315, ptr %9, align 4, !tbaa !9
  %316 = load ptr, ptr %5, align 8, !tbaa !5
  %317 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_dlfree(ptr noundef %316, i32 noundef %317)
  br label %318

318:                                              ; preds = %308, %286
  %319 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %319, ptr %9, align 4, !tbaa !9
  %320 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %320, ptr %10, align 4, !tbaa !9
  %321 = load ptr, ptr %5, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.w2c_hermes, ptr %321, i32 0, i32 6
  %323 = load i32, ptr %10, align 4, !tbaa !9
  %324 = zext i32 %323 to i64
  %325 = add i64 %324, 8
  %326 = call i32 @i32_load(ptr noundef %322, i64 noundef %325)
  store i32 %326, ptr %10, align 4, !tbaa !9
  %327 = load ptr, ptr %5, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.w2c_hermes, ptr %327, i32 0, i32 6
  %329 = load i32, ptr %9, align 4, !tbaa !9
  %330 = zext i32 %329 to i64
  %331 = add i64 %330, 8
  %332 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %328, i64 noundef %331, i32 noundef %332)
  %333 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %333, ptr %9, align 4, !tbaa !9
  %334 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %334, ptr %10, align 4, !tbaa !9
  %335 = load ptr, ptr %5, align 8, !tbaa !5
  %336 = getelementptr inbounds %struct.w2c_hermes, ptr %335, i32 0, i32 6
  %337 = load i32, ptr %10, align 4, !tbaa !9
  %338 = zext i32 %337 to i64
  %339 = call i64 @i64_load(ptr noundef %336, i64 noundef %338)
  store i64 %339, ptr %12, align 8, !tbaa !17
  %340 = load ptr, ptr %5, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.w2c_hermes, ptr %340, i32 0, i32 6
  %342 = load i32, ptr %9, align 4, !tbaa !9
  %343 = zext i32 %342 to i64
  %344 = load i64, ptr %12, align 8, !tbaa !17
  call void @i64_store(ptr noundef %341, i64 noundef %343, i64 noundef %344)
  %345 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %345, ptr %9, align 4, !tbaa !9
  store i64 0, ptr %12, align 8, !tbaa !17
  %346 = load ptr, ptr %5, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.w2c_hermes, ptr %346, i32 0, i32 6
  %348 = load i32, ptr %9, align 4, !tbaa !9
  %349 = zext i32 %348 to i64
  %350 = load i64, ptr %12, align 8, !tbaa !17
  call void @i64_store(ptr noundef %347, i64 noundef %349, i64 noundef %350)
  %351 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %351, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  %352 = load ptr, ptr %5, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.w2c_hermes, ptr %352, i32 0, i32 6
  %354 = load i32, ptr %9, align 4, !tbaa !9
  %355 = zext i32 %354 to i64
  %356 = add i64 %355, 8
  %357 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %353, i64 noundef %356, i32 noundef %357)
  %358 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %358, ptr %9, align 4, !tbaa !9
  %359 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %359, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  %360 = load ptr, ptr %5, align 8, !tbaa !5
  %361 = load i32, ptr %9, align 4, !tbaa !9
  %362 = load i32, ptr %10, align 4, !tbaa !9
  %363 = load i32, ptr %11, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AyoungGenCollection0x28std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x2C0x20bool0x29(ptr noundef %360, i32 noundef %361, i32 noundef %362, i32 noundef %363)
  %364 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %364, ptr %9, align 4, !tbaa !9
  %365 = load ptr, ptr %5, align 8, !tbaa !5
  %366 = getelementptr inbounds %struct.w2c_hermes, ptr %365, i32 0, i32 6
  %367 = load i32, ptr %9, align 4, !tbaa !9
  %368 = zext i32 %367 to i64
  %369 = add i64 %368, 11
  %370 = call i32 @i32_load8_s(ptr noundef %366, i64 noundef %369)
  store i32 %370, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  %371 = load i32, ptr %9, align 4, !tbaa !9
  %372 = load i32, ptr %10, align 4, !tbaa !9
  %373 = icmp slt i32 %371, %372
  %374 = zext i1 %373 to i32
  store i32 %374, ptr %9, align 4, !tbaa !9
  %375 = load i32, ptr %9, align 4, !tbaa !9
  %376 = icmp ne i32 %375, 0
  br i1 %376, label %377, label %386

377:                                              ; preds = %318
  %378 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %378, ptr %9, align 4, !tbaa !9
  %379 = load ptr, ptr %5, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.w2c_hermes, ptr %379, i32 0, i32 6
  %381 = load i32, ptr %9, align 4, !tbaa !9
  %382 = zext i32 %381 to i64
  %383 = call i32 @i32_load(ptr noundef %380, i64 noundef %382)
  store i32 %383, ptr %9, align 4, !tbaa !9
  %384 = load ptr, ptr %5, align 8, !tbaa !5
  %385 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_dlfree(ptr noundef %384, i32 noundef %385)
  br label %386

386:                                              ; preds = %377, %318
  %387 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %387, ptr %9, align 4, !tbaa !9
  store i32 -64, ptr %10, align 4, !tbaa !9
  %388 = load i32, ptr %10, align 4, !tbaa !9
  %389 = load i32, ptr %9, align 4, !tbaa !9
  %390 = sub i32 %389, %388
  store i32 %390, ptr %9, align 4, !tbaa !9
  %391 = load i32, ptr %9, align 4, !tbaa !9
  %392 = load ptr, ptr %5, align 8, !tbaa !5
  %393 = getelementptr inbounds %struct.w2c_hermes, ptr %392, i32 0, i32 3
  store i32 %391, ptr %393, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, 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
  ret void
}

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_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: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3Acollect0x28std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x2C0x20bool0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = add i32 %6, -64
  store i32 %7, ptr %5, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = zext i32 %1 to i64
  %10 = add nuw nsw i64 %9, 4020
  tail call void @i32_store8(ptr noundef nonnull %8, i64 noundef %10, i32 noundef 0)
  %11 = zext i32 %2 to i64
  %12 = add nuw nsw i64 %11, 11
  %13 = tail call i32 @i32_load8_s(ptr noundef nonnull %8, i64 noundef %12)
  %14 = icmp sgt i32 %13, -1
  br i1 %14, label %15, label %22

15:                                               ; preds = %4
  %16 = add nuw nsw i64 %11, 8
  %17 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %16)
  %18 = zext i32 %7 to i64
  %19 = add nuw nsw i64 %18, 56
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %19, i32 noundef %17)
  %20 = tail call i64 @i64_load(ptr noundef nonnull %8, i64 noundef %11)
  %21 = add nuw nsw i64 %18, 48
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %21, i64 noundef %20)
  %.pre = add i32 %6, -16
  br label %27

22:                                               ; preds = %4
  %23 = add i32 %6, -16
  %24 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %11)
  %25 = add nuw nsw i64 %11, 4
  %26 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %25)
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3A_0x5Finit_copy_ctor_external0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef %23, i32 noundef %24, i32 noundef %26) #3
  %.pre207 = zext i32 %7 to i64
  br label %27

27:                                               ; preds = %22, %15
  %.pre-phi208 = phi i64 [ %.pre207, %22 ], [ %18, %15 ]
  %.pre-phi = phi i32 [ %23, %22 ], [ %.pre, %15 ]
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AwaitForCollectionToFinish0x28std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %.pre-phi)
  %28 = add nuw nsw i64 %.pre-phi208, 59
  %29 = tail call i32 @i32_load8_s(ptr noundef nonnull %8, i64 noundef %28)
  %30 = icmp slt i32 %29, 0
  br i1 %30, label %31, label %34

31:                                               ; preds = %27
  %32 = add nuw nsw i64 %.pre-phi208, 48
  %33 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %32)
  tail call void @w2c_hermes_dlfree(ptr noundef nonnull %0, i32 noundef %33) #3
  br label %34

34:                                               ; preds = %31, %27
  %35 = tail call i32 @i32_load8_s(ptr noundef nonnull %8, i64 noundef %12)
  %36 = icmp sgt i32 %35, -1
  br i1 %36, label %37, label %43

37:                                               ; preds = %34
  %38 = add nuw nsw i64 %11, 8
  %39 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %38)
  %40 = add nuw nsw i64 %.pre-phi208, 40
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %40, i32 noundef %39)
  %41 = tail call i64 @i64_load(ptr noundef nonnull %8, i64 noundef %11)
  %42 = add nuw nsw i64 %.pre-phi208, 32
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %42, i64 noundef %41)
  %.pre209 = add i32 %6, -32
  br label %48

43:                                               ; preds = %34
  %44 = add i32 %6, -32
  %45 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %11)
  %46 = add nuw nsw i64 %11, 4
  %47 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %46)
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3A_0x5Finit_copy_ctor_external0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef %44, i32 noundef %45, i32 noundef %47) #3
  br label %48

48:                                               ; preds = %43, %37
  %.pre-phi210 = phi i32 [ %44, %43 ], [ %.pre209, %37 ]
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AyoungGenCollection0x28std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x2C0x20bool0x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %.pre-phi210, i32 noundef 1)
  %49 = add nuw nsw i64 %.pre-phi208, 43
  %50 = tail call i32 @i32_load8_s(ptr noundef nonnull %8, i64 noundef %49)
  %51 = icmp slt i32 %50, 0
  br i1 %51, label %52, label %55

52:                                               ; preds = %48
  %53 = add nuw nsw i64 %.pre-phi208, 32
  %54 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %53)
  tail call void @w2c_hermes_dlfree(ptr noundef nonnull %0, i32 noundef %54) #3
  br label %55

55:                                               ; preds = %52, %48
  %56 = tail call i32 @i32_load8_s(ptr noundef nonnull %8, i64 noundef %12)
  %57 = icmp sgt i32 %56, -1
  br i1 %57, label %58, label %64

58:                                               ; preds = %55
  %59 = add nuw nsw i64 %11, 8
  %60 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %59)
  %61 = add nuw nsw i64 %.pre-phi208, 24
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %61, i32 noundef %60)
  %62 = tail call i64 @i64_load(ptr noundef nonnull %8, i64 noundef %11)
  %63 = add nuw nsw i64 %.pre-phi208, 16
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %63, i64 noundef %62)
  %.pre211 = add i32 %6, -48
  br label %69

64:                                               ; preds = %55
  %65 = add i32 %6, -48
  %66 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %11)
  %67 = add nuw nsw i64 %11, 4
  %68 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %67)
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3A_0x5Finit_copy_ctor_external0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef %65, i32 noundef %66, i32 noundef %68) #3
  br label %69

69:                                               ; preds = %64, %58
  %.pre-phi212 = phi i32 [ %65, %64 ], [ %.pre211, %58 ]
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AwaitForCollectionToFinish0x28std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %.pre-phi212)
  %70 = add nuw nsw i64 %.pre-phi208, 27
  %71 = tail call i32 @i32_load8_s(ptr noundef nonnull %8, i64 noundef %70)
  %72 = icmp slt i32 %71, 0
  br i1 %72, label %73, label %76

73:                                               ; preds = %69
  %74 = add nuw nsw i64 %.pre-phi208, 16
  %75 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %74)
  tail call void @w2c_hermes_dlfree(ptr noundef nonnull %0, i32 noundef %75) #3
  br label %76

76:                                               ; preds = %73, %69
  %77 = add nuw nsw i64 %11, 8
  %78 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %77)
  %79 = add nuw nsw i64 %.pre-phi208, 8
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %79, i32 noundef %78)
  %80 = tail call i64 @i64_load(ptr noundef nonnull %8, i64 noundef %11)
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %.pre-phi208, i64 noundef %80)
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %11, i64 noundef 0)
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %77, i32 noundef 0)
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AyoungGenCollection0x28std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x2C0x20bool0x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %7, i32 noundef 0)
  %81 = add nuw nsw i64 %.pre-phi208, 11
  %82 = tail call i32 @i32_load8_s(ptr noundef nonnull %8, i64 noundef %81)
  %83 = icmp slt i32 %82, 0
  br i1 %83, label %84, label %86

84:                                               ; preds = %76
  %85 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %.pre-phi208)
  tail call void @w2c_hermes_dlfree(ptr noundef nonnull %0, i32 noundef %85) #3
  br label %86

86:                                               ; preds = %84, %76
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret void
}

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