def METHOD_NAME(cpu,tb, h):
    old_ptr = panda.arch.get_arg(cpu,0)
    global previous_size
    previous_size = panda.arch.get_arg(cpu,1)
    asid = panda.current_asid(cpu)
    mmaps = memory_mappings[asid]
    if old_ptr != 0:
        if old_ptr in mmaps:
            del mmaps[old_ptr]
        else:
            print("missing old pointer")
    print(f"got to realloc with old pointer 0x{old_ptr:x} size {previous_size} {panda.get_process_name(cpu)} 0x{panda.current_asid(cpu):x} 0x{panda.current_pc(cpu):x}")
    ra = panda.arch.get_return_address(cpu)
    panda.hook(ra,enabled=True,kernel=False,asid=panda.current_asid(cpu))(call_address_return)