; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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

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

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

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

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

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

declare i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef, i32 noundef) #1

declare void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef, i32 noundef) #1

declare void @w2c_hermes_abort(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AallocSlow0x28unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.w2c_hermes, ptr %17, i32 0, i32 3
  %19 = load i32, ptr %18, align 8, !tbaa !11
  store i32 %19, ptr %11, align 4, !tbaa !9
  store i32 32, ptr %12, align 4, !tbaa !9
  %20 = load i32, ptr %12, align 4, !tbaa !9
  %21 = load i32, ptr %11, align 4, !tbaa !9
  %22 = sub i32 %21, %20
  store i32 %22, ptr %11, align 4, !tbaa !9
  %23 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %23, ptr %7, align 4, !tbaa !9
  %24 = load i32, ptr %11, align 4, !tbaa !9
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.w2c_hermes, ptr %25, i32 0, i32 3
  store i32 %24, ptr %26, align 8, !tbaa !11
  store i32 252368, ptr %11, align 4, !tbaa !9
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = load i32, ptr %11, align 4, !tbaa !9
  %29 = call i32 @w2c_hermes_strlen(ptr noundef %27, i32 noundef %28)
  store i32 %29, ptr %11, align 4, !tbaa !9
  %30 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %30, ptr %8, align 4, !tbaa !9
  store i32 2147483632, ptr %12, align 4, !tbaa !9
  %31 = load i32, ptr %11, align 4, !tbaa !9
  %32 = load i32, ptr %12, align 4, !tbaa !9
  %33 = icmp ult i32 %31, %32
  %34 = zext i1 %33 to i32
  store i32 %34, ptr %11, align 4, !tbaa !9
  %35 = load i32, ptr %11, align 4, !tbaa !9
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %323

37:                                               ; preds = %3
  %38 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %38, ptr %11, align 4, !tbaa !9
  store i32 11, ptr %12, align 4, !tbaa !9
  %39 = load i32, ptr %11, align 4, !tbaa !9
  %40 = load i32, ptr %12, align 4, !tbaa !9
  %41 = icmp uge i32 %39, %40
  %42 = zext i1 %41 to i32
  store i32 %42, ptr %11, align 4, !tbaa !9
  %43 = load i32, ptr %11, align 4, !tbaa !9
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %91

45:                                               ; preds = %37
  %46 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %46, ptr %11, align 4, !tbaa !9
  store i32 15, ptr %12, align 4, !tbaa !9
  %47 = load i32, ptr %12, align 4, !tbaa !9
  %48 = load i32, ptr %11, align 4, !tbaa !9
  %49 = or i32 %48, %47
  store i32 %49, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %50 = load i32, ptr %12, align 4, !tbaa !9
  %51 = load i32, ptr %11, align 4, !tbaa !9
  %52 = add i32 %51, %50
  store i32 %52, ptr %11, align 4, !tbaa !9
  %53 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %53, ptr %9, align 4, !tbaa !9
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = load i32, ptr %11, align 4, !tbaa !9
  %56 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %54, i32 noundef %55)
  store i32 %56, ptr %11, align 4, !tbaa !9
  %57 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %57, ptr %10, align 4, !tbaa !9
  %58 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %58, ptr %11, align 4, !tbaa !9
  %59 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %59, ptr %12, align 4, !tbaa !9
  store i32 -2147483648, ptr %13, align 4, !tbaa !9
  %60 = load i32, ptr %13, align 4, !tbaa !9
  %61 = load i32, ptr %12, align 4, !tbaa !9
  %62 = or i32 %61, %60
  store i32 %62, ptr %12, align 4, !tbaa !9
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.w2c_hermes, ptr %63, i32 0, i32 6
  %65 = load i32, ptr %11, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = add i64 %66, 28
  %68 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %64, i64 noundef %67, i32 noundef %68)
  %69 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %69, ptr %11, align 4, !tbaa !9
  %70 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %70, ptr %12, align 4, !tbaa !9
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.w2c_hermes, ptr %71, i32 0, i32 6
  %73 = load i32, ptr %11, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = add i64 %74, 20
  %76 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %72, i64 noundef %75, i32 noundef %76)
  %77 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %77, ptr %11, align 4, !tbaa !9
  %78 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %78, ptr %12, align 4, !tbaa !9
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.w2c_hermes, ptr %79, i32 0, i32 6
  %81 = load i32, ptr %11, align 4, !tbaa !9
  %82 = zext i32 %81 to i64
  %83 = add i64 %82, 24
  %84 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %80, i64 noundef %83, i32 noundef %84)
  %85 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %85, ptr %11, align 4, !tbaa !9
  %86 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %86, ptr %12, align 4, !tbaa !9
  %87 = load i32, ptr %12, align 4, !tbaa !9
  %88 = load i32, ptr %11, align 4, !tbaa !9
  %89 = add i32 %88, %87
  store i32 %89, ptr %11, align 4, !tbaa !9
  %90 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %90, ptr %9, align 4, !tbaa !9
  br label %123

91:                                               ; preds = %37
  %92 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %92, ptr %11, align 4, !tbaa !9
  %93 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %93, ptr %12, align 4, !tbaa !9
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.w2c_hermes, ptr %94, i32 0, i32 6
  %96 = load i32, ptr %11, align 4, !tbaa !9
  %97 = zext i32 %96 to i64
  %98 = add i64 %97, 31
  %99 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %95, i64 noundef %98, i32 noundef %99)
  %100 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %100, ptr %11, align 4, !tbaa !9
  store i32 20, ptr %12, align 4, !tbaa !9
  %101 = load i32, ptr %12, align 4, !tbaa !9
  %102 = load i32, ptr %11, align 4, !tbaa !9
  %103 = add i32 %102, %101
  store i32 %103, ptr %11, align 4, !tbaa !9
  %104 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %104, ptr %12, align 4, !tbaa !9
  %105 = load i32, ptr %12, align 4, !tbaa !9
  %106 = load i32, ptr %11, align 4, !tbaa !9
  %107 = add i32 %106, %105
  store i32 %107, ptr %11, align 4, !tbaa !9
  %108 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %108, ptr %9, align 4, !tbaa !9
  %109 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %109, ptr %11, align 4, !tbaa !9
  store i32 20, ptr %12, align 4, !tbaa !9
  %110 = load i32, ptr %12, align 4, !tbaa !9
  %111 = load i32, ptr %11, align 4, !tbaa !9
  %112 = add i32 %111, %110
  store i32 %112, ptr %11, align 4, !tbaa !9
  %113 = load i32, ptr %11, 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 i32, ptr %11, align 4, !tbaa !9
  %116 = icmp ne i32 %115, 0
  %117 = xor i1 %116, true
  %118 = zext i1 %117 to i32
  store i32 %118, ptr %11, align 4, !tbaa !9
  %119 = load i32, ptr %11, align 4, !tbaa !9
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %122

121:                                              ; preds = %91
  br label %131

122:                                              ; preds = %91
  br label %123

123:                                              ; preds = %122, %45
  %124 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %124, ptr %11, align 4, !tbaa !9
  store i32 252368, ptr %12, align 4, !tbaa !9
  %125 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %125, ptr %13, align 4, !tbaa !9
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = load i32, ptr %11, align 4, !tbaa !9
  %128 = load i32, ptr %12, align 4, !tbaa !9
  %129 = load i32, ptr %13, align 4, !tbaa !9
  %130 = call i32 @w2c_hermes_0x5F_memcpy(ptr noundef %126, i32 noundef %127, i32 noundef %128, i32 noundef %129)
  store i32 %130, ptr %11, align 4, !tbaa !9
  br label %131

131:                                              ; preds = %123, %121
  %132 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %132, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.w2c_hermes, ptr %133, i32 0, i32 6
  %135 = load i32, ptr %11, align 4, !tbaa !9
  %136 = zext i32 %135 to i64
  %137 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %134, i64 noundef %136, i32 noundef %137)
  %138 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %138, ptr %11, align 4, !tbaa !9
  %139 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %139, ptr %12, align 4, !tbaa !9
  store i32 20, ptr %13, align 4, !tbaa !9
  %140 = load i32, ptr %13, align 4, !tbaa !9
  %141 = load i32, ptr %12, align 4, !tbaa !9
  %142 = add i32 %141, %140
  store i32 %142, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = load i32, ptr %11, align 4, !tbaa !9
  %145 = load i32, ptr %12, align 4, !tbaa !9
  %146 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AyoungGenCollection0x28std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x2C0x20bool0x29(ptr noundef %143, i32 noundef %144, i32 noundef %145, i32 noundef %146)
  %147 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %147, ptr %11, align 4, !tbaa !9
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.w2c_hermes, ptr %148, i32 0, i32 6
  %150 = load i32, ptr %11, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = add i64 %151, 31
  %153 = call i32 @i32_load8_s(ptr noundef %149, i64 noundef %152)
  store i32 %153, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %154 = load i32, ptr %11, align 4, !tbaa !9
  %155 = load i32, ptr %12, align 4, !tbaa !9
  %156 = icmp slt i32 %154, %155
  %157 = zext i1 %156 to i32
  store i32 %157, ptr %11, align 4, !tbaa !9
  %158 = load i32, ptr %11, align 4, !tbaa !9
  %159 = icmp ne i32 %158, 0
  br i1 %159, label %160, label %170

160:                                              ; preds = %131
  %161 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %161, ptr %11, 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 %11, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = add i64 %165, 20
  %167 = call i32 @i32_load(ptr noundef %163, i64 noundef %166)
  store i32 %167, ptr %11, align 4, !tbaa !9
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = load i32, ptr %11, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %168, i32 noundef %169)
  br label %170

170:                                              ; preds = %160, %131
  %171 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %171, ptr %11, align 4, !tbaa !9
  %172 = load ptr, ptr %4, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.w2c_hermes, ptr %172, i32 0, i32 6
  %174 = load i32, ptr %11, align 4, !tbaa !9
  %175 = zext i32 %174 to i64
  %176 = add i64 %175, 588
  %177 = call i32 @i32_load(ptr noundef %173, i64 noundef %176)
  store i32 %177, ptr %11, align 4, !tbaa !9
  %178 = load i32, ptr %11, align 4, !tbaa !9
  %179 = icmp ne i32 %178, 0
  %180 = xor i1 %179, true
  %181 = zext i1 %180 to i32
  store i32 %181, ptr %11, align 4, !tbaa !9
  %182 = load i32, ptr %11, align 4, !tbaa !9
  %183 = icmp ne i32 %182, 0
  br i1 %183, label %184, label %185

184:                                              ; preds = %170
  br label %325

185:                                              ; preds = %170
  %186 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %186, ptr %11, align 4, !tbaa !9
  store i32 11, ptr %12, align 4, !tbaa !9
  %187 = load i32, ptr %11, align 4, !tbaa !9
  %188 = load i32, ptr %12, align 4, !tbaa !9
  %189 = icmp ule i32 %187, %188
  %190 = zext i1 %189 to i32
  store i32 %190, ptr %11, align 4, !tbaa !9
  %191 = load i32, ptr %11, align 4, !tbaa !9
  %192 = icmp ne i32 %191, 0
  br i1 %192, label %193, label %194

193:                                              ; preds = %185
  br label %343

194:                                              ; preds = %185
  %195 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %195, ptr %11, align 4, !tbaa !9
  store i32 7, ptr %12, align 4, !tbaa !9
  %196 = load i32, ptr %12, align 4, !tbaa !9
  %197 = load i32, ptr %11, align 4, !tbaa !9
  %198 = and i32 %197, %196
  store i32 %198, ptr %11, align 4, !tbaa !9
  %199 = load i32, ptr %11, align 4, !tbaa !9
  %200 = icmp ne i32 %199, 0
  br i1 %200, label %201, label %202

201:                                              ; preds = %194
  br label %361

202:                                              ; preds = %194
  %203 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %203, ptr %11, align 4, !tbaa !9
  %204 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %204, ptr %12, 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 %12, align 4, !tbaa !9
  %208 = zext i32 %207 to i64
  %209 = add i64 %208, 600
  %210 = call i32 @i32_load(ptr noundef %206, i64 noundef %209)
  store i32 %210, ptr %12, align 4, !tbaa !9
  %211 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %211, ptr %13, align 4, !tbaa !9
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.w2c_hermes, ptr %212, i32 0, i32 6
  %214 = load i32, ptr %13, align 4, !tbaa !9
  %215 = zext i32 %214 to i64
  %216 = add i64 %215, 596
  %217 = call i32 @i32_load(ptr noundef %213, i64 noundef %216)
  store i32 %217, ptr %13, align 4, !tbaa !9
  %218 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %218, ptr %8, align 4, !tbaa !9
  %219 = load i32, ptr %13, align 4, !tbaa !9
  %220 = load i32, ptr %12, align 4, !tbaa !9
  %221 = sub i32 %220, %219
  store i32 %221, ptr %12, align 4, !tbaa !9
  %222 = load i32, ptr %11, align 4, !tbaa !9
  %223 = load i32, ptr %12, align 4, !tbaa !9
  %224 = icmp ule i32 %222, %223
  %225 = zext i1 %224 to i32
  store i32 %225, ptr %11, align 4, !tbaa !9
  %226 = load i32, ptr %11, align 4, !tbaa !9
  %227 = icmp ne i32 %226, 0
  br i1 %227, label %228, label %247

228:                                              ; preds = %202
  %229 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %229, ptr %11, align 4, !tbaa !9
  %230 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %230, ptr %12, align 4, !tbaa !9
  %231 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %231, ptr %13, align 4, !tbaa !9
  %232 = load i32, ptr %13, align 4, !tbaa !9
  %233 = load i32, ptr %12, align 4, !tbaa !9
  %234 = add i32 %233, %232
  store i32 %234, ptr %12, align 4, !tbaa !9
  %235 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %235, ptr %6, align 4, !tbaa !9
  %236 = load ptr, ptr %4, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.w2c_hermes, ptr %236, i32 0, i32 6
  %238 = load i32, ptr %11, align 4, !tbaa !9
  %239 = zext i32 %238 to i64
  %240 = add i64 %239, 596
  %241 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %237, i64 noundef %240, i32 noundef %241)
  %242 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %242, ptr %11, align 4, !tbaa !9
  %243 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %243, ptr %12, align 4, !tbaa !9
  %244 = load ptr, ptr %4, align 8, !tbaa !5
  %245 = load i32, ptr %11, align 4, !tbaa !9
  %246 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedHeapSegment0x3A0x3AcheckUnwritten0x28char0x2A0x2C0x20char0x2A0x29(ptr noundef %244, i32 noundef %245, i32 noundef %246)
  br label %314

