# Aint13

## Function Table

| Address | Name | Description |
|---------|------|-------------|
| 0x370 | **_ModuleEntryPoint** | UEFI entry point |
| n/a | **ModuleEntryPoint** | Compatibility alias for `_ModuleEntryPoint` |
| 0x624 | **sub_624** | Module initialization callback exposed through protocol install |
| 0x480 | **sub_480** | PCI/ATA device enumeration helper |
| 0x52C | **sub_52C** | Timer callback that refreshes INT13h vectors |
| 0x794 | **sub_794** | CHS geometry calculation helper |
| 0x86C | **sub_86C** | MBR/EBR CHS geometry adjustment |
| 0xA50 | **sub_A50** | ATA geometry extraction from identify data |
| 0xBD4 | **sub_BD4** | Per-disk geometry descriptor builder |
| 0xE88 | **sub_E88** | INT13h handler registration record builder |
| 0x18BC | **sub_18BC** | ASSERT/debug-helper function |
| 0x18FC | **sub_18FC** | HOB-table initialization helper |
| 0x17F4 | **sub_17F4** | Debug protocol locator |
| 0x1874 | **sub_1874** | Conditional debug print helper |
| 0x19D4 | **sub_19D4** | CMOS debug-level fetch |
| 0x1A24 | **sub_1A24** | GUID compare helper |
| 0x1A94 | **sub_1A94** | Unaligned 64-bit memory read helper |
| 0x1634 | **sub_1634** | Chipset-specific INT13h support (in AInt13Csp.c) |

## Recovered Variables

- `mImageHandle`
- `mSystemTable`
- `mBootServices`
- `mRuntimeServices`
- `mAint13ProtocolGuid`
- `byte_2149` (`mAint13InitDone`)
- `n8_2148` (`mAint13DiskCount`)
- `qword_2140` (`mInt13VectorTableBase`)
- `qword_2150` (`mPciIoCached`)
- `dword_21C0` (`mPciMmrAddress`)
- `qword_21B8` (`mPciWindowBase`)
- `qword_21C8` (`mAtapiMbrReadBuffer`)
- `qword_21D0` (`mInt13WorkBuffer`)
- `unk_21E0` (`mAint13DriveIdMap`)
- `qword_2180` (`mDebugProtocol`)
- `qword_2188` (`mCachedHobList`)
- `mAint13ProtocolThunk` (`psub_624`)
- `mAint13ChipsetProtocol` (chipset dependency protocol cache, DB9A1E3D-...)
- `mAint13AuxProtocol` (auxiliary dependency protocol cache, 8E008510-...)

## File Split

- `Aint13.c`: entry point, protocol installation, periodic timer callback hookup, and shared helper scaffolding.
- `AInt13Csp.c`: chipset-specific `sub_1634` flow that programs INT13h register vectors and chip-level state.

---
*Generated by HR650X BIOS Decompilation Project*
