Aboudek/ASM_TO_LLVM_V2
0
1; ModuleID = 'winfile/src/extr_wfdirsrc.c_GetMoveCopyCursor.c'2source_filename = "winfile/src/extr_wfdirsrc.c_GetMoveCopyCursor.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@fShowSourceBitmaps = dso_local global i64 0, align 87@hAppInstance = dso_local global i32 0, align 48@iCurDrag = dso_local global i32 0, align 49 10; Function Attrs: noinline nounwind optnone uwtable11define dso_local i32 @GetMoveCopyCursor() #0 {12 %1 = alloca i32, align 413 %2 = load i64, ptr @fShowSourceBitmaps, align 814 %3 = icmp ne i64 %2, 015 br i1 %3, label %4, label %1116 174: ; preds = %018 %5 = load i32, ptr @hAppInstance, align 419 %6 = load i32, ptr @iCurDrag, align 420 %7 = or i32 %6, 121 %8 = call i64 @MAKEINTRESOURCE(i32 noundef %7)22 %9 = trunc i64 %8 to i3223 %10 = call i32 @LoadCursor(i32 noundef %5, i32 noundef %9)24 store i32 %10, ptr %1, align 425 br label %1826 2711: ; preds = %028 %12 = load i32, ptr @hAppInstance, align 429 %13 = load i32, ptr @iCurDrag, align 430 %14 = and i32 %13, -231 %15 = call i64 @MAKEINTRESOURCE(i32 noundef %14)32 %16 = trunc i64 %15 to i3233 %17 = call i32 @LoadCursor(i32 noundef %12, i32 noundef %16)34 store i32 %17, ptr %1, align 435 br label %1836 3718: ; preds = %11, %438 %19 = load i32, ptr %1, align 439 ret i32 %1940}41 42declare i32 @LoadCursor(i32 noundef, i32 noundef) #143 44declare i64 @MAKEINTRESOURCE(i32 noundef) #145 46attributes #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" }47attributes #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" }48 49!llvm.module.flags = !{!0, !1, !2, !3, !4}50!llvm.ident = !{!5}51 52!0 = !{i32 1, !"wchar_size", i32 4}53!1 = !{i32 7, !"PIC Level", i32 2}54!2 = !{i32 7, !"PIE Level", i32 2}55!3 = !{i32 7, !"uwtable", i32 2}56!4 = !{i32 7, !"frame-pointer", i32 2}57!5 = !{!"clang version 15.0.3"}58 