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

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

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

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

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

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AEvacAcceptor0x3Ctrue0x3E0x3A0x3AacceptHeap0x28hermes0x3A0x3Avm0x3A0x3AGCCell0x2A0x2C0x20void0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #4 {
  %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
  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) #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
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %16 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %16, ptr %11, align 4, !tbaa !9
  store i32 -4194304, ptr %12, align 4, !tbaa !9
  %17 = load i32, ptr %12, align 4, !tbaa !9
  %18 = load i32, ptr %11, align 4, !tbaa !9
  %19 = and i32 %18, %17
  store i32 %19, ptr %11, align 4, !tbaa !9
  %20 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %20, ptr %9, align 4, !tbaa !9
  %21 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %21, ptr %12, align 4, !tbaa !9
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.w2c_hermes, ptr %22, i32 0, i32 6
  %24 = load i32, ptr %12, align 4, !tbaa !9
  %25 = zext i32 %24 to i64
  %26 = add i64 %25, 12
  %27 = call i32 @i32_load(ptr noundef %23, i64 noundef %26)
  store i32 %27, ptr %12, align 4, !tbaa !9
  %28 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %28, ptr %10, 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 = add i64 %32, 588
  %34 = call i32 @i32_load(ptr noundef %30, i64 noundef %33)
  store i32 %34, ptr %12, align 4, !tbaa !9
  %35 = load i32, ptr %11, align 4, !tbaa !9
  %36 = load i32, ptr %12, align 4, !tbaa !9
  %37 = icmp ne i32 %35, %36
  %38 = zext i1 %37 to i32
  store i32 %38, ptr %11, align 4, !tbaa !9
  %39 = load i32, ptr %11, align 4, !tbaa !9
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %60

41:                                               ; preds = %4
  %42 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %42, ptr %11, align 4, !tbaa !9
  store i32 4456, ptr %12, align 4, !tbaa !9
  %43 = load i32, ptr %12, align 4, !tbaa !9
  %44 = load i32, ptr %11, align 4, !tbaa !9
  %45 = add i32 %44, %43
  store i32 %45, ptr %11, align 4, !tbaa !9
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.w2c_hermes, ptr %46, i32 0, i32 6
  %48 = load i32, ptr %11, align 4, !tbaa !9
  %49 = zext i32 %48 to i64
  %50 = call i32 @i32_load(ptr noundef %47, i64 noundef %49)
  store i32 %50, ptr %11, align 4, !tbaa !9
  %51 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %51, ptr %12, align 4, !tbaa !9
  %52 = load i32, ptr %11, align 4, !tbaa !9
  %53 = load i32, ptr %12, align 4, !tbaa !9
  %54 = icmp ne i32 %52, %53
  %55 = zext i1 %54 to i32
  store i32 %55, ptr %11, align 4, !tbaa !9
  %56 = load i32, ptr %11, align 4, !tbaa !9
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %59

58:                                               ; preds = %41
  br label %148

59:                                               ; preds = %41
  br label %60

60:                                               ; preds = %59, %4
  %61 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %61, ptr %11, align 4, !tbaa !9
  store i32 16384, ptr %12, align 4, !tbaa !9
  %62 = load i32, ptr %12, align 4, !tbaa !9
  %63 = load i32, ptr %11, align 4, !tbaa !9
  %64 = add i32 %63, %62
  store i32 %64, ptr %11, align 4, !tbaa !9
  %65 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %65, ptr %9, align 4, !tbaa !9
  %66 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %66, ptr %12, align 4, !tbaa !9
  %67 = load i32, ptr %11, align 4, !tbaa !9
  %68 = load i32, ptr %12, align 4, !tbaa !9
  %69 = icmp ugt i32 %67, %68
  %70 = zext i1 %69 to i32
  store i32 %70, ptr %11, align 4, !tbaa !9
  %71 = load i32, ptr %11, align 4, !tbaa !9
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %74

73:                                               ; preds = %60
  br label %210

74:                                               ; preds = %60
  %75 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %75, ptr %11, align 4, !tbaa !9
  store i32 -4194304, ptr %12, align 4, !tbaa !9
  %76 = load i32, ptr %12, align 4, !tbaa !9
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = and i32 %77, %76
  store i32 %78, ptr %11, align 4, !tbaa !9
  store i32 4194304, ptr %12, align 4, !tbaa !9
  %79 = load i32, ptr %12, align 4, !tbaa !9
  %80 = load i32, ptr %11, align 4, !tbaa !9
  %81 = add i32 %80, %79
  store i32 %81, ptr %11, align 4, !tbaa !9
  %82 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %82, ptr %12, align 4, !tbaa !9
  %83 = load i32, ptr %11, align 4, !tbaa !9
  %84 = load i32, ptr %12, align 4, !tbaa !9
  %85 = icmp ule i32 %83, %84
  %86 = zext i1 %85 to i32
  store i32 %86, ptr %11, align 4, !tbaa !9
  %87 = load i32, ptr %11, align 4, !tbaa !9
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %90

89:                                               ; preds = %74
  br label %210

90:                                               ; preds = %74
  %91 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %91, ptr %11, align 4, !tbaa !9
  %92 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %92, ptr %12, align 4, !tbaa !9
  %93 = load i32, ptr %12, align 4, !tbaa !9
  %94 = load i32, ptr %11, align 4, !tbaa !9
  %95 = sub i32 %94, %93
  store i32 %95, ptr %11, align 4, !tbaa !9
  %96 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %96, ptr %10, align 4, !tbaa !9
  store i32 4194304, ptr %12, align 4, !tbaa !9
  %97 = load i32, ptr %11, align 4, !tbaa !9
  %98 = load i32, ptr %12, align 4, !tbaa !9
  %99 = icmp uge i32 %97, %98
  %100 = zext i1 %99 to i32
  store i32 %100, ptr %11, align 4, !tbaa !9
  %101 = load i32, ptr %11, align 4, !tbaa !9
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %104

103:                                              ; preds = %90
  br label %228

104:                                              ; preds = %90
  %105 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %105, ptr %11, align 4, !tbaa !9
  %106 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %106, ptr %12, align 4, !tbaa !9
  store i32 6, ptr %13, align 4, !tbaa !9
  %107 = load i32, ptr %13, align 4, !tbaa !9
  %108 = and i32 %107, 31
  %109 = load i32, ptr %12, align 4, !tbaa !9
  %110 = lshr i32 %109, %108
  store i32 %110, ptr %12, align 4, !tbaa !9
  store i32 67108860, ptr %13, align 4, !tbaa !9
  %111 = load i32, ptr %13, align 4, !tbaa !9
  %112 = load i32, ptr %12, align 4, !tbaa !9
  %113 = and i32 %112, %111
  store i32 %113, ptr %12, align 4, !tbaa !9
  %114 = load i32, ptr %12, align 4, !tbaa !9
  %115 = load i32, ptr %11, align 4, !tbaa !9
  %116 = add i32 %115, %114
  store i32 %116, ptr %11, align 4, !tbaa !9
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.w2c_hermes, ptr %117, i32 0, i32 6
  %119 = load i32, ptr %11, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = call i32 @i32_load(ptr noundef %118, i64 noundef %120)
  store i32 %121, ptr %11, align 4, !tbaa !9
  %122 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %122, ptr %12, align 4, !tbaa !9
  store i32 3, ptr %13, align 4, !tbaa !9
  %123 = load i32, ptr %13, align 4, !tbaa !9
  %124 = and i32 %123, 31
  %125 = load i32, ptr %12, align 4, !tbaa !9
  %126 = lshr i32 %125, %124
  store i32 %126, ptr %12, align 4, !tbaa !9
  %127 = load i32, ptr %12, align 4, !tbaa !9
  %128 = and i32 %127, 31
  %129 = load i32, ptr %11, align 4, !tbaa !9
  %130 = lshr i32 %129, %128
  store i32 %130, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %131 = load i32, ptr %12, align 4, !tbaa !9
  %132 = load i32, ptr %11, align 4, !tbaa !9
  %133 = and i32 %132, %131
  store i32 %133, ptr %11, align 4, !tbaa !9
  %134 = load i32, ptr %11, align 4, !tbaa !9
  %135 = icmp ne i32 %134, 0
  %136 = xor i1 %135, true
  %137 = zext i1 %136 to i32
  store i32 %137, ptr %11, align 4, !tbaa !9
  %138 = load i32, ptr %11, align 4, !tbaa !9
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %141

140:                                              ; preds = %104
  br label %246

141:                                              ; preds = %104
  %142 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %142, ptr %11, align 4, !tbaa !9
  %143 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %143, ptr %12, align 4, !tbaa !9
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = load i32, ptr %11, align 4, !tbaa !9
  %146 = load i32, ptr %12, align 4, !tbaa !9
  %147 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCCell0x2A0x20hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AEvacAcceptor0x3Ctrue0x3E0x3A0x3AforwardCell0x3Chermes0x3A0x3Avm0x3A0x3AGCCell0x2A0x3E0x28hermes0x3A0x3Avm0x3A0x3AGCCell0x2A0x29(ptr noundef %144, i32 noundef %145, i32 noundef %146)
  store i32 %147, ptr %11, align 4, !tbaa !9
  br label %282

148:                                              ; preds = %58
  %149 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %149, ptr %11, align 4, !tbaa !9
  %150 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %150, ptr %12, align 4, !tbaa !9
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.w2c_hermes, ptr %151, i32 0, i32 6
  %153 = load i32, ptr %12, align 4, !tbaa !9
  %154 = zext i32 %153 to i64
  %155 = add i64 %154, 4448
  %156 = call i32 @i32_load(ptr noundef %152, i64 noundef %155)
  store i32 %156, ptr %12, align 4, !tbaa !9
  %157 = load i32, ptr %11, align 4, !tbaa !9
  %158 = load i32, ptr %12, align 4, !tbaa !9
  %159 = icmp eq i32 %157, %158
  %160 = zext i1 %159 to i32
  store i32 %160, ptr %11, align 4, !tbaa !9
  %161 = load i32, ptr %11, align 4, !tbaa !9
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %163, label %208

163:                                              ; preds = %148
  %164 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %164, ptr %11, align 4, !tbaa !9
  store i32 -4194304, ptr %12, align 4, !tbaa !9
  %165 = load i32, ptr %12, align 4, !tbaa !9
  %166 = load i32, ptr %11, align 4, !tbaa !9
  %167 = and i32 %166, %165
  store i32 %167, ptr %11, align 4, !tbaa !9
  %168 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %168, ptr %9, align 4, !tbaa !9
  %169 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %169, ptr %12, align 4, !tbaa !9
  %170 = load i32, ptr %11, align 4, !tbaa !9
  %171 = load i32, ptr %12, align 4, !tbaa !9
  %172 = icmp ugt i32 %170, %171
  %173 = zext i1 %172 to i32
  store i32 %173, ptr %11, align 4, !tbaa !9
  %174 = load i32, ptr %11, align 4, !tbaa !9
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %176, label %177

176:                                              ; preds = %163
  br label %264

177:                                              ; preds = %163
  %178 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %178, ptr %11, align 4, !tbaa !9
  store i32 4194816, ptr %12, align 4, !tbaa !9
  %179 = load i32, ptr %12, align 4, !tbaa !9
  %180 = load i32, ptr %11, align 4, !tbaa !9
  %181 = add i32 %180, %179
  store i32 %181, ptr %11, align 4, !tbaa !9
  %182 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %182, ptr %12, align 4, !tbaa !9
  %183 = load i32, ptr %11, align 4, !tbaa !9
  %184 = load i32, ptr %12, align 4, !tbaa !9
  %185 = icmp ule i32 %183, %184
  %186 = zext i1 %185 to i32
  store i32 %186, ptr %11, align 4, !tbaa !9
  %187 = load i32, ptr %11, align 4, !tbaa !9
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %189, label %190

189:                                              ; preds = %177
  br label %264

190:                                              ; preds = %177
  %191 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %191, ptr %11, align 4, !tbaa !9
  %192 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %192, ptr %12, align 4, !tbaa !9
  store i32 9, ptr %13, align 4, !tbaa !9
  %193 = load i32, ptr %13, align 4, !tbaa !9
  %194 = and i32 %193, 31
  %195 = load i32, ptr %12, align 4, !tbaa !9
  %196 = lshr i32 %195, %194
  store i32 %196, ptr %12, align 4, !tbaa !9
  store i32 8191, ptr %13, align 4, !tbaa !9
  %197 = load i32, ptr %13, align 4, !tbaa !9
  %198 = load i32, ptr %12, align 4, !tbaa !9
  %199 = and i32 %198, %197
  store i32 %199, ptr %12, align 4, !tbaa !9
  %200 = load i32, ptr %12, align 4, !tbaa !9
  %201 = load i32, ptr %11, align 4, !tbaa !9
  %202 = add i32 %201, %200
  store i32 %202, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %203 = load ptr, ptr %5, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.w2c_hermes, ptr %203, i32 0, i32 6
  %205 = load i32, ptr %11, align 4, !tbaa !9
  %206 = zext i32 %205 to i64
  %207 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %204, i64 noundef %206, i32 noundef %207)
  br label %208

208:                                              ; preds = %190, %148
  %209 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %209, ptr %11, align 4, !tbaa !9
  br label %282

210:                                              ; preds = %89, %73
  store i32 0, ptr %11, align 4, !tbaa !9
  %211 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %211, ptr %7, align 4, !tbaa !9
  store i32 170852, ptr %12, align 4, !tbaa !9
  %212 = load i32, ptr %12, align 4, !tbaa !9
  %213 = load i32, ptr %11, align 4, !tbaa !9
  %214 = add i32 %213, %212
  store i32 %214, ptr %11, align 4, !tbaa !9
  %215 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %215, ptr %12, align 4, !tbaa !9
  store i32 86240, ptr %13, align 4, !tbaa !9
  %216 = load i32, ptr %13, align 4, !tbaa !9
  %217 = load i32, ptr %12, align 4, !tbaa !9
  %218 = add i32 %217, %216
  store i32 %218, ptr %12, align 4, !tbaa !9
  store i32 118, ptr %13, align 4, !tbaa !9
  %219 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %219, ptr %14, align 4, !tbaa !9
  store i32 19893, ptr %15, align 4, !tbaa !9
  %220 = load i32, ptr %15, align 4, !tbaa !9
  %221 = load i32, ptr %14, align 4, !tbaa !9
  %222 = add i32 %221, %220
  store i32 %222, ptr %14, align 4, !tbaa !9
  %223 = load ptr, ptr %5, align 8, !tbaa !5
  %224 = load i32, ptr %11, align 4, !tbaa !9
  %225 = load i32, ptr %12, align 4, !tbaa !9
  %226 = load i32, ptr %13, align 4, !tbaa !9
  %227 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %223, i32 noundef %224, i32 noundef %225, i32 noundef %226, i32 noundef %227)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

228:                                              ; preds = %103
  store i32 0, ptr %11, align 4, !tbaa !9
  %229 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %229, ptr %7, align 4, !tbaa !9
  store i32 169713, ptr %12, align 4, !tbaa !9
  %230 = load i32, ptr %12, align 4, !tbaa !9
  %231 = load i32, ptr %11, align 4, !tbaa !9
  %232 = add i32 %231, %230
  store i32 %232, ptr %11, align 4, !tbaa !9
  %233 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %233, ptr %12, align 4, !tbaa !9
  store i32 86240, ptr %13, align 4, !tbaa !9
  %234 = load i32, ptr %13, align 4, !tbaa !9
  %235 = load i32, ptr %12, align 4, !tbaa !9
  %236 = add i32 %235, %234
  store i32 %236, ptr %12, align 4, !tbaa !9
  store i32 134, ptr %13, align 4, !tbaa !9
  %237 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %237, ptr %14, align 4, !tbaa !9
  store i32 39587, ptr %15, align 4, !tbaa !9
  %238 = load i32, ptr %15, align 4, !tbaa !9
  %239 = load i32, ptr %14, align 4, !tbaa !9
  %240 = add i32 %239, %238
  store i32 %240, ptr %14, align 4, !tbaa !9
  %241 = load ptr, ptr %5, align 8, !tbaa !5
  %242 = load i32, ptr %11, align 4, !tbaa !9
  %243 = load i32, ptr %12, align 4, !tbaa !9
  %244 = load i32, ptr %13, align 4, !tbaa !9
  %245 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %241, i32 noundef %242, i32 noundef %243, i32 noundef %244, i32 noundef %245)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

246:                                              ; preds = %140
  store i32 0, ptr %11, align 4, !tbaa !9
  %247 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %247, ptr %7, align 4, !tbaa !9
  store i32 191444, ptr %12, align 4, !tbaa !9
  %248 = load i32, ptr %12, align 4, !tbaa !9
  %249 = load i32, ptr %11, align 4, !tbaa !9
  %250 = add i32 %249, %248
  store i32 %250, ptr %11, align 4, !tbaa !9
  %251 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %251, ptr %12, align 4, !tbaa !9
  store i32 62693, ptr %13, align 4, !tbaa !9
  %252 = load i32, ptr %13, align 4, !tbaa !9
  %253 = load i32, ptr %12, align 4, !tbaa !9
  %254 = add i32 %253, %252
  store i32 %254, ptr %12, align 4, !tbaa !9
  store i32 435, ptr %13, align 4, !tbaa !9
  %255 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %255, ptr %14, align 4, !tbaa !9
  store i32 63384, 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 ptr, ptr %5, align 8, !tbaa !5
  %260 = load i32, ptr %11, align 4, !tbaa !9
  %261 = load i32, ptr %12, align 4, !tbaa !9
  %262 = load i32, ptr %13, align 4, !tbaa !9
  %263 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %259, i32 noundef %260, i32 noundef %261, i32 noundef %262, i32 noundef %263)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

264:                                              ; preds = %189, %176
  store i32 0, ptr %11, align 4, !tbaa !9
  %265 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %265, ptr %7, align 4, !tbaa !9
  store i32 196978, ptr %12, align 4, !tbaa !9
  %266 = load i32, ptr %12, align 4, !tbaa !9
  %267 = load i32, ptr %11, align 4, !tbaa !9
  %268 = add i32 %267, %266
  store i32 %268, ptr %11, align 4, !tbaa !9
  %269 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %269, ptr %12, align 4, !tbaa !9
  store i32 86311, 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
  store i32 300, ptr %13, align 4, !tbaa !9
  %273 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %273, ptr %14, align 4, !tbaa !9
  store i32 19893, 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 ptr, ptr %5, align 8, !tbaa !5
  %278 = load i32, ptr %11, align 4, !tbaa !9
  %279 = load i32, ptr %12, align 4, !tbaa !9
  %280 = load i32, ptr %13, align 4, !tbaa !9
  %281 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %277, i32 noundef %278, i32 noundef %279, i32 noundef %280, i32 noundef %281)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

282:                                              ; preds = %208, %141
  %283 = load i32, ptr %11, align 4, !tbaa !9
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret i32 %283
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { 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 #4 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { noreturn }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}


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

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AEvacAcceptor0x3Ctrue0x3E0x3A0x3AacceptHeap0x28hermes0x3A0x3Avm0x3A0x3AGCCell0x2A0x2C0x20void0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = and i32 %2, -4194304
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = zext i32 %1 to i64
  %8 = add nuw nsw i64 %7, 12
  %9 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %8)
  %10 = zext i32 %9 to i64
  %11 = add nuw nsw i64 %10, 588
  %12 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %11)
  %.not = icmp eq i32 %5, %12
  br i1 %.not, label %17, label %13

13:                                               ; preds = %4
  %14 = add i32 %9, 4456
  %15 = zext i32 %14 to i64
  %16 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %15)
  %.not166 = icmp eq i32 %16, %5
  br i1 %.not166, label %17, label %36

17:                                               ; preds = %13, %4
  %18 = or disjoint i32 %5, 16384
  %19 = icmp ule i32 %18, %2
  %20 = add i32 %5, 4194304
  %.not167 = icmp ugt i32 %20, %2
  %or.cond = and i1 %19, %.not167
  br i1 %or.cond, label %21, label %48

21:                                               ; preds = %17
  %22 = sub i32 %2, %18
  %23 = icmp ugt i32 %22, 4194303
  br i1 %23, label %49, label %24

24:                                               ; preds = %21
  %25 = lshr i32 %22, 6
  %26 = and i32 %25, 65532
  %27 = add nuw nsw i32 %26, %18
  %28 = zext i32 %27 to i64
  %29 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %28)
  %30 = lshr i32 %2, 3
  %31 = and i32 %30, 31
  %32 = shl nuw i32 1, %31
  %33 = and i32 %29, %32
  %.not168 = icmp eq i32 %33, 0
  br i1 %.not168, label %50, label %34

34:                                               ; preds = %24
  %35 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCCell0x2A0x20hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AEvacAcceptor0x3Ctrue0x3E0x3A0x3AforwardCell0x3Chermes0x3A0x3Avm0x3A0x3AGCCell0x2A0x3E0x28hermes0x3A0x3Avm0x3A0x3AGCCell0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2)
  br label %52

36:                                               ; preds = %13
  %37 = add nuw nsw i64 %10, 4448
  %38 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %37)
  %39 = icmp eq i32 %5, %38
  br i1 %39, label %40, label %52

40:                                               ; preds = %36
  %41 = and i32 %3, -4194304
  %42 = add i32 %41, 4194816
  %.not169 = icmp ugt i32 %42, %3
  br i1 %.not169, label %43, label %51

43:                                               ; preds = %40
  %44 = lshr i32 %3, 9
  %45 = and i32 %44, 8191
  %46 = or disjoint i32 %45, %41
  %47 = zext i32 %46 to i64
  tail call void @i32_store8(ptr noundef nonnull %6, i64 noundef %47, i32 noundef 1)
  br label %52

48:                                               ; preds = %17
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 170852, i32 noundef 86240, i32 noundef 118, i32 noundef 19893) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

49:                                               ; preds = %21
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 169713, i32 noundef 86240, i32 noundef 134, i32 noundef 39587) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

50:                                               ; preds = %24
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 191444, i32 noundef 62693, i32 noundef 435, i32 noundef 63384) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

51:                                               ; preds = %40
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 196978, i32 noundef 86311, i32 noundef 300, i32 noundef 19893) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

52:                                               ; preds = %36, %43, %34
  %.0 = phi i32 [ %35, %34 ], [ %2, %43 ], [ %2, %36 ]
  ret i32 %.0
}

attributes #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 = { 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 = { 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,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass