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

; 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_t4 = 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 void @i32_store(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: noreturn
declare void @wasm_rt_trap(i32 noundef) #2

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

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

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

declare i32 @w2c_hermes_hermes0x3A0x3AIRBuilder0x3A0x3AcreateBasicBlock0x28hermes0x3A0x3AFunction0x2A0x29(ptr noundef, i32 noundef, i32 noundef) #4

declare i32 @w2c_hermes_hermes0x3A0x3AIRBuilder0x3A0x3AcreateBranchInst0x28hermes0x3A0x3ABasicBlock0x2A0x29(ptr noundef, i32 noundef, i32 noundef) #4

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

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

37:                                               ; preds = %6
  %38 = load i32, ptr %18, align 4, !tbaa !9
  br label %41

39:                                               ; preds = %6
  %40 = load i32, ptr %19, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %39, %37
  %42 = phi i32 [ %38, %37 ], [ %40, %39 ]
  store i32 %42, ptr %18, align 4, !tbaa !9
  %43 = load i32, ptr %18, align 4, !tbaa !9
  %44 = icmp ne i32 %43, 0
  %45 = xor i1 %44, true
  %46 = zext i1 %45 to i32
  store i32 %46, ptr %18, align 4, !tbaa !9
  %47 = load i32, ptr %18, align 4, !tbaa !9
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %375

49:                                               ; preds = %41
  %50 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %50, ptr %18, align 4, !tbaa !9
  %51 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %51, ptr %19, align 4, !tbaa !9
  %52 = load i32, ptr %18, align 4, !tbaa !9
  %53 = load i32, ptr %19, align 4, !tbaa !9
  %54 = icmp ne i32 %52, %53
  %55 = zext i1 %54 to i32
  store i32 %55, ptr %18, align 4, !tbaa !9
  %56 = load i32, ptr %18, align 4, !tbaa !9
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %367

58:                                               ; preds = %49
  %59 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %59, ptr %18, align 4, !tbaa !9
  store i32 4, ptr %19, align 4, !tbaa !9
  %60 = load i32, ptr %19, align 4, !tbaa !9
  %61 = load i32, ptr %18, align 4, !tbaa !9
  %62 = add i32 %61, %60
  store i32 %62, ptr %18, align 4, !tbaa !9
  %63 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %63, ptr %15, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %365, %58
  %65 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %65, ptr %18, align 4, !tbaa !9
  %66 = load i32, ptr %18, align 4, !tbaa !9
  %67 = icmp ne i32 %66, 0
  %68 = xor i1 %67, true
  %69 = zext i1 %68 to i32
  store i32 %69, ptr %18, align 4, !tbaa !9
  %70 = load i32, ptr %18, align 4, !tbaa !9
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %64
  br label %393

73:                                               ; preds = %64
  %74 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %74, ptr %18, align 4, !tbaa !9
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.w2c_hermes, ptr %75, i32 0, i32 6
  %77 = load i32, ptr %18, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = add i64 %78, 40
  %80 = call i32 @i32_load(ptr noundef %76, i64 noundef %79)
  store i32 %80, ptr %18, align 4, !tbaa !9
  %81 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %81, ptr %13, align 4, !tbaa !9
  %82 = load i32, ptr %18, align 4, !tbaa !9
  %83 = icmp ne i32 %82, 0
  %84 = xor i1 %83, true
  %85 = zext i1 %84 to i32
  store i32 %85, ptr %18, align 4, !tbaa !9
  %86 = load i32, ptr %18, align 4, !tbaa !9
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %89

88:                                               ; preds = %73
  br label %411

89:                                               ; preds = %73
  %90 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %90, ptr %18, align 4, !tbaa !9
  %91 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %91, ptr %19, align 4, !tbaa !9
  %92 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %92, ptr %20, align 4, !tbaa !9
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.w2c_hermes, ptr %93, i32 0, i32 6
  %95 = load i32, ptr %20, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = add i64 %96, 60
  %98 = call i32 @i32_load(ptr noundef %94, i64 noundef %97)
  store i32 %98, ptr %20, align 4, !tbaa !9
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = load i32, ptr %19, align 4, !tbaa !9
  %101 = load i32, ptr %20, align 4, !tbaa !9
  %102 = call i32 @w2c_hermes_hermes0x3A0x3AIRBuilder0x3A0x3AcreateBasicBlock0x28hermes0x3A0x3AFunction0x2A0x29(ptr noundef %99, i32 noundef %100, i32 noundef %101)
  store i32 %102, ptr %19, align 4, !tbaa !9
  %103 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %103, ptr %13, align 4, !tbaa !9
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = load i32, ptr %18, align 4, !tbaa !9
  %106 = load i32, ptr %19, align 4, !tbaa !9
  %107 = call i32 @w2c_hermes_hermes0x3A0x3AIRBuilder0x3A0x3AcreateBranchInst0x28hermes0x3A0x3ABasicBlock0x2A0x29(ptr noundef %104, i32 noundef %105, i32 noundef %106)
  store i32 %107, ptr %18, align 4, !tbaa !9
  %108 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %108, ptr %18, align 4, !tbaa !9
  %109 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %109, ptr %19, align 4, !tbaa !9
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = load i32, ptr %18, align 4, !tbaa !9
  %112 = load i32, ptr %19, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3AIRBuilder0x3A0x3AsetInsertionBlock0x28hermes0x3A0x3ABasicBlock0x2A0x29(ptr noundef %110, i32 noundef %111, i32 noundef %112)
  %113 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %113, ptr %18, align 4, !tbaa !9
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.w2c_hermes, ptr %114, i32 0, i32 6
  %116 = load i32, ptr %18, align 4, !tbaa !9
  %117 = zext i32 %116 to i64
  %118 = add i64 %117, 12
  %119 = call i32 @i32_load(ptr noundef %115, i64 noundef %118)
  store i32 %119, ptr %18, align 4, !tbaa !9
  %120 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %120, ptr %13, align 4, !tbaa !9
  %121 = load i32, ptr %18, align 4, !tbaa !9
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %152

123:                                              ; preds = %89
  %124 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %124, ptr %18, align 4, !tbaa !9
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.w2c_hermes, ptr %125, i32 0, i32 6
  %127 = load i32, ptr %18, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = add i64 %128, 16
  %130 = call i32 @i32_load(ptr noundef %126, i64 noundef %129)
  store i32 %130, ptr %18, align 4, !tbaa !9
  %131 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %131, ptr %16, align 4, !tbaa !9
  %132 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %132, ptr %18, align 4, !tbaa !9
  %133 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %133, ptr %19, align 4, !tbaa !9
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.w2c_hermes, ptr %134, i32 0, i32 6
  %136 = load i32, ptr %18, align 4, !tbaa !9
  %137 = zext i32 %136 to i64
  %138 = add i64 %137, 16
  %139 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store(ptr noundef %135, i64 noundef %138, i32 noundef %139)
  %140 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %140, ptr %18, align 4, !tbaa !9
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = load i32, ptr %18, align 4, !tbaa !9
  %143 = call i32 @w2c_hermes_hermes0x3A0x3AIRBuilder0x3A0x3AcreateTryEndInst0x280x29(ptr noundef %141, i32 noundef %142)
  store i32 %143, ptr %18, align 4, !tbaa !9
  %144 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %144, ptr %18, align 4, !tbaa !9
  %145 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %145, ptr %19, align 4, !tbaa !9
  %146 = load ptr, ptr %7, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.w2c_hermes, ptr %146, i32 0, i32 6
  %148 = load i32, ptr %18, align 4, !tbaa !9
  %149 = zext i32 %148 to i64
  %150 = add i64 %149, 16
  %151 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store(ptr noundef %147, i64 noundef %150, i32 noundef %151)
  br label %157

152:                                              ; preds = %89
  %153 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %153, ptr %18, align 4, !tbaa !9
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = load i32, ptr %18, align 4, !tbaa !9
  %156 = call i32 @w2c_hermes_hermes0x3A0x3AIRBuilder0x3A0x3AcreateTryEndInst0x280x29(ptr noundef %154, i32 noundef %155)
  store i32 %156, ptr %18, align 4, !tbaa !9
  br label %157

157:                                              ; preds = %152, %123
  %158 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %158, ptr %18, align 4, !tbaa !9
  %159 = load ptr, ptr %7, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.w2c_hermes, ptr %159, i32 0, i32 6
  %161 = load i32, ptr %18, align 4, !tbaa !9
  %162 = zext i32 %161 to i64
  %163 = add i64 %162, 32
  %164 = call i32 @i32_load(ptr noundef %160, i64 noundef %163)
  store i32 %164, ptr %18, align 4, !tbaa !9
  %165 = load i32, ptr %18, align 4, !tbaa !9
  %166 = icmp ne i32 %165, 0
  br i1 %166, label %167, label %349

167:                                              ; preds = %157
  %168 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %168, ptr %18, align 4, !tbaa !9
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.w2c_hermes, ptr %169, i32 0, i32 6
  %171 = load i32, ptr %18, align 4, !tbaa !9
  %172 = zext i32 %171 to i64
  %173 = add i64 %172, 40
  %174 = call i32 @i32_load(ptr noundef %170, i64 noundef %173)
  store i32 %174, ptr %18, align 4, !tbaa !9
  %175 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %175, ptr %13, align 4, !tbaa !9
  %176 = load i32, ptr %18, align 4, !tbaa !9
  %177 = icmp ne i32 %176, 0
  %178 = xor i1 %177, true
  %179 = zext i1 %178 to i32
  store i32 %179, ptr %18, align 4, !tbaa !9
  %180 = load i32, ptr %18, align 4, !tbaa !9
  %181 = icmp ne i32 %180, 0
  br i1 %181, label %182, label %183

182:                                              ; preds = %167
  br label %429

183:                                              ; preds = %167
  %184 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %184, ptr %18, align 4, !tbaa !9
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.w2c_hermes, ptr %185, i32 0, i32 6
  %187 = load i32, ptr %18, align 4, !tbaa !9
  %188 = zext i32 %187 to i64
  %189 = add i64 %188, 64
  %190 = call i32 @i32_load(ptr noundef %186, i64 noundef %189)
  store i32 %190, ptr %18, align 4, !tbaa !9
  %191 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %191, ptr %17, align 4, !tbaa !9
  %192 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %192, ptr %18, align 4, !tbaa !9
  %193 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %193, ptr %19, align 4, !tbaa !9
  %194 = load ptr, ptr %7, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.w2c_hermes, ptr %194, i32 0, i32 6
  %196 = load i32, ptr %19, align 4, !tbaa !9
  %197 = zext i32 %196 to i64
  %198 = add i64 %197, 4
  %199 = call i32 @i32_load(ptr noundef %195, i64 noundef %198)
  store i32 %199, ptr %19, align 4, !tbaa !9
  %200 = load ptr, ptr %7, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.w2c_hermes, ptr %200, i32 0, i32 6
  %202 = load i32, ptr %18, align 4, !tbaa !9
  %203 = zext i32 %202 to i64
  %204 = add i64 %203, 64
  %205 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store(ptr noundef %201, i64 noundef %204, i32 noundef %205)
  %206 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %206, ptr %18, align 4, !tbaa !9
  %207 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %207, ptr %19, align 4, !tbaa !9
  %208 = load ptr, ptr %7, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.w2c_hermes, ptr %208, i32 0, i32 6
  %210 = load i32, ptr %19, align 4, !tbaa !9
  %211 = zext i32 %210 to i64
  %212 = add i64 %211, 8
  %213 = call i32 @i32_load(ptr noundef %209, i64 noundef %212)
  store i32 %213, ptr %19, align 4, !tbaa !9
  %214 = load ptr, ptr %7, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.w2c_hermes, ptr %214, i32 0, i32 6
  %216 = load i32, ptr %18, align 4, !tbaa !9
  %217 = zext i32 %216 to i64
  %218 = add i64 %217, 12
  %219 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store(ptr noundef %215, i64 noundef %218, i32 noundef %219)
  %220 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %220, ptr %18, align 4, !tbaa !9
  %221 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %221, ptr %19, align 4, !tbaa !9
  %222 = load ptr, ptr %7, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.w2c_hermes, ptr %222, i32 0, i32 6
  %224 = load i32, ptr %18, align 4, !tbaa !9
  %225 = zext i32 %224 to i64
  %226 = add i64 %225, 8
  %227 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store(ptr noundef %223, i64 noundef %226, i32 noundef %227)
  %228 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %228, ptr %18, align 4, !tbaa !9
  %229 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %229, ptr %19, align 4, !tbaa !9
  %230 = load ptr, ptr %7, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.w2c_hermes, ptr %230, i32 0, i32 6
  %232 = load i32, ptr %18, align 4, !tbaa !9
  %233 = zext i32 %232 to i64
  %234 = add i64 %233, 4
  %235 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store(ptr noundef %231, i64 noundef %234, i32 noundef %235)
  %236 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %236, ptr %18, align 4, !tbaa !9
  %237 = load ptr, ptr %7, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.w2c_hermes, ptr %237, i32 0, i32 6
  %239 = load i32, ptr %18, align 4, !tbaa !9
  %240 = zext i32 %239 to i64
  %241 = add i64 %240, 32
  %242 = call i32 @i32_load(ptr noundef %238, i64 noundef %241)
  store i32 %242, ptr %18, align 4, !tbaa !9
  %243 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %243, ptr %16, align 4, !tbaa !9
  %244 = load i32, ptr %18, align 4, !tbaa !9
  %245 = icmp ne i32 %244, 0
  %246 = xor i1 %245, true
  %247 = zext i1 %246 to i32
  store i32 %247, ptr %18, align 4, !tbaa !9
  %248 = load i32, ptr %18, align 4, !tbaa !9
  %249 = icmp ne i32 %248, 0
  br i1 %249, label %250, label %251

250:                                              ; preds = %183
  br label %447

251:                                              ; preds = %183
  %252 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %252, ptr %18, align 4, !tbaa !9
  %253 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %253, ptr %19, align 4, !tbaa !9
  store i32 12, ptr %20, align 4, !tbaa !9
  %254 = load i32, ptr %20, align 4, !tbaa !9
  %255 = load i32, ptr %19, align 4, !tbaa !9
  %256 = add i32 %255, %254
  store i32 %256, ptr %19, align 4, !tbaa !9
  %257 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %257, ptr %20, align 4, !tbaa !9
  store i32 8, ptr %21, align 4, !tbaa !9
  %258 = load i32, ptr %21, align 4, !tbaa !9
  %259 = load i32, ptr %20, align 4, !tbaa !9
  %260 = add i32 %259, %258
  store i32 %260, ptr %20, align 4, !tbaa !9
  %261 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %261, ptr %21, align 4, !tbaa !9
  store i32 4, ptr %22, align 4, !tbaa !9
  %262 = load i32, ptr %22, align 4, !tbaa !9
  %263 = load i32, ptr %21, align 4, !tbaa !9
  %264 = add i32 %263, %262
  store i32 %264, ptr %21, align 4, !tbaa !9
  %265 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %265, ptr %22, align 4, !tbaa !9
  %266 = load ptr, ptr %7, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.w2c_hermes, ptr %266, i32 0, i32 6
  %268 = load i32, ptr %22, align 4, !tbaa !9
  %269 = zext i32 %268 to i64
  %270 = call i32 @i32_load(ptr noundef %267, i64 noundef %269)
  store i32 %270, ptr %22, align 4, !tbaa !9
  %271 = load ptr, ptr %7, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.w2c_hermes, ptr %271, i32 0, i32 6
  %273 = load i32, ptr %22, align 4, !tbaa !9
  %274 = zext i32 %273 to i64
  %275 = add i64 %274, 24
  %276 = call i32 @i32_load(ptr noundef %272, i64 noundef %275)
  store i32 %276, ptr %22, align 4, !tbaa !9
  %277 = load i32, ptr %22, align 4, !tbaa !9
  %278 = load ptr, ptr %7, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.w2c_hermes, ptr %278, i32 0, i32 7
  %280 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %279, i32 0, i32 2
  %281 = load i32, ptr %280, align 4, !tbaa !17
  %282 = icmp ult i32 %277, %281
  br i1 %282, label %283, label %306

283:                                              ; preds = %251
  %284 = load ptr, ptr %7, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.w2c_hermes, ptr %284, i32 0, i32 7
  %286 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %285, i32 0, i32 0
  %287 = load ptr, ptr %286, align 8, !tbaa !18
  %288 = load i32, ptr %22, align 4, !tbaa !9
  %289 = zext i32 %288 to i64
  %290 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %287, i64 %289
  %291 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %290, i32 0, i32 1
  %292 = load ptr, ptr %291, align 8, !tbaa !19
  %293 = icmp ne ptr %292, null
  br i1 %293, label %294, label %306

294:                                              ; preds = %283
  %295 = load ptr, ptr @w2c_hermes_t4, align 8, !tbaa !5
  %296 = load ptr, ptr %7, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.w2c_hermes, ptr %296, i32 0, i32 7
  %298 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %297, i32 0, i32 0
  %299 = load ptr, ptr %298, align 8, !tbaa !18
  %300 = load i32, ptr %22, align 4, !tbaa !9
  %301 = zext i32 %300 to i64
  %302 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %299, i64 %301
  %303 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %302, i32 0, i32 0
  %304 = load ptr, ptr %303, align 8, !tbaa !21
  %305 = call zeroext i1 @func_types_eq(ptr noundef %295, ptr noundef %304)
  br label %306

306:                                              ; preds = %294, %283, %251
  %307 = phi i1 [ false, %283 ], [ false, %251 ], [ %305, %294 ]
  %308 = xor i1 %307, true
  %309 = xor i1 %308, true
  %310 = zext i1 %309 to i32
  %311 = sext i32 %310 to i64
  %312 = call i64 @llvm.expect.i64(i64 %311, i64 1)
  %313 = icmp ne i64 %312, 0
  br i1 %313, label %316, label %314

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

315:                                              ; No predecessors!
  br label %316

316:                                              ; preds = %315, %306
  %317 = phi i1 [ true, %306 ], [ false, %315 ]
  %318 = zext i1 %317 to i32
  %319 = load ptr, ptr %7, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.w2c_hermes, ptr %319, i32 0, i32 7
  %321 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %320, i32 0, i32 0
  %322 = load ptr, ptr %321, align 8, !tbaa !18
  %323 = load i32, ptr %22, align 4, !tbaa !9
  %324 = zext i32 %323 to i64
  %325 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %322, i64 %324
  %326 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %325, i32 0, i32 1
  %327 = load ptr, ptr %326, align 8, !tbaa !19
  %328 = load ptr, ptr %7, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.w2c_hermes, ptr %328, i32 0, i32 7
  %330 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %329, i32 0, i32 0
  %331 = load ptr, ptr %330, align 8, !tbaa !18
  %332 = load i32, ptr %22, align 4, !tbaa !9
  %333 = zext i32 %332 to i64
  %334 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %331, i64 %333
  %335 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %334, i32 0, i32 2
  %336 = load ptr, ptr %335, align 8, !tbaa !22
  %337 = load i32, ptr %18, align 4, !tbaa !9
  %338 = load i32, ptr %19, align 4, !tbaa !9
  %339 = load i32, ptr %20, align 4, !tbaa !9
  %340 = load i32, ptr %21, align 4, !tbaa !9
  call void %327(ptr noundef %336, i32 noundef %337, i32 noundef %338, i32 noundef %339, i32 noundef %340)
  %341 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %341, ptr %18, align 4, !tbaa !9
  %342 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %342, ptr %19, align 4, !tbaa !9
  %343 = load ptr, ptr %7, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.w2c_hermes, ptr %343, i32 0, i32 6
  %345 = load i32, ptr %18, align 4, !tbaa !9
  %346 = zext i32 %345 to i64
  %347 = add i64 %346, 64
  %348 = load i32, ptr %19, align 4, !tbaa !9
  call void @i32_store(ptr noundef %344, i64 noundef %347, i32 noundef %348)
  br label %349

349:                                              ; preds = %316, %157
  %350 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %350, ptr %18, align 4, !tbaa !9
  %351 = load ptr, ptr %7, align 8, !tbaa !5
  %352 = getelementptr inbounds %struct.w2c_hermes, ptr %351, i32 0, i32 6
  %353 = load i32, ptr %18, align 4, !tbaa !9
  %354 = zext i32 %353 to i64
  %355 = add i64 %354, 4
  %356 = call i32 @i32_load(ptr noundef %352, i64 noundef %355)
  store i32 %356, ptr %18, align 4, !tbaa !9
  %357 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %357, ptr %9, align 4, !tbaa !9
  %358 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %358, ptr %19, align 4, !tbaa !9
  %359 = load i32, ptr %18, align 4, !tbaa !9
  %360 = load i32, ptr %19, align 4, !tbaa !9
  %361 = icmp ne i32 %359, %360
  %362 = zext i1 %361 to i32
  store i32 %362, ptr %18, align 4, !tbaa !9
  %363 = load i32, ptr %18, align 4, !tbaa !9
  %364 = icmp ne i32 %363, 0
  br i1 %364, label %365, label %366

365:                                              ; preds = %349
  br label %64

366:                                              ; preds = %349
  br label %367

367:                                              ; preds = %366, %49
  %368 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %368, ptr %18, align 4, !tbaa !9
  store i32 16, ptr %19, align 4, !tbaa !9
  %369 = load i32, ptr %19, align 4, !tbaa !9
  %370 = load i32, ptr %18, align 4, !tbaa !9
  %371 = add i32 %370, %369
  store i32 %371, ptr %18, align 4, !tbaa !9
  %372 = load i32, ptr %18, align 4, !tbaa !9
  %373 = load ptr, ptr %7, align 8, !tbaa !5
  %374 = getelementptr inbounds %struct.w2c_hermes, ptr %373, i32 0, i32 3
  store i32 %372, ptr %374, align 8, !tbaa !11
  br label %449

375:                                              ; preds = %41
  store i32 0, ptr %18, align 4, !tbaa !9
  %376 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %376, ptr %9, align 4, !tbaa !9
  store i32 133670, ptr %19, align 4, !tbaa !9
  %377 = load i32, ptr %19, align 4, !tbaa !9
  %378 = load i32, ptr %18, align 4, !tbaa !9
  %379 = add i32 %378, %377
  store i32 %379, ptr %18, align 4, !tbaa !9
  %380 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %380, ptr %19, align 4, !tbaa !9
  store i32 54579, ptr %20, align 4, !tbaa !9
  %381 = load i32, ptr %20, align 4, !tbaa !9
  %382 = load i32, ptr %19, align 4, !tbaa !9
  %383 = add i32 %382, %381
  store i32 %383, ptr %19, align 4, !tbaa !9
  store i32 177, ptr %20, align 4, !tbaa !9
  %384 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %384, ptr %21, align 4, !tbaa !9
  store i32 99659, ptr %22, align 4, !tbaa !9
  %385 = load i32, ptr %22, align 4, !tbaa !9
  %386 = load i32, ptr %21, align 4, !tbaa !9
  %387 = add i32 %386, %385
  store i32 %387, ptr %21, align 4, !tbaa !9
  %388 = load ptr, ptr %7, align 8, !tbaa !5
  %389 = load i32, ptr %18, align 4, !tbaa !9
  %390 = load i32, ptr %19, align 4, !tbaa !9
  %391 = load i32, ptr %20, align 4, !tbaa !9
  %392 = load i32, ptr %21, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %388, i32 noundef %389, i32 noundef %390, i32 noundef %391, i32 noundef %392)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

393:                                              ; preds = %72
  store i32 0, ptr %18, align 4, !tbaa !9
  %394 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %394, ptr %9, align 4, !tbaa !9
  store i32 154817, ptr %19, align 4, !tbaa !9
  %395 = load i32, ptr %19, align 4, !tbaa !9
  %396 = load i32, ptr %18, align 4, !tbaa !9
  %397 = add i32 %396, %395
  store i32 %397, ptr %18, align 4, !tbaa !9
  %398 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %398, ptr %19, align 4, !tbaa !9
  store i32 54579, ptr %20, align 4, !tbaa !9
  %399 = load i32, ptr %20, align 4, !tbaa !9
  %400 = load i32, ptr %19, align 4, !tbaa !9
  %401 = add i32 %400, %399
  store i32 %401, ptr %19, align 4, !tbaa !9
  store i32 181, ptr %20, align 4, !tbaa !9
  %402 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %402, ptr %21, align 4, !tbaa !9
  store i32 99659, ptr %22, align 4, !tbaa !9
  %403 = load i32, ptr %22, align 4, !tbaa !9
  %404 = load i32, ptr %21, align 4, !tbaa !9
  %405 = add i32 %404, %403
  store i32 %405, ptr %21, align 4, !tbaa !9
  %406 = load ptr, ptr %7, align 8, !tbaa !5
  %407 = load i32, ptr %18, align 4, !tbaa !9
  %408 = load i32, ptr %19, align 4, !tbaa !9
  %409 = load i32, ptr %20, align 4, !tbaa !9
  %410 = load i32, ptr %21, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %406, i32 noundef %407, i32 noundef %408, i32 noundef %409, i32 noundef %410)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

411:                                              ; preds = %88
  store i32 0, ptr %18, align 4, !tbaa !9
  %412 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %412, ptr %9, align 4, !tbaa !9
  store i32 128500, ptr %19, align 4, !tbaa !9
  %413 = load i32, ptr %19, align 4, !tbaa !9
  %414 = load i32, ptr %18, align 4, !tbaa !9
  %415 = add i32 %414, %413
  store i32 %415, ptr %18, align 4, !tbaa !9
  %416 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %416, ptr %19, align 4, !tbaa !9
  store i32 82008, ptr %20, align 4, !tbaa !9
  %417 = load i32, ptr %20, align 4, !tbaa !9
  %418 = load i32, ptr %19, align 4, !tbaa !9
  %419 = add i32 %418, %417
  store i32 %419, ptr %19, align 4, !tbaa !9
  store i32 964, ptr %20, align 4, !tbaa !9
  %420 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %420, ptr %21, align 4, !tbaa !9
  store i32 65865, ptr %22, align 4, !tbaa !9
  %421 = load i32, ptr %22, align 4, !tbaa !9
  %422 = load i32, ptr %21, align 4, !tbaa !9
  %423 = add i32 %422, %421
  store i32 %423, ptr %21, align 4, !tbaa !9
  %424 = load ptr, ptr %7, align 8, !tbaa !5
  %425 = load i32, ptr %18, align 4, !tbaa !9
  %426 = load i32, ptr %19, align 4, !tbaa !9
  %427 = load i32, ptr %20, align 4, !tbaa !9
  %428 = load i32, ptr %21, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %424, i32 noundef %425, i32 noundef %426, i32 noundef %427, i32 noundef %428)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

429:                                              ; preds = %182
  store i32 0, ptr %18, align 4, !tbaa !9
  %430 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %430, ptr %9, align 4, !tbaa !9
  store i32 128500, ptr %19, align 4, !tbaa !9
  %431 = load i32, ptr %19, align 4, !tbaa !9
  %432 = load i32, ptr %18, align 4, !tbaa !9
  %433 = add i32 %432, %431
  store i32 %433, ptr %18, align 4, !tbaa !9
  %434 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %434, ptr %19, align 4, !tbaa !9
  store i32 82008, ptr %20, align 4, !tbaa !9
  %435 = load i32, ptr %20, align 4, !tbaa !9
  %436 = load i32, ptr %19, align 4, !tbaa !9
  %437 = add i32 %436, %435
  store i32 %437, ptr %19, align 4, !tbaa !9
  store i32 964, ptr %20, align 4, !tbaa !9
  %438 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %438, ptr %21, align 4, !tbaa !9
  store i32 65865, ptr %22, align 4, !tbaa !9
  %439 = load i32, ptr %22, align 4, !tbaa !9
  %440 = load i32, ptr %21, align 4, !tbaa !9
  %441 = add i32 %440, %439
  store i32 %441, ptr %21, align 4, !tbaa !9
  %442 = load ptr, ptr %7, align 8, !tbaa !5
  %443 = load i32, ptr %18, align 4, !tbaa !9
  %444 = load i32, ptr %19, align 4, !tbaa !9
  %445 = load i32, ptr %20, align 4, !tbaa !9
  %446 = load i32, ptr %21, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %442, i32 noundef %443, i32 noundef %444, i32 noundef %445, i32 noundef %446)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

447:                                              ; preds = %250
  %448 = load ptr, ptr %7, align 8, !tbaa !5
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_bad_function_call0x5Babi0x3Av150070x5D0x280x29(ptr noundef %448)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

449:                                              ; preds = %367
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @func_types_eq(ptr noundef, ptr noundef) #1

declare i32 @w2c_hermes_hermes0x3A0x3AIRBuilder0x3A0x3AcreateTryEndInst0x280x29(ptr noundef, i32 noundef) #4

declare void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_bad_function_call0x5Babi0x3Av150070x5D0x280x29(ptr noundef) #4

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 = { nocallback nofree nosync nounwind willreturn memory(none) }
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 24}
!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, !10, i64 92}
!18 = !{!12, !6, i64 80}
!19 = !{!20, !6, i64 8}
!20 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!20, !6, i64 0}
!22 = !{!20, !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_t4 = external local_unnamed_addr constant ptr, align 8

; 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 i32 @i32_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 i32 @w2c_hermes_hermes0x3A0x3AIRBuilder0x3A0x3AcreateBasicBlock0x28hermes0x3A0x3AFunction0x2A0x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Airgen0x3A0x3AESTreeIRGen0x3A0x3AgenFinallyBeforeControlChange0x28hermes0x3A0x3Airgen0x3A0x3ASurroundingTry0x2A0x2C0x20hermes0x3A0x3Airgen0x3A0x3ASurroundingTry0x2A0x2C0x20hermes0x3A0x3Airgen0x3A0x3AControlFlowChange0x2C0x20hermes0x3A0x3ABasicBlock0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #3 {
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = add i32 %8, -16
  store i32 %9, ptr %7, align 8, !tbaa !5
  %.not = icmp ne i32 %5, 0
  %.not225226 = icmp eq i32 %4, 0
  %.not225 = or i1 %.not225226, %.not
  br i1 %.not225, label %10, label %84

10:                                               ; preds = %6
  %.not227 = icmp eq i32 %2, %3
  br i1 %.not227, label %.loopexit, label %11

11:                                               ; preds = %10
  %12 = add i32 %1, 4
  %13 = getelementptr inbounds i8, ptr %0, i64 40
  %14 = zext i32 %1 to i64
  %15 = add nuw nsw i64 %14, 40
  %16 = add nuw nsw i64 %14, 16
  %17 = zext i32 %9 to i64
  %18 = add nuw nsw i64 %17, 12
  %19 = add nuw nsw i64 %17, 8
  %20 = add nuw nsw i64 %17, 4
  %21 = add i32 %8, -4
  %22 = add i32 %8, -8
  %23 = add i32 %8, -12
  %24 = getelementptr inbounds i8, ptr %0, i64 80
  %25 = getelementptr inbounds i8, ptr %0, i64 92
  %26 = load ptr, ptr @w2c_hermes_t4, align 8
  br label %27

27:                                               ; preds = %82, %11
  %.0 = phi i32 [ %2, %11 ], [ %83, %82 ]
  %.not228 = icmp eq i32 %.0, 0
  br i1 %.not228, label %85, label %28

28:                                               ; preds = %27
  %29 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %15)
  %.not229 = icmp eq i32 %29, 0
  br i1 %.not229, label %86, label %30

30:                                               ; preds = %28
  %31 = zext i32 %29 to i64
  %32 = add nuw nsw i64 %31, 60
  %33 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %32)
  %34 = tail call i32 @w2c_hermes_hermes0x3A0x3AIRBuilder0x3A0x3AcreateBasicBlock0x28hermes0x3A0x3AFunction0x2A0x29(ptr noundef %0, i32 noundef %12, i32 noundef %33) #4
  %35 = tail call i32 @w2c_hermes_hermes0x3A0x3AIRBuilder0x3A0x3AcreateBranchInst0x28hermes0x3A0x3ABasicBlock0x2A0x29(ptr noundef %0, i32 noundef %12, i32 noundef %34) #4
  tail call void @w2c_hermes_hermes0x3A0x3AIRBuilder0x3A0x3AsetInsertionBlock0x28hermes0x3A0x3ABasicBlock0x2A0x29(ptr noundef %0, i32 noundef %12, i32 noundef %34) #4
  %36 = zext i32 %.0 to i64
  %37 = add nuw nsw i64 %36, 12
  %38 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %37)
  %.not230 = icmp eq i32 %38, 0
  br i1 %.not230, label %42, label %39

39:                                               ; preds = %30
  %40 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %16)
  tail call void @i32_store(ptr noundef nonnull %13, i64 noundef %16, i32 noundef %38)
  %41 = tail call i32 @w2c_hermes_hermes0x3A0x3AIRBuilder0x3A0x3AcreateTryEndInst0x280x29(ptr noundef %0, i32 noundef %12) #4
  tail call void @i32_store(ptr noundef nonnull %13, i64 noundef %16, i32 noundef %40)
  br label %44

42:                                               ; preds = %30
  %43 = tail call i32 @w2c_hermes_hermes0x3A0x3AIRBuilder0x3A0x3AcreateTryEndInst0x280x29(ptr noundef %0, i32 noundef %12) #4
  br label %44

44:                                               ; preds = %42, %39
  %45 = add nuw nsw i64 %36, 32
  %46 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %45)
  %.not231 = icmp eq i32 %46, 0
  br i1 %.not231, label %._crit_edge, label %47

._crit_edge:                                      ; preds = %44
  %.pre = add nuw nsw i64 %36, 4
  br label %82

47:                                               ; preds = %44
  %48 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %15)
  %.not232 = icmp eq i32 %48, 0
  br i1 %.not232, label %87, label %49

49:                                               ; preds = %47
  %50 = zext i32 %48 to i64
  %51 = add nuw nsw i64 %50, 64
  %52 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %51)
  %53 = add nuw nsw i64 %36, 4
  %54 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %53)
  tail call void @i32_store(ptr noundef nonnull %13, i64 noundef %51, i32 noundef %54)
  %55 = add nuw nsw i64 %36, 8
  %56 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %55)
  tail call void @i32_store(ptr noundef nonnull %13, i64 noundef %18, i32 noundef %56)
  tail call void @i32_store(ptr noundef nonnull %13, i64 noundef %19, i32 noundef %4)
  tail call void @i32_store(ptr noundef nonnull %13, i64 noundef %20, i32 noundef %5)
  %57 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %45)
  %.not233 = icmp eq i32 %57, 0
  br i1 %.not233, label %88, label %58

