```
Here are a few things to improve in the asmap implementation. The first
two commits are just code improvements. The last one is a bugfix (the
exsting code wouldn't correctly apply ASN lookups to mapped/embedded
IPv4 addresses).
```
Backport of core [[https://github.com/bitcoin/bitcoin/pull/18023 | PR18023]].
Depends on D8197.