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

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

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

@w2c_hermes_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: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) #1

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

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

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

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

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

declare void @w2c_hermes_dlfree(ptr noundef, i32 noundef) #5

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

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

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

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

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

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

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

declare void @w2c_hermes_exit(ptr noundef, i32 noundef) #5

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

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

34:                                               ; preds = %3
  store i32 292964, ptr %10, align 4, !tbaa !9
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.w2c_hermes, ptr %35, i32 0, i32 6
  %37 = load i32, ptr %10, align 4, !tbaa !9
  %38 = zext i32 %37 to i64
  %39 = call i32 @i32_load(ptr noundef %36, i64 noundef %38)
  store i32 %39, ptr %10, align 4, !tbaa !9
  %40 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %40, ptr %9, align 4, !tbaa !9
  %41 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %41, ptr %10, align 4, !tbaa !9
  store i32 36, ptr %11, align 4, !tbaa !9
  %42 = load i32, ptr %11, align 4, !tbaa !9
  %43 = load i32, ptr %10, align 4, !tbaa !9
  %44 = add i32 %43, %42
  store i32 %44, ptr %10, align 4, !tbaa !9
  %45 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %45, ptr %11, align 4, !tbaa !9
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = load i32, ptr %10, align 4, !tbaa !9
  %48 = load i32, ptr %11, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3ATwine0x3A0x3Astr0x280x290x20const(ptr noundef %46, i32 noundef %47, i32 noundef %48)
  %49 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %49, ptr %10, align 4, !tbaa !9
  %50 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %50, ptr %11, align 4, !tbaa !9
  store i32 36, ptr %12, align 4, !tbaa !9
  %51 = load i32, ptr %12, align 4, !tbaa !9
  %52 = load i32, ptr %11, align 4, !tbaa !9
  %53 = add i32 %52, %51
  store i32 %53, ptr %11, align 4, !tbaa !9
  %54 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %54, ptr %12, align 4, !tbaa !9
  %55 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %55, ptr %13, align 4, !tbaa !9
  %56 = load i32, ptr %13, align 4, !tbaa !9
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.w2c_hermes, ptr %57, i32 0, i32 7
  %59 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %58, i32 0, i32 2
  %60 = load i32, ptr %59, align 4, !tbaa !17
  %61 = icmp ult i32 %56, %60
  br i1 %61, label %62, label %85

62:                                               ; preds = %34
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.w2c_hermes, ptr %63, i32 0, i32 7
  %65 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %64, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8, !tbaa !18
  %67 = load i32, ptr %13, align 4, !tbaa !9
  %68 = zext i32 %67 to i64
  %69 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %66, i64 %68
  %70 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %69, i32 0, i32 1
  %71 = load ptr, ptr %70, align 8, !tbaa !19
  %72 = icmp ne ptr %71, null
  br i1 %72, label %73, label %85

73:                                               ; preds = %62
  %74 = load ptr, ptr @w2c_hermes_t1, align 8, !tbaa !5
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.w2c_hermes, ptr %75, i32 0, i32 7
  %77 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %76, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8, !tbaa !18
  %79 = load i32, ptr %13, align 4, !tbaa !9
  %80 = zext i32 %79 to i64
  %81 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %78, i64 %80
  %82 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %81, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8, !tbaa !21
  %84 = call zeroext i1 @func_types_eq(ptr noundef %74, ptr noundef %83)
  br label %85

85:                                               ; preds = %73, %62, %34
  %86 = phi i1 [ false, %62 ], [ false, %34 ], [ %84, %73 ]
  %87 = xor i1 %86, true
  %88 = xor i1 %87, true
  %89 = zext i1 %88 to i32
  %90 = sext i32 %89 to i64
  %91 = call i64 @llvm.expect.i64(i64 %90, i64 1)
  %92 = icmp ne i64 %91, 0
  br i1 %92, label %95, label %93

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

94:                                               ; No predecessors!
  br label %95

