; 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_store(ptr noundef, i64 noundef, i32 noundef) #3

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AArrayStorageBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue320x3E0x2A0x20hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AmakeA0x3Chermes0x3A0x3Avm0x3A0x3AArrayStorageBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue320x3E0x2C0x20false0x2C0x200x28hermes0x3A0x3Avm0x3A0x3AHasFinalizer0x2900x2C0x200x28hermes0x3A0x3Avm0x3A0x3ALongLived0x2900x3E0x28unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) #4 {
  %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 i32, align 4
  %14 = 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  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 8, ptr %14) #5
  %15 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %15, ptr %9, align 4, !tbaa !9
  store i32 7, ptr %10, align 4, !tbaa !9
  %16 = load i32, ptr %10, align 4, !tbaa !9
  %17 = load i32, ptr %9, align 4, !tbaa !9
  %18 = and i32 %17, %16
  store i32 %18, ptr %9, align 4, !tbaa !9
  %19 = load i32, ptr %9, align 4, !tbaa !9
  %20 = icmp ne i32 %19, 0
  %21 = xor i1 %20, true
  %22 = zext i1 %21 to i32
  store i32 %22, ptr %9, align 4, !tbaa !9
  %23 = load i32, ptr %9, align 4, !tbaa !9
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %25, label %162

25:                                               ; preds = %3
  %26 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %26, ptr %9, align 4, !tbaa !9
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.w2c_hermes, ptr %27, i32 0, i32 6
  %29 = load i32, ptr %9, align 4, !tbaa !9
  %30 = zext i32 %29 to i64
  %31 = add i64 %30, 504
  %32 = call i32 @i32_load(ptr noundef %28, i64 noundef %31)
  store i32 %32, ptr %9, align 4, !tbaa !9
  %33 = load i32, ptr %9, align 4, !tbaa !9
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %25
  br label %180

36:                                               ; preds = %25
  %37 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %37, ptr %9, align 4, !tbaa !9
  store i32 15, ptr %10, align 4, !tbaa !9
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = load i32, ptr %10, align 4, !tbaa !9
  %40 = icmp ule i32 %38, %39
  %41 = zext i1 %40 to i32
  store i32 %41, ptr %9, align 4, !tbaa !9
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %44, label %45

44:                                               ; preds = %36
  br label %198

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

59:                                               ; preds = %45
  br label %216

60:                                               ; preds = %45
  %61 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %61, ptr %9, align 4, !tbaa !9
  %62 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %62, ptr %10, align 4, !tbaa !9
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.w2c_hermes, ptr %63, i32 0, i32 6
  %65 = load i32, ptr %10, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = add i64 %66, 600
  %68 = call i32 @i32_load(ptr noundef %64, i64 noundef %67)
  store i32 %68, ptr %10, align 4, !tbaa !9
  %69 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %69, ptr %11, align 4, !tbaa !9
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.w2c_hermes, ptr %70, i32 0, i32 6
  %72 = load i32, ptr %11, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = add i64 %73, 596
  %75 = call i32 @i32_load(ptr noundef %71, i64 noundef %74)
  store i32 %75, ptr %11, align 4, !tbaa !9
  %76 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %76, ptr %7, align 4, !tbaa !9
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = load i32, ptr %10, align 4, !tbaa !9
  %79 = sub i32 %78, %77
  store i32 %79, ptr %10, align 4, !tbaa !9
  %80 = load i32, ptr %9, align 4, !tbaa !9
  %81 = load i32, ptr %10, align 4, !tbaa !9
  %82 = icmp ugt i32 %80, %81
  %83 = zext i1 %82 to i32
  store i32 %83, ptr %9, align 4, !tbaa !9
  %84 = load i32, ptr %9, align 4, !tbaa !9
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %86, label %94

86:                                               ; preds = %60
  %87 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %87, ptr %9, align 4, !tbaa !9
  %88 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %88, ptr %10, align 4, !tbaa !9
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = load i32, ptr %9, align 4, !tbaa !9
  %91 = load i32, ptr %10, align 4, !tbaa !9
  %92 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AallocSlow0x28unsigned0x20int0x29(ptr noundef %89, i32 noundef %90, i32 noundef %91)
  store i32 %92, ptr %9, align 4, !tbaa !9
  %93 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %93, ptr %7, align 4, !tbaa !9
  br label %113

94:                                               ; preds = %60
  %95 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %95, ptr %9, align 4, !tbaa !9
  %96 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %96, ptr %10, align 4, !tbaa !9
  %97 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %97, ptr %11, align 4, !tbaa !9
  %98 = load i32, ptr %11, align 4, !tbaa !9
  %99 = load i32, ptr %10, align 4, !tbaa !9
  %100 = add i32 %99, %98
  store i32 %100, ptr %10, align 4, !tbaa !9
  %101 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %101, ptr %8, align 4, !tbaa !9
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.w2c_hermes, ptr %102, i32 0, i32 6
  %104 = load i32, ptr %9, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = add i64 %105, 596
  %107 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %103, i64 noundef %106, i32 noundef %107)
  %108 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %108, ptr %9, align 4, !tbaa !9
  %109 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %109, ptr %10, align 4, !tbaa !9
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = load i32, ptr %9, align 4, !tbaa !9
  %112 = load i32, ptr %10, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedHeapSegment0x3A0x3AcheckUnwritten0x28char0x2A0x2C0x20char0x2A0x29(ptr noundef %110, i32 noundef %111, i32 noundef %112)
  br label %113

113:                                              ; preds = %94, %86
  %114 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %114, ptr %9, align 4, !tbaa !9
  store i64 0, ptr %14, align 8, !tbaa !11
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.w2c_hermes, ptr %115, i32 0, i32 6
  %117 = load i32, ptr %9, align 4, !tbaa !9
  %118 = zext i32 %117 to i64
  %119 = load i64, ptr %14, align 8, !tbaa !11
  call void @i64_store(ptr noundef %116, i64 noundef %118, i64 noundef %119)
  %120 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %120, ptr %9, align 4, !tbaa !9
  store i64 0, ptr %14, align 8, !tbaa !11
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.w2c_hermes, ptr %121, i32 0, i32 6
  %123 = load i32, ptr %9, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = add i64 %124, 8
  %126 = load i64, ptr %14, align 8, !tbaa !11
  call void @i64_store(ptr noundef %122, i64 noundef %125, i64 noundef %126)
  %127 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %127, ptr %9, align 4, !tbaa !9
  store i32 52753, ptr %10, align 4, !tbaa !9
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.w2c_hermes, ptr %128, i32 0, i32 6
  %130 = load i32, ptr %9, align 4, !tbaa !9
  %131 = zext i32 %130 to i64
  %132 = add i64 %131, 4
  %133 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %129, i64 noundef %132, i32 noundef %133)
  %134 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %134, ptr %9, align 4, !tbaa !9
  store i32 1, ptr %10, align 4, !tbaa !9
  %135 = load i32, ptr %10, align 4, !tbaa !9
  %136 = load i32, ptr %9, align 4, !tbaa !9
  %137 = and i32 %136, %135
  store i32 %137, ptr %9, align 4, !tbaa !9
  %138 = load i32, ptr %9, align 4, !tbaa !9
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %141

140:                                              ; preds = %113
  br label %234

141:                                              ; preds = %113
  %142 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %142, ptr %9, align 4, !tbaa !9
  store i32 16777216, ptr %10, align 4, !tbaa !9
  %143 = load i32, ptr %9, align 4, !tbaa !9
  %144 = load i32, ptr %10, align 4, !tbaa !9
  %145 = icmp uge i32 %143, %144
  %146 = zext i1 %145 to i32
  store i32 %146, ptr %9, align 4, !tbaa !9
  %147 = load i32, ptr %9, align 4, !tbaa !9
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %149, label %150

149:                                              ; preds = %141
  br label %252

150:                                              ; preds = %141
  %151 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %151, ptr %9, align 4, !tbaa !9
  %152 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %152, ptr %10, align 4, !tbaa !9
  store i32 251658240, ptr %11, align 4, !tbaa !9
  %153 = load i32, ptr %11, align 4, !tbaa !9
  %154 = load i32, ptr %10, align 4, !tbaa !9
  %155 = or i32 %154, %153
  store i32 %155, ptr %10, align 4, !tbaa !9
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.w2c_hermes, ptr %156, i32 0, i32 6
  %158 = load i32, ptr %9, align 4, !tbaa !9
  %159 = zext i32 %158 to i64
  %160 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %157, i64 noundef %159, i32 noundef %160)
  %161 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %161, ptr %9, align 4, !tbaa !9
  br label %270

162:                                              ; preds = %3
  store i32 0, ptr %9, align 4, !tbaa !9
  %163 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %163, ptr %6, align 4, !tbaa !9
  store i32 154937, ptr %10, align 4, !tbaa !9
  %164 = load i32, ptr %10, align 4, !tbaa !9
  %165 = load i32, ptr %9, align 4, !tbaa !9
  %166 = add i32 %165, %164
  store i32 %166, ptr %9, align 4, !tbaa !9
  %167 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %167, ptr %10, align 4, !tbaa !9
  store i32 86379, ptr %11, align 4, !tbaa !9
  %168 = load i32, ptr %11, align 4, !tbaa !9
  %169 = load i32, ptr %10, align 4, !tbaa !9
  %170 = add i32 %169, %168
  store i32 %170, ptr %10, align 4, !tbaa !9
  store i32 1090, ptr %11, align 4, !tbaa !9
  %171 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %171, ptr %12, align 4, !tbaa !9
  store i32 109843, ptr %13, align 4, !tbaa !9
  %172 = load i32, ptr %13, align 4, !tbaa !9
  %173 = load i32, ptr %12, align 4, !tbaa !9
  %174 = add i32 %173, %172
  store i32 %174, ptr %12, align 4, !tbaa !9
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = load i32, ptr %9, align 4, !tbaa !9
  %177 = load i32, ptr %10, align 4, !tbaa !9
  %178 = load i32, ptr %11, align 4, !tbaa !9
  %179 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %175, i32 noundef %176, i32 noundef %177, i32 noundef %178, i32 noundef %179)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

180:                                              ; preds = %35
  store i32 0, ptr %9, align 4, !tbaa !9
  %181 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %181, ptr %6, align 4, !tbaa !9
  store i32 189195, ptr %10, align 4, !tbaa !9
  %182 = load i32, ptr %10, align 4, !tbaa !9
  %183 = load i32, ptr %9, align 4, !tbaa !9
  %184 = add i32 %183, %182
  store i32 %184, ptr %9, align 4, !tbaa !9
  %185 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %185, ptr %10, align 4, !tbaa !9
  store i32 86379, ptr %11, align 4, !tbaa !9
  %186 = load i32, ptr %11, align 4, !tbaa !9
  %187 = load i32, ptr %10, align 4, !tbaa !9
  %188 = add i32 %187, %186
  store i32 %188, ptr %10, align 4, !tbaa !9
  store i32 1091, ptr %11, align 4, !tbaa !9
  %189 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %189, ptr %12, align 4, !tbaa !9
  store i32 109843, ptr %13, align 4, !tbaa !9
  %190 = load i32, ptr %13, align 4, !tbaa !9
  %191 = load i32, ptr %12, align 4, !tbaa !9
  %192 = add i32 %191, %190
  store i32 %192, ptr %12, align 4, !tbaa !9
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = load i32, ptr %9, align 4, !tbaa !9
  %195 = load i32, ptr %10, align 4, !tbaa !9
  %196 = load i32, ptr %11, align 4, !tbaa !9
  %197 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %193, i32 noundef %194, i32 noundef %195, i32 noundef %196, i32 noundef %197)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

198:                                              ; preds = %44
  store i32 0, ptr %9, align 4, !tbaa !9
  %199 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %199, ptr %6, align 4, !tbaa !9
  store i32 134747, ptr %10, align 4, !tbaa !9
  %200 = load i32, ptr %10, align 4, !tbaa !9
  %201 = load i32, ptr %9, align 4, !tbaa !9
  %202 = add i32 %201, %200
  store i32 %202, ptr %9, align 4, !tbaa !9
  %203 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %203, ptr %10, align 4, !tbaa !9
  store i32 86379, ptr %11, align 4, !tbaa !9
  %204 = load i32, ptr %11, align 4, !tbaa !9
  %205 = load i32, ptr %10, align 4, !tbaa !9
  %206 = add i32 %205, %204
  store i32 %206, ptr %10, align 4, !tbaa !9
  store i32 1109, ptr %11, align 4, !tbaa !9
  %207 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %207, ptr %12, align 4, !tbaa !9
  store i32 74688, ptr %13, align 4, !tbaa !9
  %208 = load i32, ptr %13, align 4, !tbaa !9
  %209 = load i32, ptr %12, align 4, !tbaa !9
  %210 = add i32 %209, %208
  store i32 %210, ptr %12, align 4, !tbaa !9
  %211 = load ptr, ptr %4, align 8, !tbaa !5
  %212 = load i32, ptr %9, align 4, !tbaa !9
  %213 = load i32, ptr %10, align 4, !tbaa !9
  %214 = load i32, ptr %11, align 4, !tbaa !9
  %215 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %211, i32 noundef %212, i32 noundef %213, i32 noundef %214, i32 noundef %215)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

216:                                              ; preds = %59
  store i32 0, ptr %9, align 4, !tbaa !9
  %217 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %217, ptr %6, align 4, !tbaa !9
  store i32 131267, ptr %10, align 4, !tbaa !9
  %218 = load i32, ptr %10, align 4, !tbaa !9
  %219 = load i32, ptr %9, align 4, !tbaa !9
  %220 = add i32 %219, %218
  store i32 %220, ptr %9, align 4, !tbaa !9
  %221 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %221, ptr %10, align 4, !tbaa !9
  store i32 77414, ptr %11, align 4, !tbaa !9
  %222 = load i32, ptr %11, align 4, !tbaa !9
  %223 = load i32, ptr %10, align 4, !tbaa !9
  %224 = add i32 %223, %222
  store i32 %224, ptr %10, align 4, !tbaa !9
  store i32 307, ptr %11, align 4, !tbaa !9
  %225 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %225, ptr %12, align 4, !tbaa !9
  store i32 107220, ptr %13, align 4, !tbaa !9
  %226 = load i32, ptr %13, align 4, !tbaa !9
  %227 = load i32, ptr %12, align 4, !tbaa !9
  %228 = add i32 %227, %226
  store i32 %228, ptr %12, align 4, !tbaa !9
  %229 = load ptr, ptr %4, align 8, !tbaa !5
  %230 = load i32, ptr %9, align 4, !tbaa !9
  %231 = load i32, ptr %10, align 4, !tbaa !9
  %232 = load i32, ptr %11, align 4, !tbaa !9
  %233 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %229, i32 noundef %230, i32 noundef %231, i32 noundef %232, i32 noundef %233)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

234:                                              ; preds = %140
  store i32 0, ptr %9, align 4, !tbaa !9
  %235 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %235, ptr %6, align 4, !tbaa !9
  store i32 193621, ptr %10, align 4, !tbaa !9
  %236 = load i32, ptr %10, align 4, !tbaa !9
  %237 = load i32, ptr %9, align 4, !tbaa !9
  %238 = add i32 %237, %236
  store i32 %238, ptr %9, align 4, !tbaa !9
  %239 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %239, ptr %10, align 4, !tbaa !9
  store i32 82339, ptr %11, align 4, !tbaa !9
  %240 = load i32, ptr %11, align 4, !tbaa !9
  %241 = load i32, ptr %10, align 4, !tbaa !9
  %242 = add i32 %241, %240
  store i32 %242, ptr %10, align 4, !tbaa !9
  store i32 57, ptr %11, align 4, !tbaa !9
  %243 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %243, ptr %12, align 4, !tbaa !9
  store i32 88934, ptr %13, align 4, !tbaa !9
  %244 = load i32, ptr %13, align 4, !tbaa !9
  %245 = load i32, ptr %12, align 4, !tbaa !9
  %246 = add i32 %245, %244
  store i32 %246, ptr %12, align 4, !tbaa !9
  %247 = load ptr, ptr %4, align 8, !tbaa !5
  %248 = load i32, ptr %9, align 4, !tbaa !9
  %249 = load i32, ptr %10, align 4, !tbaa !9
  %250 = load i32, ptr %11, align 4, !tbaa !9
  %251 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %247, i32 noundef %248, i32 noundef %249, i32 noundef %250, i32 noundef %251)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

252:                                              ; preds = %149
  store i32 0, ptr %9, align 4, !tbaa !9
  %253 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %253, ptr %6, align 4, !tbaa !9
  store i32 196840, ptr %10, align 4, !tbaa !9
  %254 = load i32, ptr %10, align 4, !tbaa !9
  %255 = load i32, ptr %9, align 4, !tbaa !9
  %256 = add i32 %255, %254
  store i32 %256, ptr %9, align 4, !tbaa !9
  %257 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %257, ptr %10, align 4, !tbaa !9
  store i32 82339, ptr %11, align 4, !tbaa !9
  %258 = load i32, ptr %11, align 4, !tbaa !9
  %259 = load i32, ptr %10, align 4, !tbaa !9
  %260 = add i32 %259, %258
  store i32 %260, ptr %10, align 4, !tbaa !9
  store i32 58, ptr %11, align 4, !tbaa !9
  %261 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %261, ptr %12, align 4, !tbaa !9
  store i32 88934, ptr %13, align 4, !tbaa !9
  %262 = load i32, ptr %13, align 4, !tbaa !9
  %263 = load i32, ptr %12, align 4, !tbaa !9
  %264 = add i32 %263, %262
  store i32 %264, ptr %12, align 4, !tbaa !9
  %265 = load ptr, ptr %4, align 8, !tbaa !5
  %266 = load i32, ptr %9, align 4, !tbaa !9
  %267 = load i32, ptr %10, align 4, !tbaa !9
  %268 = load i32, ptr %11, align 4, !tbaa !9
  %269 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %265, i32 noundef %266, i32 noundef %267, i32 noundef %268, i32 noundef %269)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

270:                                              ; preds = %150
  %271 = load i32, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret i32 %271
}

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

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_store(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: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AArrayStorageBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue320x3E0x2A0x20hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AmakeA0x3Chermes0x3A0x3Avm0x3A0x3AArrayStorageBase0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue320x3E0x2C0x20false0x2C0x200x28hermes0x3A0x3Avm0x3A0x3AHasFinalizer0x2900x2C0x200x28hermes0x3A0x3Avm0x3A0x3ALongLived0x2900x3E0x28unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = and i32 %2, 7
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %5, label %33

5:                                                ; preds = %3
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = zext i32 %1 to i64
  %8 = add nuw nsw i64 %7, 504
  %9 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %8)
  %.not164 = icmp eq i32 %9, 0
  br i1 %.not164, label %10, label %34

10:                                               ; preds = %5
  %11 = icmp ult i32 %2, 16
  br i1 %11, label %35, label %12

12:                                               ; preds = %10
  %13 = add nuw nsw i64 %7, 588
  %14 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %13)
  %.not165 = icmp eq i32 %14, 0
  br i1 %.not165, label %36, label %15

15:                                               ; preds = %12
  %16 = add nuw nsw i64 %7, 600
  %17 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %16)
  %18 = add nuw nsw i64 %7, 596
  %19 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %18)
  %20 = sub i32 %17, %19
  %21 = icmp ult i32 %20, %2
  br i1 %21, label %22, label %24

22:                                               ; preds = %15
  %23 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AallocSlow0x28unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2)
  br label %26

24:                                               ; preds = %15
  %25 = add i32 %19, %2
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %18, i32 noundef %25)
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AAlignedHeapSegment0x3A0x3AcheckUnwritten0x28char0x2A0x2C0x20char0x2A0x29(ptr noundef %0, i32 noundef %19, i32 noundef %25) #4
  br label %26

26:                                               ; preds = %24, %22
  %.0 = phi i32 [ %23, %22 ], [ %19, %24 ]
  %27 = zext i32 %.0 to i64
  tail call void @i64_store(ptr noundef nonnull %6, i64 noundef %27, i64 noundef 0)
  %28 = add nuw nsw i64 %27, 8
  tail call void @i64_store(ptr noundef nonnull %6, i64 noundef %28, i64 noundef 0)
  %29 = add nuw nsw i64 %27, 4
  tail call void @i32_store16(ptr noundef nonnull %6, i64 noundef %29, i32 noundef 52753)
  %30 = icmp ugt i32 %2, 16777215
  br i1 %30, label %37, label %31

31:                                               ; preds = %26
  %32 = or disjoint i32 %2, 251658240
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %27, i32 noundef %32)
  ret i32 %.0

33:                                               ; preds = %3
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 154937, i32 noundef 86379, i32 noundef 1090, i32 noundef 109843) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

34:                                               ; preds = %5
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 189195, i32 noundef 86379, i32 noundef 1091, i32 noundef 109843) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

35:                                               ; preds = %10
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 134747, i32 noundef 86379, i32 noundef 1109, i32 noundef 74688) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

36:                                               ; preds = %12
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 131267, i32 noundef 77414, i32 noundef 307, i32 noundef 107220) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

37:                                               ; preds = %26
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 196840, i32 noundef 82339, i32 noundef 58, i32 noundef 88934) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

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,SROAPass,SimplifyCFGPass,TailCallElimPass