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

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

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

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

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

; Function Attrs: 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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3AHBCCallNInst0x3A0x3AHBCCallNInst0x28hermes0x3A0x3ALiteralString0x2A0x2C0x20hermes0x3A0x3AValue0x2A0x2C0x20hermes0x3A0x3ALiteralUndefined0x2A0x2C0x20hermes0x3A0x3AValue0x2A0x2C0x20llvh0x3A0x3AArrayRef0x3Chermes0x3A0x3AValue0x2A0x3E0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #4 {
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !9
  store i32 %6, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store i64 0, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %23 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %23, ptr %16, align 4, !tbaa !9
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.w2c_hermes, ptr %24, i32 0, i32 6
  %26 = load i32, ptr %16, align 4, !tbaa !9
  %27 = zext i32 %26 to i64
  %28 = call i64 @i64_load(ptr noundef %25, i64 noundef %27)
  store i64 %28, ptr %21, align 8, !tbaa !11
  %29 = load i64, ptr %21, align 8, !tbaa !11
  store i64 %29, ptr %15, align 8, !tbaa !11
  %30 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %30, ptr %16, align 4, !tbaa !9
  store i64 8589934592, ptr %22, align 8, !tbaa !11
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.w2c_hermes, ptr %31, i32 0, i32 6
  %33 = load i32, ptr %16, align 4, !tbaa !9
  %34 = zext i32 %33 to i64
  %35 = add i64 %34, 20
  %36 = load i64, ptr %22, align 8, !tbaa !11
  call void @i64_store(ptr noundef %32, i64 noundef %35, i64 noundef %36)
  %37 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %37, ptr %16, align 4, !tbaa !9
  %38 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %38, ptr %17, align 4, !tbaa !9
  store i32 28, ptr %18, align 4, !tbaa !9
  %39 = load i32, ptr %18, align 4, !tbaa !9
  %40 = load i32, ptr %17, align 4, !tbaa !9
  %41 = add i32 %40, %39
  store i32 %41, ptr %17, align 4, !tbaa !9
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.w2c_hermes, ptr %42, i32 0, i32 6
  %44 = load i32, ptr %16, align 4, !tbaa !9
  %45 = zext i32 %44 to i64
  %46 = add i64 %45, 16
  %47 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %43, i64 noundef %46, i32 noundef %47)
  %48 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %48, ptr %16, align 4, !tbaa !9
  store i32 459775, ptr %17, align 4, !tbaa !9
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.w2c_hermes, ptr %49, i32 0, i32 6
  %51 = load i32, ptr %16, align 4, !tbaa !9
  %52 = zext i32 %51 to i64
  %53 = add i64 %52, 10
  %54 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %50, i64 noundef %53, i32 noundef %54)
  %55 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %55, ptr %16, align 4, !tbaa !9
  store i64 0, ptr %22, align 8, !tbaa !11
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.w2c_hermes, ptr %56, i32 0, i32 6
  %58 = load i32, ptr %16, align 4, !tbaa !9
  %59 = zext i32 %58 to i64
  %60 = load i64, ptr %22, align 8, !tbaa !11
  call void @i64_store(ptr noundef %57, i64 noundef %59, i64 noundef %60)
  %61 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %61, ptr %16, align 4, !tbaa !9
  store i64 0, ptr %22, align 8, !tbaa !11
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.w2c_hermes, ptr %62, i32 0, i32 6
  %64 = load i32, ptr %16, align 4, !tbaa !9
  %65 = zext i32 %64 to i64
  %66 = add i64 %65, 68
  %67 = load i64, ptr %22, align 8, !tbaa !11
  call void @i64_store(ptr noundef %63, i64 noundef %66, i64 noundef %67)
  %68 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %68, ptr %16, align 4, !tbaa !9
  store i64 8589934592, ptr %22, align 8, !tbaa !11
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.w2c_hermes, ptr %69, i32 0, i32 6
  %71 = load i32, ptr %16, align 4, !tbaa !9
  %72 = zext i32 %71 to i64
  %73 = add i64 %72, 44
  %74 = load i64, ptr %22, align 8, !tbaa !11
  call void @i64_store(ptr noundef %70, i64 noundef %73, i64 noundef %74)
  %75 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %75, ptr %16, align 4, !tbaa !9
  %76 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %76, ptr %17, align 4, !tbaa !9
  store i32 52, ptr %18, align 4, !tbaa !9
  %77 = load i32, ptr %18, align 4, !tbaa !9
  %78 = load i32, ptr %17, align 4, !tbaa !9
  %79 = add i32 %78, %77
  store i32 %79, ptr %17, align 4, !tbaa !9
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.w2c_hermes, ptr %80, i32 0, i32 6
  %82 = load i32, ptr %16, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = add i64 %83, 40
  %85 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %81, i64 noundef %84, i32 noundef %85)
  %86 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %86, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.w2c_hermes, ptr %87, i32 0, i32 6
  %89 = load i32, ptr %16, align 4, !tbaa !9
  %90 = zext i32 %89 to i64
  %91 = add i64 %90, 36
  %92 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %88, i64 noundef %91, i32 noundef %92)
  %93 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %93, ptr %16, align 4, !tbaa !9
  store i32 96, ptr %17, align 4, !tbaa !9
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.w2c_hermes, ptr %94, i32 0, i32 6
  %96 = load i32, ptr %16, align 4, !tbaa !9
  %97 = zext i32 %96 to i64
  %98 = add i64 %97, 8
  %99 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %95, i64 noundef %98, i32 noundef %99)
  %100 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %100, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.w2c_hermes, ptr %101, i32 0, i32 6
  %103 = load i32, ptr %16, align 4, !tbaa !9
  %104 = zext i32 %103 to i64
  %105 = add i64 %104, 76
  %106 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %102, i64 noundef %105, i32 noundef %106)
  %107 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %107, ptr %16, align 4, !tbaa !9
  %108 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %108, ptr %17, align 4, !tbaa !9
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.w2c_hermes, ptr %109, i32 0, i32 6
  %111 = load i32, ptr %16, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = add i64 %112, 80
  %114 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %110, i64 noundef %113, i32 noundef %114)
  %115 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %115, ptr %16, align 4, !tbaa !9
  %116 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %116, ptr %17, align 4, !tbaa !9
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = load i32, ptr %16, align 4, !tbaa !9
  %119 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3AInstruction0x3A0x3ApushOperand0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef %117, i32 noundef %118, i32 noundef %119)
  %120 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %120, ptr %16, align 4, !tbaa !9
  %121 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %121, ptr %17, align 4, !tbaa !9
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = load i32, ptr %16, align 4, !tbaa !9
  %124 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3AInstruction0x3A0x3ApushOperand0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef %122, i32 noundef %123, i32 noundef %124)
  %125 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %125, ptr %16, align 4, !tbaa !9
  %126 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %126, ptr %17, align 4, !tbaa !9
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  %128 = load i32, ptr %16, align 4, !tbaa !9
  %129 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3AInstruction0x3A0x3ApushOperand0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef %127, i32 noundef %128, i32 noundef %129)
  %130 = load i64, ptr %15, align 8, !tbaa !11
  store i64 %130, ptr %21, align 8, !tbaa !11
  store i64 32, ptr %22, align 8, !tbaa !11
  %131 = load i64, ptr %22, align 8, !tbaa !11
  %132 = and i64 %131, 63
  %133 = load i64, ptr %21, align 8, !tbaa !11
  %134 = lshr i64 %133, %132
  store i64 %134, ptr %21, align 8, !tbaa !11
  %135 = load i64, ptr %21, align 8, !tbaa !11
  %136 = trunc i64 %135 to i32
  store i32 %136, ptr %16, align 4, !tbaa !9
  %137 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %137, ptr %11, align 4, !tbaa !9
  %138 = load i32, ptr %16, align 4, !tbaa !9
  %139 = icmp ne i32 %138, 0
  %140 = xor i1 %139, true
  %141 = zext i1 %140 to i32
  store i32 %141, ptr %16, align 4, !tbaa !9
  %142 = load i32, ptr %16, align 4, !tbaa !9
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %145

144:                                              ; preds = %7
  br label %210

145:                                              ; preds = %7
  %146 = load i64, ptr %15, align 8, !tbaa !11
  store i64 %146, ptr %21, align 8, !tbaa !11
  %147 = load i64, ptr %21, align 8, !tbaa !11
  %148 = trunc i64 %147 to i32
  store i32 %148, ptr %16, align 4, !tbaa !9
  %149 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %149, ptr %14, align 4, !tbaa !9
  %150 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %150, ptr %17, align 4, !tbaa !9
  store i32 2, ptr %18, align 4, !tbaa !9
  %151 = load i32, ptr %18, align 4, !tbaa !9
  %152 = and i32 %151, 31
  %153 = load i32, ptr %17, align 4, !tbaa !9
  %154 = shl i32 %153, %152
  store i32 %154, ptr %17, align 4, !tbaa !9
  %155 = load i32, ptr %17, align 4, !tbaa !9
  %156 = load i32, ptr %16, align 4, !tbaa !9
  %157 = add i32 %156, %155
  store i32 %157, ptr %16, align 4, !tbaa !9
  %158 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %158, ptr %10, align 4, !tbaa !9
  br label %159

159:                                              ; preds = %182, %145
  %160 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %160, ptr %16, align 4, !tbaa !9
  %161 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %161, ptr %17, align 4, !tbaa !9
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.w2c_hermes, ptr %162, i32 0, i32 6
  %164 = load i32, ptr %17, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = call i32 @i32_load(ptr noundef %163, i64 noundef %165)
  store i32 %166, ptr %17, align 4, !tbaa !9
  %167 = load ptr, ptr %8, align 8, !tbaa !5
  %168 = load i32, ptr %16, align 4, !tbaa !9
  %169 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3AInstruction0x3A0x3ApushOperand0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef %167, i32 noundef %168, i32 noundef %169)
  %170 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %170, ptr %16, align 4, !tbaa !9
  store i32 4, ptr %17, align 4, !tbaa !9
  %171 = load i32, ptr %17, align 4, !tbaa !9
  %172 = load i32, ptr %16, align 4, !tbaa !9
  %173 = add i32 %172, %171
  store i32 %173, ptr %16, align 4, !tbaa !9
  %174 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %174, ptr %14, align 4, !tbaa !9
  %175 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %175, ptr %17, align 4, !tbaa !9
  %176 = load i32, ptr %16, align 4, !tbaa !9
  %177 = load i32, ptr %17, align 4, !tbaa !9
  %178 = icmp ne i32 %176, %177
  %179 = zext i1 %178 to i32
  store i32 %179, ptr %16, align 4, !tbaa !9
  %180 = load i32, ptr %16, align 4, !tbaa !9
  %181 = icmp ne i32 %180, 0
  br i1 %181, label %182, label %183

182:                                              ; preds = %159
  br label %159

183:                                              ; preds = %159
  %184 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %184, ptr %16, align 4, !tbaa !9
  store i32 4, ptr %17, align 4, !tbaa !9
  %185 = load i32, ptr %16, align 4, !tbaa !9
  %186 = load i32, ptr %17, align 4, !tbaa !9
  %187 = icmp ult i32 %185, %186
  %188 = zext i1 %187 to i32
  store i32 %188, ptr %16, align 4, !tbaa !9
  %189 = load i32, ptr %16, align 4, !tbaa !9
  %190 = icmp ne i32 %189, 0
  br i1 %190, label %191, label %192

191:                                              ; preds = %183
  br label %210

192:                                              ; preds = %183
  store i32 0, ptr %16, align 4, !tbaa !9
  %193 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %193, ptr %14, align 4, !tbaa !9
  store i32 129008, ptr %17, align 4, !tbaa !9
  %194 = load i32, ptr %17, align 4, !tbaa !9
  %195 = load i32, ptr %16, align 4, !tbaa !9
  %196 = add i32 %195, %194
  store i32 %196, ptr %16, align 4, !tbaa !9
  %197 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %197, ptr %17, align 4, !tbaa !9
  store i32 78223, ptr %18, align 4, !tbaa !9
  %198 = load i32, ptr %18, align 4, !tbaa !9
  %199 = load i32, ptr %17, align 4, !tbaa !9
  %200 = add i32 %199, %198
  store i32 %200, ptr %17, align 4, !tbaa !9
  store i32 1116, ptr %18, align 4, !tbaa !9
  %201 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %201, ptr %19, align 4, !tbaa !9
  store i32 23784, ptr %20, align 4, !tbaa !9
  %202 = load i32, ptr %20, align 4, !tbaa !9
  %203 = load i32, ptr %19, align 4, !tbaa !9
  %204 = add i32 %203, %202
  store i32 %204, ptr %19, align 4, !tbaa !9
  %205 = load ptr, ptr %8, align 8, !tbaa !5
  %206 = load i32, ptr %16, align 4, !tbaa !9
  %207 = load i32, ptr %17, align 4, !tbaa !9
  %208 = load i32, ptr %18, align 4, !tbaa !9
  %209 = load i32, ptr %19, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %205, i32 noundef %206, i32 noundef %207, i32 noundef %208, i32 noundef %209)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

210:                                              ; preds = %191, %144
  %211 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %211, ptr %16, align 4, !tbaa !9
  %212 = load i32, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  ret i32 %212
}

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}


; 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

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

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

; 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 void @i32_store8(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @w2c_hermes_hermes0x3A0x3AHBCCallNInst0x3A0x3AHBCCallNInst0x28hermes0x3A0x3ALiteralString0x2A0x2C0x20hermes0x3A0x3AValue0x2A0x2C0x20hermes0x3A0x3ALiteralUndefined0x2A0x2C0x20hermes0x3A0x3AValue0x2A0x2C0x20llvh0x3A0x3AArrayRef0x3Chermes0x3A0x3AValue0x2A0x3E0x29(ptr noundef %0, i32 noundef returned %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) local_unnamed_addr #3 {
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = zext i32 %6 to i64
  %10 = tail call i64 @i64_load(ptr noundef nonnull %8, i64 noundef %9)
  %11 = zext i32 %1 to i64
  %12 = add nuw nsw i64 %11, 20
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %12, i64 noundef 8589934592)
  %13 = add i32 %1, 28
  %14 = add nuw nsw i64 %11, 16
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %14, i32 noundef %13)
  %15 = add nuw nsw i64 %11, 10
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %15, i32 noundef 459775)
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %11, i64 noundef 0)
  %16 = add nuw nsw i64 %11, 68
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %16, i64 noundef 0)
  %17 = add nuw nsw i64 %11, 44
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %17, i64 noundef 8589934592)
  %18 = add i32 %1, 52
  %19 = add nuw nsw i64 %11, 40
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %19, i32 noundef %18)
  %20 = add nuw nsw i64 %11, 36
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %20, i32 noundef 0)
  %21 = add nuw nsw i64 %11, 8
  tail call void @i32_store8(ptr noundef nonnull %8, i64 noundef %21, i32 noundef 96)
  %22 = add nuw nsw i64 %11, 76
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %22, i32 noundef 0)
  %23 = add nuw nsw i64 %11, 80
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %23, i32 noundef %2)
  tail call void @w2c_hermes_hermes0x3A0x3AInstruction0x3A0x3ApushOperand0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %3)
  tail call void @w2c_hermes_hermes0x3A0x3AInstruction0x3A0x3ApushOperand0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %4)
  tail call void @w2c_hermes_hermes0x3A0x3AInstruction0x3A0x3ApushOperand0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %5)
  %.not = icmp ult i64 %10, 4294967296
  br i1 %.not, label %35, label %24

24:                                               ; preds = %7
  %25 = trunc i64 %10 to i32
  %sh.diff = lshr i64 %10, 30
  %tr.sh.diff = trunc i64 %sh.diff to i32
  %26 = and i32 %tr.sh.diff, -4
  %27 = add i32 %26, %25
  br label %28

28:                                               ; preds = %28, %24
  %.0 = phi i32 [ %25, %24 ], [ %31, %28 ]
  %29 = zext i32 %.0 to i64
  %30 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %29)
  tail call void @w2c_hermes_hermes0x3A0x3AInstruction0x3A0x3ApushOperand0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %30)
  %31 = add i32 %.0, 4
  %.not120 = icmp eq i32 %31, %27
  br i1 %.not120, label %32, label %28

32:                                               ; preds = %28
  %33 = icmp ult i64 %10, 17179869184
  br i1 %33, label %35, label %34

34:                                               ; preds = %32
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 129008, i32 noundef 78223, i32 noundef 1116, i32 noundef 23784) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

35:                                               ; preds = %32, %7
  ret i32 %1
}

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


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