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

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

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

; 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_load8_u(ptr noundef, i64 noundef) #1

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

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

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

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

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

declare void @w2c_hermes_hermes0x3A0x3AappendSignedLEB1280x28std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x260x2C0x20long0x20long0x29(ptr noundef, i32 noundef, i64 noundef) #3

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

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

32:                                               ; preds = %5
  %33 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %33, ptr %15, align 4, !tbaa !9
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.w2c_hermes, ptr %34, i32 0, i32 6
  %36 = load i32, ptr %15, align 4, !tbaa !9
  %37 = zext i32 %36 to i64
  %38 = add i64 %37, 4
  %39 = call i32 @i32_load8_u(ptr noundef %35, i64 noundef %38)
  store i32 %39, ptr %15, align 4, !tbaa !9
  %40 = load i32, ptr %15, align 4, !tbaa !9
  %41 = icmp ne i32 %40, 0
  %42 = xor i1 %41, true
  %43 = zext i1 %42 to i32
  store i32 %43, ptr %15, align 4, !tbaa !9
  %44 = load i32, ptr %15, align 4, !tbaa !9
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %46, label %86

46:                                               ; preds = %32
  %47 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %47, ptr %15, align 4, !tbaa !9
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.w2c_hermes, ptr %48, i32 0, i32 6
  %50 = load i32, ptr %15, align 4, !tbaa !9
  %51 = zext i32 %50 to i64
  %52 = add i64 %51, 4
  %53 = call i32 @i32_load(ptr noundef %49, i64 noundef %52)
  store i32 %53, ptr %15, align 4, !tbaa !9
  %54 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %54, ptr %11, align 4, !tbaa !9
  %55 = load i32, ptr %15, align 4, !tbaa !9
  %56 = icmp ne i32 %55, 0
  %57 = xor i1 %56, true
  %58 = zext i1 %57 to i32
  store i32 %58, ptr %15, align 4, !tbaa !9
  %59 = load i32, ptr %15, align 4, !tbaa !9
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %62

61:                                               ; preds = %46
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %228

62:                                               ; preds = %46
  %63 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %63, ptr %15, align 4, !tbaa !9
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.w2c_hermes, ptr %64, i32 0, i32 6
  %66 = load i32, ptr %15, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = add i64 %67, 72
  %69 = call i32 @i32_load(ptr noundef %65, i64 noundef %68)
  store i32 %69, ptr %15, align 4, !tbaa !9
  %70 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %70, ptr %16, align 4, !tbaa !9
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.w2c_hermes, ptr %71, i32 0, i32 6
  %73 = load i32, ptr %16, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = add i64 %74, 68
  %76 = call i32 @i32_load(ptr noundef %72, i64 noundef %75)
  store i32 %76, ptr %16, align 4, !tbaa !9
  %77 = load i32, ptr %16, align 4, !tbaa !9
  %78 = load i32, ptr %15, align 4, !tbaa !9
  %79 = sub i32 %78, %77
  store i32 %79, ptr %15, align 4, !tbaa !9
  %80 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %80, ptr %13, align 4, !tbaa !9
  store i64 4294967295, ptr %20, align 8, !tbaa !11
  %81 = load i64, ptr %20, align 8, !tbaa !11
  store i64 %81, ptr %14, align 8, !tbaa !11
  %82 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %82, ptr %15, align 4, !tbaa !9
  store i32 68, ptr %16, align 4, !tbaa !9
  %83 = load i32, ptr %16, align 4, !tbaa !9
  %84 = load i32, ptr %15, align 4, !tbaa !9
  %85 = add i32 %84, %83
  store i32 %85, ptr %15, align 4, !tbaa !9
  br label %124

