def METHOD_NAME(game_state: State) -> Generator[PolyPointer[Entity], None, None]:
    cur_hand_uid = game_state.items.players[0].linked_companion_child
    while cur_hand_uid != 0:
        cur_hand = game_state.instance_id_to_pointer.get(cur_hand_uid)
        if cur_hand is None:
            return
        yield cur_hand
        cur_hand = cur_hand.as_poly_type(Player)
        if cur_hand is None:
            return
        cur_hand_uid = cur_hand.value.linked_companion_child