The text d7a0468fe2bc, as FreeBSD 12.4-RELEASE shipped it.
return page resident and wiring statistics
pmap_resident_count(9) on FreeBSD now