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

; 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 }
%struct.wasm_rt_funcref_t = type { ptr, ptr, ptr }

@w2c_hermes_t0 = external constant ptr, align 8

; 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: 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 zeroext i1 @func_types_eq(ptr noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #2

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Ffunction0x3A0x3A_0x5Ffunc0x3C0x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AHermesABIRuntimeImpl0x28hermes0x3A0x3Avm0x3A0x3ARuntimeConfig0x20const0x260x290x3A0x3A0x27lambda0x270x28hermes0x3A0x3Avm0x3A0x3AHadesGC0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AWeakRootAcceptor0x260x290x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3C0x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AHermesABIRuntimeImpl0x28hermes0x3A0x3Avm0x3A0x3ARuntimeConfig0x20const0x260x290x3A0x3A0x27lambda0x270x28hermes0x3A0x3Avm0x3A0x3AHadesGC0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AWeakRootAcceptor0x260x290x3E0x2C0x20void0x200x28hermes0x3A0x3Avm0x3A0x3AHadesGC0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AWeakRootAcceptor0x260x290x3E0x3A0x3Aoperator0x280x290x28hermes0x3A0x3Avm0x3A0x3AHadesGC0x2A0x260x260x2C0x20hermes0x3A0x3Avm0x3A0x3AWeakRootAcceptor0x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #5 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  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) #6
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %15 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %15, ptr %11, align 4, !tbaa !9
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.w2c_hermes, ptr %16, i32 0, i32 6
  %18 = load i32, ptr %11, align 4, !tbaa !9
  %19 = zext i32 %18 to i64
  %20 = add i64 %19, 4
  %21 = call i32 @i32_load(ptr noundef %17, i64 noundef %20)
  store i32 %21, ptr %11, align 4, !tbaa !9
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.w2c_hermes, ptr %22, i32 0, i32 6
  %24 = load i32, ptr %11, align 4, !tbaa !9
  %25 = zext i32 %24 to i64
  %26 = add i64 %25, 56
  %27 = call i32 @i32_load(ptr noundef %23, i64 noundef %26)
  store i32 %27, ptr %11, align 4, !tbaa !9
  %28 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %28, ptr %9, align 4, !tbaa !9
  %29 = load i32, ptr %11, align 4, !tbaa !9
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %286

31:                                               ; preds = %4
  br label %32

32:                                               ; preds = %284, %31
  %33 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %33, ptr %11, align 4, !tbaa !9
  store i32 196, ptr %12, align 4, !tbaa !9
  %34 = load i32, ptr %12, align 4, !tbaa !9
  %35 = load i32, ptr %11, align 4, !tbaa !9
  %36 = add i32 %35, %34
  store i32 %36, ptr %11, align 4, !tbaa !9
  %37 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %37, ptr %10, align 4, !tbaa !9
  %38 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %38, ptr %11, align 4, !tbaa !9
  store i32 4, ptr %12, align 4, !tbaa !9
  %39 = load i32, ptr %12, align 4, !tbaa !9
  %40 = load i32, ptr %11, align 4, !tbaa !9
  %41 = add i32 %40, %39
  store i32 %41, ptr %11, align 4, !tbaa !9
  %42 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %42, ptr %6, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %266, %32
  %44 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %44, ptr %11, align 4, !tbaa !9
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.w2c_hermes, ptr %45, i32 0, i32 6
  %47 = load i32, ptr %11, align 4, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = add i64 %48, 4
  %50 = call i32 @i32_load(ptr noundef %46, i64 noundef %49)
  store i32 %50, ptr %11, align 4, !tbaa !9
  %51 = load i32, ptr %11, align 4, !tbaa !9
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %148

53:                                               ; preds = %43
  %54 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %54, ptr %11, align 4, !tbaa !9
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.w2c_hermes, ptr %55, i32 0, i32 6
  %57 = load i32, ptr %11, align 4, !tbaa !9
  %58 = zext i32 %57 to i64
  %59 = add i64 %58, 4
  %60 = call i32 @i32_load(ptr noundef %56, i64 noundef %59)
  store i32 %60, ptr %11, align 4, !tbaa !9
  %61 = load i32, ptr %11, align 4, !tbaa !9
  %62 = icmp ne i32 %61, 0
  %63 = xor i1 %62, true
  %64 = zext i1 %63 to i32
  store i32 %64, ptr %11, align 4, !tbaa !9
  %65 = load i32, ptr %11, align 4, !tbaa !9
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %68

67:                                               ; preds = %53
  br label %268

68:                                               ; preds = %53
  %69 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %69, ptr %11, align 4, !tbaa !9
  %70 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %70, ptr %12, align 4, !tbaa !9
  store i32 8, ptr %13, align 4, !tbaa !9
  %71 = load i32, ptr %13, align 4, !tbaa !9
  %72 = load i32, ptr %12, align 4, !tbaa !9
  %73 = add i32 %72, %71
  store i32 %73, ptr %12, align 4, !tbaa !9
  %74 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %74, ptr %13, 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 %13, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = call i32 @i32_load(ptr noundef %76, i64 noundef %78)
  store i32 %79, ptr %13, align 4, !tbaa !9
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.w2c_hermes, ptr %80, i32 0, i32 6
  %82 = load i32, ptr %13, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = add i64 %83, 16
  %85 = call i32 @i32_load(ptr noundef %81, i64 noundef %84)
  store i32 %85, ptr %13, align 4, !tbaa !9
  %86 = load i32, ptr %13, align 4, !tbaa !9
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.w2c_hermes, ptr %87, i32 0, i32 7
  %89 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %88, i32 0, i32 2
  %90 = load i32, ptr %89, align 4, !tbaa !11
  %91 = icmp ult i32 %86, %90
  br i1 %91, label %92, label %115

92:                                               ; preds = %68
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.w2c_hermes, ptr %93, i32 0, i32 7
  %95 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %94, i32 0, i32 0
  %96 = load ptr, ptr %95, align 8, !tbaa !17
  %97 = load i32, ptr %13, align 4, !tbaa !9
  %98 = zext i32 %97 to i64
  %99 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %96, i64 %98
  %100 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %99, i32 0, i32 1
  %101 = load ptr, ptr %100, align 8, !tbaa !18
  %102 = icmp ne ptr %101, null
  br i1 %102, label %103, label %115

103:                                              ; preds = %92
  %104 = load ptr, ptr @w2c_hermes_t0, align 8, !tbaa !5
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.w2c_hermes, ptr %105, i32 0, i32 7
  %107 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %106, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8, !tbaa !17
  %109 = load i32, ptr %13, align 4, !tbaa !9
  %110 = zext i32 %109 to i64
  %111 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %108, i64 %110
  %112 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %111, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8, !tbaa !20
  %114 = call zeroext i1 @func_types_eq(ptr noundef %104, ptr noundef %113)
  br label %115

115:                                              ; preds = %103, %92, %68
  %116 = phi i1 [ false, %92 ], [ false, %68 ], [ %114, %103 ]
  %117 = xor i1 %116, true
  %118 = xor i1 %117, true
  %119 = zext i1 %118 to i32
  %120 = sext i32 %119 to i64
  %121 = call i64 @llvm.expect.i64(i64 %120, i64 1)
  %122 = icmp ne i64 %121, 0
  br i1 %122, label %125, label %123

123:                                              ; preds = %115
  call void @wasm_rt_trap(i32 noundef 6) #7
  unreachable

124:                                              ; No predecessors!
  br label %125

125:                                              ; preds = %124, %115
  %126 = phi i1 [ true, %115 ], [ false, %124 ]
  %127 = zext i1 %126 to i32
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.w2c_hermes, ptr %128, i32 0, i32 7
  %130 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %129, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8, !tbaa !17
  %132 = load i32, ptr %13, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %131, i64 %133
  %135 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %134, i32 0, i32 1
  %136 = load ptr, ptr %135, align 8, !tbaa !18
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.w2c_hermes, ptr %137, i32 0, i32 7
  %139 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %138, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8, !tbaa !17
  %141 = load i32, ptr %13, align 4, !tbaa !9
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %140, i64 %142
  %144 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %143, i32 0, i32 2
  %145 = load ptr, ptr %144, align 8, !tbaa !21
  %146 = load i32, ptr %11, align 4, !tbaa !9
  %147 = load i32, ptr %12, align 4, !tbaa !9
  call void %136(ptr noundef %145, i32 noundef %146, i32 noundef %147)
  br label %148

148:                                              ; preds = %125, %43
  %149 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %149, ptr %11, align 4, !tbaa !9
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.w2c_hermes, ptr %150, i32 0, i32 6
  %152 = load i32, ptr %11, align 4, !tbaa !9
  %153 = zext i32 %152 to i64
  %154 = add i64 %153, 16
  %155 = call i32 @i32_load(ptr noundef %151, i64 noundef %154)
  store i32 %155, ptr %11, align 4, !tbaa !9
  %156 = load i32, ptr %11, align 4, !tbaa !9
  %157 = icmp ne i32 %156, 0
  br i1 %157, label %158, label %253

158:                                              ; preds = %148
  %159 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %159, ptr %11, align 4, !tbaa !9
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.w2c_hermes, ptr %160, i32 0, i32 6
  %162 = load i32, ptr %11, align 4, !tbaa !9
  %163 = zext i32 %162 to i64
  %164 = add i64 %163, 16
  %165 = call i32 @i32_load(ptr noundef %161, i64 noundef %164)
  store i32 %165, ptr %11, align 4, !tbaa !9
  %166 = load i32, ptr %11, align 4, !tbaa !9
  %167 = icmp ne i32 %166, 0
  %168 = xor i1 %167, true
  %169 = zext i1 %168 to i32
  store i32 %169, ptr %11, align 4, !tbaa !9
  %170 = load i32, ptr %11, align 4, !tbaa !9
  %171 = icmp ne i32 %170, 0
  br i1 %171, label %172, label %173

172:                                              ; preds = %158
  br label %268

173:                                              ; preds = %158
  %174 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %174, ptr %11, align 4, !tbaa !9
  %175 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %175, ptr %12, align 4, !tbaa !9
  store i32 20, ptr %13, align 4, !tbaa !9
  %176 = load i32, ptr %13, align 4, !tbaa !9
  %177 = load i32, ptr %12, align 4, !tbaa !9
  %178 = add i32 %177, %176
  store i32 %178, ptr %12, align 4, !tbaa !9
  %179 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %179, ptr %13, align 4, !tbaa !9
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.w2c_hermes, ptr %180, i32 0, i32 6
  %182 = load i32, ptr %13, align 4, !tbaa !9
  %183 = zext i32 %182 to i64
  %184 = call i32 @i32_load(ptr noundef %181, i64 noundef %183)
  store i32 %184, ptr %13, align 4, !tbaa !9
  %185 = load ptr, ptr %5, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.w2c_hermes, ptr %185, i32 0, i32 6
  %187 = load i32, ptr %13, align 4, !tbaa !9
  %188 = zext i32 %187 to i64
  %189 = add i64 %188, 16
  %190 = call i32 @i32_load(ptr noundef %186, i64 noundef %189)
  store i32 %190, ptr %13, align 4, !tbaa !9
  %191 = load i32, ptr %13, align 4, !tbaa !9
  %192 = load ptr, ptr %5, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.w2c_hermes, ptr %192, i32 0, i32 7
  %194 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %193, i32 0, i32 2
  %195 = load i32, ptr %194, align 4, !tbaa !11
  %196 = icmp ult i32 %191, %195
  br i1 %196, label %197, label %220

197:                                              ; preds = %173
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.w2c_hermes, ptr %198, i32 0, i32 7
  %200 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %199, i32 0, i32 0
  %201 = load ptr, ptr %200, align 8, !tbaa !17
  %202 = load i32, ptr %13, align 4, !tbaa !9
  %203 = zext i32 %202 to i64
  %204 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %201, i64 %203
  %205 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %204, i32 0, i32 1
  %206 = load ptr, ptr %205, align 8, !tbaa !18
  %207 = icmp ne ptr %206, null
  br i1 %207, label %208, label %220

208:                                              ; preds = %197
  %209 = load ptr, ptr @w2c_hermes_t0, align 8, !tbaa !5
  %210 = load ptr, ptr %5, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.w2c_hermes, ptr %210, i32 0, i32 7
  %212 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %211, i32 0, i32 0
  %213 = load ptr, ptr %212, align 8, !tbaa !17
  %214 = load i32, ptr %13, align 4, !tbaa !9
  %215 = zext i32 %214 to i64
  %216 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %213, i64 %215
  %217 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %216, i32 0, i32 0
  %218 = load ptr, ptr %217, align 8, !tbaa !20
  %219 = call zeroext i1 @func_types_eq(ptr noundef %209, ptr noundef %218)
  br label %220

220:                                              ; preds = %208, %197, %173
  %221 = phi i1 [ false, %197 ], [ false, %173 ], [ %219, %208 ]
  %222 = xor i1 %221, true
  %223 = xor i1 %222, true
  %224 = zext i1 %223 to i32
  %225 = sext i32 %224 to i64
  %226 = call i64 @llvm.expect.i64(i64 %225, i64 1)
  %227 = icmp ne i64 %226, 0
  br i1 %227, label %230, label %228

228:                                              ; preds = %220
  call void @wasm_rt_trap(i32 noundef 6) #7
  unreachable

229:                                              ; No predecessors!
  br label %230

230:                                              ; preds = %229, %220
  %231 = phi i1 [ true, %220 ], [ false, %229 ]
  %232 = zext i1 %231 to i32
  %233 = load ptr, ptr %5, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.w2c_hermes, ptr %233, i32 0, i32 7
  %235 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %234, i32 0, i32 0
  %236 = load ptr, ptr %235, align 8, !tbaa !17
  %237 = load i32, ptr %13, align 4, !tbaa !9
  %238 = zext i32 %237 to i64
  %239 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %236, i64 %238
  %240 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %239, i32 0, i32 1
  %241 = load ptr, ptr %240, align 8, !tbaa !18
  %242 = load ptr, ptr %5, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.w2c_hermes, ptr %242, i32 0, i32 7
  %244 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %243, i32 0, i32 0
  %245 = load ptr, ptr %244, align 8, !tbaa !17
  %246 = load i32, ptr %13, align 4, !tbaa !9
  %247 = zext i32 %246 to i64
  %248 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %245, i64 %247
  %249 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %248, i32 0, i32 2
  %250 = load ptr, ptr %249, align 8, !tbaa !21
  %251 = load i32, ptr %11, align 4, !tbaa !9
  %252 = load i32, ptr %12, align 4, !tbaa !9
  call void %241(ptr noundef %250, i32 noundef %251, i32 noundef %252)
  br label %253

253:                                              ; preds = %230, %148
  %254 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %254, ptr %11, align 4, !tbaa !9
  %255 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %255, ptr %12, align 4, !tbaa !9
  store i32 24, ptr %13, align 4, !tbaa !9
  %256 = load i32, ptr %13, align 4, !tbaa !9
  %257 = load i32, ptr %12, align 4, !tbaa !9
  %258 = add i32 %257, %256
  store i32 %258, ptr %12, align 4, !tbaa !9
  %259 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %259, ptr %6, align 4, !tbaa !9
  %260 = load i32, ptr %11, align 4, !tbaa !9
  %261 = load i32, ptr %12, align 4, !tbaa !9
  %262 = icmp ne i32 %260, %261
  %263 = zext i1 %262 to i32
  store i32 %263, ptr %11, align 4, !tbaa !9
  %264 = load i32, ptr %11, align 4, !tbaa !9
  %265 = icmp ne i32 %264, 0
  br i1 %265, label %266, label %267

266:                                              ; preds = %253
  br label %43

267:                                              ; preds = %253
  br label %274

268:                                              ; preds = %172, %67
  store i32 131111, ptr %11, align 4, !tbaa !9
  store i32 61000, ptr %12, align 4, !tbaa !9
  store i32 95, ptr %13, align 4, !tbaa !9
  store i32 90287, ptr %14, align 4, !tbaa !9
  %269 = load ptr, ptr %5, align 8, !tbaa !5
  %270 = load i32, ptr %11, align 4, !tbaa !9
  %271 = load i32, ptr %12, align 4, !tbaa !9
  %272 = load i32, ptr %13, align 4, !tbaa !9
  %273 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %269, i32 noundef %270, i32 noundef %271, i32 noundef %272, i32 noundef %273)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

274:                                              ; preds = %267
  %275 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %275, ptr %11, align 4, !tbaa !9
  %276 = load ptr, ptr %5, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.w2c_hermes, ptr %276, i32 0, i32 6
  %278 = load i32, ptr %11, align 4, !tbaa !9
  %279 = zext i32 %278 to i64
  %280 = call i32 @i32_load(ptr noundef %277, i64 noundef %279)
  store i32 %280, ptr %11, align 4, !tbaa !9
  %281 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %281, ptr %9, align 4, !tbaa !9
  %282 = load i32, ptr %11, align 4, !tbaa !9
  %283 = icmp ne i32 %282, 0
  br i1 %283, label %284, label %285

284:                                              ; preds = %274
  br label %32

285:                                              ; preds = %274
  br label %286

286:                                              ; preds = %285, %4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  ret void
}

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 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #3 = { 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 #4 = { "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 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 #6 = { nounwind }
attributes #7 = { 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, !10, i64 92}
!12 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !13, i64 40, !16, i64 80}
!13 = !{!"", !6, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !15, i64 32}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}
!17 = !{!12, !6, i64 80}
!18 = !{!19, !6, i64 8}
!19 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!19, !6, i64 0}
!21 = !{!19, !6, i64 16}


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

%struct.wasm_rt_funcref_t = type { ptr, ptr, ptr }

@w2c_hermes_t0 = external local_unnamed_addr constant ptr, align 8

; 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 zeroext i1 @func_types_eq(ptr noundef, ptr 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: nounwind uwtable
define dso_local void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Ffunction0x3A0x3A_0x5Ffunc0x3C0x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AHermesABIRuntimeImpl0x28hermes0x3A0x3Avm0x3A0x3ARuntimeConfig0x20const0x260x290x3A0x3A0x27lambda0x270x28hermes0x3A0x3Avm0x3A0x3AHadesGC0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AWeakRootAcceptor0x260x290x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3C0x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AHermesABIRuntimeImpl0x28hermes0x3A0x3Avm0x3A0x3ARuntimeConfig0x20const0x260x290x3A0x3A0x27lambda0x270x28hermes0x3A0x3Avm0x3A0x3AHadesGC0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AWeakRootAcceptor0x260x290x3E0x2C0x20void0x200x28hermes0x3A0x3Avm0x3A0x3AHadesGC0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AWeakRootAcceptor0x260x290x3E0x3A0x3Aoperator0x280x290x28hermes0x3A0x3Avm0x3A0x3AHadesGC0x2A0x260x260x2C0x20hermes0x3A0x3Avm0x3A0x3AWeakRootAcceptor0x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = zext i32 %1 to i64
  %7 = add nuw nsw i64 %6, 4
  %8 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %7)
  %9 = zext i32 %8 to i64
  %10 = add nuw nsw i64 %9, 56
  %11 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %10)
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %4
  %12 = zext i32 %3 to i64
  %13 = getelementptr inbounds i8, ptr %0, i64 80
  %14 = getelementptr inbounds i8, ptr %0, i64 92
  %15 = load ptr, ptr @w2c_hermes_t0, align 8
  br label %16

16:                                               ; preds = %.preheader, %81
  %.092 = phi i32 [ %83, %81 ], [ %11, %.preheader ]
  %17 = add i32 %.092, 4
  %18 = add i32 %.092, 172
  br label %19

19:                                               ; preds = %78, %16
  %.0 = phi i32 [ %17, %16 ], [ %79, %78 ]
  %20 = zext i32 %.0 to i64
  %21 = add nuw nsw i64 %20, 4
  %22 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %21)
  %.not98 = icmp eq i32 %22, 0
  br i1 %.not98, label %49, label %23

23:                                               ; preds = %19
  %24 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %21)
  %.not99 = icmp eq i32 %24, 0
  br i1 %.not99, label %80, label %25

25:                                               ; preds = %23
  %26 = add i32 %.0, 8
  %27 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %12)
  %28 = zext i32 %27 to i64
  %29 = add nuw nsw i64 %28, 16
  %30 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %29)
  %31 = load i32, ptr %14, align 4, !tbaa !5
  %32 = icmp ult i32 %30, %31
  br i1 %32, label %33, label %.critedge, !prof !15

33:                                               ; preds = %25
  %34 = load ptr, ptr %13, align 8, !tbaa !16
  %35 = zext i32 %30 to i64
  %36 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %34, i64 %35
  %37 = getelementptr inbounds i8, ptr %36, i64 8
  %38 = load ptr, ptr %37, align 8, !tbaa !17
  %.not100 = icmp eq ptr %38, null
  br i1 %.not100, label %.critedge, label %39, !prof !19

39:                                               ; preds = %33
  %40 = load ptr, ptr %36, align 8, !tbaa !20
  %41 = tail call zeroext i1 @func_types_eq(ptr noundef %15, ptr noundef %40)
  br i1 %41, label %42, label %.critedge, !prof !15

.critedge:                                        ; preds = %33, %25, %39
  tail call void @wasm_rt_trap(i32 noundef 6) #4
  unreachable

42:                                               ; preds = %39
  %43 = load ptr, ptr %13, align 8, !tbaa !16
  %44 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %43, i64 %35
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  %46 = load ptr, ptr %45, align 8, !tbaa !17
  %47 = getelementptr inbounds i8, ptr %44, i64 16
  %48 = load ptr, ptr %47, align 8, !tbaa !21
  tail call void %46(ptr noundef %48, i32 noundef %3, i32 noundef %26) #5
  br label %49

49:                                               ; preds = %42, %19
  %50 = add nuw nsw i64 %20, 16
  %51 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %50)
  %.not101 = icmp eq i32 %51, 0
  br i1 %.not101, label %78, label %52

52:                                               ; preds = %49
  %53 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %50)
  %.not102 = icmp eq i32 %53, 0
  br i1 %.not102, label %80, label %54

54:                                               ; preds = %52
  %55 = add i32 %.0, 20
  %56 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %12)
  %57 = zext i32 %56 to i64
  %58 = add nuw nsw i64 %57, 16
  %59 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %58)
  %60 = load i32, ptr %14, align 4, !tbaa !5
  %61 = icmp ult i32 %59, %60
  br i1 %61, label %62, label %.critedge107, !prof !15

62:                                               ; preds = %54
  %63 = load ptr, ptr %13, align 8, !tbaa !16
  %64 = zext i32 %59 to i64
  %65 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %63, i64 %64
  %66 = getelementptr inbounds i8, ptr %65, i64 8
  %67 = load ptr, ptr %66, align 8, !tbaa !17
  %.not103 = icmp eq ptr %67, null
  br i1 %.not103, label %.critedge107, label %68, !prof !19

68:                                               ; preds = %62
  %69 = load ptr, ptr %65, align 8, !tbaa !20
  %70 = tail call zeroext i1 @func_types_eq(ptr noundef %15, ptr noundef %69)
  br i1 %70, label %71, label %.critedge107, !prof !15

.critedge107:                                     ; preds = %62, %54, %68
  tail call void @wasm_rt_trap(i32 noundef 6) #4
  unreachable

71:                                               ; preds = %68
  %72 = load ptr, ptr %13, align 8, !tbaa !16
  %73 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %72, i64 %64
  %74 = getelementptr inbounds i8, ptr %73, i64 8
  %75 = load ptr, ptr %74, align 8, !tbaa !17
  %76 = getelementptr inbounds i8, ptr %73, i64 16
  %77 = load ptr, ptr %76, align 8, !tbaa !21
  tail call void %75(ptr noundef %77, i32 noundef %3, i32 noundef %55) #5
  br label %78

78:                                               ; preds = %71, %49
  %79 = add i32 %.0, 24
  %.not104 = icmp eq i32 %18, %.0
  br i1 %.not104, label %81, label %19

80:                                               ; preds = %52, %23
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 131111, i32 noundef 61000, i32 noundef 95, i32 noundef 90287) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable

81:                                               ; preds = %78
  %82 = zext i32 %.092 to i64
  %83 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %82)
  %.not105 = icmp eq i32 %83, 0
  br i1 %.not105, label %.loopexit, label %16

.loopexit:                                        ; preds = %81, %4
  ret void
}

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 = { noreturn nounwind }
attributes #5 = { 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 92}
!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}
!15 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!16 = !{!6, !7, i64 80}
!17 = !{!18, !7, i64 8}
!18 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16}
!19 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!20 = !{!18, !7, i64 0}
!21 = !{!18, !7, i64 16}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,LowerExpectIntrinsicPass,SROAPass,SimplifyCFGPass,TailCallElimPass