import sys sys.path.insert(0, r"k:\mcp\GhidraMCP") import bridge_mcp_ghidra as bridge comments = { "1278:0616": ( "Verified live caller of PresentationCallbackBroker slot +0x0c through the installed 0x4588 broker pointer. " "When the local vport state takes the fallback path and param_2 == 0, this function emits the broker callback instead of the normal direct graphics path." ), "1320:1588": ( "Verified live caller of PresentationCallbackBroker slot +0x0c through the installed 0x4588 broker pointer. " "Dispatch_ModalGump emits the broker callback before and after modal dispatch when the requested state pair differs from the current SuperVGA mode snapshot." ), } for address, comment in comments.items(): print(bridge.set_decompiler_comment(address, comment)) print(bridge.get_function_by_address(address)) print()