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

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

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

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

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

; 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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x3A0x3AallProfilers0x280x29(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x3A0x3AglobalMutex0x280x29(ptr noundef) #3

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x3A0x3A0x7ECodeCoverageProfiler0x280x29(ptr noundef %0, i32 noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.w2c_hermes, ptr %12, i32 0, i32 3
  %14 = load i32, ptr %13, align 8, !tbaa !11
  store i32 %14, ptr %9, align 4, !tbaa !9
  store i32 16, ptr %10, align 4, !tbaa !9
  %15 = load i32, ptr %10, align 4, !tbaa !9
  %16 = load i32, ptr %9, align 4, !tbaa !9
  %17 = sub i32 %16, %15
  store i32 %17, ptr %9, align 4, !tbaa !9
  %18 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %18, ptr %7, align 4, !tbaa !9
  %19 = load i32, ptr %9, align 4, !tbaa !9
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.w2c_hermes, ptr %20, i32 0, i32 3
  store i32 %19, ptr %21, align 8, !tbaa !11
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x3A0x3AglobalMutex0x280x29(ptr noundef %22)
  store i32 %23, ptr %9, align 4, !tbaa !9
  %24 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %24, ptr %5, align 4, !tbaa !9
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Amutex0x3A0x3Alock0x280x29(ptr noundef %25, i32 noundef %26)
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x3A0x3AallProfilers0x280x29(ptr noundef %27)
  store i32 %28, ptr %9, align 4, !tbaa !9
  %29 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %29, ptr %6, align 4, !tbaa !9
  %30 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %30, ptr %9, align 4, !tbaa !9
  %31 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %31, ptr %10, align 4, !tbaa !9
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.w2c_hermes, ptr %32, i32 0, i32 6
  %34 = load i32, ptr %9, align 4, !tbaa !9
  %35 = zext i32 %34 to i64
  %36 = add i64 %35, 12
  %37 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %33, i64 noundef %36, i32 noundef %37)
  %38 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %38, ptr %9, align 4, !tbaa !9
  %39 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %39, ptr %10, align 4, !tbaa !9
  store i32 12, ptr %11, align 4, !tbaa !9
  %40 = load i32, ptr %11, align 4, !tbaa !9
  %41 = load i32, ptr %10, align 4, !tbaa !9
  %42 = add i32 %41, %40
  store i32 %42, ptr %10, align 4, !tbaa !9
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = load i32, ptr %9, align 4, !tbaa !9
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = call i32 @w2c_hermes_unsigned0x20long0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fhash_table0x3Chermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Ahash0x3Chermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aequal_to0x3Chermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Chermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x3E0x3E0x3A0x3A_0x5Ferase_unique0x3Chermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x3E0x28hermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x20const0x260x29(ptr noundef %43, i32 noundef %44, i32 noundef %45)
  store i32 %46, ptr %9, align 4, !tbaa !9
  %47 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %47, ptr %9, align 4, !tbaa !9
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Amutex0x3A0x3Aunlock0x280x29(ptr noundef %48, i32 noundef %49)
  %50 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %50, ptr %9, align 4, !tbaa !9
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.w2c_hermes, ptr %51, i32 0, i32 6
  %53 = load i32, ptr %9, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = add i64 %54, 44
  %56 = call i32 @i32_load(ptr noundef %52, i64 noundef %55)
  store i32 %56, ptr %9, align 4, !tbaa !9
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %57, i32 noundef %58)
  %59 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %59, ptr %9, align 4, !tbaa !9
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.w2c_hermes, ptr %60, i32 0, i32 6
  %62 = load i32, ptr %9, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = add i64 %63, 40
  %65 = call i32 @i32_load(ptr noundef %61, i64 noundef %64)
  store i32 %65, ptr %9, align 4, !tbaa !9
  %66 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %66, ptr %6, align 4, !tbaa !9
  %67 = load i32, ptr %9, align 4, !tbaa !9
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %69, label %139

69:                                               ; preds = %2
  %70 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %70, ptr %9, align 4, !tbaa !9
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.w2c_hermes, ptr %71, i32 0, i32 6
  %73 = load i32, ptr %9, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = add i64 %74, 28
  %76 = call i32 @i32_load(ptr noundef %72, i64 noundef %75)
  store i32 %76, ptr %9, align 4, !tbaa !9
  %77 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %77, ptr %5, align 4, !tbaa !9
  %78 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %78, ptr %10, align 4, !tbaa !9
  store i32 4, ptr %11, align 4, !tbaa !9
  %79 = load i32, ptr %11, align 4, !tbaa !9
  %80 = and i32 %79, 31
  %81 = load i32, ptr %10, align 4, !tbaa !9
  %82 = shl i32 %81, %80
  store i32 %82, ptr %10, align 4, !tbaa !9
  %83 = load i32, ptr %10, align 4, !tbaa !9
  %84 = load i32, ptr %9, align 4, !tbaa !9
  %85 = add i32 %84, %83
  store i32 %85, ptr %9, align 4, !tbaa !9
  %86 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %86, ptr %6, align 4, !tbaa !9
  br label %87

87:                                               ; preds = %137, %69
  %88 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %88, ptr %9, align 4, !tbaa !9
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.w2c_hermes, ptr %89, i32 0, i32 6
  %91 = load i32, ptr %9, align 4, !tbaa !9
  %92 = zext i32 %91 to i64
  %93 = call i32 @i32_load(ptr noundef %90, i64 noundef %92)
  store i32 %93, ptr %9, align 4, !tbaa !9
  store i32 8, ptr %10, align 4, !tbaa !9
  %94 = load i32, ptr %10, align 4, !tbaa !9
  %95 = load i32, ptr %9, align 4, !tbaa !9
  %96 = add i32 %95, %94
  store i32 %96, ptr %9, align 4, !tbaa !9
  %97 = load i32, ptr %9, align 4, !tbaa !9
  switch i32 %97, label %103 [
    i32 0, label %98
    i32 1, label %99
    i32 2, label %100
    i32 3, label %101
    i32 4, label %102
  ]

98:                                               ; preds = %87
  br label %124

99:                                               ; preds = %87
  br label %104

100:                                              ; preds = %87
  br label %104

101:                                              ; preds = %87
  br label %104

102:                                              ; preds = %87
  br label %124

103:                                              ; preds = %87
  br label %104

104:                                              ; preds = %103, %101, %100, %99
  %105 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %105, ptr %9, align 4, !tbaa !9
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.w2c_hermes, ptr %106, i32 0, i32 6
  %108 = load i32, ptr %9, 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 %9, align 4, !tbaa !9
  %112 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %112, ptr %8, align 4, !tbaa !9
  %113 = load i32, ptr %9, align 4, !tbaa !9
  %114 = icmp ne i32 %113, 0
  %115 = xor i1 %114, true
  %116 = zext i1 %115 to i32
  store i32 %116, ptr %9, align 4, !tbaa !9
  %117 = load i32, ptr %9, align 4, !tbaa !9
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %120

119:                                              ; preds = %104
  br label %124

120:                                              ; preds = %104
  %121 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %121, ptr %9, align 4, !tbaa !9
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %122, i32 noundef %123)
  br label %124

124:                                              ; preds = %120, %119, %102, %98
  %125 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %125, ptr %9, align 4, !tbaa !9
  store i32 16, ptr %10, align 4, !tbaa !9
  %126 = load i32, ptr %10, align 4, !tbaa !9
  %127 = load i32, ptr %9, align 4, !tbaa !9
  %128 = add i32 %127, %126
  store i32 %128, ptr %9, align 4, !tbaa !9
  %129 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %129, ptr %5, align 4, !tbaa !9
  %130 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %130, ptr %10, align 4, !tbaa !9
  %131 = load i32, ptr %9, align 4, !tbaa !9
  %132 = load i32, ptr %10, align 4, !tbaa !9
  %133 = icmp ne i32 %131, %132
  %134 = zext i1 %133 to i32
  store i32 %134, ptr %9, align 4, !tbaa !9
  %135 = load i32, ptr %9, align 4, !tbaa !9
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %137, label %138

137:                                              ; preds = %124
  br label %87

138:                                              ; preds = %124
  br label %139

139:                                              ; preds = %138, %2
  %140 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %140, ptr %9, align 4, !tbaa !9
  %141 = load ptr, ptr %3, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.w2c_hermes, ptr %141, i32 0, i32 6
  %143 = load i32, ptr %9, align 4, !tbaa !9
  %144 = zext i32 %143 to i64
  %145 = add i64 %144, 28
  %146 = call i32 @i32_load(ptr noundef %142, i64 noundef %145)
  store i32 %146, ptr %9, align 4, !tbaa !9
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %147, i32 noundef %148)
  %149 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %149, ptr %9, align 4, !tbaa !9
  store i32 4, ptr %10, align 4, !tbaa !9
  %150 = load i32, ptr %10, align 4, !tbaa !9
  %151 = load i32, ptr %9, align 4, !tbaa !9
  %152 = add i32 %151, %150
  store i32 %152, ptr %9, align 4, !tbaa !9
  %153 = load ptr, ptr %3, align 8, !tbaa !5
  %154 = load i32, ptr %9, align 4, !tbaa !9
  %155 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Amutex0x3A0x3A0x7Emutex0x280x29(ptr noundef %153, i32 noundef %154)
  store i32 %155, ptr %9, align 4, !tbaa !9
  %156 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %156, ptr %9, align 4, !tbaa !9
  store i32 16, ptr %10, align 4, !tbaa !9
  %157 = load i32, ptr %10, align 4, !tbaa !9
  %158 = load i32, ptr %9, align 4, !tbaa !9
  %159 = add i32 %158, %157
  store i32 %159, ptr %9, align 4, !tbaa !9
  %160 = load i32, ptr %9, align 4, !tbaa !9
  %161 = load ptr, ptr %3, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.w2c_hermes, ptr %161, i32 0, i32 3
  store i32 %160, ptr %162, align 8, !tbaa !11
  %163 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %163, ptr %9, align 4, !tbaa !9
  %164 = load i32, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret i32 %164
}

declare i32 @w2c_hermes_unsigned0x20long0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fhash_table0x3Chermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Ahash0x3Chermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aequal_to0x3Chermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Chermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x3E0x3E0x3A0x3A_0x5Ferase_unique0x3Chermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x3E0x28hermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x20const0x260x29(ptr 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, !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}


; 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

declare void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

declare void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Amutex0x3A0x3Alock0x280x29(ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Amutex0x3A0x3Aunlock0x280x29(ptr noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x3A0x3A0x7ECodeCoverageProfiler0x280x29(ptr noundef %0, i32 noundef returned %1) local_unnamed_addr #2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 24
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = add i32 %4, -16
  store i32 %5, ptr %3, align 8, !tbaa !5
  %6 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x3A0x3AglobalMutex0x280x29(ptr noundef %0)
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Amutex0x3A0x3Alock0x280x29(ptr noundef %0, i32 noundef %6) #3
  %7 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x3A0x3AallProfilers0x280x29(ptr noundef %0)
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = zext i32 %5 to i64
  %10 = add nuw nsw i64 %9, 12
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %10, i32 noundef %1)
  %11 = add i32 %4, -4
  %12 = tail call i32 @w2c_hermes_unsigned0x20long0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fhash_table0x3Chermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Ahash0x3Chermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aequal_to0x3Chermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Chermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x3E0x3E0x3A0x3A_0x5Ferase_unique0x3Chermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x3E0x28hermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x20const0x260x29(ptr noundef %0, i32 noundef %7, i32 noundef %11) #3
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Amutex0x3A0x3Aunlock0x280x29(ptr noundef %0, i32 noundef %6) #3
  %13 = zext i32 %1 to i64
  %14 = add nuw nsw i64 %13, 44
  %15 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %14)
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %0, i32 noundef %15) #3
  %16 = add nuw nsw i64 %13, 40
  %17 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %16)
  %.not = icmp eq i32 %17, 0
  %.pre = add nuw nsw i64 %13, 28
  br i1 %.not, label %.loopexit, label %18

18:                                               ; preds = %2
  %19 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %.pre)
  %20 = shl i32 %17, 4
  %21 = add i32 %19, %20
  br label %22

22:                                               ; preds = %29, %18
  %.0 = phi i32 [ %19, %18 ], [ %30, %29 ]
  %23 = zext i32 %.0 to i64
  %24 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %23)
  switch i32 %24, label %25 [
    i32 -8, label %29
    i32 -4, label %29
  ]

25:                                               ; preds = %22
  %26 = add nuw nsw i64 %23, 4
  %27 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %26)
  %.not88 = icmp eq i32 %27, 0
  br i1 %.not88, label %29, label %28

28:                                               ; preds = %25
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %0, i32 noundef %27) #3
  br label %29

29:                                               ; preds = %22, %25, %22, %28
  %30 = add i32 %.0, 16
  %.not89 = icmp eq i32 %30, %21
  br i1 %.not89, label %.loopexit, label %22

.loopexit:                                        ; preds = %29, %2
  %31 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %.pre)
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %0, i32 noundef %31) #3
  %32 = add i32 %1, 4
  %33 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Amutex0x3A0x3A0x7Emutex0x280x29(ptr noundef %0, i32 noundef %32) #3
  store i32 %4, ptr %3, align 8, !tbaa !5
  ret i32 %1
}

declare i32 @w2c_hermes_unsigned0x20long0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fhash_table0x3Chermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Ahash0x3Chermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aequal_to0x3Chermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Chermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x3E0x3E0x3A0x3A_0x5Ferase_unique0x3Chermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x3E0x28hermes0x3A0x3Avm0x3A0x3ACodeCoverageProfiler0x2A0x20const0x260x29(ptr 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: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass