Aboudek/ASM_TO_LLVM_V2
0
1; ModuleID = 'winfile/src/extr_wfdirsrc.c_DropFilesOnApplication.c'2source_filename = "winfile/src/extr_wfdirsrc.c_DropFilesOnApplication.c"3target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"4target triple = "x86_64-unknown-linux-gnu"5 6@hwndGlobalSink = dso_local global ptr null, align 87@WM_DROPFILES = dso_local global i32 0, align 48 9; Function Attrs: noinline nounwind optnone uwtable10define dso_local i32 @DropFilesOnApplication(i32 noundef %0) #0 {11 %2 = alloca i32, align 412 %3 = alloca i32, align 413 %4 = alloca i32, align 414 %5 = alloca ptr, align 815 %6 = alloca i32, align 416 %7 = alloca i64, align 817 store i32 %0, ptr %3, align 418 %8 = load ptr, ptr @hwndGlobalSink, align 819 store ptr %8, ptr %5, align 820 %9 = icmp ne ptr %8, null21 br i1 %9, label %11, label %1022 2310: ; preds = %124 store i32 0, ptr %2, align 425 br label %3426 2711: ; preds = %128 store ptr null, ptr @hwndGlobalSink, align 829 %12 = call i32 @GetCursorPos(ptr noundef %4)30 %13 = load ptr, ptr %5, align 831 %14 = call i32 @GetClientRect(ptr noundef %13, ptr noundef %6)32 %15 = load ptr, ptr %5, align 833 %16 = call i32 @ScreenToClient(ptr noundef %15, ptr noundef %4)34 %17 = load i32, ptr %4, align 435 %18 = load i32, ptr %4, align 436 %19 = call i32 @PtInRect(ptr noundef %6, i32 noundef %18)37 %20 = icmp ne i32 %19, 038 %21 = xor i1 %20, true39 %22 = zext i1 %21 to i3240 %23 = load i32, ptr %3, align 441 %24 = call i64 @CreateDropFiles(i32 noundef %17, i32 noundef %22, i32 noundef %23)42 store i64 %24, ptr %7, align 843 %25 = load i64, ptr %7, align 844 %26 = icmp ne i64 %25, 045 br i1 %26, label %28, label %2746 4727: ; preds = %1148 store i32 0, ptr %2, align 449 br label %3450 5128: ; preds = %1152 %29 = load ptr, ptr %5, align 853 %30 = load i32, ptr @WM_DROPFILES, align 454 %31 = load i64, ptr %7, align 855 %32 = trunc i64 %31 to i3256 %33 = call i32 @PostMessage(ptr noundef %29, i32 noundef %30, i32 noundef %32, i64 noundef 0)57 store i32 1, ptr %2, align 458 br label %3459 6034: ; preds = %28, %27, %1061 %35 = load i32, ptr %2, align 462 ret i32 %3563}64 65declare i32 @GetCursorPos(ptr noundef) #166 67declare i32 @GetClientRect(ptr noundef, ptr noundef) #168 69declare i32 @ScreenToClient(ptr noundef, ptr noundef) #170 71declare i64 @CreateDropFiles(i32 noundef, i32 noundef, i32 noundef) #172 73declare i32 @PtInRect(ptr noundef, i32 noundef) #174 75declare i32 @PostMessage(ptr noundef, i32 noundef, i32 noundef, i64 noundef) #176 77attributes #0 = { noinline nounwind optnone uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }78attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }79 80!llvm.module.flags = !{!0, !1, !2, !3, !4}81!llvm.ident = !{!5}82 83!0 = !{i32 1, !"wchar_size", i32 4}84!1 = !{i32 7, !"PIC Level", i32 2}85!2 = !{i32 7, !"PIE Level", i32 2}86!3 = !{i32 7, !"uwtable", i32 2}87!4 = !{i32 7, !"frame-pointer", i32 2}88!5 = !{!"clang version 15.0.3"}89 