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

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

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

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

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

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

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

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

61:                                               ; preds = %3
  %62 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %62, ptr %19, align 8, !tbaa !11
  store i64 -844424930131969, ptr %20, align 8, !tbaa !11
  %63 = load i64, ptr %19, align 8, !tbaa !11
  %64 = load i64, ptr %20, align 8, !tbaa !11
  %65 = icmp ule i64 %63, %64
  %66 = zext i1 %65 to i32
  store i32 %66, ptr %13, align 4, !tbaa !9
  %67 = load i32, ptr %13, align 4, !tbaa !9
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %69, label %70

69:                                               ; preds = %61
  br label %259

70:                                               ; preds = %61
  %71 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %71, ptr %19, align 8, !tbaa !11
  %72 = load i64, ptr %19, align 8, !tbaa !11
  %73 = trunc i64 %72 to i32
  store i32 %73, ptr %13, align 4, !tbaa !9
  %74 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %74, ptr %8, align 4, !tbaa !9
  %75 = load i32, ptr %13, align 4, !tbaa !9
  %76 = icmp ne i32 %75, 0
  %77 = xor i1 %76, true
  %78 = zext i1 %77 to i32
  store i32 %78, ptr %13, align 4, !tbaa !9
  %79 = load i32, ptr %13, align 4, !tbaa !9
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %82

81:                                               ; preds = %70
  br label %277

82:                                               ; preds = %70
  %83 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %83, ptr %13, align 4, !tbaa !9
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.w2c_hermes, ptr %84, i32 0, i32 6
  %86 = load i32, ptr %13, align 4, !tbaa !9
  %87 = zext i32 %86 to i64
  %88 = add i64 %87, 4
  %89 = call i32 @i32_load(ptr noundef %85, i64 noundef %88)
  store i32 %89, ptr %13, align 4, !tbaa !9
  %90 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %90, ptr %14, align 4, !tbaa !9
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.w2c_hermes, ptr %91, i32 0, i32 6
  %93 = load i32, ptr %14, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = add i64 %94, 8
  %96 = call i32 @i32_load(ptr noundef %92, i64 noundef %95)
  store i32 %96, ptr %14, align 4, !tbaa !9
  %97 = load i32, ptr %14, align 4, !tbaa !9
  %98 = load i32, ptr %13, align 4, !tbaa !9
  %99 = sub i32 %98, %97
  store i32 %99, ptr %13, align 4, !tbaa !9
  %100 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %100, ptr %9, align 4, !tbaa !9
  %101 = load i32, ptr %13, align 4, !tbaa !9
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %233

103:                                              ; preds = %82
  %104 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %104, ptr %13, align 4, !tbaa !9
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.w2c_hermes, ptr %105, i32 0, i32 6
  %107 = load i32, ptr %13, align 4, !tbaa !9
  %108 = zext i32 %107 to i64
  %109 = add i64 %108, 12
  %110 = call i32 @i32_load(ptr noundef %106, i64 noundef %109)
  store i32 %110, ptr %13, align 4, !tbaa !9
  store i32 2147483647, ptr %14, align 4, !tbaa !9
  %111 = load i32, ptr %14, align 4, !tbaa !9
  %112 = load i32, ptr %13, align 4, !tbaa !9
  %113 = and i32 %112, %111
  store i32 %113, ptr %13, align 4, !tbaa !9
  %114 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %114, ptr %10, align 4, !tbaa !9
  br label %115

115:                                              ; preds = %231, %103
  %116 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %116, ptr %13, align 4, !tbaa !9
  %117 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %117, ptr %14, align 4, !tbaa !9
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.w2c_hermes, ptr %118, i32 0, i32 6
  %120 = load i32, ptr %14, align 4, !tbaa !9
  %121 = zext i32 %120 to i64
  %122 = call i32 @i32_load(ptr noundef %119, i64 noundef %121)
  store i32 %122, ptr %14, align 4, !tbaa !9
  %123 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %123, ptr %8, align 4, !tbaa !9
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.w2c_hermes, ptr %124, i32 0, i32 6
  %126 = load i32, ptr %14, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = add i64 %127, 4
  %129 = call i32 @i32_load(ptr noundef %125, i64 noundef %128)
  store i32 %129, ptr %14, align 4, !tbaa !9
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.w2c_hermes, ptr %130, i32 0, i32 6
  %132 = load i32, ptr %13, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = add i64 %133, 12
  %135 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %131, i64 noundef %134, i32 noundef %135)
  %136 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %136, ptr %13, align 4, !tbaa !9
  %137 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %137, ptr %14, align 4, !tbaa !9
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.w2c_hermes, ptr %138, i32 0, i32 6
  %140 = load i32, ptr %14, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = call i32 @i32_load(ptr noundef %139, i64 noundef %141)
  store i32 %142, ptr %14, align 4, !tbaa !9
  %143 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %143, ptr %8, align 4, !tbaa !9
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.w2c_hermes, ptr %144, i32 0, i32 6
  %146 = load i32, ptr %13, align 4, !tbaa !9
  %147 = zext i32 %146 to i64
  %148 = add i64 %147, 8
  %149 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %145, i64 noundef %148, i32 noundef %149)
  %150 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %150, ptr %13, align 4, !tbaa !9
  %151 = load i32, ptr %13, align 4, !tbaa !9
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %153, label %169

153:                                              ; preds = %115
  %154 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %154, ptr %13, align 4, !tbaa !9
  %155 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %155, ptr %14, align 4, !tbaa !9
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.w2c_hermes, ptr %156, i32 0, i32 6
  %158 = load i32, ptr %14, align 4, !tbaa !9
  %159 = zext i32 %158 to i64
  %160 = call i32 @i32_load(ptr noundef %157, i64 noundef %159)
  store i32 %160, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %161 = load i32, ptr %15, align 4, !tbaa !9
  %162 = load i32, ptr %14, align 4, !tbaa !9
  %163 = add i32 %162, %161
  store i32 %163, ptr %14, align 4, !tbaa !9
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.w2c_hermes, ptr %164, i32 0, i32 6
  %166 = load i32, ptr %13, align 4, !tbaa !9
  %167 = zext i32 %166 to i64
  %168 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %165, i64 noundef %167, i32 noundef %168)
  br label %169

169:                                              ; preds = %153, %115
  %170 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %170, ptr %13, align 4, !tbaa !9
  %171 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %171, ptr %14, align 4, !tbaa !9
  store i32 8, ptr %15, align 4, !tbaa !9
  %172 = load i32, ptr %15, align 4, !tbaa !9
  %173 = load i32, ptr %14, align 4, !tbaa !9
  %174 = add i32 %173, %172
  store i32 %174, ptr %14, align 4, !tbaa !9
  %175 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %175, ptr %15, align 4, !tbaa !9
  %176 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %176, ptr %16, align 4, !tbaa !9
  %177 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %177, ptr %17, align 4, !tbaa !9
  %178 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %178, ptr %18, align 4, !tbaa !9
  %179 = load i32, ptr %17, align 4, !tbaa !9
  %180 = load i32, ptr %18, align 4, !tbaa !9
  %181 = icmp ugt i32 %179, %180
  %182 = zext i1 %181 to i32
  store i32 %182, ptr %17, align 4, !tbaa !9
  %183 = load i32, ptr %17, align 4, !tbaa !9
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %187

185:                                              ; preds = %169
  %186 = load i32, ptr %15, align 4, !tbaa !9
  br label %189

187:                                              ; preds = %169
  %188 = load i32, ptr %16, align 4, !tbaa !9
  br label %189

189:                                              ; preds = %187, %185
  %190 = phi i32 [ %186, %185 ], [ %188, %187 ]
  store i32 %190, ptr %15, align 4, !tbaa !9
  %191 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %191, ptr %11, align 4, !tbaa !9
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = load i32, ptr %13, align 4, !tbaa !9
  %194 = load i32, ptr %14, align 4, !tbaa !9
  %195 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AStringBuilder0x3A0x3AappendStringPrim0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3E0x2C0x20unsigned0x20int0x29(ptr noundef %192, i32 noundef %193, i32 noundef %194, i32 noundef %195)
  %196 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %196, ptr %13, align 4, !tbaa !9
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.w2c_hermes, ptr %197, i32 0, i32 6
  %199 = load i32, ptr %13, align 4, !tbaa !9
  %200 = zext i32 %199 to i64
  %201 = add i64 %200, 8
  %202 = call i32 @i32_load(ptr noundef %198, i64 noundef %201)
  store i32 %202, ptr %13, align 4, !tbaa !9
  %203 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %203, ptr %8, align 4, !tbaa !9
  %204 = load i32, ptr %13, align 4, !tbaa !9
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %222

206:                                              ; preds = %189
  %207 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %207, ptr %13, align 4, !tbaa !9
  %208 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %208, ptr %14, align 4, !tbaa !9
  %209 = load ptr, ptr %4, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.w2c_hermes, ptr %209, i32 0, i32 6
  %211 = load i32, ptr %14, align 4, !tbaa !9
  %212 = zext i32 %211 to i64
  %213 = call i32 @i32_load(ptr noundef %210, i64 noundef %212)
  store i32 %213, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %214 = load i32, ptr %15, align 4, !tbaa !9
  %215 = load i32, ptr %14, align 4, !tbaa !9
  %216 = sub i32 %215, %214
  store i32 %216, ptr %14, align 4, !tbaa !9
  %217 = load ptr, ptr %4, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.w2c_hermes, ptr %217, i32 0, i32 6
  %219 = load i32, ptr %13, align 4, !tbaa !9
  %220 = zext i32 %219 to i64
  %221 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %218, i64 noundef %220, i32 noundef %221)
  br label %222

222:                                              ; preds = %206, %189
  %223 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %223, ptr %13, align 4, !tbaa !9
  %224 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %224, ptr %14, align 4, !tbaa !9
  %225 = load i32, ptr %14, align 4, !tbaa !9
  %226 = load i32, ptr %13, align 4, !tbaa !9
  %227 = sub i32 %226, %225
  store i32 %227, ptr %13, align 4, !tbaa !9
  %228 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %228, ptr %9, align 4, !tbaa !9
  %229 = load i32, ptr %13, align 4, !tbaa !9
  %230 = icmp ne i32 %229, 0
  br i1 %230, label %231, label %232

231:                                              ; preds = %222
  br label %115

232:                                              ; preds = %222
  br label %233

233:                                              ; preds = %232, %82
  %234 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %234, ptr %13, align 4, !tbaa !9
  store i32 16, ptr %14, align 4, !tbaa !9
  %235 = load i32, ptr %14, align 4, !tbaa !9
  %236 = load i32, ptr %13, align 4, !tbaa !9
  %237 = add i32 %236, %235
  store i32 %237, ptr %13, align 4, !tbaa !9
  %238 = load i32, ptr %13, align 4, !tbaa !9
  %239 = load ptr, ptr %4, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.w2c_hermes, ptr %239, i32 0, i32 3
  store i32 %238, ptr %240, align 8, !tbaa !13
  br label %295

241:                                              ; preds = %3
  store i32 0, ptr %13, align 4, !tbaa !9
  %242 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %242, ptr %7, align 4, !tbaa !9
  store i32 118502, ptr %14, align 4, !tbaa !9
  %243 = load i32, ptr %14, align 4, !tbaa !9
  %244 = load i32, ptr %13, align 4, !tbaa !9
  %245 = add i32 %244, %243
  store i32 %245, ptr %13, align 4, !tbaa !9
  %246 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %246, ptr %14, align 4, !tbaa !9
  store i32 83341, ptr %15, align 4, !tbaa !9
  %247 = load i32, ptr %15, align 4, !tbaa !9
  %248 = load i32, ptr %14, align 4, !tbaa !9
  %249 = add i32 %248, %247
  store i32 %249, ptr %14, align 4, !tbaa !9
  store i32 470, ptr %15, align 4, !tbaa !9
  %250 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %250, ptr %16, align 4, !tbaa !9
  store i32 87089, ptr %17, align 4, !tbaa !9
  %251 = load i32, ptr %17, align 4, !tbaa !9
  %252 = load i32, ptr %16, align 4, !tbaa !9
  %253 = add i32 %252, %251
  store i32 %253, ptr %16, align 4, !tbaa !9
  %254 = load ptr, ptr %4, align 8, !tbaa !5
  %255 = load i32, ptr %13, align 4, !tbaa !9
  %256 = load i32, ptr %14, align 4, !tbaa !9
  %257 = load i32, ptr %15, align 4, !tbaa !9
  %258 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %254, i32 noundef %255, i32 noundef %256, i32 noundef %257, i32 noundef %258)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

259:                                              ; preds = %69
  store i32 0, ptr %13, align 4, !tbaa !9
  %260 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %260, ptr %7, align 4, !tbaa !9
  store i32 118273, ptr %14, align 4, !tbaa !9
  %261 = load i32, ptr %14, align 4, !tbaa !9
  %262 = load i32, ptr %13, align 4, !tbaa !9
  %263 = add i32 %262, %261
  store i32 %263, ptr %13, align 4, !tbaa !9
  %264 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %264, ptr %14, align 4, !tbaa !9
  store i32 83341, ptr %15, align 4, !tbaa !9
  %265 = load i32, ptr %15, align 4, !tbaa !9
  %266 = load i32, ptr %14, align 4, !tbaa !9
  %267 = add i32 %266, %265
  store i32 %267, ptr %14, align 4, !tbaa !9
  store i32 438, ptr %15, align 4, !tbaa !9
  %268 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %268, ptr %16, align 4, !tbaa !9
  store i32 49706, ptr %17, align 4, !tbaa !9
  %269 = load i32, ptr %17, align 4, !tbaa !9
  %270 = load i32, ptr %16, align 4, !tbaa !9
  %271 = add i32 %270, %269
  store i32 %271, ptr %16, align 4, !tbaa !9
  %272 = load ptr, ptr %4, align 8, !tbaa !5
  %273 = load i32, ptr %13, align 4, !tbaa !9
  %274 = load i32, ptr %14, align 4, !tbaa !9
  %275 = load i32, ptr %15, align 4, !tbaa !9
  %276 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %272, i32 noundef %273, i32 noundef %274, i32 noundef %275, i32 noundef %276)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

277:                                              ; preds = %81
  store i32 0, ptr %13, align 4, !tbaa !9
  %278 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %278, ptr %7, align 4, !tbaa !9
  store i32 168498, ptr %14, align 4, !tbaa !9
  %279 = load i32, ptr %14, align 4, !tbaa !9
  %280 = load i32, ptr %13, align 4, !tbaa !9
  %281 = add i32 %280, %279
  store i32 %281, ptr %13, align 4, !tbaa !9
  %282 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %282, ptr %14, align 4, !tbaa !9
  store i32 78081, ptr %15, align 4, !tbaa !9
  %283 = load i32, ptr %15, align 4, !tbaa !9
  %284 = load i32, ptr %14, align 4, !tbaa !9
  %285 = add i32 %284, %283
  store i32 %285, ptr %14, align 4, !tbaa !9
  store i32 233, ptr %15, align 4, !tbaa !9
  %286 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %286, ptr %16, align 4, !tbaa !9
  store i32 20456, ptr %17, align 4, !tbaa !9
  %287 = load i32, ptr %17, align 4, !tbaa !9
  %288 = load i32, ptr %16, align 4, !tbaa !9
  %289 = add i32 %288, %287
  store i32 %289, ptr %16, align 4, !tbaa !9
  %290 = load ptr, ptr %4, align 8, !tbaa !5
  %291 = load i32, ptr %13, align 4, !tbaa !9
  %292 = load i32, ptr %14, align 4, !tbaa !9
  %293 = load i32, ptr %15, align 4, !tbaa !9
  %294 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %290, i32 noundef %291, i32 noundef %292, i32 noundef %293, i32 noundef %294)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

295:                                              ; preds = %233
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 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 8, 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 void
}

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AStringBuilder0x3A0x3AappendStringPrim0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3E0x2C0x20unsigned0x20int0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

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

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

; Function Attrs: noreturn
declare void @wasm_rt_trap(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 #2

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AstringPrototypePad0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x290x3A0x3A0x24_00x3A0x3Aoperator0x280x290x28hermes0x3A0x3Avm0x3A0x3AStringBuilder0x260x290x20const(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, -16
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = zext i32 %1 to i64
  %9 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %8)
  %10 = zext i32 %9 to i64
  %11 = add nuw nsw i64 %10, 4
  %12 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %11)
  %13 = zext i32 %12 to i64
  %14 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %13)
  %.mask = and i64 %14, -281474976710656
  %15 = icmp eq i64 %.mask, -844424930131968
  br i1 %15, label %16, label %51

16:                                               ; preds = %3
  %17 = and i64 %14, 4294967295
  %.not = icmp eq i64 %17, 0
  br i1 %.not, label %52, label %18

18:                                               ; preds = %16
  %19 = add nuw nsw i64 %8, 4
  %20 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %19)
  %21 = add nuw nsw i64 %8, 8
  %22 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %21)
  %23 = sub i32 %20, %22
  %.not163 = icmp eq i32 %23, 0
  br i1 %.not163, label %.loopexit, label %24

24:                                               ; preds = %18
  %25 = add nuw nsw i64 %17, 12
  %26 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %25)
  %27 = and i32 %26, 2147483647
  %28 = zext i32 %6 to i64
  %29 = add nuw nsw i64 %28, 12
  %30 = add nuw nsw i64 %28, 8
  %31 = add i32 %5, -8
  br label %32

32:                                               ; preds = %49, %24
  %.0 = phi i32 [ %23, %24 ], [ %50, %49 ]
  %33 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %8)
  %34 = zext i32 %33 to i64
  %35 = add nuw nsw i64 %34, 4
  %36 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %35)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %29, i32 noundef %36)
  %37 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %34)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %30, i32 noundef %37)
  %.not164 = icmp eq i32 %37, 0
  br i1 %.not164, label %42, label %38

38:                                               ; preds = %32
  %39 = zext i32 %37 to i64
  %40 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %39)
  %41 = add i32 %40, 1
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %39, i32 noundef %41)
  br label %42

42:                                               ; preds = %38, %32
  %43 = tail call i32 @llvm.umin.i32(i32 %.0, i32 %27)
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AStringBuilder0x3A0x3AappendStringPrim0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3E0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %2, i32 noundef %31, i32 noundef %43) #5
  %44 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %30)
  %.not165 = icmp eq i32 %44, 0
  br i1 %.not165, label %49, label %45

45:                                               ; preds = %42
  %46 = zext i32 %44 to i64
  %47 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %46)
  %48 = add i32 %47, -1
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %46, i32 noundef %48)
  br label %49

49:                                               ; preds = %45, %42
  %50 = sub i32 %.0, %43
  %.not166 = icmp eq i32 %50, 0
  br i1 %.not166, label %.loopexit, label %32

.loopexit:                                        ; preds = %49, %18
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret void

51:                                               ; preds = %3
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 118502, i32 noundef 83341, i32 noundef 470, i32 noundef 87089) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

52:                                               ; preds = %16
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 168498, i32 noundef 78081, i32 noundef 233, i32 noundef 20456) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable
}

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AStringBuilder0x3A0x3AappendStringPrim0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3E0x2C0x20unsigned0x20int0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #4

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass