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

; 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 void @i32_store(ptr noundef, i64 noundef, i32 noundef) #1

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

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

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef, i32 noundef, i32 noundef) #2

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

48:                                               ; preds = %5
  %49 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %49, ptr %16, align 8, !tbaa !11
  %50 = load i64, ptr %16, align 8, !tbaa !11
  %51 = trunc i64 %50 to i32
  store i32 %51, ptr %12, align 4, !tbaa !9
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.w2c_hermes, ptr %52, i32 0, i32 6
  %54 = load i32, ptr %12, align 4, !tbaa !9
  %55 = zext i32 %54 to i64
  %56 = add i64 %55, 3
  %57 = call i32 @i32_load8_u(ptr noundef %53, i64 noundef %56)
  store i32 %57, ptr %12, align 4, !tbaa !9
  store i32 24, ptr %13, align 4, !tbaa !9
  %58 = load i32, ptr %13, align 4, !tbaa !9
  %59 = and i32 %58, 31
  %60 = load i32, ptr %12, align 4, !tbaa !9
  %61 = shl i32 %60, %59
  store i32 %61, ptr %12, align 4, !tbaa !9
  store i32 822083584, ptr %13, align 4, !tbaa !9
  %62 = load i32, ptr %12, align 4, !tbaa !9
  %63 = load i32, ptr %13, align 4, !tbaa !9
  %64 = icmp eq i32 %62, %63
  %65 = zext i1 %64 to i32
  store i32 %65, ptr %12, align 4, !tbaa !9
  %66 = load i32, ptr %12, align 4, !tbaa !9
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %69

68:                                               ; preds = %48
  br label %78

69:                                               ; preds = %48
  br label %70

70:                                               ; preds = %69, %5
  store i32 67200, ptr %12, align 4, !tbaa !9
  %71 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %71, ptr %10, align 4, !tbaa !9
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.w2c_hermes, ptr %72, i32 0, i32 6
  %74 = load i32, ptr %12, align 4, !tbaa !9
  %75 = zext i32 %74 to i64
  %76 = call i64 @i64_load(ptr noundef %73, i64 noundef %75)
  store i64 %76, ptr %16, align 8, !tbaa !11
  %77 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %77, ptr %11, align 8, !tbaa !11
  br label %78

78:                                               ; preds = %70, %68
  %79 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %79, ptr %16, align 8, !tbaa !11
  store i64 4294967295, ptr %17, align 8, !tbaa !11
  %80 = load i64, ptr %17, align 8, !tbaa !11
  %81 = load i64, ptr %16, align 8, !tbaa !11
  %82 = and i64 %81, %80
  store i64 %82, ptr %16, align 8, !tbaa !11
  store i64 0, ptr %17, align 8, !tbaa !11
  %83 = load i64, ptr %16, align 8, !tbaa !11
  %84 = load i64, ptr %17, align 8, !tbaa !11
  %85 = icmp ne i64 %83, %84
  %86 = zext i1 %85 to i32
  store i32 %86, ptr %12, align 4, !tbaa !9
  %87 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %87, ptr %17, align 8, !tbaa !11
  store i64 -844424930131968, ptr %18, align 8, !tbaa !11
  %88 = load i64, ptr %17, align 8, !tbaa !11
  %89 = load i64, ptr %18, align 8, !tbaa !11
  %90 = icmp uge i64 %88, %89
  %91 = zext i1 %90 to i32
  store i32 %91, ptr %13, align 4, !tbaa !9
  %92 = load i32, ptr %13, align 4, !tbaa !9
  %93 = load i32, ptr %12, align 4, !tbaa !9
  %94 = and i32 %93, %92
  store i32 %94, ptr %12, align 4, !tbaa !9
  %95 = load i32, ptr %12, align 4, !tbaa !9
  %96 = icmp ne i32 %95, 0
  %97 = xor i1 %96, true
  %98 = zext i1 %97 to i32
  store i32 %98, ptr %12, align 4, !tbaa !9
  %99 = load i32, ptr %12, align 4, !tbaa !9
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %145

101:                                              ; preds = %78
  %102 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %102, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.w2c_hermes, ptr %103, i32 0, i32 6
  %105 = load i32, ptr %12, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = add i64 %106, 40
  %108 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %104, i64 noundef %107, i32 noundef %108)
  %109 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %109, ptr %12, align 4, !tbaa !9
  store i64 253403070465, ptr %17, align 8, !tbaa !11
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.w2c_hermes, ptr %110, i32 0, i32 6
  %112 = load i32, ptr %12, align 4, !tbaa !9
  %113 = zext i32 %112 to i64
  %114 = add i64 %113, 32
  %115 = load i64, ptr %17, align 8, !tbaa !11
  call void @i64_store(ptr noundef %111, i64 noundef %114, i64 noundef %115)
  %116 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %116, ptr %12, align 4, !tbaa !9
  store i32 3, ptr %13, align 4, !tbaa !9
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.w2c_hermes, ptr %117, i32 0, i32 6
  %119 = load i32, ptr %12, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = add i64 %120, 16
  %122 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %118, i64 noundef %121, i32 noundef %122)
  %123 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %123, ptr %12, align 4, !tbaa !9
  store i32 18588, ptr %13, align 4, !tbaa !9
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.w2c_hermes, ptr %124, i32 0, i32 6
  %126 = load i32, ptr %12, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = add i64 %127, 8
  %129 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %125, i64 noundef %128, i32 noundef %129)
  %130 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %130, ptr %12, align 4, !tbaa !9
  %131 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %131, ptr %13, align 4, !tbaa !9
  %132 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %132, ptr %14, align 4, !tbaa !9
  store i32 8, ptr %15, align 4, !tbaa !9
  %133 = load i32, ptr %15, align 4, !tbaa !9
  %134 = load i32, ptr %14, align 4, !tbaa !9
  %135 = add i32 %134, %133
  store i32 %135, ptr %14, align 4, !tbaa !9
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = load i32, ptr %13, align 4, !tbaa !9
  %138 = load i32, ptr %14, align 4, !tbaa !9
  %139 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef %136, i32 noundef %137, i32 noundef %138)
  store i32 %139, ptr %13, align 4, !tbaa !9
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.w2c_hermes, ptr %140, i32 0, i32 6
  %142 = load i32, ptr %12, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %141, i64 noundef %143, i32 noundef %144)
  br label %188

145:                                              ; preds = %78
  %146 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %146, ptr %12, align 4, !tbaa !9
  store i32 8, ptr %13, align 4, !tbaa !9
  %147 = load i32, ptr %13, align 4, !tbaa !9
  %148 = load i32, ptr %12, align 4, !tbaa !9
  %149 = add i32 %148, %147
  store i32 %149, ptr %12, align 4, !tbaa !9
  %150 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %150, ptr %13, align 4, !tbaa !9
  %151 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %151, ptr %14, align 4, !tbaa !9
  %152 = load ptr, ptr %6, align 8, !tbaa !5
  %153 = load i32, ptr %12, align 4, !tbaa !9
  %154 = load i32, ptr %13, align 4, !tbaa !9
  %155 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSMapIteratorImpl0x3C0x28hermes0x3A0x3Avm0x3A0x3ACellKind0x29500x3E0x3A0x3AnextElement0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSMapIteratorImpl0x3C0x28hermes0x3A0x3Avm0x3A0x3ACellKind0x29500x3E0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x29(ptr noundef %152, i32 noundef %153, i32 noundef %154, i32 noundef %155)
  %156 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %156, ptr %12, align 4, !tbaa !9
  %157 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %157, ptr %13, align 4, !tbaa !9
  %158 = load ptr, ptr %6, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.w2c_hermes, ptr %158, i32 0, i32 6
  %160 = load i32, ptr %13, align 4, !tbaa !9
  %161 = zext i32 %160 to i64
  %162 = add i64 %161, 8
  %163 = call i32 @i32_load(ptr noundef %159, i64 noundef %162)
  store i32 %163, ptr %13, align 4, !tbaa !9
  %164 = load i32, ptr %13, align 4, !tbaa !9
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %166, label %181

166:                                              ; preds = %145
  %167 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %167, ptr %13, align 4, !tbaa !9
  %168 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %168, ptr %14, align 4, !tbaa !9
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.w2c_hermes, ptr %169, i32 0, i32 6
  %171 = load i32, ptr %14, align 4, !tbaa !9
  %172 = zext i32 %171 to i64
  %173 = add i64 %172, 16
  %174 = call i64 @i64_load(ptr noundef %170, i64 noundef %173)
  store i64 %174, ptr %18, align 8, !tbaa !11
  %175 = load ptr, ptr %6, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.w2c_hermes, ptr %175, i32 0, i32 6
  %177 = load i32, ptr %13, align 4, !tbaa !9
  %178 = zext i32 %177 to i64
  %179 = add i64 %178, 8
  %180 = load i64, ptr %18, align 8, !tbaa !11
  call void @i64_store(ptr noundef %176, i64 noundef %179, i64 noundef %180)
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %182

181:                                              ; preds = %145
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %182

182:                                              ; preds = %181, %166
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.w2c_hermes, ptr %183, i32 0, i32 6
  %185 = load i32, ptr %12, align 4, !tbaa !9
  %186 = zext i32 %185 to i64
  %187 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %184, i64 noundef %186, i32 noundef %187)
  br label %188

188:                                              ; preds = %182, %101
  %189 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %189, ptr %12, align 4, !tbaa !9
  store i32 48, ptr %13, align 4, !tbaa !9
  %190 = load i32, ptr %13, align 4, !tbaa !9
  %191 = load i32, ptr %12, align 4, !tbaa !9
  %192 = add i32 %191, %190
  store i32 %192, ptr %12, align 4, !tbaa !9
  %193 = load i32, ptr %12, align 4, !tbaa !9
  %194 = load ptr, ptr %6, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.w2c_hermes, ptr %194, i32 0, i32 3
  store i32 %193, ptr %195, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  ret void
}

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSMapIteratorImpl0x3C0x28hermes0x3A0x3Avm0x3A0x3ACellKind0x29500x3E0x3A0x3AnextElement0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSMapIteratorImpl0x3C0x28hermes0x3A0x3Avm0x3A0x3ACellKind0x29500x3E0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2

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 = { "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 }

!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}
!13 = !{!14, !10, i64 24}
!14 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !15, i64 40, !17, i64 80}
!15 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !16, i64 32}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}


; 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 void @i32_store(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #0

; 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 @i64_store(ptr noundef, i64 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 i32 @i32_load8_u(ptr noundef, i64 noundef) local_unnamed_addr #0

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AsetIteratorPrototypeNext0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #2 {
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = add i32 %7, -48
  store i32 %8, ptr %6, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = zext i32 %4 to i64
  %11 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %10)
  %12 = zext i32 %11 to i64
  %13 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %12)
  %14 = icmp ugt i64 %13, -844424930131969
  br i1 %14, label %15, label %20

15:                                               ; preds = %5
  %16 = and i64 %13, 4294967295
  %17 = add nuw nsw i64 %16, 3
  %18 = tail call i32 @i32_load8_u(ptr noundef nonnull %9, i64 noundef %17)
  %.mask = and i32 %18, 255
  %19 = icmp eq i32 %.mask, 49
  br i1 %19, label %23, label %20

20:                                               ; preds = %15, %5
  %21 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef 67200)
  %.pre = and i64 %21, 4294967295
  %22 = icmp ult i64 %21, -844424930131968
  br label %23

23:                                               ; preds = %15, %20
  %.pre-phi = phi i64 [ %16, %15 ], [ %.pre, %20 ]
  %.097 = phi i32 [ %11, %15 ], [ 67200, %20 ]
  %.096 = phi i1 [ false, %15 ], [ %22, %20 ]
  %24 = icmp eq i64 %.pre-phi, 0
  %.not100 = or i1 %.096, %24
  br i1 %.not100, label %25, label %34

25:                                               ; preds = %23
  %26 = zext i32 %8 to i64
  %27 = add nuw nsw i64 %26, 40
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %27, i32 noundef 0)
  %28 = add nuw nsw i64 %26, 32
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %28, i64 noundef 253403070465)
  %29 = add nuw nsw i64 %26, 16
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %29, i32 noundef 3)
  %30 = add nuw nsw i64 %26, 8
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %30, i32 noundef 18588)
  %31 = add i32 %7, -40
  %32 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntime0x3A0x3AraiseTypeError0x28hermes0x3A0x3Avm0x3A0x3ATwineChar160x20const0x260x29(ptr noundef nonnull %0, i32 noundef %3, i32 noundef %31) #3
  %33 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %33, i32 noundef %32)
  br label %45

34:                                               ; preds = %23
  %35 = add i32 %7, -40
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSMapIteratorImpl0x3C0x28hermes0x3A0x3Avm0x3A0x3ACellKind0x29500x3E0x3A0x3AnextElement0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSMapIteratorImpl0x3C0x28hermes0x3A0x3Avm0x3A0x3ACellKind0x29500x3E0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x29(ptr noundef nonnull %0, i32 noundef %35, i32 noundef %.097, i32 noundef %3) #3
  %36 = zext i32 %8 to i64
  %37 = add nuw nsw i64 %36, 8
  %38 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %37)
  %.not = icmp eq i32 %38, 0
  br i1 %.not, label %._crit_edge, label %39

._crit_edge:                                      ; preds = %34
  %.pre101 = zext i32 %1 to i64
  br label %44

39:                                               ; preds = %34
  %40 = add nuw nsw i64 %36, 16
  %41 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %40)
  %42 = zext i32 %1 to i64
  %43 = add nuw nsw i64 %42, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %43, i64 noundef %41)
  br label %44

44:                                               ; preds = %._crit_edge, %39
  %.pre-phi102 = phi i64 [ %.pre101, %._crit_edge ], [ %42, %39 ]
  %.0 = phi i32 [ 0, %._crit_edge ], [ 1, %39 ]
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %.pre-phi102, i32 noundef %.0)
  br label %45

45:                                               ; preds = %44, %25
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret void
}

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSMapIteratorImpl0x3C0x28hermes0x3A0x3Avm0x3A0x3ACellKind0x29500x3E0x3A0x3AnextElement0x28hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSMapIteratorImpl0x3C0x28hermes0x3A0x3Avm0x3A0x3ACellKind0x29500x3E0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #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 = { "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 = { 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}


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