86:                                               ; preds = %32
  %87 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %87, ptr %15, align 4, !tbaa !9
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.w2c_hermes, ptr %88, i32 0, i32 6
  %90 = load i32, ptr %15, align 4, !tbaa !9
  %91 = zext i32 %90 to i64
  %92 = add i64 %91, 72
  %93 = call i32 @i32_load(ptr noundef %89, i64 noundef %92)
  store i32 %93, ptr %15, align 4, !tbaa !9
  %94 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %94, ptr %16, align 4, !tbaa !9
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.w2c_hermes, ptr %95, i32 0, i32 6
  %97 = load i32, ptr %16, align 4, !tbaa !9
  %98 = zext i32 %97 to i64
  %99 = add i64 %98, 68
  %100 = call i32 @i32_load(ptr noundef %96, i64 noundef %99)
  store i32 %100, ptr %16, align 4, !tbaa !9
  %101 = load i32, ptr %16, align 4, !tbaa !9
  %102 = load i32, ptr %15, align 4, !tbaa !9
  %103 = sub i32 %102, %101
  store i32 %103, ptr %15, align 4, !tbaa !9
  %104 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %104, ptr %13, align 4, !tbaa !9
  %105 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %105, ptr %15, align 4, !tbaa !9
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.w2c_hermes, ptr %106, i32 0, i32 6
  %108 = load i32, ptr %15, align 4, !tbaa !9
  %109 = zext i32 %108 to i64
  %110 = add i64 %109, 4
  %111 = call i32 @i32_load(ptr noundef %107, i64 noundef %110)
  store i32 %111, ptr %15, align 4, !tbaa !9
  %112 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %112, ptr %11, align 4, !tbaa !9
  %113 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %113, ptr %15, align 4, !tbaa !9
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.w2c_hermes, ptr %114, i32 0, i32 6
  %116 = load i32, ptr %15, align 4, !tbaa !9
  %117 = zext i32 %116 to i64
  %118 = call i64 @i64_load32_u(ptr noundef %115, i64 noundef %117)
  store i64 %118, ptr %20, align 8, !tbaa !11
  %119 = load i64, ptr %20, align 8, !tbaa !11
  store i64 %119, ptr %14, align 8, !tbaa !11
  %120 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %120, ptr %15, align 4, !tbaa !9
  store i32 68, ptr %16, align 4, !tbaa !9
  %121 = load i32, ptr %16, align 4, !tbaa !9
  %122 = load i32, ptr %15, align 4, !tbaa !9
  %123 = add i32 %122, %121
  store i32 %123, ptr %15, align 4, !tbaa !9
  br label %124

124:                                              ; preds = %86, %62
  %125 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %125, ptr %12, align 4, !tbaa !9
  %126 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %126, ptr %21, align 8, !tbaa !11
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = load i32, ptr %15, align 4, !tbaa !9
  %129 = load i64, ptr %21, align 8, !tbaa !11
  call void @w2c_hermes_hermes0x3A0x3AappendSignedLEB1280x28std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x260x2C0x20long0x20long0x29(ptr noundef %127, i32 noundef %128, i64 noundef %129)
  %130 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %130, ptr %15, align 4, !tbaa !9
  %131 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %131, ptr %16, align 4, !tbaa !9
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.w2c_hermes, ptr %132, i32 0, i32 6
  %134 = load i32, ptr %16, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = call i64 @i64_load8_u(ptr noundef %133, i64 noundef %135)
  store i64 %136, ptr %21, align 8, !tbaa !11
  %137 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %137, ptr %17, align 4, !tbaa !9
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.w2c_hermes, ptr %138, i32 0, i32 6
  %140 = load i32, ptr %17, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = add i64 %141, 1
  %143 = call i64 @i64_load8_u(ptr noundef %139, i64 noundef %142)
  store i64 %143, ptr %22, align 8, !tbaa !11
  store i64 1, ptr %23, align 8, !tbaa !11
  %144 = load i64, ptr %23, align 8, !tbaa !11
  %145 = and i64 %144, 63
  %146 = load i64, ptr %22, align 8, !tbaa !11
  %147 = shl i64 %146, %145
  store i64 %147, ptr %22, align 8, !tbaa !11
  %148 = load i64, ptr %22, align 8, !tbaa !11
  %149 = load i64, ptr %21, align 8, !tbaa !11
  %150 = or i64 %149, %148
  store i64 %150, ptr %21, align 8, !tbaa !11
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = load i32, ptr %15, align 4, !tbaa !9
  %153 = load i64, ptr %21, align 8, !tbaa !11
  call void @w2c_hermes_hermes0x3A0x3AappendSignedLEB1280x28std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x260x2C0x20long0x20long0x29(ptr noundef %151, i32 noundef %152, i64 noundef %153)
  %154 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %154, ptr %15, align 4, !tbaa !9
  %155 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %155, ptr %16, align 4, !tbaa !9
  %156 = load i32, ptr %16, align 4, !tbaa !9
  %157 = zext i32 %156 to i64
  store i64 %157, ptr %21, align 8, !tbaa !11
  %158 = load ptr, ptr %6, align 8, !tbaa !5
  %159 = load i32, ptr %15, align 4, !tbaa !9
  %160 = load i64, ptr %21, align 8, !tbaa !11
  call void @w2c_hermes_hermes0x3A0x3AappendSignedLEB1280x28std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x260x2C0x20long0x20long0x29(ptr noundef %158, i32 noundef %159, i64 noundef %160)
  %161 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %161, ptr %15, align 4, !tbaa !9
  %162 = load i32, ptr %15, align 4, !tbaa !9
  %163 = icmp ne i32 %162, 0
  br i1 %163, label %164, label %208

164:                                              ; preds = %124
  %165 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %165, ptr %15, align 4, !tbaa !9
  %166 = load ptr, ptr %6, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.w2c_hermes, ptr %166, i32 0, i32 6
  %168 = load i32, ptr %15, align 4, !tbaa !9
  %169 = zext i32 %168 to i64
  %170 = call i32 @i32_load(ptr noundef %167, i64 noundef %169)
  store i32 %170, ptr %15, align 4, !tbaa !9
  %171 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %171, ptr %9, align 4, !tbaa !9
  %172 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %172, ptr %16, align 4, !tbaa !9
  store i32 2, ptr %17, align 4, !tbaa !9
  %173 = load i32, ptr %17, align 4, !tbaa !9
  %174 = and i32 %173, 31
  %175 = load i32, ptr %16, align 4, !tbaa !9
  %176 = shl i32 %175, %174
  store i32 %176, ptr %16, align 4, !tbaa !9
  %177 = load i32, ptr %16, align 4, !tbaa !9
  %178 = load i32, ptr %15, align 4, !tbaa !9
  %179 = add i32 %178, %177
  store i32 %179, ptr %15, align 4, !tbaa !9
  %180 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %180, ptr %11, align 4, !tbaa !9
  br label %181

181:                                              ; preds = %206, %164
  %182 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %182, ptr %15, align 4, !tbaa !9
  %183 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %183, ptr %16, align 4, !tbaa !9
  %184 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %184, ptr %17, align 4, !tbaa !9
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.w2c_hermes, ptr %185, i32 0, i32 6
  %187 = load i32, ptr %17, align 4, !tbaa !9
  %188 = zext i32 %187 to i64
  %189 = call i32 @i32_load(ptr noundef %186, i64 noundef %188)
  store i32 %189, ptr %17, align 4, !tbaa !9
  %190 = load ptr, ptr %6, align 8, !tbaa !5
  %191 = load i32, ptr %15, align 4, !tbaa !9
  %192 = load i32, ptr %16, align 4, !tbaa !9
  %193 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ADebugInfoGenerator0x3A0x3AappendString0x28std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x260x2C0x20hermes0x3A0x3AIdentifier0x29(ptr noundef %190, i32 noundef %191, i32 noundef %192, i32 noundef %193)
  %194 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %194, ptr %15, align 4, !tbaa !9
  store i32 4, ptr %16, align 4, !tbaa !9
  %195 = load i32, ptr %16, align 4, !tbaa !9
  %196 = load i32, ptr %15, align 4, !tbaa !9
  %197 = add i32 %196, %195
  store i32 %197, ptr %15, align 4, !tbaa !9
  %198 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %198, ptr %9, align 4, !tbaa !9
  %199 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %199, ptr %16, align 4, !tbaa !9
  %200 = load i32, ptr %15, align 4, !tbaa !9
  %201 = load i32, ptr %16, align 4, !tbaa !9
  %202 = icmp ne i32 %200, %201
  %203 = zext i1 %202 to i32
  store i32 %203, ptr %15, align 4, !tbaa !9
  %204 = load i32, ptr %15, align 4, !tbaa !9
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %207

206:                                              ; preds = %181
  br label %181

207:                                              ; preds = %181
  br label %208

208:                                              ; preds = %207, %124
  %209 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %209, ptr %15, align 4, !tbaa !9
  br label %228

210:                                              ; preds = %5
  store i32 0, ptr %15, align 4, !tbaa !9
  %211 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %211, ptr %9, align 4, !tbaa !9
  store i32 176317, ptr %16, align 4, !tbaa !9
  %212 = load i32, ptr %16, align 4, !tbaa !9
  %213 = load i32, ptr %15, align 4, !tbaa !9
  %214 = add i32 %213, %212
  store i32 %214, ptr %15, align 4, !tbaa !9
  %215 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %215, ptr %16, align 4, !tbaa !9
  store i32 58694, ptr %17, align 4, !tbaa !9
  %216 = load i32, ptr %17, align 4, !tbaa !9
  %217 = load i32, ptr %16, align 4, !tbaa !9
  %218 = add i32 %217, %216
  store i32 %218, ptr %16, align 4, !tbaa !9
  store i32 605, ptr %17, align 4, !tbaa !9
  %219 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %219, ptr %18, align 4, !tbaa !9
  store i32 107104, ptr %19, align 4, !tbaa !9
  %220 = load i32, ptr %19, align 4, !tbaa !9
  %221 = load i32, ptr %18, align 4, !tbaa !9
  %222 = add i32 %221, %220
  store i32 %222, ptr %18, align 4, !tbaa !9
  %223 = load ptr, ptr %6, align 8, !tbaa !5
  %224 = load i32, ptr %15, align 4, !tbaa !9
  %225 = load i32, ptr %16, align 4, !tbaa !9
  %226 = load i32, ptr %17, align 4, !tbaa !9
  %227 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %223, i32 noundef %224, i32 noundef %225, i32 noundef %226, i32 noundef %227)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

228:                                              ; preds = %208, %61
  %229 = load i32, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  ret i32 %229
}

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ADebugInfoGenerator0x3A0x3AappendScopeDesc0x28hermes0x3A0x3AOptValue0x3Cunsigned0x20int0x3E0x2C0x20hermes0x3A0x3Ahbc0x3A0x3ADebugScopeDescriptor0x3A0x3AFlags0x2C0x20llvh0x3A0x3AArrayRef0x3Chermes0x3A0x3AIdentifier0x3E0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #3 {
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = zext i32 %1 to i64
  %8 = tail call i32 @i32_load8_u(ptr noundef nonnull %6, i64 noundef %7)
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %50, label %9

9:                                                ; preds = %5
  %10 = zext i32 %2 to i64
  %11 = add nuw nsw i64 %10, 4
  %12 = tail call i32 @i32_load8_u(ptr noundef nonnull %6, i64 noundef %11)
  %.not121 = icmp eq i32 %12, 0
  br i1 %.not121, label %13, label %23

13:                                               ; preds = %9
  %14 = zext i32 %4 to i64
  %15 = add nuw nsw i64 %14, 4
  %16 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %15)
  %.not122 = icmp eq i32 %16, 0
  br i1 %.not122, label %.loopexit, label %17

17:                                               ; preds = %13
  %18 = add nuw nsw i64 %7, 72
  %19 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %18)
  %20 = add nuw nsw i64 %7, 68
  %21 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %20)
  %22 = sub i32 %19, %21
  br label %33

23:                                               ; preds = %9
  %24 = add nuw nsw i64 %7, 72
  %25 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %24)
  %26 = add nuw nsw i64 %7, 68
  %27 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %26)
  %28 = sub i32 %25, %27
  %29 = zext i32 %4 to i64
  %30 = add nuw nsw i64 %29, 4
  %31 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %30)
  %32 = tail call i64 @i64_load32_u(ptr noundef nonnull %6, i64 noundef %10)
  br label %33

33:                                               ; preds = %23, %17
  %.0119 = phi i64 [ 4294967295, %17 ], [ %32, %23 ]
  %.0118 = phi i32 [ %22, %17 ], [ %28, %23 ]
  %.0117 = phi i32 [ %16, %17 ], [ %31, %23 ]
  %.0120 = add i32 %1, 68
  tail call void @w2c_hermes_hermes0x3A0x3AappendSignedLEB1280x28std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x260x2C0x20long0x20long0x29(ptr noundef %0, i32 noundef %.0120, i64 noundef %.0119) #4
  %34 = zext i32 %3 to i64
  %35 = tail call i64 @i64_load8_u(ptr noundef nonnull %6, i64 noundef %34)
  %36 = add nuw nsw i64 %34, 1
  %37 = tail call i64 @i64_load8_u(ptr noundef nonnull %6, i64 noundef %36)
  %38 = shl i64 %37, 1
  %39 = or i64 %38, %35
  tail call void @w2c_hermes_hermes0x3A0x3AappendSignedLEB1280x28std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x260x2C0x20long0x20long0x29(ptr noundef %0, i32 noundef %.0120, i64 noundef %39) #4
  %40 = zext i32 %.0117 to i64
  tail call void @w2c_hermes_hermes0x3A0x3AappendSignedLEB1280x28std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x260x2C0x20long0x20long0x29(ptr noundef %0, i32 noundef %.0120, i64 noundef %40) #4
  %.not123 = icmp eq i32 %.0117, 0
  br i1 %.not123, label %.loopexit, label %41

41:                                               ; preds = %33
  %42 = zext i32 %4 to i64
  %43 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %42)
  %44 = shl i32 %.0117, 2
  %45 = add i32 %43, %44
  br label %46

46:                                               ; preds = %46, %41
  %.0 = phi i32 [ %43, %41 ], [ %49, %46 ]
  %47 = zext i32 %.0 to i64
  %48 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %47)
  tail call void @w2c_hermes_hermes0x3A0x3Ahbc0x3A0x3ADebugInfoGenerator0x3A0x3AappendString0x28std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20char0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20char0x3E0x3E0x260x2C0x20hermes0x3A0x3AIdentifier0x29(ptr noundef %0, i32 noundef %1, i32 noundef %.0120, i32 noundef %48)
  %49 = add i32 %.0, 4
  %.not124 = icmp eq i32 %49, %45
  br i1 %.not124, label %.loopexit, label %46

50:                                               ; preds = %5
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 176317, i32 noundef 58694, i32 noundef 605, i32 noundef 107104) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

.loopexit:                                        ; preds = %46, %33, %13
  %.1 = phi i32 [ 0, %13 ], [ %.0118, %33 ], [ %.0118, %46 ]
  ret i32 %.1
}

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


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