let bytes = ObjC.Object(args[0]).bytes();
let length = parseInt(ObjC.Object(args[0]).length());
for (let i = 0; i < length; i += 16) {
let bytesPerLine = Math.min(16, length - i);
let hexStr = "";
let asciiStr = "";
for (let j = 0; j < bytesPerLine; j++) {
let byteVal = Memory.readU8(bytes.add(i + j));
hexStr += byteVal.toString(16).padStart(2, "0") + " ";
if (byteVal >= 32 && byteVal <= 126) {
asciiStr += String.fromCharCode(byteVal);
} else {
asciiStr += ".";
}
}
log(` --Input ${hexStr.padEnd(48)} ${asciiStr}`);
}