Turbulent dynamo in asymptotic giant branch stars