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

; 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 i64 @i64_load(ptr noundef, i64 noundef) #2

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

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

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

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

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AStringBuilder0x3A0x3AappendCharacter0x28char16_t0x29(ptr noundef, i32 noundef, i32 noundef) #4

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

35:                                               ; preds = %3
  br label %181

36:                                               ; preds = %3
  %37 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %37, ptr %14, align 4, !tbaa !9
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.w2c_hermes, ptr %38, i32 0, i32 6
  %40 = load i32, ptr %14, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  %42 = call i32 @i32_load(ptr noundef %39, i64 noundef %41)
  store i32 %42, ptr %14, align 4, !tbaa !9
  %43 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %43, ptr %5, align 4, !tbaa !9
  %44 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %44, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %45 = load i32, ptr %16, align 4, !tbaa !9
  %46 = and i32 %45, 31
  %47 = load i32, ptr %15, align 4, !tbaa !9
  %48 = shl i32 %47, %46
  store i32 %48, ptr %15, align 4, !tbaa !9
  %49 = load i32, ptr %15, align 4, !tbaa !9
  %50 = load i32, ptr %14, align 4, !tbaa !9
  %51 = add i32 %50, %49
  store i32 %51, ptr %14, align 4, !tbaa !9
  %52 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %52, ptr %12, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %179, %36
  %54 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %54, ptr %14, align 4, !tbaa !9
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.w2c_hermes, ptr %55, i32 0, i32 6
  %57 = load i32, ptr %14, align 4, !tbaa !9
  %58 = zext i32 %57 to i64
  %59 = call i32 @i32_load16_u(ptr noundef %56, i64 noundef %58)
  store i32 %59, ptr %14, align 4, !tbaa !9
  %60 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %60, ptr %10, align 4, !tbaa !9
  store i32 9, ptr %15, align 4, !tbaa !9
  %61 = load i32, ptr %15, align 4, !tbaa !9
  %62 = load i32, ptr %14, align 4, !tbaa !9
  %63 = sub i32 %62, %61
  store i32 %63, ptr %14, align 4, !tbaa !9
  %64 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %64, ptr %7, align 4, !tbaa !9
  store i32 23, ptr %15, align 4, !tbaa !9
  %65 = load i32, ptr %14, align 4, !tbaa !9
  %66 = load i32, ptr %15, align 4, !tbaa !9
  %67 = icmp ule i32 %65, %66
  %68 = zext i1 %67 to i32
  store i32 %68, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %69 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %69, ptr %17, align 4, !tbaa !9
  %70 = load i32, ptr %17, align 4, !tbaa !9
  %71 = and i32 %70, 31
  %72 = load i32, ptr %16, align 4, !tbaa !9
  %73 = shl i32 %72, %71
  store i32 %73, ptr %16, align 4, !tbaa !9
  store i32 8388635, ptr %17, align 4, !tbaa !9
  %74 = load i32, ptr %17, align 4, !tbaa !9
  %75 = load i32, ptr %16, align 4, !tbaa !9
  %76 = and i32 %75, %74
  store i32 %76, ptr %16, align 4, !tbaa !9
  %77 = load i32, ptr %16, align 4, !tbaa !9
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %81

79:                                               ; preds = %53
  %80 = load i32, ptr %14, align 4, !tbaa !9
  br label %83

81:                                               ; preds = %53
  %82 = load i32, ptr %15, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %81, %79
  %84 = phi i32 [ %80, %79 ], [ %82, %81 ]
  store i32 %84, ptr %14, align 4, !tbaa !9
  %85 = load i32, ptr %14, align 4, !tbaa !9
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %88

87:                                               ; preds = %83
  br label %166

88:                                               ; preds = %83
  %89 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %89, ptr %14, align 4, !tbaa !9
  store i32 127, ptr %15, align 4, !tbaa !9
  %90 = load i32, ptr %14, align 4, !tbaa !9
  %91 = load i32, ptr %15, align 4, !tbaa !9
  %92 = icmp ugt i32 %90, %91
  %93 = zext i1 %92 to i32
  store i32 %93, ptr %14, align 4, !tbaa !9
  %94 = load i32, ptr %14, align 4, !tbaa !9
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %97

96:                                               ; preds = %88
  br label %252

97:                                               ; preds = %88
  %98 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %98, ptr %14, align 4, !tbaa !9
  store i32 61, ptr %15, align 4, !tbaa !9
  %99 = load i32, ptr %14, align 4, !tbaa !9
  %100 = load i32, ptr %15, align 4, !tbaa !9
  %101 = icmp eq i32 %99, %100
  %102 = zext i1 %101 to i32
  store i32 %102, ptr %14, align 4, !tbaa !9
  %103 = load i32, ptr %14, align 4, !tbaa !9
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %106

105:                                              ; preds = %97
  br label %181

106:                                              ; preds = %97
  %107 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %107, ptr %14, align 4, !tbaa !9
  store i32 252208, ptr %15, align 4, !tbaa !9
  %108 = load i32, ptr %15, align 4, !tbaa !9
  %109 = load i32, ptr %14, align 4, !tbaa !9
  %110 = add i32 %109, %108
  store i32 %110, ptr %14, align 4, !tbaa !9
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.w2c_hermes, ptr %111, i32 0, i32 6
  %113 = load i32, ptr %14, align 4, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = call i32 @i32_load8_u(ptr noundef %112, i64 noundef %114)
  store i32 %115, ptr %14, align 4, !tbaa !9
  %116 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %116, ptr %7, align 4, !tbaa !9
  store i32 63, ptr %15, align 4, !tbaa !9
  %117 = load i32, ptr %14, align 4, !tbaa !9
  %118 = load i32, ptr %15, align 4, !tbaa !9
  %119 = icmp ugt i32 %117, %118
  %120 = zext i1 %119 to i32
  store i32 %120, ptr %14, align 4, !tbaa !9
  %121 = load i32, ptr %14, align 4, !tbaa !9
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %124

123:                                              ; preds = %106
  br label %252

124:                                              ; preds = %106
  %125 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %125, ptr %14, align 4, !tbaa !9
  store i32 6, ptr %15, align 4, !tbaa !9
  %126 = load i32, ptr %15, align 4, !tbaa !9
  %127 = and i32 %126, 31
  %128 = load i32, ptr %14, align 4, !tbaa !9
  %129 = shl i32 %128, %127
  store i32 %129, ptr %14, align 4, !tbaa !9
  %130 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %130, ptr %15, align 4, !tbaa !9
  %131 = load i32, ptr %15, align 4, !tbaa !9
  %132 = load i32, ptr %14, align 4, !tbaa !9
  %133 = add i32 %132, %131
  store i32 %133, ptr %14, align 4, !tbaa !9
  %134 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %134, ptr %9, align 4, !tbaa !9
  %135 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %135, ptr %14, align 4, !tbaa !9
  store i32 2, ptr %15, align 4, !tbaa !9
  %136 = load i32, ptr %14, align 4, !tbaa !9
  %137 = load i32, ptr %15, align 4, !tbaa !9
  %138 = icmp ult i32 %136, %137
  %139 = zext i1 %138 to i32
  store i32 %139, ptr %14, align 4, !tbaa !9
  %140 = load i32, ptr %14, align 4, !tbaa !9
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %148

142:                                              ; preds = %124
  %143 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %143, ptr %14, align 4, !tbaa !9
  store i32 6, ptr %15, align 4, !tbaa !9
  %144 = load i32, ptr %15, align 4, !tbaa !9
  %145 = load i32, ptr %14, align 4, !tbaa !9
  %146 = add i32 %145, %144
  store i32 %146, ptr %14, align 4, !tbaa !9
  %147 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %147, ptr %8, align 4, !tbaa !9
  br label %166

148:                                              ; preds = %124
  %149 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %149, ptr %14, align 4, !tbaa !9
  %150 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %150, ptr %15, align 4, !tbaa !9
  %151 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %151, ptr %16, align 4, !tbaa !9
  store i32 2, ptr %17, align 4, !tbaa !9
  %152 = load i32, ptr %17, align 4, !tbaa !9
  %153 = load i32, ptr %16, align 4, !tbaa !9
  %154 = sub i32 %153, %152
  store i32 %154, ptr %16, align 4, !tbaa !9
  %155 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %155, ptr %8, align 4, !tbaa !9
  %156 = load i32, ptr %16, align 4, !tbaa !9
  %157 = and i32 %156, 31
  %158 = load i32, ptr %15, align 4, !tbaa !9
  %159 = lshr i32 %158, %157
  store i32 %159, ptr %15, align 4, !tbaa !9
  store i32 255, ptr %16, align 4, !tbaa !9
  %160 = load i32, ptr %16, align 4, !tbaa !9
  %161 = load i32, ptr %15, align 4, !tbaa !9
  %162 = and i32 %161, %160
  store i32 %162, ptr %15, align 4, !tbaa !9
  %163 = load ptr, ptr %4, align 8, !tbaa !5
  %164 = load i32, ptr %14, align 4, !tbaa !9
  %165 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AStringBuilder0x3A0x3AappendCharacter0x28char16_t0x29(ptr noundef %163, i32 noundef %164, i32 noundef %165)
  br label %166

166:                                              ; preds = %148, %142, %87
  %167 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %167, ptr %14, align 4, !tbaa !9
  store i32 2, ptr %15, align 4, !tbaa !9
  %168 = load i32, ptr %15, align 4, !tbaa !9
  %169 = load i32, ptr %14, align 4, !tbaa !9
  %170 = add i32 %169, %168
  store i32 %170, ptr %14, align 4, !tbaa !9
  %171 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %171, ptr %5, align 4, !tbaa !9
  %172 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %172, ptr %15, align 4, !tbaa !9
  %173 = load i32, ptr %14, align 4, !tbaa !9
  %174 = load i32, ptr %15, align 4, !tbaa !9
  %175 = icmp ne i32 %173, %174
  %176 = zext i1 %175 to i32
  store i32 %176, ptr %14, align 4, !tbaa !9
  %177 = load i32, ptr %14, align 4, !tbaa !9
  %178 = icmp ne i32 %177, 0
  br i1 %178, label %179, label %180

179:                                              ; preds = %166
  br label %53

180:                                              ; preds = %166
  br label %181

181:                                              ; preds = %180, %105, %35
  %182 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %182, ptr %14, align 4, !tbaa !9
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.w2c_hermes, ptr %183, i32 0, i32 6
  %185 = load i32, ptr %14, align 4, !tbaa !9
  %186 = zext i32 %185 to i64
  %187 = add i64 %186, 4
  %188 = call i32 @i32_load(ptr noundef %184, i64 noundef %187)
  store i32 %188, ptr %14, align 4, !tbaa !9
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.w2c_hermes, ptr %189, i32 0, i32 6
  %191 = load i32, ptr %14, align 4, !tbaa !9
  %192 = zext i32 %191 to i64
  %193 = call i64 @i64_load(ptr noundef %190, i64 noundef %192)
  store i64 %193, ptr %19, align 8, !tbaa !11
  %194 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %194, ptr %13, align 8, !tbaa !11
  store i64 48, ptr %20, align 8, !tbaa !11
  %195 = load i64, ptr %19, align 8, !tbaa !11
  %196 = load i64, ptr %20, align 8, !tbaa !11
  %197 = and i64 %196, 63
  %198 = ashr i64 %195, %197
  store i64 %198, ptr %19, align 8, !tbaa !11
  %199 = load i64, ptr %19, align 8, !tbaa !11
  %200 = trunc i64 %199 to i32
  store i32 %200, ptr %14, align 4, !tbaa !9
  store i32 -3, ptr %15, align 4, !tbaa !9
  %201 = load i32, ptr %14, align 4, !tbaa !9
  %202 = load i32, ptr %15, align 4, !tbaa !9
  %203 = icmp ne i32 %201, %202
  %204 = zext i1 %203 to i32
  store i32 %204, ptr %14, align 4, !tbaa !9
  %205 = load i32, ptr %14, align 4, !tbaa !9
  %206 = icmp ne i32 %205, 0
  br i1 %206, label %207, label %208

207:                                              ; preds = %181
  br label %254

208:                                              ; preds = %181
  %209 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %209, ptr %19, align 8, !tbaa !11
  store i64 -844424930131969, ptr %20, align 8, !tbaa !11
  %210 = load i64, ptr %19, align 8, !tbaa !11
  %211 = load i64, ptr %20, align 8, !tbaa !11
  %212 = icmp ule i64 %210, %211
  %213 = zext i1 %212 to i32
  store i32 %213, ptr %14, align 4, !tbaa !9
  %214 = load i32, ptr %14, align 4, !tbaa !9
  %215 = icmp ne i32 %214, 0
  br i1 %215, label %216, label %217

216:                                              ; preds = %208
  br label %272

217:                                              ; preds = %208
  %218 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %218, ptr %19, align 8, !tbaa !11
  %219 = load i64, ptr %19, align 8, !tbaa !11
  %220 = trunc i64 %219 to i32
  store i32 %220, ptr %14, align 4, !tbaa !9
  %221 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %221, ptr %5, align 4, !tbaa !9
  %222 = load i32, ptr %14, align 4, !tbaa !9
  %223 = icmp ne i32 %222, 0
  %224 = xor i1 %223, true
  %225 = zext i1 %224 to i32
  store i32 %225, ptr %14, align 4, !tbaa !9
  %226 = load i32, ptr %14, align 4, !tbaa !9
  %227 = icmp ne i32 %226, 0
  br i1 %227, label %228, label %229

228:                                              ; preds = %217
  br label %290

229:                                              ; preds = %217
  %230 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %230, ptr %14, align 4, !tbaa !9
  %231 = load ptr, ptr %4, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.w2c_hermes, ptr %231, i32 0, i32 6
  %233 = load i32, ptr %14, align 4, !tbaa !9
  %234 = zext i32 %233 to i64
  %235 = add i64 %234, 8
  %236 = call i32 @i32_load(ptr noundef %232, i64 noundef %235)
  store i32 %236, ptr %14, align 4, !tbaa !9
  %237 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %237, ptr %15, align 4, !tbaa !9
  %238 = load ptr, ptr %4, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.w2c_hermes, ptr %238, i32 0, i32 6
  %240 = load i32, ptr %15, align 4, !tbaa !9
  %241 = zext i32 %240 to i64
  %242 = add i64 %241, 12
  %243 = call i32 @i32_load(ptr noundef %239, i64 noundef %242)
  store i32 %243, ptr %15, align 4, !tbaa !9
  store i32 2147483647, ptr %16, align 4, !tbaa !9
  %244 = load i32, ptr %16, align 4, !tbaa !9
  %245 = load i32, ptr %15, align 4, !tbaa !9
  %246 = and i32 %245, %244
  store i32 %246, ptr %15, align 4, !tbaa !9
  %247 = load i32, ptr %14, align 4, !tbaa !9
  %248 = load i32, ptr %15, align 4, !tbaa !9
  %249 = icmp eq i32 %247, %248
  %250 = zext i1 %249 to i32
  store i32 %250, ptr %14, align 4, !tbaa !9
  %251 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %251, ptr %11, align 4, !tbaa !9
  br label %252

252:                                              ; preds = %229, %123, %96
  %253 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %253, ptr %14, align 4, !tbaa !9
  br label %308

254:                                              ; preds = %207
  store i32 0, ptr %14, align 4, !tbaa !9
  %255 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %255, ptr %5, align 4, !tbaa !9
  store i32 118502, ptr %15, align 4, !tbaa !9
  %256 = load i32, ptr %15, align 4, !tbaa !9
  %257 = load i32, ptr %14, align 4, !tbaa !9
  %258 = add i32 %257, %256
  store i32 %258, ptr %14, align 4, !tbaa !9
  %259 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %259, ptr %15, align 4, !tbaa !9
  store i32 83341, ptr %16, align 4, !tbaa !9
  %260 = load i32, ptr %16, align 4, !tbaa !9
  %261 = load i32, ptr %15, align 4, !tbaa !9
  %262 = add i32 %261, %260
  store i32 %262, ptr %15, align 4, !tbaa !9
  store i32 470, ptr %16, align 4, !tbaa !9
  %263 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %263, ptr %17, align 4, !tbaa !9
  store i32 87089, ptr %18, align 4, !tbaa !9
  %264 = load i32, ptr %18, align 4, !tbaa !9
  %265 = load i32, ptr %17, align 4, !tbaa !9
  %266 = add i32 %265, %264
  store i32 %266, ptr %17, align 4, !tbaa !9
  %267 = load ptr, ptr %4, align 8, !tbaa !5
  %268 = load i32, ptr %14, align 4, !tbaa !9
  %269 = load i32, ptr %15, align 4, !tbaa !9
  %270 = load i32, ptr %16, align 4, !tbaa !9
  %271 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %267, i32 noundef %268, i32 noundef %269, i32 noundef %270, i32 noundef %271)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

272:                                              ; preds = %216
  store i32 0, ptr %14, align 4, !tbaa !9
  %273 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %273, ptr %5, align 4, !tbaa !9
  store i32 118273, ptr %15, align 4, !tbaa !9
  %274 = load i32, ptr %15, align 4, !tbaa !9
  %275 = load i32, ptr %14, align 4, !tbaa !9
  %276 = add i32 %275, %274
  store i32 %276, ptr %14, align 4, !tbaa !9
  %277 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %277, ptr %15, align 4, !tbaa !9
  store i32 83341, ptr %16, align 4, !tbaa !9
  %278 = load i32, ptr %16, align 4, !tbaa !9
  %279 = load i32, ptr %15, align 4, !tbaa !9
  %280 = add i32 %279, %278
  store i32 %280, ptr %15, align 4, !tbaa !9
  store i32 438, ptr %16, align 4, !tbaa !9
  %281 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %281, ptr %17, align 4, !tbaa !9
  store i32 49706, ptr %18, align 4, !tbaa !9
  %282 = load i32, ptr %18, align 4, !tbaa !9
  %283 = load i32, ptr %17, align 4, !tbaa !9
  %284 = add i32 %283, %282
  store i32 %284, ptr %17, align 4, !tbaa !9
  %285 = load ptr, ptr %4, align 8, !tbaa !5
  %286 = load i32, ptr %14, align 4, !tbaa !9
  %287 = load i32, ptr %15, align 4, !tbaa !9
  %288 = load i32, ptr %16, align 4, !tbaa !9
  %289 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %285, i32 noundef %286, i32 noundef %287, i32 noundef %288, i32 noundef %289)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

290:                                              ; preds = %228
  store i32 0, ptr %14, align 4, !tbaa !9
  %291 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %291, ptr %5, align 4, !tbaa !9
  store i32 168498, ptr %15, align 4, !tbaa !9
  %292 = load i32, ptr %15, align 4, !tbaa !9
  %293 = load i32, ptr %14, align 4, !tbaa !9
  %294 = add i32 %293, %292
  store i32 %294, ptr %14, align 4, !tbaa !9
  %295 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %295, ptr %15, align 4, !tbaa !9
  store i32 78081, ptr %16, align 4, !tbaa !9
  %296 = load i32, ptr %16, align 4, !tbaa !9
  %297 = load i32, ptr %15, align 4, !tbaa !9
  %298 = add i32 %297, %296
  store i32 %298, ptr %15, align 4, !tbaa !9
  store i32 233, ptr %16, align 4, !tbaa !9
  %299 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %299, ptr %17, align 4, !tbaa !9
  store i32 20456, ptr %18, align 4, !tbaa !9
  %300 = load i32, ptr %18, align 4, !tbaa !9
  %301 = load i32, ptr %17, align 4, !tbaa !9
  %302 = add i32 %301, %300
  store i32 %302, ptr %17, align 4, !tbaa !9
  %303 = load ptr, ptr %4, align 8, !tbaa !5
  %304 = load i32, ptr %14, align 4, !tbaa !9
  %305 = load i32, ptr %15, align 4, !tbaa !9
  %306 = load i32, ptr %16, align 4, !tbaa !9
  %307 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %303, i32 noundef %304, i32 noundef %305, i32 noundef %306, i32 noundef %307)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

308:                                              ; preds = %252
  %309 = load i32, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret i32 %309
}

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 = { 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 = { "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 i64 @i64_load(ptr noundef, i64 noundef) local_unnamed_addr #1

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

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

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

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

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AStringBuilder0x3A0x3AappendCharacter0x28char16_t0x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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

8:                                                ; preds = %3
  %9 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %5)
  %10 = shl i32 %7, 1
  %11 = add i32 %9, %10
  br label %12

12:                                               ; preds = %40, %8
  %.0165 = phi i32 [ %9, %8 ], [ %41, %40 ]
  %.0163 = phi i32 [ 0, %8 ], [ %.1164, %40 ]
  %.0162 = phi i32 [ 0, %8 ], [ %.1, %40 ]
  %13 = zext i32 %.0165 to i64
  %14 = tail call i32 @i32_load16_u(ptr noundef nonnull %4, i64 noundef %13)
  %15 = add i32 %14, -9
  %16 = icmp ult i32 %15, 24
  %17 = and i32 %15, 31
  %18 = shl nuw i32 1, %17
  %19 = and i32 %18, 8388635
  %.not170 = icmp ne i32 %19, 0
  %narrow = and i1 %16, %.not170
  br i1 %narrow, label %40, label %20

20:                                               ; preds = %12
  %21 = icmp ugt i32 %14, 127
  br i1 %21, label %.loopexit, label %22

22:                                               ; preds = %20
  %23 = icmp eq i32 %14, 61
  br i1 %23, label %.loopexit174, label %24

24:                                               ; preds = %22
  %25 = add nuw nsw i32 %14, 252208
  %26 = zext nneg i32 %25 to i64
  %27 = tail call i32 @i32_load8_u(ptr noundef nonnull %4, i64 noundef %26)
  %28 = icmp ugt i32 %27, 63
  br i1 %28, label %.loopexit, label %29

29:                                               ; preds = %24
  %30 = shl i32 %.0162, 6
  %31 = or disjoint i32 %27, %30
  %32 = icmp ult i32 %.0163, 2
  br i1 %32, label %33, label %35

33:                                               ; preds = %29
  %34 = or disjoint i32 %.0163, 6
  br label %40

35:                                               ; preds = %29
  %36 = add nsw i32 %.0163, -2
  %37 = and i32 %36, 31
  %38 = lshr i32 %31, %37
  %39 = and i32 %38, 255
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AStringBuilder0x3A0x3AappendCharacter0x28char16_t0x29(ptr noundef %0, i32 noundef %2, i32 noundef %39) #4
  br label %40

40:                                               ; preds = %12, %35, %33
  %.1164 = phi i32 [ %.0163, %12 ], [ %34, %33 ], [ %36, %35 ]
  %.1 = phi i32 [ %.0162, %12 ], [ %31, %33 ], [ %31, %35 ]
  %41 = add i32 %.0165, 2
  %.not171 = icmp eq i32 %41, %11
  br i1 %.not171, label %.loopexit174, label %12

.loopexit174:                                     ; preds = %40, %22, %3
  %42 = zext i32 %2 to i64
  %43 = add nuw nsw i64 %42, 4
  %44 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %43)
  %45 = zext i32 %44 to i64
  %46 = tail call i64 @i64_load(ptr noundef nonnull %4, i64 noundef %45)
  %.mask = and i64 %46, -281474976710656
  %.not172 = icmp eq i64 %.mask, -844424930131968
  br i1 %.not172, label %47, label %57

47:                                               ; preds = %.loopexit174
  %48 = and i64 %46, 4294967295
  %.not173 = icmp eq i64 %48, 0
  br i1 %.not173, label %58, label %49

49:                                               ; preds = %47
  %50 = add nuw nsw i64 %42, 8
  %51 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %50)
  %52 = add nuw nsw i64 %48, 12
  %53 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %52)
  %54 = and i32 %53, 2147483647
  %55 = icmp eq i32 %51, %54
  %56 = zext i1 %55 to i32
  br label %.loopexit

.loopexit:                                        ; preds = %24, %20, %49
  %.0 = phi i32 [ %56, %49 ], [ 0, %20 ], [ 0, %24 ]
  ret i32 %.0

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

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

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 = { 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 }
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,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass