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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3AVariable0x3A0x3AVariable0x28hermes0x3A0x3AValueKind0x2C0x20hermes0x3A0x3AScopeDesc0x2A0x2C0x20hermes0x3A0x3AJavaScriptDeclKind0x2C0x20hermes0x3A0x3AIdentifier0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #4 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  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 8, ptr %18) #5
  %19 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %19, ptr %13, align 4, !tbaa !9
  store i32 459775, ptr %14, align 4, !tbaa !9
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.w2c_hermes, ptr %20, i32 0, i32 6
  %22 = load i32, ptr %13, align 4, !tbaa !9
  %23 = zext i32 %22 to i64
  %24 = add i64 %23, 2
  %25 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %21, i64 noundef %24, i32 noundef %25)
  %26 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %26, ptr %13, align 4, !tbaa !9
  %27 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %27, ptr %14, align 4, !tbaa !9
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.w2c_hermes, ptr %28, i32 0, i32 6
  %30 = load i32, ptr %13, align 4, !tbaa !9
  %31 = zext i32 %30 to i64
  %32 = add i64 %31, 36
  %33 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %29, i64 noundef %32, i32 noundef %33)
  %34 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %34, ptr %13, align 4, !tbaa !9
  %35 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %35, ptr %14, align 4, !tbaa !9
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.w2c_hermes, ptr %36, i32 0, i32 6
  %38 = load i32, ptr %13, align 4, !tbaa !9
  %39 = zext i32 %38 to i64
  %40 = add i64 %39, 32
  %41 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %37, i64 noundef %40, i32 noundef %41)
  %42 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %42, ptr %13, align 4, !tbaa !9
  %43 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %43, ptr %14, align 4, !tbaa !9
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.w2c_hermes, ptr %44, i32 0, i32 6
  %46 = load i32, ptr %13, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = add i64 %47, 28
  %49 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %45, i64 noundef %48, i32 noundef %49)
  %50 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %50, ptr %13, align 4, !tbaa !9
  %51 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %51, ptr %14, align 4, !tbaa !9
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.w2c_hermes, ptr %52, i32 0, i32 6
  %54 = load i32, ptr %13, align 4, !tbaa !9
  %55 = zext i32 %54 to i64
  %56 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %53, i64 noundef %55, i32 noundef %56)
  %57 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %57, ptr %13, align 4, !tbaa !9
  store i64 8589934592, ptr %18, align 8, !tbaa !11
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.w2c_hermes, ptr %58, i32 0, i32 6
  %60 = load i32, ptr %13, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  %62 = add i64 %61, 12
  %63 = load i64, ptr %18, align 8, !tbaa !11
  call void @i64_store(ptr noundef %59, i64 noundef %62, i64 noundef %63)
  %64 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %64, ptr %13, align 4, !tbaa !9
  %65 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %65, ptr %14, align 4, !tbaa !9
  store i32 20, ptr %15, align 4, !tbaa !9
  %66 = load i32, ptr %15, align 4, !tbaa !9
  %67 = load i32, ptr %14, align 4, !tbaa !9
  %68 = add i32 %67, %66
  store i32 %68, ptr %14, align 4, !tbaa !9
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.w2c_hermes, ptr %69, i32 0, i32 6
  %71 = load i32, ptr %13, align 4, !tbaa !9
  %72 = zext i32 %71 to i64
  %73 = add i64 %72, 8
  %74 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %70, i64 noundef %73, i32 noundef %74)
  %75 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %75, ptr %13, align 4, !tbaa !9
  %76 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %76, ptr %14, align 4, !tbaa !9
  %77 = load i32, ptr %14, align 4, !tbaa !9
  %78 = icmp ne i32 %77, 0
  %79 = xor i1 %78, true
  %80 = zext i1 %79 to i32
  store i32 %80, ptr %14, align 4, !tbaa !9
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.w2c_hermes, ptr %81, i32 0, i32 6
  %83 = load i32, ptr %13, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = add i64 %84, 40
  %86 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %82, i64 noundef %85, i32 noundef %86)
  %87 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %87, ptr %13, align 4, !tbaa !9
  store i32 88, ptr %14, align 4, !tbaa !9
  %88 = load i32, ptr %14, align 4, !tbaa !9
  %89 = load i32, ptr %13, align 4, !tbaa !9
  %90 = add i32 %89, %88
  store i32 %90, ptr %13, align 4, !tbaa !9
  %91 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %91, ptr %12, align 4, !tbaa !9
  %92 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %92, ptr %13, align 4, !tbaa !9
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.w2c_hermes, ptr %93, i32 0, i32 6
  %95 = load i32, ptr %13, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = add i64 %96, 92
  %98 = call i32 @i32_load(ptr noundef %94, i64 noundef %97)
  store i32 %98, ptr %13, align 4, !tbaa !9
  %99 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %99, ptr %11, align 4, !tbaa !9
  %100 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %100, ptr %14, align 4, !tbaa !9
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.w2c_hermes, ptr %101, i32 0, i32 6
  %103 = load i32, ptr %14, align 4, !tbaa !9
  %104 = zext i32 %103 to i64
  %105 = add i64 %104, 96
  %106 = call i32 @i32_load(ptr noundef %102, i64 noundef %105)
  store i32 %106, ptr %14, align 4, !tbaa !9
  %107 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %107, ptr %9, align 4, !tbaa !9
  %108 = load i32, ptr %13, align 4, !tbaa !9
  %109 = load i32, ptr %14, align 4, !tbaa !9
  %110 = icmp uge i32 %108, %109
  %111 = zext i1 %110 to i32
  store i32 %111, ptr %13, align 4, !tbaa !9
  %112 = load i32, ptr %13, align 4, !tbaa !9
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %141

114:                                              ; preds = %6
  %115 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %115, ptr %13, align 4, !tbaa !9
  %116 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %116, ptr %14, align 4, !tbaa !9
  store i32 100, ptr %15, align 4, !tbaa !9
  %117 = load i32, ptr %15, align 4, !tbaa !9
  %118 = load i32, ptr %14, align 4, !tbaa !9
  %119 = add i32 %118, %117
  store i32 %119, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  store i32 4, ptr %16, align 4, !tbaa !9
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = load i32, ptr %13, align 4, !tbaa !9
  %122 = load i32, ptr %14, align 4, !tbaa !9
  %123 = load i32, ptr %15, align 4, !tbaa !9
  %124 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3ASmallVectorBase0x3A0x3Agrow_pod0x28void0x2A0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef %120, i32 noundef %121, i32 noundef %122, i32 noundef %123, i32 noundef %124)
  %125 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %125, ptr %13, align 4, !tbaa !9
  %126 = load ptr, ptr %7, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.w2c_hermes, ptr %126, i32 0, i32 6
  %128 = load i32, ptr %13, align 4, !tbaa !9
  %129 = zext i32 %128 to i64
  %130 = add i64 %129, 92
  %131 = call i32 @i32_load(ptr noundef %127, i64 noundef %130)
  store i32 %131, ptr %13, align 4, !tbaa !9
  %132 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %132, ptr %11, align 4, !tbaa !9
  %133 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %133, ptr %13, align 4, !tbaa !9
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.w2c_hermes, ptr %134, i32 0, i32 6
  %136 = load i32, ptr %13, align 4, !tbaa !9
  %137 = zext i32 %136 to i64
  %138 = add i64 %137, 96
  %139 = call i32 @i32_load(ptr noundef %135, i64 noundef %138)
  store i32 %139, ptr %13, align 4, !tbaa !9
  %140 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %140, ptr %9, align 4, !tbaa !9
  br label %141

141:                                              ; preds = %114, %6
  %142 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %142, ptr %13, align 4, !tbaa !9
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.w2c_hermes, ptr %143, i32 0, i32 6
  %145 = load i32, ptr %13, align 4, !tbaa !9
  %146 = zext i32 %145 to i64
  %147 = call i32 @i32_load(ptr noundef %144, i64 noundef %146)
  store i32 %147, ptr %13, align 4, !tbaa !9
  %148 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %148, ptr %14, align 4, !tbaa !9
  store i32 2, ptr %15, align 4, !tbaa !9
  %149 = load i32, ptr %15, align 4, !tbaa !9
  %150 = and i32 %149, 31
  %151 = load i32, ptr %14, align 4, !tbaa !9
  %152 = shl i32 %151, %150
  store i32 %152, ptr %14, align 4, !tbaa !9
  %153 = load i32, ptr %14, align 4, !tbaa !9
  %154 = load i32, ptr %13, align 4, !tbaa !9
  %155 = add i32 %154, %153
  store i32 %155, ptr %13, align 4, !tbaa !9
  %156 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %156, ptr %14, align 4, !tbaa !9
  %157 = load ptr, ptr %7, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.w2c_hermes, ptr %157, i32 0, i32 6
  %159 = load i32, ptr %13, align 4, !tbaa !9
  %160 = zext i32 %159 to i64
  %161 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %158, i64 noundef %160, i32 noundef %161)
  %162 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %162, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %163 = load i32, ptr %14, align 4, !tbaa !9
  %164 = load i32, ptr %13, align 4, !tbaa !9
  %165 = add i32 %164, %163
  store i32 %165, ptr %13, align 4, !tbaa !9
  %166 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %166, ptr %11, align 4, !tbaa !9
  %167 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %167, ptr %14, align 4, !tbaa !9
  %168 = load i32, ptr %13, align 4, !tbaa !9
  %169 = load i32, ptr %14, align 4, !tbaa !9
  %170 = icmp ugt i32 %168, %169
  %171 = zext i1 %170 to i32
  store i32 %171, ptr %13, align 4, !tbaa !9
  %172 = load i32, ptr %13, align 4, !tbaa !9
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %174, label %192

174:                                              ; preds = %141
  store i32 0, ptr %13, align 4, !tbaa !9
  %175 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %175, ptr %8, align 4, !tbaa !9
  store i32 117789, ptr %14, align 4, !tbaa !9
  %176 = load i32, ptr %14, align 4, !tbaa !9
  %177 = load i32, ptr %13, align 4, !tbaa !9
  %178 = add i32 %177, %176
  store i32 %178, ptr %13, align 4, !tbaa !9
  %179 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %179, ptr %14, align 4, !tbaa !9
  store i32 79572, ptr %15, align 4, !tbaa !9
  %180 = load i32, ptr %15, align 4, !tbaa !9
  %181 = load i32, ptr %14, align 4, !tbaa !9
  %182 = add i32 %181, %180
  store i32 %182, ptr %14, align 4, !tbaa !9
  store i32 74, ptr %15, align 4, !tbaa !9
  %183 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %183, ptr %16, align 4, !tbaa !9
  store i32 88407, ptr %17, align 4, !tbaa !9
  %184 = load i32, ptr %17, align 4, !tbaa !9
  %185 = load i32, ptr %16, align 4, !tbaa !9
  %186 = add i32 %185, %184
  store i32 %186, ptr %16, align 4, !tbaa !9
  %187 = load ptr, ptr %7, align 8, !tbaa !5
  %188 = load i32, ptr %13, align 4, !tbaa !9
  %189 = load i32, ptr %14, align 4, !tbaa !9
  %190 = load i32, ptr %15, align 4, !tbaa !9
  %191 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %187, i32 noundef %188, i32 noundef %189, i32 noundef %190, i32 noundef %191)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

192:                                              ; preds = %141
  %193 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %193, ptr %13, align 4, !tbaa !9
  %194 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %194, ptr %14, align 4, !tbaa !9
  %195 = load ptr, ptr %7, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.w2c_hermes, ptr %195, i32 0, i32 6
  %197 = load i32, ptr %13, align 4, !tbaa !9
  %198 = zext i32 %197 to i64
  %199 = add i64 %198, 92
  %200 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %196, i64 noundef %199, i32 noundef %200)
  %201 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %201, ptr %13, align 4, !tbaa !9
  %202 = load i32, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  ret i32 %202
}

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_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: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #1

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

; 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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @w2c_hermes_hermes0x3A0x3AVariable0x3A0x3AVariable0x28hermes0x3A0x3AValueKind0x2C0x20hermes0x3A0x3AScopeDesc0x2A0x2C0x20hermes0x3A0x3AJavaScriptDeclKind0x2C0x20hermes0x3A0x3AIdentifier0x29(ptr noundef %0, i32 noundef returned %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #3 {
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = zext i32 %1 to i64
  %9 = add nuw nsw i64 %8, 2
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %9, i32 noundef 459775)
  %10 = add nuw nsw i64 %8, 36
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %10, i32 noundef %3)
  %11 = add nuw nsw i64 %8, 32
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %11, i32 noundef %5)
  %12 = add nuw nsw i64 %8, 28
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %12, i32 noundef %4)
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %8, i32 noundef %2)
  %13 = add nuw nsw i64 %8, 12
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %13, i64 noundef 8589934592)
  %14 = add i32 %1, 20
  %15 = add nuw nsw i64 %8, 8
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %15, i32 noundef %14)
  %.not = icmp eq i32 %4, 0
  %16 = zext i1 %.not to i32
  %17 = add nuw nsw i64 %8, 40
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %17, i32 noundef %16)
  %18 = add i32 %3, 88
  %19 = zext i32 %3 to i64
  %20 = add nuw nsw i64 %19, 92
  %21 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %20)
  %22 = add nuw nsw i64 %19, 96
  %23 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %22)
  %.not117 = icmp ult i32 %21, %23
  br i1 %.not117, label %28, label %24

24:                                               ; preds = %6
  %25 = add i32 %3, 100
  tail call void @w2c_hermes_llvh0x3A0x3ASmallVectorBase0x3A0x3Agrow_pod0x28void0x2A0x2C0x20unsigned0x20long0x2C0x20unsigned0x20long0x29(ptr noundef %0, i32 noundef %18, i32 noundef %25, i32 noundef 0, i32 noundef 4) #4
  %26 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %20)
  %27 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %22)
  br label %28

28:                                               ; preds = %24, %6
  %.0113 = phi i32 [ %26, %24 ], [ %21, %6 ]
  %.0 = phi i32 [ %27, %24 ], [ %23, %6 ]
  %29 = zext i32 %18 to i64
  %30 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %29)
  %31 = shl i32 %.0113, 2
  %32 = add i32 %30, %31
  %33 = zext i32 %32 to i64
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %33, i32 noundef %1)
  %34 = add i32 %.0113, 1
  %35 = icmp ugt i32 %34, %.0
  br i1 %35, label %36, label %37

36:                                               ; preds = %28
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 117789, i32 noundef 79572, i32 noundef 74, i32 noundef 88407) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

37:                                               ; preds = %28
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %20, i32 noundef %34)
  ret i32 %1
}

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,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,TailCallElimPass