95:                                               ; preds = %94, %85
  %96 = phi i1 [ true, %85 ], [ false, %94 ]
  %97 = zext i1 %96 to i32
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.w2c_hermes, ptr %98, i32 0, i32 7
  %100 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %99, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8, !tbaa !18
  %102 = load i32, ptr %13, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %101, i64 %103
  %105 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %104, i32 0, i32 1
  %106 = load ptr, ptr %105, align 8, !tbaa !19
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.w2c_hermes, ptr %107, i32 0, i32 7
  %109 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %108, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8, !tbaa !18
  %111 = load i32, ptr %13, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %110, i64 %112
  %114 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %113, i32 0, i32 2
  %115 = load ptr, ptr %114, align 8, !tbaa !22
  %116 = load i32, ptr %10, align 4, !tbaa !9
  %117 = load i32, ptr %11, align 4, !tbaa !9
  %118 = load i32, ptr %12, align 4, !tbaa !9
  call void %106(ptr noundef %115, i32 noundef %116, i32 noundef %117, i32 noundef %118)
  %119 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %119, ptr %10, align 4, !tbaa !9
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.w2c_hermes, ptr %120, i32 0, i32 6
  %122 = load i32, ptr %10, align 4, !tbaa !9
  %123 = zext i32 %122 to i64
  %124 = add i64 %123, 47
  %125 = call i32 @i32_load8_s(ptr noundef %121, i64 noundef %124)
  store i32 %125, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  %126 = load i32, ptr %10, align 4, !tbaa !9
  %127 = load i32, ptr %11, align 4, !tbaa !9
  %128 = icmp sge i32 %126, %127
  %129 = zext i1 %128 to i32
  store i32 %129, ptr %10, align 4, !tbaa !9
  %130 = load i32, ptr %10, align 4, !tbaa !9
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %132, label %133

132:                                              ; preds = %95
  br label %397

133:                                              ; preds = %95
  %134 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %134, ptr %10, align 4, !tbaa !9
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.w2c_hermes, ptr %135, i32 0, i32 6
  %137 = load i32, ptr %10, align 4, !tbaa !9
  %138 = zext i32 %137 to i64
  %139 = add i64 %138, 36
  %140 = call i32 @i32_load(ptr noundef %136, i64 noundef %139)
  store i32 %140, ptr %10, align 4, !tbaa !9
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = load i32, ptr %10, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %141, i32 noundef %142)
  br label %397

143:                                              ; preds = %3
  %144 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %144, ptr %10, align 4, !tbaa !9
  store i64 274877906944, ptr %14, align 8, !tbaa !23
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.w2c_hermes, ptr %145, i32 0, i32 6
  %147 = load i32, ptr %10, align 4, !tbaa !9
  %148 = zext i32 %147 to i64
  %149 = add i64 %148, 40
  %150 = load i64, ptr %14, align 8, !tbaa !23
  call void @i64_store(ptr noundef %146, i64 noundef %149, i64 noundef %150)
  %151 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %151, ptr %10, align 4, !tbaa !9
  %152 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %152, ptr %11, align 4, !tbaa !9
  store i32 48, ptr %12, align 4, !tbaa !9
  %153 = load i32, ptr %12, align 4, !tbaa !9
  %154 = load i32, ptr %11, align 4, !tbaa !9
  %155 = add i32 %154, %153
  store i32 %155, ptr %11, align 4, !tbaa !9
  %156 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %156, ptr %8, align 4, !tbaa !9
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.w2c_hermes, ptr %157, i32 0, i32 6
  %159 = load i32, ptr %10, align 4, !tbaa !9
  %160 = zext i32 %159 to i64
  %161 = add i64 %160, 36
  %162 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %158, i64 noundef %161, i32 noundef %162)
  %163 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %163, ptr %10, align 4, !tbaa !9
  store i64 4294967296, ptr %14, align 8, !tbaa !23
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.w2c_hermes, ptr %164, i32 0, i32 6
  %166 = load i32, ptr %10, align 4, !tbaa !9
  %167 = zext i32 %166 to i64
  %168 = add i64 %167, 24
  %169 = load i64, ptr %14, align 8, !tbaa !23
  call void @i64_store(ptr noundef %165, i64 noundef %168, i64 noundef %169)
  %170 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %170, ptr %10, align 4, !tbaa !9
  store i64 0, ptr %14, align 8, !tbaa !23
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.w2c_hermes, ptr %171, i32 0, i32 6
  %173 = load i32, ptr %10, align 4, !tbaa !9
  %174 = zext i32 %173 to i64
  %175 = add i64 %174, 16
  %176 = load i64, ptr %14, align 8, !tbaa !23
  call void @i64_store(ptr noundef %172, i64 noundef %175, i64 noundef %176)
  %177 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %177, ptr %10, align 4, !tbaa !9
  store i32 267216, ptr %11, align 4, !tbaa !9
  %178 = load ptr, ptr %4, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.w2c_hermes, ptr %178, i32 0, i32 6
  %180 = load i32, ptr %10, align 4, !tbaa !9
  %181 = zext i32 %180 to i64
  %182 = add i64 %181, 12
  %183 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %179, i64 noundef %182, i32 noundef %183)
  %184 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %184, ptr %10, align 4, !tbaa !9
  %185 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %185, ptr %11, align 4, !tbaa !9
  store i32 36, ptr %12, align 4, !tbaa !9
  %186 = load i32, ptr %12, align 4, !tbaa !9
  %187 = load i32, ptr %11, align 4, !tbaa !9
  %188 = add i32 %187, %186
  store i32 %188, ptr %11, align 4, !tbaa !9
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.w2c_hermes, ptr %189, i32 0, i32 6
  %191 = load i32, ptr %10, align 4, !tbaa !9
  %192 = zext i32 %191 to i64
  %193 = add i64 %192, 32
  %194 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %190, i64 noundef %193, i32 noundef %194)
  %195 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %195, ptr %10, align 4, !tbaa !9
  store i32 12, ptr %11, align 4, !tbaa !9
  %196 = load i32, ptr %11, align 4, !tbaa !9
  %197 = load i32, ptr %10, align 4, !tbaa !9
  %198 = add i32 %197, %196
  store i32 %198, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = load i32, ptr %10, align 4, !tbaa !9
  %201 = load i32, ptr %11, align 4, !tbaa !9
  %202 = load i32, ptr %12, align 4, !tbaa !9
  %203 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3ASetBufferAndMode0x28char0x2A0x2C0x20unsigned0x20long0x2C0x20llvh0x3A0x3Araw_ostream0x3A0x3ABufferKind0x29(ptr noundef %199, i32 noundef %200, i32 noundef %201, i32 noundef %202, i32 noundef %203)
  %204 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %204, ptr %10, align 4, !tbaa !9
  %205 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %205, ptr %11, align 4, !tbaa !9
  %206 = load ptr, ptr %4, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.w2c_hermes, ptr %206, i32 0, i32 6
  %208 = load i32, ptr %11, align 4, !tbaa !9
  %209 = zext i32 %208 to i64
  %210 = add i64 %209, 20
  %211 = call i32 @i32_load(ptr noundef %207, i64 noundef %210)
  store i32 %211, ptr %11, align 4, !tbaa !9
  %212 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %212, ptr %12, align 4, !tbaa !9
  %213 = load ptr, ptr %4, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.w2c_hermes, ptr %213, i32 0, i32 6
  %215 = load i32, ptr %12, align 4, !tbaa !9
  %216 = zext i32 %215 to i64
  %217 = add i64 %216, 24
  %218 = call i32 @i32_load(ptr noundef %214, i64 noundef %217)
  store i32 %218, ptr %12, align 4, !tbaa !9
  %219 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %219, ptr %6, align 4, !tbaa !9
  %220 = load i32, ptr %12, align 4, !tbaa !9
  %221 = load i32, ptr %11, align 4, !tbaa !9
  %222 = sub i32 %221, %220
  store i32 %222, ptr %11, align 4, !tbaa !9
  store i32 11, ptr %12, align 4, !tbaa !9
  %223 = load i32, ptr %11, align 4, !tbaa !9
  %224 = load i32, ptr %12, align 4, !tbaa !9
  %225 = icmp ule i32 %223, %224
  %226 = zext i1 %225 to i32
  store i32 %226, ptr %11, align 4, !tbaa !9
  %227 = load i32, ptr %11, align 4, !tbaa !9
  %228 = icmp ne i32 %227, 0
  br i1 %228, label %229, label %239

229:                                              ; preds = %143
  %230 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %230, ptr %11, align 4, !tbaa !9
  store i32 12, ptr %12, align 4, !tbaa !9
  %231 = load i32, ptr %12, align 4, !tbaa !9
  %232 = load i32, ptr %11, align 4, !tbaa !9
  %233 = add i32 %232, %231
  store i32 %233, ptr %11, align 4, !tbaa !9
  store i32 211199, ptr %12, align 4, !tbaa !9
  store i32 12, ptr %13, align 4, !tbaa !9
  %234 = load ptr, ptr %4, align 8, !tbaa !5
  %235 = load i32, ptr %11, align 4, !tbaa !9
  %236 = load i32, ptr %12, align 4, !tbaa !9
  %237 = load i32, ptr %13, align 4, !tbaa !9
  %238 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %234, i32 noundef %235, i32 noundef %236, i32 noundef %237)
  store i32 %238, ptr %11, align 4, !tbaa !9
  br label %287

239:                                              ; preds = %143
  %240 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %240, ptr %11, align 4, !tbaa !9
  store i32 211199, ptr %12, align 4, !tbaa !9
  %241 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %241, ptr %9, align 4, !tbaa !9
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.w2c_hermes, ptr %242, i32 0, i32 6
  %244 = load i32, ptr %12, align 4, !tbaa !9
  %245 = zext i32 %244 to i64
  %246 = call i64 @i64_load(ptr noundef %243, i64 noundef %245)
  store i64 %246, ptr %15, align 8, !tbaa !23
  %247 = load ptr, ptr %4, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.w2c_hermes, ptr %247, i32 0, i32 6
  %249 = load i32, ptr %11, align 4, !tbaa !9
  %250 = zext i32 %249 to i64
  %251 = load i64, ptr %15, align 8, !tbaa !23
  call void @i64_store(ptr noundef %248, i64 noundef %250, i64 noundef %251)
  %252 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %252, ptr %11, align 4, !tbaa !9
  %253 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %253, ptr %12, align 4, !tbaa !9
  %254 = load ptr, ptr %4, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.w2c_hermes, ptr %254, i32 0, i32 6
  %256 = load i32, ptr %12, align 4, !tbaa !9
  %257 = zext i32 %256 to i64
  %258 = add i64 %257, 8
  %259 = call i32 @i32_load(ptr noundef %255, i64 noundef %258)
  store i32 %259, ptr %12, align 4, !tbaa !9
  %260 = load ptr, ptr %4, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.w2c_hermes, ptr %260, i32 0, i32 6
  %262 = load i32, ptr %11, align 4, !tbaa !9
  %263 = zext i32 %262 to i64
  %264 = add i64 %263, 8
  %265 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %261, i64 noundef %264, i32 noundef %265)
  %266 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %266, ptr %11, align 4, !tbaa !9
  %267 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %267, ptr %12, align 4, !tbaa !9
  %268 = load ptr, ptr %4, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.w2c_hermes, ptr %268, i32 0, i32 6
  %270 = load i32, ptr %12, align 4, !tbaa !9
  %271 = zext i32 %270 to i64
  %272 = add i64 %271, 24
  %273 = call i32 @i32_load(ptr noundef %269, i64 noundef %272)
  store i32 %273, ptr %12, align 4, !tbaa !9
  store i32 12, ptr %13, align 4, !tbaa !9
  %274 = load i32, ptr %13, align 4, !tbaa !9
  %275 = load i32, ptr %12, align 4, !tbaa !9
  %276 = add i32 %275, %274
  store i32 %276, ptr %12, align 4, !tbaa !9
  %277 = load ptr, ptr %4, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.w2c_hermes, ptr %277, i32 0, i32 6
  %279 = load i32, ptr %11, align 4, !tbaa !9
  %280 = zext i32 %279 to i64
  %281 = add i64 %280, 24
  %282 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %278, i64 noundef %281, i32 noundef %282)
  %283 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %283, ptr %11, align 4, !tbaa !9
  store i32 12, ptr %12, align 4, !tbaa !9
  %284 = load i32, ptr %12, align 4, !tbaa !9
  %285 = load i32, ptr %11, align 4, !tbaa !9
  %286 = add i32 %285, %284
  store i32 %286, ptr %11, align 4, !tbaa !9
  br label %287

287:                                              ; preds = %239, %229
  %288 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %288, ptr %6, align 4, !tbaa !9
  %289 = load ptr, ptr %4, align 8, !tbaa !5
  %290 = load i32, ptr %10, align 4, !tbaa !9
  %291 = load i32, ptr %11, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3ATwine0x3A0x3Aprint0x28llvh0x3A0x3Araw_ostream0x260x290x20const(ptr noundef %289, i32 noundef %290, i32 noundef %291)
  %292 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %292, ptr %10, align 4, !tbaa !9
  %293 = load ptr, ptr %4, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.w2c_hermes, ptr %293, i32 0, i32 6
  %295 = load i32, ptr %10, align 4, !tbaa !9
  %296 = zext i32 %295 to i64
  %297 = add i64 %296, 12
  %298 = call i32 @i32_load(ptr noundef %294, i64 noundef %297)
  store i32 %298, ptr %10, align 4, !tbaa !9
  %299 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %299, ptr %5, align 4, !tbaa !9
  %300 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %300, ptr %11, align 4, !tbaa !9
  %301 = load ptr, ptr %4, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.w2c_hermes, ptr %301, i32 0, i32 6
  %303 = load i32, ptr %11, align 4, !tbaa !9
  %304 = zext i32 %303 to i64
  %305 = add i64 %304, 8
  %306 = call i32 @i32_load(ptr noundef %302, i64 noundef %305)
  store i32 %306, ptr %11, align 4, !tbaa !9
  %307 = load i32, ptr %10, align 4, !tbaa !9
  %308 = load i32, ptr %11, align 4, !tbaa !9
  %309 = icmp eq i32 %307, %308
  %310 = zext i1 %309 to i32
  store i32 %310, ptr %10, align 4, !tbaa !9
  %311 = load i32, ptr %10, align 4, !tbaa !9
  %312 = icmp ne i32 %311, 0
  br i1 %312, label %313, label %320

313:                                              ; preds = %287
  %314 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %314, ptr %10, align 4, !tbaa !9
  store i32 213024, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %315 = load ptr, ptr %4, align 8, !tbaa !5
  %316 = load i32, ptr %10, align 4, !tbaa !9
  %317 = load i32, ptr %11, align 4, !tbaa !9
  %318 = load i32, ptr %12, align 4, !tbaa !9
  %319 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %315, i32 noundef %316, i32 noundef %317, i32 noundef %318)
  store i32 %319, ptr %10, align 4, !tbaa !9
  br label %344

320:                                              ; preds = %287
  %321 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %321, ptr %10, align 4, !tbaa !9
  store i32 10, ptr %11, align 4, !tbaa !9
  %322 = load ptr, ptr %4, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.w2c_hermes, ptr %322, i32 0, i32 6
  %324 = load i32, ptr %10, align 4, !tbaa !9
  %325 = zext i32 %324 to i64
  %326 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %323, i64 noundef %325, i32 noundef %326)
  %327 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %327, ptr %10, align 4, !tbaa !9
  %328 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %328, ptr %11, align 4, !tbaa !9
  %329 = load ptr, ptr %4, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.w2c_hermes, ptr %329, i32 0, i32 6
  %331 = load i32, ptr %11, align 4, !tbaa !9
  %332 = zext i32 %331 to i64
  %333 = add i64 %332, 12
  %334 = call i32 @i32_load(ptr noundef %330, i64 noundef %333)
  store i32 %334, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %335 = load i32, ptr %12, align 4, !tbaa !9
  %336 = load i32, ptr %11, align 4, !tbaa !9
  %337 = add i32 %336, %335
  store i32 %337, ptr %11, align 4, !tbaa !9
  %338 = load ptr, ptr %4, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.w2c_hermes, ptr %338, i32 0, i32 6
  %340 = load i32, ptr %10, align 4, !tbaa !9
  %341 = zext i32 %340 to i64
  %342 = add i64 %341, 12
  %343 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %339, i64 noundef %342, i32 noundef %343)
  br label %344

344:                                              ; preds = %320, %313
  store i32 2, ptr %10, align 4, !tbaa !9
  %345 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %345, ptr %11, align 4, !tbaa !9
  %346 = load ptr, ptr %4, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.w2c_hermes, ptr %346, i32 0, i32 6
  %348 = load i32, ptr %11, align 4, !tbaa !9
  %349 = zext i32 %348 to i64
  %350 = add i64 %349, 32
  %351 = call i32 @i32_load(ptr noundef %347, i64 noundef %350)
  store i32 %351, ptr %11, align 4, !tbaa !9
  %352 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %352, ptr %6, align 4, !tbaa !9
  %353 = load ptr, ptr %4, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct.w2c_hermes, ptr %353, i32 0, i32 6
  %355 = load i32, ptr %11, align 4, !tbaa !9
  %356 = zext i32 %355 to i64
  %357 = call i32 @i32_load(ptr noundef %354, i64 noundef %356)
  store i32 %357, ptr %11, align 4, !tbaa !9
  %358 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %358, ptr %12, align 4, !tbaa !9
  %359 = load ptr, ptr %4, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.w2c_hermes, ptr %359, i32 0, i32 6
  %361 = load i32, ptr %12, align 4, !tbaa !9
  %362 = zext i32 %361 to i64
  %363 = add i64 %362, 4
  %364 = call i32 @i32_load(ptr noundef %360, i64 noundef %363)
  store i32 %364, ptr %12, align 4, !tbaa !9
  %365 = load ptr, ptr %4, align 8, !tbaa !5
  %366 = load i32, ptr %10, align 4, !tbaa !9
  %367 = load i32, ptr %11, align 4, !tbaa !9
  %368 = load i32, ptr %12, align 4, !tbaa !9
  %369 = call i32 @w2c_hermes_write(ptr noundef %365, i32 noundef %366, i32 noundef %367, i32 noundef %368)
  store i32 %369, ptr %10, align 4, !tbaa !9
  %370 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %370, ptr %10, align 4, !tbaa !9
  store i32 12, ptr %11, align 4, !tbaa !9
  %371 = load i32, ptr %11, align 4, !tbaa !9
  %372 = load i32, ptr %10, align 4, !tbaa !9
  %373 = add i32 %372, %371
  store i32 %373, ptr %10, align 4, !tbaa !9
  %374 = load ptr, ptr %4, align 8, !tbaa !5
  %375 = load i32, ptr %10, align 4, !tbaa !9
  %376 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3A0x7Eraw_ostream0x280x290x2E1(ptr noundef %374, i32 noundef %375)
  store i32 %376, ptr %10, align 4, !tbaa !9
  %377 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %377, ptr %10, align 4, !tbaa !9
  %378 = load ptr, ptr %4, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.w2c_hermes, ptr %378, i32 0, i32 6
  %380 = load i32, ptr %10, align 4, !tbaa !9
  %381 = zext i32 %380 to i64
  %382 = add i64 %381, 36
  %383 = call i32 @i32_load(ptr noundef %379, i64 noundef %382)
  store i32 %383, ptr %10, align 4, !tbaa !9
  %384 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %384, ptr %7, align 4, !tbaa !9
  %385 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %385, ptr %11, align 4, !tbaa !9
  %386 = load i32, ptr %10, align 4, !tbaa !9
  %387 = load i32, ptr %11, align 4, !tbaa !9
  %388 = icmp eq i32 %386, %387
  %389 = zext i1 %388 to i32
  store i32 %389, ptr %10, align 4, !tbaa !9
  %390 = load i32, ptr %10, align 4, !tbaa !9
  %391 = icmp ne i32 %390, 0
  br i1 %391, label %392, label %393

392:                                              ; preds = %344
  br label %397

393:                                              ; preds = %344
  %394 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %394, ptr %10, align 4, !tbaa !9
  %395 = load ptr, ptr %4, align 8, !tbaa !5
  %396 = load i32, ptr %10, align 4, !tbaa !9
  call void @w2c_hermes_dlfree(ptr noundef %395, i32 noundef %396)
  br label %397

397:                                              ; preds = %393, %392, %133, %132
  %398 = load ptr, ptr %4, align 8, !tbaa !5
  call void @w2c_hermes_llvh0x3A0x3Asys0x3A0x3ARunInterruptHandlers0x280x29(ptr noundef %398)
  store i32 1, ptr %10, align 4, !tbaa !9
  %399 = load ptr, ptr %4, align 8, !tbaa !5
  %400 = load i32, ptr %10, align 4, !tbaa !9
  call void @w2c_hermes_exit(ptr noundef %399, i32 noundef %400)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable
}

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #3 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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}
!23 = !{!14, !14, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

@w2c_hermes_t1 = external local_unnamed_addr constant ptr, align 8

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

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

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

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

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

declare void @w2c_hermes_dlfree(ptr noundef, i32 noundef) local_unnamed_addr #3

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_llvh0x3A0x3Asys0x3A0x3ARunInterruptHandlers0x280x29(ptr noundef) local_unnamed_addr #2

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

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

declare void @w2c_hermes_exit(ptr noundef, i32 noundef) local_unnamed_addr #3

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

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

9:                                                ; preds = %3
  %10 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef 292964)
  %11 = add i32 %5, -76
  tail call void @w2c_hermes_llvh0x3A0x3ATwine0x3A0x3Astr0x280x290x20const(ptr noundef nonnull %0, i32 noundef %11, i32 noundef %1)
  %12 = getelementptr inbounds i8, ptr %0, i64 80
  %13 = getelementptr inbounds i8, ptr %0, i64 92
  %14 = load i32, ptr %13, align 4, !tbaa !15
  %15 = icmp ult i32 %8, %14
  br i1 %15, label %16, label %.critedge, !prof !16

16:                                               ; preds = %9
  %17 = load ptr, ptr %12, align 8, !tbaa !17
  %18 = zext i32 %8 to i64
  %19 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %17, i64 %18
  %20 = getelementptr inbounds i8, ptr %19, i64 8
  %21 = load ptr, ptr %20, align 8, !tbaa !18
  %.not201 = icmp eq ptr %21, null
  br i1 %.not201, label %.critedge, label %22, !prof !20

22:                                               ; preds = %16
  %23 = load ptr, ptr @w2c_hermes_t1, align 8, !tbaa !21
  %24 = load ptr, ptr %19, align 8, !tbaa !22
  %25 = tail call zeroext i1 @func_types_eq(ptr noundef %23, ptr noundef %24)
  br i1 %25, label %26, label %.critedge, !prof !16

.critedge:                                        ; preds = %16, %9, %22
  tail call void @wasm_rt_trap(i32 noundef 6) #5
  unreachable

26:                                               ; preds = %22
  %27 = load ptr, ptr %12, align 8, !tbaa !17
  %28 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %27, i64 %18
  %29 = getelementptr inbounds i8, ptr %28, i64 8
  %30 = load ptr, ptr %29, align 8, !tbaa !18
  %31 = getelementptr inbounds i8, ptr %28, i64 16
  %32 = load ptr, ptr %31, align 8, !tbaa !23
  tail call void %30(ptr noundef %32, i32 noundef %10, i32 noundef %11, i32 noundef %2) #6
  %33 = zext i32 %6 to i64
  %34 = add nuw nsw i64 %33, 47
  %35 = tail call i32 @i32_load8_s(ptr noundef nonnull %7, i64 noundef %34)
  %36 = icmp sgt i32 %35, -1
  br i1 %36, label %89, label %37

37:                                               ; preds = %26
  %38 = add nuw nsw i64 %33, 36
  %39 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %38)
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef nonnull %0, i32 noundef %39)
  br label %89

40:                                               ; preds = %3
  %41 = zext i32 %6 to i64
  %42 = add nuw nsw i64 %41, 40
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %42, i64 noundef 274877906944)
  %43 = add i32 %5, -64
  %44 = add nuw nsw i64 %41, 36
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %44, i32 noundef %43)
  %45 = add nuw nsw i64 %41, 24
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %45, i64 noundef 4294967296)
  %46 = add nuw nsw i64 %41, 16
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %46, i64 noundef 0)
  %47 = add nuw nsw i64 %41, 12
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %47, i32 noundef 267216)
  %48 = add i32 %5, -76
  %49 = add nuw nsw i64 %41, 32
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %49, i32 noundef %48)
  %50 = add i32 %5, -100
  tail call void @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3ASetBufferAndMode0x28char0x2A0x2C0x20unsigned0x20long0x2C0x20llvh0x3A0x3Araw_ostream0x3A0x3ABufferKind0x29(ptr noundef nonnull %0, i32 noundef %50, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %51 = add nuw nsw i64 %41, 20
  %52 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %51)
  %53 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %45)
  %54 = sub i32 %52, %53
  %55 = icmp ult i32 %54, 12
  br i1 %55, label %56, label %58

56:                                               ; preds = %40
  %57 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef %50, i32 noundef 211199, i32 noundef 12)
  br label %65

58:                                               ; preds = %40
  %59 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef 211199)
  %60 = zext i32 %53 to i64
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %60, i64 noundef %59)
  %61 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef 211207)
  %62 = add nuw nsw i64 %60, 8
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %62, i32 noundef %61)
  %63 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %45)
  %64 = add i32 %63, 12
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %45, i32 noundef %64)
  br label %65

65:                                               ; preds = %58, %56
  %.0 = phi i32 [ %57, %56 ], [ %50, %58 ]
  tail call void @w2c_hermes_llvh0x3A0x3ATwine0x3A0x3Aprint0x28llvh0x3A0x3Araw_ostream0x260x290x20const(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %.0)
  %66 = zext i32 %.0 to i64
  %67 = add nuw nsw i64 %66, 12
  %68 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %67)
  %69 = add nuw nsw i64 %66, 8
  %70 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %69)
  %71 = icmp eq i32 %68, %70
  br i1 %71, label %72, label %74

72:                                               ; preds = %65
  %73 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef %.0, i32 noundef 213024, i32 noundef 1)
  br label %78

74:                                               ; preds = %65
  %75 = zext i32 %68 to i64
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %75, i32 noundef 10)
  %76 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %67)
  %77 = add i32 %76, 1
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %67, i32 noundef %77)
  br label %78

78:                                               ; preds = %74, %72
  %79 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %49)
  %80 = zext i32 %79 to i64
  %81 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %80)
  %82 = add nuw nsw i64 %80, 4
  %83 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %82)
  %84 = tail call i32 @w2c_hermes_write(ptr noundef nonnull %0, i32 noundef 2, i32 noundef %81, i32 noundef %83) #6
  %85 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3A0x7Eraw_ostream0x280x290x2E1(ptr noundef nonnull %0, i32 noundef %50)
  %86 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %44)
  %87 = icmp eq i32 %86, %43
  br i1 %87, label %89, label %88

88:                                               ; preds = %78
  tail call void @w2c_hermes_dlfree(ptr noundef nonnull %0, i32 noundef %86) #6
  br label %89

89:                                               ; preds = %78, %26, %88, %37
  tail call void @w2c_hermes_llvh0x3A0x3Asys0x3A0x3ARunInterruptHandlers0x280x29(ptr noundef nonnull %0)
  tail call void @w2c_hermes_exit(ptr noundef nonnull %0, i32 noundef 1) #6
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

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

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

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

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 = { 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 = { noreturn nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind }
attributes #6 = { 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,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass