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

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

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

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

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

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

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

declare void @w2c_hermes_llvh0x3A0x3ASmallVectorBase0x3A0x3Agrow_pod0x28void0x2A0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_void0x20llvh0x3A0x3ASmallVectorImpl0x3Chermes0x3A0x3ABasicBlock0x2A0x3E0x3A0x3Aappend0x3Cstd0x3A0x3A_0x5F20x3A0x3Areverse_iterator0x3Cllvh0x3A0x3ASuccIterator0x3Chermes0x3A0x3ATerminatorInst0x2C0x20hermes0x3A0x3ABasicBlock0x3E0x3E0x2C0x20void0x3E0x28std0x3A0x3A_0x5F20x3A0x3Areverse_iterator0x3Cllvh0x3A0x3ASuccIterator0x3Chermes0x3A0x3ATerminatorInst0x2C0x20hermes0x3A0x3ABasicBlock0x3E0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Areverse_iterator0x3Cllvh0x3A0x3ASuccIterator0x3Chermes0x3A0x3ATerminatorInst0x2C0x20hermes0x3A0x3ABasicBlock0x3E0x3E0x29(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 i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  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 8, ptr %11) #5
  store i64 0, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !11
  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
  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 8, 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 ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.w2c_hermes, ptr %21, i32 0, i32 3
  %23 = load i32, ptr %22, align 8, !tbaa !13
  store i32 %23, ptr %13, align 4, !tbaa !9
  store i32 32, ptr %14, align 4, !tbaa !9
  %24 = load i32, ptr %14, align 4, !tbaa !9
  %25 = load i32, ptr %13, align 4, !tbaa !9
  %26 = sub i32 %25, %24
  store i32 %26, ptr %13, align 4, !tbaa !9
  %27 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %27, ptr %9, align 4, !tbaa !9
  %28 = load i32, ptr %13, align 4, !tbaa !9
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.w2c_hermes, ptr %29, i32 0, i32 3
  store i32 %28, ptr %30, align 8, !tbaa !13
  %31 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %31, ptr %13, align 4, !tbaa !9
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.w2c_hermes, ptr %32, i32 0, i32 6
  %34 = load i32, ptr %13, align 4, !tbaa !9
  %35 = zext i32 %34 to i64
  %36 = call i64 @i64_load(ptr noundef %33, i64 noundef %35)
  store i64 %36, ptr %18, align 8, !tbaa !11
  %37 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %37, ptr %11, align 8, !tbaa !11
  %38 = load i64, ptr %18, align 8, !tbaa !11
  %39 = trunc i64 %38 to i32
  store i32 %39, ptr %13, align 4, !tbaa !9
  %40 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %40, ptr %14, align 4, !tbaa !9
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.w2c_hermes, ptr %41, i32 0, i32 6
  %43 = load i32, ptr %14, align 4, !tbaa !9
  %44 = zext i32 %43 to i64
  %45 = call i64 @i64_load(ptr noundef %42, i64 noundef %44)
  store i64 %45, ptr %19, align 8, !tbaa !11
  %46 = load i64, ptr %19, align 8, !tbaa !11
  store i64 %46, ptr %12, align 8, !tbaa !11
  %47 = load i64, ptr %19, align 8, !tbaa !11
  %48 = trunc i64 %47 to i32
  store i32 %48, ptr %14, align 4, !tbaa !9
  %49 = load i32, ptr %13, align 4, !tbaa !9
  %50 = load i32, ptr %14, align 4, !tbaa !9
  %51 = icmp eq i32 %49, %50
  %52 = zext i1 %51 to i32
  store i32 %52, ptr %13, align 4, !tbaa !9
  %53 = load i32, ptr %13, align 4, !tbaa !9
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %222

55:                                               ; preds = %4
  %56 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %56, ptr %18, align 8, !tbaa !11
  store i64 32, ptr %19, align 8, !tbaa !11
  %57 = load i64, ptr %19, align 8, !tbaa !11
  %58 = and i64 %57, 63
  %59 = load i64, ptr %18, align 8, !tbaa !11
  %60 = lshr i64 %59, %58
  store i64 %60, ptr %18, align 8, !tbaa !11
  %61 = load i64, ptr %18, align 8, !tbaa !11
  %62 = trunc i64 %61 to i32
  store i32 %62, ptr %13, align 4, !tbaa !9
  %63 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %63, ptr %19, align 8, !tbaa !11
  store i64 32, ptr %20, align 8, !tbaa !11
  %64 = load i64, ptr %20, align 8, !tbaa !11
  %65 = and i64 %64, 63
  %66 = load i64, ptr %19, align 8, !tbaa !11
  %67 = lshr i64 %66, %65
  store i64 %67, ptr %19, align 8, !tbaa !11
  %68 = load i64, ptr %19, align 8, !tbaa !11
  %69 = trunc i64 %68 to i32
  store i32 %69, ptr %14, align 4, !tbaa !9
  %70 = load i32, ptr %14, align 4, !tbaa !9
  %71 = load i32, ptr %13, align 4, !tbaa !9
  %72 = sub i32 %71, %70
  store i32 %72, ptr %13, align 4, !tbaa !9
  %73 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %73, ptr %7, align 4, !tbaa !9
  %74 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %74, ptr %14, align 4, !tbaa !9
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.w2c_hermes, ptr %75, i32 0, i32 6
  %77 = load i32, ptr %14, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = add i64 %78, 8
  %80 = call i32 @i32_load(ptr noundef %76, i64 noundef %79)
  store i32 %80, ptr %14, align 4, !tbaa !9
  %81 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %81, ptr %15, align 4, !tbaa !9
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.w2c_hermes, ptr %82, i32 0, i32 6
  %84 = load i32, ptr %15, align 4, !tbaa !9
  %85 = zext i32 %84 to i64
  %86 = add i64 %85, 4
  %87 = call i32 @i32_load(ptr noundef %83, i64 noundef %86)
  store i32 %87, ptr %15, align 4, !tbaa !9
  %88 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %88, ptr %8, align 4, !tbaa !9
  %89 = load i32, ptr %15, align 4, !tbaa !9
  %90 = load i32, ptr %14, align 4, !tbaa !9
  %91 = sub i32 %90, %89
  store i32 %91, ptr %14, align 4, !tbaa !9
  %92 = load i32, ptr %13, align 4, !tbaa !9
  %93 = load i32, ptr %14, align 4, !tbaa !9
  %94 = icmp ugt i32 %92, %93
  %95 = zext i1 %94 to i32
  store i32 %95, ptr %13, align 4, !tbaa !9
  %96 = load i32, ptr %13, align 4, !tbaa !9
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %122

98:                                               ; preds = %55
  %99 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %99, ptr %13, align 4, !tbaa !9
  %100 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %100, ptr %14, align 4, !tbaa !9
  store i32 12, ptr %15, align 4, !tbaa !9
  %101 = load i32, ptr %15, align 4, !tbaa !9
  %102 = load i32, ptr %14, align 4, !tbaa !9
  %103 = add i32 %102, %101
  store i32 %103, ptr %14, align 4, !tbaa !9
  %104 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %104, ptr %15, align 4, !tbaa !9
  %105 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %105, ptr %16, align 4, !tbaa !9
  %106 = load i32, ptr %16, align 4, !tbaa !9
  %107 = load i32, ptr %15, align 4, !tbaa !9
  %108 = add i32 %107, %106
  store i32 %108, ptr %15, align 4, !tbaa !9
  store i32 4, ptr %16, align 4, !tbaa !9
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = load i32, ptr %13, align 4, !tbaa !9
  %111 = load i32, ptr %14, align 4, !tbaa !9
  %112 = load i32, ptr %15, align 4, !tbaa !9
  %113 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3ASmallVectorBase0x3A0x3Agrow_pod0x28void0x2A0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef %109, i32 noundef %110, i32 noundef %111, i32 noundef %112, i32 noundef %113)
  %114 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %114, ptr %13, align 4, !tbaa !9
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.w2c_hermes, ptr %115, i32 0, i32 6
  %117 = load i32, ptr %13, align 4, !tbaa !9
  %118 = zext i32 %117 to i64
  %119 = add i64 %118, 4
  %120 = call i32 @i32_load(ptr noundef %116, i64 noundef %119)
  store i32 %120, ptr %13, align 4, !tbaa !9
  %121 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %121, ptr %8, align 4, !tbaa !9
  br label %122

122:                                              ; preds = %98, %55
  %123 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %123, ptr %13, align 4, !tbaa !9
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.w2c_hermes, ptr %124, i32 0, i32 6
  %126 = load i32, ptr %13, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = call i32 @i32_load(ptr noundef %125, i64 noundef %127)
  store i32 %128, ptr %13, align 4, !tbaa !9
  %129 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %129, ptr %10, align 4, !tbaa !9
  %130 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %130, ptr %13, align 4, !tbaa !9
  %131 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %131, ptr %19, align 8, !tbaa !11
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.w2c_hermes, ptr %132, i32 0, i32 6
  %134 = load i32, ptr %13, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = add i64 %135, 8
  %137 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %133, i64 noundef %136, i64 noundef %137)
  %138 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %138, ptr %13, align 4, !tbaa !9
  %139 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %139, ptr %19, align 8, !tbaa !11
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.w2c_hermes, ptr %140, i32 0, i32 6
  %142 = load i32, ptr %13, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %141, i64 noundef %143, i64 noundef %144)
  %145 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %145, ptr %13, align 4, !tbaa !9
  %146 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %146, ptr %19, align 8, !tbaa !11
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.w2c_hermes, ptr %147, i32 0, i32 6
  %149 = load i32, ptr %13, align 4, !tbaa !9
  %150 = zext i32 %149 to i64
  %151 = add i64 %150, 24
  %152 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %148, i64 noundef %151, i64 noundef %152)
  %153 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %153, ptr %13, align 4, !tbaa !9
  %154 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %154, ptr %19, align 8, !tbaa !11
  %155 = load ptr, ptr %5, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.w2c_hermes, ptr %155, i32 0, i32 6
  %157 = load i32, ptr %13, align 4, !tbaa !9
  %158 = zext i32 %157 to i64
  %159 = add i64 %158, 16
  %160 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %156, i64 noundef %159, i64 noundef %160)
  %161 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %161, ptr %13, align 4, !tbaa !9
  store i32 8, ptr %14, align 4, !tbaa !9
  %162 = load i32, ptr %14, align 4, !tbaa !9
  %163 = load i32, ptr %13, align 4, !tbaa !9
  %164 = add i32 %163, %162
  store i32 %164, ptr %13, align 4, !tbaa !9
  %165 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %165, ptr %14, align 4, !tbaa !9
  %166 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %166, ptr %15, align 4, !tbaa !9
  %167 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %167, ptr %16, align 4, !tbaa !9
  store i32 2, ptr %17, align 4, !tbaa !9
  %168 = load i32, ptr %17, align 4, !tbaa !9
  %169 = and i32 %168, 31
  %170 = load i32, ptr %16, align 4, !tbaa !9
  %171 = shl i32 %170, %169
  store i32 %171, ptr %16, align 4, !tbaa !9
  %172 = load i32, ptr %16, align 4, !tbaa !9
  %173 = load i32, ptr %15, align 4, !tbaa !9
  %174 = add i32 %173, %172
  store i32 %174, ptr %15, align 4, !tbaa !9
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = load i32, ptr %13, align 4, !tbaa !9
  %177 = load i32, ptr %14, align 4, !tbaa !9
  %178 = load i32, ptr %15, align 4, !tbaa !9
  %179 = call i32 @w2c_hermes_hermes0x3A0x3ABasicBlock0x2A0x2A0x20std0x3A0x3A_0x5F20x3A0x3Auninitialized_copy0x3Cstd0x3A0x3A_0x5F20x3A0x3Areverse_iterator0x3Cllvh0x3A0x3ASuccIterator0x3Chermes0x3A0x3ATerminatorInst0x2C0x20hermes0x3A0x3ABasicBlock0x3E0x3E0x2C0x20hermes0x3A0x3ABasicBlock0x2A0x2A0x3E0x28std0x3A0x3A_0x5F20x3A0x3Areverse_iterator0x3Cllvh0x3A0x3ASuccIterator0x3Chermes0x3A0x3ATerminatorInst0x2C0x20hermes0x3A0x3ABasicBlock0x3E0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Areverse_iterator0x3Cllvh0x3A0x3ASuccIterator0x3Chermes0x3A0x3ATerminatorInst0x2C0x20hermes0x3A0x3ABasicBlock0x3E0x3E0x2C0x20hermes0x3A0x3ABasicBlock0x2A0x2A0x29(ptr noundef %175, i32 noundef %176, i32 noundef %177, i32 noundef %178)
  store i32 %179, ptr %13, align 4, !tbaa !9
  %180 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %180, ptr %13, align 4, !tbaa !9
  %181 = load ptr, ptr %5, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.w2c_hermes, ptr %181, i32 0, i32 6
  %183 = load i32, ptr %13, align 4, !tbaa !9
  %184 = zext i32 %183 to i64
  %185 = add i64 %184, 4
  %186 = call i32 @i32_load(ptr noundef %182, i64 noundef %185)
  store i32 %186, ptr %13, align 4, !tbaa !9
  %187 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %187, ptr %14, align 4, !tbaa !9
  %188 = load i32, ptr %14, align 4, !tbaa !9
  %189 = load i32, ptr %13, align 4, !tbaa !9
  %190 = add i32 %189, %188
  store i32 %190, ptr %13, align 4, !tbaa !9
  %191 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %191, ptr %8, align 4, !tbaa !9
  %192 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %192, ptr %14, align 4, !tbaa !9
  %193 = load ptr, ptr %5, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.w2c_hermes, ptr %193, i32 0, i32 6
  %195 = load i32, ptr %14, align 4, !tbaa !9
  %196 = zext i32 %195 to i64
  %197 = add i64 %196, 8
  %198 = call i32 @i32_load(ptr noundef %194, i64 noundef %197)
  store i32 %198, ptr %14, align 4, !tbaa !9
  %199 = load i32, ptr %13, align 4, !tbaa !9
  %200 = load i32, ptr %14, align 4, !tbaa !9
  %201 = icmp ugt i32 %199, %200
  %202 = zext i1 %201 to i32
  store i32 %202, ptr %13, align 4, !tbaa !9
  %203 = load i32, ptr %13, align 4, !tbaa !9
  %204 = icmp ne i32 %203, 0
  br i1 %204, label %205, label %206

205:                                              ; preds = %122
  br label %240

206:                                              ; preds = %122
  %207 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %207, ptr %13, align 4, !tbaa !9
  %208 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %208, ptr %14, align 4, !tbaa !9
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.w2c_hermes, ptr %209, i32 0, i32 6
  %211 = load i32, ptr %13, align 4, !tbaa !9
  %212 = zext i32 %211 to i64
  %213 = add i64 %212, 4
  %214 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %210, i64 noundef %213, i32 noundef %214)
  %215 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %215, ptr %13, align 4, !tbaa !9
  store i32 32, ptr %14, align 4, !tbaa !9
  %216 = load i32, ptr %14, align 4, !tbaa !9
  %217 = load i32, ptr %13, align 4, !tbaa !9
  %218 = add i32 %217, %216
  store i32 %218, ptr %13, align 4, !tbaa !9
  %219 = load i32, ptr %13, align 4, !tbaa !9
  %220 = load ptr, ptr %5, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.w2c_hermes, ptr %220, i32 0, i32 3
  store i32 %219, ptr %221, align 8, !tbaa !13
  br label %258

222:                                              ; preds = %4
  store i32 0, ptr %13, align 4, !tbaa !9
  %223 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %223, ptr %6, align 4, !tbaa !9
  store i32 203556, ptr %14, align 4, !tbaa !9
  %224 = load i32, ptr %14, align 4, !tbaa !9
  %225 = load i32, ptr %13, align 4, !tbaa !9
  %226 = add i32 %225, %224
  store i32 %226, ptr %13, align 4, !tbaa !9
  %227 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %227, ptr %14, align 4, !tbaa !9
  store i32 86103, ptr %15, align 4, !tbaa !9
  %228 = load i32, ptr %15, align 4, !tbaa !9
  %229 = load i32, ptr %14, align 4, !tbaa !9
  %230 = add i32 %229, %228
  store i32 %230, ptr %14, align 4, !tbaa !9
  store i32 213, ptr %15, align 4, !tbaa !9
  %231 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %231, ptr %16, align 4, !tbaa !9
  store i32 114707, ptr %17, align 4, !tbaa !9
  %232 = load i32, ptr %17, align 4, !tbaa !9
  %233 = load i32, ptr %16, align 4, !tbaa !9
  %234 = add i32 %233, %232
  store i32 %234, ptr %16, align 4, !tbaa !9
  %235 = load ptr, ptr %5, align 8, !tbaa !5
  %236 = load i32, ptr %13, align 4, !tbaa !9
  %237 = load i32, ptr %14, align 4, !tbaa !9
  %238 = load i32, ptr %15, align 4, !tbaa !9
  %239 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %235, i32 noundef %236, i32 noundef %237, i32 noundef %238, i32 noundef %239)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

240:                                              ; preds = %205
  store i32 0, ptr %13, align 4, !tbaa !9
  %241 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %241, ptr %6, align 4, !tbaa !9
  store i32 117789, ptr %14, align 4, !tbaa !9
  %242 = load i32, ptr %14, align 4, !tbaa !9
  %243 = load i32, ptr %13, align 4, !tbaa !9
  %244 = add i32 %243, %242
  store i32 %244, ptr %13, align 4, !tbaa !9
  %245 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %245, ptr %14, align 4, !tbaa !9
  store i32 79572, ptr %15, align 4, !tbaa !9
  %246 = load i32, ptr %15, align 4, !tbaa !9
  %247 = load i32, ptr %14, align 4, !tbaa !9
  %248 = add i32 %247, %246
  store i32 %248, ptr %14, align 4, !tbaa !9
  store i32 74, ptr %15, align 4, !tbaa !9
  %249 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %249, ptr %16, align 4, !tbaa !9
  store i32 88407, ptr %17, align 4, !tbaa !9
  %250 = load i32, ptr %17, align 4, !tbaa !9
  %251 = load i32, ptr %16, align 4, !tbaa !9
  %252 = add i32 %251, %250
  store i32 %252, ptr %16, align 4, !tbaa !9
  %253 = load ptr, ptr %5, align 8, !tbaa !5
  %254 = load i32, ptr %13, align 4, !tbaa !9
  %255 = load i32, ptr %14, align 4, !tbaa !9
  %256 = load i32, ptr %15, align 4, !tbaa !9
  %257 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %253, i32 noundef %254, i32 noundef %255, i32 noundef %256, i32 noundef %257)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

258:                                              ; preds = %206
  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 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 void
}

declare i32 @w2c_hermes_hermes0x3A0x3ABasicBlock0x2A0x2A0x20std0x3A0x3A_0x5F20x3A0x3Auninitialized_copy0x3Cstd0x3A0x3A_0x5F20x3A0x3Areverse_iterator0x3Cllvh0x3A0x3ASuccIterator0x3Chermes0x3A0x3ATerminatorInst0x2C0x20hermes0x3A0x3ABasicBlock0x3E0x3E0x2C0x20hermes0x3A0x3ABasicBlock0x2A0x2A0x3E0x28std0x3A0x3A_0x5F20x3A0x3Areverse_iterator0x3Cllvh0x3A0x3ASuccIterator0x3Chermes0x3A0x3ATerminatorInst0x2C0x20hermes0x3A0x3ABasicBlock0x3E0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Areverse_iterator0x3Cllvh0x3A0x3ASuccIterator0x3Chermes0x3A0x3ATerminatorInst0x2C0x20hermes0x3A0x3ABasicBlock0x3E0x3E0x2C0x20hermes0x3A0x3ABasicBlock0x2A0x2A0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { "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}
!13 = !{!14, !10, i64 24}
!14 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !15, i64 40, !17, i64 80}
!15 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !16, i64 32}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}


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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store(ptr noundef, i64 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 @i64_store(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

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

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

declare void @w2c_hermes_llvh0x3A0x3ASmallVectorBase0x3A0x3Agrow_pod0x28void0x2A0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_void0x20llvh0x3A0x3ASmallVectorImpl0x3Chermes0x3A0x3ABasicBlock0x2A0x3E0x3A0x3Aappend0x3Cstd0x3A0x3A_0x5F20x3A0x3Areverse_iterator0x3Cllvh0x3A0x3ASuccIterator0x3Chermes0x3A0x3ATerminatorInst0x2C0x20hermes0x3A0x3ABasicBlock0x3E0x3E0x2C0x20void0x3E0x28std0x3A0x3A_0x5F20x3A0x3Areverse_iterator0x3Cllvh0x3A0x3ASuccIterator0x3Chermes0x3A0x3ATerminatorInst0x2C0x20hermes0x3A0x3ABasicBlock0x3E0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Areverse_iterator0x3Cllvh0x3A0x3ASuccIterator0x3Chermes0x3A0x3ATerminatorInst0x2C0x20hermes0x3A0x3ABasicBlock0x3E0x3E0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = add i32 %6, -32
  store i32 %7, ptr %5, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = zext i32 %2 to i64
  %10 = tail call i64 @i64_load(ptr noundef nonnull %8, i64 noundef %9)
  %11 = trunc i64 %10 to i32
  %12 = zext i32 %3 to i64
  %13 = tail call i64 @i64_load(ptr noundef nonnull %8, i64 noundef %12)
  %14 = trunc i64 %13 to i32
  %15 = icmp eq i32 %11, %14
  br i1 %15, label %16, label %48

16:                                               ; preds = %4
  %17 = lshr i64 %10, 32
  %18 = trunc nuw i64 %17 to i32
  %19 = lshr i64 %13, 32
  %20 = trunc nuw i64 %19 to i32
  %21 = sub i32 %18, %20
  %22 = zext i32 %1 to i64
  %23 = add nuw nsw i64 %22, 8
  %24 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %23)
  %25 = add nuw nsw i64 %22, 4
  %26 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %25)
  %27 = sub i32 %24, %26
  %28 = icmp ugt i32 %21, %27
  br i1 %28, label %29, label %33

29:                                               ; preds = %16
  %30 = add i32 %1, 12
  %31 = add i32 %26, %21
  tail call void @w2c_hermes_llvh0x3A0x3ASmallVectorBase0x3A0x3Agrow_pod0x28void0x2A0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %30, i32 noundef %31, i32 noundef 4) #4
  %32 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %25)
  br label %33

33:                                               ; preds = %29, %16
  %.0 = phi i32 [ %32, %29 ], [ %26, %16 ]
  %34 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %22)
  %35 = zext i32 %7 to i64
  %36 = add nuw nsw i64 %35, 8
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %36, i64 noundef %10)
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %35, i64 noundef %13)
  %37 = add nuw nsw i64 %35, 24
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %37, i64 noundef %10)
  %38 = add nuw nsw i64 %35, 16
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %38, i64 noundef %13)
  %39 = add i32 %6, -24
  %40 = shl i32 %.0, 2
  %41 = add i32 %34, %40
  %42 = tail call i32 @w2c_hermes_hermes0x3A0x3ABasicBlock0x2A0x2A0x20std0x3A0x3A_0x5F20x3A0x3Auninitialized_copy0x3Cstd0x3A0x3A_0x5F20x3A0x3Areverse_iterator0x3Cllvh0x3A0x3ASuccIterator0x3Chermes0x3A0x3ATerminatorInst0x2C0x20hermes0x3A0x3ABasicBlock0x3E0x3E0x2C0x20hermes0x3A0x3ABasicBlock0x2A0x2A0x3E0x28std0x3A0x3A_0x5F20x3A0x3Areverse_iterator0x3Cllvh0x3A0x3ASuccIterator0x3Chermes0x3A0x3ATerminatorInst0x2C0x20hermes0x3A0x3ABasicBlock0x3E0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Areverse_iterator0x3Cllvh0x3A0x3ASuccIterator0x3Chermes0x3A0x3ATerminatorInst0x2C0x20hermes0x3A0x3ABasicBlock0x3E0x3E0x2C0x20hermes0x3A0x3ABasicBlock0x2A0x2A0x29(ptr noundef nonnull %0, i32 noundef %39, i32 noundef %7, i32 noundef %41) #4
  %43 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %25)
  %44 = add i32 %43, %21
  %45 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %23)
  %46 = icmp ugt i32 %44, %45
  br i1 %46, label %49, label %47

47:                                               ; preds = %33
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %25, i32 noundef %44)
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret void

48:                                               ; preds = %4
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 203556, i32 noundef 86103, i32 noundef 213, i32 noundef 114707) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

49:                                               ; preds = %33
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 117789, i32 noundef 79572, i32 noundef 74, i32 noundef 88407) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

declare i32 @w2c_hermes_hermes0x3A0x3ABasicBlock0x2A0x2A0x20std0x3A0x3A_0x5F20x3A0x3Auninitialized_copy0x3Cstd0x3A0x3A_0x5F20x3A0x3Areverse_iterator0x3Cllvh0x3A0x3ASuccIterator0x3Chermes0x3A0x3ATerminatorInst0x2C0x20hermes0x3A0x3ABasicBlock0x3E0x3E0x2C0x20hermes0x3A0x3ABasicBlock0x2A0x2A0x3E0x28std0x3A0x3A_0x5F20x3A0x3Areverse_iterator0x3Cllvh0x3A0x3ASuccIterator0x3Chermes0x3A0x3ATerminatorInst0x2C0x20hermes0x3A0x3ABasicBlock0x3E0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Areverse_iterator0x3Cllvh0x3A0x3ASuccIterator0x3Chermes0x3A0x3ATerminatorInst0x2C0x20hermes0x3A0x3ABasicBlock0x3E0x3E0x2C0x20hermes0x3A0x3ABasicBlock0x2A0x2A0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { "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)"}
!5 = !{!6, !10, i64 24}
!6 = !{!"w2c_hermes", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !11, i64 40, !14, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"", !7, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass