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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3AESTree0x3A0x3ADeclareExportDeclarationNode0x3A0x3ADeclareExportDeclarationNode0x28hermes0x3A0x3AESTree0x3A0x3ANode0x2A0x2C0x20llvh0x3A0x3Asimple_ilist0x3Chermes0x3A0x3AESTree0x3A0x3ANode0x3E0x260x260x2C0x20hermes0x3A0x3AESTree0x3A0x3ANode0x2A0x2C0x20bool0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #3 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  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 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %22 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %22, ptr %16, align 4, !tbaa !9
  store i64 0, ptr %21, align 8, !tbaa !11
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.w2c_hermes, ptr %23, i32 0, i32 6
  %25 = load i32, ptr %16, align 4, !tbaa !9
  %26 = zext i32 %25 to i64
  %27 = add i64 %26, 12
  %28 = load i64, ptr %21, align 8, !tbaa !11
  call void @i64_store(ptr noundef %24, i64 noundef %27, i64 noundef %28)
  %29 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %29, ptr %16, align 4, !tbaa !9
  store i32 167, ptr %17, align 4, !tbaa !9
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.w2c_hermes, ptr %30, i32 0, i32 6
  %32 = load i32, ptr %16, align 4, !tbaa !9
  %33 = zext i32 %32 to i64
  %34 = add i64 %33, 8
  %35 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %31, i64 noundef %34, i32 noundef %35)
  %36 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %36, ptr %16, align 4, !tbaa !9
  store i64 0, ptr %21, align 8, !tbaa !11
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.w2c_hermes, ptr %37, i32 0, i32 6
  %39 = load i32, ptr %16, align 4, !tbaa !9
  %40 = zext i32 %39 to i64
  %41 = load i64, ptr %21, align 8, !tbaa !11
  call void @i64_store(ptr noundef %38, i64 noundef %40, i64 noundef %41)
  %42 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %42, ptr %16, align 4, !tbaa !9
  %43 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %43, ptr %17, align 4, !tbaa !9
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.w2c_hermes, ptr %44, i32 0, i32 6
  %46 = load i32, ptr %16, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = add i64 %47, 28
  %49 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %45, i64 noundef %48, i32 noundef %49)
  %50 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %50, ptr %16, align 4, !tbaa !9
  store i64 0, ptr %21, align 8, !tbaa !11
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.w2c_hermes, ptr %51, i32 0, i32 6
  %53 = load i32, ptr %16, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = add i64 %54, 20
  %56 = load i64, ptr %21, align 8, !tbaa !11
  call void @i64_store(ptr noundef %52, i64 noundef %55, i64 noundef %56)
  %57 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %57, ptr %16, align 4, !tbaa !9
  %58 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %58, ptr %17, align 4, !tbaa !9
  store i32 32, ptr %18, align 4, !tbaa !9
  %59 = load i32, ptr %18, align 4, !tbaa !9
  %60 = load i32, ptr %17, align 4, !tbaa !9
  %61 = add i32 %60, %59
  store i32 %61, ptr %17, align 4, !tbaa !9
  %62 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %62, ptr %9, align 4, !tbaa !9
  %63 = load ptr, ptr %7, 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 = add i64 %66, 36
  %68 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %64, i64 noundef %67, i32 noundef %68)
  %69 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %69, ptr %16, align 4, !tbaa !9
  %70 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %70, ptr %17, align 4, !tbaa !9
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.w2c_hermes, ptr %71, i32 0, i32 6
  %73 = load i32, ptr %16, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = add i64 %74, 32
  %76 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %72, i64 noundef %75, i32 noundef %76)
  %77 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %77, ptr %16, align 4, !tbaa !9
  %78 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %78, ptr %17, align 4, !tbaa !9
  %79 = load i32, ptr %16, align 4, !tbaa !9
  %80 = load i32, ptr %17, align 4, !tbaa !9
  %81 = icmp eq i32 %79, %80
  %82 = zext i1 %81 to i32
  store i32 %82, ptr %16, align 4, !tbaa !9
  %83 = load i32, ptr %16, align 4, !tbaa !9
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %6
  br label %179

86:                                               ; preds = %6
  %87 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %87, ptr %16, align 4, !tbaa !9
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.w2c_hermes, ptr %88, i32 0, i32 6
  %90 = load i32, ptr %16, align 4, !tbaa !9
  %91 = zext i32 %90 to i64
  %92 = add i64 %91, 4
  %93 = call i32 @i32_load(ptr noundef %89, i64 noundef %92)
  store i32 %93, ptr %16, align 4, !tbaa !9
  %94 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %94, ptr %13, align 4, !tbaa !9
  %95 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %95, ptr %17, align 4, !tbaa !9
  %96 = load i32, ptr %16, align 4, !tbaa !9
  %97 = load i32, ptr %17, align 4, !tbaa !9
  %98 = icmp eq i32 %96, %97
  %99 = zext i1 %98 to i32
  store i32 %99, ptr %16, align 4, !tbaa !9
  %100 = load i32, ptr %16, align 4, !tbaa !9
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %103

102:                                              ; preds = %86
  br label %179

103:                                              ; preds = %86
  %104 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %104, ptr %16, align 4, !tbaa !9
  %105 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %105, ptr %17, align 4, !tbaa !9
  %106 = load i32, ptr %16, align 4, !tbaa !9
  %107 = load i32, ptr %17, align 4, !tbaa !9
  %108 = icmp eq i32 %106, %107
  %109 = zext i1 %108 to i32
  store i32 %109, ptr %16, align 4, !tbaa !9
  %110 = load i32, ptr %16, align 4, !tbaa !9
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %113

112:                                              ; preds = %103
  br label %197

113:                                              ; preds = %103
  %114 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %114, ptr %16, align 4, !tbaa !9
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.w2c_hermes, ptr %115, i32 0, i32 6
  %117 = load i32, ptr %16, align 4, !tbaa !9
  %118 = zext i32 %117 to i64
  %119 = call i32 @i32_load(ptr noundef %116, i64 noundef %118)
  store i32 %119, ptr %16, align 4, !tbaa !9
  %120 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %120, ptr %14, align 4, !tbaa !9
  %121 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %121, ptr %16, align 4, !tbaa !9
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.w2c_hermes, ptr %122, i32 0, i32 6
  %124 = load i32, ptr %16, align 4, !tbaa !9
  %125 = zext i32 %124 to i64
  %126 = call i32 @i32_load(ptr noundef %123, i64 noundef %125)
  store i32 %126, ptr %16, align 4, !tbaa !9
  %127 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %127, ptr %15, align 4, !tbaa !9
  %128 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %128, ptr %17, align 4, !tbaa !9
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.w2c_hermes, ptr %129, i32 0, i32 6
  %131 = load i32, ptr %16, align 4, !tbaa !9
  %132 = zext i32 %131 to i64
  %133 = add i64 %132, 4
  %134 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %130, i64 noundef %133, i32 noundef %134)
  %135 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %135, ptr %16, align 4, !tbaa !9
  %136 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %136, ptr %17, align 4, !tbaa !9
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.w2c_hermes, ptr %137, i32 0, i32 6
  %139 = load i32, ptr %16, align 4, !tbaa !9
  %140 = zext i32 %139 to i64
  %141 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %138, i64 noundef %140, i32 noundef %141)
  %142 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %142, ptr %16, align 4, !tbaa !9
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.w2c_hermes, ptr %143, i32 0, i32 6
  %145 = load i32, ptr %16, align 4, !tbaa !9
  %146 = zext i32 %145 to i64
  %147 = call i32 @i32_load(ptr noundef %144, i64 noundef %146)
  store i32 %147, ptr %16, align 4, !tbaa !9
  %148 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %148, ptr %10, align 4, !tbaa !9
  %149 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %149, ptr %16, align 4, !tbaa !9
  %150 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %150, ptr %17, align 4, !tbaa !9
  %151 = load ptr, ptr %7, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.w2c_hermes, ptr %151, i32 0, i32 6
  %153 = load i32, ptr %16, align 4, !tbaa !9
  %154 = zext i32 %153 to i64
  %155 = add i64 %154, 4
  %156 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %152, i64 noundef %155, i32 noundef %156)
  %157 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %157, ptr %16, align 4, !tbaa !9
  %158 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %158, ptr %17, align 4, !tbaa !9
  %159 = load ptr, ptr %7, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.w2c_hermes, ptr %159, i32 0, i32 6
  %161 = load i32, ptr %16, align 4, !tbaa !9
  %162 = zext i32 %161 to i64
  %163 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %160, i64 noundef %162, i32 noundef %163)
  %164 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %164, ptr %16, align 4, !tbaa !9
  %165 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %165, ptr %17, align 4, !tbaa !9
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.w2c_hermes, ptr %166, i32 0, i32 6
  %168 = load i32, ptr %16, align 4, !tbaa !9
  %169 = zext i32 %168 to i64
  %170 = add i64 %169, 4
  %171 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %167, i64 noundef %170, i32 noundef %171)
  %172 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %172, ptr %16, align 4, !tbaa !9
  %173 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %173, ptr %17, align 4, !tbaa !9
  %174 = load ptr, ptr %7, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.w2c_hermes, ptr %174, i32 0, i32 6
  %176 = load i32, ptr %16, align 4, !tbaa !9
  %177 = zext i32 %176 to i64
  %178 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %175, i64 noundef %177, i32 noundef %178)
  br label %179

179:                                              ; preds = %113, %102, %85
  %180 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %180, ptr %16, align 4, !tbaa !9
  %181 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %181, ptr %17, align 4, !tbaa !9
  %182 = load ptr, ptr %7, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.w2c_hermes, ptr %182, i32 0, i32 6
  %184 = load i32, ptr %16, align 4, !tbaa !9
  %185 = zext i32 %184 to i64
  %186 = add i64 %185, 44
  %187 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %183, i64 noundef %186, i32 noundef %187)
  %188 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %188, ptr %16, align 4, !tbaa !9
  %189 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %189, ptr %17, align 4, !tbaa !9
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.w2c_hermes, ptr %190, i32 0, i32 6
  %192 = load i32, ptr %16, align 4, !tbaa !9
  %193 = zext i32 %192 to i64
  %194 = add i64 %193, 40
  %195 = load i32, ptr %17, align 4, !tbaa !9
  call void @i32_store(ptr noundef %191, i64 noundef %194, i32 noundef %195)
  %196 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %196, ptr %16, align 4, !tbaa !9
  br label %215

197:                                              ; preds = %112
  store i32 0, ptr %16, align 4, !tbaa !9
  %198 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %198, ptr %8, align 4, !tbaa !9
  store i32 142905, ptr %17, align 4, !tbaa !9
  %199 = load i32, ptr %17, align 4, !tbaa !9
  %200 = load i32, ptr %16, align 4, !tbaa !9
  %201 = add i32 %200, %199
  store i32 %201, ptr %16, align 4, !tbaa !9
  %202 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %202, ptr %17, align 4, !tbaa !9
  store i32 83477, ptr %18, align 4, !tbaa !9
  %203 = load i32, ptr %18, align 4, !tbaa !9
  %204 = load i32, ptr %17, align 4, !tbaa !9
  %205 = add i32 %204, %203
  store i32 %205, ptr %17, align 4, !tbaa !9
  store i32 61, ptr %18, align 4, !tbaa !9
  %206 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %206, ptr %19, align 4, !tbaa !9
  store i32 72011, ptr %20, align 4, !tbaa !9
  %207 = load i32, ptr %20, align 4, !tbaa !9
  %208 = load i32, ptr %19, align 4, !tbaa !9
  %209 = add i32 %208, %207
  store i32 %209, ptr %19, align 4, !tbaa !9
  %210 = load ptr, ptr %7, align 8, !tbaa !5
  %211 = load i32, ptr %16, align 4, !tbaa !9
  %212 = load i32, ptr %17, align 4, !tbaa !9
  %213 = load i32, ptr %18, align 4, !tbaa !9
  %214 = load i32, ptr %19, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %210, i32 noundef %211, i32 noundef %212, i32 noundef %213, i32 noundef %214)
  call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

215:                                              ; preds = %179
  %216 = load i32, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  ret i32 %216
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #0

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @w2c_hermes_hermes0x3A0x3AESTree0x3A0x3ADeclareExportDeclarationNode0x3A0x3ADeclareExportDeclarationNode0x28hermes0x3A0x3AESTree0x3A0x3ANode0x2A0x2C0x20llvh0x3A0x3Asimple_ilist0x3Chermes0x3A0x3AESTree0x3A0x3ANode0x3E0x260x260x2C0x20hermes0x3A0x3AESTree0x3A0x3ANode0x2A0x2C0x20bool0x29(ptr noundef %0, i32 noundef returned %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #2 {
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = zext i32 %1 to i64
  %9 = add nuw nsw i64 %8, 12
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %9, i64 noundef 0)
  %10 = add nuw nsw i64 %8, 8
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %10, i32 noundef 167)
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %8, i64 noundef 0)
  %11 = add nuw nsw i64 %8, 28
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %11, i32 noundef %2)
  %12 = add nuw nsw i64 %8, 20
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %12, i64 noundef 0)
  %13 = add i32 %1, 32
  %14 = add nuw nsw i64 %8, 36
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %14, i32 noundef %13)
  %15 = add nuw nsw i64 %8, 32
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %15, i32 noundef %13)
  %16 = icmp eq i32 %13, %3
  br i1 %16, label %36, label %17

17:                                               ; preds = %6
  %18 = zext i32 %3 to i64
  %19 = add nuw nsw i64 %18, 4
  %20 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %19)
  %21 = icmp eq i32 %20, %3
  br i1 %21, label %36, label %22

22:                                               ; preds = %17
  %23 = icmp eq i32 %13, %20
  br i1 %23, label %39, label %24

24:                                               ; preds = %22
  %25 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %18)
  %26 = zext i32 %20 to i64
  %27 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %26)
  %28 = zext i32 %27 to i64
  %29 = add nuw nsw i64 %28, 4
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %29, i32 noundef %3)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %18, i32 noundef %27)
  %30 = zext i32 %13 to i64
  %31 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %30)
  %32 = zext i32 %25 to i64
  %33 = add nuw nsw i64 %32, 4
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %33, i32 noundef %13)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %26, i32 noundef %31)
  %34 = zext i32 %31 to i64
  %35 = add nuw nsw i64 %34, 4
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %35, i32 noundef %20)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %30, i32 noundef %25)
  br label %36

36:                                               ; preds = %17, %6, %24
  %37 = add nuw nsw i64 %8, 44
  tail call void @i32_store8(ptr noundef nonnull %7, i64 noundef %37, i32 noundef %5)
  %38 = add nuw nsw i64 %8, 40
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %38, i32 noundef %4)
  ret i32 %1

39:                                               ; preds = %22
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 142905, i32 noundef 83477, i32 noundef 61, i32 noundef 72011)
  tail call void @wasm_rt_trap(i32 noundef 5) #3
  unreachable
}

attributes #0 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { 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 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass