impossible password

I’m stuck at the ** part. Been trying to study and debug the decompiled code generated from ghidra for hours and I’m not making any progress. Can anybody give me a hint?

edit: Got it, had to use a combination of ghidra + radare (ghidra wasn’t 100% necessary but the decompiled code helps). Learned some really cool things on this one.