"""Analyze the unpacked FIFA17 SBC completion route offline."""

TARGETS = (
    (0x146B805B0, "SBC request owner thunk"),
    (0x145374E80, "generic request-state dispatcher"),
    (0x145376270, "state-3 completion handler"),
    (0x1453388A0, "response registry lookup (manager mode 1)"),
    (0x145338950, "response registry lookup (manager mode 2)"),
    (0x146162F50, "completion broadcast invoked on lookup miss"),
)

for target, label in TARGETS:
    print("\n=== %s %#x %s ===" % (label, target, fname(target)))
    print(dec(target, 300))
    print("callers", callers(target)[:100])
    print("xrefs", xrefs_to(target)[:100])
