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

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

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

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

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

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

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

53:                                               ; preds = %10
  %54 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %54, ptr %24, align 4, !tbaa !9
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.w2c_hermes, ptr %55, i32 0, i32 6
  %57 = load i32, ptr %24, align 4, !tbaa !9
  %58 = zext i32 %57 to i64
  %59 = call i32 @i32_load(ptr noundef %56, i64 noundef %58)
  store i32 %59, ptr %24, align 4, !tbaa !9
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.w2c_hermes, ptr %60, i32 0, i32 6
  %62 = load i32, ptr %24, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = add i64 %63, 28
  %65 = call i32 @i32_load(ptr noundef %61, i64 noundef %64)
  store i32 %65, ptr %24, align 4, !tbaa !9
  %66 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %66, ptr %14, align 4, !tbaa !9
  %67 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %67, ptr %24, align 4, !tbaa !9
  store i32 0, ptr %25, align 4, !tbaa !9
  %68 = load ptr, ptr %11, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.w2c_hermes, ptr %68, i32 0, i32 6
  %70 = load i32, ptr %24, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = add i64 %71, 28
  %73 = load i32, ptr %25, align 4, !tbaa !9
  call void @i32_store(ptr noundef %69, i64 noundef %72, i32 noundef %73)
  %74 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %74, ptr %24, align 4, !tbaa !9
  store i32 213048, ptr %25, align 4, !tbaa !9
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.w2c_hermes, ptr %75, i32 0, i32 6
  %77 = load i32, ptr %24, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = add i64 %78, 24
  %80 = load i32, ptr %25, align 4, !tbaa !9
  call void @i32_store(ptr noundef %76, i64 noundef %79, i32 noundef %80)
  %81 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %81, ptr %24, align 4, !tbaa !9
  %82 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %82, ptr %25, align 4, !tbaa !9
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.w2c_hermes, ptr %83, i32 0, i32 6
  %85 = load i32, ptr %25, align 4, !tbaa !9
  %86 = zext i32 %85 to i64
  %87 = add i64 %86, 24
  %88 = call i64 @i64_load(ptr noundef %84, i64 noundef %87)
  store i64 %88, ptr %35, align 8, !tbaa !11
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.w2c_hermes, ptr %89, i32 0, i32 6
  %91 = load i32, ptr %24, align 4, !tbaa !9
  %92 = zext i32 %91 to i64
  %93 = add i64 %92, 16
  %94 = load i64, ptr %35, align 8, !tbaa !11
  call void @i64_store(ptr noundef %90, i64 noundef %93, i64 noundef %94)
  %95 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %95, ptr %24, align 4, !tbaa !9
  store i32 36, ptr %25, align 4, !tbaa !9
  %96 = load i32, ptr %25, align 4, !tbaa !9
  %97 = load i32, ptr %24, align 4, !tbaa !9
  %98 = add i32 %97, %96
  store i32 %98, ptr %24, align 4, !tbaa !9
  %99 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %99, ptr %25, align 4, !tbaa !9
  store i32 16, ptr %26, align 4, !tbaa !9
  %100 = load i32, ptr %26, align 4, !tbaa !9
  %101 = load i32, ptr %25, align 4, !tbaa !9
  %102 = add i32 %101, %100
  store i32 %102, ptr %25, align 4, !tbaa !9
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = load i32, ptr %24, align 4, !tbaa !9
  %105 = load i32, ptr %25, align 4, !tbaa !9
  %106 = call i32 @w2c_hermes_hermes0x3A0x3AStringTable0x3A0x3AgetString0x28llvh0x3A0x3AStringRef0x29(ptr noundef %103, i32 noundef %104, i32 noundef %105)
  store i32 %106, ptr %24, align 4, !tbaa !9
  %107 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %107, ptr %14, align 4, !tbaa !9
  br label %108

108:                                              ; preds = %53, %10
  store i32 176, ptr %24, align 4, !tbaa !9
  %109 = load ptr, ptr %11, align 8, !tbaa !5
  %110 = load i32, ptr %24, align 4, !tbaa !9
  %111 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %109, i32 noundef %110)
  store i32 %111, ptr %24, align 4, !tbaa !9
  %112 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %112, ptr %22, align 4, !tbaa !9
  %113 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %113, ptr %24, align 4, !tbaa !9
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.w2c_hermes, ptr %114, i32 0, i32 6
  %116 = load i32, ptr %24, align 4, !tbaa !9
  %117 = zext i32 %116 to i64
  %118 = call i32 @i32_load(ptr noundef %115, i64 noundef %117)
  store i32 %118, ptr %24, align 4, !tbaa !9
  %119 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %119, ptr %12, align 4, !tbaa !9
  %120 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %120, ptr %24, align 4, !tbaa !9
  %121 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %121, ptr %25, align 4, !tbaa !9
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.w2c_hermes, ptr %122, i32 0, i32 6
  %124 = load i32, ptr %25, align 4, !tbaa !9
  %125 = zext i32 %124 to i64
  %126 = call i64 @i64_load(ptr noundef %123, i64 noundef %125)
  store i64 %126, ptr %35, align 8, !tbaa !11
  %127 = load i64, ptr %35, align 8, !tbaa !11
  store i64 %127, ptr %23, align 8, !tbaa !11
  %128 = load ptr, ptr %11, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.w2c_hermes, ptr %128, i32 0, i32 6
  %130 = load i32, ptr %24, align 4, !tbaa !9
  %131 = zext i32 %130 to i64
  %132 = add i64 %131, 8
  %133 = load i64, ptr %35, align 8, !tbaa !11
  call void @i64_store(ptr noundef %129, i64 noundef %132, i64 noundef %133)
  %134 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %134, ptr %24, align 4, !tbaa !9
  %135 = load i64, ptr %23, align 8, !tbaa !11
  store i64 %135, ptr %35, align 8, !tbaa !11
  %136 = load ptr, ptr %11, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.w2c_hermes, ptr %136, i32 0, i32 6
  %138 = load i32, ptr %24, align 4, !tbaa !9
  %139 = zext i32 %138 to i64
  %140 = add i64 %139, 24
  %141 = load i64, ptr %35, align 8, !tbaa !11
  call void @i64_store(ptr noundef %137, i64 noundef %140, i64 noundef %141)
  %142 = load i32, ptr %22, align 4, !tbaa !9
  store i32 %142, ptr %24, align 4, !tbaa !9
  store i32 128, ptr %25, align 4, !tbaa !9
  %143 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %143, ptr %26, align 4, !tbaa !9
  %144 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %144, ptr %27, align 4, !tbaa !9
  %145 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %145, ptr %28, align 4, !tbaa !9
  %146 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %146, ptr %29, align 4, !tbaa !9
  %147 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %147, ptr %30, align 4, !tbaa !9
  %148 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %148, ptr %31, align 4, !tbaa !9
  %149 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %149, ptr %32, align 4, !tbaa !9
  %150 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %150, ptr %33, align 4, !tbaa !9
  store i32 8, ptr %34, align 4, !tbaa !9
  %151 = load i32, ptr %34, align 4, !tbaa !9
  %152 = load i32, ptr %33, align 4, !tbaa !9
  %153 = add i32 %152, %151
  store i32 %153, ptr %33, align 4, !tbaa !9
  %154 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %154, ptr %34, align 4, !tbaa !9
  %155 = load ptr, ptr %11, align 8, !tbaa !5
  %156 = load i32, ptr %24, align 4, !tbaa !9
  %157 = load i32, ptr %25, align 4, !tbaa !9
  %158 = load i32, ptr %26, align 4, !tbaa !9
  %159 = load i32, ptr %27, align 4, !tbaa !9
  %160 = load i32, ptr %28, align 4, !tbaa !9
  %161 = load i32, ptr %29, align 4, !tbaa !9
  %162 = load i32, ptr %30, align 4, !tbaa !9
  %163 = load i32, ptr %31, align 4, !tbaa !9
  %164 = load i32, ptr %32, align 4, !tbaa !9
  %165 = load i32, ptr %33, align 4, !tbaa !9
  %166 = load i32, ptr %34, align 4, !tbaa !9
  %167 = call i32 @w2c_hermes_hermes0x3A0x3AFunction0x3A0x3AFunction0x28hermes0x3A0x3AValueKind0x2C0x20hermes0x3A0x3AModule0x2A0x2C0x20hermes0x3A0x3AScopeDesc0x2A0x2C0x20hermes0x3A0x3AIdentifier0x2C0x20hermes0x3A0x3AFunction0x3A0x3ADefinitionKind0x2C0x20bool0x2C0x20hermes0x3A0x3ASourceVisibility0x2C0x20bool0x2C0x20llvh0x3A0x3ASMRange0x2C0x20hermes0x3A0x3AFunction0x2A0x29(ptr noundef %155, i32 noundef %156, i32 noundef %157, i32 noundef %158, i32 noundef %159, i32 noundef %160, i32 noundef %161, i32 noundef %162, i32 noundef %163, i32 noundef %164, i32 noundef %165, i32 noundef %166)
  store i32 %167, ptr %24, align 4, !tbaa !9
  %168 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %168, ptr %14, align 4, !tbaa !9
  %169 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %169, ptr %24, align 4, !tbaa !9
  store i32 32, ptr %25, align 4, !tbaa !9
  %170 = load i32, ptr %25, align 4, !tbaa !9
  %171 = load i32, ptr %24, align 4, !tbaa !9
  %172 = add i32 %171, %170
  store i32 %172, ptr %24, align 4, !tbaa !9
  %173 = load i32, ptr %24, align 4, !tbaa !9
  %174 = load ptr, ptr %11, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.w2c_hermes, ptr %174, i32 0, i32 3
  store i32 %173, ptr %175, align 8, !tbaa !13
  %176 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %176, ptr %24, align 4, !tbaa !9
  %177 = load i32, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  ret i32 %177
}

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3AIRBuilder0x3A0x3AcreateFunction0x28hermes0x3A0x3AScopeDesc0x2A0x2C0x20hermes0x3A0x3AIdentifier0x2C0x20hermes0x3A0x3AFunction0x3A0x3ADefinitionKind0x2C0x20bool0x2C0x20hermes0x3A0x3ASourceVisibility0x2C0x20llvh0x3A0x3ASMRange0x2C0x20bool0x2C0x20hermes0x3A0x3AFunction0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9) local_unnamed_addr #2 {
  %11 = getelementptr inbounds i8, ptr %0, i64 24
  %12 = load i32, ptr %11, align 8, !tbaa !5
  %13 = add i32 %12, -32
  store i32 %13, ptr %11, align 8, !tbaa !5
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %14, label %._crit_edge

._crit_edge:                                      ; preds = %10
  %.pre = zext i32 %1 to i64
  %.pre91 = zext i32 %13 to i64
  %.pre93 = add nuw nsw i64 %.pre91, 24
  br label %29

14:                                               ; preds = %10
  %15 = getelementptr inbounds i8, ptr %0, i64 40
  %16 = zext i32 %1 to i64
  %17 = tail call i32 @i32_load(ptr noundef nonnull %15, i64 noundef %16)
  %18 = zext i32 %17 to i64
  %19 = add nuw nsw i64 %18, 28
  %20 = tail call i32 @i32_load(ptr noundef nonnull %15, i64 noundef %19)
  %21 = zext i32 %13 to i64
  %22 = add nuw nsw i64 %21, 28
  tail call void @i32_store(ptr noundef nonnull %15, i64 noundef %22, i32 noundef 0)
  %23 = add nuw nsw i64 %21, 24
  tail call void @i32_store(ptr noundef nonnull %15, i64 noundef %23, i32 noundef 213048)
  %24 = tail call i64 @i64_load(ptr noundef nonnull %15, i64 noundef %23)
  %25 = add nuw nsw i64 %21, 16
  tail call void @i64_store(ptr noundef nonnull %15, i64 noundef %25, i64 noundef %24)
  %26 = add i32 %20, 36
  %27 = add i32 %12, -16
  %28 = tail call i32 @w2c_hermes_hermes0x3A0x3AStringTable0x3A0x3AgetString0x28llvh0x3A0x3AStringRef0x29(ptr noundef nonnull %0, i32 noundef %26, i32 noundef %27)
  br label %29

29:                                               ; preds = %._crit_edge, %14
  %.pre-phi94 = phi i64 [ %.pre93, %._crit_edge ], [ %23, %14 ]
  %.pre-phi92 = phi i64 [ %.pre91, %._crit_edge ], [ %21, %14 ]
  %.pre-phi = phi i64 [ %.pre, %._crit_edge ], [ %16, %14 ]
  %.0 = phi i32 [ %3, %._crit_edge ], [ %28, %14 ]
  %30 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef 176) #3
  %31 = getelementptr inbounds i8, ptr %0, i64 40
  %32 = tail call i32 @i32_load(ptr noundef nonnull %31, i64 noundef %.pre-phi)
  %33 = zext i32 %7 to i64
  %34 = tail call i64 @i64_load(ptr noundef nonnull %31, i64 noundef %33)
  %35 = add nuw nsw i64 %.pre-phi92, 8
  tail call void @i64_store(ptr noundef nonnull %31, i64 noundef %35, i64 noundef %34)
  tail call void @i64_store(ptr noundef nonnull %31, i64 noundef %.pre-phi94, i64 noundef %34)
  %36 = add i32 %12, -24
  %37 = tail call i32 @w2c_hermes_hermes0x3A0x3AFunction0x3A0x3AFunction0x28hermes0x3A0x3AValueKind0x2C0x20hermes0x3A0x3AModule0x2A0x2C0x20hermes0x3A0x3AScopeDesc0x2A0x2C0x20hermes0x3A0x3AIdentifier0x2C0x20hermes0x3A0x3AFunction0x3A0x3ADefinitionKind0x2C0x20bool0x2C0x20hermes0x3A0x3ASourceVisibility0x2C0x20bool0x2C0x20llvh0x3A0x3ASMRange0x2C0x20hermes0x3A0x3AFunction0x2A0x29(ptr noundef nonnull %0, i32 noundef %30, i32 noundef 128, i32 noundef %32, i32 noundef %2, i32 noundef %.0, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %8, i32 noundef %36, i32 noundef %9)
  store i32 %12, ptr %11, align 8, !tbaa !5
  ret i32 %37
}

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