Which i94 number should be written on h4 ead form - online or i797?

Which i94 number should be written on h4 ead form?

What should I put in my case?
online I-94 matches with passport expiry but I-94 on I-797 is longer?
I am getting passport renewed though.

Write the i94 number that was issued most recently.

If you got the i797 before your last travel and entry to USA, then use the i94 that was issued by CBP at port of entry.

Which passport # to enter at “Passport Number of Your Most Recently Issued Passport” ?
The new passport # after renewal or passport # on I-94?

As per instructions document I-765 Instructions:
Passport and Travel Document Numbers. If you used a passport or travel document to travel to the United States, enter either the passport or travel document information in the appropriate space on the application, even if the passport or travel document is currently expired.

See sample form and instructions on it: