Doing some basic reverse engineering of x86 assembly code into C, but I am struggling to understand what this particular function, named phase2, is doing at the start.
Click here to see the assembly code (sorry cant post images yet)
Specifically this part right here:
call 0x5555555550b0 <<__isoc99_sscanf@plt>>
cmp $0x2,%eax
jne 0x555555555761 <phase2+86>
my best guess is that this translates to
if (scanf() == 2) {
At first I thought that maybe this was checking if the return value of scanf() == 2 but that doesn't really make sense in this context since the result never seems to be 2.