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

; 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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 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) #2

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AStringBuilder0x3A0x3AgetStringPrimitive0x280x290x20const(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 i64, align 8
  %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 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 8, ptr %9) #5
  store i64 0, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  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 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %17 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %17, ptr %10, align 4, !tbaa !9
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.w2c_hermes, ptr %18, i32 0, i32 6
  %20 = load i32, ptr %10, align 4, !tbaa !9
  %21 = zext i32 %20 to i64
  %22 = add i64 %21, 4
  %23 = call i32 @i32_load(ptr noundef %19, i64 noundef %22)
  store i32 %23, ptr %10, align 4, !tbaa !9
  %24 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %24, ptr %8, align 4, !tbaa !9
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.w2c_hermes, ptr %25, i32 0, i32 6
  %27 = load i32, ptr %10, align 4, !tbaa !9
  %28 = zext i32 %27 to i64
  %29 = call i64 @i64_load(ptr noundef %26, i64 noundef %28)
  store i64 %29, ptr %15, align 8, !tbaa !11
  %30 = load i64, ptr %15, align 8, !tbaa !11
  store i64 %30, ptr %9, align 8, !tbaa !11
  store i64 48, ptr %16, align 8, !tbaa !11
  %31 = load i64, ptr %15, align 8, !tbaa !11
  %32 = load i64, ptr %16, align 8, !tbaa !11
  %33 = and i64 %32, 63
  %34 = ashr i64 %31, %33
  store i64 %34, ptr %15, align 8, !tbaa !11
  %35 = load i64, ptr %15, align 8, !tbaa !11
  %36 = trunc i64 %35 to i32
  store i32 %36, ptr %10, align 4, !tbaa !9
  store i32 -3, ptr %11, align 4, !tbaa !9
  %37 = load i32, ptr %10, align 4, !tbaa !9
  %38 = load i32, ptr %11, align 4, !tbaa !9
  %39 = icmp eq i32 %37, %38
  %40 = zext i1 %39 to i32
  store i32 %40, ptr %10, align 4, !tbaa !9
  %41 = load i32, ptr %10, align 4, !tbaa !9
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %43, label %148

43:                                               ; preds = %3
  %44 = load i64, ptr %9, align 8, !tbaa !11
  store i64 %44, ptr %15, align 8, !tbaa !11
  store i64 -844424930131969, ptr %16, align 8, !tbaa !11
  %45 = load i64, ptr %15, align 8, !tbaa !11
  %46 = load i64, ptr %16, align 8, !tbaa !11
  %47 = icmp ule i64 %45, %46
  %48 = zext i1 %47 to i32
  store i32 %48, ptr %10, align 4, !tbaa !9
  %49 = load i32, ptr %10, align 4, !tbaa !9
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %52

51:                                               ; preds = %43
  br label %166

52:                                               ; preds = %43
  %53 = load i64, ptr %9, align 8, !tbaa !11
  store i64 %53, ptr %15, align 8, !tbaa !11
  %54 = load i64, ptr %15, align 8, !tbaa !11
  %55 = trunc i64 %54 to i32
  store i32 %55, ptr %10, align 4, !tbaa !9
  %56 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %56, ptr %7, align 4, !tbaa !9
  %57 = load i32, ptr %10, align 4, !tbaa !9
  %58 = icmp ne i32 %57, 0
  %59 = xor i1 %58, true
  %60 = zext i1 %59 to i32
  store i32 %60, ptr %10, align 4, !tbaa !9
  %61 = load i32, ptr %10, align 4, !tbaa !9
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %64

63:                                               ; preds = %52
  br label %184

64:                                               ; preds = %52
  %65 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %65, ptr %10, align 4, !tbaa !9
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.w2c_hermes, ptr %66, i32 0, i32 6
  %68 = load i32, ptr %10, align 4, !tbaa !9
  %69 = zext i32 %68 to i64
  %70 = add i64 %69, 8
  %71 = call i32 @i32_load(ptr noundef %67, i64 noundef %70)
  store i32 %71, ptr %10, align 4, !tbaa !9
  %72 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %72, ptr %11, align 4, !tbaa !9
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.w2c_hermes, ptr %73, i32 0, i32 6
  %75 = load i32, ptr %11, align 4, !tbaa !9
  %76 = zext i32 %75 to i64
  %77 = add i64 %76, 12
  %78 = call i32 @i32_load(ptr noundef %74, i64 noundef %77)
  store i32 %78, ptr %11, align 4, !tbaa !9
  store i32 2147483647, ptr %12, align 4, !tbaa !9
  %79 = load i32, ptr %12, align 4, !tbaa !9
  %80 = load i32, ptr %11, align 4, !tbaa !9
  %81 = and i32 %80, %79
  store i32 %81, ptr %11, align 4, !tbaa !9
  %82 = load i32, ptr %10, align 4, !tbaa !9
  %83 = load i32, ptr %11, align 4, !tbaa !9
  %84 = icmp ne i32 %82, %83
  %85 = zext i1 %84 to i32
  store i32 %85, ptr %10, align 4, !tbaa !9
  %86 = load i32, ptr %10, align 4, !tbaa !9
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %89

88:                                               ; preds = %64
  br label %202

89:                                               ; preds = %64
  %90 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %90, ptr %10, 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 %10, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = call i32 @i32_load(ptr noundef %92, i64 noundef %94)
  store i32 %95, ptr %10, align 4, !tbaa !9
  store i32 50331648, ptr %11, align 4, !tbaa !9
  %96 = load i32, ptr %11, align 4, !tbaa !9
  %97 = load i32, ptr %10, align 4, !tbaa !9
  %98 = sub i32 %97, %96
  store i32 %98, ptr %10, align 4, !tbaa !9
  store i32 134217728, ptr %11, align 4, !tbaa !9
  %99 = load i32, ptr %10, align 4, !tbaa !9
  %100 = load i32, ptr %11, align 4, !tbaa !9
  %101 = icmp uge i32 %99, %100
  %102 = zext i1 %101 to i32
  store i32 %102, ptr %10, align 4, !tbaa !9
  %103 = load i32, ptr %10, align 4, !tbaa !9
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %106

105:                                              ; preds = %89
  br label %220

106:                                              ; preds = %89
  %107 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %107, ptr %10, align 4, !tbaa !9
  %108 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %108, ptr %11, align 4, !tbaa !9
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.w2c_hermes, ptr %109, i32 0, i32 6
  %111 = load i32, ptr %10, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = add i64 %112, 4
  %114 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %110, i64 noundef %113, i32 noundef %114)
  %115 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %115, ptr %10, align 4, !tbaa !9
  %116 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %116, ptr %11, align 4, !tbaa !9
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.w2c_hermes, ptr %117, i32 0, i32 6
  %119 = load i32, ptr %11, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = call i32 @i32_load(ptr noundef %118, i64 noundef %120)
  store i32 %121, ptr %11, align 4, !tbaa !9
  %122 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %122, ptr %6, align 4, !tbaa !9
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.w2c_hermes, ptr %123, i32 0, i32 6
  %125 = load i32, ptr %10, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %124, i64 noundef %126, i32 noundef %127)
  %128 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %128, ptr %10, align 4, !tbaa !9
  %129 = load i32, ptr %10, align 4, !tbaa !9
  %130 = icmp ne i32 %129, 0
  br i1 %130, label %131, label %147

131:                                              ; preds = %106
  %132 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %132, ptr %10, align 4, !tbaa !9
  %133 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %133, ptr %11, align 4, !tbaa !9
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.w2c_hermes, ptr %134, i32 0, i32 6
  %136 = load i32, ptr %11, align 4, !tbaa !9
  %137 = zext i32 %136 to i64
  %138 = call i32 @i32_load(ptr noundef %135, i64 noundef %137)
  store i32 %138, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %139 = load i32, ptr %12, align 4, !tbaa !9
  %140 = load i32, ptr %11, align 4, !tbaa !9
  %141 = add i32 %140, %139
  store i32 %141, ptr %11, align 4, !tbaa !9
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.w2c_hermes, ptr %142, i32 0, i32 6
  %144 = load i32, ptr %10, align 4, !tbaa !9
  %145 = zext i32 %144 to i64
  %146 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %143, i64 noundef %145, i32 noundef %146)
  br label %147

147:                                              ; preds = %131, %106
  br label %238

148:                                              ; preds = %3
  store i32 0, ptr %10, align 4, !tbaa !9
  %149 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %149, ptr %6, align 4, !tbaa !9
  store i32 118502, ptr %11, align 4, !tbaa !9
  %150 = load i32, ptr %11, align 4, !tbaa !9
  %151 = load i32, ptr %10, align 4, !tbaa !9
  %152 = add i32 %151, %150
  store i32 %152, ptr %10, align 4, !tbaa !9
  %153 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %153, ptr %11, align 4, !tbaa !9
  store i32 83341, ptr %12, align 4, !tbaa !9
  %154 = load i32, ptr %12, align 4, !tbaa !9
  %155 = load i32, ptr %11, align 4, !tbaa !9
  %156 = add i32 %155, %154
  store i32 %156, ptr %11, align 4, !tbaa !9
  store i32 470, ptr %12, align 4, !tbaa !9
  %157 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %157, ptr %13, align 4, !tbaa !9
  store i32 87089, ptr %14, align 4, !tbaa !9
  %158 = load i32, ptr %14, align 4, !tbaa !9
  %159 = load i32, ptr %13, align 4, !tbaa !9
  %160 = add i32 %159, %158
  store i32 %160, ptr %13, align 4, !tbaa !9
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = load i32, ptr %10, align 4, !tbaa !9
  %163 = load i32, ptr %11, align 4, !tbaa !9
  %164 = load i32, ptr %12, align 4, !tbaa !9
  %165 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %161, i32 noundef %162, i32 noundef %163, i32 noundef %164, i32 noundef %165)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

166:                                              ; preds = %51
  store i32 0, ptr %10, align 4, !tbaa !9
  %167 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %167, ptr %6, align 4, !tbaa !9
  store i32 118273, ptr %11, align 4, !tbaa !9
  %168 = load i32, ptr %11, align 4, !tbaa !9
  %169 = load i32, ptr %10, align 4, !tbaa !9
  %170 = add i32 %169, %168
  store i32 %170, ptr %10, align 4, !tbaa !9
  %171 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %171, ptr %11, align 4, !tbaa !9
  store i32 83341, ptr %12, align 4, !tbaa !9
  %172 = load i32, ptr %12, align 4, !tbaa !9
  %173 = load i32, ptr %11, align 4, !tbaa !9
  %174 = add i32 %173, %172
  store i32 %174, ptr %11, align 4, !tbaa !9
  store i32 438, ptr %12, align 4, !tbaa !9
  %175 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %175, ptr %13, align 4, !tbaa !9
  store i32 49706, ptr %14, align 4, !tbaa !9
  %176 = load i32, ptr %14, align 4, !tbaa !9
  %177 = load i32, ptr %13, align 4, !tbaa !9
  %178 = add i32 %177, %176
  store i32 %178, ptr %13, align 4, !tbaa !9
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = load i32, ptr %10, align 4, !tbaa !9
  %181 = load i32, ptr %11, align 4, !tbaa !9
  %182 = load i32, ptr %12, align 4, !tbaa !9
  %183 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %179, i32 noundef %180, i32 noundef %181, i32 noundef %182, i32 noundef %183)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

184:                                              ; preds = %63
  store i32 0, ptr %10, align 4, !tbaa !9
  %185 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %185, ptr %6, align 4, !tbaa !9
  store i32 168498, ptr %11, align 4, !tbaa !9
  %186 = load i32, ptr %11, align 4, !tbaa !9
  %187 = load i32, ptr %10, align 4, !tbaa !9
  %188 = add i32 %187, %186
  store i32 %188, ptr %10, align 4, !tbaa !9
  %189 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %189, ptr %11, align 4, !tbaa !9
  store i32 78081, ptr %12, align 4, !tbaa !9
  %190 = load i32, ptr %12, align 4, !tbaa !9
  %191 = load i32, ptr %11, align 4, !tbaa !9
  %192 = add i32 %191, %190
  store i32 %192, ptr %11, align 4, !tbaa !9
  store i32 233, ptr %12, align 4, !tbaa !9
  %193 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %193, ptr %13, align 4, !tbaa !9
  store i32 20456, ptr %14, align 4, !tbaa !9
  %194 = load i32, ptr %14, align 4, !tbaa !9
  %195 = load i32, ptr %13, align 4, !tbaa !9
  %196 = add i32 %195, %194
  store i32 %196, ptr %13, align 4, !tbaa !9
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = load i32, ptr %10, align 4, !tbaa !9
  %199 = load i32, ptr %11, align 4, !tbaa !9
  %200 = load i32, ptr %12, align 4, !tbaa !9
  %201 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %197, i32 noundef %198, i32 noundef %199, i32 noundef %200, i32 noundef %201)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

202:                                              ; preds = %88
  store i32 0, ptr %10, align 4, !tbaa !9
  %203 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %203, ptr %6, align 4, !tbaa !9
  store i32 190373, ptr %11, align 4, !tbaa !9
  %204 = load i32, ptr %11, align 4, !tbaa !9
  %205 = load i32, ptr %10, align 4, !tbaa !9
  %206 = add i32 %205, %204
  store i32 %206, ptr %10, align 4, !tbaa !9
  %207 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %207, ptr %11, align 4, !tbaa !9
  store i32 80781, ptr %12, align 4, !tbaa !9
  %208 = load i32, ptr %12, align 4, !tbaa !9
  %209 = load i32, ptr %11, align 4, !tbaa !9
  %210 = add i32 %209, %208
  store i32 %210, ptr %11, align 4, !tbaa !9
  store i32 162, ptr %12, align 4, !tbaa !9
  %211 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %211, ptr %13, align 4, !tbaa !9
  store i32 89310, ptr %14, align 4, !tbaa !9
  %212 = load i32, ptr %14, align 4, !tbaa !9
  %213 = load i32, ptr %13, align 4, !tbaa !9
  %214 = add i32 %213, %212
  store i32 %214, ptr %13, align 4, !tbaa !9
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = load i32, ptr %10, align 4, !tbaa !9
  %217 = load i32, ptr %11, align 4, !tbaa !9
  %218 = load i32, ptr %12, align 4, !tbaa !9
  %219 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %215, i32 noundef %216, i32 noundef %217, i32 noundef %218, i32 noundef %219)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

220:                                              ; preds = %105
  store i32 0, ptr %10, align 4, !tbaa !9
  %221 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %221, ptr %6, align 4, !tbaa !9
  store i32 205012, ptr %11, align 4, !tbaa !9
  %222 = load i32, ptr %11, align 4, !tbaa !9
  %223 = load i32, ptr %10, align 4, !tbaa !9
  %224 = add i32 %223, %222
  store i32 %224, ptr %10, align 4, !tbaa !9
  %225 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %225, ptr %11, align 4, !tbaa !9
  store i32 82611, ptr %12, align 4, !tbaa !9
  %226 = load i32, ptr %12, align 4, !tbaa !9
  %227 = load i32, ptr %11, align 4, !tbaa !9
  %228 = add i32 %227, %226
  store i32 %228, ptr %11, align 4, !tbaa !9
  store i32 255, ptr %12, align 4, !tbaa !9
  %229 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %229, ptr %13, align 4, !tbaa !9
  store i32 24720, ptr %14, align 4, !tbaa !9
  %230 = load i32, ptr %14, align 4, !tbaa !9
  %231 = load i32, ptr %13, align 4, !tbaa !9
  %232 = add i32 %231, %230
  store i32 %232, ptr %13, align 4, !tbaa !9
  %233 = load ptr, ptr %4, align 8, !tbaa !5
  %234 = load i32, ptr %10, align 4, !tbaa !9
  %235 = load i32, ptr %11, align 4, !tbaa !9
  %236 = load i32, ptr %12, align 4, !tbaa !9
  %237 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %233, i32 noundef %234, i32 noundef %235, i32 noundef %236, i32 noundef %237)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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}


; 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: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #0

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 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 #1

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AStringBuilder0x3A0x3AgetStringPrimitive0x280x290x20const(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %0, i64 40
  %5 = zext i32 %2 to i64
  %6 = add nuw nsw i64 %5, 4
  %7 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %6)
  %8 = zext i32 %7 to i64
  %9 = tail call i64 @i64_load(ptr noundef nonnull %4, i64 noundef %8)
  %.mask = and i64 %9, -281474976710656
  %10 = icmp eq i64 %.mask, -844424930131968
  br i1 %10, label %11, label %31

11:                                               ; preds = %3
  %12 = and i64 %9, 4294967295
  %.not = icmp eq i64 %12, 0
  br i1 %.not, label %32, label %13

13:                                               ; preds = %11
  %14 = add nuw nsw i64 %5, 8
  %15 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %14)
  %16 = add nuw nsw i64 %12, 12
  %17 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %16)
  %18 = and i32 %17, 2147483647
  %.not135 = icmp eq i32 %15, %18
  br i1 %.not135, label %19, label %33

19:                                               ; preds = %13
  %20 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %12)
  %21 = add i32 %20, -184549376
  %22 = icmp ult i32 %21, -134217728
  br i1 %22, label %34, label %23

23:                                               ; preds = %19
  %24 = zext i32 %1 to i64
  %25 = add nuw nsw i64 %24, 4
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %25, i32 noundef %7)
  %26 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %5)
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %24, i32 noundef %26)
  %.not136 = icmp eq i32 %26, 0
  br i1 %.not136, label %35, label %27

27:                                               ; preds = %23
  %28 = zext i32 %26 to i64
  %29 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %28)
  %30 = add i32 %29, 1
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %28, i32 noundef %30)
  br label %35

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

32:                                               ; preds = %11
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 168498, i32 noundef 78081, i32 noundef 233, i32 noundef 20456) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

33:                                               ; preds = %13
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 190373, i32 noundef 80781, i32 noundef 162, i32 noundef 89310) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

34:                                               ; preds = %19
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 205012, i32 noundef 82611, i32 noundef 255, i32 noundef 24720) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

35:                                               ; preds = %23, %27
  ret void
}

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass