def METHOD_NAME(address_n: paths.Bip32Path) -> int | None:
    HARDENED = paths.HARDENED  # local_cache_attribute
    if len(address_n) < 2:
        return None
    if address_n[0] == 45 | HARDENED and not address_n[1] & HARDENED:
        return address_n[1]
    return address_n[1] & ~HARDENED