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

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

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

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

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

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

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

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

; 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_load16_u(ptr noundef, i64 noundef) #1

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseSyntaxError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef, i32 noundef, i32 noundef) #3

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

39:                                               ; preds = %4
  br label %259

40:                                               ; preds = %4
  %41 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %41, ptr %12, align 4, !tbaa !9
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.w2c_hermes, ptr %42, i32 0, i32 6
  %44 = load i32, ptr %12, align 4, !tbaa !9
  %45 = zext i32 %44 to i64
  %46 = call i32 @i32_load(ptr noundef %43, i64 noundef %45)
  store i32 %46, ptr %12, align 4, !tbaa !9
  %47 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %47, ptr %10, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %257, %40
  %49 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %49, ptr %12, align 4, !tbaa !9
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.w2c_hermes, ptr %50, i32 0, i32 6
  %52 = load i32, ptr %12, align 4, !tbaa !9
  %53 = zext i32 %52 to i64
  %54 = add i64 %53, 4
  %55 = call i32 @i32_load(ptr noundef %51, i64 noundef %54)
  store i32 %55, ptr %12, align 4, !tbaa !9
  %56 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %56, ptr %13, align 4, !tbaa !9
  %57 = load i32, ptr %12, align 4, !tbaa !9
  %58 = load i32, ptr %13, align 4, !tbaa !9
  %59 = icmp eq i32 %57, %58
  %60 = zext i1 %59 to i32
  store i32 %60, ptr %12, align 4, !tbaa !9
  %61 = load i32, ptr %12, align 4, !tbaa !9
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %90

63:                                               ; preds = %48
  %64 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %64, ptr %12, align 4, !tbaa !9
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = load i32, ptr %12, align 4, !tbaa !9
  %67 = call i32 @w2c_hermes_hermes0x3A0x3AUTF16Stream0x3A0x3Arefill0x280x29(ptr noundef %65, i32 noundef %66)
  store i32 %67, ptr %12, align 4, !tbaa !9
  %68 = load i32, ptr %12, align 4, !tbaa !9
  %69 = icmp ne i32 %68, 0
  %70 = xor i1 %69, true
  %71 = zext i1 %70 to i32
  store i32 %71, ptr %12, align 4, !tbaa !9
  %72 = load i32, ptr %12, align 4, !tbaa !9
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %75

74:                                               ; preds = %63
  br label %155

75:                                               ; preds = %63
  %76 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %76, ptr %12, align 4, !tbaa !9
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.w2c_hermes, ptr %77, i32 0, i32 6
  %79 = load i32, ptr %12, align 4, !tbaa !9
  %80 = zext i32 %79 to i64
  %81 = call i32 @i32_load8_u(ptr noundef %78, i64 noundef %80)
  store i32 %81, ptr %12, align 4, !tbaa !9
  %82 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %82, ptr %11, align 4, !tbaa !9
  %83 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %83, ptr %12, align 4, !tbaa !9
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.w2c_hermes, ptr %84, i32 0, i32 6
  %86 = load i32, ptr %12, align 4, !tbaa !9
  %87 = zext i32 %86 to i64
  %88 = call i32 @i32_load(ptr noundef %85, i64 noundef %87)
  store i32 %88, ptr %12, align 4, !tbaa !9
  %89 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %89, ptr %10, align 4, !tbaa !9
  br label %90

90:                                               ; preds = %75, %48
  %91 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %91, ptr %12, align 4, !tbaa !9
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.w2c_hermes, ptr %92, i32 0, i32 6
  %94 = load i32, ptr %12, align 4, !tbaa !9
  %95 = zext i32 %94 to i64
  %96 = call i32 @i32_load16_u(ptr noundef %93, i64 noundef %95)
  store i32 %96, ptr %12, align 4, !tbaa !9
  %97 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %97, ptr %13, align 4, !tbaa !9
  %98 = load i32, ptr %13, align 4, !tbaa !9
  %99 = trunc i32 %98 to i8
  %100 = sext i8 %99 to i32
  store i32 %100, ptr %13, align 4, !tbaa !9
  %101 = load i32, ptr %12, align 4, !tbaa !9
  %102 = load i32, ptr %13, align 4, !tbaa !9
  %103 = icmp eq i32 %101, %102
  %104 = zext i1 %103 to i32
  store i32 %104, ptr %12, align 4, !tbaa !9
  %105 = load i32, ptr %12, align 4, !tbaa !9
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %108

107:                                              ; preds = %90
  br label %229

108:                                              ; preds = %90
  %109 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %109, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.w2c_hermes, ptr %110, i32 0, i32 6
  %112 = load i32, ptr %12, align 4, !tbaa !9
  %113 = zext i32 %112 to i64
  %114 = add i64 %113, 40
  %115 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %111, i64 noundef %114, i32 noundef %115)
  %116 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %116, ptr %12, align 4, !tbaa !9
  store i64 94489280513, ptr %15, align 8, !tbaa !17
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.w2c_hermes, ptr %117, i32 0, i32 6
  %119 = load i32, ptr %12, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = add i64 %120, 32
  %122 = load i64, ptr %15, align 8, !tbaa !17
  call void @i64_store(ptr noundef %118, i64 noundef %121, i64 noundef %122)
  %123 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %123, ptr %12, align 4, !tbaa !9
  store i32 95216, ptr %13, align 4, !tbaa !9
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.w2c_hermes, ptr %124, i32 0, i32 6
  %126 = load i32, ptr %12, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = add i64 %127, 8
  %129 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %125, i64 noundef %128, i32 noundef %129)
  %130 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %130, ptr %12, align 4, !tbaa !9
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.w2c_hermes, ptr %131, i32 0, i32 6
  %133 = load i32, ptr %12, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = call i32 @i32_load16_u(ptr noundef %132, i64 noundef %134)
  store i32 %135, ptr %12, align 4, !tbaa !9
  %136 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %136, ptr %7, align 4, !tbaa !9
  %137 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %137, ptr %12, align 4, !tbaa !9
  store i32 4, ptr %13, align 4, !tbaa !9
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.w2c_hermes, ptr %138, i32 0, i32 6
  %140 = load i32, ptr %12, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = add i64 %141, 16
  %143 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %139, i64 noundef %142, i32 noundef %143)
  %144 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %144, ptr %12, align 4, !tbaa !9
  %145 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %145, ptr %13, align 4, !tbaa !9
  store i32 8, ptr %14, align 4, !tbaa !9
  %146 = load i32, ptr %14, align 4, !tbaa !9
  %147 = load i32, ptr %13, align 4, !tbaa !9
  %148 = add i32 %147, %146
  store i32 %148, ptr %13, align 4, !tbaa !9
  %149 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %149, ptr %14, align 4, !tbaa !9
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = load i32, ptr %12, align 4, !tbaa !9
  %152 = load i32, ptr %13, align 4, !tbaa !9
  %153 = load i32, ptr %14, align 4, !tbaa !9
  %154 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSONLexer0x3A0x3AerrorWithChar0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x2C0x20char16_t0x29(ptr noundef %150, i32 noundef %151, i32 noundef %152, i32 noundef %153)
  store i32 %154, ptr %12, align 4, !tbaa !9
  br label %268

155:                                              ; preds = %74
  %156 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %156, ptr %12, align 4, !tbaa !9
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.w2c_hermes, ptr %157, i32 0, i32 6
  %159 = load i32, ptr %12, align 4, !tbaa !9
  %160 = zext i32 %159 to i64
  %161 = call i32 @i32_load8_u(ptr noundef %158, i64 noundef %160)
  store i32 %161, ptr %12, align 4, !tbaa !9
  %162 = load i32, ptr %12, align 4, !tbaa !9
  %163 = icmp ne i32 %162, 0
  %164 = xor i1 %163, true
  %165 = zext i1 %164 to i32
  store i32 %165, ptr %12, align 4, !tbaa !9
  %166 = load i32, ptr %12, align 4, !tbaa !9
  %167 = icmp ne i32 %166, 0
  br i1 %167, label %168, label %169

168:                                              ; preds = %155
  br label %259

169:                                              ; preds = %155
  %170 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %170, ptr %12, align 4, !tbaa !9
  store i32 12, ptr %13, align 4, !tbaa !9
  %171 = load ptr, ptr %5, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.w2c_hermes, ptr %171, i32 0, i32 6
  %173 = load i32, ptr %12, align 4, !tbaa !9
  %174 = zext i32 %173 to i64
  %175 = add i64 %174, 40
  %176 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %172, i64 noundef %175, i32 noundef %176)
  %177 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %177, ptr %12, align 4, !tbaa !9
  %178 = load ptr, ptr %5, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.w2c_hermes, ptr %178, i32 0, i32 6
  %180 = load i32, ptr %12, align 4, !tbaa !9
  %181 = zext i32 %180 to i64
  %182 = add i64 %181, 32
  %183 = call i32 @i32_load(ptr noundef %179, i64 noundef %182)
  store i32 %183, ptr %12, align 4, !tbaa !9
  %184 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %184, ptr %6, align 4, !tbaa !9
  %185 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %185, ptr %12, align 4, !tbaa !9
  store i32 23, ptr %13, align 4, !tbaa !9
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.w2c_hermes, ptr %186, i32 0, i32 6
  %188 = load i32, ptr %12, align 4, !tbaa !9
  %189 = zext i32 %188 to i64
  %190 = add i64 %189, 40
  %191 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %187, i64 noundef %190, i32 noundef %191)
  %192 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %192, ptr %12, align 4, !tbaa !9
  store i64 77309411332, ptr %15, align 8, !tbaa !17
  %193 = load ptr, ptr %5, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.w2c_hermes, ptr %193, i32 0, i32 6
  %195 = load i32, ptr %12, align 4, !tbaa !9
  %196 = zext i32 %195 to i64
  %197 = add i64 %196, 32
  %198 = load i64, ptr %15, align 8, !tbaa !17
  call void @i64_store(ptr noundef %194, i64 noundef %197, i64 noundef %198)
  %199 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %199, ptr %12, align 4, !tbaa !9
  store i32 95396, ptr %13, align 4, !tbaa !9
  %200 = load ptr, ptr %5, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.w2c_hermes, ptr %200, i32 0, i32 6
  %202 = load i32, ptr %12, align 4, !tbaa !9
  %203 = zext i32 %202 to i64
  %204 = add i64 %203, 24
  %205 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %201, i64 noundef %204, i32 noundef %205)
  %206 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %206, ptr %12, align 4, !tbaa !9
  store i32 3, ptr %13, align 4, !tbaa !9
  %207 = load ptr, ptr %5, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.w2c_hermes, ptr %207, i32 0, i32 6
  %209 = load i32, ptr %12, align 4, !tbaa !9
  %210 = zext i32 %209 to i64
  %211 = add i64 %210, 16
  %212 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %208, i64 noundef %211, i32 noundef %212)
  %213 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %213, ptr %12, align 4, !tbaa !9
  store i32 62766, ptr %13, align 4, !tbaa !9
  %214 = load ptr, ptr %5, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.w2c_hermes, ptr %214, i32 0, i32 6
  %216 = load i32, ptr %12, align 4, !tbaa !9
  %217 = zext i32 %216 to i64
  %218 = add i64 %217, 8
  %219 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %215, i64 noundef %218, i32 noundef %219)
  %220 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %220, ptr %12, align 4, !tbaa !9
  %221 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %221, ptr %13, align 4, !tbaa !9
  store i32 8, ptr %14, align 4, !tbaa !9
  %222 = load i32, ptr %14, align 4, !tbaa !9
  %223 = load i32, ptr %13, align 4, !tbaa !9
  %224 = add i32 %223, %222
  store i32 %224, ptr %13, align 4, !tbaa !9
  %225 = load ptr, ptr %5, align 8, !tbaa !5
  %226 = load i32, ptr %12, align 4, !tbaa !9
  %227 = load i32, ptr %13, align 4, !tbaa !9
  %228 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseSyntaxError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %225, i32 noundef %226, i32 noundef %227)
  store i32 %228, ptr %12, align 4, !tbaa !9
  br label %268

229:                                              ; preds = %107
  %230 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %230, ptr %12, align 4, !tbaa !9
  %231 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %231, ptr %13, align 4, !tbaa !9
  store i32 2, ptr %14, align 4, !tbaa !9
  %232 = load i32, ptr %14, align 4, !tbaa !9
  %233 = load i32, ptr %13, align 4, !tbaa !9
  %234 = add i32 %233, %232
  store i32 %234, ptr %13, align 4, !tbaa !9
  %235 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %235, ptr %10, align 4, !tbaa !9
  %236 = load ptr, ptr %5, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.w2c_hermes, ptr %236, i32 0, i32 6
  %238 = load i32, ptr %12, align 4, !tbaa !9
  %239 = zext i32 %238 to i64
  %240 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %237, i64 noundef %239, i32 noundef %240)
  %241 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %241, ptr %12, align 4, !tbaa !9
  %242 = load ptr, ptr %5, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.w2c_hermes, ptr %242, i32 0, i32 6
  %244 = load i32, ptr %12, align 4, !tbaa !9
  %245 = zext i32 %244 to i64
  %246 = add i64 %245, 1
  %247 = call i32 @i32_load8_u(ptr noundef %243, i64 noundef %246)
  store i32 %247, ptr %12, align 4, !tbaa !9
  %248 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %248, ptr %11, align 4, !tbaa !9
  %249 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %249, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %250 = load i32, ptr %13, align 4, !tbaa !9
  %251 = load i32, ptr %12, align 4, !tbaa !9
  %252 = add i32 %251, %250
  store i32 %252, ptr %12, align 4, !tbaa !9
  %253 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %253, ptr %7, align 4, !tbaa !9
  %254 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %254, ptr %12, align 4, !tbaa !9
  %255 = load i32, ptr %12, align 4, !tbaa !9
  %256 = icmp ne i32 %255, 0
  br i1 %256, label %257, label %258

257:                                              ; preds = %229
  br label %48

258:                                              ; preds = %229
  br label %259

259:                                              ; preds = %258, %168, %39
  %260 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %260, ptr %12, align 4, !tbaa !9
  %261 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %261, ptr %13, align 4, !tbaa !9
  %262 = load ptr, ptr %5, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.w2c_hermes, ptr %262, i32 0, i32 6
  %264 = load i32, ptr %12, align 4, !tbaa !9
  %265 = zext i32 %264 to i64
  %266 = add i64 %265, 40
  %267 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %263, i64 noundef %266, i32 noundef %267)
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %268

268:                                              ; preds = %259, %169, %108
  %269 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %269, ptr %10, align 4, !tbaa !9
  %270 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %270, ptr %12, align 4, !tbaa !9
  store i32 48, ptr %13, align 4, !tbaa !9
  %271 = load i32, ptr %13, align 4, !tbaa !9
  %272 = load i32, ptr %12, align 4, !tbaa !9
  %273 = add i32 %272, %271
  store i32 %273, ptr %12, align 4, !tbaa !9
  %274 = load i32, ptr %12, align 4, !tbaa !9
  %275 = load ptr, ptr %5, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.w2c_hermes, ptr %275, i32 0, i32 3
  store i32 %274, ptr %276, align 8, !tbaa !11
  %277 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %277, ptr %12, align 4, !tbaa !9
  %278 = load i32, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  ret i32 %278
}

declare i32 @w2c_hermes_hermes0x3A0x3AUTF16Stream0x3A0x3Arefill0x280x29(ptr 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 = { 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 }

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

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


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

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

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

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

; 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_load16_u(ptr noundef, i64 noundef) local_unnamed_addr #0

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseSyntaxError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSONLexer0x3A0x3AscanWord0x28char0x20const0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AJSONTokenKind0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #1 {
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = add i32 %6, -48
  store i32 %7, ptr %5, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = zext i32 %2 to i64
  %10 = tail call i32 @i32_load8_u(ptr noundef nonnull %8, i64 noundef %9)
  %.not = icmp eq i32 %10, 0
  %.pre = zext i32 %1 to i64
  br i1 %.not, label %.loopexit, label %11

11:                                               ; preds = %4
  %12 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %.pre)
  %13 = add nuw nsw i64 %.pre, 4
  br label %14

14:                                               ; preds = %50, %11
  %.0146 = phi i32 [ %2, %11 ], [ %55, %50 ]
  %.0144 = phi i32 [ %12, %11 ], [ %51, %50 ]
  %.0143 = phi i32 [ %10, %11 ], [ %54, %50 ]
  %15 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %13)
  %16 = icmp eq i32 %15, %.0144
  br i1 %16, label %17, label %23

17:                                               ; preds = %14
  %18 = tail call i32 @w2c_hermes_hermes0x3A0x3AUTF16Stream0x3A0x3Arefill0x280x29(ptr noundef %0, i32 noundef %1) #3
  %.not148 = icmp eq i32 %18, 0
  %19 = zext i32 %.0146 to i64
  %20 = tail call i32 @i32_load8_u(ptr noundef nonnull %8, i64 noundef %19)
  br i1 %.not148, label %37, label %21

21:                                               ; preds = %17
  %22 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %.pre)
  br label %23

23:                                               ; preds = %21, %14
  %.1145 = phi i32 [ %22, %21 ], [ %.0144, %14 ]
  %.1 = phi i32 [ %20, %21 ], [ %.0143, %14 ]
  %24 = zext i32 %.1145 to i64
  %25 = tail call i32 @i32_load16_u(ptr noundef nonnull %8, i64 noundef %24)
  %sext = shl i32 %.1, 24
  %26 = ashr exact i32 %sext, 24
  %27 = icmp eq i32 %25, %26
  br i1 %27, label %50, label %28

28:                                               ; preds = %23
  %29 = zext i32 %7 to i64
  %30 = add nuw nsw i64 %29, 40
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %30, i32 noundef 0)
  %31 = add nuw nsw i64 %29, 32
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %31, i64 noundef 94489280513)
  %32 = add nuw nsw i64 %29, 8
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %32, i32 noundef 95216)
  %33 = tail call i32 @i32_load16_u(ptr noundef nonnull %8, i64 noundef %24)
  %34 = add nuw nsw i64 %29, 16
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %34, i32 noundef 4)
  %35 = add i32 %6, -40
  %36 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSONLexer0x3A0x3AerrorWithChar0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x2C0x20char16_t0x29(ptr noundef %0, i32 noundef %1, i32 noundef %35, i32 noundef %33)
  br label %57

37:                                               ; preds = %17
  %.not150 = icmp eq i32 %20, 0
  br i1 %.not150, label %.loopexit, label %38

38:                                               ; preds = %37
  %39 = add nuw nsw i64 %.pre, 40
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %39, i32 noundef 12)
  %40 = add nuw nsw i64 %.pre, 32
  %41 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %40)
  %42 = zext i32 %7 to i64
  %43 = add nuw nsw i64 %42, 40
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %43, i32 noundef 23)
  %44 = add nuw nsw i64 %42, 32
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %44, i64 noundef 77309411332)
  %45 = add nuw nsw i64 %42, 24
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %45, i32 noundef 95396)
  %46 = add nuw nsw i64 %42, 16
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %46, i32 noundef 3)
  %47 = add nuw nsw i64 %42, 8
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %47, i32 noundef 62766)
  %48 = add i32 %6, -40
  %49 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseSyntaxError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %0, i32 noundef %41, i32 noundef %48) #3
  br label %57

50:                                               ; preds = %23
  %51 = add i32 %.1145, 2
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %.pre, i32 noundef %51)
  %52 = zext i32 %.0146 to i64
  %53 = add nuw nsw i64 %52, 1
  %54 = tail call i32 @i32_load8_u(ptr noundef nonnull %8, i64 noundef %53)
  %55 = add i32 %.0146, 1
  %.not149 = icmp eq i32 %54, 0
  br i1 %.not149, label %.loopexit, label %14

.loopexit:                                        ; preds = %50, %4, %37
  %56 = add nuw nsw i64 %.pre, 40
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %56, i32 noundef %3)
  br label %57

57:                                               ; preds = %.loopexit, %38, %28
  %.0 = phi i32 [ 1, %.loopexit ], [ %49, %38 ], [ %36, %28 ]
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret i32 %.0
}

declare i32 @w2c_hermes_hermes0x3A0x3AUTF16Stream0x3A0x3Arefill0x280x29(ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

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


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