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

declare i32 @w2c_hermes_0x5F_memset(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.ctlz.i64(i64, i1 immarg) #3

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

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

63:                                               ; preds = %5
  %64 = load i32, ptr %15, align 4, !tbaa !9
  br label %67

65:                                               ; preds = %5
  %66 = load i32, ptr %16, align 4, !tbaa !9
  br label %67

67:                                               ; preds = %65, %63
  %68 = phi i32 [ %64, %63 ], [ %66, %65 ]
  store i32 %68, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  %69 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %69, ptr %17, align 4, !tbaa !9
  %70 = load i32, ptr %17, align 4, !tbaa !9
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %74

72:                                               ; preds = %67
  %73 = load i32, ptr %15, align 4, !tbaa !9
  br label %76

74:                                               ; preds = %67
  %75 = load i32, ptr %16, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %74, %72
  %77 = phi i32 [ %73, %72 ], [ %75, %74 ]
  store i32 %77, ptr %15, align 4, !tbaa !9
  %78 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %78, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  store i32 67, ptr %17, align 4, !tbaa !9
  %79 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %79, ptr %22, align 8, !tbaa !11
  %80 = load i64, ptr %22, align 8, !tbaa !11
  %81 = icmp ne i64 %80, 0
  br i1 %81, label %82, label %86

82:                                               ; preds = %76
  %83 = load i64, ptr %22, align 8, !tbaa !11
  %84 = call i64 @llvm.ctlz.i64(i64 %83, i1 true)
  %85 = trunc i64 %84 to i32
  br label %87

86:                                               ; preds = %76
  br label %87

87:                                               ; preds = %86, %82
  %88 = phi i32 [ %85, %82 ], [ 64, %86 ]
  %89 = sext i32 %88 to i64
  store i64 %89, ptr %22, align 8, !tbaa !11
  %90 = load i64, ptr %22, align 8, !tbaa !11
  %91 = trunc i64 %90 to i32
  store i32 %91, ptr %18, align 4, !tbaa !9
  %92 = load i32, ptr %18, align 4, !tbaa !9
  %93 = load i32, ptr %17, align 4, !tbaa !9
  %94 = sub i32 %93, %92
  store i32 %94, ptr %17, align 4, !tbaa !9
  store i32 2, ptr %18, align 4, !tbaa !9
  %95 = load i32, ptr %18, align 4, !tbaa !9
  %96 = and i32 %95, 31
  %97 = load i32, ptr %17, align 4, !tbaa !9
  %98 = lshr i32 %97, %96
  store i32 %98, ptr %17, align 4, !tbaa !9
  %99 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %99, ptr %11, align 4, !tbaa !9
  %100 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %100, ptr %18, align 4, !tbaa !9
  store i32 1, ptr %19, align 4, !tbaa !9
  %101 = load i32, ptr %18, align 4, !tbaa !9
  %102 = load i32, ptr %19, align 4, !tbaa !9
  %103 = icmp ule i32 %101, %102
  %104 = zext i1 %103 to i32
  store i32 %104, ptr %18, align 4, !tbaa !9
  %105 = load i32, ptr %18, align 4, !tbaa !9
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %109

107:                                              ; preds = %87
  %108 = load i32, ptr %16, align 4, !tbaa !9
  br label %111

109:                                              ; preds = %87
  %110 = load i32, ptr %17, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %109, %107
  %112 = phi i32 [ %108, %107 ], [ %110, %109 ]
  store i32 %112, ptr %16, align 4, !tbaa !9
  %113 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %113, ptr %17, align 4, !tbaa !9
  store i32 -2, ptr %18, align 4, !tbaa !9
  %114 = load i32, ptr %18, align 4, !tbaa !9
  %115 = load i32, ptr %17, align 4, !tbaa !9
  %116 = and i32 %115, %114
  store i32 %116, ptr %17, align 4, !tbaa !9
  %117 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %117, ptr %11, align 4, !tbaa !9
  store i32 2, ptr %18, align 4, !tbaa !9
  %118 = load i32, ptr %17, align 4, !tbaa !9
  %119 = load i32, ptr %18, align 4, !tbaa !9
  %120 = icmp eq i32 %118, %119
  %121 = zext i1 %120 to i32
  store i32 %121, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  %122 = load i32, ptr %18, align 4, !tbaa !9
  %123 = and i32 %122, 31
  %124 = load i32, ptr %17, align 4, !tbaa !9
  %125 = shl i32 %124, %123
  store i32 %125, ptr %17, align 4, !tbaa !9
  %126 = load i32, ptr %17, align 4, !tbaa !9
  %127 = load i32, ptr %16, align 4, !tbaa !9
  %128 = add i32 %127, %126
  store i32 %128, ptr %16, align 4, !tbaa !9
  %129 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %129, ptr %12, align 4, !tbaa !9
  %130 = load i32, ptr %15, align 4, !tbaa !9
  %131 = load i32, ptr %16, align 4, !tbaa !9
  %132 = icmp ugt i32 %130, %131
  %133 = zext i1 %132 to i32
  store i32 %133, ptr %15, align 4, !tbaa !9
  %134 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %134, ptr %14, align 4, !tbaa !9
  %135 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %135, ptr %15, align 4, !tbaa !9
  store i32 2, ptr %16, align 4, !tbaa !9
  %136 = load i32, ptr %15, align 4, !tbaa !9
  %137 = load i32, ptr %16, align 4, !tbaa !9
  %138 = icmp eq i32 %136, %137
  %139 = zext i1 %138 to i32
  store i32 %139, ptr %15, align 4, !tbaa !9
  %140 = load i32, ptr %15, align 4, !tbaa !9
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %150

142:                                              ; preds = %111
  %143 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %143, ptr %15, align 4, !tbaa !9
  store i32 120, ptr %16, align 4, !tbaa !9
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.w2c_hermes, ptr %144, i32 0, i32 6
  %146 = load i32, ptr %15, align 4, !tbaa !9
  %147 = zext i32 %146 to i64
  %148 = add i64 %147, 1
  %149 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %145, i64 noundef %148, i32 noundef %149)
  br label %150

150:                                              ; preds = %142, %111
  %151 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %151, ptr %15, align 4, !tbaa !9
  %152 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %152, ptr %16, align 4, !tbaa !9
  %153 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %153, ptr %17, align 4, !tbaa !9
  %154 = load i32, ptr %17, align 4, !tbaa !9
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %158

156:                                              ; preds = %150
  %157 = load i32, ptr %15, align 4, !tbaa !9
  br label %160

158:                                              ; preds = %150
  %159 = load i32, ptr %16, align 4, !tbaa !9
  br label %160

160:                                              ; preds = %158, %156
  %161 = phi i32 [ %157, %156 ], [ %159, %158 ]
  store i32 %161, ptr %15, align 4, !tbaa !9
  %162 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %162, ptr %12, align 4, !tbaa !9
  %163 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %163, ptr %20, align 8, !tbaa !11
  store i64 0, ptr %21, align 8, !tbaa !11
  %164 = load i64, ptr %20, align 8, !tbaa !11
  %165 = load i64, ptr %21, align 8, !tbaa !11
  %166 = icmp ne i64 %164, %165
  %167 = zext i1 %166 to i32
  store i32 %167, ptr %15, align 4, !tbaa !9
  %168 = load i32, ptr %15, align 4, !tbaa !9
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %170, label %246

170:                                              ; preds = %160
  store i32 87, ptr %15, align 4, !tbaa !9
  store i32 55, ptr %16, align 4, !tbaa !9
  %171 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %171, ptr %17, align 4, !tbaa !9
  store i32 -3, ptr %18, align 4, !tbaa !9
  %172 = load i32, ptr %18, align 4, !tbaa !9
  %173 = load i32, ptr %17, align 4, !tbaa !9
  %174 = and i32 %173, %172
  store i32 %174, ptr %17, align 4, !tbaa !9
  %175 = load i32, ptr %17, align 4, !tbaa !9
  %176 = icmp ne i32 %175, 0
  br i1 %176, label %177, label %179

177:                                              ; preds = %170
  %178 = load i32, ptr %15, align 4, !tbaa !9
  br label %181

179:                                              ; preds = %170
  %180 = load i32, ptr %16, align 4, !tbaa !9
  br label %181

181:                                              ; preds = %179, %177
  %182 = phi i32 [ %178, %177 ], [ %180, %179 ]
  store i32 %182, ptr %15, align 4, !tbaa !9
  %183 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %183, ptr %11, align 4, !tbaa !9
  %184 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %184, ptr %15, align 4, !tbaa !9
  %185 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %185, ptr %16, align 4, !tbaa !9
  %186 = load i32, ptr %16, align 4, !tbaa !9
  %187 = load i32, ptr %15, align 4, !tbaa !9
  %188 = add i32 %187, %186
  store i32 %188, ptr %15, align 4, !tbaa !9
  %189 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %189, ptr %9, align 4, !tbaa !9
  br label %190

190:                                              ; preds = %244, %181
  %191 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %191, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %192 = load i32, ptr %16, align 4, !tbaa !9
  %193 = load i32, ptr %15, align 4, !tbaa !9
  %194 = sub i32 %193, %192
  store i32 %194, ptr %15, align 4, !tbaa !9
  %195 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %195, ptr %9, align 4, !tbaa !9
  %196 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %196, ptr %21, align 8, !tbaa !11
  %197 = load i64, ptr %21, align 8, !tbaa !11
  %198 = trunc i64 %197 to i32
  store i32 %198, ptr %16, align 4, !tbaa !9
  store i32 15, ptr %17, align 4, !tbaa !9
  %199 = load i32, ptr %17, align 4, !tbaa !9
  %200 = load i32, ptr %16, align 4, !tbaa !9
  %201 = and i32 %200, %199
  store i32 %201, ptr %16, align 4, !tbaa !9
  %202 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %202, ptr %10, align 4, !tbaa !9
  store i32 48, ptr %17, align 4, !tbaa !9
  %203 = load i32, ptr %17, align 4, !tbaa !9
  %204 = load i32, ptr %16, align 4, !tbaa !9
  %205 = or i32 %204, %203
  store i32 %205, ptr %16, align 4, !tbaa !9
  %206 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %206, ptr %17, align 4, !tbaa !9
  %207 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %207, ptr %18, align 4, !tbaa !9
  %208 = load i32, ptr %18, align 4, !tbaa !9
  %209 = load i32, ptr %17, align 4, !tbaa !9
  %210 = add i32 %209, %208
  store i32 %210, ptr %17, align 4, !tbaa !9
  %211 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %211, ptr %18, align 4, !tbaa !9
  store i32 10, ptr %19, align 4, !tbaa !9
  %212 = load i32, ptr %18, align 4, !tbaa !9
  %213 = load i32, ptr %19, align 4, !tbaa !9
  %214 = icmp ult i32 %212, %213
  %215 = zext i1 %214 to i32
  store i32 %215, ptr %18, align 4, !tbaa !9
  %216 = load i32, ptr %18, align 4, !tbaa !9
  %217 = icmp ne i32 %216, 0
  br i1 %217, label %218, label %220

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

220:                                              ; preds = %190
  %221 = load i32, ptr %17, align 4, !tbaa !9
  br label %222

222:                                              ; preds = %220, %218
  %223 = phi i32 [ %219, %218 ], [ %221, %220 ]
  store i32 %223, ptr %16, align 4, !tbaa !9
  %224 = load ptr, ptr %6, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.w2c_hermes, ptr %224, i32 0, i32 6
  %226 = load i32, ptr %15, align 4, !tbaa !9
  %227 = zext i32 %226 to i64
  %228 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %225, i64 noundef %227, i32 noundef %228)
  %229 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %229, ptr %20, align 8, !tbaa !11
  store i64 15, ptr %21, align 8, !tbaa !11
  %230 = load i64, ptr %20, align 8, !tbaa !11
  %231 = load i64, ptr %21, align 8, !tbaa !11
  %232 = icmp ugt i64 %230, %231
  %233 = zext i1 %232 to i32
  store i32 %233, ptr %15, align 4, !tbaa !9
  %234 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %234, ptr %10, align 4, !tbaa !9
  %235 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %235, ptr %20, align 8, !tbaa !11
  store i64 4, ptr %21, align 8, !tbaa !11
  %236 = load i64, ptr %21, align 8, !tbaa !11
  %237 = and i64 %236, 63
  %238 = load i64, ptr %20, align 8, !tbaa !11
  %239 = lshr i64 %238, %237
  store i64 %239, ptr %20, align 8, !tbaa !11
  %240 = load i64, ptr %20, align 8, !tbaa !11
  store i64 %240, ptr %8, align 8, !tbaa !11
  %241 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %241, ptr %15, align 4, !tbaa !9
  %242 = load i32, ptr %15, align 4, !tbaa !9
  %243 = icmp ne i32 %242, 0
  br i1 %243, label %244, label %245

244:                                              ; preds = %222
  br label %190

245:                                              ; preds = %222
  br label %246

246:                                              ; preds = %245, %160
  %247 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %247, ptr %15, align 4, !tbaa !9
  %248 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %248, ptr %16, align 4, !tbaa !9
  %249 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %249, ptr %17, align 4, !tbaa !9
  %250 = load ptr, ptr %6, align 8, !tbaa !5
  %251 = load i32, ptr %15, align 4, !tbaa !9
  %252 = load i32, ptr %16, align 4, !tbaa !9
  %253 = load i32, ptr %17, align 4, !tbaa !9
  %254 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %250, i32 noundef %251, i32 noundef %252, i32 noundef %253)
  store i32 %254, ptr %15, align 4, !tbaa !9
  %255 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %255, ptr %15, align 4, !tbaa !9
  store i32 128, ptr %16, align 4, !tbaa !9
  %256 = load i32, ptr %16, align 4, !tbaa !9
  %257 = load i32, ptr %15, align 4, !tbaa !9
  %258 = add i32 %257, %256
  store i32 %258, ptr %15, align 4, !tbaa !9
  %259 = load i32, ptr %15, align 4, !tbaa !9
  %260 = load ptr, ptr %6, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.w2c_hermes, ptr %260, i32 0, i32 3
  store i32 %259, ptr %261, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 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 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  ret void
}

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 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 }

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

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


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

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

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

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

declare i32 @w2c_hermes_0x5F_memset(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.ctlz.i64(i64, i1 immarg) #2

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_llvh0x3A0x3Awrite_hex0x28llvh0x3A0x3Araw_ostream0x260x2C0x20unsigned0x20long0x20long0x2C0x20llvh0x3A0x3AHexPrintStyle0x2C0x20llvh0x3A0x3AOptional0x3Cunsigned0x20long0x3E0x29(ptr noundef %0, i32 noundef %1, i64 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #3 {
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = add i32 %7, -128
  store i32 %8, ptr %6, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = zext i32 %4 to i64
  %11 = add nuw nsw i64 %10, 4
  %12 = tail call i32 @i32_load8_u(ptr noundef nonnull %9, i64 noundef %11)
  %13 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %10)
  %14 = tail call i32 @w2c_hermes_0x5F_memset(ptr noundef %0, i32 noundef %8, i32 noundef 48, i32 noundef 128) #5
  %15 = tail call i32 @llvm.umin.i32(i32 %13, i32 128)
  %.not = icmp eq i32 %12, 0
  %16 = select i1 %.not, i32 0, i32 %15
  %.not139 = icmp eq i64 %2, 0
  %17 = tail call range(i64 0, 65) i64 @llvm.ctlz.i64(i64 %2, i1 false)
  %18 = trunc nuw nsw i64 %17 to i32
  %19 = sub nuw nsw i32 67, %18
  %20 = lshr i32 %19, 2
  %21 = icmp ult i64 %2, 16
  %22 = select i1 %21, i32 1, i32 %20
  %23 = and i32 %3, -2
  %24 = icmp eq i32 %23, 2
  %25 = select i1 %24, i32 2, i32 0
  %26 = add nuw nsw i32 %22, %25
  br i1 %24, label %27, label %30

27:                                               ; preds = %5
  %28 = zext i32 %14 to i64
  %29 = add nuw nsw i64 %28, 1
  tail call void @i32_store8(ptr noundef nonnull %9, i64 noundef %29, i32 noundef 120)
  br label %30

30:                                               ; preds = %27, %5
  %31 = tail call i32 @llvm.umax.i32(i32 %16, i32 %26)
  br i1 %.not139, label %.loopexit, label %32

32:                                               ; preds = %30
  %33 = and i32 %3, -3
  %.not140 = icmp eq i32 %33, 0
  %34 = select i1 %.not140, i32 55, i32 87
  %35 = add i32 %31, %14
  br label %36

36:                                               ; preds = %36, %32
  %.0137 = phi i32 [ %35, %32 ], [ %37, %36 ]
  %.0 = phi i64 [ %2, %32 ], [ %46, %36 ]
  %37 = add i32 %.0137, -1
  %38 = trunc i64 %.0 to i32
  %39 = and i32 %38, 15
  %40 = or disjoint i32 %39, 48
  %41 = add nuw nsw i32 %39, %34
  %42 = icmp ult i32 %39, 10
  %43 = select i1 %42, i32 %40, i32 %41
  %44 = zext i32 %37 to i64
  tail call void @i32_store8(ptr noundef nonnull %9, i64 noundef %44, i32 noundef %43)
  %45 = icmp ugt i64 %.0, 15
  %46 = lshr i64 %.0, 4
  br i1 %45, label %36, label %.loopexit

.loopexit:                                        ; preds = %36, %30
  %47 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %0, i32 noundef %1, i32 noundef %14, i32 noundef %31)
  %48 = add i32 %14, 128
  store i32 %48, ptr %6, align 8, !tbaa !5
  ret void
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.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 = { "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 }

!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,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass