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

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

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

@w2c_hermes_t1 = 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 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: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACodeBlock0x3A0x3AgetNameMayAllocate0x280x290x20const(ptr noundef %0, i32 noundef %1) #5 {
  %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
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.w2c_hermes, ptr %15, i32 0, i32 3
  %17 = load i32, ptr %16, align 8, !tbaa !11
  store i32 %17, ptr %8, align 4, !tbaa !9
  store i32 32, ptr %9, align 4, !tbaa !9
  %18 = load i32, ptr %9, align 4, !tbaa !9
  %19 = load i32, ptr %8, align 4, !tbaa !9
  %20 = sub i32 %19, %18
  store i32 %20, ptr %8, align 4, !tbaa !9
  %21 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %21, ptr %5, align 4, !tbaa !9
  %22 = load i32, ptr %8, align 4, !tbaa !9
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.w2c_hermes, ptr %23, i32 0, i32 3
  store i32 %22, ptr %24, align 8, !tbaa !11
  %25 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %25, ptr %8, align 4, !tbaa !9
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.w2c_hermes, ptr %26, i32 0, i32 6
  %28 = load i32, ptr %8, align 4, !tbaa !9
  %29 = zext i32 %28 to i64
  %30 = call i32 @i32_load(ptr noundef %27, i64 noundef %29)
  store i32 %30, ptr %8, align 4, !tbaa !9
  %31 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %31, ptr %6, align 4, !tbaa !9
  %32 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %32, ptr %8, align 4, !tbaa !9
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.w2c_hermes, ptr %33, i32 0, i32 6
  %35 = load i32, ptr %8, align 4, !tbaa !9
  %36 = zext i32 %35 to i64
  %37 = add i64 %36, 8
  %38 = call i32 @i32_load(ptr noundef %34, i64 noundef %37)
  store i32 %38, ptr %8, align 4, !tbaa !9
  %39 = load i32, ptr %8, align 4, !tbaa !9
  %40 = icmp ne i32 %39, 0
  %41 = xor i1 %40, true
  %42 = zext i1 %41 to i32
  store i32 %42, ptr %8, align 4, !tbaa !9
  %43 = load i32, ptr %8, align 4, !tbaa !9
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %45, label %51

45:                                               ; preds = %2
  %46 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %46, ptr %8, align 4, !tbaa !9
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = load i32, ptr %8, align 4, !tbaa !9
  %49 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntimeModule0x3A0x3AgetLazyName0x280x29(ptr noundef %47, i32 noundef %48)
  store i32 %49, ptr %8, align 4, !tbaa !9
  %50 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %50, ptr %4, align 4, !tbaa !9
  br label %257

51:                                               ; preds = %2
  %52 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %52, ptr %8, align 4, !tbaa !9
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.w2c_hermes, ptr %53, i32 0, i32 6
  %55 = load i32, ptr %8, align 4, !tbaa !9
  %56 = zext i32 %55 to i64
  %57 = add i64 %56, 12
  %58 = call i32 @i32_load(ptr noundef %54, i64 noundef %57)
  store i32 %58, ptr %8, align 4, !tbaa !9
  %59 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %59, ptr %9, align 4, !tbaa !9
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.w2c_hermes, ptr %60, i32 0, i32 6
  %62 = load i32, ptr %9, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = add i64 %63, 4
  %65 = call i32 @i32_load(ptr noundef %61, i64 noundef %64)
  store i32 %65, ptr %9, align 4, !tbaa !9
  %66 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %66, ptr %4, align 4, !tbaa !9
  store i32 1, ptr %10, align 4, !tbaa !9
  %67 = load i32, ptr %10, align 4, !tbaa !9
  %68 = load i32, ptr %9, align 4, !tbaa !9
  %69 = and i32 %68, %67
  store i32 %69, ptr %9, align 4, !tbaa !9
  %70 = load i32, ptr %9, align 4, !tbaa !9
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %80

72:                                               ; preds = %51
  %73 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %73, ptr %9, align 4, !tbaa !9
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.w2c_hermes, ptr %74, i32 0, i32 6
  %76 = load i32, ptr %9, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = add i64 %77, 11
  %79 = call i32 @i32_load(ptr noundef %75, i64 noundef %78)
  store i32 %79, ptr %9, align 4, !tbaa !9
  br label %93

80:                                               ; preds = %51
  %81 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %81, ptr %9, align 4, !tbaa !9
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.w2c_hermes, ptr %82, i32 0, i32 6
  %84 = load i32, ptr %9, align 4, !tbaa !9
  %85 = zext i32 %84 to i64
  %86 = call i64 @i64_load(ptr noundef %83, i64 noundef %85)
  store i64 %86, ptr %13, align 8, !tbaa !17
  store i64 47, ptr %14, align 8, !tbaa !17
  %87 = load i64, ptr %14, align 8, !tbaa !17
  %88 = and i64 %87, 63
  %89 = load i64, ptr %13, align 8, !tbaa !17
  %90 = lshr i64 %89, %88
  store i64 %90, ptr %13, align 8, !tbaa !17
  %91 = load i64, ptr %13, align 8, !tbaa !17
  %92 = trunc i64 %91 to i32
  store i32 %92, ptr %9, align 4, !tbaa !9
  br label %93

93:                                               ; preds = %80, %72
  %94 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %94, ptr %7, align 4, !tbaa !9
  store i32 2, ptr %10, align 4, !tbaa !9
  %95 = load i32, ptr %10, align 4, !tbaa !9
  %96 = and i32 %95, 31
  %97 = load i32, ptr %9, align 4, !tbaa !9
  %98 = shl i32 %97, %96
  store i32 %98, ptr %9, align 4, !tbaa !9
  %99 = load i32, ptr %9, align 4, !tbaa !9
  %100 = load i32, ptr %8, align 4, !tbaa !9
  %101 = add i32 %100, %99
  store i32 %101, ptr %8, align 4, !tbaa !9
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.w2c_hermes, ptr %102, i32 0, i32 6
  %104 = load i32, ptr %8, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = call i32 @i32_load(ptr noundef %103, i64 noundef %105)
  store i32 %106, ptr %8, align 4, !tbaa !9
  %107 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %107, ptr %4, align 4, !tbaa !9
  store i32 536870910, ptr %9, align 4, !tbaa !9
  %108 = load i32, ptr %8, align 4, !tbaa !9
  %109 = load i32, ptr %9, align 4, !tbaa !9
  %110 = icmp ult i32 %108, %109
  %111 = zext i1 %110 to i32
  store i32 %111, ptr %8, align 4, !tbaa !9
  %112 = load i32, ptr %8, align 4, !tbaa !9
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %115

114:                                              ; preds = %93
  br label %257

115:                                              ; preds = %93
  %116 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %116, ptr %8, align 4, !tbaa !9
  store i32 24, ptr %9, align 4, !tbaa !9
  %117 = load i32, ptr %9, align 4, !tbaa !9
  %118 = load i32, ptr %8, align 4, !tbaa !9
  %119 = add i32 %118, %117
  store i32 %119, ptr %8, align 4, !tbaa !9
  %120 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %120, ptr %9, align 4, !tbaa !9
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.w2c_hermes, ptr %121, i32 0, i32 6
  %123 = load i32, ptr %9, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = add i64 %124, 40
  %126 = call i32 @i32_load(ptr noundef %122, i64 noundef %125)
  store i32 %126, ptr %9, align 4, !tbaa !9
  %127 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %127, ptr %4, align 4, !tbaa !9
  %128 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %128, ptr %10, align 4, !tbaa !9
  %129 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %129, ptr %11, align 4, !tbaa !9
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.w2c_hermes, ptr %130, i32 0, i32 6
  %132 = load i32, ptr %11, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = call i32 @i32_load(ptr noundef %131, i64 noundef %133)
  store i32 %134, ptr %11, align 4, !tbaa !9
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.w2c_hermes, ptr %135, i32 0, i32 6
  %137 = load i32, ptr %11, align 4, !tbaa !9
  %138 = zext i32 %137 to i64
  %139 = add i64 %138, 4
  %140 = call i32 @i32_load(ptr noundef %136, i64 noundef %139)
  store i32 %140, ptr %11, align 4, !tbaa !9
  %141 = load i32, ptr %11, align 4, !tbaa !9
  %142 = load ptr, ptr %3, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.w2c_hermes, ptr %142, i32 0, i32 7
  %144 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %143, i32 0, i32 2
  %145 = load i32, ptr %144, align 4, !tbaa !18
  %146 = icmp ult i32 %141, %145
  br i1 %146, label %147, label %170

147:                                              ; preds = %115
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.w2c_hermes, ptr %148, i32 0, i32 7
  %150 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %149, i32 0, i32 0
  %151 = load ptr, ptr %150, align 8, !tbaa !19
  %152 = load i32, ptr %11, align 4, !tbaa !9
  %153 = zext i32 %152 to i64
  %154 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %151, i64 %153
  %155 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %154, i32 0, i32 1
  %156 = load ptr, ptr %155, align 8, !tbaa !20
  %157 = icmp ne ptr %156, null
  br i1 %157, label %158, label %170

158:                                              ; preds = %147
  %159 = load ptr, ptr @w2c_hermes_t1, align 8, !tbaa !5
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.w2c_hermes, ptr %160, i32 0, i32 7
  %162 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %161, i32 0, i32 0
  %163 = load ptr, ptr %162, align 8, !tbaa !19
  %164 = load i32, ptr %11, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %163, i64 %165
  %167 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %166, i32 0, i32 0
  %168 = load ptr, ptr %167, align 8, !tbaa !22
  %169 = call zeroext i1 @func_types_eq(ptr noundef %159, ptr noundef %168)
  br label %170

170:                                              ; preds = %158, %147, %115
  %171 = phi i1 [ false, %147 ], [ false, %115 ], [ %169, %158 ]
  %172 = xor i1 %171, true
  %173 = xor i1 %172, true
  %174 = zext i1 %173 to i32
  %175 = sext i32 %174 to i64
  %176 = call i64 @llvm.expect.i64(i64 %175, i64 1)
  %177 = icmp ne i64 %176, 0
  br i1 %177, label %180, label %178

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

179:                                              ; No predecessors!
  br label %180

