Your best bet at this point is to perform some formal data recovery.
I've used Data Rescue 4 & 5 with good success.
https://www.prosofteng.com/mac-data-recovery/
I've also used MiniTool's products, on the PC side to recover Mac data.
https://www.minitool.com/data-recovery-software/free-for-mac.html
You can either boot your mac into Target Disk Mode if you can another Mac available. Or, you can create bootable recovery media from either vendor. The third option would be to have professional data recovery done, but that is expensive.
--
The obvious lesson here is that a) always have a backup of your important data, especially if you are messing around with partitions. b) Don't make changes to partitions on the Windows side.
Cloud backups are so cheap these days there's really no sense in not having it, just in case.
sudo fdisk /dev/disk0and the Win8.1 install method (BIOS|EFI). Your related question: Bootcamp installation of Windows 8.1 (High Sierra 10.13.6) audio driver doesn't work (iMac Mid 2011) – klanomath Jan 03 '20 at 19:40fdiskwould probably be unimportant because the drive is not hybrid partitioned. Most likely the GUID partition id for the second partition in the GPT is wrong. – David Anderson Jan 04 '20 at 05:52EBD0A0A2-B9E5-4433-87C0-68B6B72699C7), then the software may change the id. The Boot Camp software alters Windows so that Windows can recognize JHFS+ formatted partitions. A side effect is incorrect GUID id values be set when partitioning is modified by Windows. In the OP's image, the 2nd partition is type HFS because Windows looked into the partition and saw this format. This does not mean the partition GUID type id is48465300-0000-11AA-AA11-00306543ECAC. – David Anderson Jan 04 '20 at 07:22