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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSObject0x3A0x3AJSObject0x3Chermes0x3A0x3Avm0x3A0x3AGCPointerBase0x3A0x3ANoBarriers0x3E0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AHiddenClass0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AGCPointerBase0x3A0x3ANoBarriers0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

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

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

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

57:                                               ; preds = %6
  %58 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %58, ptr %19, align 8, !tbaa !11
  store i64 -844424930131969, ptr %20, align 8, !tbaa !11
  %59 = load i64, ptr %19, align 8, !tbaa !11
  %60 = load i64, ptr %20, align 8, !tbaa !11
  %61 = icmp ule i64 %59, %60
  %62 = zext i1 %61 to i32
  store i32 %62, ptr %14, align 4, !tbaa !9
  %63 = load i32, ptr %14, align 4, !tbaa !9
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %66

65:                                               ; preds = %57
  br label %152

66:                                               ; preds = %57
  %67 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %67, ptr %14, align 4, !tbaa !9
  store i32 28, ptr %15, align 4, !tbaa !9
  %68 = load i32, ptr %15, align 4, !tbaa !9
  %69 = load i32, ptr %14, align 4, !tbaa !9
  %70 = add i32 %69, %68
  store i32 %70, ptr %14, align 4, !tbaa !9
  %71 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %71, ptr %8, align 4, !tbaa !9
  %72 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %72, ptr %20, align 8, !tbaa !11
  %73 = load i64, ptr %20, align 8, !tbaa !11
  %74 = trunc i64 %73 to i32
  store i32 %74, ptr %15, align 4, !tbaa !9
  %75 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %75, ptr %10, align 4, !tbaa !9
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.w2c_hermes, ptr %76, i32 0, i32 6
  %78 = load i32, ptr %14, align 4, !tbaa !9
  %79 = zext i32 %78 to i64
  %80 = load i32, ptr %15, align 4, !tbaa !9
  call void @i32_store(ptr noundef %77, i64 noundef %79, i32 noundef %80)
  %81 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %81, ptr %14, align 4, !tbaa !9
  store i32 808, ptr %15, align 4, !tbaa !9
  %82 = load i32, ptr %15, align 4, !tbaa !9
  %83 = load i32, ptr %14, align 4, !tbaa !9
  %84 = add i32 %83, %82
  store i32 %84, ptr %14, align 4, !tbaa !9
  %85 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %85, ptr %12, align 4, !tbaa !9
  %86 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %86, ptr %14, align 4, !tbaa !9
  %87 = load i32, ptr %14, align 4, !tbaa !9
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %104

89:                                               ; preds = %66
  %90 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %90, ptr %14, align 4, !tbaa !9
  %91 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %91, ptr %15, align 4, !tbaa !9
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = load i32, ptr %14, align 4, !tbaa !9
  %94 = load i32, ptr %15, align 4, !tbaa !9
  %95 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AvalidPointer0x28void0x20const0x2A0x290x20const(ptr noundef %92, i32 noundef %93, i32 noundef %94)
  store i32 %95, ptr %14, align 4, !tbaa !9
  %96 = load i32, ptr %14, align 4, !tbaa !9
  %97 = icmp ne i32 %96, 0
  %98 = xor i1 %97, true
  %99 = zext i1 %98 to i32
  store i32 %99, ptr %14, align 4, !tbaa !9
  %100 = load i32, ptr %14, align 4, !tbaa !9
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %103

102:                                              ; preds = %89
  br label %170

103:                                              ; preds = %89
  br label %104

104:                                              ; preds = %103, %66
  %105 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %105, ptr %14, align 4, !tbaa !9
  store i32 1396, ptr %15, align 4, !tbaa !9
  %106 = load i32, ptr %15, align 4, !tbaa !9
  %107 = load i32, ptr %14, align 4, !tbaa !9
  %108 = add i32 %107, %106
  store i32 %108, ptr %14, align 4, !tbaa !9
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.w2c_hermes, ptr %109, i32 0, i32 6
  %111 = load i32, ptr %14, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = call i32 @i32_load(ptr noundef %110, i64 noundef %112)
  store i32 %113, ptr %14, align 4, !tbaa !9
  %114 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %114, ptr %15, align 4, !tbaa !9
  store i32 -4194304, ptr %16, align 4, !tbaa !9
  %115 = load i32, ptr %16, align 4, !tbaa !9
  %116 = load i32, ptr %15, align 4, !tbaa !9
  %117 = and i32 %116, %115
  store i32 %117, ptr %15, align 4, !tbaa !9
  %118 = load i32, ptr %14, align 4, !tbaa !9
  %119 = load i32, ptr %15, align 4, !tbaa !9
  %120 = icmp ne i32 %118, %119
  %121 = zext i1 %120 to i32
  store i32 %121, ptr %14, align 4, !tbaa !9
  %122 = load i32, ptr %14, align 4, !tbaa !9
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %132

124:                                              ; preds = %104
  %125 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %125, ptr %14, align 4, !tbaa !9
  %126 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %126, ptr %15, align 4, !tbaa !9
  %127 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %127, ptr %16, align 4, !tbaa !9
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = load i32, ptr %14, align 4, !tbaa !9
  %130 = load i32, ptr %15, align 4, !tbaa !9
  %131 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3ArelocationWriteBarrier0x28void0x20const0x2A0x2C0x20void0x20const0x2A0x29(ptr noundef %128, i32 noundef %129, i32 noundef %130, i32 noundef %131)
  br label %132

132:                                              ; preds = %124, %104
  %133 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %133, ptr %14, align 4, !tbaa !9
  br label %188

134:                                              ; preds = %6
  store i32 0, ptr %14, align 4, !tbaa !9
  %135 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %135, ptr %9, align 4, !tbaa !9
  store i32 118124, ptr %15, align 4, !tbaa !9
  %136 = load i32, ptr %15, align 4, !tbaa !9
  %137 = load i32, ptr %14, align 4, !tbaa !9
  %138 = add i32 %137, %136
  store i32 %138, ptr %14, align 4, !tbaa !9
  %139 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %139, ptr %15, align 4, !tbaa !9
  store i32 83341, ptr %16, align 4, !tbaa !9
  %140 = load i32, ptr %16, align 4, !tbaa !9
  %141 = load i32, ptr %15, align 4, !tbaa !9
  %142 = add i32 %141, %140
  store i32 %142, ptr %15, align 4, !tbaa !9
  store i32 480, ptr %16, align 4, !tbaa !9
  %143 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %143, ptr %17, align 4, !tbaa !9
  store i32 38798, ptr %18, align 4, !tbaa !9
  %144 = load i32, ptr %18, align 4, !tbaa !9
  %145 = load i32, ptr %17, align 4, !tbaa !9
  %146 = add i32 %145, %144
  store i32 %146, ptr %17, align 4, !tbaa !9
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = load i32, ptr %14, align 4, !tbaa !9
  %149 = load i32, ptr %15, align 4, !tbaa !9
  %150 = load i32, ptr %16, align 4, !tbaa !9
  %151 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %147, i32 noundef %148, i32 noundef %149, i32 noundef %150, i32 noundef %151)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

152:                                              ; preds = %65
  store i32 0, ptr %14, align 4, !tbaa !9
  %153 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %153, ptr %9, align 4, !tbaa !9
  store i32 118273, ptr %15, align 4, !tbaa !9
  %154 = load i32, ptr %15, align 4, !tbaa !9
  %155 = load i32, ptr %14, align 4, !tbaa !9
  %156 = add i32 %155, %154
  store i32 %156, ptr %14, align 4, !tbaa !9
  %157 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %157, ptr %15, align 4, !tbaa !9
  store i32 83341, ptr %16, align 4, !tbaa !9
  %158 = load i32, ptr %16, align 4, !tbaa !9
  %159 = load i32, ptr %15, align 4, !tbaa !9
  %160 = add i32 %159, %158
  store i32 %160, ptr %15, align 4, !tbaa !9
  store i32 438, ptr %16, align 4, !tbaa !9
  %161 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %161, ptr %17, align 4, !tbaa !9
  store i32 49706, ptr %18, align 4, !tbaa !9
  %162 = load i32, ptr %18, align 4, !tbaa !9
  %163 = load i32, ptr %17, align 4, !tbaa !9
  %164 = add i32 %163, %162
  store i32 %164, ptr %17, align 4, !tbaa !9
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  %166 = load i32, ptr %14, align 4, !tbaa !9
  %167 = load i32, ptr %15, align 4, !tbaa !9
  %168 = load i32, ptr %16, align 4, !tbaa !9
  %169 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %165, i32 noundef %166, i32 noundef %167, i32 noundef %168, i32 noundef %169)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

170:                                              ; preds = %102
  store i32 0, ptr %14, align 4, !tbaa !9
  %171 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %171, ptr %9, align 4, !tbaa !9
  store i32 147550, ptr %15, align 4, !tbaa !9
  %172 = load i32, ptr %15, align 4, !tbaa !9
  %173 = load i32, ptr %14, align 4, !tbaa !9
  %174 = add i32 %173, %172
  store i32 %174, ptr %14, align 4, !tbaa !9
  %175 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %175, ptr %15, align 4, !tbaa !9
  store i32 83763, ptr %16, align 4, !tbaa !9
  %176 = load i32, ptr %16, align 4, !tbaa !9
  %177 = load i32, ptr %15, align 4, !tbaa !9
  %178 = add i32 %177, %176
  store i32 %178, ptr %15, align 4, !tbaa !9
  store i32 28, ptr %16, align 4, !tbaa !9
  %179 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %179, ptr %17, align 4, !tbaa !9
  store i32 92238, ptr %18, align 4, !tbaa !9
  %180 = load i32, ptr %18, align 4, !tbaa !9
  %181 = load i32, ptr %17, align 4, !tbaa !9
  %182 = add i32 %181, %180
  store i32 %182, ptr %17, align 4, !tbaa !9
  %183 = load ptr, ptr %7, align 8, !tbaa !5
  %184 = load i32, ptr %14, align 4, !tbaa !9
  %185 = load i32, ptr %15, align 4, !tbaa !9
  %186 = load i32, ptr %16, align 4, !tbaa !9
  %187 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %183, i32 noundef %184, i32 noundef %185, i32 noundef %186, i32 noundef %187)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

188:                                              ; preds = %132
  %189 = load i32, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  ret i32 %189
}

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSObject0x3A0x3AJSObject0x3Chermes0x3A0x3Avm0x3A0x3AGCPointerBase0x3A0x3ANoBarriers0x3E0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AHiddenClass0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AGCPointerBase0x3A0x3ANoBarriers0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACallable0x3A0x3ACallable0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AHiddenClass0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AEnvironment0x3E0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #3 {
  %7 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSObject0x3A0x3AJSObject0x3Chermes0x3A0x3Avm0x3A0x3AGCPointerBase0x3A0x3ANoBarriers0x3E0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AJSObject0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AHiddenClass0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AGCPointerBase0x3A0x3ANoBarriers0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #4
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = zext i32 %5 to i64
  %10 = add nuw nsw i64 %9, 4
  %11 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %10)
  %12 = zext i32 %11 to i64
  %13 = tail call i64 @i64_load(ptr noundef nonnull %8, i64 noundef %12)
  %14 = icmp ugt i64 %13, -281474976710657
  br i1 %14, label %15, label %29

15:                                               ; preds = %6
  %16 = add i32 %7, 28
  %17 = trunc i64 %13 to i32
  %18 = zext i32 %16 to i64
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %18, i32 noundef %17)
  %19 = add i32 %2, 808
  %.not = icmp eq i32 %17, 0
  br i1 %.not, label %22, label %20

20:                                               ; preds = %15
  %21 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AvalidPointer0x28void0x20const0x2A0x290x20const(ptr noundef %0, i32 noundef %19, i32 noundef %17)
  %.not111 = icmp eq i32 %21, 0
  br i1 %.not111, label %30, label %22

22:                                               ; preds = %20, %15
  %23 = add i32 %2, 1396
  %24 = zext i32 %23 to i64
  %25 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %24)
  %26 = and i32 %16, -4194304
  %.not112 = icmp eq i32 %25, %26
  br i1 %.not112, label %28, label %27

27:                                               ; preds = %22
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3ArelocationWriteBarrier0x28void0x20const0x2A0x2C0x20void0x20const0x2A0x29(ptr noundef %0, i32 noundef %19, i32 noundef %16, i32 noundef %17)
  br label %28

28:                                               ; preds = %27, %22
  ret i32 %7

29:                                               ; preds = %6
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 118124, i32 noundef 83341, i32 noundef 480, i32 noundef 38798) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

30:                                               ; preds = %20
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 147550, i32 noundef 83763, i32 noundef 28, i32 noundef 92238) #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