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

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

@.str.15 = external hidden unnamed_addr constant [33 x i8], align 1

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

31:                                               ; preds = %2
  br label %32

32:                                               ; preds = %88, %31
  store i32 0, ptr %10, align 4, !tbaa !9
  %33 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %33, ptr %6, align 4, !tbaa !9
  store i32 289392, ptr %11, align 4, !tbaa !9
  %34 = load i32, ptr %11, align 4, !tbaa !9
  %35 = load i32, ptr %10, align 4, !tbaa !9
  %36 = add i32 %35, %34
  store i32 %36, ptr %10, align 4, !tbaa !9
  %37 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %37, ptr %11, align 4, !tbaa !9
  store i32 144, ptr %12, align 4, !tbaa !9
  %38 = load i32, ptr %12, align 4, !tbaa !9
  %39 = load i32, ptr %11, align 4, !tbaa !9
  %40 = mul i32 %39, %38
  store i32 %40, ptr %11, align 4, !tbaa !9
  %41 = load i32, ptr %11, align 4, !tbaa !9
  %42 = load i32, ptr %10, align 4, !tbaa !9
  %43 = add i32 %42, %41
  store i32 %43, ptr %10, align 4, !tbaa !9
  %44 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %44, ptr %9, align 4, !tbaa !9
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.w2c_hermes, ptr %45, i32 0, i32 6
  %47 = load i32, ptr %10, align 4, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = add i64 %48, 140
  %50 = call i32 @i32_load(ptr noundef %46, i64 noundef %49)
  store i32 %50, ptr %10, align 4, !tbaa !9
  %51 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %51, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = load i32, ptr %10, align 4, !tbaa !9
  %54 = load i32, ptr %11, align 4, !tbaa !9
  %55 = load i32, ptr %12, align 4, !tbaa !9
  %56 = call i32 @w2c_hermes_0x5F_sigaction(ptr noundef %52, i32 noundef %53, i32 noundef %54, i32 noundef %55)
  store i32 %56, ptr %10, align 4, !tbaa !9
  %57 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %57, ptr %10, align 4, !tbaa !9
  store i32 289368, ptr %11, align 4, !tbaa !9
  %58 = load i32, ptr %11, align 4, !tbaa !9
  %59 = load i32, ptr %10, align 4, !tbaa !9
  %60 = add i32 %59, %58
  store i32 %60, ptr %10, align 4, !tbaa !9
  %61 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %61, ptr %6, align 4, !tbaa !9
  %62 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %62, ptr %11, align 4, !tbaa !9
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.w2c_hermes, ptr %63, i32 0, i32 6
  %65 = load i32, ptr %11, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = call i32 @i32_load(ptr noundef %64, i64 noundef %66)
  store i32 %67, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %68 = load i32, ptr %12, align 4, !tbaa !9
  %69 = load i32, ptr %11, align 4, !tbaa !9
  %70 = sub i32 %69, %68
  store i32 %70, ptr %11, align 4, !tbaa !9
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.w2c_hermes, ptr %71, i32 0, i32 6
  %73 = load i32, ptr %10, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %72, i64 noundef %74, i32 noundef %75)
  %76 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %76, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %11, align 4, !tbaa !9
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = load i32, ptr %10, align 4, !tbaa !9
  %79 = add i32 %78, %77
  store i32 %79, ptr %10, align 4, !tbaa !9
  %80 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %80, ptr %5, align 4, !tbaa !9
  %81 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %81, ptr %11, align 4, !tbaa !9
  %82 = load i32, ptr %10, align 4, !tbaa !9
  %83 = load i32, ptr %11, align 4, !tbaa !9
  %84 = icmp ne i32 %82, %83
  %85 = zext i1 %84 to i32
  store i32 %85, ptr %10, align 4, !tbaa !9
  %86 = load i32, ptr %10, align 4, !tbaa !9
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %89

88:                                               ; preds = %32
  br label %32

89:                                               ; preds = %32
  br label %90

90:                                               ; preds = %89, %2
  %91 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %91, ptr %10, align 4, !tbaa !9
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = load i32, ptr %10, align 4, !tbaa !9
  %94 = call i32 @w2c_hermes_sigfillset(ptr noundef %92, i32 noundef %93)
  store i32 %94, ptr %10, align 4, !tbaa !9
  store i32 1, ptr %10, align 4, !tbaa !9
  %95 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %95, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = load i32, ptr %10, align 4, !tbaa !9
  %98 = load i32, ptr %11, align 4, !tbaa !9
  %99 = load i32, ptr %12, align 4, !tbaa !9
  %100 = call i32 @w2c_hermes_sigprocmask(ptr noundef %96, i32 noundef %97, i32 noundef %98, i32 noundef %99)
  store i32 %100, ptr %10, align 4, !tbaa !9
  store i32 289348, ptr %10, align 4, !tbaa !9
  %101 = load ptr, ptr %3, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.w2c_hermes, ptr %101, i32 0, i32 6
  %103 = load i32, ptr %10, align 4, !tbaa !9
  %104 = zext i32 %103 to i64
  %105 = call i32 @i32_load(ptr noundef %102, i64 noundef %104)
  store i32 %105, ptr %10, align 4, !tbaa !9
  %106 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %106, ptr %5, align 4, !tbaa !9
  %107 = load i32, ptr %10, align 4, !tbaa !9
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %170

109:                                              ; preds = %90
  %110 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %110, ptr %10, align 4, !tbaa !9
  %111 = load i32, ptr %10, align 4, !tbaa !9
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.w2c_hermes, ptr %112, i32 0, i32 7
  %114 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %113, i32 0, i32 2
  %115 = load i32, ptr %114, align 4, !tbaa !17
  %116 = icmp ult i32 %111, %115
  br i1 %116, label %117, label %139

117:                                              ; preds = %109
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.w2c_hermes, ptr %118, i32 0, i32 7
  %120 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %119, i32 0, i32 0
  %121 = load ptr, ptr %120, align 8, !tbaa !18
  %122 = load i32, ptr %10, align 4, !tbaa !9
  %123 = zext i32 %122 to i64
  %124 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %121, i64 %123
  %125 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %124, i32 0, i32 1
  %126 = load ptr, ptr %125, align 8, !tbaa !19
  %127 = icmp ne ptr %126, null
  br i1 %127, label %128, label %139

128:                                              ; preds = %117
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.w2c_hermes, ptr %129, i32 0, i32 7
  %131 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %130, i32 0, i32 0
  %132 = load ptr, ptr %131, align 8, !tbaa !18
  %133 = load i32, ptr %10, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %132, i64 %134
  %136 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %135, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8, !tbaa !21
  %138 = call zeroext i1 @func_types_eq(ptr noundef @.str.15, ptr noundef %137)
  br label %139

139:                                              ; preds = %128, %117, %109
  %140 = phi i1 [ false, %117 ], [ false, %109 ], [ %138, %128 ]
  %141 = xor i1 %140, true
  %142 = xor i1 %141, true
  %143 = zext i1 %142 to i32
  %144 = sext i32 %143 to i64
  %145 = call i64 @llvm.expect.i64(i64 %144, i64 1)
  %146 = icmp ne i64 %145, 0
  br i1 %146, label %149, label %147

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

148:                                              ; No predecessors!
  br label %149

149:                                              ; preds = %148, %139
  %150 = phi i1 [ true, %139 ], [ false, %148 ]
  %151 = zext i1 %150 to i32
  %152 = load ptr, ptr %3, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.w2c_hermes, ptr %152, i32 0, i32 7
  %154 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %153, i32 0, i32 0
  %155 = load ptr, ptr %154, align 8, !tbaa !18
  %156 = load i32, ptr %10, align 4, !tbaa !9
  %157 = zext i32 %156 to i64
  %158 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %155, i64 %157
  %159 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %158, i32 0, i32 1
  %160 = load ptr, ptr %159, align 8, !tbaa !19
  %161 = load ptr, ptr %3, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.w2c_hermes, ptr %161, i32 0, i32 7
  %163 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %162, i32 0, i32 0
  %164 = load ptr, ptr %163, align 8, !tbaa !18
  %165 = load i32, ptr %10, align 4, !tbaa !9
  %166 = zext i32 %165 to i64
  %167 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %164, i64 %166
  %168 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %167, i32 0, i32 2
  %169 = load ptr, ptr %168, align 8, !tbaa !22
  call void %160(ptr noundef %169)
  br label %170

170:                                              ; preds = %149, %90
  %171 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %171, ptr %10, align 4, !tbaa !9
  store i32 15, ptr %11, align 4, !tbaa !9
  %172 = load i32, ptr %10, align 4, !tbaa !9
  %173 = load i32, ptr %11, align 4, !tbaa !9
  %174 = icmp ugt i32 %172, %173
  %175 = zext i1 %174 to i32
  store i32 %175, ptr %10, align 4, !tbaa !9
  %176 = load i32, ptr %10, align 4, !tbaa !9
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %178, label %179

178:                                              ; preds = %170
  br label %278

179:                                              ; preds = %170
  store i32 1, ptr %10, align 4, !tbaa !9
  %180 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %180, ptr %11, align 4, !tbaa !9
  %181 = load i32, ptr %11, align 4, !tbaa !9
  %182 = and i32 %181, 31
  %183 = load i32, ptr %10, align 4, !tbaa !9
  %184 = shl i32 %183, %182
  store i32 %184, ptr %10, align 4, !tbaa !9
  store i32 46086, ptr %11, align 4, !tbaa !9
  %185 = load i32, ptr %11, align 4, !tbaa !9
  %186 = load i32, ptr %10, align 4, !tbaa !9
  %187 = and i32 %186, %185
  store i32 %187, ptr %10, align 4, !tbaa !9
  %188 = load i32, ptr %10, align 4, !tbaa !9
  %189 = icmp ne i32 %188, 0
  %190 = xor i1 %189, true
  %191 = zext i1 %190 to i32
  store i32 %191, ptr %10, align 4, !tbaa !9
  %192 = load i32, ptr %10, align 4, !tbaa !9
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %195

194:                                              ; preds = %179
  br label %278

195:                                              ; preds = %179
  store i32 289352, ptr %10, align 4, !tbaa !9
  %196 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %196, ptr %6, align 4, !tbaa !9
  %197 = load ptr, ptr %3, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.w2c_hermes, ptr %197, i32 0, i32 6
  %199 = load i32, ptr %10, align 4, !tbaa !9
  %200 = zext i32 %199 to i64
  %201 = call i32 @i32_load(ptr noundef %198, i64 noundef %200)
  store i32 %201, ptr %10, align 4, !tbaa !9
  %202 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %202, ptr %5, align 4, !tbaa !9
  %203 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %203, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  %204 = load ptr, ptr %3, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.w2c_hermes, ptr %204, i32 0, i32 6
  %206 = load i32, ptr %10, align 4, !tbaa !9
  %207 = zext i32 %206 to i64
  %208 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %205, i64 noundef %207, i32 noundef %208)
  %209 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %209, ptr %10, align 4, !tbaa !9
  %210 = load i32, ptr %10, align 4, !tbaa !9
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %212, label %273

212:                                              ; preds = %195
  %213 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %213, ptr %10, align 4, !tbaa !9
  %214 = load i32, ptr %10, align 4, !tbaa !9
  %215 = load ptr, ptr %3, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.w2c_hermes, ptr %215, i32 0, i32 7
  %217 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %216, i32 0, i32 2
  %218 = load i32, ptr %217, align 4, !tbaa !17
  %219 = icmp ult i32 %214, %218
  br i1 %219, label %220, label %242

220:                                              ; preds = %212
  %221 = load ptr, ptr %3, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.w2c_hermes, ptr %221, i32 0, i32 7
  %223 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %222, i32 0, i32 0
  %224 = load ptr, ptr %223, align 8, !tbaa !18
  %225 = load i32, ptr %10, align 4, !tbaa !9
  %226 = zext i32 %225 to i64
  %227 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %224, i64 %226
  %228 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %227, i32 0, i32 1
  %229 = load ptr, ptr %228, align 8, !tbaa !19
  %230 = icmp ne ptr %229, null
  br i1 %230, label %231, label %242

231:                                              ; preds = %220
  %232 = load ptr, ptr %3, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.w2c_hermes, ptr %232, i32 0, i32 7
  %234 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %233, i32 0, i32 0
  %235 = load ptr, ptr %234, align 8, !tbaa !18
  %236 = load i32, ptr %10, align 4, !tbaa !9
  %237 = zext i32 %236 to i64
  %238 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %235, i64 %237
  %239 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %238, i32 0, i32 0
  %240 = load ptr, ptr %239, align 8, !tbaa !21
  %241 = call zeroext i1 @func_types_eq(ptr noundef @.str.15, ptr noundef %240)
  br label %242

242:                                              ; preds = %231, %220, %212
  %243 = phi i1 [ false, %220 ], [ false, %212 ], [ %241, %231 ]
  %244 = xor i1 %243, true
  %245 = xor i1 %244, true
  %246 = zext i1 %245 to i32
  %247 = sext i32 %246 to i64
  %248 = call i64 @llvm.expect.i64(i64 %247, i64 1)
  %249 = icmp ne i64 %248, 0
  br i1 %249, label %252, label %250

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

251:                                              ; No predecessors!
  br label %252

252:                                              ; preds = %251, %242
  %253 = phi i1 [ true, %242 ], [ false, %251 ]
  %254 = zext i1 %253 to i32
  %255 = load ptr, ptr %3, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.w2c_hermes, ptr %255, i32 0, i32 7
  %257 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %256, i32 0, i32 0
  %258 = load ptr, ptr %257, align 8, !tbaa !18
  %259 = load i32, ptr %10, align 4, !tbaa !9
  %260 = zext i32 %259 to i64
  %261 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %258, i64 %260
  %262 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %261, i32 0, i32 1
  %263 = load ptr, ptr %262, align 8, !tbaa !19
  %264 = load ptr, ptr %3, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.w2c_hermes, ptr %264, i32 0, i32 7
  %266 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %265, i32 0, i32 0
  %267 = load ptr, ptr %266, align 8, !tbaa !18
  %268 = load i32, ptr %10, align 4, !tbaa !9
  %269 = zext i32 %268 to i64
  %270 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %267, i64 %269
  %271 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %270, i32 0, i32 2
  %272 = load ptr, ptr %271, align 8, !tbaa !22
  call void %263(ptr noundef %272)
  br label %280

273:                                              ; preds = %195
  %274 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %274, ptr %10, align 4, !tbaa !9
  %275 = load ptr, ptr %3, align 8, !tbaa !5
  %276 = load i32, ptr %10, align 4, !tbaa !9
  %277 = call i32 @w2c_hermes_raise(ptr noundef %275, i32 noundef %276)
  store i32 %277, ptr %10, align 4, !tbaa !9
  br label %280

278:                                              ; preds = %194, %178
  %279 = load ptr, ptr %3, align 8, !tbaa !5
  call void @w2c_hermes_llvh0x3A0x3Asys0x3A0x3ARunSignalHandlers0x280x29(ptr noundef %279)
  br label %280

280:                                              ; preds = %278, %273, %252
  %281 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %281, ptr %10, align 4, !tbaa !9
  store i32 128, ptr %11, align 4, !tbaa !9
  %282 = load i32, ptr %11, align 4, !tbaa !9
  %283 = load i32, ptr %10, align 4, !tbaa !9
  %284 = add i32 %283, %282
  store i32 %284, ptr %10, align 4, !tbaa !9
  %285 = load i32, ptr %10, align 4, !tbaa !9
  %286 = load ptr, ptr %3, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.w2c_hermes, ptr %286, i32 0, i32 3
  store i32 %285, ptr %287, align 8, !tbaa !11
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  ret void
}

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #4

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

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

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

declare i32 @w2c_hermes_sigfillset(ptr noundef, i32 noundef) #5

declare i32 @w2c_hermes_sigprocmask(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #5

declare i32 @w2c_hermes_raise(ptr noundef, i32 noundef) #5

declare void @w2c_hermes_llvh0x3A0x3Asys0x3A0x3ARunSignalHandlers0x280x29(ptr noundef) #5

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #5 = { "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 }

@.str.15 = external hidden unnamed_addr constant [33 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_SignalHandler0x28int0x29(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 24
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = add i32 %4, -128
  store i32 %5, ptr %3, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef 289368)
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %2
  %8 = zext i32 %7 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %indvars.iv = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next, %.preheader ]
  %9 = trunc nuw i64 %indvars.iv to i32
  %10 = mul i32 %9, 144
  %11 = add i32 %10, 289392
  %12 = zext i32 %11 to i64
  %13 = add nuw nsw i64 %12, 140
  %14 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %13)
  %15 = tail call i32 @w2c_hermes_0x5F_sigaction(ptr noundef %0, i32 noundef %14, i32 noundef %11, i32 noundef 0)
  %16 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef 289368)
  %17 = add i32 %16, -1
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef 289368, i32 noundef %17)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %.not112 = icmp eq i64 %indvars.iv.next, %8
  br i1 %.not112, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %2
  %18 = tail call i32 @w2c_hermes_sigfillset(ptr noundef %0, i32 noundef %5) #4
  %19 = tail call i32 @w2c_hermes_sigprocmask(ptr noundef %0, i32 noundef 1, i32 noundef %5, i32 noundef 0) #4
  %20 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef 289348)
  %.not113 = icmp eq i32 %20, 0
  br i1 %.not113, label %42, label %21

21:                                               ; preds = %.loopexit
  %22 = getelementptr inbounds i8, ptr %0, i64 80
  %23 = getelementptr inbounds i8, ptr %0, i64 92
  %24 = load i32, ptr %23, align 4, !tbaa !15
  %25 = icmp ult i32 %20, %24
  br i1 %25, label %26, label %.critedge, !prof !16

26:                                               ; preds = %21
  %27 = load ptr, ptr %22, align 8, !tbaa !17
  %28 = zext i32 %20 to i64
  %29 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %27, i64 %28
  %30 = getelementptr inbounds i8, ptr %29, i64 8
  %31 = load ptr, ptr %30, align 8, !tbaa !18
  %.not114 = icmp eq ptr %31, null
  br i1 %.not114, label %.critedge, label %32, !prof !20

32:                                               ; preds = %26
  %33 = load ptr, ptr %29, align 8, !tbaa !21
  %34 = tail call zeroext i1 @func_types_eq(ptr noundef nonnull @.str.15, ptr noundef %33)
  br i1 %34, label %35, label %.critedge, !prof !16

.critedge:                                        ; preds = %26, %21, %32
  tail call void @wasm_rt_trap(i32 noundef 6) #5
  unreachable

35:                                               ; preds = %32
  %36 = load ptr, ptr %22, align 8, !tbaa !17
  %37 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %36, i64 %28
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  %39 = load ptr, ptr %38, align 8, !tbaa !18
  %40 = getelementptr inbounds i8, ptr %37, i64 16
  %41 = load ptr, ptr %40, align 8, !tbaa !22
  tail call void %39(ptr noundef %41) #4
  br label %42

42:                                               ; preds = %35, %.loopexit
  %43 = icmp ugt i32 %1, 15
  br i1 %43, label %72, label %44

44:                                               ; preds = %42
  %45 = shl nuw nsw i32 1, %1
  %46 = and i32 %45, 46086
  %.not115 = icmp eq i32 %46, 0
  br i1 %.not115, label %72, label %47

47:                                               ; preds = %44
  %48 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef 289352)
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef 289352, i32 noundef 0)
  %.not116 = icmp eq i32 %48, 0
  br i1 %.not116, label %70, label %49

49:                                               ; preds = %47
  %50 = getelementptr inbounds i8, ptr %0, i64 80
  %51 = getelementptr inbounds i8, ptr %0, i64 92
  %52 = load i32, ptr %51, align 4, !tbaa !15
  %53 = icmp ult i32 %48, %52
  br i1 %53, label %54, label %.critedge119, !prof !16

54:                                               ; preds = %49
  %55 = load ptr, ptr %50, align 8, !tbaa !17
  %56 = zext i32 %48 to i64
  %57 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %55, i64 %56
  %58 = getelementptr inbounds i8, ptr %57, i64 8
  %59 = load ptr, ptr %58, align 8, !tbaa !18
  %.not117 = icmp eq ptr %59, null
  br i1 %.not117, label %.critedge119, label %60, !prof !20

60:                                               ; preds = %54
  %61 = load ptr, ptr %57, align 8, !tbaa !21
  %62 = tail call zeroext i1 @func_types_eq(ptr noundef nonnull @.str.15, ptr noundef %61)
  br i1 %62, label %63, label %.critedge119, !prof !16

.critedge119:                                     ; preds = %54, %49, %60
  tail call void @wasm_rt_trap(i32 noundef 6) #5
  unreachable

63:                                               ; preds = %60
  %64 = load ptr, ptr %50, align 8, !tbaa !17
  %65 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %64, i64 %56
  %66 = getelementptr inbounds i8, ptr %65, i64 8
  %67 = load ptr, ptr %66, align 8, !tbaa !18
  %68 = getelementptr inbounds i8, ptr %65, i64 16
  %69 = load ptr, ptr %68, align 8, !tbaa !22
  tail call void %67(ptr noundef %69) #4
  br label %73

70:                                               ; preds = %47
  %71 = tail call i32 @w2c_hermes_raise(ptr noundef %0, i32 noundef %1) #4
  br label %73

72:                                               ; preds = %44, %42
  tail call void @w2c_hermes_llvh0x3A0x3Asys0x3A0x3ARunSignalHandlers0x280x29(ptr noundef %0) #4
  br label %73

73:                                               ; preds = %72, %70, %63
  store i32 %4, ptr %3, align 8, !tbaa !5
  ret void
}

; 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 zeroext i1 @func_types_eq(ptr noundef, ptr 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: nounwind uwtable
declare dso_local i32 @w2c_hermes_0x5F_sigaction(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare i32 @w2c_hermes_sigfillset(ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @w2c_hermes_sigprocmask(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @w2c_hermes_raise(ptr noundef, i32 noundef) local_unnamed_addr #3

declare void @w2c_hermes_llvh0x3A0x3Asys0x3A0x3ARunSignalHandlers0x280x29(ptr noundef) local_unnamed_addr #3

attributes #0 = { 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 = { 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 = { "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: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyPass,LoopUnrollPass,LowerExpectIntrinsicPass,SROAPass,SimplifyCFGPass,TailCallElimPass