58:                                               ; preds = %49
  %59 = zext i32 %57 to i64
  %60 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %59)
  %61 = zext i32 %60 to i64
  %62 = add nuw nsw i64 %61, 24
  %63 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %62)
  %64 = load i32, ptr %25, align 4, !tbaa !15
  %65 = icmp ult i32 %63, %64
  br i1 %65, label %66, label %.critedge, !prof !16

66:                                               ; preds = %58
  %67 = load ptr, ptr %24, align 8, !tbaa !17
  %68 = zext i32 %63 to i64
  %69 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %67, i64 %68
  %70 = getelementptr inbounds i8, ptr %69, i64 8
  %71 = load ptr, ptr %70, align 8, !tbaa !18
  %.not234 = icmp eq ptr %71, null
  br i1 %.not234, label %.critedge, label %72, !prof !20

72:                                               ; preds = %66
  %73 = load ptr, ptr %69, align 8, !tbaa !21
  %74 = tail call zeroext i1 @func_types_eq(ptr noundef %26, ptr noundef %73)
  br i1 %74, label %75, label %.critedge, !prof !16

.critedge:                                        ; preds = %66, %58, %72
  tail call void @wasm_rt_trap(i32 noundef 6) #5
  unreachable

75:                                               ; preds = %72
  %76 = load ptr, ptr %24, align 8, !tbaa !17
  %77 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %76, i64 %68
  %78 = getelementptr inbounds i8, ptr %77, i64 8
  %79 = load ptr, ptr %78, align 8, !tbaa !18
  %80 = getelementptr inbounds i8, ptr %77, i64 16
  %81 = load ptr, ptr %80, align 8, !tbaa !22
  tail call void %79(ptr noundef %81, i32 noundef %57, i32 noundef %21, i32 noundef %22, i32 noundef %23) #4
  tail call void @i32_store(ptr noundef nonnull %13, i64 noundef %51, i32 noundef %52)
  br label %82

82:                                               ; preds = %._crit_edge, %75
  %.pre-phi = phi i64 [ %.pre, %._crit_edge ], [ %53, %75 ]
  %83 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %.pre-phi)
  %.not235 = icmp eq i32 %83, %3
  br i1 %.not235, label %.loopexit, label %27

.loopexit:                                        ; preds = %82, %10
  store i32 %8, ptr %7, align 8, !tbaa !5
  ret void

84:                                               ; preds = %6
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 133670, i32 noundef 54579, i32 noundef 177, i32 noundef 99659) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

85:                                               ; preds = %27
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 154817, i32 noundef 54579, i32 noundef 181, i32 noundef 99659) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

86:                                               ; preds = %28
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 128500, i32 noundef 82008, i32 noundef 964, i32 noundef 65865) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

87:                                               ; preds = %47
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 128500, i32 noundef 82008, i32 noundef 964, i32 noundef 65865) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

88:                                               ; preds = %49
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_bad_function_call0x5Babi0x3Av150070x5D0x280x29(ptr noundef %0) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @func_types_eq(ptr noundef, ptr noundef) local_unnamed_addr #0

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

declare void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_bad_function_call0x5Babi0x3Av150070x5D0x280x29(ptr 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}
!15 = !{!6, !10, i64 92}
!16 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!17 = !{!6, !7, i64 80}
!18 = !{!19, !7, i64 8}
!19 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16}
!20 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!21 = !{!19, !7, i64 0}
!22 = !{!19, !7, i64 16}


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