import sys
import xml.etree.ElementTree as ET

path = sys.argv[1] if len(sys.argv) > 1 else "reverse/dumps/ui_login.xml"
root = ET.parse(path).getroot()
keywords = [
    "register", "sign", "login", "mobile", "phone", "continue", "next",
    "create", "otp", "skip", "started", "email", "password", "pin",
]
for node in root.iter("node"):
    text = node.get("text", "")
    desc = node.get("content-desc", "")
    clickable = node.get("clickable", "")
    bounds = node.get("bounds", "")
    label = (text or desc).strip()
    if not label and clickable != "true":
        continue
    hay = (text + " " + desc).lower()
    if clickable == "true" or any(k in hay for k in keywords):
        print(f"{label!r} bounds={bounds} clickable={clickable}")
