; 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: 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: nounwind uwtable
define dso_local i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite_escaped0x28llvh0x3A0x3AStringRef0x2C0x20bool0x29(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 i32, align 4
  %16 = alloca i32, align 4
  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) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %17 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %17, ptr %12, align 4, !tbaa !9
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.w2c_hermes, ptr %18, i32 0, i32 6
  %20 = load i32, ptr %12, 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 %12, align 4, !tbaa !9
  %24 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %24, ptr %9, align 4, !tbaa !9
  %25 = load i32, ptr %12, align 4, !tbaa !9
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %27, label %283

27:                                               ; preds = %4
  %28 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %28, ptr %12, align 4, !tbaa !9
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.w2c_hermes, ptr %29, i32 0, i32 6
  %31 = load i32, ptr %12, align 4, !tbaa !9
  %32 = zext i32 %31 to i64
  %33 = call i32 @i32_load(ptr noundef %30, i64 noundef %32)
  store i32 %33, ptr %12, align 4, !tbaa !9
  %34 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %34, ptr %7, align 4, !tbaa !9
  %35 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %35, ptr %13, align 4, !tbaa !9
  %36 = load i32, ptr %13, align 4, !tbaa !9
  %37 = load i32, ptr %12, align 4, !tbaa !9
  %38 = add i32 %37, %36
  store i32 %38, ptr %12, align 4, !tbaa !9
  %39 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %39, ptr %11, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %281, %27
  %41 = load i32, ptr %7, 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_load8_u(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 %9, align 4, !tbaa !9
  store i32 9, ptr %13, align 4, !tbaa !9
  %48 = load i32, ptr %13, align 4, !tbaa !9
  %49 = load i32, ptr %12, align 4, !tbaa !9
  %50 = sub i32 %49, %48
  store i32 %50, ptr %12, align 4, !tbaa !9
  %51 = load i32, ptr %12, align 4, !tbaa !9
  switch i32 %51, label %78 [
    i32 0, label %52
    i32 1, label %53
    i32 2, label %54
    i32 3, label %55
    i32 4, label %56
    i32 5, label %57
    i32 6, label %58
    i32 7, label %59
    i32 8, label %60
    i32 9, label %61
    i32 10, label %62
    i32 11, label %63
    i32 12, label %64
    i32 13, label %65
    i32 14, label %66
    i32 15, label %67
    i32 16, label %68
    i32 17, label %69
    i32 18, label %70
    i32 19, label %71
    i32 20, label %72
    i32 21, label %73
    i32 22, label %74
    i32 23, label %75
    i32 24, label %76
    i32 25, label %77
  ]

52:                                               ; preds = %40
  br label %98

53:                                               ; preds = %40
  br label %108

54:                                               ; preds = %40
  br label %128

55:                                               ; preds = %40
  br label %128

56:                                               ; preds = %40
  br label %128

57:                                               ; preds = %40
  br label %128

58:                                               ; preds = %40
  br label %128

59:                                               ; preds = %40
  br label %128

60:                                               ; preds = %40
  br label %128

61:                                               ; preds = %40
  br label %128

62:                                               ; preds = %40
  br label %128

63:                                               ; preds = %40
  br label %128

64:                                               ; preds = %40
  br label %128

65:                                               ; preds = %40
  br label %128

66:                                               ; preds = %40
  br label %128

67:                                               ; preds = %40
  br label %128

68:                                               ; preds = %40
  br label %128

69:                                               ; preds = %40
  br label %128

70:                                               ; preds = %40
  br label %128

71:                                               ; preds = %40
  br label %128

72:                                               ; preds = %40
  br label %128

73:                                               ; preds = %40
  br label %128

74:                                               ; preds = %40
  br label %128

75:                                               ; preds = %40
  br label %128

76:                                               ; preds = %40
  br label %128

77:                                               ; preds = %40
  br label %118

78:                                               ; preds = %40
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %80, ptr %12, align 4, !tbaa !9
  store i32 92, ptr %13, align 4, !tbaa !9
  %81 = load i32, ptr %12, align 4, !tbaa !9
  %82 = load i32, ptr %13, align 4, !tbaa !9
  %83 = icmp ne i32 %81, %82
  %84 = zext i1 %83 to i32
  store i32 %84, ptr %12, align 4, !tbaa !9
  %85 = load i32, ptr %12, align 4, !tbaa !9
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %88

87:                                               ; preds = %79
  br label %128

88:                                               ; preds = %79
  %89 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %89, ptr %12, align 4, !tbaa !9
  store i32 92, ptr %13, align 4, !tbaa !9
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = load i32, ptr %12, align 4, !tbaa !9
  %92 = load i32, ptr %13, align 4, !tbaa !9
  %93 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %90, i32 noundef %91, i32 noundef %92)
  store i32 %93, ptr %12, align 4, !tbaa !9
  store i32 92, ptr %13, align 4, !tbaa !9
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = load i32, ptr %12, align 4, !tbaa !9
  %96 = load i32, ptr %13, align 4, !tbaa !9
  %97 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %94, i32 noundef %95, i32 noundef %96)
  store i32 %97, ptr %12, align 4, !tbaa !9
  br label %268

98:                                               ; preds = %52
  %99 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %99, ptr %12, align 4, !tbaa !9
  store i32 92, ptr %13, align 4, !tbaa !9
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = load i32, ptr %12, align 4, !tbaa !9
  %102 = load i32, ptr %13, align 4, !tbaa !9
  %103 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %100, i32 noundef %101, i32 noundef %102)
  store i32 %103, ptr %12, align 4, !tbaa !9
  store i32 116, ptr %13, align 4, !tbaa !9
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = load i32, ptr %12, align 4, !tbaa !9
  %106 = load i32, ptr %13, align 4, !tbaa !9
  %107 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %104, i32 noundef %105, i32 noundef %106)
  store i32 %107, ptr %12, align 4, !tbaa !9
  br label %268

108:                                              ; preds = %53
  %109 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %109, ptr %12, align 4, !tbaa !9
  store i32 92, ptr %13, align 4, !tbaa !9
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = load i32, ptr %12, align 4, !tbaa !9
  %112 = load i32, ptr %13, align 4, !tbaa !9
  %113 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %110, i32 noundef %111, i32 noundef %112)
  store i32 %113, ptr %12, align 4, !tbaa !9
  store i32 110, ptr %13, align 4, !tbaa !9
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = load i32, ptr %12, align 4, !tbaa !9
  %116 = load i32, ptr %13, align 4, !tbaa !9
  %117 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %114, i32 noundef %115, i32 noundef %116)
  store i32 %117, ptr %12, align 4, !tbaa !9
  br label %268

118:                                              ; preds = %77
  %119 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %119, ptr %12, align 4, !tbaa !9
  store i32 92, ptr %13, align 4, !tbaa !9
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = load i32, ptr %12, align 4, !tbaa !9
  %122 = load i32, ptr %13, align 4, !tbaa !9
  %123 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %120, i32 noundef %121, i32 noundef %122)
  store i32 %123, ptr %12, align 4, !tbaa !9
  store i32 34, ptr %13, align 4, !tbaa !9
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = load i32, ptr %12, align 4, !tbaa !9
  %126 = load i32, ptr %13, align 4, !tbaa !9
  %127 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %124, i32 noundef %125, i32 noundef %126)
  store i32 %127, ptr %12, align 4, !tbaa !9
  br label %268

128:                                              ; preds = %87, %76, %75, %74, %73, %72, %71, %70, %69, %68, %67, %66, %65, %64, %63, %62, %61, %60, %59, %58, %57, %56, %55, %54
  %129 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %129, ptr %12, align 4, !tbaa !9
  store i32 32, ptr %13, align 4, !tbaa !9
  %130 = load i32, ptr %13, align 4, !tbaa !9
  %131 = load i32, ptr %12, align 4, !tbaa !9
  %132 = sub i32 %131, %130
  store i32 %132, ptr %12, align 4, !tbaa !9
  store i32 255, ptr %13, align 4, !tbaa !9
  %133 = load i32, ptr %13, align 4, !tbaa !9
  %134 = load i32, ptr %12, align 4, !tbaa !9
  %135 = and i32 %134, %133
  store i32 %135, ptr %12, align 4, !tbaa !9
  store i32 94, ptr %13, align 4, !tbaa !9
  %136 = load i32, ptr %12, align 4, !tbaa !9
  %137 = load i32, ptr %13, align 4, !tbaa !9
  %138 = icmp ule i32 %136, %137
  %139 = zext i1 %138 to i32
  store i32 %139, ptr %12, align 4, !tbaa !9
  %140 = load i32, ptr %12, align 4, !tbaa !9
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %149

142:                                              ; preds = %128
  %143 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %143, ptr %12, align 4, !tbaa !9
  %144 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %144, ptr %13, align 4, !tbaa !9
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = load i32, ptr %12, align 4, !tbaa !9
  %147 = load i32, ptr %13, align 4, !tbaa !9
  %148 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28unsigned0x20char0x29(ptr noundef %145, i32 noundef %146, i32 noundef %147)
  store i32 %148, ptr %12, align 4, !tbaa !9
  br label %268

149:                                              ; preds = %128
  %150 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %150, ptr %12, align 4, !tbaa !9
  store i32 92, ptr %13, align 4, !tbaa !9
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = load i32, ptr %12, align 4, !tbaa !9
  %153 = load i32, ptr %13, align 4, !tbaa !9
  %154 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %151, i32 noundef %152, i32 noundef %153)
  store i32 %154, ptr %12, align 4, !tbaa !9
  %155 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %155, ptr %10, align 4, !tbaa !9
  %156 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %156, ptr %12, align 4, !tbaa !9
  %157 = load i32, ptr %12, align 4, !tbaa !9
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %159, label %226

159:                                              ; preds = %149
  %160 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %160, ptr %12, align 4, !tbaa !9
  store i32 120, ptr %13, align 4, !tbaa !9
  %161 = load ptr, ptr %5, align 8, !tbaa !5
  %162 = load i32, ptr %12, align 4, !tbaa !9
  %163 = load i32, ptr %13, align 4, !tbaa !9
  %164 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %161, i32 noundef %162, i32 noundef %163)
  store i32 %164, ptr %12, align 4, !tbaa !9
  %165 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %165, ptr %12, align 4, !tbaa !9
  %166 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %166, ptr %13, align 4, !tbaa !9
  store i32 4, ptr %14, align 4, !tbaa !9
  %167 = load i32, ptr %14, align 4, !tbaa !9
  %168 = and i32 %167, 31
  %169 = load i32, ptr %13, align 4, !tbaa !9
  %170 = lshr i32 %169, %168
  store i32 %170, ptr %13, align 4, !tbaa !9
  %171 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %171, ptr %10, align 4, !tbaa !9
  store i32 48, ptr %14, align 4, !tbaa !9
  %172 = load i32, ptr %14, align 4, !tbaa !9
  %173 = load i32, ptr %13, align 4, !tbaa !9
  %174 = or i32 %173, %172
  store i32 %174, ptr %13, align 4, !tbaa !9
  %175 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %175, ptr %14, align 4, !tbaa !9
  store i32 55, ptr %15, align 4, !tbaa !9
  %176 = load i32, ptr %15, align 4, !tbaa !9
  %177 = load i32, ptr %14, align 4, !tbaa !9
  %178 = add i32 %177, %176
  store i32 %178, ptr %14, align 4, !tbaa !9
  %179 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %179, ptr %15, align 4, !tbaa !9
  store i32 160, ptr %16, align 4, !tbaa !9
  %180 = load i32, ptr %15, align 4, !tbaa !9
  %181 = load i32, ptr %16, align 4, !tbaa !9
  %182 = icmp ult i32 %180, %181
  %183 = zext i1 %182 to i32
  store i32 %183, ptr %15, align 4, !tbaa !9
  %184 = load i32, ptr %15, align 4, !tbaa !9
  %185 = icmp ne i32 %184, 0
  br i1 %185, label %186, label %188

186:                                              ; preds = %159
  %187 = load i32, ptr %13, align 4, !tbaa !9
  br label %190

188:                                              ; preds = %159
  %189 = load i32, ptr %14, align 4, !tbaa !9
  br label %190

190:                                              ; preds = %188, %186
  %191 = phi i32 [ %187, %186 ], [ %189, %188 ]
  store i32 %191, ptr %13, align 4, !tbaa !9
  %192 = load ptr, ptr %5, align 8, !tbaa !5
  %193 = load i32, ptr %12, align 4, !tbaa !9
  %194 = load i32, ptr %13, align 4, !tbaa !9
  %195 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %192, i32 noundef %193, i32 noundef %194)
  store i32 %195, ptr %12, align 4, !tbaa !9
  %196 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %196, ptr %12, align 4, !tbaa !9
  %197 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %197, ptr %13, align 4, !tbaa !9
  store i32 15, ptr %14, align 4, !tbaa !9
  %198 = load i32, ptr %14, align 4, !tbaa !9
  %199 = load i32, ptr %13, align 4, !tbaa !9
  %200 = and i32 %199, %198
  store i32 %200, ptr %13, align 4, !tbaa !9
  %201 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %201, ptr %9, align 4, !tbaa !9
  store i32 48, ptr %14, align 4, !tbaa !9
  %202 = load i32, ptr %14, align 4, !tbaa !9
  %203 = load i32, ptr %13, align 4, !tbaa !9
  %204 = or i32 %203, %202
  store i32 %204, ptr %13, align 4, !tbaa !9
  %205 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %205, ptr %14, align 4, !tbaa !9
  store i32 55, ptr %15, align 4, !tbaa !9
  %206 = load i32, ptr %15, align 4, !tbaa !9
  %207 = load i32, ptr %14, align 4, !tbaa !9
  %208 = add i32 %207, %206
  store i32 %208, ptr %14, align 4, !tbaa !9
  %209 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %209, ptr %15, align 4, !tbaa !9
  store i32 10, ptr %16, align 4, !tbaa !9
  %210 = load i32, ptr %15, align 4, !tbaa !9
  %211 = load i32, ptr %16, align 4, !tbaa !9
  %212 = icmp ult i32 %210, %211
  %213 = zext i1 %212 to i32
  store i32 %213, ptr %15, align 4, !tbaa !9
  %214 = load i32, ptr %15, align 4, !tbaa !9
  %215 = icmp ne i32 %214, 0
  br i1 %215, label %216, label %218

216:                                              ; preds = %190
  %217 = load i32, ptr %13, align 4, !tbaa !9
  br label %220

218:                                              ; preds = %190
  %219 = load i32, ptr %14, align 4, !tbaa !9
  br label %220

220:                                              ; preds = %218, %216
  %221 = phi i32 [ %217, %216 ], [ %219, %218 ]
  store i32 %221, ptr %13, align 4, !tbaa !9
  %222 = load ptr, ptr %5, align 8, !tbaa !5
  %223 = load i32, ptr %12, align 4, !tbaa !9
  %224 = load i32, ptr %13, align 4, !tbaa !9
  %225 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %222, i32 noundef %223, i32 noundef %224)
  store i32 %225, ptr %12, align 4, !tbaa !9
  br label %268

226:                                              ; preds = %149
  %227 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %227, ptr %12, align 4, !tbaa !9
  %228 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %228, ptr %13, align 4, !tbaa !9
  store i32 6, ptr %14, align 4, !tbaa !9
  %229 = load i32, ptr %14, align 4, !tbaa !9
  %230 = and i32 %229, 31
  %231 = load i32, ptr %13, align 4, !tbaa !9
  %232 = lshr i32 %231, %230
  store i32 %232, ptr %13, align 4, !tbaa !9
  store i32 48, ptr %14, align 4, !tbaa !9
  %233 = load i32, ptr %14, align 4, !tbaa !9
  %234 = load i32, ptr %13, align 4, !tbaa !9
  %235 = or i32 %234, %233
  store i32 %235, ptr %13, align 4, !tbaa !9
  %236 = load ptr, ptr %5, align 8, !tbaa !5
  %237 = load i32, ptr %12, align 4, !tbaa !9
  %238 = load i32, ptr %13, align 4, !tbaa !9
  %239 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %236, i32 noundef %237, i32 noundef %238)
  store i32 %239, ptr %12, align 4, !tbaa !9
  %240 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %240, ptr %12, align 4, !tbaa !9
  %241 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %241, ptr %13, align 4, !tbaa !9
  store i32 3, ptr %14, align 4, !tbaa !9
  %242 = load i32, ptr %14, align 4, !tbaa !9
  %243 = and i32 %242, 31
  %244 = load i32, ptr %13, align 4, !tbaa !9
  %245 = lshr i32 %244, %243
  store i32 %245, ptr %13, align 4, !tbaa !9
  store i32 7, ptr %14, align 4, !tbaa !9
  %246 = load i32, ptr %14, align 4, !tbaa !9
  %247 = load i32, ptr %13, align 4, !tbaa !9
  %248 = and i32 %247, %246
  store i32 %248, ptr %13, align 4, !tbaa !9
  store i32 48, ptr %14, align 4, !tbaa !9
  %249 = load i32, ptr %14, align 4, !tbaa !9
  %250 = load i32, ptr %13, align 4, !tbaa !9
  %251 = or i32 %250, %249
  store i32 %251, ptr %13, align 4, !tbaa !9
  %252 = load ptr, ptr %5, align 8, !tbaa !5
  %253 = load i32, ptr %12, align 4, !tbaa !9
  %254 = load i32, ptr %13, align 4, !tbaa !9
  %255 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %252, i32 noundef %253, i32 noundef %254)
  store i32 %255, ptr %12, align 4, !tbaa !9
  %256 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %256, ptr %12, align 4, !tbaa !9
  %257 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %257, ptr %13, align 4, !tbaa !9
  store i32 7, ptr %14, align 4, !tbaa !9
  %258 = load i32, ptr %14, align 4, !tbaa !9
  %259 = load i32, ptr %13, align 4, !tbaa !9
  %260 = and i32 %259, %258
  store i32 %260, ptr %13, align 4, !tbaa !9
  store i32 48, 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 = or i32 %262, %261
  store i32 %263, ptr %13, align 4, !tbaa !9
  %264 = load ptr, ptr %5, align 8, !tbaa !5
  %265 = load i32, ptr %12, align 4, !tbaa !9
  %266 = load i32, ptr %13, align 4, !tbaa !9
  %267 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %264, i32 noundef %265, i32 noundef %266)
  store i32 %267, ptr %12, align 4, !tbaa !9
  br label %268

268:                                              ; preds = %226, %220, %142, %118, %108, %98, %88
  %269 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %269, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %270 = load i32, ptr %13, align 4, !tbaa !9
  %271 = load i32, ptr %12, align 4, !tbaa !9
  %272 = add i32 %271, %270
  store i32 %272, ptr %12, align 4, !tbaa !9
  %273 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %273, ptr %7, align 4, !tbaa !9
  %274 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %274, ptr %13, align 4, !tbaa !9
  %275 = load i32, ptr %12, align 4, !tbaa !9
  %276 = load i32, ptr %13, align 4, !tbaa !9
  %277 = icmp ne i32 %275, %276
  %278 = zext i1 %277 to i32
  store i32 %278, ptr %12, align 4, !tbaa !9
  %279 = load i32, ptr %12, align 4, !tbaa !9
  %280 = icmp ne i32 %279, 0
  br i1 %280, label %281, label %282

281:                                              ; preds = %268
  br label %40

282:                                              ; preds = %268
  br label %283

283:                                              ; preds = %282, %4
  %284 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %284, ptr %12, align 4, !tbaa !9
  %285 = load i32, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  ret i32 %285
}

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

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

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 = { 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}


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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite_escaped0x28llvh0x3A0x3AStringRef0x2C0x20bool0x29(ptr noundef %0, i32 noundef returned %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #1 {
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = zext i32 %2 to i64
  %7 = add nuw nsw i64 %6, 4
  %8 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %7)
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %.loopexit, label %9

9:                                                ; preds = %4
  %10 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %6)
  %11 = add i32 %10, %8
  %.not155 = icmp eq i32 %3, 0
  br label %12

12:                                               ; preds = %60, %9
  %.0 = phi i32 [ %10, %9 ], [ %61, %60 ]
  %13 = zext i32 %.0 to i64
  %14 = tail call i32 @i32_load8_u(ptr noundef nonnull %5, i64 noundef %13)
  switch i32 %14, label %27 [
    i32 9, label %18
    i32 10, label %21
    i32 92, label %15
    i32 34, label %24
  ]

15:                                               ; preds = %12
  %16 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %0, i32 noundef %1, i32 noundef 92)
  %17 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %0, i32 noundef %16, i32 noundef 92)
  br label %60

18:                                               ; preds = %12
  %19 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %0, i32 noundef %1, i32 noundef 92)
  %20 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %0, i32 noundef %19, i32 noundef 116)
  br label %60

21:                                               ; preds = %12
  %22 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %0, i32 noundef %1, i32 noundef 92)
  %23 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %0, i32 noundef %22, i32 noundef 110)
  br label %60

24:                                               ; preds = %12
  %25 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %0, i32 noundef %1, i32 noundef 92)
  %26 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %0, i32 noundef %25, i32 noundef 34)
  br label %60

27:                                               ; preds = %12
  %28 = add i32 %14, 224
  %29 = and i32 %28, 255
  %30 = icmp ult i32 %29, 95
  br i1 %30, label %31, label %33

31:                                               ; preds = %27
  %32 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28unsigned0x20char0x29(ptr noundef %0, i32 noundef %1, i32 noundef %14)
  br label %60

33:                                               ; preds = %27
  %34 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %0, i32 noundef %1, i32 noundef 92)
  br i1 %.not155, label %49, label %35

35:                                               ; preds = %33
  %36 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %0, i32 noundef %34, i32 noundef 120)
  %37 = lshr i32 %14, 4
  %38 = or i32 %37, 48
  %39 = add nuw nsw i32 %37, 55
  %40 = icmp ult i32 %14, 160
  %41 = select i1 %40, i32 %38, i32 %39
  %42 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %0, i32 noundef %1, i32 noundef %41)
  %43 = and i32 %14, 15
  %44 = or disjoint i32 %43, 48
  %45 = add nuw nsw i32 %43, 55
  %46 = icmp ult i32 %43, 10
  %47 = select i1 %46, i32 %44, i32 %45
  %48 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %0, i32 noundef %1, i32 noundef %47)
  br label %60

49:                                               ; preds = %33
  %50 = lshr i32 %14, 6
  %51 = or i32 %50, 48
  %52 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %0, i32 noundef %1, i32 noundef %51)
  %53 = lshr i32 %14, 3
  %54 = and i32 %53, 7
  %55 = or disjoint i32 %54, 48
  %56 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %0, i32 noundef %1, i32 noundef %55)
  %57 = and i32 %14, 7
  %58 = or disjoint i32 %57, 48
  %59 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28char0x29(ptr noundef %0, i32 noundef %1, i32 noundef %58)
  br label %60

60:                                               ; preds = %49, %35, %31, %24, %21, %18, %15
  %61 = add i32 %.0, 1
  %.not156 = icmp eq i32 %61, %11
  br i1 %.not156, label %.loopexit, label %12

.loopexit:                                        ; preds = %60, %4
  ret i32 %1
}

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

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

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" }

!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,LICMPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass