// File: jovermann[P]streplace/src/streplace.cpp
// Function: Streplace::processSymlink(std::filesystem::__cxx11::directory_entry const&)
void processSymlink(const std::filesystem::directory_entry& directoryEntry)
    {
        if (modifySymlinks)
        {
            if (verbose >= 2)
            {
                std::cout << "Processing symlink " << directoryEntry.path().string() << ".\n";
            }
            std::string oldp = std::filesystem::read_symlink(directoryEntry);
            std::string newp = applyAllRules(oldp);
            if (newp != oldp)
            {
                if (verbose)
                {
                    std::cout << "Modifying symlink target of " << directoryEntry.path().string() << ": " << oldp << " -> " << newp << ".\n";
                }
                if (!dummyMode)
                {
                    std::filesystem::remove(directoryEntry);
                    std::filesystem::create_symlink(newp, directoryEntry);
                }
                numSymlinksModified++;
            }
            numSymlinksProcessed++;
        }
        else
        {
            if (verbose >= 2)
            {
                std::cout << "Ignoring symlink " << directoryEntry.path() << ".\n";
            }
            numIgnored++;
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xf8(%rbp)
testb $0x1, 0x12(%rax)
je 0x1c053
movq -0xf8(%rbp), %rax
cmpl $0x2, 0x4(%rax)
jb 0x1bdb5
movq 0x4e278(%rip), %rdi     # 0x69fa8
leaq 0x30064(%rip), %rsi     # 0x4bd9b
callq 0x75d0
movq %rax, -0x110(%rbp)
movq -0x10(%rbp), %rdi
callq 0x141c0
movq %rax, %rsi
leaq -0x30(%rbp), %rdi
movq %rdi, -0x108(%rbp)
callq 0x1bab0
movq -0x110(%rbp), %rdi
movq -0x108(%rbp), %rsi
callq 0x7560
movq %rax, -0x100(%rbp)
jmp 0x1bd7b
movq -0x100(%rbp), %rdi
leaq 0x2eec4(%rip), %rsi     # 0x4ac4d
callq 0x75d0
jmp 0x1bd90
leaq -0x30(%rbp), %rdi
callq 0x73c0
jmp 0x1bdb5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x73c0
jmp 0x1c0bd
movq -0x10(%rbp), %rdi
callq 0x46870
movq %rax, %rsi
leaq -0x88(%rbp), %rdi
movq %rdi, -0x118(%rbp)
callq 0x7770
movq -0x118(%rbp), %rsi
leaq -0x60(%rbp), %rdi
callq 0x46880
jmp 0x1bde6
leaq -0x88(%rbp), %rdi
callq 0x18700
movq -0xf8(%rbp), %rsi
xorl %eax, %eax
movl %eax, %ecx
leaq -0xa8(%rbp), %rdi
leaq -0x60(%rbp), %rdx
callq 0x1bb30
jmp 0x1be0f
leaq -0xa8(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0xc130
testb $0x1, %al
jne 0x1be28
jmp 0x1c00c
movq -0xf8(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0x1bf77
movq 0x4e168(%rip), %rdi     # 0x69fa8
leaq 0x2ff68(%rip), %rsi     # 0x4bdaf
callq 0x75d0
movq %rax, -0x120(%rbp)
jmp 0x1be55
movq -0x10(%rbp), %rdi
callq 0x141c0
movq %rax, %rsi
leaq -0xc8(%rbp), %rdi
callq 0x1bab0
jmp 0x1be6f
movq -0x120(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x7560
movq %rax, -0x128(%rbp)
jmp 0x1be8b
movq -0x128(%rbp), %rdi
leaq 0x2e2bf(%rip), %rsi     # 0x4a158
callq 0x75d0
movq %rax, -0x130(%rbp)
jmp 0x1bea7
movq -0x130(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x7560
movq %rax, -0x138(%rbp)
jmp 0x1bec0
movq -0x138(%rbp), %rdi
leaq 0x2f636(%rip), %rsi     # 0x4b504
callq 0x75d0
movq %rax, -0x140(%rbp)
jmp 0x1bedc
movq -0x140(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x7560
movq %rax, -0x148(%rbp)
jmp 0x1bef8
movq -0x148(%rbp), %rdi
leaq 0x2ed47(%rip), %rsi     # 0x4ac4d
callq 0x75d0
jmp 0x1bf0d
leaq -0xc8(%rbp), %rdi
callq 0x73c0
jmp 0x1bf77
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x18700
jmp 0x1c0bd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x1c048
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x1c03c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x73c0
jmp 0x1c03c
movq -0xf8(%rbp), %rax
testb $0x1, 0x8(%rax)
jne 0x1bff3
movq -0x10(%rbp), %rdi
callq 0x46870
movq %rax, %rdi
callq 0x7500
jmp 0x1bf97
leaq -0xf0(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
movl $0x2, %edx
callq 0x18620
jmp 0x1bfb1
movq -0x10(%rbp), %rdi
callq 0x46870
movq %rax, %rsi
leaq -0xf0(%rbp), %rdi
callq 0x7af0
jmp 0x1bfcb
leaq -0xf0(%rbp), %rdi
callq 0x18700
jmp 0x1bff3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x18700
jmp 0x1c03c
movq -0xf8(%rbp), %rax
movq 0xa0(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0xa0(%rax)
movq -0xf8(%rbp), %rax
movq 0x98(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x98(%rax)
leaq -0xa8(%rbp), %rdi
callq 0x73c0
leaq -0x60(%rbp), %rdi
callq 0x73c0
jmp 0x1c0b4
leaq -0xa8(%rbp), %rdi
callq 0x73c0
leaq -0x60(%rbp), %rdi
callq 0x73c0
jmp 0x1c0bd
movq -0xf8(%rbp), %rax
cmpl $0x2, 0x4(%rax)
jb 0x1c0a1
movq 0x4df41(%rip), %rdi     # 0x69fa8
leaq 0x2fd5e(%rip), %rsi     # 0x4bdcc
callq 0x75d0
movq %rax, -0x150(%rbp)
movq -0x10(%rbp), %rdi
callq 0x141c0
movq -0x150(%rbp), %rdi
movq %rax, %rsi
callq 0x468b0
movq %rax, %rdi
leaq 0x2ebb1(%rip), %rsi     # 0x4ac4d
callq 0x75d0
movq -0xf8(%rbp), %rax
movq 0x78(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x78(%rax)
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
movq -0x38(%rbp), %rdi
callq 0x7a30
nopw %cs:(%rax,%rax)