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

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

declare void @w2c_hermes_abort(ptr noundef) #4

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

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

; 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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_llvh0x3A0x3Acl0x3A0x3Aopt0x3Cstd0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x2C0x20true0x2C0x20llvh0x3A0x3Acl0x3A0x3Aparser0x3Cstd0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3E0x3E0x3A0x3AhandleOccurrence0x28unsigned0x20int0x2C0x20llvh0x3A0x3AStringRef0x2C0x20llvh0x3A0x3AStringRef0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #2 {
  %6 = alloca ptr, align 8
  %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 i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store i64 0, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.w2c_hermes, ptr %23, i32 0, i32 3
  %25 = load i32, ptr %24, align 8, !tbaa !13
  store i32 %25, ptr %16, align 4, !tbaa !9
  store i32 32, ptr %17, align 4, !tbaa !9
  %26 = load i32, ptr %17, align 4, !tbaa !9
  %27 = load i32, ptr %16, align 4, !tbaa !9
  %28 = sub i32 %27, %26
  store i32 %28, ptr %16, align 4, !tbaa !9
  %29 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %29, ptr %11, align 4, !tbaa !9
  %30 = load i32, ptr %16, align 4, !tbaa !9
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.w2c_hermes, ptr %31, i32 0, i32 3
  store i32 %30, ptr %32, align 8, !tbaa !13
  %33 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %33, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.w2c_hermes, ptr %34, i32 0, i32 6
  %36 = load i32, ptr %16, align 4, !tbaa !9
  %37 = zext i32 %36 to i64
  %38 = add i64 %37, 8
  %39 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %35, i64 noundef %38, i32 noundef %39)
  %40 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %40, ptr %16, align 4, !tbaa !9
  store i64 0, ptr %22, align 8, !tbaa !11
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.w2c_hermes, ptr %41, i32 0, i32 6
  %43 = load i32, ptr %16, align 4, !tbaa !9
  %44 = zext i32 %43 to i64
  %45 = load i64, ptr %22, align 8, !tbaa !11
  call void @i64_store(ptr noundef %42, i64 noundef %44, i64 noundef %45)
  %46 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %46, ptr %16, align 4, !tbaa !9
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.w2c_hermes, ptr %47, i32 0, i32 6
  %49 = load i32, ptr %16, align 4, !tbaa !9
  %50 = zext i32 %49 to i64
  %51 = call i64 @i64_load(ptr noundef %48, i64 noundef %50)
  store i64 %51, ptr %21, align 8, !tbaa !11
  %52 = load i64, ptr %21, align 8, !tbaa !11
  store i64 %52, ptr %15, align 8, !tbaa !11
  %53 = load i64, ptr %21, align 8, !tbaa !11
  %54 = trunc i64 %53 to i32
  store i32 %54, ptr %16, align 4, !tbaa !9
  %55 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %55, ptr %14, align 4, !tbaa !9
  %56 = load i32, ptr %16, align 4, !tbaa !9
  %57 = icmp ne i32 %56, 0
  %58 = xor i1 %57, true
  %59 = zext i1 %58 to i32
  store i32 %59, ptr %16, align 4, !tbaa !9
  %60 = load i32, ptr %16, align 4, !tbaa !9
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %77

62:                                               ; preds = %5
  %63 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %63, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.w2c_hermes, ptr %64, i32 0, i32 6
  %66 = load i32, ptr %16, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = add i64 %67, 24
  %69 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %65, i64 noundef %68, i32 noundef %69)
  %70 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %70, ptr %16, align 4, !tbaa !9
  store i64 0, ptr %22, align 8, !tbaa !11
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.w2c_hermes, ptr %71, i32 0, i32 6
  %73 = load i32, ptr %16, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = add i64 %74, 16
  %76 = load i64, ptr %22, align 8, !tbaa !11
  call void @i64_store(ptr noundef %72, i64 noundef %75, i64 noundef %76)
  br label %219

77:                                               ; preds = %5
  %78 = load i64, ptr %15, align 8, !tbaa !11
  store i64 %78, ptr %21, align 8, !tbaa !11
  store i64 32, ptr %22, align 8, !tbaa !11
  %79 = load i64, ptr %22, align 8, !tbaa !11
  %80 = and i64 %79, 63
  %81 = load i64, ptr %21, align 8, !tbaa !11
  %82 = lshr i64 %81, %80
  store i64 %82, ptr %21, align 8, !tbaa !11
  %83 = load i64, ptr %21, align 8, !tbaa !11
  store i64 %83, ptr %15, align 8, !tbaa !11
  %84 = load i64, ptr %21, align 8, !tbaa !11
  %85 = trunc i64 %84 to i32
  store i32 %85, ptr %16, align 4, !tbaa !9
  %86 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %86, ptr %10, align 4, !tbaa !9
  store i32 2147483632, ptr %17, align 4, !tbaa !9
  %87 = load i32, ptr %16, align 4, !tbaa !9
  %88 = load i32, ptr %17, align 4, !tbaa !9
  %89 = icmp uge i32 %87, %88
  %90 = zext i1 %89 to i32
  store i32 %90, ptr %16, align 4, !tbaa !9
  %91 = load i32, ptr %16, align 4, !tbaa !9
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %94

93:                                               ; preds = %77
  br label %437

94:                                               ; preds = %77
  %95 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %95, ptr %16, align 4, !tbaa !9
  store i32 11, ptr %17, align 4, !tbaa !9
  %96 = load i32, ptr %16, align 4, !tbaa !9
  %97 = load i32, ptr %17, align 4, !tbaa !9
  %98 = icmp uge i32 %96, %97
  %99 = zext i1 %98 to i32
  store i32 %99, ptr %16, align 4, !tbaa !9
  %100 = load i32, ptr %16, align 4, !tbaa !9
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %148

102:                                              ; preds = %94
  %103 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %103, ptr %16, align 4, !tbaa !9
  store i32 15, ptr %17, align 4, !tbaa !9
  %104 = load i32, ptr %17, align 4, !tbaa !9
  %105 = load i32, ptr %16, align 4, !tbaa !9
  %106 = or i32 %105, %104
  store i32 %106, ptr %16, align 4, !tbaa !9
  store i32 1, ptr %17, align 4, !tbaa !9
  %107 = load i32, ptr %17, align 4, !tbaa !9
  %108 = load i32, ptr %16, align 4, !tbaa !9
  %109 = add i32 %108, %107
  store i32 %109, ptr %16, align 4, !tbaa !9
  %110 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %110, ptr %13, align 4, !tbaa !9
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = load i32, ptr %16, align 4, !tbaa !9
  %113 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %111, i32 noundef %112)
  store i32 %113, ptr %16, align 4, !tbaa !9
  %114 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %114, ptr %12, align 4, !tbaa !9
  %115 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %115, ptr %16, align 4, !tbaa !9
  %116 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %116, ptr %17, align 4, !tbaa !9
  store i32 -2147483648, ptr %18, align 4, !tbaa !9
  %117 = load i32, ptr %18, align 4, !tbaa !9
  %118 = load i32, ptr %17, align 4, !tbaa !9
  %119 = or i32 %118, %117
  store i32 %119, ptr %17, align 4, !tbaa !9
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.w2c_hermes, ptr %120, i32 0, i32 6
  %122 = load i32, ptr %16, align 4, !tbaa !9
  %123 = zext i32 %122 to i64
  %124 = add i64 %123, 24
  %125 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %121, i64 noundef %124, i32 noundef %125)
  %126 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %126, ptr %16, align 4, !tbaa !9
  %127 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %127, ptr %17, align 4, !tbaa !9
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.w2c_hermes, ptr %128, i32 0, i32 6
  %130 = load i32, ptr %16, align 4, !tbaa !9
  %131 = zext i32 %130 to i64
  %132 = add i64 %131, 16
  %133 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %129, i64 noundef %132, i32 noundef %133)
  %134 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %134, ptr %16, align 4, !tbaa !9
  %135 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %135, ptr %17, align 4, !tbaa !9
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.w2c_hermes, ptr %136, i32 0, i32 6
  %138 = load i32, ptr %16, align 4, !tbaa !9
  %139 = zext i32 %138 to i64
  %140 = add i64 %139, 20
  %141 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %137, i64 noundef %140, i32 noundef %141)
  %142 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %142, ptr %16, align 4, !tbaa !9
  %143 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %143, ptr %17, align 4, !tbaa !9
  %144 = load i32, ptr %17, align 4, !tbaa !9
  %145 = load i32, ptr %16, align 4, !tbaa !9
  %146 = add i32 %145, %144
  store i32 %146, ptr %16, align 4, !tbaa !9
  %147 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %147, ptr %13, align 4, !tbaa !9
  br label %180

148:                                              ; preds = %94
  %149 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %149, ptr %16, align 4, !tbaa !9
  %150 = load i64, ptr %15, align 8, !tbaa !11
  store i64 %150, ptr %22, align 8, !tbaa !11
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.w2c_hermes, ptr %151, i32 0, i32 6
  %153 = load i32, ptr %16, align 4, !tbaa !9
  %154 = zext i32 %153 to i64
  %155 = add i64 %154, 27
  %156 = load i64, ptr %22, align 8, !tbaa !11
  call void @i64_store8(ptr noundef %152, i64 noundef %155, i64 noundef %156)
  %157 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %157, ptr %16, align 4, !tbaa !9
  store i32 16, ptr %17, align 4, !tbaa !9
  %158 = load i32, ptr %17, align 4, !tbaa !9
  %159 = load i32, ptr %16, align 4, !tbaa !9
  %160 = add i32 %159, %158
  store i32 %160, ptr %16, align 4, !tbaa !9
  %161 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %161, ptr %17, align 4, !tbaa !9
  %162 = load i32, ptr %17, align 4, !tbaa !9
  %163 = load i32, ptr %16, align 4, !tbaa !9
  %164 = add i32 %163, %162
  store i32 %164, ptr %16, align 4, !tbaa !9
  %165 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %165, ptr %13, align 4, !tbaa !9
  %166 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %166, ptr %16, align 4, !tbaa !9
  store i32 16, ptr %17, align 4, !tbaa !9
  %167 = load i32, ptr %17, align 4, !tbaa !9
  %168 = load i32, ptr %16, align 4, !tbaa !9
  %169 = add i32 %168, %167
  store i32 %169, ptr %16, align 4, !tbaa !9
  %170 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %170, ptr %12, align 4, !tbaa !9
  %171 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %171, ptr %16, align 4, !tbaa !9
  %172 = load i32, ptr %16, align 4, !tbaa !9
  %173 = icmp ne i32 %172, 0
  %174 = xor i1 %173, true
  %175 = zext i1 %174 to i32
  store i32 %175, ptr %16, align 4, !tbaa !9
  %176 = load i32, ptr %16, align 4, !tbaa !9
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %178, label %179

178:                                              ; preds = %148
  br label %189

179:                                              ; preds = %148
  br label %180

180:                                              ; preds = %179, %102
  %181 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %181, ptr %16, align 4, !tbaa !9
  %182 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %182, ptr %17, align 4, !tbaa !9
  %183 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %183, ptr %18, align 4, !tbaa !9
  %184 = load ptr, ptr %6, align 8, !tbaa !5
  %185 = load i32, ptr %16, align 4, !tbaa !9
  %186 = load i32, ptr %17, align 4, !tbaa !9
  %187 = load i32, ptr %18, align 4, !tbaa !9
  %188 = call i32 @w2c_hermes_memmove(ptr noundef %184, i32 noundef %185, i32 noundef %186, i32 noundef %187)
  store i32 %188, ptr %16, align 4, !tbaa !9
  br label %189

189:                                              ; preds = %180, %178
  %190 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %190, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  %191 = load ptr, ptr %6, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.w2c_hermes, ptr %191, i32 0, i32 6
  %193 = load i32, ptr %16, align 4, !tbaa !9
  %194 = zext i32 %193 to i64
  %195 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %192, i64 noundef %194, i32 noundef %195)
  %196 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %196, ptr %16, align 4, !tbaa !9
  %197 = load ptr, ptr %6, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.w2c_hermes, ptr %197, i32 0, i32 6
  %199 = load i32, ptr %16, align 4, !tbaa !9
  %200 = zext i32 %199 to i64
  %201 = add i64 %200, 11
  %202 = call i32 @i32_load8_s(ptr noundef %198, i64 noundef %201)
  store i32 %202, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  %203 = load i32, ptr %16, align 4, !tbaa !9
  %204 = load i32, ptr %17, align 4, !tbaa !9
  %205 = icmp sge i32 %203, %204
  %206 = zext i1 %205 to i32
  store i32 %206, ptr %16, align 4, !tbaa !9
  %207 = load i32, ptr %16, align 4, !tbaa !9
  %208 = icmp ne i32 %207, 0
  br i1 %208, label %209, label %210

209:                                              ; preds = %189
  br label %219

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

219:                                              ; preds = %210, %209, %62
  %220 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %220, ptr %16, align 4, !tbaa !9
  %221 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %221, ptr %17, align 4, !tbaa !9
  %222 = load ptr, ptr %6, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.w2c_hermes, ptr %222, i32 0, i32 6
  %224 = load i32, ptr %17, align 4, !tbaa !9
  %225 = zext i32 %224 to i64
  %226 = add i64 %225, 24
  %227 = call i32 @i32_load(ptr noundef %223, i64 noundef %226)
  store i32 %227, ptr %17, align 4, !tbaa !9
  %228 = load ptr, ptr %6, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.w2c_hermes, ptr %228, i32 0, i32 6
  %230 = load i32, ptr %16, align 4, !tbaa !9
  %231 = zext i32 %230 to i64
  %232 = add i64 %231, 8
  %233 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %229, i64 noundef %232, i32 noundef %233)
  %234 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %234, ptr %16, align 4, !tbaa !9
  %235 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %235, ptr %17, align 4, !tbaa !9
  %236 = load ptr, ptr %6, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.w2c_hermes, ptr %236, i32 0, i32 6
  %238 = load i32, ptr %17, align 4, !tbaa !9
  %239 = zext i32 %238 to i64
  %240 = add i64 %239, 16
  %241 = call i64 @i64_load(ptr noundef %237, i64 noundef %240)
  store i64 %241, ptr %22, align 8, !tbaa !11
  %242 = load ptr, ptr %6, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.w2c_hermes, ptr %242, i32 0, i32 6
  %244 = load i32, ptr %16, align 4, !tbaa !9
  %245 = zext i32 %244 to i64
  %246 = load i64, ptr %22, align 8, !tbaa !11
  call void @i64_store(ptr noundef %243, i64 noundef %245, i64 noundef %246)
  %247 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %247, ptr %16, align 4, !tbaa !9
  %248 = load ptr, ptr %6, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.w2c_hermes, ptr %248, i32 0, i32 6
  %250 = load i32, ptr %16, align 4, !tbaa !9
  %251 = zext i32 %250 to i64
  %252 = add i64 %251, 88
  %253 = call i32 @i32_load(ptr noundef %249, i64 noundef %252)
  store i32 %253, ptr %16, align 4, !tbaa !9
  %254 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %254, ptr %10, align 4, !tbaa !9
  %255 = load i32, ptr %16, align 4, !tbaa !9
  %256 = icmp ne i32 %255, 0
  %257 = xor i1 %256, true
  %258 = zext i1 %257 to i32
  store i32 %258, ptr %16, align 4, !tbaa !9
  %259 = load i32, ptr %16, align 4, !tbaa !9
  %260 = icmp ne i32 %259, 0
  br i1 %260, label %261, label %262

261:                                              ; preds = %219
  br label %439

262:                                              ; preds = %219
  %263 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %263, ptr %16, align 4, !tbaa !9
  %264 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %264, ptr %17, align 4, !tbaa !9
  %265 = load i32, ptr %16, align 4, !tbaa !9
  %266 = load i32, ptr %17, align 4, !tbaa !9
  %267 = icmp eq i32 %265, %266
  %268 = zext i1 %267 to i32
  store i32 %268, ptr %16, align 4, !tbaa !9
  %269 = load i32, ptr %16, align 4, !tbaa !9
  %270 = icmp ne i32 %269, 0
  br i1 %270, label %271, label %272

271:                                              ; preds = %262
  br label %398

272:                                              ; preds = %262
  %273 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %273, ptr %16, align 4, !tbaa !9
  %274 = load ptr, ptr %6, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.w2c_hermes, ptr %274, i32 0, i32 6
  %276 = load i32, ptr %16, align 4, !tbaa !9
  %277 = zext i32 %276 to i64
  %278 = add i64 %277, 11
  %279 = call i32 @i32_load8_u(ptr noundef %275, i64 noundef %278)
  store i32 %279, ptr %16, align 4, !tbaa !9
  %280 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %280, ptr %14, align 4, !tbaa !9
  %281 = load i32, ptr %16, align 4, !tbaa !9
  %282 = trunc i32 %281 to i8
  %283 = sext i8 %282 to i32
  store i32 %283, ptr %16, align 4, !tbaa !9
  %284 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %284, ptr %12, align 4, !tbaa !9
  %285 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %285, ptr %16, align 4, !tbaa !9
  %286 = load ptr, ptr %6, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.w2c_hermes, ptr %286, i32 0, i32 6
  %288 = load i32, ptr %16, align 4, !tbaa !9
  %289 = zext i32 %288 to i64
  %290 = add i64 %289, 11
  %291 = call i32 @i32_load8_s(ptr noundef %287, i64 noundef %290)
  store i32 %291, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  %292 = load i32, ptr %16, align 4, !tbaa !9
  %293 = load i32, ptr %17, align 4, !tbaa !9
  %294 = icmp sge i32 %292, %293
  %295 = zext i1 %294 to i32
  store i32 %295, ptr %16, align 4, !tbaa !9
  %296 = load i32, ptr %16, align 4, !tbaa !9
  %297 = icmp ne i32 %296, 0
  br i1 %297, label %298, label %353

298:                                              ; preds = %272
  %299 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %299, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  %300 = load i32, ptr %16, align 4, !tbaa !9
  %301 = load i32, ptr %17, align 4, !tbaa !9
  %302 = icmp sge i32 %300, %301
  %303 = zext i1 %302 to i32
  store i32 %303, ptr %16, align 4, !tbaa !9
  %304 = load i32, ptr %16, align 4, !tbaa !9
  %305 = icmp ne i32 %304, 0
  br i1 %305, label %306, label %333

306:                                              ; preds = %298
  %307 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %307, ptr %16, align 4, !tbaa !9
  %308 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %308, ptr %17, align 4, !tbaa !9
  %309 = load ptr, ptr %6, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.w2c_hermes, ptr %309, i32 0, i32 6
  %311 = load i32, ptr %17, align 4, !tbaa !9
  %312 = zext i32 %311 to i64
  %313 = call i64 @i64_load(ptr noundef %310, i64 noundef %312)
  store i64 %313, ptr %22, align 8, !tbaa !11
  %314 = load ptr, ptr %6, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.w2c_hermes, ptr %314, i32 0, i32 6
  %316 = load i32, ptr %16, align 4, !tbaa !9
  %317 = zext i32 %316 to i64
  %318 = load i64, ptr %22, align 8, !tbaa !11
  call void @i64_store(ptr noundef %315, i64 noundef %317, i64 noundef %318)
  %319 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %319, ptr %16, align 4, !tbaa !9
  %320 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %320, ptr %17, align 4, !tbaa !9
  %321 = load ptr, ptr %6, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.w2c_hermes, ptr %321, i32 0, i32 6
  %323 = load i32, ptr %17, 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 %17, align 4, !tbaa !9
  %327 = load ptr, ptr %6, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.w2c_hermes, ptr %327, i32 0, i32 6
  %329 = load i32, ptr %16, align 4, !tbaa !9
  %330 = zext i32 %329 to i64
  %331 = add i64 %330, 8
  %332 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %328, i64 noundef %331, i32 noundef %332)
  br label %398

333:                                              ; preds = %298
  %334 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %334, ptr %16, align 4, !tbaa !9
  %335 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %335, ptr %17, align 4, !tbaa !9
  %336 = load ptr, ptr %6, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.w2c_hermes, ptr %336, i32 0, i32 6
  %338 = load i32, ptr %17, align 4, !tbaa !9
  %339 = zext i32 %338 to i64
  %340 = call i32 @i32_load(ptr noundef %337, i64 noundef %339)
  store i32 %340, ptr %17, align 4, !tbaa !9
  %341 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %341, ptr %18, align 4, !tbaa !9
  %342 = load ptr, ptr %6, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.w2c_hermes, ptr %342, i32 0, i32 6
  %344 = load i32, ptr %18, align 4, !tbaa !9
  %345 = zext i32 %344 to i64
  %346 = add i64 %345, 4
  %347 = call i32 @i32_load(ptr noundef %343, i64 noundef %346)
  store i32 %347, ptr %18, align 4, !tbaa !9
  %348 = load ptr, ptr %6, align 8, !tbaa !5
  %349 = load i32, ptr %16, align 4, !tbaa !9
  %350 = load i32, ptr %17, align 4, !tbaa !9
  %351 = load i32, ptr %18, align 4, !tbaa !9
  %352 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x260x20std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3A_0x5Fassign_no_alias0x3Ctrue0x3E0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %348, i32 noundef %349, i32 noundef %350, i32 noundef %351)
  store i32 %352, ptr %16, align 4, !tbaa !9
  br label %398

353:                                              ; preds = %272
  %354 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %354, ptr %16, align 4, !tbaa !9
  %355 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %355, ptr %17, align 4, !tbaa !9
  %356 = load ptr, ptr %6, align 8, !tbaa !5
  %357 = getelementptr inbounds %struct.w2c_hermes, ptr %356, i32 0, i32 6
  %358 = load i32, ptr %17, align 4, !tbaa !9
  %359 = zext i32 %358 to i64
  %360 = call i32 @i32_load(ptr noundef %357, i64 noundef %359)
  store i32 %360, ptr %17, align 4, !tbaa !9
  %361 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %361, ptr %18, align 4, !tbaa !9
  %362 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %362, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %20, align 4, !tbaa !9
  %363 = load i32, ptr %19, align 4, !tbaa !9
  %364 = load i32, ptr %20, align 4, !tbaa !9
  %365 = icmp slt i32 %363, %364
  %366 = zext i1 %365 to i32
  store i32 %366, ptr %19, align 4, !tbaa !9
  %367 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %367, ptr %12, align 4, !tbaa !9
  %368 = load i32, ptr %19, align 4, !tbaa !9
  %369 = icmp ne i32 %368, 0
  br i1 %369, label %370, label %372

370:                                              ; preds = %353
  %371 = load i32, ptr %17, align 4, !tbaa !9
  br label %374

372:                                              ; preds = %353
  %373 = load i32, ptr %18, align 4, !tbaa !9
  br label %374

374:                                              ; preds = %372, %370
  %375 = phi i32 [ %371, %370 ], [ %373, %372 ]
  store i32 %375, ptr %17, align 4, !tbaa !9
  %376 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %376, ptr %18, align 4, !tbaa !9
  %377 = load ptr, ptr %6, align 8, !tbaa !5
  %378 = getelementptr inbounds %struct.w2c_hermes, ptr %377, i32 0, i32 6
  %379 = load i32, ptr %18, align 4, !tbaa !9
  %380 = zext i32 %379 to i64
  %381 = add i64 %380, 4
  %382 = call i32 @i32_load(ptr noundef %378, i64 noundef %381)
  store i32 %382, ptr %18, align 4, !tbaa !9
  %383 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %383, ptr %19, align 4, !tbaa !9
  %384 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %384, ptr %20, align 4, !tbaa !9
  %385 = load i32, ptr %20, align 4, !tbaa !9
  %386 = icmp ne i32 %385, 0
  br i1 %386, label %387, label %389

387:                                              ; preds = %374
  %388 = load i32, ptr %18, align 4, !tbaa !9
  br label %391

389:                                              ; preds = %374
  %390 = load i32, ptr %19, align 4, !tbaa !9
  br label %391

391:                                              ; preds = %389, %387
  %392 = phi i32 [ %388, %387 ], [ %390, %389 ]
  store i32 %392, ptr %18, align 4, !tbaa !9
  %393 = load ptr, ptr %6, align 8, !tbaa !5
  %394 = load i32, ptr %16, align 4, !tbaa !9
  %395 = load i32, ptr %17, align 4, !tbaa !9
  %396 = load i32, ptr %18, align 4, !tbaa !9
  %397 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x260x20std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3A_0x5Fassign_no_alias0x3Cfalse0x3E0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %393, i32 noundef %394, i32 noundef %395, i32 noundef %396)
  store i32 %397, ptr %16, align 4, !tbaa !9
  br label %398

398:                                              ; preds = %391, %333, %306, %271
  %399 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %399, ptr %16, align 4, !tbaa !9
  %400 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %400, ptr %17, align 4, !tbaa !9
  %401 = load ptr, ptr %6, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.w2c_hermes, ptr %401, i32 0, i32 6
  %403 = load i32, ptr %16, align 4, !tbaa !9
  %404 = zext i32 %403 to i64
  %405 = add i64 %404, 12
  %406 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %402, i64 noundef %405, i32 noundef %406)
  %407 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %407, ptr %16, align 4, !tbaa !9
  %408 = load ptr, ptr %6, align 8, !tbaa !5
  %409 = getelementptr inbounds %struct.w2c_hermes, ptr %408, i32 0, i32 6
  %410 = load i32, ptr %16, align 4, !tbaa !9
  %411 = zext i32 %410 to i64
  %412 = add i64 %411, 11
  %413 = call i32 @i32_load8_s(ptr noundef %409, i64 noundef %412)
  store i32 %413, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  %414 = load i32, ptr %16, align 4, !tbaa !9
  %415 = load i32, ptr %17, align 4, !tbaa !9
  %416 = icmp slt i32 %414, %415
  %417 = zext i1 %416 to i32
  store i32 %417, ptr %16, align 4, !tbaa !9
  %418 = load i32, ptr %16, align 4, !tbaa !9
  %419 = icmp ne i32 %418, 0
  br i1 %419, label %420, label %429

420:                                              ; preds = %398
  %421 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %421, ptr %16, align 4, !tbaa !9
  %422 = load ptr, ptr %6, align 8, !tbaa !5
  %423 = getelementptr inbounds %struct.w2c_hermes, ptr %422, i32 0, i32 6
  %424 = load i32, ptr %16, align 4, !tbaa !9
  %425 = zext i32 %424 to i64
  %426 = call i32 @i32_load(ptr noundef %423, i64 noundef %425)
  store i32 %426, ptr %16, align 4, !tbaa !9
  %427 = load ptr, ptr %6, align 8, !tbaa !5
  %428 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %427, i32 noundef %428)
  br label %429

429:                                              ; preds = %420, %398
  %430 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %430, ptr %16, align 4, !tbaa !9
  store i32 32, ptr %17, align 4, !tbaa !9
  %431 = load i32, ptr %17, align 4, !tbaa !9
  %432 = load i32, ptr %16, align 4, !tbaa !9
  %433 = add i32 %432, %431
  store i32 %433, ptr %16, align 4, !tbaa !9
  %434 = load i32, ptr %16, align 4, !tbaa !9
  %435 = load ptr, ptr %6, align 8, !tbaa !5
  %436 = getelementptr inbounds %struct.w2c_hermes, ptr %435, i32 0, i32 3
  store i32 %434, ptr %436, align 8, !tbaa !13
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %457

437:                                              ; preds = %93
  %438 = load ptr, ptr %6, align 8, !tbaa !5
  call void @w2c_hermes_abort(ptr noundef %438)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

439:                                              ; preds = %261
  store i32 0, ptr %16, align 4, !tbaa !9
  %440 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %440, ptr %11, align 4, !tbaa !9
  store i32 207072, ptr %17, align 4, !tbaa !9
  %441 = load i32, ptr %17, align 4, !tbaa !9
  %442 = load i32, ptr %16, align 4, !tbaa !9
  %443 = add i32 %442, %441
  store i32 %443, ptr %16, align 4, !tbaa !9
  %444 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %444, ptr %17, align 4, !tbaa !9
  store i32 84288, ptr %18, align 4, !tbaa !9
  %445 = load i32, ptr %18, align 4, !tbaa !9
  %446 = load i32, ptr %17, align 4, !tbaa !9
  %447 = add i32 %446, %445
  store i32 %447, ptr %17, align 4, !tbaa !9
  store i32 1197, ptr %18, align 4, !tbaa !9
  %448 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %448, ptr %19, align 4, !tbaa !9
  store i32 69070, ptr %20, align 4, !tbaa !9
  %449 = load i32, ptr %20, align 4, !tbaa !9
  %450 = load i32, ptr %19, align 4, !tbaa !9
  %451 = add i32 %450, %449
  store i32 %451, ptr %19, align 4, !tbaa !9
  %452 = load ptr, ptr %6, align 8, !tbaa !5
  %453 = load i32, ptr %16, align 4, !tbaa !9
  %454 = load i32, ptr %17, align 4, !tbaa !9
  %455 = load i32, ptr %18, align 4, !tbaa !9
  %456 = load i32, ptr %19, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %452, i32 noundef %453, i32 noundef %454, i32 noundef %455, i32 noundef %456)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

457:                                              ; preds = %429
  %458 = load i32, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, 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
  ret i32 %458
}

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

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

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

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

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


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

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

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

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

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

declare void @w2c_hermes_abort(ptr noundef) local_unnamed_addr #3

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @w2c_hermes_llvh0x3A0x3Acl0x3A0x3Aopt0x3Cstd0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x2C0x20true0x2C0x20llvh0x3A0x3Acl0x3A0x3Aparser0x3Cstd0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3E0x3E0x3A0x3AhandleOccurrence0x28unsigned0x20int0x2C0x20llvh0x3A0x3AStringRef0x2C0x20llvh0x3A0x3AStringRef0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #1 {
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = add i32 %7, -32
  store i32 %8, ptr %6, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = zext i32 %8 to i64
  %11 = add nuw nsw i64 %10, 8
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %11, i32 noundef 0)
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %10, i64 noundef 0)
  %12 = zext i32 %4 to i64
  %13 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %12)
  %14 = trunc i64 %13 to i32
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %15, label %18

15:                                               ; preds = %5
  %16 = add nuw nsw i64 %10, 24
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %16, i32 noundef 0)
  %17 = add nuw nsw i64 %10, 16
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %17, i64 noundef 0)
  br label %46

18:                                               ; preds = %5
  %19 = lshr i64 %13, 32
  %20 = trunc nuw i64 %19 to i32
  %21 = icmp ugt i64 %13, 9223371968135299071
  br i1 %21, label %88, label %22

22:                                               ; preds = %18
  %23 = icmp ugt i64 %13, 47244640255
  br i1 %23, label %24, label %33

24:                                               ; preds = %22
  %25 = or i32 %20, 15
  %26 = add nuw i32 %25, 1
  %27 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef %26)
  %28 = or i32 %26, -2147483648
  %29 = add nuw nsw i64 %10, 24
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %29, i32 noundef %28)
  %30 = add nuw nsw i64 %10, 16
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %30, i32 noundef %27)
  %31 = add nuw nsw i64 %10, 20
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %31, i32 noundef %20)
  %32 = add i32 %27, %20
  br label %37

33:                                               ; preds = %22
  %34 = add nuw nsw i64 %10, 27
  tail call void @i64_store8(ptr noundef nonnull %9, i64 noundef %34, i64 noundef %19)
  %35 = add i32 %7, -16
  %36 = add i32 %35, %20
  %.not245 = icmp ult i64 %13, 4294967296
  br i1 %.not245, label %39, label %37

37:                                               ; preds = %33, %24
  %.0241 = phi i32 [ %27, %24 ], [ %35, %33 ]
  %.0 = phi i32 [ %32, %24 ], [ %36, %33 ]
  %38 = tail call i32 @w2c_hermes_memmove(ptr noundef nonnull %0, i32 noundef %.0241, i32 noundef %14, i32 noundef %20)
  br label %39

39:                                               ; preds = %33, %37
  %.1 = phi i32 [ %.0, %37 ], [ %36, %33 ]
  %40 = zext i32 %.1 to i64
  tail call void @i32_store8(ptr noundef nonnull %9, i64 noundef %40, i32 noundef 0)
  %41 = add nuw nsw i64 %10, 11
  %42 = tail call i32 @i32_load8_s(ptr noundef nonnull %9, i64 noundef %41)
  %43 = icmp sgt i32 %42, -1
  br i1 %43, label %46, label %44

44:                                               ; preds = %39
  %45 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %10)
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef nonnull %0, i32 noundef %45)
  br label %46

46:                                               ; preds = %39, %44, %15
  %47 = add nuw nsw i64 %10, 24
  %48 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %47)
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %11, i32 noundef %48)
  %49 = add nuw nsw i64 %10, 16
  %50 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %49)
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %10, i64 noundef %50)
  %51 = zext i32 %1 to i64
  %52 = add nuw nsw i64 %51, 88
  %53 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %52)
  %.not246 = icmp eq i32 %53, 0
  br i1 %.not246, label %89, label %54

54:                                               ; preds = %46
  %55 = icmp eq i32 %53, %8
  %.pre = add nuw nsw i64 %10, 11
  br i1 %55, label %._crit_edge, label %56

56:                                               ; preds = %54
  %57 = tail call i32 @i32_load8_u(ptr noundef nonnull %9, i64 noundef %.pre)
  %sext = shl i32 %57, 24
  %58 = ashr exact i32 %sext, 24
  %59 = zext i32 %53 to i64
  %60 = add nuw nsw i64 %59, 11
  %61 = tail call i32 @i32_load8_s(ptr noundef nonnull %9, i64 noundef %60)
  %62 = icmp sgt i32 %61, -1
  br i1 %62, label %63, label %74

63:                                               ; preds = %56
  %64 = icmp sgt i32 %58, -1
  br i1 %64, label %65, label %69

65:                                               ; preds = %63
  %66 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %10)
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %59, i64 noundef %66)
  %67 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %11)
  %68 = add nuw nsw i64 %59, 8
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %68, i32 noundef %67)
  br label %._crit_edge

69:                                               ; preds = %63
  %70 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %10)
  %71 = add nuw nsw i64 %10, 4
  %72 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %71)
  %73 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x260x20std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3A_0x5Fassign_no_alias0x3Ctrue0x3E0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef %53, i32 noundef %70, i32 noundef %72) #4
  br label %._crit_edge

74:                                               ; preds = %56
  %75 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %10)
  %76 = icmp slt i32 %58, 0
  %77 = select i1 %76, i32 %75, i32 %8
  %78 = add nuw nsw i64 %10, 4
  %79 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %78)
  %80 = select i1 %76, i32 %79, i32 %57
  %81 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x260x20std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3A_0x5Fassign_no_alias0x3Cfalse0x3E0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef %53, i32 noundef %77, i32 noundef %80) #4
  br label %._crit_edge

._crit_edge:                                      ; preds = %54, %74, %69, %65
  %82 = add nuw nsw i64 %51, 12
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %82, i32 noundef %2)
  %83 = tail call i32 @i32_load8_s(ptr noundef nonnull %9, i64 noundef %.pre)
  %84 = icmp slt i32 %83, 0
  br i1 %84, label %85, label %87

85:                                               ; preds = %._crit_edge
  %86 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %10)
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef nonnull %0, i32 noundef %86)
  br label %87

87:                                               ; preds = %85, %._crit_edge
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret i32 0

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

89:                                               ; preds = %46
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 207072, i32 noundef 84288, i32 noundef 1197, i32 noundef 69070) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

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

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

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