; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_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: 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_store8(ptr noundef, i64 noundef, i32 noundef) #1

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3Agc0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(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 i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store i64 0, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.w2c_hermes, ptr %20, i32 0, i32 3
  %22 = load i32, ptr %21, align 8, !tbaa !13
  store i32 %22, ptr %15, align 4, !tbaa !9
  store i32 32, ptr %16, align 4, !tbaa !9
  %23 = load i32, ptr %16, align 4, !tbaa !9
  %24 = load i32, ptr %15, align 4, !tbaa !9
  %25 = sub i32 %24, %23
  store i32 %25, ptr %15, align 4, !tbaa !9
  %26 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %26, ptr %11, align 4, !tbaa !9
  %27 = load i32, ptr %15, align 4, !tbaa !9
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.w2c_hermes, ptr %28, i32 0, i32 3
  store i32 %27, ptr %29, align 8, !tbaa !13
  %30 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %30, ptr %15, align 4, !tbaa !9
  store i32 6, ptr %16, align 4, !tbaa !9
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.w2c_hermes, ptr %31, i32 0, i32 6
  %33 = load i32, ptr %15, align 4, !tbaa !9
  %34 = zext i32 %33 to i64
  %35 = add i64 %34, 11
  %36 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %32, i64 noundef %35, i32 noundef %36)
  %37 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %37, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %38 = load i32, ptr %16, align 4, !tbaa !9
  %39 = load i32, ptr %15, align 4, !tbaa !9
  %40 = add i32 %39, %38
  store i32 %40, ptr %15, align 4, !tbaa !9
  %41 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %41, ptr %12, align 4, !tbaa !9
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.w2c_hermes, ptr %42, i32 0, i32 6
  %44 = load i32, ptr %15, align 4, !tbaa !9
  %45 = zext i32 %44 to i64
  %46 = call i32 @i32_load(ptr noundef %43, i64 noundef %45)
  store i32 %46, ptr %15, align 4, !tbaa !9
  %47 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %47, ptr %13, align 4, !tbaa !9
  %48 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %48, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.w2c_hermes, ptr %49, i32 0, i32 6
  %51 = load i32, ptr %15, align 4, !tbaa !9
  %52 = zext i32 %51 to i64
  %53 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %50, i64 noundef %52, i32 noundef %53)
  %54 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %54, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.w2c_hermes, ptr %55, i32 0, i32 6
  %57 = load i32, ptr %15, align 4, !tbaa !9
  %58 = zext i32 %57 to i64
  %59 = add i64 %58, 6
  %60 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %56, i64 noundef %59, i32 noundef %60)
  %61 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %61, ptr %15, align 4, !tbaa !9
  store i32 106684, ptr %16, align 4, !tbaa !9
  %62 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %62, ptr %12, align 4, !tbaa !9
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.w2c_hermes, ptr %63, i32 0, i32 6
  %65 = load i32, ptr %16, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = call i32 @i32_load(ptr noundef %64, i64 noundef %66)
  store i32 %67, ptr %16, align 4, !tbaa !9
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.w2c_hermes, ptr %68, i32 0, i32 6
  %70 = load i32, ptr %15, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %69, i64 noundef %71, i32 noundef %72)
  %73 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %73, ptr %15, align 4, !tbaa !9
  %74 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %74, ptr %16, align 4, !tbaa !9
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.w2c_hermes, ptr %75, i32 0, i32 6
  %77 = load i32, ptr %16, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = add i64 %78, 4
  %80 = call i32 @i32_load16_u(ptr noundef %76, i64 noundef %79)
  store i32 %80, ptr %16, align 4, !tbaa !9
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.w2c_hermes, ptr %81, i32 0, i32 6
  %83 = load i32, ptr %15, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = add i64 %84, 4
  %86 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %82, i64 noundef %85, i32 noundef %86)
  %87 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %87, ptr %15, align 4, !tbaa !9
  %88 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %88, ptr %16, align 4, !tbaa !9
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.w2c_hermes, ptr %89, i32 0, i32 6
  %91 = load i32, ptr %15, align 4, !tbaa !9
  %92 = zext i32 %91 to i64
  %93 = add i64 %92, 24
  %94 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %90, i64 noundef %93, i32 noundef %94)
  %95 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %95, ptr %15, align 4, !tbaa !9
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.w2c_hermes, ptr %96, i32 0, i32 6
  %98 = load i32, ptr %15, align 4, !tbaa !9
  %99 = zext i32 %98 to i64
  %100 = call i64 @i64_load(ptr noundef %97, i64 noundef %99)
  store i64 %100, ptr %18, align 8, !tbaa !11
  %101 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %101, ptr %14, align 8, !tbaa !11
  %102 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %102, ptr %15, align 4, !tbaa !9
  store i64 0, ptr %19, align 8, !tbaa !11
  %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 %15, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %104, i64 noundef %106, i64 noundef %107)
  %108 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %108, ptr %15, align 4, !tbaa !9
  %109 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %109, ptr %19, 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 %15, align 4, !tbaa !9
  %113 = zext i32 %112 to i64
  %114 = add i64 %113, 16
  %115 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %111, i64 noundef %114, i64 noundef %115)
  %116 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %116, ptr %15, align 4, !tbaa !9
  store i32 808, ptr %16, align 4, !tbaa !9
  %117 = load i32, ptr %16, align 4, !tbaa !9
  %118 = load i32, ptr %15, align 4, !tbaa !9
  %119 = add i32 %118, %117
  store i32 %119, ptr %15, align 4, !tbaa !9
  %120 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %120, ptr %16, align 4, !tbaa !9
  store i32 16, ptr %17, align 4, !tbaa !9
  %121 = load i32, ptr %17, align 4, !tbaa !9
  %122 = load i32, ptr %16, align 4, !tbaa !9
  %123 = add i32 %122, %121
  store i32 %123, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = load i32, ptr %15, align 4, !tbaa !9
  %126 = load i32, ptr %16, align 4, !tbaa !9
  %127 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3Acollect0x28std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x2C0x20bool0x29(ptr noundef %124, i32 noundef %125, i32 noundef %126, i32 noundef %127)
  %128 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %128, ptr %15, align 4, !tbaa !9
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.w2c_hermes, ptr %129, i32 0, i32 6
  %131 = load i32, ptr %15, align 4, !tbaa !9
  %132 = zext i32 %131 to i64
  %133 = add i64 %132, 27
  %134 = call i32 @i32_load8_s(ptr noundef %130, i64 noundef %133)
  store i32 %134, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  %135 = load i32, ptr %15, align 4, !tbaa !9
  %136 = load i32, ptr %16, align 4, !tbaa !9
  %137 = icmp slt i32 %135, %136
  %138 = zext i1 %137 to i32
  store i32 %138, ptr %15, align 4, !tbaa !9
  %139 = load i32, ptr %15, align 4, !tbaa !9
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %141, label %151

141:                                              ; preds = %5
  %142 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %142, ptr %15, align 4, !tbaa !9
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.w2c_hermes, ptr %143, i32 0, i32 6
  %145 = load i32, ptr %15, align 4, !tbaa !9
  %146 = zext i32 %145 to i64
  %147 = add i64 %146, 16
  %148 = call i32 @i32_load(ptr noundef %144, i64 noundef %147)
  store i32 %148, ptr %15, align 4, !tbaa !9
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %149, i32 noundef %150)
  br label %151

151:                                              ; preds = %141, %5
  %152 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %152, ptr %15, align 4, !tbaa !9
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.w2c_hermes, ptr %153, i32 0, i32 6
  %155 = load i32, ptr %15, align 4, !tbaa !9
  %156 = zext i32 %155 to i64
  %157 = add i64 %156, 11
  %158 = call i32 @i32_load8_s(ptr noundef %154, i64 noundef %157)
  store i32 %158, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  %159 = load i32, ptr %15, align 4, !tbaa !9
  %160 = load i32, ptr %16, align 4, !tbaa !9
  %161 = icmp slt i32 %159, %160
  %162 = zext i1 %161 to i32
  store i32 %162, ptr %15, align 4, !tbaa !9
  %163 = load i32, ptr %15, align 4, !tbaa !9
  %164 = icmp ne i32 %163, 0
  br i1 %164, label %165, label %174

165:                                              ; preds = %151
  %166 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %166, ptr %15, align 4, !tbaa !9
  %167 = load ptr, ptr %6, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.w2c_hermes, ptr %167, i32 0, i32 6
  %169 = load i32, ptr %15, align 4, !tbaa !9
  %170 = zext i32 %169 to i64
  %171 = call i32 @i32_load(ptr noundef %168, i64 noundef %170)
  store i32 %171, ptr %15, align 4, !tbaa !9
  %172 = load ptr, ptr %6, align 8, !tbaa !5
  %173 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %172, i32 noundef %173)
  br label %174

174:                                              ; preds = %165, %151
  %175 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %175, ptr %15, align 4, !tbaa !9
  store i64 -1688849860263936, ptr %19, align 8, !tbaa !11
  %176 = load ptr, ptr %6, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.w2c_hermes, ptr %176, i32 0, i32 6
  %178 = load i32, ptr %15, align 4, !tbaa !9
  %179 = zext i32 %178 to i64
  %180 = add i64 %179, 8
  %181 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %177, i64 noundef %180, i64 noundef %181)
  %182 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %182, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %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 %15, align 4, !tbaa !9
  %186 = zext i32 %185 to i64
  %187 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %184, i64 noundef %186, i32 noundef %187)
  %188 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %188, ptr %15, align 4, !tbaa !9
  store i32 32, ptr %16, align 4, !tbaa !9
  %189 = load i32, ptr %16, align 4, !tbaa !9
  %190 = load i32, ptr %15, align 4, !tbaa !9
  %191 = add i32 %190, %189
  store i32 %191, ptr %15, align 4, !tbaa !9
  %192 = load i32, ptr %15, align 4, !tbaa !9
  %193 = load ptr, ptr %6, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.w2c_hermes, ptr %193, i32 0, i32 3
  store i32 %192, ptr %194, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %11) #4
  ret void
}

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3Acollect0x28std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x2C0x20bool0x29(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 @i32_store8(ptr noundef, i64 noundef, i32 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_s(ptr noundef, i64 noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3Agc0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(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, -32
  store i32 %8, ptr %6, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = zext i32 %8 to i64
  %11 = add nuw nsw i64 %10, 11
  tail call void @i32_store8(ptr noundef nonnull %9, i64 noundef %11, i32 noundef 6)
  %12 = add i32 %7, -24
  %13 = zext i32 %12 to i64
  %14 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %13)
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %13, i32 noundef 0)
  %15 = add nuw nsw i64 %10, 6
  tail call void @i32_store8(ptr noundef nonnull %9, i64 noundef %15, i32 noundef 0)
  %16 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef 106684)
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %10, i32 noundef %16)
  %17 = tail call i32 @i32_load16_u(ptr noundef nonnull %9, i64 noundef 106688)
  %18 = add nuw nsw i64 %10, 4
  tail call void @i32_store16(ptr noundef nonnull %9, i64 noundef %18, i32 noundef %17)
  %19 = add nuw nsw i64 %10, 24
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %19, i32 noundef %14)
  %20 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %10)
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %10, i64 noundef 0)
  %21 = add nuw nsw i64 %10, 16
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %21, i64 noundef %20)
  %22 = add i32 %3, 808
  %23 = add i32 %7, -16
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3Acollect0x28std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x2C0x20bool0x29(ptr noundef %0, i32 noundef %22, i32 noundef %23, i32 noundef 0) #3
  %24 = add nuw nsw i64 %10, 27
  %25 = tail call i32 @i32_load8_s(ptr noundef nonnull %9, i64 noundef %24)
  %26 = icmp slt i32 %25, 0
  br i1 %26, label %27, label %29

27:                                               ; preds = %5
  %28 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %21)
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef nonnull %0, i32 noundef %28) #3
  br label %29

29:                                               ; preds = %27, %5
  %30 = tail call i32 @i32_load8_s(ptr noundef nonnull %9, i64 noundef %11)
  %31 = icmp slt i32 %30, 0
  br i1 %31, label %32, label %34

32:                                               ; preds = %29
  %33 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %10)
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef nonnull %0, i32 noundef %33) #3
  br label %34

34:                                               ; preds = %32, %29
  %35 = zext i32 %1 to i64
  %36 = add nuw nsw i64 %35, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %36, i64 noundef -1688849860263936)
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %35, i32 noundef 1)
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret void
}

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3Acollect0x28std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x2C0x20bool0x29(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,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,TailCallElimPass