247:                                              ; preds = %202
  %248 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %248, ptr %11, align 4, !tbaa !9
  store i32 588, ptr %12, align 4, !tbaa !9
  %249 = load i32, ptr %12, align 4, !tbaa !9
  %250 = load i32, ptr %11, align 4, !tbaa !9
  %251 = add i32 %250, %249
  store i32 %251, ptr %11, align 4, !tbaa !9
  %252 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %252, ptr %8, align 4, !tbaa !9
  %253 = load ptr, ptr %4, align 8, !tbaa !5
  %254 = load i32, ptr %11, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedHeapSegment0x3A0x3AclearExternalMemoryCharge0x280x29(ptr noundef %253, i32 noundef %254)
  %255 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %255, ptr %11, align 4, !tbaa !9
  %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 %11, align 4, !tbaa !9
  %259 = zext i32 %258 to i64
  %260 = call i32 @i32_load(ptr noundef %257, i64 noundef %259)
  store i32 %260, ptr %11, align 4, !tbaa !9
  %261 = load i32, ptr %11, align 4, !tbaa !9
  %262 = icmp ne i32 %261, 0
  %263 = xor i1 %262, true
  %264 = zext i1 %263 to i32
  store i32 %264, ptr %11, align 4, !tbaa !9
  %265 = load i32, ptr %11, align 4, !tbaa !9
  %266 = icmp ne i32 %265, 0
  br i1 %266, label %267, label %268

267:                                              ; preds = %247
  br label %379

268:                                              ; preds = %247
  %269 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %269, ptr %11, align 4, !tbaa !9
  %270 = load ptr, ptr %4, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.w2c_hermes, ptr %270, i32 0, i32 6
  %272 = load i32, ptr %11, align 4, !tbaa !9
  %273 = zext i32 %272 to i64
  %274 = add i64 %273, 600
  %275 = call i32 @i32_load(ptr noundef %271, i64 noundef %274)
  store i32 %275, ptr %11, align 4, !tbaa !9
  %276 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %276, ptr %12, align 4, !tbaa !9
  %277 = load ptr, ptr %4, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.w2c_hermes, ptr %277, i32 0, i32 6
  %279 = load i32, ptr %12, align 4, !tbaa !9
  %280 = zext i32 %279 to i64
  %281 = add i64 %280, 596
  %282 = call i32 @i32_load(ptr noundef %278, i64 noundef %281)
  store i32 %282, ptr %12, align 4, !tbaa !9
  %283 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %283, ptr %8, align 4, !tbaa !9
  %284 = load i32, ptr %12, align 4, !tbaa !9
  %285 = load i32, ptr %11, align 4, !tbaa !9
  %286 = sub i32 %285, %284
  store i32 %286, ptr %11, align 4, !tbaa !9
  %287 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %287, ptr %12, align 4, !tbaa !9
  %288 = load i32, ptr %11, align 4, !tbaa !9
  %289 = load i32, ptr %12, align 4, !tbaa !9
  %290 = icmp ult i32 %288, %289
  %291 = zext i1 %290 to i32
  store i32 %291, ptr %11, align 4, !tbaa !9
  %292 = load i32, ptr %11, align 4, !tbaa !9
  %293 = icmp ne i32 %292, 0
  br i1 %293, label %294, label %295

294:                                              ; preds = %268
  br label %397

295:                                              ; preds = %268
  %296 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %296, ptr %11, align 4, !tbaa !9
  %297 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %297, ptr %12, align 4, !tbaa !9
  %298 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %298, ptr %13, align 4, !tbaa !9
  %299 = load i32, ptr %13, align 4, !tbaa !9
  %300 = load i32, ptr %12, align 4, !tbaa !9
  %301 = add i32 %300, %299
  store i32 %301, ptr %12, align 4, !tbaa !9
  %302 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %302, ptr %6, align 4, !tbaa !9
  %303 = load ptr, ptr %4, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.w2c_hermes, ptr %303, i32 0, i32 6
  %305 = load i32, ptr %11, align 4, !tbaa !9
  %306 = zext i32 %305 to i64
  %307 = add i64 %306, 596
  %308 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %304, i64 noundef %307, i32 noundef %308)
  %309 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %309, ptr %11, align 4, !tbaa !9
  %310 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %310, ptr %12, align 4, !tbaa !9
  %311 = load ptr, ptr %4, align 8, !tbaa !5
  %312 = load i32, ptr %11, align 4, !tbaa !9
  %313 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedHeapSegment0x3A0x3AcheckUnwritten0x28char0x2A0x2C0x20char0x2A0x29(ptr noundef %311, i32 noundef %312, i32 noundef %313)
  br label %314

314:                                              ; preds = %295, %228
  %315 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %315, ptr %11, align 4, !tbaa !9
  store i32 32, ptr %12, align 4, !tbaa !9
  %316 = load i32, ptr %12, align 4, !tbaa !9
  %317 = load i32, ptr %11, align 4, !tbaa !9
  %318 = add i32 %317, %316
  store i32 %318, ptr %11, align 4, !tbaa !9
  %319 = load i32, ptr %11, align 4, !tbaa !9
  %320 = load ptr, ptr %4, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.w2c_hermes, ptr %320, i32 0, i32 3
  store i32 %319, ptr %321, align 8, !tbaa !11
  %322 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %322, ptr %11, align 4, !tbaa !9
  br label %423

323:                                              ; preds = %3
  %324 = load ptr, ptr %4, align 8, !tbaa !5
  call void @w2c_hermes_abort(ptr noundef %324)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

325:                                              ; preds = %184
  store i32 0, ptr %11, align 4, !tbaa !9
  %326 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %326, ptr %7, align 4, !tbaa !9
  store i32 131267, ptr %12, align 4, !tbaa !9
  %327 = load i32, ptr %12, align 4, !tbaa !9
  %328 = load i32, ptr %11, align 4, !tbaa !9
  %329 = add i32 %328, %327
  store i32 %329, ptr %11, align 4, !tbaa !9
  %330 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %330, ptr %12, align 4, !tbaa !9
  store i32 77414, ptr %13, align 4, !tbaa !9
  %331 = load i32, ptr %13, align 4, !tbaa !9
  %332 = load i32, ptr %12, align 4, !tbaa !9
  %333 = add i32 %332, %331
  store i32 %333, ptr %12, align 4, !tbaa !9
  store i32 307, ptr %13, align 4, !tbaa !9
  %334 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %334, ptr %14, align 4, !tbaa !9
  store i32 107220, ptr %15, align 4, !tbaa !9
  %335 = load i32, ptr %15, align 4, !tbaa !9
  %336 = load i32, ptr %14, align 4, !tbaa !9
  %337 = add i32 %336, %335
  store i32 %337, ptr %14, align 4, !tbaa !9
  %338 = load ptr, ptr %4, align 8, !tbaa !5
  %339 = load i32, ptr %11, align 4, !tbaa !9
  %340 = load i32, ptr %12, align 4, !tbaa !9
  %341 = load i32, ptr %13, align 4, !tbaa !9
  %342 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %338, i32 noundef %339, i32 noundef %340, i32 noundef %341, i32 noundef %342)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

343:                                              ; preds = %193
  store i32 0, ptr %11, align 4, !tbaa !9
  %344 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %344, ptr %7, align 4, !tbaa !9
  store i32 157356, ptr %12, align 4, !tbaa !9
  %345 = load i32, ptr %12, align 4, !tbaa !9
  %346 = load i32, ptr %11, align 4, !tbaa !9
  %347 = add i32 %346, %345
  store i32 %347, ptr %11, align 4, !tbaa !9
  %348 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %348, ptr %12, align 4, !tbaa !9
  store i32 77414, ptr %13, align 4, !tbaa !9
  %349 = load i32, ptr %13, align 4, !tbaa !9
  %350 = load i32, ptr %12, align 4, !tbaa !9
  %351 = add i32 %350, %349
  store i32 %351, ptr %12, align 4, !tbaa !9
  store i32 308, ptr %13, align 4, !tbaa !9
  %352 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %352, ptr %14, align 4, !tbaa !9
  store i32 107220, ptr %15, align 4, !tbaa !9
  %353 = load i32, ptr %15, align 4, !tbaa !9
  %354 = load i32, ptr %14, align 4, !tbaa !9
  %355 = add i32 %354, %353
  store i32 %355, ptr %14, align 4, !tbaa !9
  %356 = load ptr, ptr %4, align 8, !tbaa !5
  %357 = load i32, ptr %11, align 4, !tbaa !9
  %358 = load i32, ptr %12, align 4, !tbaa !9
  %359 = load i32, ptr %13, align 4, !tbaa !9
  %360 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %356, i32 noundef %357, i32 noundef %358, i32 noundef %359, i32 noundef %360)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

361:                                              ; preds = %201
  store i32 0, ptr %11, align 4, !tbaa !9
  %362 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %362, ptr %7, align 4, !tbaa !9
  store i32 181589, ptr %12, align 4, !tbaa !9
  %363 = load i32, ptr %12, align 4, !tbaa !9
  %364 = load i32, ptr %11, align 4, !tbaa !9
  %365 = add i32 %364, %363
  store i32 %365, ptr %11, align 4, !tbaa !9
  %366 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %366, ptr %12, align 4, !tbaa !9
  store i32 77414, ptr %13, align 4, !tbaa !9
  %367 = load i32, ptr %13, align 4, !tbaa !9
  %368 = load i32, ptr %12, align 4, !tbaa !9
  %369 = add i32 %368, %367
  store i32 %369, ptr %12, align 4, !tbaa !9
  store i32 309, ptr %13, align 4, !tbaa !9
  %370 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %370, ptr %14, align 4, !tbaa !9
  store i32 107220, ptr %15, align 4, !tbaa !9
  %371 = load i32, ptr %15, align 4, !tbaa !9
  %372 = load i32, ptr %14, align 4, !tbaa !9
  %373 = add i32 %372, %371
  store i32 %373, ptr %14, align 4, !tbaa !9
  %374 = load ptr, ptr %4, align 8, !tbaa !5
  %375 = load i32, ptr %11, align 4, !tbaa !9
  %376 = load i32, ptr %12, align 4, !tbaa !9
  %377 = load i32, ptr %13, align 4, !tbaa !9
  %378 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %374, i32 noundef %375, i32 noundef %376, i32 noundef %377, i32 noundef %378)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

379:                                              ; preds = %267
  store i32 0, ptr %11, align 4, !tbaa !9
  %380 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %380, ptr %7, align 4, !tbaa !9
  store i32 131267, ptr %12, align 4, !tbaa !9
  %381 = load i32, ptr %12, align 4, !tbaa !9
  %382 = load i32, ptr %11, align 4, !tbaa !9
  %383 = add i32 %382, %381
  store i32 %383, ptr %11, align 4, !tbaa !9
  %384 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %384, ptr %12, align 4, !tbaa !9
  store i32 77414, ptr %13, align 4, !tbaa !9
  %385 = load i32, ptr %13, align 4, !tbaa !9
  %386 = load i32, ptr %12, align 4, !tbaa !9
  %387 = add i32 %386, %385
  store i32 %387, ptr %12, align 4, !tbaa !9
  store i32 307, ptr %13, align 4, !tbaa !9
  %388 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %388, ptr %14, align 4, !tbaa !9
  store i32 107220, ptr %15, align 4, !tbaa !9
  %389 = load i32, ptr %15, align 4, !tbaa !9
  %390 = load i32, ptr %14, align 4, !tbaa !9
  %391 = add i32 %390, %389
  store i32 %391, ptr %14, align 4, !tbaa !9
  %392 = load ptr, ptr %4, align 8, !tbaa !5
  %393 = load i32, ptr %11, align 4, !tbaa !9
  %394 = load i32, ptr %12, align 4, !tbaa !9
  %395 = load i32, ptr %13, align 4, !tbaa !9
  %396 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %392, i32 noundef %393, i32 noundef %394, i32 noundef %395, i32 noundef %396)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

397:                                              ; preds = %294
  %398 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %398, ptr %11, align 4, !tbaa !9
  store i32 12, ptr %12, align 4, !tbaa !9
  %399 = load i32, ptr %12, align 4, !tbaa !9
  %400 = load i32, ptr %11, align 4, !tbaa !9
  %401 = add i32 %400, %399
  store i32 %401, ptr %11, align 4, !tbaa !9
  store i32 4, ptr %12, align 4, !tbaa !9
  %402 = load ptr, ptr %4, align 8, !tbaa !5
  %403 = load i32, ptr %11, align 4, !tbaa !9
  %404 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Amake_error_code0x28hermes0x3A0x3AOOMError0x29(ptr noundef %402, i32 noundef %403, i32 noundef %404)
  %405 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %405, ptr %11, align 4, !tbaa !9
  %406 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %406, ptr %12, align 4, !tbaa !9
  %407 = load ptr, ptr %4, align 8, !tbaa !5
  %408 = getelementptr inbounds %struct.w2c_hermes, ptr %407, i32 0, i32 6
  %409 = load i32, ptr %12, align 4, !tbaa !9
  %410 = zext i32 %409 to i64
  %411 = add i64 %410, 12
  %412 = call i64 @i64_load(ptr noundef %408, i64 noundef %411)
  store i64 %412, ptr %16, align 8, !tbaa !17
  %413 = load ptr, ptr %4, align 8, !tbaa !5
  %414 = getelementptr inbounds %struct.w2c_hermes, ptr %413, i32 0, i32 6
  %415 = load i32, ptr %11, align 4, !tbaa !9
  %416 = zext i32 %415 to i64
  %417 = load i64, ptr %16, align 8, !tbaa !17
  call void @i64_store(ptr noundef %414, i64 noundef %416, i64 noundef %417)
  %418 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %418, ptr %11, align 4, !tbaa !9
  %419 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %419, ptr %12, align 4, !tbaa !9
  %420 = load ptr, ptr %4, align 8, !tbaa !5
  %421 = load i32, ptr %11, align 4, !tbaa !9
  %422 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCBase0x3A0x3Aoom0x28std0x3A0x3A_0x5F20x3A0x3Aerror_code0x29(ptr noundef %420, i32 noundef %421, i32 noundef %422)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

423:                                              ; preds = %314
  %424 = load i32, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret i32 %424
}

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedHeapSegment0x3A0x3AcheckUnwritten0x28char0x2A0x2C0x20char0x2A0x29(ptr noundef, i32 noundef, i32 noundef) #1

declare i32 @w2c_hermes_0x5F_memcpy(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1

declare i32 @w2c_hermes_strlen(ptr noundef, i32 noundef) #1

declare void @w2c_hermes_hermes0x3A0x3Amake_error_code0x28hermes0x3A0x3AOOMError0x29(ptr noundef, i32 noundef, i32 noundef) #1

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

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

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedHeapSegment0x3A0x3AclearExternalMemoryCharge0x280x29(ptr noundef, i32 noundef) #1

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

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

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


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

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 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_store8(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

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

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

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

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

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

declare i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @w2c_hermes_abort(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AallocSlow0x28unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = add i32 %5, -32
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = tail call i32 @w2c_hermes_strlen(ptr noundef %0, i32 noundef 252368) #4
  %8 = icmp ult i32 %7, 2147483632
  br i1 %8, label %9, label %63

9:                                                ; preds = %3
  %10 = icmp ugt i32 %7, 10
  br i1 %10, label %11, label %22

11:                                               ; preds = %9
  %12 = or i32 %7, 15
  %13 = add nuw i32 %12, 1
  %14 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef %13) #4
  %15 = or i32 %13, -2147483648
  %16 = getelementptr inbounds i8, ptr %0, i64 40
  %17 = zext i32 %6 to i64
  %18 = add nuw nsw i64 %17, 28
  tail call void @i32_store(ptr noundef nonnull %16, i64 noundef %18, i32 noundef %15)
  %19 = add nuw nsw i64 %17, 20
  tail call void @i32_store(ptr noundef nonnull %16, i64 noundef %19, i32 noundef %14)
  %20 = add nuw nsw i64 %17, 24
  tail call void @i32_store(ptr noundef nonnull %16, i64 noundef %20, i32 noundef %7)
  %21 = add i32 %14, %7
  %.pre266 = add i32 %5, -12
  %.pre = add nuw nsw i64 %17, 31
  br label %28

22:                                               ; preds = %9
  %23 = getelementptr inbounds i8, ptr %0, i64 40
  %24 = zext i32 %6 to i64
  %25 = add nuw nsw i64 %24, 31
  tail call void @i32_store8(ptr noundef nonnull %23, i64 noundef %25, i32 noundef %7)
  %26 = add i32 %5, -12
  %27 = add i32 %7, %26
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %30, label %28

28:                                               ; preds = %22, %11
  %.pre264.pre-phi = phi i64 [ %25, %22 ], [ %.pre, %11 ]
  %.pre262.pre-phi = phi i64 [ %24, %22 ], [ %17, %11 ]
  %.pre.pre-phi = phi i32 [ %26, %22 ], [ %.pre266, %11 ]
  %.0254 = phi i32 [ %27, %22 ], [ %21, %11 ]
  %.0 = phi i32 [ %26, %22 ], [ %14, %11 ]
  %29 = tail call i32 @w2c_hermes_0x5F_memcpy(ptr noundef nonnull %0, i32 noundef %.0, i32 noundef 252368, i32 noundef %7) #4
  br label %30

30:                                               ; preds = %22, %28
  %.pre-phi265 = phi i64 [ %25, %22 ], [ %.pre264.pre-phi, %28 ]
  %.pre-phi263 = phi i64 [ %24, %22 ], [ %.pre262.pre-phi, %28 ]
  %.pre-phi = phi i32 [ %26, %22 ], [ %.pre.pre-phi, %28 ]
  %.1 = phi i32 [ %27, %22 ], [ %.0254, %28 ]
  %31 = getelementptr inbounds i8, ptr %0, i64 40
  %32 = zext i32 %.1 to i64
  tail call void @i32_store8(ptr noundef nonnull %31, i64 noundef %32, i32 noundef 0)
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AyoungGenCollection0x28std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x2C0x20bool0x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %.pre-phi, i32 noundef 0)
  %33 = tail call i32 @i32_load8_s(ptr noundef nonnull %31, i64 noundef %.pre-phi265)
  %34 = icmp slt i32 %33, 0
  br i1 %34, label %35, label %38

35:                                               ; preds = %30
  %36 = add nuw nsw i64 %.pre-phi263, 20
  %37 = tail call i32 @i32_load(ptr noundef nonnull %31, i64 noundef %36)
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef nonnull %0, i32 noundef %37) #4
  br label %38

38:                                               ; preds = %35, %30
  %39 = zext i32 %1 to i64
  %40 = add nuw nsw i64 %39, 588
  %41 = tail call i32 @i32_load(ptr noundef nonnull %31, i64 noundef %40)
  %.not258 = icmp eq i32 %41, 0
  br i1 %.not258, label %64, label %42

42:                                               ; preds = %38
  %43 = icmp ult i32 %2, 12
  br i1 %43, label %65, label %44

44:                                               ; preds = %42
  %45 = and i32 %2, 7
  %.not259 = icmp eq i32 %45, 0
  br i1 %.not259, label %46, label %66

46:                                               ; preds = %44
  %47 = add nuw nsw i64 %39, 600
  %48 = tail call i32 @i32_load(ptr noundef nonnull %31, i64 noundef %47)
  %49 = add nuw nsw i64 %39, 596
  %50 = tail call i32 @i32_load(ptr noundef nonnull %31, i64 noundef %49)
  %51 = sub i32 %48, %50
  %.not260 = icmp ult i32 %51, %2
  br i1 %.not260, label %52, label %61

52:                                               ; preds = %46
  %53 = add i32 %1, 588
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedHeapSegment0x3A0x3AclearExternalMemoryCharge0x280x29(ptr noundef nonnull %0, i32 noundef %53) #4
  %54 = zext i32 %53 to i64
  %55 = tail call i32 @i32_load(ptr noundef nonnull %31, i64 noundef %54)
  %.not261 = icmp eq i32 %55, 0
  br i1 %.not261, label %67, label %56

56:                                               ; preds = %52
  %57 = tail call i32 @i32_load(ptr noundef nonnull %31, i64 noundef %47)
  %58 = tail call i32 @i32_load(ptr noundef nonnull %31, i64 noundef %49)
  %59 = sub i32 %57, %58
  %60 = icmp ult i32 %59, %2
  br i1 %60, label %68, label %61

61:                                               ; preds = %56, %46
  %.sink269 = phi i32 [ %50, %46 ], [ %58, %56 ]
  %62 = add i32 %.sink269, %2
  tail call void @i32_store(ptr noundef nonnull %31, i64 noundef %49, i32 noundef %62)
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedHeapSegment0x3A0x3AcheckUnwritten0x28char0x2A0x2C0x20char0x2A0x29(ptr noundef nonnull %0, i32 noundef %.sink269, i32 noundef %62) #4
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret i32 %.sink269

63:                                               ; preds = %3
  tail call void @w2c_hermes_abort(ptr noundef nonnull %0) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

64:                                               ; preds = %38
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 131267, i32 noundef 77414, i32 noundef 307, i32 noundef 107220) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

65:                                               ; preds = %42
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 157356, i32 noundef 77414, i32 noundef 308, i32 noundef 107220) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

66:                                               ; preds = %44
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 181589, i32 noundef 77414, i32 noundef 309, i32 noundef 107220) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

67:                                               ; preds = %52
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 131267, i32 noundef 77414, i32 noundef 307, i32 noundef 107220) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

68:                                               ; preds = %56
  %69 = add i32 %5, -20
  tail call void @w2c_hermes_hermes0x3A0x3Amake_error_code0x28hermes0x3A0x3AOOMError0x29(ptr noundef nonnull %0, i32 noundef %69, i32 noundef 4) #4
  %70 = add nuw nsw i64 %.pre-phi263, 12
  %71 = tail call i64 @i64_load(ptr noundef nonnull %31, i64 noundef %70)
  tail call void @i64_store(ptr noundef nonnull %31, i64 noundef %.pre-phi263, i64 noundef %71)
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCBase0x3A0x3Aoom0x28std0x3A0x3A_0x5F20x3A0x3Aerror_code0x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %6)
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedHeapSegment0x3A0x3AcheckUnwritten0x28char0x2A0x2C0x20char0x2A0x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare i32 @w2c_hermes_0x5F_memcpy(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare i32 @w2c_hermes_strlen(ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @w2c_hermes_hermes0x3A0x3Amake_error_code0x28hermes0x3A0x3AOOMError0x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

; 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 #3

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedHeapSegment0x3A0x3AclearExternalMemoryCharge0x280x29(ptr noundef, i32 noundef) local_unnamed_addr #0

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

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

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


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