180:                                              ; preds = %179, %170
  %181 = phi i1 [ true, %170 ], [ false, %179 ]
  %182 = zext i1 %181 to i32
  %183 = load ptr, ptr %3, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.w2c_hermes, ptr %183, i32 0, i32 7
  %185 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %184, i32 0, i32 0
  %186 = load ptr, ptr %185, align 8, !tbaa !19
  %187 = load i32, ptr %11, align 4, !tbaa !9
  %188 = zext i32 %187 to i64
  %189 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %186, i64 %188
  %190 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %189, i32 0, i32 1
  %191 = load ptr, ptr %190, align 8, !tbaa !20
  %192 = load ptr, ptr %3, 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 0
  %195 = load ptr, ptr %194, align 8, !tbaa !19
  %196 = load i32, ptr %11, align 4, !tbaa !9
  %197 = zext i32 %196 to i64
  %198 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %195, i64 %197
  %199 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %198, i32 0, i32 2
  %200 = load ptr, ptr %199, align 8, !tbaa !23
  %201 = load i32, ptr %8, align 4, !tbaa !9
  %202 = load i32, ptr %9, align 4, !tbaa !9
  %203 = load i32, ptr %10, align 4, !tbaa !9
  call void %191(ptr noundef %200, i32 noundef %201, i32 noundef %202, i32 noundef %203)
  %204 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %204, ptr %8, align 4, !tbaa !9
  store i32 0, ptr %9, align 4, !tbaa !9
  %205 = load ptr, ptr %3, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.w2c_hermes, ptr %205, i32 0, i32 6
  %207 = load i32, ptr %8, align 4, !tbaa !9
  %208 = zext i32 %207 to i64
  %209 = add i64 %208, 20
  %210 = load i32, ptr %9, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %206, i64 noundef %209, i32 noundef %210)
  %211 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %211, ptr %8, align 4, !tbaa !9
  store i32 0, ptr %9, align 4, !tbaa !9
  %212 = load ptr, ptr %3, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.w2c_hermes, ptr %212, i32 0, i32 6
  %214 = load i32, ptr %8, align 4, !tbaa !9
  %215 = zext i32 %214 to i64
  %216 = add i64 %215, 16
  %217 = load i32, ptr %9, align 4, !tbaa !9
  call void @i32_store(ptr noundef %213, i64 noundef %216, i32 noundef %217)
  %218 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %218, ptr %8, align 4, !tbaa !9
  %219 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %219, ptr %9, align 4, !tbaa !9
  %220 = load ptr, ptr %3, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.w2c_hermes, ptr %220, i32 0, i32 6
  %222 = load i32, ptr %9, align 4, !tbaa !9
  %223 = zext i32 %222 to i64
  %224 = add i64 %223, 16
  %225 = call i64 @i64_load(ptr noundef %221, i64 noundef %224)
  store i64 %225, ptr %13, align 8, !tbaa !17
  %226 = load ptr, ptr %3, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.w2c_hermes, ptr %226, i32 0, i32 6
  %228 = load i32, ptr %8, align 4, !tbaa !9
  %229 = zext i32 %228 to i64
  %230 = add i64 %229, 8
  %231 = load i64, ptr %13, align 8, !tbaa !17
  call void @i64_store(ptr noundef %227, i64 noundef %230, i64 noundef %231)
  %232 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %232, ptr %8, align 4, !tbaa !9
  %233 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %233, ptr %9, align 4, !tbaa !9
  %234 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %234, ptr %10, align 4, !tbaa !9
  store i32 24, ptr %11, align 4, !tbaa !9
  %235 = load i32, ptr %11, align 4, !tbaa !9
  %236 = load i32, ptr %10, align 4, !tbaa !9
  %237 = add i32 %236, %235
  store i32 %237, ptr %10, align 4, !tbaa !9
  %238 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %238, ptr %11, align 4, !tbaa !9
  store i32 8, ptr %12, align 4, !tbaa !9
  %239 = load i32, ptr %12, align 4, !tbaa !9
  %240 = load i32, ptr %11, align 4, !tbaa !9
  %241 = add i32 %240, %239
  store i32 %241, ptr %11, align 4, !tbaa !9
  %242 = load ptr, ptr %3, align 8, !tbaa !5
  %243 = load i32, ptr %8, align 4, !tbaa !9
  %244 = load i32, ptr %9, align 4, !tbaa !9
  %245 = load i32, ptr %10, align 4, !tbaa !9
  %246 = load i32, ptr %11, align 4, !tbaa !9
  %247 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntimeModule0x3A0x3AcreateSymbolFromStringIDMayAllocate0x28unsigned0x20int0x2C0x20hermes0x3A0x3AStringTableEntry0x20const0x260x2C0x20hermes0x3A0x3AOptValue0x3Cunsigned0x20int0x3E0x29(ptr noundef %242, i32 noundef %243, i32 noundef %244, i32 noundef %245, i32 noundef %246)
  store i32 %247, ptr %8, align 4, !tbaa !9
  %248 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %248, ptr %4, align 4, !tbaa !9
  store i32 536870910, ptr %9, align 4, !tbaa !9
  %249 = load i32, ptr %8, align 4, !tbaa !9
  %250 = load i32, ptr %9, align 4, !tbaa !9
  %251 = icmp uge i32 %249, %250
  %252 = zext i1 %251 to i32
  store i32 %252, ptr %8, align 4, !tbaa !9
  %253 = load i32, ptr %8, align 4, !tbaa !9
  %254 = icmp ne i32 %253, 0
  br i1 %254, label %255, label %256

255:                                              ; preds = %180
  br label %266

256:                                              ; preds = %180
  br label %257

257:                                              ; preds = %256, %114, %45
  %258 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %258, ptr %8, align 4, !tbaa !9
  store i32 32, ptr %9, align 4, !tbaa !9
  %259 = load i32, ptr %9, align 4, !tbaa !9
  %260 = load i32, ptr %8, align 4, !tbaa !9
  %261 = add i32 %260, %259
  store i32 %261, ptr %8, align 4, !tbaa !9
  %262 = load i32, ptr %8, align 4, !tbaa !9
  %263 = load ptr, ptr %3, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.w2c_hermes, ptr %263, i32 0, i32 3
  store i32 %262, ptr %264, align 8, !tbaa !11
  %265 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %265, ptr %8, align 4, !tbaa !9
  br label %284

266:                                              ; preds = %255
  store i32 0, ptr %8, align 4, !tbaa !9
  %267 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %267, ptr %4, align 4, !tbaa !9
  store i32 185889, ptr %9, align 4, !tbaa !9
  %268 = load i32, ptr %9, align 4, !tbaa !9
  %269 = load i32, ptr %8, align 4, !tbaa !9
  %270 = add i32 %269, %268
  store i32 %270, ptr %8, align 4, !tbaa !9
  %271 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %271, ptr %9, align 4, !tbaa !9
  store i32 84504, ptr %10, align 4, !tbaa !9
  %272 = load i32, ptr %10, align 4, !tbaa !9
  %273 = load i32, ptr %9, align 4, !tbaa !9
  %274 = add i32 %273, %272
  store i32 %274, ptr %9, align 4, !tbaa !9
  store i32 252, ptr %10, align 4, !tbaa !9
  %275 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %275, ptr %11, align 4, !tbaa !9
  store i32 91522, ptr %12, align 4, !tbaa !9
  %276 = load i32, ptr %12, align 4, !tbaa !9
  %277 = load i32, ptr %11, align 4, !tbaa !9
  %278 = add i32 %277, %276
  store i32 %278, ptr %11, align 4, !tbaa !9
  %279 = load ptr, ptr %3, align 8, !tbaa !5
  %280 = load i32, ptr %8, align 4, !tbaa !9
  %281 = load i32, ptr %9, align 4, !tbaa !9
  %282 = load i32, ptr %10, align 4, !tbaa !9
  %283 = load i32, ptr %11, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %279, i32 noundef %280, i32 noundef %281, i32 noundef %282, i32 noundef %283)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

284:                                              ; preds = %257
  %285 = load i32, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, 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
  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 i32 %285
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(none) }
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 = !{!14, !14, i64 0}
!18 = !{!12, !10, i64 92}
!19 = !{!12, !6, i64 80}
!20 = !{!21, !6, i64 8}
!21 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!21, !6, i64 0}
!23 = !{!21, !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_t1 = external local_unnamed_addr constant ptr, align 8

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 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: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACodeBlock0x3A0x3AgetNameMayAllocate0x280x290x20const(ptr noundef %0, i32 noundef %1) local_unnamed_addr #3 {
  %3 = getelementptr inbounds i8, ptr %0, i64 24
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = add i32 %4, -32
  store i32 %5, ptr %3, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = zext i32 %1 to i64
  %8 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %7)
  %9 = add nuw nsw i64 %7, 8
  %10 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %9)
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %11, label %13

11:                                               ; preds = %2
  %12 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntimeModule0x3A0x3AgetLazyName0x280x29(ptr noundef nonnull %0, i32 noundef %8) #4
  br label %72

13:                                               ; preds = %2
  %14 = zext i32 %8 to i64
  %15 = add nuw nsw i64 %14, 12
  %16 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %15)
  %17 = add nuw nsw i64 %7, 4
  %18 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %17)
  %19 = and i32 %18, 1
  %.not131 = icmp eq i32 %19, 0
  %20 = zext i32 %18 to i64
  br i1 %.not131, label %24, label %21

21:                                               ; preds = %13
  %22 = add nuw nsw i64 %20, 11
  %23 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %22)
  br label %28

24:                                               ; preds = %13
  %25 = tail call i64 @i64_load(ptr noundef nonnull %6, i64 noundef %20)
  %26 = lshr i64 %25, 47
  %27 = trunc nuw nsw i64 %26 to i32
  br label %28

28:                                               ; preds = %24, %21
  %.0127 = phi i32 [ %23, %21 ], [ %27, %24 ]
  %29 = shl i32 %.0127, 2
  %30 = add i32 %29, %16
  %31 = zext i32 %30 to i64
  %32 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %31)
  %33 = icmp ult i32 %32, 536870910
  br i1 %33, label %72, label %34

34:                                               ; preds = %28
  %35 = add i32 %4, -8
  %36 = add nuw nsw i64 %14, 40
  %37 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %36)
  %38 = zext i32 %37 to i64
  %39 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %38)
  %40 = zext i32 %39 to i64
  %41 = add nuw nsw i64 %40, 4
  %42 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %41)
  %43 = getelementptr inbounds i8, ptr %0, i64 80
  %44 = getelementptr inbounds i8, ptr %0, i64 92
  %45 = load i32, ptr %44, align 4, !tbaa !15
  %46 = icmp ult i32 %42, %45
  br i1 %46, label %47, label %.critedge, !prof !16

47:                                               ; preds = %34
  %48 = load ptr, ptr %43, align 8, !tbaa !17
  %49 = zext i32 %42 to i64
  %50 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %48, i64 %49
  %51 = getelementptr inbounds i8, ptr %50, i64 8
  %52 = load ptr, ptr %51, align 8, !tbaa !18
  %.not132 = icmp eq ptr %52, null
  br i1 %.not132, label %.critedge, label %53, !prof !20

53:                                               ; preds = %47
  %54 = load ptr, ptr @w2c_hermes_t1, align 8, !tbaa !21
  %55 = load ptr, ptr %50, align 8, !tbaa !22
  %56 = tail call zeroext i1 @func_types_eq(ptr noundef %54, ptr noundef %55)
  br i1 %56, label %57, label %.critedge, !prof !16

.critedge:                                        ; preds = %47, %34, %53
  tail call void @wasm_rt_trap(i32 noundef 6) #5
  unreachable

57:                                               ; preds = %53
  %58 = load ptr, ptr %43, align 8, !tbaa !17
  %59 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %58, i64 %49
  %60 = getelementptr inbounds i8, ptr %59, i64 8
  %61 = load ptr, ptr %60, align 8, !tbaa !18
  %62 = getelementptr inbounds i8, ptr %59, i64 16
  %63 = load ptr, ptr %62, align 8, !tbaa !23
  tail call void %61(ptr noundef %63, i32 noundef %35, i32 noundef %37, i32 noundef %.0127) #4
  %64 = zext i32 %5 to i64
  %65 = add nuw nsw i64 %64, 20
  tail call void @i32_store8(ptr noundef nonnull %6, i64 noundef %65, i32 noundef 0)
  %66 = add nuw nsw i64 %64, 16
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %66, i32 noundef 0)
  %67 = tail call i64 @i64_load(ptr noundef nonnull %6, i64 noundef %66)
  %68 = add nuw nsw i64 %64, 8
  tail call void @i64_store(ptr noundef nonnull %6, i64 noundef %68, i64 noundef %67)
  %69 = add i32 %4, -24
  %70 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntimeModule0x3A0x3AcreateSymbolFromStringIDMayAllocate0x28unsigned0x20int0x2C0x20hermes0x3A0x3AStringTableEntry0x20const0x260x2C0x20hermes0x3A0x3AOptValue0x3Cunsigned0x20int0x3E0x29(ptr noundef nonnull %0, i32 noundef %8, i32 noundef %.0127, i32 noundef %35, i32 noundef %69) #4
  %71 = icmp ugt i32 %70, 536870909
  br i1 %71, label %73, label %72

72:                                               ; preds = %57, %28, %11
  %.0 = phi i32 [ %12, %11 ], [ %32, %28 ], [ %70, %57 ]
  store i32 %4, ptr %3, align 8, !tbaa !5
  ret i32 %.0

73:                                               ; preds = %57
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 185889, i32 noundef 84504, i32 noundef 252, i32 noundef 91522) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

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

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!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 = !{!7, !7, i64 0}
!22 = !{!19, !7, i64 0}
!23 = !{!19, !7, i64 16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LowerExpectIntrinsicPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass